test-exclude: skip tests rather than failing on deficient systems
[gnulib.git] / ChangeLog
1 2011-11-11  Jim Meyering  <meyering@redhat.com>
2
3         test-exclude: skip tests rather than failing on deficient systems
4         * tests/test-exclude.c (main): Skip tests that use FNM_CASEFOLD
5         and FNM_LEADING_DIR on systems that lack the definitions.  This affects
6         at least Solaris 9.  Reported and diagnosed by Dagobert Michelsen in
7         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/3947/focus=3950
8
9 2011-11-10  Bruno Haible  <bruno@clisp.org>
10
11         ptsname_r test: Avoid gcc warning on glibc systems.
12         * tests/test-ptsname_r.c (null_ptr): New function.
13         (test_errors): Use it.
14
15 2011-11-10  Bruno Haible  <bruno@clisp.org>
16
17         ptsname_r: Avoid compilation error on OSF/1 5.1.
18         * lib/stdlib.in.h (ptsname_r): Override if REPLACE_PTSNAME_R is 1.
19         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_PTSNAME_R.
20         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Set REPLACE_PTSNAME_R if the
21         function is not declared or incompatibly declared.
22         * modules/stdlib (Makefile.am): Substitute REPLACE_PTSNAME_R.
23         * modules/ptsname_r (Depends-on, configure.ac): Update.
24         * doc/glibc-functions/ptsname_r.texi: Mention the OSF/1 problems.
25
26 2011-11-10  Bruno Haible  <bruno@clisp.org>
27
28         fstatat: Make cross-compilation guess succeed everywhere except on AIX.
29         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Require AC_CANONICAL_HOST.
30         When cross-compiling, guess yes on all platforms except AIX.
31         Reported by Ludovic Courtès <ludo@gnu.org>.
32
33 2011-11-09  Bruno Haible  <bruno@clisp.org>
34
35         ptsname_r tests: Fix bugs.
36         * tests/test-ptsname_r.c (test_errors): Change return type to 'void'.
37         Fix ptsname_r calls. Reduce loop rounds to a reasonable amount.
38
39 2011-11-09  Paul Eggert  <eggert@cs.ucla.edu>
40
41         fstatat: work with cross-compilation
42         Problem reported by Ludovic Courtès in
43         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00136.html>.
44         * m4/fstatat.m4 (gl_FUNC_FSTATAT): When cross-compiling, report
45         "cross-compiling" and assume the bug is present.  Replace
46         FSTATAT_ZERO_FLAG_BROKEN with HAVE_WORKING_FSTATAT_ZERO_FLAG with
47         an inverted sense, to be more conservative about our assumptions.
48         * lib/fstatat.c (rpl_fstatat): Adjust to renamed macro.
49
50 2011-11-09  Bruno Haible  <bruno@clisp.org>
51
52         Improve MODULES.html output.
53         * modules/mkfifoat (Description): Use the word "function".
54         * modules/readlinkat (Description): Likewise.
55         * modules/symlinkat (Description): Likewise.
56
57 2011-11-09  Eric Blake  <eblake@redhat.com>
58
59         ptsname_r-tests: new test module
60         * modules/ptsname_r-tests: New module.
61         * tests/test-ptsname_r.c: New file.
62
63         ptsname_r: new module
64         * modules/ptsname_r: New module.
65         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): New file.
66         * lib/ptsname.c (__ptsname_r): Split...
67         * lib/ptsname_r.c: ...into new file.
68         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
69         (gl_STDLIB_H_DEFAULTS): Set witness defaults.
70         * modules/stdlib (Makefile.am): Substitute witnesses.
71         * lib/stdlib.in.h (ptsname_r): Declare it.
72         * doc/glibc-functions/ptsname_r.texi (ptsname_r): Document it.
73         * MODULES.html.sh (Misc): Likewise.
74         * modules/ptsname (Depends-on): Alter dependency.
75         * doc/posix-functions/ptsname.texi (ptsname): Mention new module.
76
77 2011-11-09  Jim Meyering  <meyering@redhat.com>
78
79         announce-gen: be more concise when there's only one URL+tarball
80         * build-aux/announce-gen (get_tool_versions): When you distribute
81         only one type of tarball, combine the first two "Here are..."
82         sections and make the key-checking grammar independent of
83         how many tarballs there are.
84
85 2011-11-09  Eric Blake  <eblake@redhat.com>
86
87         openpty: provide a stub on mingw
88         * lib/pty.in.h (includes): Provide forward declarations.
89         * lib/openpty.c (openpty) [mingw]: Provide ENOSYS stub.
90
91         raise: fix mingw handling of SIGPIPE
92         * lib/sigprocmask.c (_gl_raise_SIGPIPE): Provide a return value.
93
94 2011-11-08  Bruno Haible  <bruno@clisp.org>
95
96         More conditional dependencies.
97         * modules/faccessat (Depends-on): Add conditions.
98         * modules/fchmodat (Depends-on): Likewise.
99         * modules/fchownat (Depends-on): Likewise.
100         * modules/fstatat (Depends-on): Likewise.
101         * modules/mkfifoat (Depends-on): Likewise.
102         * modules/readlinkat (Depends-on): Likewise.
103         * modules/symlinkat (Depends-on): Likewise.
104         * modules/unlinkat (Depends-on): Likewise.
105         * modules/utimensat (Depends-on): Likewise.
106         * modules/mkdirat (Depends-on): Add sys_stat. Add conditions.
107         * modules/linkat (Depends-on): Refine the conditions.
108         * modules/renameat (Depends-on): Likewise.
109
110 2011-11-08  Bruno Haible  <bruno@clisp.org>
111
112         faccessat: Move AC_LIBOBJ invocation to module description.
113         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT): New macro.
114         (gl_FUNC_FACESSAT): Don't test for access() here. Move AC_LIBOBJ
115         invocation from here...
116         * modules/faccessat (configure.ac): ... to here. Invoke
117         gl_PREREQ_FACCESSAT.
118
119 2011-11-08  Bruno Haible  <bruno@clisp.org>
120
121         faccessat: Simplify autoconf macro.
122         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Don't require gl_FUNC_OPENAT,
123         gl_FUNC_EUIDACCESS.
124
125 2011-11-08  Bruno Haible  <bruno@clisp.org>
126
127         renameat: Fix dependencies.
128         * modules/renameat (Depends-on): Add stdbool.
129
130 2011-11-08  Bruno Haible  <bruno@clisp.org>
131
132         mkfifoat: Fix module description.
133         * modules/mkfifoat (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR,
134         not gl_UNISTD_MODULE_INDICATOR.
135
136 2011-11-08  Bruno Haible  <bruno@clisp.org>
137
138         fstatat: Remove unused dependency.
139         * modules/fstatat (Depends-on): Remove fstat.
140
141 2011-11-08  Simon Josefsson  <simon@josefsson.org>
142
143         GNUmakefile: behave when Makefile is missing.
144         * top/GNUmakefile: Always initialize _build-aux and _autoreconf.
145
146 2011-11-08  Bruno Haible  <bruno@clisp.org>
147
148         openat: Conditionalize dependencies.
149         * lib/openat.c: Reduce the scope of some #includes.
150         * modules/openat (Depends-on): Add conditions.
151
152 2011-11-07  Jim Meyering  <meyering@redhat.com>
153
154         maint.mk: extract GPG key ID without using a temporary file
155         * top/maint.mk (gpg_key_ID): Extract GPG key ID from signed tag, but
156         without using a temporary file.  Based on a suggestion from Werner Koch
157         in http://thread.gmane.org/gmane.comp.encryption.gpg.devel/16496
158
159 2011-11-07  Eric Blake  <eblake@redhat.com>
160
161         grantpt: fix typo
162         * lib/stdlib.in.h (grantpt): Check correct function.
163
164         maint.mk: silence new syntax check
165         * top/maint.mk (sc_prohibit_dirent_without_use): Add missing @.
166
167 2011-11-06  Bruno Haible  <bruno@clisp.org>
168
169         Doc about floating-point and math API.
170         * doc/posix-headers/float.texi: Mention problem with FLT_ROUNDS.
171         * doc/posix-headers/math.texi: Mention problem with math_errhandling.
172
173 2011-11-06  Bruno Haible  <bruno@clisp.org>
174
175         stdalign tests: Skip the test when compiled by Sun C.
176         * tests/test-stdalign.c (main): Skip the test on Sun C.
177
178 2011-11-06  Bruno Haible  <bruno@clisp.org>
179
180         ansi-c++-opt: Complete the 2011-06-05 change.
181         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
182         does not support namespaces, set the variable to "no", not to ":".
183
184 2011-11-06  Paul Eggert  <eggert@cs.ucla.edu>
185
186         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Sun review ID.
187
188 2011-11-06  Bruno Haible  <bruno@clisp.org>
189
190         copysignl: Fix result for zero argument on HP-UX 11 with HP C.
191         * lib/copysignl.c (compute_minus_zerol) [HP-UX]: New function.
192         (minus_zerol) [HP-UX]: New macro.
193         (unary_minus) [HP-UX]: New function.
194         (copysignl) [HP-UX]: Use unary_minus function.
195
196 2011-11-06  Bruno Haible  <bruno@clisp.org>
197
198         ldexp, ldexpf, ldexpl: Enhance tests.
199         * tests/test-ldexp.h: New file, combining code from tests/test-ldexp.c
200         and tests/test-ldexpl.c.
201         * tests/test-ldexpl.c: (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO,
202         LDEXP, MIN_EXP, MAX_EXP): New macros.
203         Include test-ldexp.h.
204         (main): Just call test_function.
205         * tests/test-ldexp.c: Include float.h, isnand-nolibm.h, minus-zero.h,
206         infinity.h, nan.h.
207         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
208         MAX_EXP): New macros.
209         Include test-ldexp.h.
210         (x, y): Remove variables.
211         (main): Just call test_function.
212         * tests/test-ldexpf.c: Include float.h, isnanf-nolibm.h, minus-zero.h,
213         infinity.h, nan.h.
214         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
215         MAX_EXP): New macros.
216         Include test-ldexp.h.
217         (x, y): Remove variables.
218         (main): Just call test_function.
219         * modules/ldexpl-tests (Files): Add tests/test-ldexp.h.
220         * modules/ldexp-tests (Files): Add tests/test-ldexp.h,
221         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
222         (Depends-on): Add isnand-nolibm, signbit, float.
223         * modules/ldexpf-tests (Files): Add tests/test-ldexp.h,
224         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
225         (Depends-on): Add isnanf-nolibm, signbit, float.
226
227 2011-11-06  Bruno Haible  <bruno@clisp.org>
228
229         math tests: Cosmetics.
230         * tests/test-math-c++.cc: Reorder declarations.
231
232 2011-11-05  Bruno Haible  <bruno@clisp.org>
233
234         fma*: Simplify test.
235         * tests/test-fma2.h (FORGIVE_GLIBC_BUG): Remove macro.
236         (test_function): Remove all if (FORGIVE_GLIBC_BUG) statements.
237
238         Tests for module 'fmal'.
239         * modules/fmal-tests: New file.
240         * tests/test-fmal1.c: New file.
241         * tests/test-fmal2.c: New file.
242
243         New module 'fmal'.
244         * lib/math.in.h (fmal): New declaration.
245         * lib/fmal.c: New file.
246         * m4/fmal.m4: New file.
247         * m4/math_h.m4 (gl_MATH_H): Test whethern fmal is declared.
248         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAL, HAVE_FMAL, REPLACE_FMAL.
249         * modules/math (Makefile.am): Substitute GNULIB_FMAL, HAVE_FMAL,
250         REPLACE_FMAL.
251         * modules/fmal: New file.
252         * doc/posix-functions/fmal.texi: Mention the new module and the various
253         bugs.
254
255         Tests for module 'fmaf'.
256         * modules/fmaf-tests: New file.
257         * tests/test-fmaf1.c: New file.
258         * tests/test-fmaf2.c: New file.
259
260         New module 'fmaf'.
261         * lib/math.in.h (fmaf): New declaration.
262         * lib/fmaf.c: New file.
263         * m4/fmaf.m4: New file.
264         * m4/math_h.m4 (gl_MATH_H): Test whethern fmaf is declared.
265         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAF, HAVE_FMAF, REPLACE_FMAF.
266         * modules/math (Makefile.am): Substitute GNULIB_FMAF, HAVE_FMAF,
267         REPLACE_FMAF.
268         * modules/fmaf: New file.
269         * doc/posix-functions/fmaf.texi: Mention the new module and the various
270         bugs.
271
272         Tests for module 'fma'.
273         * modules/fma-tests: New file.
274         * tests/test-fma1.c: New file.
275         * tests/test-fma1.h: New file.
276         * tests/test-fma2.c: New file.
277         * tests/test-fma2.h: New file.
278
279         New module 'fma'.
280         * lib/math.in.h (fma): New declaration.
281         * lib/fma.c: New file.
282         * m4/fma.m4: New file.
283         * m4/fegetround.m4: New file.
284         * m4/math_h.m4 (gl_MATH_H): Test whethern fma is declared.
285         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMA, HAVE_FMA, REPLACE_FMA.
286         * modules/math (Makefile.am): Substitute GNULIB_FMA, HAVE_FMA,
287         REPLACE_FMA.
288         * modules/fma: New file.
289         * doc/posix-functions/fma.texi: Mention the new module and the various
290         bugs.
291
292         Extend gl_MATHFUNC.
293         * m4/mathfunc.m4 (gl_MATHFUNC): Accept an 4th parameter of INCLUDES.
294         Support 'void' as argument type.
295         * m4/rint.m4 (gl_FUNC_RINT): Update gl_MATHFUNC invocation.
296
297 2011-11-05  Jim Meyering  <meyering@redhat.com>
298
299         maint.mk: also prohibit inclusion of dirent.h without use
300         * top/maint.mk (sc_prohibit_dirent_without_use): New rule.
301
302 2011-11-05  Bruno Haible  <bruno@clisp.org>
303
304         ldexpl tests: Avoid test failure on MSVC 9.
305         * tests/test-ldexpl.c (main): Use a temporary variable for the expected
306         value. Needed in order to enforce the conversion from a value greater
307         than LDBL_MAX to Infinity.
308
309 2011-11-05  Bruno Haible  <bruno@clisp.org>
310
311         New modules 'at-internal', 'openat-h', split off from module 'openat'.
312         * modules/at-internal: New file, extracted from modules/openat.
313         * modules/openat-h: New file.
314         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
315         invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
316         * modules/openat (Description): Add reference to POSIX function.
317         (Files): Remove lib/openat.h, lib/openat-proc.c.
318         (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
319         intprops, unistd.
320         (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
321         gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
322         gl_FCNTL_MODULE_INDICATOR.
323         (Include): Remove unistd.h, openat.h.
324         * modules/areadlinkat (Files): Add lib/at-func.c.
325         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
326         openat-die, openat-h, save-cwd.
327         * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
328         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
329         openat-die, openat-h, save-cwd, unistd.
330         * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
331         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
332         openat-h, save-cwd. Remove fcntl-h, openat.
333         * modules/fchmodat (Files): Remove lib/openat.h.
334         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
335         openat, stdbool, unistd.
336         * modules/fchownat (Files): Remove lib/openat.h.
337         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
338         openat, stdbool, sys_stat.
339         * modules/fdopendir (Files): Remove lib/openat-priv.h,
340         lib/openat-proc.c.
341         (Depends-on): Add at-internal.
342         (condigure.ac): Remove AC_LIBOBJ of openat-proc.
343         * modules/fstatat (Files): Remove lib/openat.h.
344         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
345         stdbool, unistd.
346         * modules/fts (Depends-on): Add openat-h.
347         * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
348         openat.
349         * modules/mkdirat (Files): Remove lib/openat.h.
350         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
351         openat, stdbool, sys_stat.
352         * modules/mkfifoat (Files): Add lib/at-func.c.
353         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
354         openat-h, save-cwd. Remove fcntl-h, openat.
355         * modules/openat-die (Depends-on): Add openat-h. Remove openat.
356         * modules/readlinkat (Files): Add lib/at-func.c.
357         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
358         openat-h, save-cwd. Remove fcntl-h, openat.
359         * modules/renameat (Depends-on): Add at-internal, openat-h. Remove
360         openat.
361         * modules/selinux-at (Files): Add lib/at-func.c.
362         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
363         fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
364         * modules/symlinkat (Files): Add lib/at-func.c.
365         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
366         openat-h, save-cwd. Remove fcntl-h, openat.
367         * modules/unlinkat (Files): Remove lib/openat.h.
368         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
369         stdbool.
370         * modules/utimensat (Files): Add lib/at-func.c.
371         (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
372         openat-die, openat-h, save-cwd.
373         * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
374         * modules/fdutimensat-tests (Depends-on): Add openat.
375         * modules/fstatat-tests (Depends-on): Add openat-h.
376         * modules/readlinkat-tests (Depends-on): Add openat.
377         * modules/symlinkat-tests (Depends-on): Add openat.
378
379 2011-11-05  Bruno Haible  <bruno@clisp.org>
380
381         openat: Include <stdbool.h>.
382         * lib/openat.c: Include <stdbool.h>.
383
384 2011-11-04  Bruno Haible  <bruno@clisp.org>
385
386         fchownat, renameat, unlinkat: Fix dependencies.
387         * modules/fchownat (Depends-on): Add fstatat.
388         * modules/renameat (Depends-on): Likewise.
389         * modules/unlinkat (Depends-on): Likewise.
390
391 2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>
392
393         openat: remove direct dependency on dirent
394         * lib/openat.h: Don't include <dirent.h>; it's no longer needed,
395         and hasn't been needed ever since fdopendir was split into its own
396         module on 2009-08-31.
397         * modules/openat (Depends-on): Remove dirent.
398
399 2011-11-04  Bruno Haible  <bruno@clisp.org>
400
401         renameat: Optimize code size.
402         * modules/renameat (configure.ac): Don't compile at-func2.c if
403         REPLACE_RENAMEAT is 1.
404
405 2011-11-04  Bruno Haible  <bruno@clisp.org>
406
407         openat tests: Fix file list.
408         * modules/openat-tests (Files): Add tests/test-open.h.
409
410 2011-11-04  Bruno Haible  <bruno@clisp.org>
411
412         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
413         * modules/fchmodat (Depends-on): Add openat-die.
414         * modules/fchownat (Depends-on): Likewise.
415         * modules/linkat (Depends-on): Likewise.
416         * modules/renameat (Depends-on): Likewise.
417         * modules/openat (Depends-on): Add dirent.
418
419 2011-11-04  Jim Meyering  <meyering@redhat.com>
420
421         at-func*.c: fix comments
422         * lib/at-func2.c: Correct/improve first-line comment.
423         * lib/at-func.c: Correct grammar in first-line comment.
424
425 2011-11-04  Bruno Haible  <bruno@clisp.org>
426
427         New module 'mkdirat', split off from module 'openat'.
428         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
429         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
430         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
431         * modules/mkdirat: New file, extracted from modules/openat.
432         * modules/openat (Files): Remove lib/mkdirat.c.
433         (Depends-on): Remove mkdir.
434         (configure.ac): Remove AC_LIBOBJ of mkdirat.
435         (Include): Remove <sys/stat.h>.
436         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
437         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
438         tests/test-mkdir.h.
439         (Depends-on): Remove ignore-value.
440         (Makefile.am): Remove rules for test-mkdirat.
441         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
442         of module 'openat'.
443         * NEWS: Mention the change.
444
445 2011-11-04  Bruno Haible  <bruno@clisp.org>
446
447         closedir: Avoid warning on mingw.
448         * lib/closedir.c: Include <unistd.h>.
449
450 2011-11-04  Bruno Haible  <bruno@clisp.org>
451
452         New module 'fstatat', split off from module 'openat'.
453         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
454         defined.
455         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
456         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
457         gl_FUNC_FSTATAT.
458         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
459         * modules/fstatat: New file, extracted from modules/openat.
460         * modules/openat (Files): Remove lib/fstatat.c.
461         (Depends-on): Remove lstat.
462         (configure.ac): Remove AC_LIBOBJ of fstatat.
463         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
464         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
465         tests/test-lstat.h, tests/test-stat.h.
466         (Depends-on): Remove getcwd-lgpl.
467         (Makefile.am): Remove rules for test-fstatat.
468         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
469         of module 'openat'.
470         * NEWS: Mention the change.
471         * modules/getcwd (Depends-on): Add fstatat.
472         * modules/linkat (Depends-on): Likewise.
473         * modules/mkfifoat-tests (Depends-on): Likewise.
474         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
475
476 2011-11-03  Bruno Haible  <bruno@clisp.org>
477
478         New module 'unlinkat', split off from module 'openat'.
479         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
480         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
481         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
482         * modules/unlinkat: New file, extracted from modules/openat. Correct
483         the dependency conditions.
484         * modules/openat (Files): Remove lib/unlinkat.c.
485         (Depends-on): Remove rmdir, unlink.
486         (configure.ac): Remove AC_LIBOBJ of unlinkat.
487         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
488         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
489         tests/test-rmdir.h, tests/test-unlink.h.
490         (Depends-on): Remove unlinkdir.
491         (Makefile.am): Remove rules for test-unlinkat.
492         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
493         of module 'openat'.
494         * NEWS: Mention the change.
495         * modules/linkat-tests (Depends-on): Add unlinkat.
496         * modules/mkfifoat-tests (Depends-on): Likewise.
497         * modules/readlinkat-tests (Depends-on): Likewise.
498
499 2011-11-02  Bruno Haible  <bruno@clisp.org>
500
501         New module 'fchmodat', split off from module 'openat'.
502         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
503         defined.
504         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
505         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
506         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
507         * modules/fchmodat: New file, extracted from modules/openat.
508         * modules/openat (Files): Remove lib/fchmodat.c.
509         (configure.ac): Remove AC_LIBOBJ of fchmodat.
510         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
511         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
512         (Makefile.am): Remove rules for test-fchmodat.
513         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
514         of module 'openat'.
515         * NEWS: Mention the change.
516
517 2011-11-02  Jim Meyering  <meyering@redhat.com>
518
519         putenv: indent #definition of "environ" to placate cppi
520         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
521
522         gitlog-to-changelog: provide a ChangeLog-repair mechanism
523         Git logs are often treated as immutable, because editing them
524         changes the SHA1 checksums of all descendants.  Thus, errors in
525         git logs tend to stay there forever.  However, when we generate
526         a ChangeLog file -- typically for distribution -- from that git log,
527         we can actually make corrections in the generated file.  The key
528         lies in recording in machine-readable/applicable form the desired
529         corrections.  See --help for description and an example.
530         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
531         (usage): Describe it; alphabetize option descriptions.
532         (main): Honor the new option, carefully.
533
534 2011-11-01  Jim Meyering  <meyering@redhat.com>
535
536         gitlog-to-changelog: avoid an infloop
537         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
538         that ends up being empty.
539
540 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
541
542         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
543         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
544         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
545         contains (possibly-quoted) backslashes.  This should avoid
546         all-too-common shell bugs if COMPLICATED contains backslashes in
547         the "wrong" places.  Reported by David Evans in
548         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00013.html>.
549         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
550         because we want ASCII ranges.  Is there some reason we don't use
551         the C locale everywhere in this script?
552         (func_module, top level): Avoid unwanted pathname expansion when
553         $repo_url_prefix or $repo_url_suffix_repl contain shell
554         metacharacters like '?' and '*'.
555
556 2011-11-01  Bruno Haible  <bruno@clisp.org>
557
558         fchownat: Improve description.
559         * modules/fchownat (Description): Add link to function.
560
561 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
562
563         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
564         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
565         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00006.html>.
566         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
567
568 2011-11-01  Bruno Haible  <bruno@clisp.org>
569
570         alignof: Avoid collision with stdalign module.
571         * lib/alignof.h (alignof): Remove macro.
572         * NEWS: Mention the change.
573         Reported by Paul Eggert.
574
575 2011-11-01  Bruno Haible  <bruno@clisp.org>
576
577         New module 'fchownat', split off from module 'openat'.
578         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
579         defined.
580         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
581         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
582         invoke gl_FUNC_FCHOWNAT.
583         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
584         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
585         * modules/fchownat: New file, extracted from modules/openat.
586         * modules/openat (Files): Remove lib/fchownat.c.
587         (Depends-on): Remove lchown.
588         (configure.ac): Remove AC_LIBOBJ of fchownat.
589         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
590         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
591         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
592         (Depends-on): Remove mgetgroups, usleep, stat-time.
593         (configure.ac): Remove test for getegid.
594         (Makefile.am): Remove rules for test-fchownat.
595         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
596         of module 'openat'.
597         * NEWS: Mention the change.
598
599 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
600
601         stdalign: port better to MSVC and to Sun C 5.11
602         This fixes some of the problems reported by Bruno Haible in
603         <http://lists.gnu.org/archive/html/bug-gnulib/2011-10/msg00300.html>.
604         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
605         shortcomings of MSVC and of Sun C 5.11.
606         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
607         around __declspec arg.
608         * modules/stdalign-tests (Files): Add tests/macros.h.
609         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
610         Include macros.h, for ASSERT.
611         (DECLARE_ALIGNED): Remove.
612         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
613         to catch bug), and to 1 if not (simplifies the rest of the code).
614         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
615         (CHECK_AUTO): Remove.
616         (CHECK_ALIGNED): Check only the alignment of the static vars,
617         since auto var alignment isn't supported by Sun C 5.11.
618         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
619         ASSERT failures are easier to diagnose.
620
621 2011-10-31  Bruno Haible  <bruno@clisp.org>
622
623         doc about some IRIX 5.3 problems.
624         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
625         on IRIX 5.3.
626         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
627         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
628         5.3.
629         * doc/posix-functions/grantpt.texi: Likewise.
630         * doc/posix-functions/unlockpt.texi: Likewise.
631         * doc/posix-functions/lgamma.texi: Likewise.
632         * doc/posix-functions/nextafter.texi: Likewise.
633         * doc/posix-functions/remainder.texi: Likewise.
634         * doc/posix-functions/select.texi: Mention misplaced declaration on
635         IRIX 5.3.
636         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
637
638 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
639
640         gitlog-to-changelog: fix git-log invocation.
641         git-log mishandles date strings before 1970-01-01 UTC, and there is
642         no use to specify --since=1970-01-01 by default anyway.
643         * build-aux/gitlog-to-changelog: By default, when no --since option
644         was given, do not specify explicit --since option to git-log.
645
646 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
647
648         gitlog-to-changelog: new option --append-dot.
649         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
650         first non-blank line of each commit message terminated with a dot.
651
652 2011-10-30  Bruno Haible  <bruno@clisp.org>
653
654         ffsl, ffsll: Avoid compilation error due to 'restrict'.
655         * lib/ffsl.h: Include <config.h>.
656         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
657
658 2011-10-30  Jim Meyering  <meyering@redhat.com>
659
660         GNUmakefile: reenable "make syntax-check" for most projects
661         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
662         build-aux variable", "syntax-check" would do nothing but succeed with
663         the "No version control files detected..." diagnostic (unless you
664         happened to override _build-aux via cfg.mk).
665         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
666         to precede inclusion of maint.mk.  Otherwise, these variables would
667         be used undefined in any project that does not override the default.
668
669 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
670
671         gitlog-to-changelog: treat a message with only blank lines as empty.
672         * build-aux/gitlog-to-changelog: Move the code that removes leading and
673         trailing blank lines before the code that issues a warning about an
674         empty commit message.
675
676 2011-10-30  Jim Meyering  <meyering@redhat.com>
677
678         test-parse-datetime.c: avoid new DST-related false positive test failure
679         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
680         based on the time/date we'll convert, not the current time.
681         Otherwise, the moment we cross a DST boundary like today's in
682         Europe, (CEST to CET), that offset ends up being one hour off.
683
684 2011-10-27  Bruno Haible  <bruno@clisp.org>
685
686         fstat: Tweak documentation.
687         * modules/fstat (Description): More precise description.
688
689 2011-10-27  Bruno Haible  <bruno@clisp.org>
690
691         Update documentation regarding 'largefile' module.
692         * doc/posix-functions/fstat.texi: Tweak wording.
693         * doc/posix-functions/opendir.texi: Mention that the module fixes the
694         problems with huge directories and/or small ino_t types.
695         * doc/posix-functions/readdir.texi: Likewise.
696         * doc/posix-functions/rewinddir.texi: Likewise.
697
698 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
699
700         maint.mk: don't maintain a second build-aux variable.
701         * maint.mk (build_aux): Removed.  The maintainer-makefile module
702         depends on GNUmakefile, which already maintains a cfg.mk
703         overridable $(_build-aux) for projects with a non-standard
704         build-aux directory location, although without the $(srcdir)
705         prefix.  Use that variable consistently instead of introducing a
706         second one.  Adjust all call sites.
707
708 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
709
710         Add stdalign module and use it in other modules.
711         This is based on a previous proposal by Bruno Haible
712         <https://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00226.html>.
713
714         stdalign: new module
715         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
716         * modules/stdalign: New files.
717         * MODULES.html.sh (c1x_core_properties): Add stdalign.
718         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
719
720         stdalign-tests: new module
721         * modules/stdalign-tests, tests/test-stdalign.c: New files.
722
723         argp: use stdalign
724         * lib/argp-parse.c: Include <stdalign.h>.
725         (alignof): Remove.
726         * modules/argp (Depends-on): Add stdalign.
727
728         crypto libraries: use stdalign
729         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
730         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
731         Do not include <stdlib.h> twice, in md4.c.
732         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
733         because we are accessing a pointer's bit-pattern, not a size.
734         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
735         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
736         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
737         * modules/crypto/sha512: Likewise.
738
739         sys_socket: use stdalign, not alignof
740         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
741         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
742
743 2011-10-27  Bruno Haible  <bruno@clisp.org>
744
745         raise test: Avoid a test failure on Linux/MIPS.
746         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
747         because 99 is a valid signal on Linux/MIPS.
748
749 2011-10-27  Bruno Haible  <bruno@clisp.org>
750
751         nonblocking tests: Fix test failure on Linux/MIPS.
752         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
753         Set to 270000.
754
755 2011-10-27  Bruno Haible  <bruno@clisp.org>
756
757         utimensat: Work around problem on Linux/hppa.
758         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
759         values.
760         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
761
762 2011-10-25  Jim Meyering  <meyering@redhat.com>
763
764         maint.mk: fix a bug in sc_prohibit_stddef_without_use
765         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
766         after symbols like NULL, size_t, etc.
767         Reported by Alfred M. Szmidt.
768
769         maint.mk: exempt ENODATA from a syntax-check rule
770         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
771         from the sc_prohibit_always-defined_macros syntax-check rule.
772         Add a comment.  See this for more details:
773         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
774
775 2011-10-23  Jim Meyering  <meyering@redhat.com>
776
777         fts: close parent dir FD before returning from post-traversal fts_read
778         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
779         unlink A, even though an FD open on A remained.  This is suboptimal
780         (holding a file descriptor open longer than needed), but otherwise not
781         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
782         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
783         that represents a real problem: it causes the removal of A to fail
784         with e.g., "rm: cannot remove `A': Device or resource busy"
785
786         fts visits each directory twice and keeps a cache (fts_fd_ring) of
787         directory file descriptors.  After completing the final, FTS_DP,
788         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
789         cache, but then proceeded to add a new FD to it via the subsequent
790         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
791         final file descriptor would be closed only via fts_close's call to
792         fd_ring_clear.  Now, it is usually closed earlier, via the final
793         FTS_DP-returning fts_read call.
794         * lib/fts.c (restore_initial_cwd): New function, converted from
795         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
796         Update callers.
797         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
798         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
799
800 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
801             Bruno Haible  <bruno@clisp.org>
802             Jim Meyering  <jim@meyering.net>
803
804         readme-release: improve safety of release prep instructions.
805         * README-release: Don't git pull all branches when only master
806         is needed for the release process.
807         Run make maintainer-clean before changing trees and merging.
808         Don't try to run ./configure right after git pull in case files
809         that influence the bootstrap process have changed, move the
810         ./configure step to after running ./bootstrap.
811         Don't bootstrap "one last time"... it's the first time!
812
813 2011-10-22  Bruno Haible  <bruno@clisp.org>
814
815         errno, strerror-override: Support for MSVC 10.
816         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
817         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
818         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
819         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
820         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
821         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
822         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
823         Assign values compatible with MSVC 10.
824         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
825         New macros.
826         (GNULIB_defined_EWINSOCK): New macro.
827         * lib/strerror-override.c (strerror_override): Update accordingly.
828         * lib/strerror-override.h: Likewise.
829         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
830         longer equal to the corresponding errno value.
831         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
832
833 2011-10-22  Bruno Haible  <bruno@clisp.org>
834
835         perror: Recognize when test program crashes.
836         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
837         strerror, set gl_cv_func_perror_works to no.
838         Reported by Daniel Richard G. <skunk@iskunk.org>.
839
840         perror: Fix indentation.
841         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
842
843 2011-10-22  Bruno Haible  <bruno@clisp.org>
844
845         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
846         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
847         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
848         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
849         functions, not as a macro.
850         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
851         macros.
852         (isfinite, isinf, isnan, signbit): Check overloaded functions and
853         absence of macro.
854         Suggested by Eric Blake.
855         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
856
857 2011-10-21  Bruno Haible  <bruno@clisp.org>
858
859         relocatable-prog-wrapper: Don't leave object files behind.
860         * build-aux/install-reloc: Re-synchronize list of .o files to be
861         removed with list of compilation units.
862
863 2011-10-20  Bruno Haible  <bruno@clisp.org>
864
865         openpty, posix_openpt: Remove code duplication.
866         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
867         * lib/openpty.c: Include <stdlib.h>.
868         (openpty): Use posix_openpt on all platforms except IRIX.
869         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
870
871 2011-10-20  Bruno Haible  <bruno@clisp.org>
872
873         unlockpt: Detect invalid argument.
874         * lib/unlockpt.c: Include <fcntl.h>.
875         (unlockpt): Check whether fd is valid, using fcntl().
876         * modules/unlockpt (Depends-on): Add fcntl-h.
877
878 2011-10-20  Bruno Haible  <bruno@clisp.org>
879
880         openpty: Avoid compilation error on AIX 6.1.
881         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
882
883 2011-10-20  Bruno Haible  <bruno@clisp.org>
884
885         posix_openpt: Support for OpenBSD.
886         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
887         (posix_openpt) [OpenBSD]: New code.
888         * lib/grantpt.c: Include <fcntl.h>.
889         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
890         * modules/grantpt (Depends-on): Add fcntl-h.
891
892 2011-10-20  Bruno Haible  <bruno@clisp.org>
893
894         posix_openpt test: Coding style.
895         * tests/test-posix_openpt.c: Use GNU coding style.
896
897 2011-10-20  Bruno Haible  <bruno@clisp.org>
898
899         grantpt: Support --avoid=pt_chown.
900         * modules/grantpt (Files): Add lib/pty-private.h.
901
902 2011-10-20  Bruno Haible  <bruno@clisp.org>
903
904         posix_openpt: Fix autoconf macro.
905         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
906         unneeded check for _getpty.
907
908 2011-10-20  Bruno Haible  <bruno@clisp.org>
909
910         openpty: Update comments.
911         * lib/openpty.c: Add comments about Minix.
912
913 2011-10-19  Eric Blake  <eblake@redhat.com>
914
915         openpty: relax license
916         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
917
918         pt_chown: use configmake to simplify build
919         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
920
921         ptsname and others: relax license
922         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
923         * modules/unlockpt (License): Likewise.
924         * modules/pt_chown (License): Likewise.
925         * modules/ptsname (License): Likewise.
926         * modules/ttyname_r (License): Likewise.
927
928 2011-10-19  Jim Meyering  <meyering@redhat.com>
929
930         posix_openpt: remove spurious #endif
931         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
932
933 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
934
935         maint.mk: Respect $(build_aux) in web-manual rule.
936         * top/maint.mk (web-manual): Find gen-announce script in user's
937         $(build_aux) directory instead of hard-coding 'build-aux'.
938
939 2011-10-19  Bruno Haible  <bruno@clisp.org>
940
941         posix_openpt: Fix compilation error.
942         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
943         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
944         Mention the openpty module as an alternative.
945
946 2011-10-19  Bruno Haible  <bruno@clisp.org>
947
948         Support for old NeXTstep 3.3 frexp().
949         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
950         execution time of the test to 5 seconds.
951         Reported by Daniel Richard G. <skunk@iskunk.org>.
952
953 2011-10-19  Bruno Haible  <bruno@clisp.org>
954
955         Support for old NeXTstep 3.3 sed.
956         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
957         part, use /.../, not \|...|. Escape periods in the header file name.
958         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
959         Reported by Daniel Richard G. <skunk@iskunk.org>.
960
961 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
962
963         Support for old NeXTstep 3.3 gcc.
964         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
965         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
966         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
967         * lib/spawn.in.h (_Restrict_arr_): Likewise.
968         * lib/regex.h (_Restrict_arr_): Likewise.
969         * lib/regex_internal.h (re_token_t): Likewise.
970         * lib/regexec.c (check_node_accept_bytes): Likewise.
971         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
972
973 2011-10-18  Eric Blake  <eblake@redhat.com>
974
975         posix_openpt: new module
976         * modules/posix_openpt: New module.
977         * m4/posix_openpt.m4: New file.
978         * lib/posix_openpt.c: Likewise.
979         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
980         (gl_STDLIB_H_DEFAULTS): Set defaults.
981         * modules/stdlib (Makefile.am): Substitute macros.
982         * lib/stdlib.in.h (posix_openpt): Declare.
983         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
984         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
985         * modules/posix_openpt-tests: New test module.
986         * tests/test-posix_openpt.c: New test.
987
988 2011-10-15  Bruno Haible  <bruno@clisp.org>
989
990         xstrtoll: Fix compilation failure.
991         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
992         from lib/strtol.c.
993         * doc/posix-headers/limits.texi: Mention missing numerical limits on
994         some platforms.
995         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
996
997 2011-10-15  Bruno Haible  <bruno@clisp.org>
998
999         vasnprintf: Optimize bit search operation.
1000         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
1001         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
1002         gl_DOUBLE_EXPONENT_LOCATION.
1003         * modules/vasnprintf (Files): Add m4/exponentd.m4.
1004         * modules/unistdio/u8-vasnprintf (Files): Likewise.
1005         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
1006         * modules/unistdio/u16-vasnprintf (Files): Likewise.
1007         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
1008         * modules/unistdio/u32-vasnprintf (Files): Likewise.
1009         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
1010         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
1011         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
1012
1013 2011-10-15  Bruno Haible  <bruno@clisp.org>
1014
1015         vasnprintf: Fix comments.
1016         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
1017
1018 2011-10-14  Bruno Haible  <bruno@clisp.org>
1019
1020         Tests for module 'integer_length_ll'.
1021         * modules/integer_length_ll-tests: New file.
1022         * tests/test-integer_length_ll.c: New file.
1023
1024         New module 'integer_length_ll'.
1025         * lib/integer_length_ll.c: New file.
1026         * modules/integer_length_ll: New file.
1027
1028 2011-10-14  Bruno Haible  <bruno@clisp.org>
1029
1030         Tests for module 'integer_length_l'.
1031         * modules/integer_length_l-tests: New file.
1032         * tests/test-integer_length_l.c: New file.
1033
1034         New module 'integer_length_l'.
1035         * lib/integer_length_l.c: New file.
1036         * modules/integer_length_l: New file.
1037
1038 2011-10-14  Bruno Haible  <bruno@clisp.org>
1039
1040         Tests for module 'integer_length'.
1041         * modules/integer_length-tests: New file.
1042         * tests/test-integer_length.c: New file.
1043
1044         New module 'integer_length'.
1045         * lib/integer_length.h: New file.
1046         * lib/integer_length.c: New file.
1047         * modules/integer_length: New file.
1048
1049 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
1050
1051         popen: Fix dependency conditions.
1052         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
1053
1054 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
1055
1056         perror: Fix autoconf test.
1057         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
1058         <stdlib.h> and <string.h>.
1059
1060 2011-10-14  Bruno Haible  <bruno@clisp.org>
1061
1062         ffsl: Optimize on 64-bit platforms.
1063         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
1064         unrolling.
1065
1066 2011-10-13  Bruno Haible  <bruno@clisp.org>
1067
1068         ffsl: Optimize on 32-bit platforms.
1069         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
1070         use ffs() without a loop.
1071
1072         ffsl, ffsll: Optimize for GCC.
1073         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
1074         * lib/ffsl.c (GCC_BUILTIN): New macro.
1075         * lib/ffsll.c (GCC_BUILTIN): Likewise.
1076
1077 2011-10-13  Bruno Haible  <bruno@clisp.org>
1078
1079         ffs, bcopy, memset: Support symbol renaming via config.h.
1080         * lib/ffs.c: Include <config.h>.
1081         * lib/bcopy.c: Likewise.
1082         * lib/memset.c: Likewise.
1083
1084 2011-10-10  Bruno Haible  <bruno@clisp.org>
1085
1086         atanl: Simplify for platforms where 'long double' == 'double'.
1087         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
1088         alternative implementation.
1089         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1090         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1091         * modules/atanl (Depends-on): Add atan. Update conditions.
1092
1093 2011-10-10  Bruno Haible  <bruno@clisp.org>
1094
1095         acosl: Simplify for platforms where 'long double' == 'double'.
1096         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
1097         alternative implementation.
1098         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1099         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1100         * modules/acosl (Depends-on): Add acos. Update conditions.
1101
1102 2011-10-10  Bruno Haible  <bruno@clisp.org>
1103
1104         asinl: Simplify for platforms where 'long double' == 'double'.
1105         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
1106         alternative implementation.
1107         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1108         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1109         * modules/asinl (Depends-on): Add asin. Update conditions.
1110
1111 2011-10-10  Bruno Haible  <bruno@clisp.org>
1112
1113         tanl: Simplify for platforms where 'long double' == 'double'.
1114         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
1115         implementation.
1116         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1117         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1118         * modules/tanl (Depends-on): Add tan. Update conditions.
1119         (configure.ac): Don't compile trigl.c if
1120         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1121
1122 2011-10-10  Bruno Haible  <bruno@clisp.org>
1123
1124         cosl: Simplify for platforms where 'long double' == 'double'.
1125         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
1126         implementation.
1127         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1128         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1129         * modules/cosl (Depends-on): Add cos. Update conditions.
1130         (configure.ac): Don't compile sincosl.c and trigl.c if
1131         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1132
1133 2011-10-10  Bruno Haible  <bruno@clisp.org>
1134
1135         sinl: Simplify for platforms where 'long double' == 'double'.
1136         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
1137         implementation.
1138         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1139         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1140         * modules/sinl (Depends-on): Add sin. Update conditions.
1141         (configure.ac): Don't compile sincosl.c and trigl.c if
1142         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1143
1144 2011-10-10  Bruno Haible  <bruno@clisp.org>
1145
1146         logl: Simplify for platforms where 'long double' == 'double'.
1147         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
1148         implementation.
1149         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1150         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1151         * modules/logl (Depends-on): Add log. Update conditions.
1152
1153 2011-10-10  Bruno Haible  <bruno@clisp.org>
1154
1155         expl: Simplify for platforms where 'long double' == 'double'.
1156         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
1157         implementation.
1158         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1159         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1160         * modules/expl (Depends-on): Add exp. Update conditions.
1161
1162 2011-10-10  Bruno Haible  <bruno@clisp.org>
1163
1164         sqrtl: Simplify for platforms where 'long double' == 'double'.
1165         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
1166         alternative implementation.
1167         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1168         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1169         * modules/sqrtl (Depends-on): Update conditions.
1170
1171 2011-10-10  Bruno Haible  <bruno@clisp.org>
1172
1173         ldexpl: Simplify for platforms where 'long double' == 'double'.
1174         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
1175         alternative implementation.
1176         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1177         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1178         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
1179
1180 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
1181
1182         ffsll: set correct witness
1183         * modules/ffsll (configure.ac): Fix typo.
1184
1185 2011-10-10  Bruno Haible  <bruno@clisp.org>
1186
1187         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
1188         * lib/printf-frexpl.c: Include <config.h>.
1189         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
1190         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
1191         second time.
1192         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
1193         gl_LONG_DOUBLE_VS_DOUBLE.
1194         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
1195         conditions.
1196
1197 2011-10-10  Bruno Haible  <bruno@clisp.org>
1198
1199         frexpl: Simplify for platforms where 'long double' == 'double'.
1200         * lib/frexpl.c: Include <config.h>.
1201         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
1202         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
1203         time.
1204         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1205         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1206         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
1207         * modules/frexpl (Depends-on): Add frexp. Update conditions.
1208         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
1209         conditions.
1210
1211 2011-10-10  Jim Meyering  <meyering@redhat.com>
1212
1213         test-renameat: don't leave behind a temporary file
1214         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
1215           ERROR: files left in build directory after distclean:
1216           ./gltests/test-renameat.too
1217           make[1]: *** [distcleancheck] Error 1
1218         Reported by Tom G. Christensen.
1219
1220 2011-10-09  Bruno Haible  <bruno@clisp.org>
1221
1222         rint: Determine RINT_LIBM correctly on AIX 7.
1223         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
1224         directly, not only through a function pointer. Also accept an optional
1225         4th argument with extra code.
1226         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
1227         rintf() call by gcc when optimizing.
1228
1229         mathfunc.m4: Refactor.
1230         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
1231         m4 variable.
1232
1233 2011-10-09  Bruno Haible  <bruno@clisp.org>
1234
1235         rintl: Simplify for platforms where 'long double' == 'double'.
1236         * lib/rintl.c: Include <config.h>.
1237         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
1238         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
1239         time.
1240         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1241         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1242         * modules/rintl (Depends-on): Add rint. Update conditions.
1243
1244 2011-10-09  Bruno Haible  <bruno@clisp.org>
1245
1246         roundl: Simplify for platforms where 'long double' == 'double'.
1247         * lib/roundl.c: Include <config.h>.
1248         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
1249         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
1250         time.
1251         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1252         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1253         * modules/roundl (Depends-on): Add round. Update conditions.
1254
1255 2011-10-09  Bruno Haible  <bruno@clisp.org>
1256
1257         truncl: Simplify for platforms where 'long double' == 'double'.
1258         * lib/truncl.c: Include <config.h>.
1259         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
1260         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
1261         time.
1262         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1263         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1264         * modules/truncl (Depends-on): Add trunc. Update conditions.
1265
1266 2011-10-09  Bruno Haible  <bruno@clisp.org>
1267
1268         ceill: Simplify for platforms where 'long double' == 'double'.
1269         * lib/ceill.c: Include <config.h>.
1270         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
1271         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
1272         time.
1273         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1274         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1275         * modules/ceill (Depends-on): Add ceil. Update conditions.
1276
1277 2011-10-09  Bruno Haible  <bruno@clisp.org>
1278
1279         floorl: Simplify for platforms where 'long double' == 'double'.
1280         * lib/floorl.c: Include <config.h>.
1281         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
1282         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
1283         time.
1284         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1285         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1286         * modules/floorl (Depends-on): Add floor. Update conditions.
1287
1288 2011-10-09  Bruno Haible  <bruno@clisp.org>
1289
1290         rint: Fix ordering constraints.
1291         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
1292         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
1293         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
1294
1295 2011-10-09  Bruno Haible  <bruno@clisp.org>
1296
1297         copysignl: Simplify for platforms where 'long double' == 'double'.
1298         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
1299         alternative.
1300         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1301         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1302         * modules/copysignl (Depends-on): Add copysign. Update conditions.
1303
1304 2011-10-09  Bruno Haible  <bruno@clisp.org>
1305
1306         Tests for module 'rintl'.
1307         * modules/rintl-tests: New file.
1308         * tests/test-rintl.c: New file.
1309
1310         New module 'rintl'.
1311         * lib/math.in.h (rintl): New declaration.
1312         * lib/rintl.c: New file.
1313         * m4/rintl.m4: New file.
1314         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
1315         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
1316         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
1317         * modules/rintl: New file.
1318         * tests/test-math-c++.cc: Check the declaration of rintl.
1319         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
1320         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
1321         * doc/posix-functions/rintl.texi: Mention the new module.
1322
1323 2011-10-09  Bruno Haible  <bruno@clisp.org>
1324
1325         Tests for module 'rintf'.
1326         * modules/rintf-tests: New file.
1327         * tests/test-rintf.c: New file.
1328
1329         New module 'rintf'.
1330         * lib/math.in.h (rintf): New declaration.
1331         * lib/rintf.c: New file.
1332         * m4/rintf.m4: New file.
1333         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
1334         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
1335         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
1336         * modules/rintf: New file.
1337         * tests/test-math-c++.cc: Check the declaration of rintf.
1338         * doc/posix-functions/rintf.texi: Mention the new module.
1339
1340 2011-10-09  Bruno Haible  <bruno@clisp.org>
1341
1342         rint: Support for MSVC.
1343         * lib/math.in.h (rint): New declaration.
1344         * lib/rint.c: New file.
1345         * m4/rint.m4: New file.
1346         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
1347         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
1348         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
1349         * modules/rint (Description): Fix.
1350         (Files): Add lib/rint.c, m4/rint.m4.
1351         (Depends-on): Add math.
1352         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
1353         gl_MATH_MODULE_INDICATOR.
1354         * tests/test-math-c++.cc: Check the declaration of rint.
1355         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
1356         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
1357         * doc/posix-functions/rint.texi: Mention the replacement provided by
1358         the module.
1359
1360         rint tests: More tests.
1361         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
1362         minus-zero.h, infinity.h, nan.h.
1363         (main): Skip the test if the current rounding mode is not standard. Add
1364         tests for negative numbers, minus zero, infinity, NaN.
1365         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
1366         tests/nan.h.
1367         (Depends-on): Add isnand-nolibm.
1368
1369 2011-10-09  Bruno Haible  <bruno@clisp.org>
1370
1371         Tests for module 'copysignl'.
1372         * modules/copysignl-tests: New file.
1373         * tests/test-copysignl.c: New file.
1374
1375         New module 'copysignl'.
1376         * lib/math.in.h (copysignl): New declaration.
1377         * lib/copysignl.c: New file.
1378         * m4/copysignl.m4: New file.
1379         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
1380         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
1381         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
1382         HAVE_COPYSIGNL.
1383         * modules/copysignl: New file.
1384         * tests/test-math-c++.cc: Check the declaration of copysignl.
1385         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
1386         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
1387         * doc/posix-functions/copysignl.texi: Mention the new module.
1388
1389 2011-10-09  Bruno Haible  <bruno@clisp.org>
1390
1391         Tests for module 'copysignf'.
1392         * modules/copysignf-tests: New file.
1393         * tests/test-copysignf.c: New file.
1394
1395         New module 'copysignf'.
1396         * lib/math.in.h (copysignf): New declaration.
1397         * lib/copysignf.c: New file.
1398         * m4/copysignf.m4: New file.
1399         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
1400         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
1401         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
1402         HAVE_COPYSIGNF.
1403         * modules/copysignf: New file.
1404         * tests/test-math-c++.cc: Check the declaration of copysignf.
1405         * doc/posix-functions/copysignf.texi: Mention the new module.
1406
1407 2011-10-09  Bruno Haible  <bruno@clisp.org>
1408
1409         Ensure that HAVE_* variables are set to 1 before they are set to 0.
1410         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
1411         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
1412         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
1413         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
1414         gl_SIGNAL_H_DEFAULTS.
1415
1416 2011-10-09  Bruno Haible  <bruno@clisp.org>
1417
1418         poll: Make macro safer.
1419         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
1420         ac_cv_header_poll_h is not set.
1421
1422 2011-10-09  Bruno Haible  <bruno@clisp.org>
1423
1424         copysign: Provide replacement.
1425         * lib/math.in.h (copysign): New declaration.
1426         * lib/copysign.c: New file.
1427         * m4/copysign.m4: New file.
1428         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
1429         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
1430         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
1431         HAVE_COPYSIGN.
1432         * modules/copysign (Description): Clarify.
1433         (Files): Add lib/copysign.c, m4/copysign.m4.
1434         (Depends-on): Add math, signbit.
1435         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
1436         gl_MATH_MODULE_INDICATOR.
1437         * tests/test-math-c++.cc: Check the declaration of copysign.
1438         * doc/posix-functions/copysign.texi: Mention the effects of the module
1439         on Minix and MSVC.
1440
1441 2011-10-09  Bruno Haible  <bruno@clisp.org>
1442
1443         isinf: Ensure macro on AIX 5.1.
1444         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
1445         macro.
1446         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
1447
1448 2011-10-09  Bruno Haible  <bruno@clisp.org>
1449
1450         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
1451         * modules/snprintf-posix-tests (configure.ac): Require
1452         gl_LONG_DOUBLE_VS_DOUBLE.
1453         * modules/sprintf-posix-tests (configure.ac): Likewise.
1454         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
1455         * modules/vasprintf-posix-tests (configure.ac): Likewise.
1456         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
1457         * modules/vsprintf-posix-tests (configure.ac): Likewise.
1458         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
1459         tests on platforms where 'long double' is the same as 'double'.
1460         * tests/test-sprintf-posix.h (test_function): Likewise.
1461         * tests/test-vasnprintf-posix.c (test_function): Likewise.
1462         * tests/test-vasprintf-posix.c (test_function): Likewise.
1463
1464         *printf: Fix for platforms where 'long double' == 'double'.
1465         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
1466         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
1467         * modules/dprintf-posix (Files): Add m4/math_h.m4.
1468         * modules/fprintf-posix (Files): Likewise.
1469         * modules/obstack-printf-posix (Files): Likewise.
1470         * modules/snprintf-posix (Files): Likewise.
1471         * modules/sprintf-posix (Files): Likewise.
1472         * modules/vasnprintf (Files): Likewise.
1473         * modules/vasnprintf-posix (Files): Likewise.
1474         * modules/vasprintf-posix (Files): Likewise.
1475         * modules/vdprintf-posix (Files): Likewise.
1476         * modules/vfprintf-posix (Files): Likewise.
1477         * modules/vsnprintf-posix (Files): Likewise.
1478         * modules/vsprintf-posix (Files): Likewise.
1479         * modules/unistdio/u8-vasnprintf (Files): Likewise.
1480         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
1481         * modules/unistdio/u16-vasnprintf (Files): Likewise.
1482         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
1483         * modules/unistdio/u32-vasnprintf (Files): Likewise.
1484         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
1485         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
1486
1487         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
1488         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
1489         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1490         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
1491         'long double'.
1492         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
1493
1494         isinf: Fix for platforms where 'long double' == 'double'.
1495         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
1496         Don't blindly assume 80-bit 'long double'.
1497
1498         isfinite: Fix for platforms where 'long double' == 'double'.
1499         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
1500         Don't blindly assume 80-bit 'long double'.
1501
1502         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
1503         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
1504         * modules/isfinite-tests (configure.ac): Require
1505         gl_LONG_DOUBLE_VS_DOUBLE.
1506         * modules/isinf-tests (configure.ac): Likewise.
1507         * modules/isnan-tests (configure.ac): Likewise.
1508         * modules/isnanl-tests (configure.ac): Likewise.
1509         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
1510         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
1511         tests on platforms where 'long double' is the same as 'double'.
1512         * tests/test-isinf.c (test_isinfl): Likewise.
1513         * tests/test-isnan.c (test_long_double): Likewise.
1514         * tests/test-isnanl.h (main): Likewise.
1515
1516 2011-10-08  Bruno Haible  <bruno@clisp.org>
1517
1518         Tests for module 'tanhf'.
1519         * modules/tanhf-tests: New file.
1520         * tests/test-tanhf.c: New file.
1521
1522         New module 'tanhf'.
1523         * lib/math.in.h (tanhf): New declaration.
1524         * lib/tanhf.c: New file.
1525         * m4/tanhf.m4: New file.
1526         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
1527         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
1528         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
1529         * modules/tanhf: New file.
1530         * tests/test-math-c++.cc: Check the declaration of tanhf.
1531         * doc/posix-functions/tanhf.texi: Mention the new module.
1532
1533         tanh: Use a .m4 file.
1534         * m4/tanh.m4: New file.
1535         * modules/tanh (Files): Add it.
1536         (configure.ac): Just invoke gl_FUNC_TANH.
1537
1538 2011-10-08  Bruno Haible  <bruno@clisp.org>
1539
1540         Tests for module 'coshf'.
1541         * modules/coshf-tests: New file.
1542         * tests/test-coshf.c: New file.
1543
1544         New module 'coshf'.
1545         * lib/math.in.h (coshf): New declaration.
1546         * lib/coshf.c: New file.
1547         * m4/coshf.m4: New file.
1548         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
1549         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
1550         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
1551         * modules/coshf: New file.
1552         * tests/test-math-c++.cc: Check the declaration of coshf.
1553         * doc/posix-functions/coshf.texi: Mention the new module.
1554
1555         cosh: Use a .m4 file.
1556         * m4/cosh.m4: New file.
1557         * modules/cosh (Files): Add it.
1558         (configure.ac): Just invoke gl_FUNC_COSH.
1559
1560 2011-10-08  Bruno Haible  <bruno@clisp.org>
1561
1562         Tests for module 'sinhf'.
1563         * modules/sinhf-tests: New file.
1564         * tests/test-sinhf.c: New file.
1565
1566         New module 'sinhf'.
1567         * lib/math.in.h (sinhf): New declaration.
1568         * lib/sinhf.c: New file.
1569         * m4/sinhf.m4: New file.
1570         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
1571         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
1572         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
1573         * modules/sinhf: New file.
1574         * tests/test-math-c++.cc: Check the declaration of sinhf.
1575         * doc/posix-functions/sinhf.texi: Mention the new module.
1576
1577         sinh: Use a .m4 file.
1578         * m4/sinh.m4: New file.
1579         * modules/sinh (Files): Add it.
1580         (configure.ac): Just invoke gl_FUNC_SINH.
1581
1582 2011-10-08  Bruno Haible  <bruno@clisp.org>
1583
1584         Tests for module 'atan2f'.
1585         * modules/atan2f-tests: New file.
1586         * tests/test-atan2f.c: New file.
1587
1588         New module 'atan2f'.
1589         * lib/math.in.h (atan2f): New declaration.
1590         * lib/atan2f.c: New file.
1591         * m4/atan2f.m4: New file.
1592         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
1593         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
1594         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
1595         * modules/atan2f: New file.
1596         * tests/test-math-c++.cc: Check the declaration of atan2f.
1597         * doc/posix-functions/atan2f.texi: Mention the new module.
1598
1599         atan2: Use a .m4 file.
1600         * m4/atan2.m4: New file.
1601         * modules/atan2 (Files): Add it.
1602         (configure.ac): Just invoke gl_FUNC_ATAN2.
1603
1604 2011-10-08  Bruno Haible  <bruno@clisp.org>
1605
1606         Tests for module 'atanf'.
1607         * modules/atanf-tests: New file.
1608         * tests/test-atanf.c: New file.
1609
1610         New module 'atanf'.
1611         * lib/math.in.h (atanf): New declaration.
1612         * lib/atanf.c: New file.
1613         * m4/atanf.m4: New file.
1614         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
1615         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
1616         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
1617         * modules/atanf: New file.
1618         * tests/test-math-c++.cc: Check the declaration of atanf.
1619         * doc/posix-functions/atanf.texi: Mention the new module.
1620
1621         atan: Use a .m4 file.
1622         * m4/atan.m4: New file.
1623         * modules/atan (Files): Add it.
1624         (configure.ac): Just invoke gl_FUNC_ATAN.
1625
1626 2011-10-08  Bruno Haible  <bruno@clisp.org>
1627
1628         Tests for module 'acosf'.
1629         * modules/acosf-tests: New file.
1630         * tests/test-acosf.c: New file.
1631
1632         New module 'acosf'.
1633         * lib/math.in.h (acosf): New declaration.
1634         * lib/acosf.c: New file.
1635         * m4/acosf.m4: New file.
1636         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
1637         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
1638         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
1639         * modules/acosf: New file.
1640         * tests/test-math-c++.cc: Check the declaration of acosf.
1641         * doc/posix-functions/acosf.texi: Mention the new module.
1642
1643         acos: Use a .m4 file.
1644         * m4/acos.m4: New file.
1645         * modules/acos (Files): Add it.
1646         (configure.ac): Just invoke gl_FUNC_ACOS.
1647
1648 2011-10-08  Bruno Haible  <bruno@clisp.org>
1649
1650         Tests for module 'asinf'.
1651         * modules/asinf-tests: New file.
1652         * tests/test-asinf.c: New file.
1653
1654         New module 'asinf'.
1655         * lib/math.in.h (asinf): New declaration.
1656         * lib/asinf.c: New file.
1657         * m4/asinf.m4: New file.
1658         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
1659         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
1660         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
1661         * modules/asinf: New file.
1662         * tests/test-math-c++.cc: Check the declaration of asinf.
1663         * doc/posix-functions/asinf.texi: Mention the new module.
1664
1665         asin: Use a .m4 file.
1666         * m4/asin.m4: New file.
1667         * modules/asin (Files): Add it.
1668         (configure.ac): Just invoke gl_FUNC_ASIN.
1669
1670 2011-10-08  Bruno Haible  <bruno@clisp.org>
1671
1672         Tests for module 'tanf'.
1673         * modules/tanf-tests: New file.
1674         * tests/test-tanf.c: New file.
1675
1676         New module 'tanf'.
1677         * lib/math.in.h (tanf): New declaration.
1678         * lib/tanf.c: New file.
1679         * m4/tanf.m4: New file.
1680         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
1681         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
1682         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
1683         * modules/tanf: New file.
1684         * tests/test-math-c++.cc: Check the declaration of tanf.
1685         * doc/posix-functions/tanf.texi: Mention the new module.
1686
1687         tan: Use a .m4 file.
1688         * m4/tan.m4: New file.
1689         * modules/tan (Files): Add it.
1690         (configure.ac): Just invoke gl_FUNC_TAN.
1691
1692 2011-10-08  Bruno Haible  <bruno@clisp.org>
1693
1694         Tests for module 'cosf'.
1695         * modules/cosf-tests: New file.
1696         * tests/test-cosf.c: New file.
1697
1698         New module 'cosf'.
1699         * lib/math.in.h (cosf): New declaration.
1700         * lib/cosf.c: New file.
1701         * m4/cosf.m4: New file.
1702         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
1703         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
1704         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
1705         * modules/cosf: New file.
1706         * tests/test-math-c++.cc: Check the declaration of cosf.
1707         * doc/posix-functions/cosf.texi: Mention the new module.
1708
1709         cos: Use a .m4 file.
1710         * m4/cos.m4: New file.
1711         * modules/cos (Files): Add it.
1712         (configure.ac): Just invoke gl_FUNC_COS.
1713
1714 2011-10-08  Bruno Haible  <bruno@clisp.org>
1715
1716         Tests for module 'sinf'.
1717         * modules/sinf-tests: New file.
1718         * tests/test-sinf.c: New file.
1719
1720         New module 'sinf'.
1721         * lib/math.in.h (sinf): New declaration.
1722         * lib/sinf.c: New file.
1723         * m4/sinf.m4: New file.
1724         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
1725         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
1726         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
1727         * modules/sinf: New file.
1728         * tests/test-math-c++.cc: Check the declaration of sinf.
1729         * doc/posix-functions/sinf.texi: Mention the new module.
1730
1731         sin: Use a .m4 file.
1732         * m4/sin.m4: New file.
1733         * modules/sin (Files): Add it.
1734         (configure.ac): Just invoke gl_FUNC_SIN.
1735
1736 2011-10-08  Bruno Haible  <bruno@clisp.org>
1737
1738         Tests for module 'powf'.
1739         * modules/powf-tests: New file.
1740         * tests/test-powf.c: New file.
1741
1742         New module 'powf'.
1743         * lib/math.in.h (powf): New declaration.
1744         * lib/powf.c: New file.
1745         * m4/powf.m4: New file.
1746         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
1747         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
1748         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
1749         * modules/powf: New file.
1750         * tests/test-math-c++.cc: Check the declaration of powf.
1751         * doc/posix-functions/powf.texi: Mention the new module.
1752
1753         pow: Use a .m4 file.
1754         * m4/pow.m4: New file.
1755         * modules/pow (Files): Add it.
1756         (configure.ac): Just invoke gl_FUNC_POW.
1757
1758 2011-10-08  Bruno Haible  <bruno@clisp.org>
1759
1760         Tests for module 'log10f'.
1761         * modules/log10f-tests: New file.
1762         * tests/test-log10f.c: New file.
1763
1764         New module 'log10f'.
1765         * lib/math.in.h (log10f): New declaration.
1766         * lib/log10f.c: New file.
1767         * m4/log10f.m4: New file.
1768         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
1769         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
1770         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
1771         * modules/log10f: New file.
1772         * tests/test-math-c++.cc: Check the declaration of log10f.
1773         * doc/posix-functions/log10f.texi: Mention the new module.
1774
1775         log10: Use a .m4 file.
1776         * m4/log10.m4: New file.
1777         * modules/log10 (Files): Add it.
1778         (configure.ac): Just invoke gl_FUNC_LOG10.
1779
1780 2011-10-08  Bruno Haible  <bruno@clisp.org>
1781
1782         Tests for module 'logf'.
1783         * modules/logf-tests: New file.
1784         * tests/test-logf.c: New file.
1785
1786         New module 'logf'.
1787         * lib/math.in.h (logf): New declaration.
1788         * lib/logf.c: New file.
1789         * m4/logf.m4: New file.
1790         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
1791         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
1792         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
1793         * modules/logf: New file.
1794         * tests/test-math-c++.cc: Check the declaration of logf.
1795         * doc/posix-functions/logf.texi: Mention the new module.
1796
1797         log: Use a .m4 file.
1798         * m4/log.m4: New file.
1799         * modules/log (Files): Add it.
1800         (configure.ac): Just invoke gl_FUNC_LOG.
1801
1802 2011-10-08  Bruno Haible  <bruno@clisp.org>
1803
1804         Tests for module 'expf'.
1805         * modules/expf-tests: New file.
1806         * tests/test-expf.c: New file.
1807
1808         New module 'expf'.
1809         * lib/math.in.h (expf): New declaration.
1810         * lib/expf.c: New file.
1811         * m4/expf.m4: New file.
1812         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
1813         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
1814         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
1815         * modules/expf: New file.
1816         * tests/test-math-c++.cc: Check the declaration of expf.
1817         * doc/posix-functions/expf.texi: Mention the new module.
1818
1819         exp: Use a .m4 file.
1820         * m4/exp.m4: New file.
1821         * modules/exp (Files): Add it.
1822         (configure.ac): Just invoke gl_FUNC_EXP.
1823
1824 2011-10-08  Bruno Haible  <bruno@clisp.org>
1825
1826         Tests for module 'sqrtf'.
1827         * modules/sqrtf-tests: New file.
1828         * tests/test-sqrtf.c: New file.
1829
1830         New module 'sqrtf'.
1831         * lib/math.in.h (sqrtf): New declaration.
1832         * lib/sqrtf.c: New file.
1833         * m4/sqrtf.m4: New file.
1834         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
1835         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
1836         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
1837         * modules/sqrtf: New file.
1838         * tests/test-math-c++.cc: Check the declaration of sqrtf.
1839         * doc/posix-functions/sqrtf.texi: Mention the new module.
1840
1841 2011-10-08  Bruno Haible  <bruno@clisp.org>
1842
1843         Tests: Avoid link failures w.r.t. libintl.
1844         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
1845         $(LIBINTL).
1846         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
1847         $(LIBINTL).
1848         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
1849         against $(LIBINTL).
1850         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
1851         $(LIBINTL).
1852         * modules/openat-tests (Makefile.am): Link test-fchmodat against
1853         $(LIBINTL).
1854         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
1855
1856 2011-10-08  Bruno Haible  <bruno@clisp.org>
1857
1858         pow tests: Defeat compiler optimizations.
1859         * tests/test-pow.c (main): Assign arguments to x and y before use.
1860
1861 2011-10-08  Bruno Haible  <bruno@clisp.org>
1862
1863         gnulib-tool: Improve last commit.
1864         * gnulib-tool (func_modules_transitive_closure): Simplify code.
1865         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
1866         ignore dependencies that are not among the modules list.
1867
1868 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
1869
1870         gnulib-tool: don't follow dependencies to avoided modules
1871         This fixes a bug that is related to the previous one.
1872         * gnulib-tool (func_modules_transitive_closure)
1873         (func_emit_autoconf_snippets):
1874         Check whether a dependency is acceptable before using it.
1875         (--extract-dependencies): Report an error if --avoid is also used,
1876         since this combination of options is not yet supported.
1877
1878         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
1879         Problem reported by Peter Dyballa in
1880         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
1881         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
1882         when echoing "$condition".
1883
1884 2011-10-07  Bruno Haible  <bruno@clisp.org>
1885
1886         Fix documentation about math functions on MacOS X.
1887         * doc/posix-functions/exp2.texi: Don't say the function is missing on
1888         MacOS X 10.5.
1889         * doc/posix-functions/fdim.texi: Likewise.
1890         * doc/posix-functions/feclearexcept.texi: Likewise.
1891         * doc/posix-functions/fegetenv.texi: Likewise.
1892         * doc/posix-functions/fegetround.texi: Likewise.
1893         * doc/posix-functions/feholdexcept.texi: Likewise.
1894         * doc/posix-functions/feraiseexcept.texi: Likewise.
1895         * doc/posix-functions/fesetenv.texi: Likewise.
1896         * doc/posix-functions/fesetround.texi: Likewise.
1897         * doc/posix-functions/fetestexcept.texi: Likewise.
1898         * doc/posix-functions/feupdateenv.texi: Likewise.
1899         * doc/posix-functions/fmax.texi: Likewise.
1900         * doc/posix-functions/fmin.texi: Likewise.
1901         * doc/posix-functions/log2.texi: Likewise.
1902         * doc/posix-functions/modff.texi: Likewise.
1903         * doc/posix-functions/nan.texi: Likewise.
1904         * doc/posix-functions/nanf.texi: Likewise.
1905         * doc/posix-functions/nextafterf.texi: Likewise.
1906         * doc/posix-functions/remquo.texi: Likewise.
1907
1908 2011-10-07  Bruno Haible  <bruno@clisp.org>
1909
1910         modff: Drop assumption about library that defines modff.
1911         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
1912         AC_CHECK_FUNCS.
1913         * modules/modff (Files): Add m4/mathfunc.m4.
1914
1915 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
1916
1917         raise tests: Avoid a GCC warning.
1918         * tests/test-raise.c (handler): Use _Noreturn.
1919
1920 2011-10-07  Bruno Haible  <bruno@clisp.org>
1921
1922         Tests for module 'ldexpf'.
1923         * modules/ldexpf-tests: New file.
1924         * tests/test-ldexpf.c: New file.
1925
1926         New module 'ldexpf'.
1927         * lib/math.in.h (ldexpf): New declaration.
1928         * lib/ldexpf.c: New file.
1929         * m4/ldexpf.m4: New file.
1930         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
1931         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
1932         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
1933         * modules/ldexpf: New file.
1934         * tests/test-math-c++.cc: Check the declaration of ldexpf.
1935         * doc/posix-functions/ldexpf.texi: Mention the new module.
1936
1937 2011-10-06  Bruno Haible  <bruno@clisp.org>
1938
1939         frexpf: Work around problems on IRIX and mingw.
1940         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
1941         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
1942         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
1943         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
1944         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
1945         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
1946         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
1947
1948 2011-10-06  Bruno Haible  <bruno@clisp.org>
1949
1950         fabsf: Drop assumption about library that defines fabsf.
1951         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
1952         AC_CHECK_FUNCS.
1953         * modules/fabsf (Files): Add m4/mathfunc.m4.
1954
1955 2011-10-06  Bruno Haible  <bruno@clisp.org>
1956
1957         frexpf: Drop assumption about library that defines frexpf.
1958         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
1959         'int *', 'float *', 'long double *', 'float', 'long double'.
1960         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
1961         AC_CHECK_FUNCS.
1962         * modules/frexpf (Files): Add m4/mathfunc.m4.
1963
1964         Tests for module 'frexpf'.
1965         * modules/frexpf-tests: New file.
1966         * tests/test-frexpf.c: New file.
1967
1968         New module 'frexpf'.
1969         * lib/math.in.h (frexpf): New declaration.
1970         * lib/frexpf.c: New file.
1971         * m4/frexpf.m4: New file.
1972         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
1973         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
1974         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
1975         * modules/frexpf: New file.
1976         * tests/test-math-c++.cc: Check the declaration of frexpf.
1977         * doc/posix-functions/frexpf.texi: Mention the new module.
1978
1979 2011-10-06  Bruno Haible  <bruno@clisp.org>
1980
1981         math: Sort function declarations of math.in.h.
1982         * lib/math.in.h (frexp, logb): Move declarations.
1983
1984 2011-10-05  Bruno Haible  <bruno@clisp.org>
1985
1986         Tests for module 'modff'.
1987         * modules/modff-tests: New file.
1988         * tests/test-modff.c: New file.
1989
1990         New module 'modff'.
1991         * lib/math.in.h (modff): New declaration.
1992         * lib/modff.c: New file.
1993         * m4/modff.m4: New file.
1994         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
1995         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
1996         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
1997         * modules/modff: New file.
1998         * tests/test-math-c++.cc: Check the declaration of modff.
1999         * doc/posix-functions/modff.texi: Mention the new module.
2000
2001         modf tests: Make test sharper.
2002         * tests/test-modf.c (main): Strengthen upper bound.
2003
2004         modf: Use a .m4 file.
2005         * m4/modf.m4: New file.
2006         * modules/modf (Files): Add it.
2007         (configure.ac): Just invoke gl_FUNC_MODF.
2008
2009 2011-10-05  Bruno Haible  <bruno@clisp.org>
2010
2011         Tests for module 'fmodf'.
2012         * modules/fmodf-tests: New file.
2013         * tests/test-fmodf.c: New file.
2014
2015         New module 'fmodf'.
2016         * lib/math.in.h (fmodf): New declaration.
2017         * lib/fmodf.c: New file.
2018         * m4/fmodf.m4: New file.
2019         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
2020         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
2021         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
2022         * modules/fmodf: New file.
2023         * tests/test-math-c++.cc: Check the declaration of fmodf.
2024         * doc/posix-functions/fmodf.texi: Mention the new module.
2025
2026         fmod: Use a .m4 file.
2027         * m4/fmod.m4: New file.
2028         * modules/fmod (Files): Add it.
2029         (configure.ac): Just invoke gl_FUNC_FMOD.
2030
2031 2011-10-05  Bruno Haible  <bruno@clisp.org>
2032
2033         Tests for module 'fabsf'.
2034         * modules/fabsf-tests: New file.
2035         * tests/test-fabsf.c: New file.
2036
2037         New module 'fabsf'.
2038         * lib/math.in.h (fabsf): New declaration.
2039         * lib/fabsf.c: New file.
2040         * m4/fabsf.m4: New file.
2041         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
2042         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
2043         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
2044         * modules/fabsf: New file.
2045         * tests/test-math-c++.cc: Check the declaration of fabsf.
2046         * doc/posix-functions/fabsf.texi: Mention the new module.
2047
2048         fabs: Use a .m4 file.
2049         * m4/fabs.m4: New file.
2050         * modules/fabs (Files): Add it.
2051         (configure.ac): Just invoke gl_FUNC_FABS.
2052
2053 2011-10-05  Jim Meyering  <meyering@redhat.com>
2054
2055         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
2056         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
2057         ls -lL regression introduced in coreutils-8.12, it does so at the
2058         cost of an additional stat call in the common case.  Besides, now
2059         that the kernel change that prompted commit 95f7c57f has been reverted
2060         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
2061         we have no use for commit 95f7c57f, "file-has-acl: use
2062         acl_extended_file_nofollow if available".
2063
2064 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
2065
2066         file-has-acl: revert unintended change in behavior of ls -L
2067         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
2068         derived from...
2069         (file_has_acl): ...code here.  Call it.
2070         This problem was introduced with 2011-07-22 commit 95f7c57f,
2071         "file-has-acl: use acl_extended_file_nofollow if available".
2072         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
2073
2074 2011-10-03  Bruno Haible  <bruno@clisp.org>
2075
2076         poll: Avoid link errors on MSVC.
2077         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
2078         * modules/poll (Depends-on): Add sockets.
2079         (Link): New section.
2080         * NEWS: Mention the change.
2081         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
2082         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
2083         $(LIB_POLL) instead of $(LIBSOCKET).
2084
2085 2011-10-03  Bruno Haible  <bruno@clisp.org>
2086
2087         sys_select tests: Fix link error on MSVC 9.
2088         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
2089         with $(LIB_SELECT) instead of $(LIBSOCKET).
2090
2091 2011-10-03  Bruno Haible  <bruno@clisp.org>
2092
2093         sys_select: Fix compilation error on mingw.
2094         * lib/sys_select.in.h: On native Windows, include <io.h>.
2095
2096 2011-10-03  Bruno Haible  <bruno@clisp.org>
2097
2098         wmemset: Support for MSVC.
2099         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
2100         whether wmemset() exists.
2101
2102 2011-10-03  Bruno Haible  <bruno@clisp.org>
2103
2104         wmemmove: Support for MSVC.
2105         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
2106         whether wmemmove() exists.
2107
2108 2011-10-03  Bruno Haible  <bruno@clisp.org>
2109
2110         wmemcpy: Support for MSVC.
2111         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
2112         whether wmemcpy() exists.
2113
2114 2011-10-03  Bruno Haible  <bruno@clisp.org>
2115
2116         wmemcmp: Support for MSVC.
2117         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
2118         whether wmemcmp() exists.
2119
2120 2011-10-03  Bruno Haible  <bruno@clisp.org>
2121
2122         wmemchr: Support for MSVC.
2123         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
2124         whether wmemchr() exists.
2125
2126 2011-10-03  Bruno Haible  <bruno@clisp.org>
2127
2128         glthread/*, strsignal: Support for MSVC.
2129         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
2130         including <winsock.h> on MSVC 9.
2131         * lib/glthread/lock.h: Likewise.
2132         * lib/glthread/thread.h: Likewise.
2133         * lib/glthread/tls.h: Likewise.
2134         * lib/glthread/yield.h: Likewise.
2135         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
2136         if HAVE_UNISTD_H is false.
2137         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
2138
2139 2011-10-03  Bruno Haible  <bruno@clisp.org>
2140
2141         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
2142         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
2143         Set to 100000.
2144
2145 2011-10-03  Bruno Haible  <bruno@clisp.org>
2146
2147         acl: Fix specification.
2148         * lib/file-has-acl.c (file_has_acl): Fix specification.
2149
2150 2011-10-03  Bruno Haible  <bruno@clisp.org>
2151
2152         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
2153         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
2154         (compute_curr_prefix, shared_library_fullname,
2155         find_shared_library_fullname, get_shared_library_fullname, relocate):
2156         Use it together with PIC && INSTALLDIR.
2157         Reported by <jojelino@gmail.com>
2158         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
2159
2160 2011-10-01  Jim Meyering  <meyering@redhat.com>
2161
2162         maint.mk: adjust a release-related rule not to require use of gzip
2163         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
2164         Instead, check each file in $(DIST_ARCHIVES).  This is better for
2165         projects that build only .tar.xz files.  Also fix an erroneous test.
2166
2167         test-linkat: don't leave behind a temporary file
2168         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
2169         Otherwise, coreutils' "make distcheck" would fail with this:
2170           Only in /c/cu/tests/torture/coreutils/test/\
2171             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
2172           make[2]: *** [my-distcheck] Error 1
2173
2174         float, math: add omitted file
2175         * lib/itold.c: Add file, required for yesterday's float change.
2176
2177 2011-10-01  Bruno Haible  <bruno@clisp.org>
2178
2179         isinf: Fix for OpenBSD/x86.
2180         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
2181         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
2182         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
2183
2184 2011-10-01  Bruno Haible  <bruno@clisp.org>
2185
2186         isfinite: Fix syntax error in configure test.
2187         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
2188
2189         isfinite: Fix typo.
2190         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
2191         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
2192
2193 2011-10-01  Bruno Haible  <bruno@clisp.org>
2194
2195         nonblocking tests: Fix test failure on Linux/IA-64.
2196         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
2197         Set to 270000.
2198
2199 2011-10-01  Bruno Haible  <bruno@clisp.org>
2200
2201         mkfifoat tests: Fix a test failure on mingw.
2202         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
2203         with error ENOSYS.
2204
2205 2011-09-30  Bruno Haible  <bruno@clisp.org>
2206
2207         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
2208         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
2209         'long double'. Set REPLACE_ITOLD.
2210         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
2211         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
2212         * lib/itold.c: New file.
2213         * modules/float (Files): Add lib/itold.c.
2214         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
2215         (Makefile.am): Substitute REPLACE_ITOLD.
2216         * modules/math (Depends-on): Add float.
2217         (Makefile.am): Substitute REPLACE_ITOLD.
2218         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
2219         * doc/posix-headers/math.texi: Likewise.
2220         * doc/posix-functions/logl.texi: Likewise.
2221
2222 2011-09-30  Bruno Haible  <bruno@clisp.org>
2223
2224         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
2225         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
2226         Set to 140000.
2227
2228 2011-09-30  Bruno Haible  <bruno@clisp.org>
2229
2230         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
2231         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
2232         invocation, say "right after AC_PROG_CC_STDC", not "right after
2233         AC_PROG_CC".
2234         Reported by Gary V. Vaughan <gary@gnu.org>.
2235
2236 2011-09-30  Bruno Haible  <bruno@clisp.org>
2237
2238         Centralize C99 requirement.
2239         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
2240         * modules/stdarg (configure.ac-early): Invoke it instead of
2241         AC_PROG_CC_STDC.
2242         Reported by Gary V. Vaughan and Paul Eggert.
2243
2244 2011-09-29  Bruno Haible  <bruno@clisp.org>
2245
2246         float: Fix LDBL_MAX value on Linux/PowerPC.
2247         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
2248         on Linux/PowerPC.
2249         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
2250         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
2251         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
2252         platform.
2253         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
2254
2255 2011-09-29  Bruno Haible  <bruno@clisp.org>
2256
2257         doc: Improve doc about gl_EARLY.
2258         * doc/gnulib-tool.texi (Initial import): Mention where to place an
2259         AC_PROG_CC_STDC invocation.
2260         Reported by Gary V. Vaughan <gary@gnu.org>.
2261
2262 2011-09-28  Bruno Haible  <bruno@clisp.org>
2263
2264         fgetc, fputc, fread, fwrite tests: Fix link error.
2265         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
2266         on non-MSVC platforms.
2267         * tests/test-fputc.c (main): Likewise.
2268         * tests/test-fread.c (main): Likewise.
2269         * tests/test-fwrite.c (main): Likewise.
2270         Reported by Jim Meyering.
2271
2272 2011-09-27  Bruno Haible  <bruno@clisp.org>
2273
2274         fputc, fwrite tests: Avoid test failure on MSVC.
2275         * tests/test-fgetc.c: Include msvc-inval.h.
2276         (main): Invoke gl_msvc_inval_ensure_handler.
2277         * tests/test-fputc.c: Include msvc-inval.h.
2278         (main): Invoke gl_msvc_inval_ensure_handler.
2279         * tests/test-fread.c: Include msvc-inval.h.
2280         (main): Invoke gl_msvc_inval_ensure_handler.
2281         * tests/test-fwrite.c: Include msvc-inval.h.
2282         (main): Invoke gl_msvc_inval_ensure_handler.
2283         * modules/fgetc-tests (Depends-on): Add msvc-inval.
2284         * modules/fputc-tests (Depends-on): Likewise.
2285         * modules/fread-tests (Depends-on): Likewise.
2286         * modules/fwrite-tests (Depends-on): Likewise.
2287
2288 2011-09-27  Bruno Haible  <bruno@clisp.org>
2289
2290         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
2291         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
2292         (raise): Remove older, duplicated declaration.
2293         (_gl_raise_SIGPIPE): New declaration.
2294         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
2295         (rpl_raise): Remove function.
2296         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
2297         a gnulib-defined SIGPIPE here.
2298         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
2299         'sigprocmask' has detected missing signal-blocking and the module
2300         'sigpipe' is enabled.
2301         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
2302
2303 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
2304
2305         base64-tests: avoid memory leak
2306         * tests/test-base64.c (main): Plug memory leak.
2307
2308         base32: new module
2309         * modules/base32: New module.
2310         * lib/base32.c: New file.
2311         * lib/base32.h: Likewise.
2312         * m4/base32.m4: Likewise.
2313         * modules/base32-tests: New test.
2314         * tests/test-base32.c: Likewise.
2315         * MODULES.html.sh (Misc): Mention it.
2316
2317 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
2318
2319         gnulib: use more-standard license notice wording
2320         * gnulib-tool (func_emit_copyright_notice): When emitting a
2321         license notice into a file, use the standard wording as suggested
2322         by the current information for GNU maintainers, except say "file"
2323         rather than "program".  The new wording gives a license version
2324         number, which addresses an issue raised by Glenn Morris in
2325         <http://lists.gnu.org/archive/html/bug-gnulib/2011-09/msg00397.html>.
2326         * m4/onceonly.m4: Use that same wording here, too.
2327
2328         dup2: minor simplification
2329         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
2330         as lib/dup2.c no longer uses 'inline'.
2331
2332 2011-09-25  Bruno Haible  <bruno@clisp.org>
2333
2334         strings: Fix compilation error on MSVC.
2335         * lib/strings.in.h: Include <stddef.h> for size_t.
2336
2337 2011-09-25  Bruno Haible  <bruno@clisp.org>
2338
2339         fflush et al.: Document limitation on MSVC.
2340         * doc/posix-functions/fflush.texi: Document possible crash in handling
2341         mode other than DEFAULT_HANDLING.
2342         * doc/posix-functions/fgetc.texi: Likewise.
2343         * doc/posix-functions/fputc.texi: Likewise.
2344         * doc/posix-functions/fread.texi: Likewise.
2345         * doc/posix-functions/fwrite.texi: Likewise.
2346
2347 2011-09-25  Bruno Haible  <bruno@clisp.org>
2348
2349         msvc-inval: Allow three invalid parameter handling modes.
2350         * lib/msvc-inval.h: Don't include <stdlib.h> here.
2351         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
2352         macros.
2353         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
2354         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
2355         SANE_LIBRARY_HANDLING as a no-op.
2356         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
2357         <stdlib.h>.
2358         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
2359
2360 2011-09-25  Bruno Haible  <bruno@clisp.org>
2361
2362         msvc-inval: Make handler multithread-safe.
2363         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
2364         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
2365         declarations.
2366         (gl_msvc_inval_current): New declaration.
2367         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
2368         Operate on the structure returned by gl_msvc_inval_current().
2369         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
2370         Remove varaiables.
2371         (tls_index, tls_initialized): New variables.
2372         (not_per_thread): New variable.
2373         (gl_msvc_inval_current): New function.
2374         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
2375         returned by gl_msvc_inval_current().
2376
2377 2011-09-25  Bruno Haible  <bruno@clisp.org>
2378
2379         msvc-inval: Install handler globally.
2380         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
2381         !_MSC_VER.
2382         (gl_msvc_invalid_parameter_handler): Remove declaration.
2383         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
2384         declarations.
2385         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
2386         Install the handler globally, don't uninstall it.
2387         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
2388         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
2389         currently valid, call RaiseException instead.
2390         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
2391         for !_MSC_VER.
2392
2393 2011-09-25  Bruno Haible  <bruno@clisp.org>
2394
2395         strerror_r-posix: Fix for MSVC 9.
2396         * lib/strerror_r.c (local_snprintf): New function.
2397         (snprintf): Define to local_snprintf, not to _snprintf.
2398
2399 2011-09-25  Bruno Haible  <bruno@clisp.org>
2400
2401         ftruncate: Support for MSVC 9.
2402         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
2403         (chsize_nothrow): New function.
2404         (chsize): Redefine as a macro.
2405         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
2406         * modules/ftruncate (Depends-on): Add msvc-inval.
2407
2408 2011-09-25  Bruno Haible  <bruno@clisp.org>
2409
2410         New module 'fstat'.
2411         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
2412         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
2413         * lib/fchdir.c (rpl_fstat): Remove function.
2414         * m4/fstat.m4: New file.
2415         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
2416         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
2417         declared.
2418         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
2419         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
2420         * modules/fstat: New file.
2421         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
2422         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
2423         is set.
2424         * doc/posix-functions/fstat.texi: Mention the new module and the
2425         problem on MSVC.
2426         * NEWS: Mention the change.
2427         * modules/acl (Depends-on): Add fstat.
2428         * modules/chdir-safer (Depends-on): Likewise.
2429         * modules/chown (Depends-on): Likewise.
2430         * modules/copy-file (Depends-on): Likewise.
2431         * modules/fchdir (Depends-on): Likewise.
2432         * modules/fdopendir (Depends-on): Likewise.
2433         * modules/fopen (Depends-on): Likewise.
2434         * modules/fts (Depends-on): Likewise.
2435         * modules/getcwd (Depends-on): Likewise.
2436         * modules/isapipe (Depends-on): Likewise.
2437         * modules/linkat (Depends-on): Likewise.
2438         * modules/lseek (Depends-on): Likewise.
2439         * modules/mkdir-p (Depends-on): Likewise.
2440         * modules/open (Depends-on): Likewise.
2441         * modules/openat (Depends-on): Likewise.
2442         * modules/read-file (Depends-on): Likewise.
2443         * modules/renameat (Depends-on): Likewise.
2444         * modules/utimens (Depends-on): Likewise.
2445
2446 2011-09-25  Bruno Haible  <bruno@clisp.org>
2447
2448         linkat: Fix compilation on MSVC 9.
2449         * lib/linkat.c: Don't include <stdint.h>.
2450
2451 2011-09-25  Bruno Haible  <bruno@clisp.org>
2452
2453         fclose: Support for MSVC 9.
2454         * lib/fclose.c: Include msvc-inval.h.
2455         (fclose_nothrow): New function.
2456         (rpl_fclose): Use it.
2457         * modules/fclose (Depends-on): Add msvc-inval.
2458         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
2459
2460 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
2461
2462         dup2: minor simplifications
2463         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
2464         that it's a performance win.
2465         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
2466         ! defined __CYGWIN__)" to "ifdef F_GETFL".
2467
2468 2011-09-24  Jim Meyering  <meyering@redhat.com>
2469
2470         test-futimens: avoid a warning from gcc -Wshadow
2471         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
2472         to avoid a shadowing warning.
2473
2474 2011-09-24  Bruno Haible  <bruno@clisp.org>
2475
2476         fdopen: Support for MSVC 9.
2477         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
2478         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
2479         * lib/fdopen.c: Include msvc-inval.h.
2480         (fdopen_nothrow): New function.
2481         (rpl_fdopen): Use it.
2482         * modules/fdopen (Depends-on): Add msvc-inval.
2483         * modules/fclose-tests (Depends-on): Add fdopen.
2484         * modules/fflush-tests (Depends-on): Likewise.
2485         * modules/fgetc-tests (Depends-on): Likewise.
2486         * modules/fputc-tests (Depends-on): Likewise.
2487         * modules/fread-tests (Depends-on): Likewise.
2488         * modules/freopen-tests (Depends-on): Likewise.
2489         * modules/fseeko-tests (Depends-on): Likewise.
2490         * modules/ftello-tests (Depends-on): Likewise.
2491         * modules/fwrite-tests  (Depends-on): Likewise.
2492         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
2493
2494 2011-09-24  Bruno Haible  <bruno@clisp.org>
2495
2496         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
2497         * modules/fgetc-tests (Depends-on): Add unistd.
2498         * modules/fputc-tests (Depends-on): Likewise.
2499         * modules/fread-tests (Depends-on): Likewise.
2500         * modules/fwrite-tests (Depends-on): Likewise.
2501
2502 2011-09-24  Bruno Haible  <bruno@clisp.org>
2503
2504         dup: Simplify autoconf test.
2505         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
2506         on gl_MSVC_INVAL's result.
2507
2508 2011-09-24  Bruno Haible  <bruno@clisp.org>
2509
2510         Tests for function fwrite().
2511         * modules/fwrite-tests: New file.
2512         * tests/test-fwrite.c: New file.
2513         * modules/stdio-tests (Depends-on): Add fwrite-tests.
2514
2515         Tests for function fread().
2516         * modules/fread-tests: New file.
2517         * tests/test-fread.c: New file.
2518         * modules/stdio-tests (Depends-on): Add fread-tests.
2519
2520         Activate fputc tests.
2521         * modules/stdio-tests (Depends-on): Add fputc-tests.
2522
2523         Enhance fgetc, fputc tests.
2524         * tests/test-fgetc.c (main): Also test the stream's error indicator.
2525         * tests/test-fputc.c (main): Likewise.
2526
2527 2011-09-24  Bruno Haible  <bruno@clisp.org>
2528
2529         write: Support for MSVC 9.
2530         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
2531         is not 1.
2532         * lib/write.c (write_nothrow): New function.
2533         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
2534         not 1. Use write_nothrow.
2535         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
2536         invalid parameter handler.
2537         (gl_PREREQ_WRITE): New macro.
2538         * modules/write (Depends-on): Add msvc-inval.
2539         (configure.ac): Invoke gl_PREREQ_WRITE.
2540         * doc/posix-functions/write.texi: Mention the problem on MSVC.
2541
2542 2011-09-24  Bruno Haible  <bruno@clisp.org>
2543
2544         read: Fix last commit.
2545         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
2546
2547 2011-09-24  Bruno Haible  <bruno@clisp.org>
2548
2549         dup2: Fix last commit.
2550         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
2551         (rpl_dup2): Disable fcntl workaround on native Windows.
2552
2553         sigprocmask: Make code safer.
2554         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
2555         section that changes macro definitions for this compilation unit.
2556
2557 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
2558
2559         dup2: clarify by coalescing Windows-specific material
2560         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
2561         "msvc-nothrow.h"' to the Windows-specific section, so that the
2562         Emacs source need not contain these include files.
2563         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
2564         Windows-specific fixes into this function rather than just the
2565         nothrow fix, as this shortens and clarifies the code.  Always
2566         define as a function, as that's a bit cleaner than having it be
2567         sometimes a function and sometimes a macro.
2568         (rpl_dup2): Move the Windows-specific stuff out of here and into
2569         ms_windows_dup2.  Don't protect the Haiku-related fix with
2570         "#if !defined __linux__", as the same code also works around
2571         a Linux kernel bug, and it doesn't add any system calls on any
2572         platform.  Add comment about FreeBSD 6.1.
2573
2574         sigprocmask: move #include directive
2575         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
2576         Windows-specific section, so that the Emacs source need not
2577         contain msvc-inval.h.
2578
2579 2011-09-23  Bruno Haible  <bruno@clisp.org>
2580
2581         read: Support for MSVC 9.
2582         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
2583         is not 1.
2584         * lib/read.c (read_nothrow): New function.
2585         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
2586         read_nothrow.
2587         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
2588         invalid parameter handler.
2589         (gl_PREREQ_READ): New macro.
2590         * modules/read (Depends-on): Add msvc-inval.
2591         (configure.ac): Invoke gl_PREREQ_READ.
2592         * doc/posix-functions/read.texi: Mention the problem on MSVC.
2593
2594 2011-09-23  Bruno Haible  <bruno@clisp.org>
2595
2596         close: Support for MSVC 9.
2597         * lib/close.c: Include <errno.h>, msvc-inval.h.
2598         (close_nothrow): New function.
2599         (rpl_close): Use it.
2600         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
2601         invalid parameter handler.
2602         * modules/close (Depends-on): Add msvc-inval.
2603         * modules/dup2-tests (Depends-on): Add close.
2604         * modules/dup3-tests (Depends-on): Likewise.
2605         * modules/fcntl-tests (Depends-on): Likewise.
2606         * modules/spawn-pipe-tests (Depends-on): Likewise.
2607         * modules/unistd-safer-tests (Depends-on): Likewise.
2608         * doc/posix-functions/close.texi: Mention the problem on MSVC.
2609
2610 2011-09-23  Bruno Haible  <bruno@clisp.org>
2611
2612         New module 'dup'.
2613         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
2614         Allow replacement.
2615         * lib/dup.c: New file.
2616         * lib/fchdir.c (rpl_dup): Remove function.
2617         * m4/dup.m4: New file.
2618         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
2619         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
2620         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
2621         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
2622         * modules/dup: New file.
2623         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
2624         'dup' module is in use.
2625         * modules/fdopendir (Depends-on): Add dup.
2626         * modules/fdutimensat-tests (Depends-on): Likewise.
2627         * modules/fts (Depends-on): Likewise.
2628         * modules/futimens-tests (Depends-on): Likewise.
2629         * modules/posix_spawnp-tests (Depends-on): Likewise.
2630         * modules/unistd-safer-tests (Depends-on): Likewise.
2631         * modules/utimens-tests (Depends-on): Likewise.
2632         * doc/posix-functions/dup.texi: Mention the new module and the problem
2633         on MSVC.
2634
2635 2011-09-23  Bruno Haible  <bruno@clisp.org>
2636
2637         getdtablesize: Support for MSVC 9.
2638         * lib/getdtablesize.c: Include msvc-inval.h.
2639         (_setmaxstdio_nothrow): New function.
2640         (_setmaxstdio): Redefine it.
2641         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
2642         * modules/getdtablesize (Depends-on): Add msvc-inval.
2643         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
2644
2645 2011-09-23  Bruno Haible  <bruno@clisp.org>
2646
2647         signal-h: Rename from signal.
2648         * modules/signal-h: Renamed from modules/signal.
2649         * modules/pthread_sigmask (Depends-on): Update.
2650         * modules/raise (Depends-on): Likewise.
2651         * modules/sigaction (Depends-on): Likewise.
2652         * modules/sigpipe (Depends-on): Likewise.
2653         * modules/sigprocmask (Depends-on): Likewise.
2654         * modules/sys_select (Depends-on): Likewise.
2655         * modules/signal-h-tests: Renamed from modules/signal-tests.
2656         (Files, Depends-on, Makefile.am): Update.
2657         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
2658         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
2659         (Files, Makefile.am): Update.
2660         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
2661         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
2662         * modules/signal: New placeholder file.
2663         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
2664         * doc/posix-headers/signal.texi: Update.
2665         * NEWS: Mention the change.
2666
2667 2011-09-23  Bruno Haible  <bruno@clisp.org>
2668
2669         sigprocmask: Avoid crashes through signal() on MSVC 9.
2670         * lib/sigprocmask.c: Include msvc-inval.h.
2671         (signal_nothrow): New function.
2672         (signal): Redefine it.
2673         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
2674         * modules/sigprocmask (Depends-on): Add msvc-inval.
2675         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
2676
2677 2011-09-23  Bruno Haible  <bruno@clisp.org>
2678
2679         Tests for module 'raise'.
2680         * modules/raise-tests: New file.
2681         * tests/test-raise.c: New file.
2682
2683         raise: Support for MSVC.
2684         * lib/signal.in.h (raise): New declaration.
2685         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
2686         for native Windows platforms.
2687         * m4/raise.m4: New file.
2688         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
2689         HAVE_RAISE, REPLACE_RAISE.
2690         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
2691         REPLACE_RAISE.
2692         * modules/raise (Status, Notice): Remove fields.
2693         (Files): Add m4/raise.m4.
2694         (Depends-on): Add signal, msvc-inval.
2695         (configure.ac): Use the common idioms.
2696         (Maintainer): Add me.
2697         * tests/test-signal-c++.cc: Check the signature of raise.
2698         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
2699
2700 2011-09-23  Bruno Haible  <bruno@clisp.org>
2701
2702         pipe2: Fix compilation on pre-C99 compilers.
2703         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
2704
2705 2011-09-23  Bruno Haible  <bruno@clisp.org>
2706
2707         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
2708         * lib/msvc-nothrow.h: New file.
2709         * lib/msvc-nothrow.c: New file.
2710         * m4/msvc-nothrow.m4: New file.
2711         * modules/msvc-nothrow: New file.
2712         * lib/dup2.c: Include msvc-nothrow.h.
2713         (rpl_dup2): No need to protect _get_osfhandle call here.
2714         * lib/accept4.c: Include msvc-nothrow.h.
2715         * lib/error.c: Likewise.
2716         * lib/fcntl.c: Likewise.
2717         * lib/lseek.c: Likewise.
2718         * lib/nonblocking.c: Likewise.
2719         * lib/poll.c: Likewise.
2720         * lib/read.c: Likewise.
2721         * lib/select.c: Likewise.
2722         * lib/sockets.h: Likewise.
2723         * lib/sockets.c: Likewise.
2724         * lib/stdio-read.c: Likewise.
2725         * lib/stdio-write.c: Likewise.
2726         * lib/write.c: Likewise.
2727         * lib/w32sock.h: Likewise.
2728         * lib/w32spawn.h: Likewise.
2729         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
2730         * lib/fsync.c: Likewise.
2731         * lib/isapipe.c: Likewise.
2732         * modules/dup2 (Depends-on): Add msvc-nothrow.
2733         * modules/accept4 (Depends-on): Likewise.
2734         * modules/error (Depends-on): Likewise.
2735         * modules/fcntl (Depends-on): Likewise.
2736         * modules/lseek (Depends-on): Likewise.
2737         * modules/nonblocking (Depends-on): Likewise.
2738         * modules/poll (Depends-on): Likewise.
2739         * modules/read (Depends-on): Likewise.
2740         * modules/select (Depends-on): Likewise.
2741         * modules/sockets (Depends-on): Likewise.
2742         * modules/sigpipe (Depends-on): Likewise.
2743         * modules/write (Depends-on): Likewise.
2744         * modules/accept (Depends-on): Likewise.
2745         * modules/bind (Depends-on): Likewise.
2746         * modules/connect (Depends-on): Likewise.
2747         * modules/gethostname (Depends-on): Likewise.
2748         * modules/getpeername (Depends-on): Likewise.
2749         * modules/getsockname (Depends-on): Likewise.
2750         * modules/getsockopt (Depends-on): Likewise.
2751         * modules/ioctl (Depends-on): Likewise.
2752         * modules/listen (Depends-on): Likewise.
2753         * modules/recv (Depends-on): Likewise.
2754         * modules/recvfrom (Depends-on): Likewise.
2755         * modules/send (Depends-on): Likewise.
2756         * modules/sendto (Depends-on): Likewise.
2757         * modules/setsockopt (Depends-on): Likewise.
2758         * modules/shutdown (Depends-on): Likewise.
2759         * modules/socket (Depends-on): Likewise.
2760         * modules/execute (Depends-on): Likewise.
2761         * modules/spawn-pipe (Depends-on): Likewise.
2762         * modules/flock (Depends-on): Likewise.
2763         * modules/fsync (Depends-on): Likewise.
2764         * modules/isapipe (Depends-on): Likewise.
2765         * tests/test-cloexec.c: Include msvc-nothrow.h.
2766         * tests/test-dup-safer.c: Likewise.
2767         * tests/test-dup2.c: Likewise.
2768         * tests/test-dup3.c: Likewise.
2769         * tests/test-fcntl.c: Likewise.
2770         * tests/test-pipe.c: Likewise.
2771         * tests/test-pipe2.c: Likewise.
2772         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
2773         * modules/unistd-safer-tests (Depends-on): Likewise.
2774         * modules/dup2-tests (Depends-on): Likewise.
2775         * modules/dup3-tests (Depends-on): Likewise.
2776         * modules/fcntl-tests (Depends-on): Likewise.
2777         * modules/pipe-posix-tests (Depends-on): Likewise.
2778         * modules/pipe2-tests (Depends-on): Likewise.
2779
2780 2011-09-23  Bruno Haible  <bruno@clisp.org>
2781
2782         dup2: Make code more maintainable.
2783         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
2784         (rpl_dup2): Use it.
2785         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
2786         * modules/dup2 (configure.ac): Invoke it.
2787         Reported by Paul Eggert.
2788
2789 2011-09-23  Bruno Haible  <bruno@clisp.org>
2790
2791         msvc-inval: Fix compilation error.
2792         * lib/msvc-inval.h: Include <excpt.h>.
2793
2794 2011-09-23  Bruno Haible  <bruno@clisp.org>
2795
2796         mkdir: Tweak for MSVC 9.
2797         * lib/sys_stat.in.h: Update comments.
2798         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
2799
2800         Tests for module 'chdir'.
2801         * modules/chdir-tests: New file.
2802         * tests/test-chdir.c: New file.
2803
2804         New module 'chdir'.
2805         * modules/chdir: New file.
2806         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
2807         (chdir): New declaration.
2808         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
2809         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
2810         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
2811         * tests/test-unistd-c++.cc: Check signature of chdir.
2812         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
2813         * modules/chdir-long (Depends-on): Add chdir.
2814         * modules/fchdir (Depends-on): Likewise.
2815         * modules/rename (Depends-on): Likewise.
2816         * modules/savewd (Depends-on): Likewise.
2817
2818         rmdir: Support for mingw, MSVC 9.
2819         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
2820         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
2821
2822         getcwd: Tweak for MSVC 9.
2823         * lib/unistd.in.h: Update comments.
2824         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
2825
2826 2011-09-22  Bruno Haible  <bruno@clisp.org>
2827
2828         strerror_r-posix: Avoid a link error on MSVC.
2829         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
2830         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
2831
2832 2011-09-22  Bruno Haible  <bruno@clisp.org>
2833
2834         select: Avoid link errors on MSVC.
2835         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
2836         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
2837         * modules/pselect (Link): Likewise.
2838         * NEWS: Mention the change.
2839         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
2840         test-select-stdin against $(LIB_SELECT).
2841         * modules/pselect-tests (Makefile.am): Link test-pselect against
2842         $(LIB_SELECT).
2843
2844 2011-09-22  Bruno Haible  <bruno@clisp.org>
2845
2846         select: Avoid compilation error on MSVC.
2847         * lib/select.c: Don't include <stdbool.h>.
2848
2849 2011-09-21  Bruno Haible  <bruno@clisp.org>
2850
2851         Consolidate all uses of PATH_MAX in *.m4 files.
2852         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
2853         macros.
2854         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
2855         and gl_PATHMAX_SNIPPET.
2856         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
2857         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
2858         * modules/chdir-long (Files): Add m4/pathmax.m4.
2859         * modules/getcwd (Files): Likewise.
2860
2861 2011-09-21  Bruno Haible  <bruno@clisp.org>
2862
2863         ftruncate: Un-deprecate, concentrate on Win32 support.
2864         * modules/ftruncate (Status, Notice): Remove sections.
2865         (Depends-on): Add largefile.
2866         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
2867         non-mingw platforms.
2868         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
2869         include <io.h>.
2870         * modules/perror-tests (Depends-on): Add ftruncate.
2871         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
2872         'ftruncate' module.
2873
2874 2011-09-21  Bruno Haible  <bruno@clisp.org>
2875
2876         Add dependencies to new dirent related modules.
2877         * modules/opendir (Depends-on): Add closedir.
2878         * modules/getcwd (Depends-on): Add opendir, closedir.
2879         * modules/dirent-safer-tests (Depends-on): Likewise.
2880         * modules/fdopendir-tests (Depends-on): Likewise.
2881         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
2882         * modules/renameat-tests (Depends-on): Likewise.
2883
2884 2011-09-21  Bruno Haible  <bruno@clisp.org>
2885
2886         opendir: Avoid compilation error on mingw.
2887         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
2888         * modules/opendir (Depends-on): Add unistd.
2889
2890 2011-09-21  Bruno Haible  <bruno@clisp.org>
2891
2892         ftruncate tests: Avoid a test failure on mingw.
2893         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
2894
2895 2011-09-21  Bruno Haible  <bruno@clisp.org>
2896
2897         select tests: Avoid test failures on OSF/1 5.1 and mingw.
2898         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
2899         native Windows.
2900
2901 2011-09-21  Bruno Haible  <bruno@clisp.org>
2902
2903         New module 'fdopen'.
2904         * lib/stdio.in.h (fdopen): New declaration.
2905         * lib/fdopen.c: New file.
2906         * m4/fdopen.m4: New file.
2907         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
2908         REPLACE_FDOPEN.
2909         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
2910         REPLACE_FDOPEN.
2911         * modules/fdopen: New file.
2912         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
2913         * tests/test-stdio-c++.cc: Check signature of fdopen.
2914         * doc/posix-functions/fdopen.texi: Mention the new module.
2915
2916 2011-09-21  Bruno Haible  <bruno@clisp.org>
2917
2918         unlockpt tests: Avoid test failure on NetBSD 5.1.
2919         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
2920         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
2921
2922 2011-09-21  Bruno Haible  <bruno@clisp.org>
2923
2924         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
2925         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
2926         * tests/test-getlogin_r.c (main): Likewise.
2927
2928 2011-09-20  Bruno Haible  <bruno@clisp.org>
2929
2930         time tests: Don't require pid_t.
2931         * doc/posix-headers/time.texi: Revert last change.
2932         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
2933         * tests/test-time.c: Comment out the check for pid_t.
2934
2935 2011-09-20  Bruno Haible  <bruno@clisp.org>
2936
2937         fsync tests: Avoid a test failure on mingw.
2938         * tests/test-fsync.c (main): Allow a failure with EIO.
2939
2940 2011-09-20  Bruno Haible  <bruno@clisp.org>
2941
2942         euidaccess: Update comments.
2943         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
2944
2945 2011-09-20  Bruno Haible  <bruno@clisp.org>
2946
2947         Ensure EBADF returns for socket functions on mingw.
2948         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
2949         descriptor is invalid.
2950         * lib/bind.c (rpl_bind): Likewise.
2951         * lib/connect.c (rpl_connect): Likewise.
2952         * lib/getpeername.c (rpl_getpeername): Likewise.
2953         * lib/getsockname.c (rpl_getsockname): Likewise.
2954         * lib/getsockopt.c (rpl_getsockopt): Likewise.
2955         * lib/listen.c (rpl_listen): Likewise.
2956         * lib/recv.c (rpl_recv): Likewise.
2957         * lib/recvfrom.c (rpl_recvfrom): Likewise.
2958         * lib/send.c (rpl_send): Likewise.
2959         * lib/sendto.c (rpl_sendto): Likewise.
2960         * lib/setsockopt.c (rpl_setsockopt): Likewise.
2961         * lib/shutdown.c (rpl_shutdown): Likewise.
2962
2963 2011-09-20  Bruno Haible  <bruno@clisp.org>
2964
2965         select tests: EBADF tests.
2966         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
2967         test_bad_fd): New functions.
2968         (test_function): Invoke also test_bad_fd.
2969
2970 2011-09-20  Bruno Haible  <bruno@clisp.org>
2971
2972         Tests for module 'posix_spawn_file_actions_addopen.
2973         * modules/posix_spawn_file_actions_addopen-tests: New file.
2974         * tests/test-posix_spawn_file_actions_addopen.c: New file.
2975
2976         Tests for module 'posix_spawn_file_actions_adddup2'.
2977         * modules/posix_spawn_file_actions_adddup2-tests: New file.
2978         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
2979
2980         Tests for module 'posix_spawn_file_actions_addclose'.
2981         * modules/posix_spawn_file_actions_addclose-tests: New file.
2982         * tests/test-posix_spawn_file_actions_addclose.c: New file.
2983
2984 2011-09-20  Bruno Haible  <bruno@clisp.org>
2985
2986         Tests for module 'unlockpt'.
2987         * modules/unlockpt-tests: New file.
2988         * tests/test-unlockpt.c: New file.
2989         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
2990
2991         Tests for module 'grantpt'.
2992         * modules/grantpt-tests: New file.
2993         * tests/test-grantpt.c: New file.
2994         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
2995
2996 2011-09-20  Bruno Haible  <bruno@clisp.org>
2997
2998         freopen tests: EBADF tests.
2999         * tests/test-freopen.c: Include errno.h, unistd.h.
3000         (main): Add tests for EBADF, commented out for the moment.
3001
3002         fclose tests: EBADF tests.
3003         * tests/test-fclose.c (main): Add tests for EBADF.
3004
3005         fflush tests: EBADF tests.
3006         * tests/test-fflush.c: Include errno.h, macros.h.
3007         (main): Add tests for EBADF.
3008
3009         ftello tests: EBADF tests.
3010         * tests/test-ftello4.sh: New file.
3011         * tests/test-ftello4.c: New file.
3012         * modules/ftello-tests (Files): Add them.
3013         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
3014
3015         fseeko tests: EBADF tests.
3016         * tests/test-fseeko4.sh: New file.
3017         * tests/test-fseeko4.c: New file.
3018         * modules/fseeko-tests (Files): Add them.
3019         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
3020
3021         Tests for function fputc().
3022         * modules/fputc-tests: New file.
3023         * tests/test-fputc.c: New file.
3024         * modules/stdio-tests (Depends-on): Add fputc-tests.
3025
3026         Tests for function fgetc().
3027         * modules/fgetc-tests: New file.
3028         * tests/test-fgetc.c: New file.
3029         * modules/stdio-tests (Depends-on): Add fgetc-tests.
3030
3031         Tests for function fdopen().
3032         * modules/fdopen-tests: New file.
3033         * tests/test-fdopen.c: New file.
3034         * modules/stdio-tests (Depends-on): Add fdopen-tests.
3035
3036         Tests for module 'vdprintf'.
3037         * modules/vdprintf-tests: New file.
3038         * tests/test-vdprintf.c: New file.
3039
3040         Tests for module 'dprintf'.
3041         * modules/dprintf-tests: New file.
3042         * tests/test-dprintf.c: New file.
3043
3044 2011-09-20  Bruno Haible  <bruno@clisp.org>
3045
3046         Tests for module 'ioctl'.
3047         * modules/ioctl-tests: New file.
3048         * tests/test-ioctl.c: New file.
3049
3050 2011-09-20  Bruno Haible  <bruno@clisp.org>
3051
3052         fcntl tests: EBADF tests.
3053         * tests/test-fcntl.c (main): Add more tests for EBADF.
3054
3055 2011-09-20  Bruno Haible  <bruno@clisp.org>
3056
3057         utimensat tests: EBADF tests.
3058         * tests/test-utimensat.c (main): Add tests for EBADF.
3059
3060         renameat tests: EBADF tests.
3061         * tests/test-renameat.c (main): Add tests for EBADF.
3062
3063         mkfifoat tests: EBADF tests.
3064         * tests/test-mkfifoat.c (main): Add tests for EBADF.
3065
3066         readlinkat tests: EBADF tests.
3067         * tests/test-readlinkat.c (main): Add tests for EBADF.
3068
3069         symlinkat tests: EBADF tests.
3070         * tests/test-symlinkat.c (main): Add tests for EBADF.
3071
3072         linkat tests: EBADF tests.
3073         * tests/test-linkat.c (main): Add tests for EBADF.
3074
3075         Tests for module 'faccessat'.
3076         * modules/faccessat-tests: New file.
3077         * tests/test-faccessat.c: New file.
3078
3079         fdopendir tests: EBADF tests.
3080         * tests/test-fdopendir.c (main): Add more tests for EBADF.
3081
3082         openat tests: EBADF tests.
3083         * tests/test-fchownat.c (main): Add tests for EBADF.
3084         * tests/test-fstatat.c (main): Likewise.
3085         * tests/test-mkdirat.c (main): Likewise.
3086         * tests/test-openat.c (main): Likewise.
3087         * tests/test-unlinkat.c (main): Likewise.
3088         * tests/test-fchmodat.c: New file.
3089         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
3090         (Makefile.am): Also run 'test-fchmodat'.
3091
3092 2011-09-20  Bruno Haible  <bruno@clisp.org>
3093
3094         utimens, futimens, fdutimensat tests: EBADF tests.
3095         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
3096
3097         Tests for function fstat().
3098         * modules/fstat-tests: New file.
3099         * tests/test-fstat.c: New file.
3100         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
3101
3102 2011-09-20  Bruno Haible  <bruno@clisp.org>
3103
3104         test-ttyname_r tests: EBADF tests.
3105         * tests/test-ttyname_r.c (main): Add tests for EBADF.
3106
3107         Tests for module 'isatty'.
3108         * modules/isatty-tests: New file.
3109         * tests/test-isatty.c: New file.
3110
3111         Tests for module 'write'.
3112         * modules/write-tests: New file.
3113         * tests/test-write.c: New file.
3114
3115         Tests for module 'read'.
3116         * modules/read-tests: New file.
3117         * tests/test-read.c: New file.
3118
3119         pwrite tests: EBADF tests.
3120         * tests/test-pwrite.c (main): Add tests for EBADF.
3121
3122         pread tests: EBADF tests.
3123         * tests/test-pread.c (main): Add tests for EBADF.
3124
3125         lseek tests: EBADF tests.
3126         * tests/test-lseek.c (main): Add more tests for EBADF.
3127
3128         Tests for module 'ftruncate'.
3129         * modules/ftruncate-tests: New file.
3130         * tests/test-ftruncate.sh: New file.
3131         * tests/test-ftruncate.c: New file.
3132
3133         fsync tests: EBADF tests.
3134         * tests/test-fsync.c (main): Add more tests for EBADF.
3135
3136         fdatasync tests: EBADF tests.
3137         * tests/test-fdatasync.c (main): Add more tests for EBADF.
3138
3139         Tests for module 'fchown'.
3140         * modules/fchown-tests: New file.
3141         * tests/test-fchown.c: New file.
3142
3143         Tests for module 'fchmod'.
3144         * modules/fchmod-tests: New file.
3145         * tests/test-fchmod.c: New file.
3146
3147         fchdir tests: EBADF tests.
3148         * tests/test-fchdir.c (main): Add more tests for EBADF.
3149
3150         dup2 tests: EBADF tests.
3151         * tests/test-dup2.c (main): Add more tests for EBADF.
3152
3153         Tests for module 'dup'.
3154         * modules/dup-tests: New file.
3155         * tests/test-dup.c: New file.
3156
3157         Tests for module 'close'.
3158         * modules/close-tests: New file.
3159         * tests/test-close.c: New file.
3160
3161 2011-09-20  Bruno Haible  <bruno@clisp.org>
3162
3163         Tests for module 'shutdown'.
3164         * modules/shutdown-tests: New file.
3165         * tests/test-shutdown.c: New file.
3166
3167         Tests for module 'setsockopt'.
3168         * modules/setsockopt-tests: New file.
3169         * tests/test-setsockopt.c: New file.
3170
3171         Tests for module 'sendto'.
3172         * modules/sendto-tests: New file.
3173         * tests/test-sendto.c: New file.
3174
3175         Tests for module 'send'.
3176         * modules/send-tests: New file.
3177         * tests/test-send.c: New file.
3178
3179         Tests for module 'recvfrom'.
3180         * modules/recvfrom-tests: New file.
3181         * tests/test-recvfrom.c: New file.
3182
3183         Tests for module 'recv'.
3184         * modules/recv-tests: New file.
3185         * tests/test-recv.c: New file.
3186
3187         Tests for module 'listen'.
3188         * modules/listen-tests: New file.
3189         * tests/test-listen.c: New file.
3190
3191         Tests for module 'getsockopt'.
3192         * modules/getsockopt-tests: New file.
3193         * tests/test-getsockopt.c: New file.
3194
3195         Tests for module 'getsockname'.
3196         * modules/getsockname-tests: New file.
3197         * tests/test-getsockname.c: New file.
3198
3199         Tests for module 'getpeername'.
3200         * modules/getpeername-tests: New file.
3201         * tests/test-getpeername.c: New file.
3202
3203         Tests for module 'connect'.
3204         * modules/connect-tests: New file.
3205         * tests/test-connect.c: New file.
3206
3207         Tests for module 'bind'.
3208         * modules/bind-tests: New file.
3209         * tests/test-bind.c: New file.
3210
3211         accept4 tests: Fix for native Windows.
3212         * tests/test-accept4.c: Include sockets.h.
3213         (main): Invoke gl_sockets_startup.
3214         * modules/accept4-tests (Depends-on): Add sockets.
3215
3216         accept tests: Fix for native Windows.
3217         * tests/test-accept.c: Include sockets.h.
3218         (main): Invoke gl_sockets_startup.
3219         * modules/accept-tests (Depends-on): Add sockets.
3220
3221 2011-09-19  Bruno Haible  <bruno@clisp.org>
3222
3223         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
3224         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
3225         do...while(0).
3226         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
3227         Suggested by Paul Eggert.
3228
3229 2011-09-19  Bruno Haible  <bruno@clisp.org>
3230
3231         sched: Ensure pid_t is defined.
3232         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
3233         not define pid_t.
3234         * lib/sched.in.h: Include <sys/types.h>.
3235         * doc/posix-headers/sched.texi: Mention the pid_t problem.
3236         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
3237
3238 2011-09-19  Bruno Haible  <bruno@clisp.org>
3239
3240         msvc-inval: Ensure the entire expansion is a single statement.
3241         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
3242         of braces.
3243
3244 2011-09-19  Jim Meyering  <meyering@redhat.com>
3245
3246         tests: use printf, not echo in init.sh's warn_ function
3247         * tests/init.sh (warn_): Use printf, not echo.  The latter would
3248         misbehave when given strings containing a backslash or starting
3249         with e.g., -n.  James Youngman suggested setting IFS.
3250
3251 2011-09-19  Eric Blake  <eblake@redhat.com>
3252
3253         futimens: enhance test
3254         * tests/test-futimens.h (test_futimens): Also check for EBADF on
3255         closed non-negative fd.
3256
3257         date: accept 'hence' as opposite of 'ago'
3258         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
3259         * tests/test-parse-datetime.c (main): Enhance test.
3260         Suggested by Jesse Wilson.
3261
3262 2011-09-19  Jim Meyering  <meyering@redhat.com>
3263
3264         getcwd: don't fail in a deep directory on a system without openat
3265         Before this change, getcwd would fail when called from a directory
3266         of depth PATH_MAX / 3 or greater.  That was due to the fact that
3267         the non-openat implementation used "..", "../..", "../../..", etc.
3268         to access ancestor directories.  With too many, that string would
3269         be longer than PATH_MAX.
3270         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
3271         using gnulib's openat replacement.
3272         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
3273         we're using the replacement function.
3274
3275 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
3276
3277         maint.mk: avoid warnings from perl about missing files
3278         * top/maint.mk (def_sym_regex): Ignore files listed in
3279         $(gl_other_headers_) that do not exist, say because a project
3280         does not use a corresponding module.
3281
3282 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
3283
3284         stat: use pathmax.h only if needed
3285         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
3286         This is better for Emacs, which does not have a mingw port and
3287         therefore can avoid the pathmax module.
3288
3289         utimens: remove dependency on dup2
3290         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
3291         to work around the Linux kernel bug.
3292         * modules/utimens (Depends-on): Remove dup2.
3293
3294 2011-09-18  Bruno Haible  <bruno@clisp.org>
3295
3296         inet_ntop, inet_pton: Look for it also in libresolv.
3297         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
3298         libnsl, search for it in libresolv.
3299         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
3300         Needed on Solaris 7.
3301
3302 2011-09-18  Bruno Haible  <bruno@clisp.org>
3303
3304         accept, accept4 tests: Avoid link error on Solaris.
3305         * modules/accept-tests (Makefile.am): Link test-accept against
3306         $(LIBSOCKET).
3307         * modules/accept4-tests (Makefile.am): Link test-accept4 against
3308         $(LIBSOCKET).
3309
3310         accept4: Avoid link error on Solaris.
3311         * modules/accept4 (Link): New section.
3312
3313         socket functions: Avoid link errors on Solaris.
3314         * modules/accept (Depends-on): Add socketlib.
3315         (Link): New section.
3316         * modules/bind (Depends-on): Add socketlib.
3317         (Link): New section.
3318         * modules/connect (Depends-on): Add socketlib.
3319         (Link): New section.
3320         * modules/getpeername (Depends-on): Add socketlib.
3321         (Link): New section.
3322         * modules/getsockname (Depends-on): Add socketlib.
3323         (Link): New section.
3324         * modules/getsockopt (Depends-on): Add socketlib.
3325         (Link): New section.
3326         * modules/listen (Depends-on): Add socketlib.
3327         (Link): New section.
3328         * modules/recv (Depends-on): Add socketlib.
3329         (Link): New section.
3330         * modules/recvfrom (Depends-on): Add socketlib.
3331         (Link): New section.
3332         * modules/send (Depends-on): Add socketlib.
3333         (Link): New section.
3334         * modules/sendto (Depends-on): Add socketlib.
3335         (Link): New section.
3336         * modules/setsockopt (Depends-on): Add socketlib.
3337         (Link): New section.
3338         * modules/shutdown (Depends-on): Add socketlib.
3339         (Link): New section.
3340         * modules/socket (Depends-on): Add socketlib.
3341         (Link): New section.
3342
3343 2011-09-18  Bruno Haible  <bruno@clisp.org>
3344
3345         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
3346         * tests/test-ptsname.c (main): Terminate the test if it takes longer
3347         than 5 seconds.
3348         * modules/ptsname-tests (configure.ac): Test for alarm.
3349
3350 2011-09-18  Bruno Haible  <bruno@clisp.org>
3351
3352         posix_spawn_file_actions_add*: Fix module dependencies.
3353         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
3354         posix_spawn_file_actions_init.
3355         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
3356         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
3357
3358 2011-09-18  Bruno Haible  <bruno@clisp.org>
3359
3360         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
3361         * tests/test-rename.h (test_rename): Allow error code EEXIST.
3362         * tests/test-renameat.c (main): Likewise.
3363
3364 2011-09-18  Bruno Haible  <bruno@clisp.org>
3365
3366         Tests for module 'accept4'.
3367         * modules/accept4-tests: New file.
3368         * tests/test-accept4.c: New file.
3369
3370 2011-09-18  Bruno Haible  <bruno@clisp.org>
3371
3372         Tests for module 'accept'.
3373         * modules/accept-tests: New file.
3374         * tests/test-accept.c: New file.
3375
3376 2011-09-18  Bruno Haible  <bruno@clisp.org>
3377
3378         dup2: Support for MSVC.
3379         * lib/dup2.c: Include msvc-inval.h.
3380         (rpl_dup2): Handle invalid parameter notifications during dup2 and
3381         _get_osfhandle calls.
3382         * modules/dup2 (Depends-on): Add msvc-inval.
3383         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
3384
3385         New module 'msvc-inval'.
3386         * lib/msvc-inval.h: New file.
3387         * lib/msvc-inval.c: New file.
3388         * m4/msvc-inval.m4: New file.
3389         * modules/msvc-inval: New file.
3390
3391 2011-09-17  Bruno Haible  <bruno@clisp.org>
3392
3393         Tests for module 'pclose'.
3394         * modules/pclose-tests: New file.
3395
3396         New module 'pclose'.
3397         * lib/stdio.in.h (pclose): New declaration.
3398         * lib/pclose.c: New file.
3399         * m4/pclose.m4: New file.
3400         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
3401         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
3402         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
3403         * modules/pclose: New file.
3404         * modules/popen-tests (Depends-on): Add pclose.
3405         * modules/popen-safer-tests (Depends-on): Likewise.
3406         * doc/posix-functions/pclose.texi: Mention the new module.
3407
3408 2011-09-17  Bruno Haible  <bruno@clisp.org>
3409
3410         popen: Support for MSVC.
3411         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
3412         * lib/popen.c (popen): Provide alternate definition for native Windows.
3413         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
3414         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
3415         * modules/popen (Depends-on, configure.ac): Update condition.
3416         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
3417         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
3418         fixed.
3419
3420 2011-09-17  Bruno Haible  <bruno@clisp.org>
3421
3422         isnanl, isnand, isnanf: Work around MSVC bug.
3423         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
3424
3425 2011-09-17  Bruno Haible  <bruno@clisp.org>
3426
3427         sys_socket tests: Fix recent mistake.
3428         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
3429
3430 2011-09-17  Bruno Haible  <bruno@clisp.org>
3431
3432         putenv: Support for MSVC.
3433         * modules/putenv (Depends-on): Add environ.
3434         * lib/putenv.c (environ): Disable declaration.
3435         * lib/unistd.in.h: Update comment.
3436
3437 2011-09-17  Bruno Haible  <bruno@clisp.org>
3438
3439         math: Avoid macro redefinition warnings on MSVC.
3440         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
3441         Undefine before redefining.
3442
3443 2011-09-17  Bruno Haible  <bruno@clisp.org>
3444
3445         doc: Mention functions which are declared as macros.
3446         * doc/posix-functions/*[fl].texi: Mention that some functions are
3447         defined as macros with arguments only.
3448
3449 2011-09-17  Bruno Haible  <bruno@clisp.org>
3450
3451         Add dependencies to new dirent related modules.
3452         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
3453         * modules/fts (Depends-on): Likewise.
3454         * modules/glob (Depends-on): Likewise.
3455         * modules/savedir (Depends-on): Likewise.
3456         * modules/scandir (Depends-on): Likewise.
3457         * modules/dirent-safer (Depends-on): Add opendir, closedir.
3458         * modules/fdopendir (Depends-on): Add opendir.
3459
3460 2011-09-17  Bruno Haible  <bruno@clisp.org>
3461
3462         inet_pton: Support for MSVC on Windows Vista or newer.
3463         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
3464         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
3465         HAVE_DECL_INET_PTON is defined.
3466         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
3467         On platforms with <winsock2.h>, test whether inet_pton is declared in
3468         <ws2tcpip.h>. If so, arrange to replace it.
3469         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
3470         REPLACE_INET_PTON.
3471         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
3472         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
3473         (Depends-on, configure.ac): Update condition.
3474         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
3475
3476 2011-09-17  Bruno Haible  <bruno@clisp.org>
3477
3478         inet_ntop: Support for MSVC on Windows Vista or newer.
3479         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
3480         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
3481         HAVE_DECL_INET_NTOP is defined.
3482         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
3483         On platforms with <winsock2.h>, test whether inet_ntop is declared in
3484         <ws2tcpip.h>. If so, arrange to replace it.
3485         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
3486         REPLACE_INET_NTOP.
3487         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
3488         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
3489         (Depends-on, configure.ac): Update condition.
3490         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
3491
3492 2011-09-16  Eric Blake  <eblake@redhat.com>
3493
3494         test-fsync: yet another enhancement
3495         * tests/test-fsync.c (main): Also test behavior on read-only text
3496         file.
3497
3498 2011-09-16  Bruno Haible  <bruno@clisp.org>
3499
3500         Enhance fsync, fdatasync tests.
3501         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
3502         * tests/test-fdatasync.c (main): Likewise.
3503
3504 2011-09-16  Bruno Haible  <bruno@clisp.org>
3505
3506         Support for MSVC compiler: Ensure mode_t gets defined.
3507         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
3508         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
3509         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
3510         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
3511         * tests/test-fcntl-h.c: Check that mode_t is defined.
3512         * tests/test-sys_stat.c: Likewise.
3513         * tests/test-sys_types.c: Likewise.
3514         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
3515         * doc/posix-headers/sys_stat.texi: Likewise.
3516         * doc/posix-headers/sys_types.texi: Likewise.
3517
3518 2011-09-16  Bruno Haible  <bruno@clisp.org>
3519
3520         sys_stat: Support for MSVC.
3521         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
3522         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
3523         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
3524         MSVC.
3525
3526 2011-09-16  Bruno Haible  <bruno@clisp.org>
3527
3528         Support for MSVC compiler: Ensure off_t gets defined.
3529         * lib/unistd.in.h: Include <sys/types.h>.
3530         * tests/test-fcntl-h.c: Check that off_t is defined.
3531         * tests/test-sys_stat.c: Likewise.
3532         * tests/test-sys_types.c: Likewise.
3533
3534 2011-09-16  Eric Blake  <eblake@redhat.com>
3535
3536         fdatasync: port to Solaris
3537         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
3538         * modules/fdatasync (Link): Document it.
3539         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
3540
3541         fdatasync: port to MacOS X 10.7
3542         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
3543         declared.
3544         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
3545         * modules/unistd (Makefile.am): Substitute it.
3546         * lib/unistd.in.h (fdatasync): Declare on MacOS.
3547         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
3548
3549         fdatasync: minor improvements
3550         * modules/fdatasync (Depends-on): Add condition for fsync.
3551         * lib/fdatasync.c (fdatasync): Add comment.
3552         * tests/test-unistd-c++.cc: Test fdatasync.
3553
3554         unistd: update refs to newer POSIX
3555         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
3556         Suggested by Bruno Haible.
3557
3558         fdatasync: new module
3559         * modules/fsync (Description): Document difference to fdatasync.
3560         * modules/fdatasync: New module.
3561         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
3562         * lib/fdatasync.c (fdatasync): Likewise.
3563         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
3564         defaults.
3565         * modules/unistd (Makefile.am): Set witnesses.
3566         * lib/unistd.in.h (fdatasync): Declare.
3567         * MODULES.html.sh: Document it.
3568         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
3569         * modules/fdatasync-tests: New test.
3570         * tests/test-fdatasync.c: Likewise.
3571
3572 2011-09-16  Eric Blake  <eblake@redhat.com>
3573
3574         test-fsync: enhance tests
3575         * modules/fsync-tests (Depends-on): Add errno, for mingw.
3576         * tests/test-fsync.c (main): Enhance test.
3577
3578 2011-09-15  Bruno Haible  <bruno@clisp.org>
3579
3580         Support for MSVC compiler: Ensure ssize_t gets defined.
3581         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
3582         * doc/posix-headers/stdio.texi: Likewise.
3583         * modules/stdio (Depends-on): Add ssize_t.
3584         * modules/sys_socket (Depends-on): Likewise.
3585         * modules/sys_types (Depends-on): Likewise.
3586         * modules/sys_uio (Depends-on): Likewise.
3587         * modules/unistd (Depends-on): Likewise.
3588         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
3589         * tests/test-sys_types.c: Check that ssize_t is defined.
3590
3591 2011-09-14  Bruno Haible  <bruno@clisp.org>
3592
3593         Avoid using #, the m4 comment starter character, near brackets.
3594         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
3595         delimiter character in sed expressions.
3596         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
3597         Suggested by Eric Blake.
3598
3599         Properly quote AC_CHECK_DECLS' 4th argument.
3600         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
3601         argument.
3602         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
3603         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
3604         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
3605         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
3606         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
3607         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
3608         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
3609         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
3610         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
3611         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
3612         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
3613         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
3614         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
3615         * m4/isinf.m4 (gl_ISINF): Likewise.
3616         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
3617         * m4/readutmp.m4 (gl_READUTMP): Likewise.
3618         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
3619         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
3620         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
3621         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
3622         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
3623         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
3624         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
3625         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
3626         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
3627         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
3628         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
3629         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
3630         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
3631         Reported by Eric Blake.
3632
3633         Properly quote AC_CHECK_DECL's 4th argument.
3634         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
3635         argument.
3636         * m4/argp.m4 (gl_ARGP): Likewise.
3637         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
3638         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
3639         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
3640         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
3641         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
3642         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
3643         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
3644         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
3645         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
3646         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
3647         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
3648         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
3649         Reported by Eric Blake.
3650
3651 2011-09-14  Eric Blake  <eblake@redhat.com>
3652
3653         opendir: avoid compile warning
3654         * lib/opendir.c (includes): Always include errno.h.
3655         Reported by Tatsuro MATSUOKA.
3656
3657 2011-09-14  Jim Meyering  <meyering@redhat.com>
3658
3659         maint.mk: sc_tight_scope: propagate failure from sub-make
3660         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
3661         Reported by Martin von Gagern.
3662
3663 2011-09-13  Bruno Haible  <bruno@clisp.org>
3664
3665         tempname: Support for MSVC.
3666         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
3667         MSVC.
3668         * modules/tempname (Depends-on): Add fcntl-h.
3669
3670 2011-09-13  Bruno Haible  <bruno@clisp.org>
3671
3672         sys_time: Support for MSVC.
3673         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
3674         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
3675         include <winsock2.h>.
3676         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
3677         function declarations that collide with POSIX.
3678         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
3679         (Makefile.am): Substitute HAVE_WINSOCK2_H.
3680
3681 2011-09-13  Bruno Haible  <bruno@clisp.org>
3682
3683         stat: Support for MSVC.
3684         * lib/stat.c: Include pathmax.h.
3685         * modules/stat (Depends-on): Add pathmax.
3686
3687         pathmax: Support for native Windows.
3688         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
3689
3690 2011-09-12  Bruno Haible  <bruno@clisp.org>
3691
3692         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
3693         * lib/dirent.in.h (struct dirent): New type.
3694         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
3695         DT_WHT): New macros.
3696         (DIR): New type.
3697         (opendir, closedir): Declare only if the module 'opendir' is enabled.
3698         (readdir, rewinddir): New declarations.
3699         * lib/dirent-private.h: New file.
3700         * lib/opendir.c: New file.
3701         * lib/readdir.c: New file.
3702         * lib/rewinddir.c: New file.
3703         * lib/closedir.c: New file.
3704         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
3705         * m4/opendir.m4: New file.
3706         * m4/readdir.m4: New file.
3707         * m4/rewinddir.m4: New file.
3708         * m4/closedir.m4: New file.
3709         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
3710         REPLACE_CLOSEDIR here.
3711         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
3712         readdir, rewinddir are declared.
3713         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
3714         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
3715         HAVE_REWINDDIR, HAVE_CLOSEDIR.
3716         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
3717         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
3718         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
3719         * modules/opendir: New file.
3720         * modules/readdir: New file.
3721         * modules/rewinddir: New file.
3722         * modules/closedir: New file.
3723         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
3724         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
3725         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
3726         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
3727         * NEWS: Mention the 'fchdir' change.
3728
3729 2011-09-11  Bruno Haible  <bruno@clisp.org>
3730
3731         asm-underscore.m4: Support for MSVC.
3732         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
3733         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
3734
3735 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
3736
3737         Doc about crypt functions.
3738         * doc/posix-functions/crypt.texi: Expand range of glibc versions
3739         needing for _GNU_SOURCE to get crypt.
3740         * doc/posix-functions/encrypt.texi: Likewise.
3741         * doc/posix-functions/setkey.texi: Likewise.
3742
3743 2011-09-11  Bruno Haible  <bruno@clisp.org>
3744
3745         doc: Update regarding MSVC 9.
3746         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
3747         tested".
3748         * doc/posix-functions/*.texi: Update with info about MSVC 9.
3749         * doc/posix-headers/*.texi: Likewise.
3750         * doc/pastposix-functions/*.texi: Likewise.
3751         * doc/glibc-functions/*.texi: Likewise.
3752         * doc/glibc-headers/*.texi: Likewise.
3753
3754 2011-09-11  Bruno Haible  <bruno@clisp.org>
3755
3756         unistd et al.: Don't assume <unistd.h> exists.
3757         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
3758         does not exist.
3759         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
3760         exist. But include <stdlib.h>.
3761         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
3762         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
3763         symlink() does not exist.
3764         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
3765         include <io.h> instead.
3766         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
3767         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
3768         include <direct.h> instead.
3769         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
3770         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
3771         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
3772         <io.h> instead.
3773         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
3774         correctly if the system does not have hard links.
3775         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
3776         <direct.h> instead.
3777         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
3778         it when looking for function declarations.
3779         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
3780         <direct.h> and <io.h> instead.
3781         * doc/posix-headers/unistd.texi: More details about MSVC problem.
3782
3783 2011-09-11  Bruno Haible  <bruno@clisp.org>
3784
3785         strcase: Support for MSVC.
3786         * modules/strcase (Status, Notice): Remove obsoletion mark.
3787         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
3788         * doc/posix-functions/strncasecmp.texi: Likewise.
3789
3790         strings: Don't assume <strings.h> exists.
3791         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
3792         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
3793         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
3794         * doc/posix-headers/strings.texi: Mention the MSVC problem.
3795
3796 2011-09-11  Bruno Haible  <bruno@clisp.org>
3797
3798         dirent: Don't assume <dirent.h> exists.
3799         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
3800         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
3801         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
3802         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
3803
3804 2011-09-11  Bruno Haible  <bruno@clisp.org>
3805
3806         Fix wint_t on MSVC.
3807         * lib/wchar.in.h (wint_t): On MSVC, override it.
3808         * lib/wctype.in.h (wint_t): Likewise.
3809         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
3810         MSVC.
3811         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
3812         * doc/posix-headers/wctype.texi: Likewise.
3813
3814 2011-09-11  Bruno Haible  <bruno@clisp.org>
3815
3816         sys_types: Fix typo.
3817         * lib/sys_types.in.h: Fix typo in comment.
3818         Reported by Paul Eggert.
3819
3820         Support for MSVC compiler: Ensure size_t gets defined.
3821         * modules/strings (Depends-on): Add 'sys_types'.
3822         * modules/sys_uio (Depends-on): Likewise.
3823         * lib/sys_uio.in.h: Update comment.
3824
3825         C++ tests for module 'sys_types'.
3826         * modules/sys_types-c++-tests: New file.
3827         * tests/test-sys_types-c++.cc: New file.
3828
3829         Tests for module 'sys_types'.
3830         * modules/sys_types-tests: New file.
3831         * tests/test-sys_types.c: New file.
3832
3833         New module 'sys_types'.
3834         * lib/sys_types.in.h: New file.
3835         * m4/sys_types_h.m4: New file.
3836         * modules/sys_types: New file.
3837         * doc/posix-headers/sys_types.texi: Mention the new module and the
3838         size_t problem on MSVC 9.
3839
3840 2011-09-11  Bruno Haible  <bruno@clisp.org>
3841
3842         Support for MSVC compiler: Avoid division by a literal 0.
3843         * lib/math.in.h (NAN): Define through a function call also on MSVC.
3844         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
3845         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
3846         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
3847         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
3848         * tests/infinity.h: New file.
3849         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
3850         on MSVC.
3851         * tests/test-ceilf1.c: Include infinity.h.
3852         (main): Use Infinityf.
3853         * tests/test-ceil1.c: Include infinity.h.
3854         (main): Use Infinityd.
3855         * tests/test-ceill.c: Include infinity.h.
3856         (main): Use Infinityl.
3857         * tests/test-dprintf-posix.c: Include infinity.h.
3858         (test_function): Use Infinityd.
3859         * tests/test-floorf1.c: Include infinity.h.
3860         (main): Use Infinityf.
3861         * tests/test-floor1.c: Include infinity.h.
3862         (main): Use Infinityd.
3863         * tests/test-floorl.c: Include infinity.h.
3864         (main): Use Infinityl.
3865         * tests/test-fprintf-posix.c: Include infinity.h.
3866         (test_function): Use Infinityd.
3867         * tests/test-frexp.c: Include infinity.h.
3868         (main): Use Infinityd.
3869         * tests/test-frexpl.c: Include infinity.h.
3870         (main): Use Infinityl.
3871         * tests/test-isfinite.c: Include infinity.h.
3872         (test_isfinitef): Use Infinityf.
3873         (test_isfinited): Use Infinityd.
3874         (test_isfinitel): Use Infinityl.
3875         * tests/test-isinf.c: Include infinity.h.
3876         (test_isinff): Use Infinityf.
3877         (test_isinfd): Use Infinityd.
3878         (test_isinfl): Use Infinityl.
3879         * tests/test-isnan.c: Include infinity.h.
3880         (test_float): Use Infinityf.
3881         (test_double): Use Infinityd.
3882         (test_long_double): Use Infinityl.
3883         * tests/test-isnanf.h: Include infinity.h.
3884         (main): Use Infinityf.
3885         * tests/test-isnand.h: Include infinity.h.
3886         (main): Use Infinityd.
3887         * tests/test-isnanl.h: Include infinity.h.
3888         (main): Use Infinityl.
3889         * tests/test-ldexpl.c: Include infinity.h.
3890         (main): Use Infinityl.
3891         * tests/test-printf-posix.h: Include infinity.h.
3892         (test_function): Use Infinityd.
3893         * tests/test-roundf1.c: Include infinity.h.
3894         (main): Use Infinityf.
3895         * tests/test-round1.c: Include infinity.h.
3896         (main): Use Infinityd.
3897         * tests/test-roundl.c: Include infinity.h.
3898         (main): Use Infinityl.
3899         * tests/test-signbit.c: Include infinity.h.
3900         (test_signbitf): Use Infinityf.
3901         (test_signbitd): Use Infinityd.
3902         (test_signbitl): Use Infinityl.
3903         * tests/test-snprintf-posix.h: Include infinity.h.
3904         (test_function): Use Infinityd, Infinityl.
3905         * tests/test-sprintf-posix.h: Include infinity.h.
3906         (test_function): Use Infinityd, Infinityl.
3907         * tests/test-truncf1.c: Include infinity.h.
3908         (main): Use Infinityf.
3909         * tests/test-trunc1.c: Include infinity.h.
3910         (main): Use Infinityd.
3911         * tests/test-truncl.c: Include infinity.h.
3912         (main): Use Infinityl.
3913         * tests/test-vasnprintf-posix.c: Include infinity.h.
3914         (test_function): Use Infinityd, Infinityl.
3915         * tests/test-vasprintf-posix.c: Include infinity.h.
3916         (test_function): Use Infinityd, Infinityl.
3917         * modules/ceilf-tests (Files): Add tests/infinity.h.
3918         * modules/ceil-tests (Files): Likewise.
3919         * modules/ceill-tests (Files): Likewise.
3920         * modules/dprintf-posix-tests (Files): Likewise.
3921         * modules/floorf-tests (Files): Likewise.
3922         * modules/floor-tests (Files): Likewise.
3923         * modules/floorl-tests (Files): Likewise.
3924         * modules/fprintf-posix-tests (Files): Likewise.
3925         * modules/frexp-tests (Files): Likewise.
3926         * modules/frexp-nolibm-tests (Files): Likewise.
3927         * modules/frexpl-tests (Files): Likewise.
3928         * modules/frexpl-nolibm-tests (Files): Likewise.
3929         * modules/isfinite-tests (Files): Likewise.
3930         * modules/isinf-tests (Files): Likewise.
3931         * modules/isnan-tests (Files): Likewise.
3932         * modules/isnanf-tests (Files): Likewise.
3933         * modules/isnanf-nolibm-tests (Files): Likewise.
3934         * modules/isnand-tests (Files): Likewise.
3935         * modules/isnand-nolibm-tests (Files): Likewise.
3936         * modules/isnanl-tests (Files): Likewise.
3937         * modules/isnanl-nolibm-tests (Files): Likewise.
3938         * modules/ldexpl-tests (Files): Likewise.
3939         * modules/printf-posix-tests (Files): Likewise.
3940         * modules/roundf-tests (Files): Likewise.
3941         * modules/round-tests (Files): Likewise.
3942         * modules/roundl-tests (Files): Likewise.
3943         * modules/signbit-tests (Files): Likewise.
3944         * modules/snprintf-posix-tests (Files): Likewise.
3945         * modules/sprintf-posix-tests (Files): Likewise.
3946         * modules/truncf-tests (Files): Likewise.
3947         * modules/trunc-tests (Files): Likewise.
3948         * modules/truncl-tests (Files): Likewise.
3949         * modules/vasnprintf-posix-tests (Files): Likewise.
3950         * modules/vasprintf-posix-tests (Files): Likewise.
3951         * modules/vdprintf-posix-tests (Files): Likewise.
3952         * modules/vfprintf-posix-tests (Files): Likewise.
3953         * modules/vprintf-posix-tests (Files): Likewise.
3954         * modules/vsnprintf-posix-tests (Files): Likewise.
3955         * modules/vsprintf-posix-tests (Files): Likewise.
3956         * modules/xprintf-posix-tests (Files): Likewise.
3957
3958 2011-09-11  Bruno Haible  <bruno@clisp.org>
3959
3960         Ensure pid_t gets defined.
3961         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
3962         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
3963         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
3964         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
3965         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
3966         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
3967         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
3968         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
3969         * tests/test-fcntl-h.c: Check that pid_t is defined.
3970         * tests/test-sched.c: Likewise.
3971         * tests/test-termios.c: Likewise.
3972         * tests/test-time.c: Likewise.
3973         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
3974         * doc/posix-headers/signal.texi: Likewise.
3975         * doc/posix-headers/sys_types.texi: Likewise.
3976         * doc/posix-headers/time.texi: Likewise.
3977
3978 2011-09-11  Bruno Haible  <bruno@clisp.org>
3979
3980         acl: Fix compilation on Solaris 10 (older version).
3981         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
3982         of ACE_EVERYONE.
3983         * lib/set-mode-acl.c (qset_acl): Likewise.
3984         Reported by Christian Jullien <eligis@orange.fr>.
3985
3986 2011-09-10  Bruno Haible  <bruno@clisp.org>
3987
3988         iconv, unsetenv: Add support for MSVC compiler.
3989         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
3990         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
3991
3992 2011-09-10  Bruno Haible  <bruno@clisp.org>
3993
3994         *printf: Add support for MSVC compiler.
3995         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
3996         handles the exception caused by the %n directive. When cross-compiling,
3997         guess no on native Windows.
3998         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
3999         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
4000         emulate it through vsnprintf.
4001         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
4002         * doc/posix-functions/dprintf.texi: Update documentation regarding
4003         MSVC 9.
4004         * doc/posix-functions/fprintf.texi: Likewise.
4005         * doc/posix-functions/printf.texi: Likewise.
4006         * doc/posix-functions/snprintf.texi: Likewise.
4007         * doc/posix-functions/sprintf.texi: Likewise.
4008         * doc/posix-functions/swprintf.texi: Likewise.
4009         * doc/posix-functions/vdprintf.texi: Likewise.
4010         * doc/posix-functions/vfprintf.texi: Likewise.
4011         * doc/posix-functions/vprintf.texi: Likewise.
4012         * doc/posix-functions/vsnprintf.texi: Likewise.
4013         * doc/posix-functions/vsprintf.texi: Likewise.
4014         * doc/glibc-functions/asprintf.texi: Likewise.
4015         * doc/glibc-functions/obstack_printf.texi: Likewise.
4016         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
4017         * doc/glibc-functions/vasprintf.texi: Likewise.
4018
4019 2011-09-10  Bruno Haible  <bruno@clisp.org>
4020
4021         nocrash: Add support for native Windows.
4022         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
4023
4024 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
4025             Bruno Haible  <bruno@clisp.org>
4026
4027         absolute-header, include-next: Add support for MSVC compiler.
4028         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
4029         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
4030         directory separator in #line directives.
4031         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
4032         recognize also backslash as directory separator in #line directives.
4033
4034 2011-09-08  Jim Meyering  <meyering@redhat.com>
4035
4036         maint.mk: mark the post-release commit log with "maint: " prefix
4037         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
4038         one-line commit-log summary.
4039
4040 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
4041             Bruno Haible  <bruno@clisp.org>
4042
4043         Doc about crypt functions.
4044         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
4045         systems.
4046         * doc/posix-functions/encrypt.texi: Likewise.
4047         * doc/posix-functions/setkey.texi: Likewise.
4048
4049 2011-09-08  Simon Josefsson  <simon@josefsson.org>
4050
4051         * lib/gc.h: Fix copyright header.
4052
4053 2011-09-07  Bruno Haible  <bruno@clisp.org>
4054
4055         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
4056         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
4057         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
4058
4059 2011-09-07  Bruno Haible  <bruno@clisp.org>
4060
4061         openat: Work around compilation error with OSF/1 5.1 DTK cc.
4062         * lib/fopen.c: Use different syntax for include of <stdio.h>.
4063         * lib/freopen.c: Likewise.
4064         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
4065         * lib/lstat.c: Likewise.
4066         * lib/stat.c: Likewise.
4067         * lib/open.c: Use different syntax for include of <fcntl.h>.
4068         * lib/openat.c: Include fcntl.h again, explicitly.
4069
4070 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
4071
4072         parse-datetime: document the newly accepted format
4073         * doc/parse-datetime.texi (Combined date and time of day items):
4074         New section.
4075
4076 2011-09-06  Bruno Haible  <bruno@clisp.org>
4077
4078         acl: Fix a test failure on newer Solaris 10 with ZFS.
4079         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
4080         ENOSYS as no ACL.
4081         Reported by Jim Meyering.
4082
4083 2011-09-06  Bruno Haible  <bruno@clisp.org>
4084
4085         acl: Update for AIX >= 5.3 with NFS.
4086         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
4087         ENOSYS as no ACL.
4088
4089         acl: Fix a test failure on AIX >= 5.3 with NFS.
4090         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
4091         as no ACL.
4092
4093 2011-09-06  Bruno Haible  <bruno@clisp.org>
4094
4095         acl: Fix a test failure on IRIX 6.5 with NFS.
4096         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
4097         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
4098         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
4099         * lib/copy-acl.c (qcopy_acl): Likewise.
4100
4101 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
4102
4103         openat: port to AIX 7.1 with large files
4104         AIX 7.1 does a "#define openat open64at" if large files are in use,
4105         so we can't simply #undef openat.  Use the orig_openat trick (similar
4106         to orig_open in lib/open.c) to work around the problem.  Problem
4107         reported by Kevin Brott for GNU tar, in the thread containing
4108         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00032.html>.
4109         * lib/openat.c (__need_system_fcntl_h): Define first.
4110         Include <fcntl.h> and <sys/types.h> before undefining.
4111         (orig_openat) [HAVE_OPENAT]: New inline function.
4112         (openat) [HAVE_OPENAT]: Do not undef.
4113         (rpl_openat): Use orig_openat, not openat.
4114
4115 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
4116             Bruno Haible  <bruno@clisp.org>
4117
4118         acl: Avoid errors on NonStop Kernel.
4119         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
4120         ENOTSUP errors.
4121
4122 2011-09-05  Bruno Haible  <bruno@clisp.org>
4123
4124         acl: Clean up Solaris code.
4125         * lib/acl-internal.h: Remove no-op #if.
4126         * lib/file-has-acl.c: Likewise.
4127         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
4128         * lib/copy-acl.c (qcopy_acl): Likewise.
4129
4130 2011-09-05  Bruno Haible  <bruno@clisp.org>
4131
4132         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
4133         binaries built on the original Solaris 10.
4134         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
4135         trivial.
4136
4137 2011-09-05  Bruno Haible  <bruno@clisp.org>
4138
4139         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
4140         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
4141         10.
4142         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
4143         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
4144         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
4145         instead of acl_get, facl_get, acl_set, facl_set.
4146
4147 2011-09-05  Bruno Haible  <bruno@clisp.org>
4148
4149         copy-file: Try unit tests on more file systems.
4150         * tests/test-copy-file-1.sh: New file.
4151         * tests/test-copy-file-2.sh: New file.
4152         * modules/copy-file-tests (Files): Add them.
4153         (Makefile.am): Add them to TESTS.
4154
4155         acl: Try unit tests on more file systems.
4156         * tests/test-file-has-acl-1.sh: New file.
4157         * tests/test-file-has-acl-2.sh: New file.
4158         * tests/test-set-mode-acl-1.sh: New file.
4159         * tests/test-set-mode-acl-2.sh: New file.
4160         * tests/test-copy-acl-1.sh: New file.
4161         * tests/test-copy-acl-2.sh: New file.
4162         * modules/acl-tests (Files): Add them.
4163         (Makefile.am): Add them to TESTS.
4164
4165 2011-09-04  Bruno Haible  <bruno@clisp.org>
4166
4167         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
4168         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
4169         10.
4170         (OLD_ALLOW, OLD_DENY): New macros.
4171         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
4172         ACE_ACCESS_ALLOWED_ACE_TYPE.
4173         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
4174         ACE_ACCESS_DENIED_ACE_TYPE.
4175         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
4176         (NEW_ACE_EXECUTE): Fix value.
4177         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
4178         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
4179         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
4180         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
4181         NEW_ACE_SYNCHRONIZE): New macros.
4182         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
4183         instead of acl_fromtext, acl_set, facl_set.
4184         Fixes a coreutils/tests/cp/perm failure.
4185
4186 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
4187
4188         openat: test for fstatat (..., 0) bug
4189         Further testing with tar suggests that fstatat (..., 0)
4190         does not work in general, on AIX 7.1; see
4191         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00023.html>.
4192         So, give up entirely on AIX 7.1's fstatat, and fall back on our
4193         replacement fstatat (which is what older AIX releases were using
4194         anyway).
4195         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
4196         use is now changed to orig_fstatat.  This was probably the right
4197         thing to do anyway.
4198         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
4199         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
4200         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
4201         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
4202         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
4203         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
4204         if the bug is found.
4205
4206         openat: test for fstatat (AT_FDCWD, ..., 0) bug
4207         This tests for another fstatat bug on AIX 7.1:
4208         fstatat (AT_FDCWD, ..., 0) does not work.  See
4209         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00015.html>.
4210         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
4211         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
4212         (rpl_fstatat): Adjust so that it works around either (or both)
4213         bugs if present.
4214         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
4215
4216 2011-09-03  Karl Berry  <karl@gnu.org>
4217
4218         * doc/regex.texi (Character Class Operators): Avoid literal ":"
4219         in index entries.
4220
4221 2011-09-02  Bruno Haible  <bruno@clisp.org>
4222
4223         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
4224         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
4225         values of AR, ARFLAGS, RANLIB.
4226         Reported by John W. Eaton <jwe@gnu.org> for Octave.
4227
4228 2011-09-02  Bruno Haible  <bruno@clisp.org>
4229
4230         Find 'ar' program that fits with --host argument.
4231         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
4232
4233 2011-09-02  Bruno Haible  <bruno@clisp.org>
4234
4235         tests: init.sh: Support any non-GNU diff.
4236         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
4237         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
4238         Solaris 8.
4239
4240 2011-09-02  Bruno Haible  <bruno@clisp.org>
4241
4242         tests: init.sh: work also with any non-GNU diff that supports -u
4243         * tests/init.sh: Relax check for diff -u support.
4244         Rather than checking for GNU diff via --version, simply check
4245         for support for -u itself.  Useful at least on OpenBSD 4.9,
4246         AIX 7.1, IRIX 6.5, and Solaris 10.
4247
4248 2011-09-01  Bruno Haible  <bruno@clisp.org>
4249
4250         strtoimax, strtoumax: Document problem on HP-UX 11.
4251         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
4252         * doc/posix-functions/strtoumax.texi: Likewise.
4253
4254 2011-09-01  Bruno Haible  <bruno@clisp.org>
4255
4256         strtoumax: Avoid link error on OSF/1 with DTK cc.
4257         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
4258         defined as a function.
4259         * modules/strtoumax (Depends-on, configure.ac): Test only whether
4260         strtoumax is defined, not whether it is declared.
4261
4262 2011-09-01  Bruno Haible  <bruno@clisp.org>
4263
4264         strtoimax: Avoid link error on OSF/1 with DTK cc.
4265         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
4266         defined as a function.
4267         * modules/strtoimax (Depends-on, configure.ac): Test only whether
4268         strtoimax is defined, not whether it is declared.
4269
4270 2011-09-01  Bruno Haible  <bruno@clisp.org>
4271
4272         imaxdiv: Avoid link error on OSF/1 with DTK cc.
4273         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
4274         as a function.
4275         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
4276         whether it is declared.
4277
4278 2011-09-01  Bruno Haible  <bruno@clisp.org>
4279
4280         imaxabs: Avoid link error on OSF/1 with DTK cc.
4281         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
4282         as a function.
4283         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
4284         whether it is declared.
4285
4286 2011-09-01  Bruno Haible  <bruno@clisp.org>
4287
4288         Tests for module 'strtoumax'.
4289         * modules/strtoumax-tests: New file.
4290         * tests/test-strtoumax.c: New file.
4291
4292         Tests for module 'strtoimax'.
4293         * modules/strtoimax-tests: New file.
4294         * tests/test-strtoimax.c: New file.
4295
4296         Tests for module 'imaxdiv'.
4297         * modules/imaxdiv-tests: New file.
4298         * tests/test-imaxdiv.c: New file.
4299
4300         Tests for module 'imaxabs'.
4301         * modules/imaxabs-tests: New file.
4302         * tests/test-imaxabs.c: New file.
4303
4304 2011-09-01  Bruno Haible  <bruno@clisp.org>
4305
4306         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
4307         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
4308         pthread_create.
4309
4310 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
4311
4312         openat: work around AIX 7.1 fstatat issue
4313         This should fix the problem that was not properly fixed
4314         in the previous change, dated 2011-08-30.
4315         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
4316         __need_system_stat_h defined.
4317         (orig_fstatat) [HAVE_FSTATAT]: New function.
4318         (rpl_fstatat): Go back to the old way of doing things,
4319         except call orig_fstatat instead of fstatat.
4320         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
4321         Remove unnecessary check whether fstatat fills in st_size etc.
4322
4323 2011-09-01  Bruno Haible  <bruno@clisp.org>
4324
4325         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
4326         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
4327         just include the system's header.
4328
4329 2011-08-31  Jim Meyering  <meyering@redhat.com>
4330
4331         tests: avoid spurious assertion failure in test-float.c on ppc64
4332         * tests/test-float.c (test_long_double): Comment out an assertion,
4333         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
4334         with gcc-4.4.4.
4335
4336         maint: indent with spaces, not TABs
4337         I need to get in the habit of running gnulib's "make check".
4338         Both of these would have been caught.
4339         * m4/largefile.m4: Indent with spaces, not TABs.
4340         * lib/parse-datetime.y (iso_8601_time): Likewise.
4341         Spotted by Pádraig Brady.
4342
4343         test-parse-datetime.c: accommodate a relatively strict gcc warning
4344         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
4345         to avoid a warning from gcc's -Werror=missing-declarations.
4346         Insert a few spaces-before-funcall-parenthesis.
4347
4348 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
4349
4350         parse-datetime: accept ISO 8601 date and time rep with "T" separator
4351         The parser now accepts ISO 8601 date-time strings with "T" as the
4352         separator.  It has long parsed dates like "2004-02-29 16:21:42"
4353         with a space between the date and time strings.  Now it also parses
4354         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
4355         variants like "2004-02-29T16:21:42.333-07:00"
4356         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
4357         of day representation using the 'T' separator character.
4358         * doc/parse-datetime.texi (General date syntax): replace use of
4359         deprecated --iso-8601 option with --rfc-3339 in example of date
4360         command output formats that can be parsed.
4361         * tests/test-parse-datetime.c (tm_diff): New function, taken from
4362         lib/parse-datetime.y.
4363         (gmt_offset): New function.
4364         (main): Add additional test cases to validate ISO8601 extended
4365         date and time of day parsing.
4366
4367 2011-08-31  Bruno Haible  <bruno@clisp.org>
4368
4369         freopen: Documentation.
4370         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
4371         name.
4372         Reported by Claudio Bley <claudio.bley@gmail.com>.
4373
4374 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
4375
4376         freopen: Don't crash if the filename argument is NULL.
4377         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
4378         NULL.
4379
4380 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
4381
4382         openat: work around AIX 7.1 fstatat bug
4383         Problem reported by Kevin Brott for GNU tar, in the thread containing
4384         <http://lists.gnu.org/archive/html/bug-tar/2011-08/msg00015.html>.
4385         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
4386         FSTATAT_ST_SIZE_ETC_BROKEN.
4387         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
4388         rpl_fstatat.
4389         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
4390         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
4391         AC_CHECK_FUNCS_ONCE for fstatat.
4392         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
4393         fchmodat, mkdirat, openat and unlinkat.
4394
4395 2011-08-30  Bruno Haible  <bruno@clisp.org>
4396
4397         Avoid endless recursions if config.h includes some header files.
4398         * lib/fopen.c (__need_FILE): Define already before including config.h.
4399         * lib/freopen.c (__need_FILE): Likewise.
4400         * lib/open.c (__need_system_fcntl_h): Likewise.
4401         * lib/stat.c (__need_system_sys_stat_h): Likewise.
4402         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
4403         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
4404
4405 2011-08-25  Karl Berry  <karl@gnu.org>
4406
4407         * config/srclist.txt (ylwrap): new try.
4408         * build-aux/ylwrap: new file.
4409
4410 2011-08-23  Bruno Haible  <bruno@clisp.org>
4411
4412         tmpdir: Use a good default directory on native Windows.
4413         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
4414         (P_tmpdir): Default to _P_tmpdir on native Windows.
4415         (path_search): On native Windows, try the value returned by GetTempPath
4416         before trying P_tmpdir.
4417         * modules/tmpdir (Depends-on): Add pathmax.
4418         Suggested by John Darrington <john@darrington.wattle.id.au>.
4419
4420 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
4421
4422         doc: fix typo in README-release
4423         * top/README-release: Capitalize first word of a sentence.
4424
4425 2011-08-19  Jim Meyering  <meyering@redhat.com>
4426
4427         fts: do not exhaust memory when processing million-entry directories
4428         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
4429         directory would require about 256*N bytes of memory.  Thus, it was
4430         easy to construct a directory too large to be processed by any of
4431         those tools.  With this change, fts' maximum memory utilization is
4432         now limited to around 30MB.
4433         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
4434         (fts_read): When we've processed the final entry (i.e., when
4435         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
4436         using the parent entry to read any remaining entries.  Dispatch
4437         depending on what fts_build returns:
4438         - NULL+stop, aka failure: stop
4439         - NULL otherwise: move up in the dir hierarchy
4440         - non-NULL: handle this new entry
4441         (fts_build): Declare and use new local, continue_readdir.
4442         Prepare to be called from fts_read, when the entries
4443         from a partially-read directory have just been exhausted.
4444         In that case, we'll skip the opendir and instead use the parent's
4445         fts_dirp and derive dir_fd from that.
4446         Finally, in the readdir loop, if we read max_entries entries,
4447         exit the loop ensuring *not* to call closedir.  This is required
4448         so that fts_dirp can be reused on a subsequent call.
4449         Prompted by Ben England's report of memory exhaustion in find
4450         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
4451
4452         maint: fts: move decl of `dp' down into while loop; split a long line
4453         * lib/fts.c (fts_build): No semantic change.
4454
4455         fts: add/use new struct member, fts_dirp
4456         We are about to use this to manage any directory with
4457         too many entries to read all of them into memory at once.
4458         To do that, we'll need to save the DIR* pointer in each
4459         affected FTSENT struct.
4460         * lib/fts_.h: Include <dirent.h>.
4461         (struct FTSENT) [fts_dirp]: New member.
4462         * lib/fts.c (closedir_and_clear): Define.
4463         Use it in place of closedir so that we are sure to
4464         clear the new fts_dirp member when done with it.
4465         (fts_alloc): Initialize the new member.
4466         (fts_lfree): Free, if needed.
4467
4468         maint: fts: give __opendir2 a new parameter and rename
4469         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
4470         than surreptitiously using sole caller's "dir_fd".
4471         (fts_opendir): Rename from __opendir2.
4472
4473         maint: fts.c: remove __opendir2's now-unused parameter, oflag
4474         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
4475
4476         maint: fts.c: correct off-by-one indentation
4477         * lib/fts.c (fts_build): Correct indentation, change style
4478         of a couple of block comments, and bracing style.
4479
4480         maint: fts.c: move __opendir2 #define "up" out of function body
4481         * lib/fts.c (__opendir2): Move "up".  No semantic change.
4482
4483         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
4484         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
4485         out for a long time and besides was useful only on BSD systems.
4486
4487 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
4488
4489         regex: port to Stratus OpenVOS
4490         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
4491         define to empty, rather than attempting nonportable optimizations.
4492         Problem reported by Paul Green in:
4493         http://lists.gnu.org/archive/html/bug-diffutils/2011-08/msg00047.html
4494         and fix suggested by Eric Blake in:
4495         http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00143.html
4496
4497 2011-08-17  Eric Blake  <eblake@redhat.com>
4498
4499         getcwd: fix test failures on mingw
4500         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
4501         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
4502         test if long directory cannot be created, and allow mingw errno.
4503
4504         getcwd-lgpl: fix m4 to match relaxed test for BSD
4505         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
4506         (gl_FUNC_GETCWD_SIGNATURE): New macro.
4507         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
4508         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
4509         signature problem.
4510
4511         getcwd: fix compilation on mingw64
4512         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
4513         getcwd.
4514         Reported by Marc-André Lureau.
4515
4516         pipe2: silence compiler warning
4517         * lib/pipe2.c (pipe2): Hide label if it is not used.
4518
4519 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
4520
4521         relocatable-prog: fix link error
4522         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
4523         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
4524         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
4525         into modules/relocatable-lib without noticing that
4526         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
4527         also needs to build relocatable.c.
4528
4529 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
4530
4531         getaddrinfo: fix sh typo in gai_strerrorA decl checking
4532         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
4533         shell code: it contained a 'break' that was not in a loop.
4534         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
4535         via a shell-language loop; this may have been true in old Autoconf
4536         versions, but it's not true in Autoconf 2.68.  I found this bug
4537         when testing coreutils git on Solaris 8, whose shell complains
4538         about the syntax error.
4539
4540 2011-08-12  Simon Josefsson  <simon@josefsson.org>
4541
4542         * lib/base64.c: Fix comment to reference RFC 4648.
4543         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
4544         <gvtulder@gmail.com>.
4545
4546 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
4547
4548         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
4549
4550         po/Makefile.in.in: fix make -q problem
4551         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
4552         rule, since there's no file named 'check-macro-version' and its
4553         use as a file breaks make -q.
4554         (all): Don't depend on check-macro-version.
4555         (CHECK_MACRO_VERSION): New macro.
4556         (stamp-po): Use it.
4557
4558         configmake: fix make -q problem
4559         * modules/configmake (configmake.h): Update configmake.h's time stamp
4560         even if the file does not change.  Otherwise, 'make -q' fails.
4561         Problem reported by Simon Josefsson in
4562         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00088.html>.
4563
4564 2011-08-11  Jim Meyering  <meyering@redhat.com>
4565
4566         git-version-gen: correct the advice in a comment
4567         * build-aux/git-version-gen: Correct comment.
4568         Don't recommend to list .tarball-version in .gitignore.
4569
4570 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
4571
4572         base64: fix off-by-one buffer size bug
4573         Problem and (trivial) fix reported by Gijs van Tulder in
4574         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00083.html>.
4575         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
4576         * tests/test-base64.c (main): Catch the bug.
4577
4578 2011-08-10  Eric Blake  <eblake@redhat.com>
4579
4580         closein: correct comments
4581         * lib/closein.c (close_stdin): Improve comments.
4582
4583 2011-08-09  Bruno Haible  <bruno@clisp.org>
4584
4585         More tests for 'fseeko'.
4586         * tests/test-fseeko3.c: New file, from Eric Blake.
4587         * tests/test-fseeko3.sh: New file.
4588         * modules/fseeko-tests (Files): Add them.
4589         (TESTS): Add test-fseeko3.sh.
4590         (check_PROGRAMS): Add test-fseeko3.
4591
4592 2011-08-09  Eric Blake  <eblake@redhat.com>
4593
4594         fseeko: remove unneeded hack
4595         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
4596
4597         fseeko: fix bug on glibc
4598         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
4599         Reported by John W. Eaton.
4600
4601 2011-08-08  Bruno Haible  <bruno@clisp.org>
4602
4603         unictype/base: Fix interoperability with preinstalled libunistring.
4604         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
4605         Reported by Simon Josefsson.
4606
4607 2011-08-08  Bruno Haible  <bruno@clisp.org>
4608
4609         iswblank: Detect declaration correctly.
4610         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
4611         AC_CHECK_DECLS invocation.
4612
4613 2011-08-08  Bruno Haible  <bruno@clisp.org>
4614
4615         tcgetsid: Detect declaration correctly.
4616         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
4617         AC_CHECK_DECLS invocation.
4618         Reported by Simon Josefsson.
4619
4620 2011-08-08  Eric Blake  <eblake@redhat.com>
4621
4622         largefile: fix typo that regressed large file support
4623         * modules/largefile (configure.ac-early): Fix section name.
4624
4625 2011-08-06  Karl Berry  <karl@gnu.org>
4626
4627         * MODULES.html.sh (func_all_files): _Noreturn is no longer
4628         a separate module.
4629
4630 2011-08-05  Simon Josefsson  <simon@josefsson.org>
4631
4632         openat: Fix warnings and commens when building unlinkat.c on Hurd.
4633         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
4634         get prototype for free.
4635
4636 2011-08-04  Bruno Haible  <bruno@clisp.org>
4637
4638         Tests for module 'pathmax'.
4639         * modules/pathmax-tests: New file.
4640         * tests/test-pathmax.c: New file.
4641
4642         canonicalize-lgpl: Support larger filenames on the Hurd.
4643         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
4644         Reported by Paul Eggert.
4645
4646         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
4647         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
4648         * lib/chdir-long.h: Include pathmax.h.
4649         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
4650         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
4651         (PATH_MAX): Remove code that is done by pathmax.h.
4652         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
4653         * lib/tmpfile.c: Add a comment.
4654         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
4655         * modules/chdir-long (Depends-on): Add pathmax.
4656         * modules/getcwd (Depends-on): Add pathmax.
4657         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
4658         is not defined.
4659         * doc/posix-headers/limits.texi: Mention the pathmax module.
4660         * NEWS: Mention the change.
4661
4662 2011-08-02  Bruno Haible  <bruno@clisp.org>
4663
4664         pthread_sigmask: Actually use results of gl_THREADLIB.
4665         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
4666         gl_THREADLIB, not gl_[]THREADLIB.
4667         Reported by Eric Blake.
4668
4669 2011-08-02  Jim Meyering  <meyering@redhat.com>
4670
4671         maint.mk: relax the default _gl_TS_function_match regexp
4672         * top/maint.mk (_gl_TS_function_match): Don't require at least one
4673         space between function name and "(" in an "extern" declaration.
4674         That would fail to match a decl with no space there: extern void foo();
4675
4676 2011-07-31  Iain Nicol  <iain@thenicols.net>
4677
4678         git-version-gen: document that EXTRA_DIST must include .version
4679         * build-aux/git-version-gen: In the how-to-use comment, document
4680         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
4681         will fail when run from an unpacked distribution tarball.
4682
4683 2011-08-01  Bruno Haible  <bruno@clisp.org>
4684
4685         wctype-h: Fix last change.
4686         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
4687         REPLACE_TOWLOWER to 0.
4688         Reported by Sam Steingold <sds@gnu.org>.
4689
4690 2011-07-31  Bruno Haible  <bruno@clisp.org>
4691
4692         frexpl: Update autoconf test.
4693         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
4694         according to changes of 2011-06-20.
4695
4696 2011-07-31  Bruno Haible  <bruno@clisp.org>
4697
4698         sys_utsname: Add support for Minix.
4699         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
4700         <sys/utsname.h>.
4701         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
4702         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
4703
4704 2011-07-31  Bruno Haible  <bruno@clisp.org>
4705
4706         strings: Add support for Minix.
4707         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
4708         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
4709         * doc/posix-headers/strings.texi: Document the Minix problem.
4710
4711 2011-07-31  Bruno Haible  <bruno@clisp.org>
4712
4713         wctype-h: Add support for Minix.
4714         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
4715         REPLACE_TOWLOWER.
4716         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
4717         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
4718         REPLACE_ISWCNTRL.
4719
4720 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
4721
4722         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
4723         This is a performance improvement for 64-bit hosts: it causes the
4724         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
4725
4726 2011-07-31  Bruno Haible  <bruno@clisp.org>
4727
4728         stdioext: Add support for Minix.
4729         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
4730         * lib/fpurge.c (fpurge): Likewise.
4731         * lib/freadahead.c (freadahead): Likewise.
4732         * lib/freadable.c (freadable): Likewise.
4733         * lib/freading.c (freading): Likewise.
4734         * lib/freadptr.c (freadptr): Likewise.
4735         * lib/freadseek.c (freadptrinc): Likewise.
4736         * lib/fseeko.c (rpl_fseeko): Likewise.
4737         * lib/fseterr.c (fseterr): Likewise.
4738         * lib/fwritable.c (fwritable): Likewise.
4739         * lib/fwriting.c (fwriting): Likewise.
4740         * lib/fflush.c (clear_ungetc_buffer): Update comment.
4741         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
4742
4743 2011-07-31  Bruno Haible  <bruno@clisp.org>
4744
4745         errno: Port to Minix.
4746         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
4747         ECONNABORTED are defined.
4748         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
4749         GNULIB_defined_ECONNABORTED): New macros.
4750         * lib/strerror-override.h (strerror_override): Test also
4751         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
4752         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
4753         ECONNABORTED.
4754         * doc/posix-headers/errno.texi: Mention the Minix problem.
4755
4756 2011-07-31  Bruno Haible  <bruno@clisp.org>
4757
4758         Work around declaration collisions on Minix.
4759         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
4760         defined, set REPLACE_MBSINIT.
4761         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
4762         defined, set REPLACE_MBRTOWC.
4763         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
4764         set REPLACE_MBRLEN.
4765         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
4766         defined, set REPLACE_MBSRTOWCS.
4767         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
4768         defined, set REPLACE_WCRTOMB.
4769         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
4770         defined, set REPLACE_WCSRTOMBS.
4771
4772 2011-07-31  Bruno Haible  <bruno@clisp.org>
4773
4774         Add support for Minix with ACK compiler.
4775         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
4776         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
4777         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
4778
4779 2011-07-31  Bruno Haible  <bruno@clisp.org>
4780
4781         Documentation about Minix.
4782         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
4783         * doc/glibc-headers/*.texi: Likewise.
4784         * doc/posix-functions/*.texi: Likewise.
4785         * doc/glibc-functions/*.texi: Likewise.
4786
4787 2011-07-31  Bruno Haible  <bruno@clisp.org>
4788
4789         snippet/warn-on-use: Fix indentation.
4790         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
4791
4792 2011-07-25  Jim Meyering  <meyering@redhat.com>
4793
4794         tests: test-update-copyright.sh: remove unnecessary "rm" commands
4795         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
4796         commands.
4797
4798 2011-07-27  Jim Meyering  <meyering@redhat.com>
4799
4800         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
4801         * top/maint.mk (gl_extract_significant_defines_): Now that
4802         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
4803         gnulib/lib/signal.in.h, and now that we recommend to
4804         define-if-undefined those two symbols in application code,
4805         we must filter them out of the "significant" list.
4806         This avoids a "make syntax-check" failure in coreutils.
4807
4808 2011-07-26  Eric Blake  <eblake@redhat.com>
4809
4810         warnings: add comments about previous patch
4811         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
4812         * m4/include_next.m4: Likewise.
4813         * m4/warn-on-use.m4: Likewise.
4814         * m4/warnings.m4: Likewise, and simplify use.
4815         Suggested by Stefano Lattarini.
4816
4817         include-next, warnings: support older autoconf
4818         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
4819         AS_VAR_PUSHDEF in a way that works with older autoconf.
4820         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
4821         Reported by Daniel P. Berrange.
4822
4823 2011-07-25  Bruno Haible  <bruno@clisp.org>
4824
4825         fseek, ftell: Fix doc.
4826         * doc/posix-functions/fseek.texi: Reword statement about
4827         AC_SYS_LARGEFILE.
4828         * doc/posix-functions/ftell.texi: Likewise.
4829
4830 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
4831             Bruno Haible  <bruno@clisp.org>
4832
4833         Add dependencies to the 'largefile' module.
4834         * modules/fopen (Depends-on): Add 'largefile'.
4835         * modules/freopen (Depends-on): Likewise.
4836         * modules/fseeko (Depends-on): Likewise.
4837         * modules/ftello (Depends-on): Likewise.
4838         * modules/glob (Depends-on): Likewise.
4839         * modules/lseek (Depends-on): Likewise.
4840         * modules/lstat (Depends-on): Likewise.
4841         * modules/mkostemp (Depends-on): Likewise.
4842         * modules/mkostemps (Depends-on): Likewise.
4843         * modules/mkstemp (Depends-on): Likewise.
4844         * modules/mkstemps (Depends-on): Likewise.
4845         * modules/open (Depends-on): Likewise.
4846         * modules/openat (Depends-on): Likewise.
4847         * modules/pread (Depends-on): Likewise.
4848         * modules/pwrite (Depends-on): Likewise.
4849         * modules/scandir (Depends-on): Likewise.
4850         * modules/stat (Depends-on): Likewise.
4851         * modules/tmpfile (Depends-on): Likewise.
4852         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
4853         since the containing module now depends on the largefile module.
4854         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
4855         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
4856         off_t is fixed by gnulib.
4857         * doc/posix-functions/freopen.texi: Likewise.
4858         * doc/posix-functions/fseeko.texi: Likewise.
4859         * doc/posix-functions/fstatat.texi: Likewise.
4860         * doc/posix-functions/ftello.texi: Likewise.
4861         * doc/posix-functions/glob.texi: Likewise.
4862         * doc/posix-functions/lseek.texi: Likewise.
4863         * doc/posix-functions/lstat.texi: Likewise.
4864         * doc/posix-functions/mkstemp.texi: Likewise.
4865         * doc/posix-functions/open.texi: Likewise.
4866         * doc/posix-functions/openat.texi: Likewise.
4867         * doc/posix-functions/pread.texi: Likewise.
4868         * doc/posix-functions/pwrite.texi: Likewise.
4869         * doc/posix-functions/scandir.texi: Likewise.
4870         * doc/posix-functions/stat.texi: Likewise.
4871         * doc/posix-functions/tmpfile.texi: Likewise.
4872         * doc/glibc-functions/mkostemp.texi: Likewise.
4873         * doc/glibc-functions/mkostemps.texi: Likewise.
4874         * doc/glibc-functions/mkstemps.texi: Likewise.
4875
4876 2011-07-25  Bruno Haible  <bruno@clisp.org>
4877
4878         fcntl: Move AC_LIBOBJ invocation to module description.
4879         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
4880         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
4881
4882         fcntl: Remove call-in from fchdir.m4.
4883         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
4884         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
4885
4886         dup3: Remove potential call-in from fchdir.m4.
4887         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
4888         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
4889
4890         dup2: Move AC_LIBOBJ invocation to module description.
4891         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
4892         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
4893         Don't invoke AC_LIBOBJ.
4894         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
4895
4896         dup2: Remove call-in from fchdir.m4.
4897         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
4898         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
4899
4900         fclose: Move AC_LIBOBJ invocation to module description.
4901         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
4902         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
4903         to 1.
4904         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
4905
4906         fclose: Remove call-in from close.m4.
4907         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
4908         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
4909
4910         close: Move AC_LIBOBJ invocation to module description.
4911         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
4912         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
4913         1.
4914         * modules/close (configure.ac): Invoke AC_LIBOBJ.
4915
4916         close: Remove call-in from fchdir.m4.
4917         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
4918         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
4919
4920         open: Move AC_LIBOBJ invocation to module description.
4921         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
4922         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
4923         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
4924
4925         open: Remove call-in from fchdir.m4.
4926         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
4927         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
4928
4929         fchdir: Start to remove gl_REPLACE_* idiom.
4930         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
4931         (gl_FUNC_FCHDIR): Invoke it.
4932
4933 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
4934
4935         * lib/ftell.c (ftell): Comment out cast.
4936
4937         close: use gl_REPLACE_FCLOSE only if defined
4938         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
4939         is defined.  The close module doesn't depend on the fclose module
4940         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
4941         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00392.html>.
4942         I reproduced the problem with "./gnulib-tool --test close sys_socket".
4943
4944 2011-07-24  Jim Meyering  <meyering@redhat.com>
4945
4946         test-select.h: avoid warning when using gcc's -Wmissing-declarations
4947         * tests/test-select.h (test_function): Declare as "static".
4948
4949 2011-07-24  Bruno Haible  <bruno@clisp.org>
4950
4951         doc: Mention the effects of AC_SYS_LARGEFILE.
4952         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
4953         on this function.
4954         * doc/posix-functions/aio_error.texi: Likewise.
4955         * doc/posix-functions/aio_fsync.texi: Likewise.
4956         * doc/posix-functions/aio_read.texi: Likewise.
4957         * doc/posix-functions/aio_return.texi: Likewise.
4958         * doc/posix-functions/aio_suspend.texi: Likewise.
4959         * doc/posix-functions/aio_write.texi: Likewise.
4960         * doc/posix-functions/fgetpos.texi: Likewise.
4961         * doc/posix-functions/fopen.texi: Likewise.
4962         * doc/posix-functions/freopen.texi: Likewise.
4963         * doc/posix-functions/fsetpos.texi: Likewise.
4964         * doc/posix-functions/fstatvfs.texi: Likewise.
4965         * doc/posix-functions/ftruncate.texi: Likewise.
4966         * doc/posix-functions/ftw.texi: Likewise.
4967         * doc/posix-functions/getrlimit.texi: Likewise.
4968         * doc/posix-functions/glob.texi: Likewise.
4969         * doc/posix-functions/lio_listio.texi: Likewise.
4970         * doc/posix-functions/lockf.texi: Likewise.
4971         * doc/posix-functions/mkstemp.texi: Likewise.
4972         * doc/posix-functions/mmap.texi: Likewise.
4973         * doc/posix-functions/nftw.texi: Likewise.
4974         * doc/posix-functions/openat.texi: Likewise.
4975         * doc/posix-functions/opendir.texi: Likewise.
4976         * doc/posix-functions/posix_fadvise.texi: Likewise.
4977         * doc/posix-functions/posix_fallocate.texi: Likewise.
4978         * doc/posix-functions/pread.texi: Likewise.
4979         * doc/posix-functions/pwrite.texi: Likewise.
4980         * doc/posix-functions/readdir.texi: Likewise.
4981         * doc/posix-functions/readdir_r.texi: Likewise.
4982         * doc/posix-functions/rewinddir.texi: Likewise.
4983         * doc/posix-functions/scandir.texi: Likewise.
4984         * doc/posix-functions/seekdir.texi: Likewise.
4985         * doc/posix-functions/setrlimit.texi: Likewise.
4986         * doc/posix-functions/statvfs.texi: Likewise.
4987         * doc/posix-functions/telldir.texi: Likewise.
4988         * doc/posix-functions/tmpfile.texi: Likewise.
4989         * doc/posix-functions/truncate.texi: Likewise.
4990         * doc/glibc-functions/fallocate.texi: Likewise.
4991         * doc/glibc-functions/fstatfs.texi: Likewise.
4992         * doc/glibc-functions/fts_children.texi: Likewise.
4993         * doc/glibc-functions/fts_read.texi: Likewise.
4994         * doc/glibc-functions/getdirentries.texi: Likewise.
4995         * doc/glibc-functions/mkostemp.texi: Likewise.
4996         * doc/glibc-functions/mkostemps.texi: Likewise.
4997         * doc/glibc-functions/mkstemps.texi: Likewise.
4998         * doc/glibc-functions/preadv.texi: Likewise.
4999         * doc/glibc-functions/pwritev.texi: Likewise.
5000         * doc/glibc-functions/sendfile.texi: Likewise.
5001         * doc/glibc-functions/statfs.texi: Likewise.
5002
5003 2011-07-24  Bruno Haible  <bruno@clisp.org>
5004
5005         doc: Fix typo.
5006         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
5007
5008 2011-07-24  Bruno Haible  <bruno@clisp.org>
5009
5010         doc: Mention fsusage.
5011         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
5012
5013 2011-07-24  Bruno Haible  <bruno@clisp.org>
5014
5015         doc: Mention new glibc headers and functions.
5016         * doc/glibc-headers/gshadow.texi: New file.
5017         * doc/glibc-functions/endsgent.texi: New file.
5018         * doc/glibc-functions/fgetsgent.texi: New file.
5019         * doc/glibc-functions/fgetsgent_r.texi: New file.
5020         * doc/glibc-functions/getsgent.texi: New file.
5021         * doc/glibc-functions/getsgent_r.texi: New file.
5022         * doc/glibc-functions/getsgnam.texi: New file.
5023         * doc/glibc-functions/getsgnam_r.texi: New file.
5024         * doc/glibc-functions/putsgent.texi: New file.
5025         * doc/glibc-functions/setsgent.texi: New file.
5026         * doc/glibc-functions/sgetsgent.texi: New file.
5027         * doc/glibc-functions/sgetsgent_r.texi: New file.
5028         * doc/glibc-functions/malloc_info.texi: New file.
5029         * doc/glibc-functions/preadv.texi: New file.
5030         * doc/glibc-functions/pwritev.texi: New file.
5031         * doc/glibc-functions/register_printf_modifier.texi: New file.
5032         * doc/glibc-functions/register_printf_specifier.texi: New file.
5033         * doc/glibc-functions/register_printf_type.texi: New file.
5034         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
5035         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
5036         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
5037         * doc/glibc-functions/pthread_getname_np.texi: New file.
5038         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
5039         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
5040         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
5041         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
5042         * doc/glibc-functions/pthread_setname_np.texi: New file.
5043         * doc/glibc-functions/pthread_sigqueue.texi: New file.
5044         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
5045         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
5046         * doc/glibc-functions/qsort_r.texi: New file.
5047         * doc/glibc-functions/quick_exit.texi: New file.
5048         * doc/glibc-functions/syncfs.texi: New file.
5049         * doc/gnulib.texi: Include them.
5050         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
5051         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
5052         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
5053         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
5054         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
5055         * doc/glibc-functions/execvpe.texi: Likewise.
5056
5057 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
5058
5059         ftell: don't include <unistd.h>
5060         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
5061         guaranteed to define off_t, and the ftell module depends on the
5062         stdio module.
5063
5064         ftell: do not assume wraparound signed arithmetic
5065         * lib/ftell.c: Include <limits.h>.
5066         (ftell): Don't assume wraparound signed arithmetic.
5067
5068 2011-07-24  Bruno Haible  <bruno@clisp.org>
5069
5070         close: No longer depend on module 'fclose'.
5071         * modules/close (Depends-on): Remove fclose.
5072         * NEWS: Mention the change.
5073         Suggested by Sam Steingold <sds@gnu.org>.
5074
5075 2011-07-24  Bruno Haible  <bruno@clisp.org>
5076
5077         fsusage: Enable large volume support on AIX >= 5.2.
5078         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
5079         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
5080         instead of STAT_STATVFS.
5081         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
5082
5083         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
5084         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
5085         f_blocks field only on MacOS X.
5086
5087         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
5088         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
5089         * modules/fsusage (Depends-on): Add largefile.
5090
5091 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
5092
5093         * README: Modernize discussion of signed integers.
5094         Assuming overflow wraparound is no longer safe.
5095         Mention ones' complement and signed magnitude.
5096
5097 2011-07-22  Bruno Haible  <bruno@clisp.org>
5098
5099         select tests, pselect tests: Refactor.
5100         * tests/test-select.h: New file, extracted from tests/test-select.c.
5101         (select_fn): New type.
5102         (test, do_select, do_select_nowait, do_select_wait, test_tty,
5103         test_connect_first, test_accept_first, test_pair, test_socket_pair,
5104         test_pipe): Add my_select argument.
5105         (test_function): Renamed from main. Add my_select argument.
5106         * tests/test-select.c: Move most code to tests/test-select.h. Include
5107         test-select.h.
5108         * modules/select-tests (Files): Add tests/test-select.h.
5109         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
5110         (my_select, main): New functions.
5111         * modules/pselect-tests (Files): Add tests/test-select.h,
5112         tests/macros.h, tests/signature.h.
5113         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
5114         (configure.ac): Check for <sys/wait.h>.
5115
5116 2011-07-22  Bruno Haible  <bruno@clisp.org>
5117
5118         sys_select tests: Check the signature of FD_*.
5119         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
5120         signature tests from here...
5121         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
5122         here.
5123         * modules/sys_select-tests (Files): Add tests/signature.h.
5124
5125 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
5126
5127         largefile: new module, replacing large-inode
5128         Pádraig Brady suggested this in        <http://debbugs.gnu.org/9140#20>.
5129         * MODULES.html.sh: Add largefile, remove large-inode.
5130         * modules/largefile, m4/largefile.m4: New files.
5131         * modules/large-inode, m4/large-inode.m4: Remove.
5132
5133         fsusage: port to MacOS X 10.7 with 4 TiB file systems
5134         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
5135         implementations that use only 32 bits to count blocks.
5136         On typical hosts with 1024-byte blocks, this fails with file
5137         systems as small as 4 TiB.  Problem reported by Herb Wartens
5138         <http://debbugs.gnu.org/9140> and this should also fix a similar
5139         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
5140
5141         large-inode: New module
5142         * MODULES.html.sh: Add it.
5143         * modules/large-inode, m4/large-inode.m4: New files.
5144
5145         extensions: Enable extensions on MacOS X 10.5 and later.
5146         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
5147
5148 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
5149
5150         file-has-acl: use acl_extended_file_nofollow if available
5151         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
5152         (acl_extended_file): New macro.
5153         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
5154         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
5155
5156 2011-07-21  Bruno Haible  <bruno@clisp.org>
5157
5158         Declare system functions in a way that works with C++.
5159         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
5160         declare fdopendir as extern "C".
5161         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
5162         declare frexpl as extern "C".
5163         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
5164         declare gai_strerror as extern "C".
5165         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
5166         programs, declare gai_strerror as extern "C".
5167         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
5168         declare getlogin_r as extern "C".
5169         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
5170         as extern "C".
5171         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
5172         declare ldexpl as extern "C".
5173         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
5174         as extern "C".
5175         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
5176         program, declare getmntinfo as extern "C".
5177         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
5178         stpncpy as extern "C".
5179         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
5180         program, declare __xpg_strerror_r as extern "C".
5181         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
5182         strndup as extern "C".
5183         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
5184         declare memset and bzero as extern "C".
5185         Reported by Sam Steingold <sds@gnu.org>.
5186
5187 2011-07-12  Jim Meyering  <meyering@redhat.com>
5188
5189         maint.mk: prohibit inclusion of "verify.h" without use
5190         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
5191
5192 2011-07-19  Pádraig Brady  <P@draigBrady.com>
5193
5194         timer-time: A new module to check for timer_settime()
5195         * m4/timer_time.m4: Check for the posix function.
5196         * modules/timer-time: Add the new module.
5197         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
5198         Mention it.
5199
5200 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
5201             Bruno Haible  <bruno@clisp.org>
5202
5203         pthread_sigmask: assume POSIX threads if --avoid=threadlib
5204         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
5205         not defined, assume POSIX threads and look for pthread_sigmask in
5206         $LIBS, without changing $CPPFLAGS.
5207
5208 2011-07-19  Bruno Haible  <bruno@clisp.org>
5209
5210         strstr: Update cross-compilation guess.
5211         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
5212         CPUs, guess no, in view of glibc
5213         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
5214         Suggested by Eric Blake. Reported by Reuben Thomas.
5215
5216 2011-07-19  Pádraig Brady  <P@draigBrady.com>
5217
5218         getopt-gnu: suppress core dumps from detection code
5219         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
5220         to suppress core dumps that may well occur on glibc systems.
5221         * modules/getopt-gnu: Depend on nocrash.
5222
5223 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
5224
5225         pthread_sigmask: ensure usleep is declared
5226         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
5227         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
5228
5229 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
5230
5231         doc: Document NonStop portability issues.
5232         * doc/posix-functions/sigaction.texi (sigaction):
5233         * doc/posix-headers/signal.texi (signal.h):
5234         Document NonStop.  See Joachim Schmitz in
5235         http://lists.gnu.org/archive/html/bug-coreutils/2011-07/msg00062.html
5236
5237 2011-07-15  Bruno Haible  <bruno@clisp.org>
5238
5239         ffsl, ffsll: Avoid unportable behaviour.
5240         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
5241
5242 2011-07-15  Bruno Haible  <bruno@clisp.org>
5243
5244         ffs: More tests.
5245         * tests/test-ffs.c (NBITS): New macro.
5246         (main): Add more tests.
5247         * tests/test-ffsl.c (NBITS): New macro.
5248         (main): Add more tests.
5249         * tests/test-ffsll.c (NBITS): New macro.
5250         (main): Add more tests.
5251
5252 2011-07-15  Eric Blake  <eblake@redhat.com>
5253
5254         ffsl, ffsll: new modules
5255         * modules/ffsl: New file.
5256         * modules/ffsll: Likewise.
5257         * m4/ffsl.m4: Likewise.
5258         * m4/ffsll.m4: Likewise.
5259         * lib/ffsl.c: Likewise.
5260         * lib/ffsl.h: Likewise.
5261         * lib/ffsll.c: Likewise.
5262         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
5263         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
5264         * modules/string (Makefile.am): Substitute witnesses.
5265         * lib/strings.in.h (ffsl, ffsll): Declare.
5266         * modules/ffsl-tests: New test file.
5267         * modules/ffsll-tests: Likewise.
5268         * tests/test-ffsl.c: Likewise.
5269         * tests/test-ffsll.c: Likewise.
5270         * MODULES.html.sh (Integer arithmetic functions): Mention it.
5271         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
5272         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
5273
5274         ffs: fix m4 prerequisite
5275         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
5276
5277         ffs: avoid undefined behavior
5278         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
5279         * tests/test-ffs.c (naive, main): Avoid signed shifts.
5280         Reported by Bruno Haible.
5281
5282 2011-07-12  Bruno Haible  <bruno@clisp.org>
5283
5284         pthread_sigmask: Rely on module 'threadlib'.
5285         * modules/pthread_sigmask (Depends-on): Add threadlib.
5286         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
5287         is defined.
5288
5289 2011-07-12  Bruno Haible  <bruno@clisp.org>
5290
5291         regex: Depend on module 'strcase'.
5292         * modules/regex (Depends-on): Add strcase, for strcasecmp().
5293
5294 2011-07-12  Jim Meyering  <meyering@redhat.com>
5295
5296         warn-on-use: fix typo in file name
5297         * modules/snippet/warn-on-use (Files): Correct file name:
5298         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
5299
5300 2011-07-12  Bruno Haible  <bruno@clisp.org>
5301
5302         strings: Document module.
5303         * doc/posix-headers/strings.texi: Mention module 'strings'.
5304
5305 2011-07-12  Bruno Haible  <bruno@clisp.org>
5306
5307         Rename module '_Noreturn' to 'snippet/_Noreturn'.
5308         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
5309         (Files, Makefile.am): Update.
5310         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
5311         * modules/stdlib (Depends-on): Update.
5312
5313 2011-07-12  Bruno Haible  <bruno@clisp.org>
5314
5315         * NEWS: Mention the changes.
5316
5317         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
5318         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
5319         (Files, Makefile.am): Update.
5320         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
5321         * modules/arpa_inet (Depends-on): Update.
5322         * modules/ctype (Depends-on): Update.
5323         * modules/dirent (Depends-on): Update.
5324         * modules/fcntl-h (Depends-on): Update.
5325         * modules/glob (Depends-on): Update.
5326         * modules/iconv-h (Depends-on): Update.
5327         * modules/inttypes-incomplete (Depends-on): Update.
5328         * modules/langinfo (Depends-on): Update.
5329         * modules/locale (Depends-on): Update.
5330         * modules/math (Depends-on): Update.
5331         * modules/netdb (Depends-on): Update.
5332         * modules/poll-h (Depends-on): Update.
5333         * modules/pty (Depends-on): Update.
5334         * modules/search (Depends-on): Update.
5335         * modules/signal (Depends-on): Update.
5336         * modules/spawn (Depends-on): Update.
5337         * modules/stdio (Depends-on): Update.
5338         * modules/stdlib (Depends-on): Update.
5339         * modules/string (Depends-on): Update.
5340         * modules/strings (Depends-on): Update.
5341         * modules/sys_file (Depends-on): Update.
5342         * modules/sys_ioctl (Depends-on): Update.
5343         * modules/sys_select (Depends-on): Update.
5344         * modules/sys_socket (Depends-on): Update.
5345         * modules/sys_stat (Depends-on): Update.
5346         * modules/sys_time (Depends-on): Update.
5347         * modules/sys_times (Depends-on): Update.
5348         * modules/sys_utsname (Depends-on): Update.
5349         * modules/sys_wait (Depends-on): Update.
5350         * modules/termios (Depends-on): Update.
5351         * modules/time (Depends-on): Update.
5352         * modules/unistd (Depends-on): Update.
5353         * modules/wchar (Depends-on): Update.
5354         * modules/wctype-h (Depends-on): Update.
5355         * MODULES.html.sh (Support for building libraries and executables):
5356         Update.
5357
5358         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
5359         * modules/snippet/unused-parameter: Renamed from
5360         modules/unused-parameter.
5361         (Files, Makefile.am): Update.
5362         * build-aux/snippet/unused-parameter.h: Renamed from
5363         build-aux/unused-parameter.h.
5364         * modules/selinux-h (Depends-on): Update.
5365         * modules/unistr/base (Depends-on): Update.
5366         * MODULES.html.sh (Core language properties): Update.
5367
5368         Rename module 'link-warning' to 'snippet/link-warning'.
5369         * modules/snippet/link-warning: Renamed from modules/link-warning.
5370         (Files, Makefile.am): Update.
5371         * build-aux/snippet/link-warning.h: Renamed from
5372         build-aux/link-warning.h.
5373         * MODULES.html.sh (Support for building libraries and executables):
5374         Update.
5375
5376         Rename module 'c++defs' to 'snippet/c++defs'.
5377         * modules/snippet/c++defs: Renamed from modules/c++defs.
5378         (Files, Makefile.am): Update.
5379         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
5380         * modules/arpa_inet (Depends-on): Update.
5381         * modules/ctype (Depends-on): Update.
5382         * modules/dirent (Depends-on): Update.
5383         * modules/fcntl-h (Depends-on): Update.
5384         * modules/glob (Depends-on): Update.
5385         * modules/iconv-h (Depends-on): Update.
5386         * modules/langinfo (Depends-on): Update.
5387         * modules/locale (Depends-on): Update.
5388         * modules/math (Depends-on): Update.
5389         * modules/netdb (Depends-on): Update.
5390         * modules/poll-h (Depends-on): Update.
5391         * modules/pty (Depends-on): Update.
5392         * modules/search (Depends-on): Update.
5393         * modules/signal (Depends-on): Update.
5394         * modules/spawn (Depends-on): Update.
5395         * modules/stdio (Depends-on): Update.
5396         * modules/stdlib (Depends-on): Update.
5397         * modules/string (Depends-on): Update.
5398         * modules/strings (Depends-on): Update.
5399         * modules/sys_ioctl (Depends-on): Update.
5400         * modules/sys_select (Depends-on): Update.
5401         * modules/sys_socket (Depends-on): Update.
5402         * modules/sys_stat (Depends-on): Update.
5403         * modules/sys_time (Depends-on): Update.
5404         * modules/sys_wait (Depends-on): Update.
5405         * modules/termios (Depends-on): Update.
5406         * modules/time (Depends-on): Update.
5407         * modules/unistd (Depends-on): Update.
5408         * modules/wchar (Depends-on): Update.
5409         * modules/wctype-h (Depends-on): Update.
5410
5411         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
5412         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
5413         (Files, Makefile.am): Update.
5414         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
5415         * modules/argv-iter (Depends-on): Update.
5416         * modules/arpa_inet (Depends-on): Update.
5417         * modules/dirent (Depends-on): Update.
5418         * modules/fcntl-h (Depends-on): Update.
5419         * modules/fnmatch (Depends-on): Update.
5420         * modules/getopt-posix (Depends-on): Update.
5421         * modules/glob (Depends-on): Update.
5422         * modules/iconv-h (Depends-on): Update.
5423         * modules/inttypes-incomplete (Depends-on): Update.
5424         * modules/locale (Depends-on): Update.
5425         * modules/math (Depends-on): Update.
5426         * modules/netdb (Depends-on): Update.
5427         * modules/search (Depends-on): Update.
5428         * modules/signal (Depends-on): Update.
5429         * modules/spawn (Depends-on): Update.
5430         * modules/stdio (Depends-on): Update.
5431         * modules/stdlib (Depends-on): Update.
5432         * modules/string (Depends-on): Update.
5433         * modules/strings (Depends-on): Update.
5434         * modules/sys_socket (Depends-on): Update.
5435         * modules/sys_stat (Depends-on): Update.
5436         * modules/sys_time (Depends-on): Update.
5437         * modules/sys_times (Depends-on): Update.
5438         * modules/sys_utsname (Depends-on): Update.
5439         * modules/time (Depends-on): Update.
5440         * modules/unistd (Depends-on): Update.
5441         * modules/wchar (Depends-on): Update.
5442         * MODULES.html.sh (Support for building libraries and executables):
5443         Update.
5444
5445 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
5446
5447         Improvements on _Noreturn and related modules.
5448
5449         modules/_Exit-tests: test _Noreturn too
5450         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
5451         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
5452         (main): Use them.
5453
5454         stdnoreturn, stdnoreturn-tests: remove modules
5455         They're not needed here and a bit premature for use elsewhere.  See
5456         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
5457         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
5458         * tests/test-stdnoreturn.c: Remove files.
5459         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
5460         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
5461         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
5462         and using noreturn.
5463         * modules/openat, modules/sigpipe-die, modules/xalloc:
5464         * modules/xmemdup0, modules/xstrtol:
5465         Remove dependency on stdnoreturn.
5466
5467         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
5468         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
5469         Reparenthesize to avoid GCC warning.
5470         Support Microsoft's syntax.
5471         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
5472
5473         _Noreturn-tests: remove module
5474         * modules/_Noreturn-tests: Remove.
5475         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
5476         * tests/test-_Noreturn.c: Remove.
5477         * tests/test-stdnoreturn.c: Merge from the old
5478         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
5479
5480 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
5481
5482         _Noreturn, stdnoreturn, and related modules.
5483
5484         * top/maint.mk: Adjust to new noreturn support.
5485         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
5486         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
5487
5488         xalloc: use stdnoreturn.h
5489         * lib/xalloc.h: Include <stdnoreturn.h>.
5490         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
5491         * modules/xalloc (Depends-on): Add stdnoreturn.
5492
5493         xstrtol: use stdnoreturn.h
5494         * lib/xstrtol.h: Include <stdnoreturn.h>.
5495         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
5496         * modules/xstrtol (Depends-on): Add stdnoreturn.
5497
5498         xmemdup0: use stdnoreturn.h
5499         * lib/xmemdup0.h: Include <stdnoreturn.h>.
5500         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
5501         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
5502
5503         sigpipe-die: use stdnoreturn.h
5504         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
5505         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
5506         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
5507
5508         openat: use stdnoreturn.h
5509         * lib/openat.h: Include <stdnoreturn.h>.
5510         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
5511         * modules/openat (Depends-on): Add stdnoreturn.
5512
5513         * lib/openat-die.c (openat_save_fail): Modernize comment.
5514
5515         * lib/xalloc-die.c (xalloc_die): Modernize comment.
5516
5517         * lib/glthread/thread.h: Modernize comment.
5518
5519         obstack: use _Noreturn
5520         * lib/obstack.c (__attribute__): Remove macro.
5521         (print_and_abort): Use _Noreturn.
5522
5523         c-stack: use _Noreturn
5524         * lib/c-stack.c (die, overflow_handler, segv_handler):
5525         Use _Noreturn rather than __attribute__((noreturn)).
5526
5527         argmatch-tests, exclude_tests: use _Noreturn
5528         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
5529         Remove.
5530         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
5531
5532         stdlib: use _Noreturn
5533         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
5534         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
5535         * modules/stdlib (Depends-on): Add _Noreturn.
5536         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
5537
5538         stdnoreturn-tests: new module
5539         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
5540
5541         stdnoreturn: new module
5542         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
5543         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
5544
5545         _Noreturn-tests: new module
5546         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
5547
5548         _Noreturn: new module
5549         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
5550         New section, mentioning it.
5551         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
5552
5553         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
5554
5555 2011-07-11  Eric Blake  <eblake@redhat.com>
5556
5557         ffs: new module
5558         * modules/ffs: New file.
5559         * m4/ffs.m4: Likewise.
5560         * lib/ffs.c: Likewise.
5561         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
5562         * modules/strings (Makefile.am): Substitute witness.
5563         (Depends-on): Add c++defs.
5564         * lib/strings.in.h (ffs): Declare.
5565         * modules/ffs-tests: New test file.
5566         * tests/test-ffs.c: Test new module.
5567         * MODULES.html.sh (Integer arithmetic functions): Mention it.
5568         * doc/posix-functions/ffs.texi (ffs): Likewise.
5569
5570         regex: avoid compiler warning
5571         * lib/regex.c (includes): Include <strings.h>, for use of
5572         strcasecmp in regcomp.c.
5573         Reported by Joachim Schmitz.
5574
5575 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
5576
5577         stdint: respect system's intmax_t if INTMAX_MAX
5578         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
5579         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
5580         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
5581         long but int64_t is long long, and where we will clash with the
5582         system intmax_t if we override it.  See
5583         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
5584         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
5585         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
5586         similarly for UINTMAX_C.
5587
5588 2011-07-08  Bruno Haible  <bruno@clisp.org>
5589
5590         pthread_sigmask tests: Avoid a compiler warning.
5591         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
5592         non-zero.
5593
5594         sigprocmask tests: A better way to avoid a compiler warning.
5595         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
5596         (main): Complain if system() returns non-zero.
5597         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
5598
5599 2011-07-08  Bruno Haible  <bruno@clisp.org>
5600
5601         pthread_sigmask: Work around IRIX bug.
5602         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
5603         bug.
5604         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
5605         there may be unblocked pending signals.
5606         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
5607
5608 2011-07-08  Bruno Haible  <bruno@clisp.org>
5609
5610         pthread_sigmask: Work around Cygwin bug.
5611         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
5612         bug.
5613         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
5614         the system's pthread_sigmask function.
5615         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
5616
5617 2011-07-08  Bruno Haible  <bruno@clisp.org>
5618
5619         pthread_sigmask: Work around bug in single-threaded implementation.
5620         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
5621         FreeBSD, HP-UX, Solaris bug.
5622         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
5623         * lib/pthread_sigmask.c: Include <stddef.h>.
5624         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
5625         the system's pthread_sigmask function.
5626         * modules/pthread_sigmask (configure.ac): Invoke
5627         gl_PREREQ_PTHREAD_SIGMASK.
5628         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
5629         HP-UX, Solaris.
5630
5631 2011-07-08  Eric Blake  <eblake@redhat.com>
5632
5633         test-sigprocmask: avoid compiler warning
5634         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
5635         * tests/test-sigprocmask.c (main): Use it to silence warning.
5636         Reported by Jim Meyering.
5637
5638         test-snprintf: avoid compiler warning
5639         * tests/test-snprintf.c (main): Avoid shadowed declaration.
5640         * tests/test-vsnprintf.c (main): Likewise.
5641         Reported by Jim Meyering.
5642
5643 2011-07-08  Bruno Haible  <bruno@clisp.org>
5644
5645         Tests for module 'pthread_sigmask'.
5646         * modules/pthread_sigmask-tests: New file.
5647         * tests/test-pthread_sigmask1.c: New file, based on
5648         tests/test-sigprocmask.c.
5649         * tests/test-pthread_sigmask2.c: New file.
5650
5651 2011-07-08  Jim Meyering  <meyering@redhat.com>
5652
5653         test-getopt.h: avoid warning about an unused variable
5654         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
5655
5656 2011-07-07  Jim Meyering  <meyering@redhat.com>
5657
5658         maint: reduce list of files exempt from sc_prohibit_leading_TABs
5659         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
5660         now that it no longer contains leading TABs.
5661         Remove unused "url=FIXME" statement.
5662
5663 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
5664
5665         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
5666         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
5667         When gl_THREADLIB is not in use, assume that the POSIX sematics
5668         are desired.  This is better for Emacs, which uses POSIX semantics
5669         on GNUish and/or POSIXish platforms, and does not use threads at
5670         all otherwise.
5671
5672         pthread_sigmask: fix typo when testing for libraries
5673         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
5674         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
5675
5676 2011-07-08  Eric Blake  <eblake@redhat.com>
5677
5678         fts: introduce FTS_NOATIME
5679         * lib/fts_.h (FTS_NOATIME): New bit flag.
5680         (FTS_OPTIONMASK): Adjust.
5681         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
5682         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
5683
5684 2011-07-08  Bruno Haible  <bruno@clisp.org>
5685
5686         Tests for module 'thread'.
5687         * modules/thread-tests: New file.
5688         * tests/test-thread_self.c: New file.
5689         * tests/test-thread_create.cc: New file.
5690
5691 2011-07-08  Bruno Haible  <bruno@clisp.org>
5692
5693         thread: Avoid gcc warnings when using gl_thread_self().
5694         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
5695         'void *'.
5696         (gl_thread_self_pointer): Update.
5697
5698 2011-07-07  Bruno Haible  <bruno@clisp.org>
5699
5700         signal-c++-tests: Check declaration of pthread_sigmask.
5701         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
5702         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
5703         $(LIB_PTHREAD_SIGMASK).
5704
5705 2011-07-07  Bruno Haible  <bruno@clisp.org>
5706
5707         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
5708         * lib/signal.in.h (pthread_sigmask): Override if
5709         REPLACE_PTHREAD_SIGMASK is 1.
5710         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
5711         REPLACE_PTHREAD_SIGMASK.
5712         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
5713         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
5714         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
5715         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
5716         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
5717
5718 2011-07-07  Bruno Haible  <bruno@clisp.org>
5719
5720         pthread_sigmask: Ensure declaration in <signal.h>.
5721         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
5722         include <pthread.h>.
5723         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
5724         problem.
5725
5726 2011-07-07  Bruno Haible  <bruno@clisp.org>
5727
5728         pthread_sigmask: Document the module.
5729         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
5730
5731 2011-07-07  Bruno Haible  <bruno@clisp.org>
5732
5733         pthread_sigmask: Follow gnulib conventions.
5734         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
5735         gl_PTHREAD_SIGMASK.
5736         * modules/pthread_sigmask (configure.ac): Update.
5737
5738 2011-07-07  Bruno Haible  <bruno@clisp.org>
5739
5740         pthread_sigmask: Make declaration C++ safe.
5741         * lib/signal.in.h: In two special conditions, just do an #include_next.
5742         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
5743         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
5744         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
5745         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
5746         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
5747         not REPLACE_PTHREAD_MASK.
5748         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
5749         not REPLACE_PTHREAD_MASK.
5750         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
5751
5752 2011-07-07  Bruno Haible  <bruno@clisp.org>
5753
5754         pthread_sigmask: Fix return value.
5755         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
5756         * lib/pthread_sigmask.c: New file.
5757         * modules/pthread_sigmask (Files): Add it.
5758         (configure.ac): Invoke AC_LIBOBJ.
5759
5760 2011-07-07  Eric Blake  <eblake@redhat.com>
5761
5762         getopt: more portable argv creation
5763         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
5764         const, use char arrays rather than strings.
5765         Suggested by Paul Eggert.
5766
5767 2011-07-07  Bruno Haible  <bruno@clisp.org>
5768
5769         Tests for module 'sigprocmask'.
5770         * modules/sigprocmask-tests: New file.
5771         * tests/test-sigprocmask.c: New file.
5772
5773 2011-07-07  Bruno Haible  <bruno@clisp.org>
5774
5775         float tests: Tweak.
5776         * tests/test-float.c (main): Tweak skip message.
5777
5778 2011-07-07  Eric Blake  <eblake@redhat.com>
5779
5780         getopt: avoid compiler warning during configure
5781         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
5782         assigning string literals to non-const pointer.
5783
5784         getopt-gnu: avoid crash in glibc getopt
5785         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
5786         * tests/test-getopt.h (test_getopt): Enhance test.
5787         * tests/test-getopt_long.h (test_getopt_long): Likewise.
5788         * doc/posix-functions/getopt.texi (getopt): Document it.
5789         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
5790         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
5791         Likewise.
5792
5793 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
5794
5795         getopt: handle W; without long options in getopt [BZ #12922]
5796         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
5797         but no long options are defined, just return 'W'.
5798
5799 2011-07-07  Bruno Haible  <bruno@clisp.org>
5800
5801         Avoid literal tabs.
5802         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
5803         variable containing a tab instead of a literal tab.
5804         Reported by Jim Meyering.
5805
5806 2011-07-07  Bruno Haible  <bruno@clisp.org>
5807
5808         Comments.
5809         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
5810
5811 2011-07-06  Bruno Haible  <bruno@clisp.org>
5812
5813         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
5814         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
5815         <winsock2.h>.
5816         (rpl_fd_isset, FD_ISSET): New definitions, copied from
5817         lib/sys_socket.in.h.
5818         (close, gethostname): Hide declarations from <winsock2.h>.
5819         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
5820         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
5821         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
5822         (select): Don't override if gnulib's <sys/select.h> was already
5823         included.
5824         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
5825         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
5826         setsockopt, shutdown, select): Tweak indentation.
5827
5828 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
5829
5830         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
5831         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
5832         in an application that does not use the sys_select module.
5833
5834 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
5835
5836         poll: do not return 0 on timeout=-1
5837         * lib/poll.c: Loop with yield if no events occured
5838
5839 2011-07-06  Eric Blake  <eblake@redhat.com>
5840
5841         pthread_sigmask: always replace when not using pthread
5842         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
5843         replacement when using some threading other than pthread.  Fix
5844         logic bug.
5845
5846 2011-07-06  Bruno Haible  <bruno@clisp.org>
5847
5848         Comments.
5849         * m4/printf.m4: Update comments about mingw.
5850
5851 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
5852
5853         sys_select: define sigset_t more portably
5854         * lib/sys_select.in.h: Always include <sys/types.h>, since
5855         we now need sigset_t and mingw defines it there.
5856         Include <signal.h> before split inclusion guard, to avoid
5857         mishaps on Solaris, whose <signal.h> eventually includes us.
5858         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
5859         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
5860         which come from ...
5861         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
5862         gl_CHECK_TYPE_SIGSET_T.
5863         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
5864         does the real work.
5865         * modules/sys_select (Depends-on): Add 'signal'.
5866
5867         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
5868         Suggested by Bruno Haible.
5869
5870         pselect: Use pthread_sigmask, not sigprocmask.
5871         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
5872         multithreaded apps better than sigprocmask does.
5873         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
5874         sigprocmask directly.
5875
5876 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
5877
5878         * lib/pselect.c (pselect): Use plain name, without "rpl_".
5879         Don't #undef,  since we don't need any underlying pselect.
5880         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
5881         (Depends-on): Add select.
5882         (Link): Add $(LIBSOCKET).
5883         These changes suggested by Bruno Haible.
5884
5885         pselect: document better
5886         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
5887         * doc/posix-functions/pselect.texi (pselect): Document new module.
5888
5889         pthread_sigmask: new module
5890         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
5891         * doc/posix-functions/pthread_sigmask.texi: Document new module.
5892         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
5893         This is done only as a macro; I don't know how well that'll
5894         work for C++.  Move <sys/types.h> include before the include_next,
5895         to avoid mishap on Solaris.
5896         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
5897         * modules/signal (Makefile.am): Substitute the check's results.
5898         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
5899
5900         test-pselect: new module
5901         * modules/pselect-tests, tests/test-pselect.c: New files.
5902         * tests/test-select.c, tests/test-sys_select-c++.cc:
5903         If TEST_PSELECT is defined, test pselect instead of testing select.
5904
5905         * tests/test-sys_select.c (sigset_t): Test for it, too.
5906         Suggested by Bruno Haible.
5907
5908 2011-07-05  Eric Blake  <eblake@redhat.com>
5909
5910         snprintf: guarantee %1$d, for libintl
5911         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
5912         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
5913         * doc/posix-functions/snprintf.texi (snprintf): Update.
5914         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
5915         * tests/test-snprintf.c (main): Enhance test.
5916         * tests/test-vsnprintf.c (main): Likewise.
5917
5918 2011-07-05  Jim Meyering  <meyering@redhat.com>
5919
5920         maint: exempt stdio-read.c and stdio-write.c from the cppi check
5921         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
5922         per Bruno's request, to accommodate this idiom (no space after "#")
5923         even when the function is inside an #if block:
5924         char *
5925         gets (char *s)
5926         #undef gets
5927         {
5928           ...
5929         }
5930
5931 2011-07-04  Jim Meyering  <meyering@redhat.com>
5932
5933         maint: indent with spaces, not TABs, and add a rule to check this
5934         * tests/test-userspec.c: Indent with spaces, not TABs.
5935         * tests/test-argp.c: Likewise.
5936         * tests/test-c-stack2.sh: Likewise.
5937         * tests/test-parse-duration.sh: Likewise
5938         * m4/strtod.m4: Likewise.
5939         * m4/alloca.m4: Likewise.
5940         * m4/pselect.m4: Likewise.
5941         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
5942
5943 2011-07-03  Jim Meyering  <meyering@redhat.com>
5944
5945         maint.mk: correct omissions in prohibit_argmatch_without_use check
5946         This rule would mistakenly report that argmatch.h is included without
5947         use even when both the argmatch and invalid_arg macro were used.
5948         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
5949         of argmatch and invalid_arg.
5950
5951 2011-07-03  Bruno Haible  <bruno@clisp.org>
5952
5953         Comments about EINTR.
5954         * lib/safe-read.h: Explain the purpose of this module.
5955         * lib/safe-write.h: Likewise.
5956         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
5957         module.
5958         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
5959         module.
5960         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
5961
5962 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
5963
5964         xnanosleep: Rewrite to use new dtotimespec module.
5965         It has the conversion code that used to be in xnanosleep.
5966         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
5967         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
5968         (TIME_T_MAX): Remove.
5969         (xnanosleep): Rewrite in terms of dtotimespec.
5970         * modules/xnanosleep (Depends-on): Add dtotimespec.
5971         Remove intprops, stdbool.
5972
5973         timespec-add, timespec-sub: new modules
5974         * lib/timespec.h (timespec_add, timespec_sub): New decls.
5975         * lib/timespec-add.c, lib/timespec-sub.c:
5976         * modules/timespec-add, modules/timespec-sub: New files.
5977
5978         dtotimespec: new module
5979         * lib/timespec.h (dtotimespec): New decl.
5980         * lib/dtotimespec.c, modules/dtotimespec: New files.
5981
5982         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
5983
5984         pselect: new module
5985         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
5986         (pselect): New decls.
5987         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
5988         since the standard pselect decl uses 'restrict'.
5989         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
5990         HAVE_PSELECT, REPLACE_PSELECT.
5991         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
5992         HAVE_PSELECT, REPLACE_PSELECT.
5993         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
5994
5995         sys_select: don't depend on sys_socket
5996         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
5997         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
5998         This fix works on GNU and GNU-like platforms, but has not been tested
5999         on native Windows.
6000         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
6001         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
6002         gl_HEADER_SYS_SOCKET.
6003         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
6004         gl_PREREQ_SYS_H_WINSOCK2.
6005
6006 2011-06-29  Eric Blake  <eblake@redhat.com>
6007
6008         pipe2: fix C89 compile problem
6009         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
6010         Reported by Bruno Haible.
6011
6012         pipe, pipe2: don't corrupt fd on error
6013         * lib/pipe.c (pipe): Leave fd unchanged on error.
6014         * lib/pipe2.c (pipe2): Likewise.
6015         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
6016         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
6017
6018 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
6019
6020         mmap-anon: do not use regular expressions inadvertently
6021         * m4/mmap-anon.m4: Remove trailing period from strings sought
6022         in the output.
6023
6024 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
6025
6026         nanosleep: fix integer overflow problem
6027         * lib/nanosleep.c (my_usleep): Don't assume signed integer
6028         arithmetic wraps around on overflow.
6029
6030         nanosleep: simplify carrying
6031         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
6032         first call to the underyling nanosleep, not for the last one.
6033         This doesn't fix any bugs, but it simplifies the computation of
6034         the remaining delay.  Found while auditing integer overflow issues.
6035
6036         dup2: remove test for existence of fcntl
6037         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
6038         "#if HAVE_FCNTL", in the configure-time test program.
6039         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
6040         and therefore speeds up "configure" a bit.  Found while
6041         adding the dup2 module to Emacs.
6042
6043 2011-06-24  Eric Blake  <eblake@redhat.com>
6044
6045         maint.mk: enhance useless header checks
6046         * top/maint.mk (_sc_header_without_use): Check both include
6047         styles.
6048         (sc_prohibit_assert_without_use)
6049         (sc_prohibit_close_stream_without_use)
6050         (sc_prohibit_getopt_without_use)
6051         (sc_prohibit_quotearg_without_use)
6052         (sc_prohibit_quote_without_use)
6053         (sc_prohibit_long_options_without_use)
6054         (sc_prohibit_inttostr_without_use)
6055         (sc_prohibit_ignore_value_without_use)
6056         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
6057         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
6058         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
6059         (sc_prohibit_hash_pjw_without_use)
6060         (sc_prohibit_safe_read_without_use)
6061         (sc_prohibit_argmatch_without_use)
6062         (sc_prohibit_canonicalize_without_use)
6063         (sc_prohibit_root_dev_ino_without_use)
6064         (sc_prohibit_openat_without_use)
6065         (sc_prohibit_c_ctype_without_use)
6066         (sc_prohibit_signal_without_use)
6067         (sc_prohibit_stdio--_without_use)
6068         (sc_prohibit_stdio-safer_without_use)
6069         (sc_prohibit_strings_without_use)
6070         (sc_prohibit_intprops_without_use)
6071         (sc_prohibit_stddef_without_use)
6072         (sc_prohibit_xfreopen_without_use): Update clients.
6073
6074 2011-06-24  Jim Meyering  <meyering@redhat.com>
6075
6076         syntax-check: keep one maint.mk rule in sync with its header
6077         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
6078         of the bug Eric has just fixed, with today's commit 25e4c2ec.
6079         I prefer to avoid temporary files here, so use <(...), but that
6080         is not supported by /bin/sh, so...
6081         (SHELL): Define to /bin/bash.
6082
6083 2011-06-24  Eric Blake  <eblake@redhat.com>
6084
6085         maint.mk: update sc_prohibit_intprops_without_use
6086         * top/maint.mk (_intprops_names): Match recent changes.
6087
6088 2011-06-24  Bruno Haible  <bruno@clisp.org>
6089
6090         strerror-override: No-op tweak.
6091         * lib/strerror-override.h (strerror_override): Reorder conditions,
6092         for consistency with lib/strerror-override.c.
6093
6094 2011-06-23  Eric Blake  <eblake@redhat.com>
6095
6096         maint.mk: test further PATH_MAX issues
6097         * top/maint.mk (sc_prohibit_path_max_array): Rename...
6098         (sc_prohibit_path_max_allocation): ...and also test alloca.
6099         Suggested by Jim Meyering.
6100
6101 2011-06-22  Eric Blake  <eblake@redhat.com>
6102
6103         maint.mk: add syntax-check to avoid char[PATH_MAX]
6104         * top/maint.mk (sc_prohibit_path_max_array): New rule.
6105
6106         stat: be robust to PATH_MAX definition
6107         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
6108         * modules/stat (Depends-on): Add verify.
6109
6110         link: work around IRIX bug
6111         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
6112         * lib/link.c (rpl_link): Work around it.
6113         * tests/test-link.h (test_link): Enhance test.
6114         * doc/posix-functions/link.texi (link): Document the bug.
6115
6116         getopt: silence clang warning
6117         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
6118         dereference.
6119         Reported by Gustavo Martin Domato.
6120
6121 2011-06-22  Jim Meyering  <meyering@redhat.com>
6122
6123         bootstrap: do not insert a blank line into each .gitignore file
6124         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
6125
6126 2011-06-21  Eric Blake  <eblake@redhat.com>
6127
6128         perror: test for output mismatch
6129         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
6130         perror on IRIX.
6131
6132         strerror_r: fix OpenBSD behavior on out-of-range
6133         * lib/strerror_r.c (strerror_r): Always use maximal string.
6134         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
6135
6136         strerror_r: fix OpenBSD behavior on 0
6137         * lib/strerror-override.c (strerror_override): Also override 0
6138         when needed.
6139         * lib/strerror-override.h (strerror_override): Likewise.
6140         * lib/strerror.c (strerror): Simplify, now that 0 override is done
6141         earlier.
6142         * lib/strerror_r.c (strerror_r): Likewise.
6143         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
6144         behavior...
6145         (gl_FUNC_STRERROR_0): ...into new macro.
6146         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
6147         is overridden.
6148         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
6149         * modules/strerror-override (Files): Add strerror.m4.
6150         (configure.ac): Also provide override for 0 when needed.
6151         * doc/posix-functions/strerror.texi (strerror): Document this.
6152         * doc/posix-functions/perror.texi (perror): Likewise.
6153
6154         perror: adjust array size
6155         * modules/perror (Depends-on): Add strerror-override.
6156         * lib/perror.c (perror): Use it to avoid magic number.
6157
6158         strerror-override: reduce size
6159         * lib/strerror-override.c (strerror_override): Use fewer lines.
6160
6161 2011-06-20  Bruno Haible  <bruno@clisp.org>
6162
6163         pathmax: Ensure correct value for PATH_MAX on HP-UX.
6164         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
6165
6166 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
6167
6168         alloca: port to compilers that can optimize like GCC 4.6.0
6169         * lib/alloca.c (find_stack_direction): New signature, taken from
6170         Autoconf git.  This works with GCC 4.6.0.  This code should never
6171         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
6172         be used with other compilers that optimize as well as GCC 4.6.0 does.
6173         (alloca): Adjust to new signature.
6174         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
6175         New macro, which patches Autoconf in a similar way.
6176
6177         c-stack: stop worrying about stack direction
6178         * lib/c-stack.c (find_stack_direction): Remove.
6179         (segv_handler): Don't worry about stack direction growth, as it's
6180         too much of a pain to configure this correctly, given how compilers
6181         are optimizing-away our stack-growth detection code.  Instead, assume
6182         that any access to just before or just after the stack is OK.
6183         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
6184         Don't require AC_FUNC_ALLOCA; no longer needed.
6185
6186 2011-06-20  Eric Blake  <eblake@redhat.com>
6187
6188         test-stat: don't allocate PATH_MAX bytes
6189         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
6190         PATH_MAX-sized buffer.
6191         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
6192         * modules/stat-tests (Depends-on): Likewise.
6193         * tests/test-fstatat.c (includes): Drop pathmax.h.
6194         * tests/test-stat.c (includes): Likewise.
6195         Reported by Bruno Haible.
6196
6197 2011-06-20  Bruno Haible  <bruno@clisp.org>
6198
6199         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
6200         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
6201         * lib/float.c: New file.
6202         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
6203         REPLACE_FLOAT_LDBL.
6204         * modules/float (Files): Add lib/float.c.
6205         (configure.ac): Invoke AC_LIBOBJ.
6206         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
6207
6208 2011-06-20  Bruno Haible  <bruno@clisp.org>
6209
6210         Tests for module 'float'.
6211         * modules/float-tests: New file.
6212         * tests/test-float.c: New file.
6213
6214 2011-06-19  Bruno Haible  <bruno@clisp.org>
6215
6216         isinf: Coding style.
6217         * lib/isinf.c: Use GNU coding style.
6218
6219 2011-06-19  Bruno Haible  <bruno@clisp.org>
6220
6221         linkat test: Avoid test failure on AIX 7.1.
6222         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
6223         * tests/test-link.h (test_link): Likewise.
6224
6225 2011-06-19  Bruno Haible  <bruno@clisp.org>
6226
6227         pread test: Avoid test failure on OpenBSD 4.9.
6228         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
6229
6230 2011-06-19  Bruno Haible  <bruno@clisp.org>
6231
6232         sprintf-posix: Fix test failure on AIX 7.1.
6233         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
6234         * doc/posix-functions/dprintf.texi: Mention limited precision problem
6235         on AIX.
6236         * doc/posix-functions/fprintf.texi: Likewise.
6237         * doc/posix-functions/printf.texi: Likewise.
6238         * doc/posix-functions/snprintf.texi: Likewise.
6239         * doc/posix-functions/sprintf.texi: Likewise.
6240         * doc/posix-functions/vdprintf.texi: Likewise.
6241         * doc/posix-functions/vfprintf.texi: Likewise.
6242         * doc/posix-functions/vprintf.texi: Likewise.
6243         * doc/posix-functions/vsnprintf.texi: Likewise.
6244         * doc/posix-functions/vsprintf.texi: Likewise.
6245
6246 2011-06-19  Bruno Haible  <bruno@clisp.org>
6247
6248         roundl-ieee: Fix test failure on AIX 7.1.
6249         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
6250         * doc/posix-functions/roundl.texi: Mention problem with negative
6251         arguments.
6252
6253 2011-06-19  Bruno Haible  <bruno@clisp.org>
6254
6255         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
6256         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
6257         * doc/posix-functions/round.texi: Mention problem with negative
6258         arguments.
6259         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
6260
6261 2011-06-19  Bruno Haible  <bruno@clisp.org>
6262
6263         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
6264         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
6265         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
6266         * doc/posix-functions/roundf.texi: Mention problem with negative
6267         arguments.
6268         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
6269
6270 2011-06-19  Bruno Haible  <bruno@clisp.org>
6271
6272         ceilf-ieee: Work around bug on MacOS X 10.5.
6273         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
6274
6275         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
6276         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
6277         IEEE compliant, avoid compiler optimizations.
6278         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
6279         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
6280         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
6281         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
6282         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
6283         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
6284         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
6285         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
6286         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
6287         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
6288
6289 2011-06-19  Bruno Haible  <bruno@clisp.org>
6290
6291         ceilf-ieee: Work around bug on AIX 7.1.
6292         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
6293         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
6294
6295 2011-06-19  Bruno Haible  <bruno@clisp.org>
6296
6297         ceil-ieee: Work around bug on AIX 7.1.
6298         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
6299         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
6300
6301 2011-06-18  Bruno Haible  <bruno@clisp.org>
6302
6303         fsync test: Avoid test failure on MacOS X and AIX.
6304         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
6305         EINVAL.
6306
6307 2011-06-18  Bruno Haible  <bruno@clisp.org>
6308
6309         openat, fdopendir tests: Fix link errors.
6310         * modules/openat-tests (Depends-on): Add progname.
6311         * modules/fdopendir-tests (Depends-on): Likewise.
6312         * tests/test-fchownat.c: Include progname.h.
6313         (main): Call set_program_name.
6314         * tests/test-fstatat.c: Include progname.h.
6315         (main): Call set_program_name.
6316         * tests/test-mkdirat.c: Include progname.h.
6317         (main): Call set_program_name.
6318         * tests/test-openat.c: Include progname.h.
6319         (main): Call set_program_name.
6320         * tests/test-unlinkat.c: Include progname.h.
6321         (main): Call set_program_name.
6322         * tests/test-fdopendir.c: Include progname.h.
6323         (main): Call set_program_name.
6324
6325 2011-06-18  Bruno Haible  <bruno@clisp.org>
6326
6327         Doc update.
6328         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
6329         HP-UX.
6330         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
6331
6332 2011-06-18  Bruno Haible  <bruno@clisp.org>
6333
6334         getcwd tests: Avoid compilation error on HP-UX 11.31.
6335         * modules/getcwd-tests (Depends-on): Add pathmax.
6336         * tests/test-getcwd.c: Include pathmax.h.
6337
6338 2011-06-18  Bruno Haible  <bruno@clisp.org>
6339
6340         isfinite, isinf: Fix link error on AIX 6 and 7.
6341         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
6342         needed, also test the macro with a 'float' argument.
6343         * m4/isinf.m4 (gl_ISINF): Likewise.
6344
6345 2011-06-18  Bruno Haible  <bruno@clisp.org>
6346
6347         getloadavg: Don't clobber LIBS. Regression from previous commit.
6348         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
6349         AC_CHECK_LIB from here...
6350         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
6351         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
6352         gl_func_getloadavg_done.
6353         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6354
6355 2011-06-18  Bruno Haible  <bruno@clisp.org>
6356
6357         clean-temp: Improve documentation.
6358         * lib/clean-temp.h: Explain better how to use this module.
6359         Reported by John Darrington <john@darrington.wattle.id.au>.
6360
6361 2011-06-17  Bruno Haible  <bruno@clisp.org>
6362
6363         pread, pwrite: Avoid cc warning on AIX.
6364         * lib/unistd.in.h (pread): Undefine before defining as a macro.
6365         (pwrite): Likewise.
6366
6367 2011-06-17  Bruno Haible  <bruno@clisp.org>
6368
6369         spawn-pipe tests: Fix link error.
6370         * tests/test-spawn-pipe-child.c: Undefine fprintf.
6371         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6372
6373 2011-06-17  Bruno Haible  <bruno@clisp.org>
6374
6375         Tests: Remove unnecessary dependency.
6376         * modules/canonicalize-tests (Depends-on): Remove progname.
6377         * modules/chown-tests (Depends-on): Likewise.
6378         * modules/dirname-tests (Depends-on): Likewise.
6379         * modules/fdopendir-tests (Depends-on): Likewise.
6380         * modules/fdutimensat-tests (Depends-on): Likewise.
6381         * modules/hash-tests (Depends-on): Likewise.
6382         * modules/lchown-tests (Depends-on): Likewise.
6383         * modules/linkat-tests (Depends-on): Likewise.
6384         * modules/renameat-tests (Depends-on): Likewise.
6385         * modules/spawn-pipe-tests (Depends-on): Likewise.
6386         * modules/utimensat-tests (Depends-on): Likewise.
6387
6388 2011-06-17  Bruno Haible  <bruno@clisp.org>
6389
6390         spawn-pipe tests: Fix link error.
6391         * tests/test-spawn-pipe-child.c: Undefine fflush.
6392
6393 2011-06-17  Bruno Haible  <bruno@clisp.org>
6394
6395         Fix tests link errors.
6396         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
6397         * modules/chown-tests (Makefile.am): Don't link test-chown with
6398         LIBINTL.
6399         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
6400         LIBINTL.
6401         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
6402         LIBINTL.
6403         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
6404         LIBINTL.
6405
6406 2011-06-16  Bruno Haible  <bruno@clisp.org>
6407
6408         crypto/gc-sha1: Fix recent regression.
6409         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
6410         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
6411
6412         crypto/gc-md5: Fix recent regression.
6413         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
6414
6415         crypto/gc-md4: Fix recent regression.
6416         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
6417         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
6418
6419         crypto/gc-arctwo: Fix recent regression.
6420         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
6421         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
6422
6423         crypto/gc-rijndael: Fix recent regression.
6424         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
6425         (configure.ac): Invoke AC_LIBOBJ here.
6426         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
6427         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6428
6429         crypto/gc-hmac-sha1: Fix recent regression.
6430         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
6431         (configure.ac): Invoke AC_LIBOBJ here.
6432         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
6433         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6434
6435         crypto/gc-hmac-md5: Fix recent regression.
6436         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
6437         (configure.ac): Invoke AC_LIBOBJ here.
6438         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
6439         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6440
6441         crypto/gc-des: Fix recent regression.
6442         * modules/crypto/gc-des (Files): Remove m4/des.m4.
6443         (configure.ac): Invoke AC_LIBOBJ here.
6444         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
6445         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6446
6447         crypto/gc-arcfour: Fix recent regression.
6448         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
6449         (configure.ac): Invoke AC_LIBOBJ here.
6450         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
6451         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6452
6453 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
6454
6455         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
6456         After the 2011-05-21 change, this macro requires
6457         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
6458         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
6459
6460 2011-06-16  Bruno Haible  <bruno@clisp.org>
6461
6462         fprintftime: Move AC_LIBOBJ invocations to module description.
6463         * m4/fprintftime.m4: Remove file.
6464         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
6465         (configure.ac): Remove gl_FPRINTFTIME call.
6466         (Makefile.am): Augment lib_SOURCES.
6467         Reported by Jim Meyering.
6468
6469 2011-06-16  Bruno Haible  <bruno@clisp.org>
6470
6471         tmpfile-safer: Finish 2011-05-23 commit.
6472         * m4/stdio-safer.m4: Really remove file.
6473         Reported by Jim Meyering.
6474
6475 2011-06-16  Bruno Haible  <bruno@clisp.org>
6476
6477         syntax-check: Fix typo.
6478         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
6479         printf-posix.m4.
6480         Reported by Jim Meyering.
6481
6482 2011-06-13  Jim Meyering  <meyering@redhat.com>
6483
6484         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
6485         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
6486
6487 2011-05-23  Bruno Haible  <bruno@clisp.org>
6488
6489         yesno: Move AC_LIBOBJ invocations to module description.
6490         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
6491         * modules/yesno (Makefile.am): Augment lib_SOURCES.
6492
6493 2011-05-23  Bruno Haible  <bruno@clisp.org>
6494
6495         xstrtol: Move AC_LIBOBJ invocations to module description.
6496         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
6497         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
6498
6499 2011-05-23  Bruno Haible  <bruno@clisp.org>
6500
6501         xstrtold: Move AC_LIBOBJ invocations to module description.
6502         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
6503         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
6504
6505 2011-05-23  Bruno Haible  <bruno@clisp.org>
6506
6507         xstrtod: Move AC_LIBOBJ invocations to module description.
6508         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
6509         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
6510
6511 2011-05-23  Bruno Haible  <bruno@clisp.org>
6512
6513         xnanosleep: Move AC_LIBOBJ invocations to module description.
6514         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
6515         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
6516
6517 2011-05-23  Bruno Haible  <bruno@clisp.org>
6518
6519         xgetcwd: Move AC_LIBOBJ invocations to module description.
6520         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
6521         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
6522
6523 2011-05-23  Bruno Haible  <bruno@clisp.org>
6524
6525         xalloc: Move AC_LIBOBJ invocations to module description.
6526         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
6527         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
6528
6529 2011-05-23  Bruno Haible  <bruno@clisp.org>
6530
6531         write-any-file: Move AC_LIBOBJ invocations to module description.
6532         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
6533         invocation.
6534         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
6535
6536 2011-05-23  Bruno Haible  <bruno@clisp.org>
6537
6538         utimens: Move AC_LIBOBJ invocations to module description.
6539         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
6540         * modules/utimens (Makefile.am): Augment lib_SOURCES.
6541
6542 2011-05-23  Bruno Haible  <bruno@clisp.org>
6543
6544         utimecmp: Move AC_LIBOBJ invocations to module description.
6545         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
6546         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
6547
6548 2011-05-23  Bruno Haible  <bruno@clisp.org>
6549
6550         userspec: Move AC_LIBOBJ invocations to module description.
6551         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
6552         * modules/userspec (Makefile.am): Augment lib_SOURCES.
6553
6554 2011-05-23  Bruno Haible  <bruno@clisp.org>
6555
6556         unlinkdir: Move AC_LIBOBJ invocations to module description.
6557         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
6558         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
6559
6560 2011-05-23  Bruno Haible  <bruno@clisp.org>
6561
6562         unistd-safer: Move AC_LIBOBJ invocations to module description.
6563         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
6564         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
6565
6566 2011-05-23  Bruno Haible  <bruno@clisp.org>
6567
6568         tempname: Move AC_LIBOBJ invocations to module description.
6569         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
6570         * modules/tempname (Makefile.am): Augment lib_SOURCES.
6571
6572 2011-05-23  Bruno Haible  <bruno@clisp.org>
6573
6574         strftime: Move AC_LIBOBJ invocations to module description.
6575         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
6576         * modules/strftime (Makefile.am): Augment lib_SOURCES.
6577
6578 2011-05-23  Bruno Haible  <bruno@clisp.org>
6579
6580         stdlib-safer: Move AC_LIBOBJ invocations to module description.
6581         * m4/stdlib-safer.m4: Remove file.
6582         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
6583         (configure.ac): Remove gl_STDLIB_SAFER call.
6584         (Makefile.am): Augment lib_SOURCES.
6585
6586 2011-05-23  Bruno Haible  <bruno@clisp.org>
6587
6588         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
6589         * m4/stdio-safer.m4: Remove file.
6590         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
6591         (configure.ac): Remove gl_TMPFILE_SAFER call.
6592         (Makefile.am): Augment lib_SOURCES.
6593
6594 2011-05-23  Bruno Haible  <bruno@clisp.org>
6595
6596         popen-safer: Move AC_LIBOBJ invocations to module description.
6597         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
6598         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
6599         (configure.ac): Remove gl_POPEN_SAFER call.
6600         (Makefile.am): Augment lib_SOURCES.
6601
6602 2011-05-23  Bruno Haible  <bruno@clisp.org>
6603
6604         freopen-safer: Move AC_LIBOBJ invocations to module description.
6605         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
6606         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
6607         (configure.ac): Remove gl_FREOPEN_SAFER call.
6608         (Makefile.am): Augment lib_SOURCES.
6609
6610 2011-05-23  Bruno Haible  <bruno@clisp.org>
6611
6612         fopen-safer: Move AC_LIBOBJ invocations to module description.
6613         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
6614         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
6615         (configure.ac): Remove gl_FOPEN_SAFER call.
6616         (Makefile.am): Augment lib_SOURCES.
6617
6618 2011-05-23  Bruno Haible  <bruno@clisp.org>
6619
6620         crypto/sha512: Move AC_LIBOBJ invocations to module description.
6621         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
6622         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
6623
6624 2011-05-23  Bruno Haible  <bruno@clisp.org>
6625
6626         crypto/sha256: Move AC_LIBOBJ invocations to module description.
6627         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
6628         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
6629
6630 2011-05-23  Bruno Haible  <bruno@clisp.org>
6631
6632         crypto/sha1: Move AC_LIBOBJ invocations to module description.
6633         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
6634         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
6635
6636 2011-05-23  Bruno Haible  <bruno@clisp.org>
6637
6638         settime: Move AC_LIBOBJ invocations to module description.
6639         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
6640         * modules/settime (Makefile.am): Augment lib_SOURCES.
6641
6642 2011-05-23  Bruno Haible  <bruno@clisp.org>
6643
6644         savedir: Move AC_LIBOBJ invocations to module description.
6645         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
6646         * modules/savedir (Makefile.am): Augment lib_SOURCES.
6647
6648 2011-05-23  Bruno Haible  <bruno@clisp.org>
6649
6650         save-cwd: Move AC_LIBOBJ invocations to module description.
6651         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
6652         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
6653
6654 2011-05-23  Bruno Haible  <bruno@clisp.org>
6655
6656         same: Move AC_LIBOBJ invocations to module description.
6657         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
6658         * modules/same (Makefile.am): Augment lib_SOURCES.
6659
6660 2011-05-23  Bruno Haible  <bruno@clisp.org>
6661
6662         safe-write: Move AC_LIBOBJ invocations to module description.
6663         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
6664         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
6665         instead of gl_SAFE_WRITE.
6666         (Makefile.am): Augment lib_SOURCES.
6667
6668 2011-05-23  Bruno Haible  <bruno@clisp.org>
6669
6670         safe-read: Move AC_LIBOBJ invocations to module description.
6671         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
6672         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
6673         of gl_SAFE_READ.
6674         (Makefile.am): Augment lib_SOURCES.
6675
6676 2011-05-23  Bruno Haible  <bruno@clisp.org>
6677
6678         safe-alloc: Move AC_LIBOBJ invocations to module description.
6679         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
6680         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
6681
6682 2011-05-23  Bruno Haible  <bruno@clisp.org>
6683
6684         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
6685         * m4/rijndael.m4: Remove file.
6686         * modules/crypto/rijndael (Files): Remove it.
6687         (configure.ac): Remove gl_RIJNDAEL call.
6688         (Makefile.am): Augment lib_SOURCES.
6689
6690 2011-05-23  Bruno Haible  <bruno@clisp.org>
6691
6692         readtokens: Move AC_LIBOBJ invocations to module description.
6693         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
6694         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
6695
6696 2011-05-23  Bruno Haible  <bruno@clisp.org>
6697
6698         read-file: Move AC_LIBOBJ invocations to module description.
6699         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
6700         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
6701         of gl_FUNC_READ_FILE.
6702         (Makefile.am): Augment lib_SOURCES.
6703
6704 2011-05-23  Bruno Haible  <bruno@clisp.org>
6705
6706         quotearg: Move AC_LIBOBJ invocations to module description.
6707         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
6708         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
6709
6710 2011-05-23  Bruno Haible  <bruno@clisp.org>
6711
6712         quote: Move AC_LIBOBJ invocations to module description.
6713         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
6714         * modules/quote (Makefile.am): Augment lib_SOURCES.
6715
6716 2011-05-23  Bruno Haible  <bruno@clisp.org>
6717
6718         posixver: Move AC_LIBOBJ invocations to module description.
6719         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
6720         * modules/posixver (Makefile.am): Augment lib_SOURCES.
6721
6722 2011-05-23  Bruno Haible  <bruno@clisp.org>
6723
6724         posixtm: Move AC_LIBOBJ invocations to module description.
6725         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
6726         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
6727
6728 2011-05-23  Bruno Haible  <bruno@clisp.org>
6729
6730         physmem: Move AC_LIBOBJ invocations to module description.
6731         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
6732         * modules/physmem (Makefile.am): Augment lib_SOURCES.
6733
6734 2011-05-23  Bruno Haible  <bruno@clisp.org>
6735
6736         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
6737         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
6738         invocation.
6739         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
6740
6741 2011-05-23  Bruno Haible  <bruno@clisp.org>
6742
6743         mpsort: Move AC_LIBOBJ invocations to module description.
6744         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
6745         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
6746
6747 2011-05-23  Bruno Haible  <bruno@clisp.org>
6748
6749         modechange: Move AC_LIBOBJ invocations to module description.
6750         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
6751         * modules/modechange (Makefile.am): Augment lib_SOURCES.
6752
6753 2011-05-23  Bruno Haible  <bruno@clisp.org>
6754
6755         mkdir-p: Move AC_LIBOBJ invocations to module description.
6756         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
6757         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
6758
6759 2011-05-23  Bruno Haible  <bruno@clisp.org>
6760
6761         mkancesdirs: Move AC_LIBOBJ invocations to module description.
6762         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
6763         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
6764
6765 2011-05-23  Bruno Haible  <bruno@clisp.org>
6766
6767         mgetgroups: Move AC_LIBOBJ invocations to module description.
6768         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
6769         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
6770
6771 2011-05-23  Bruno Haible  <bruno@clisp.org>
6772
6773         memxor: Move AC_LIBOBJ invocations to module description.
6774         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
6775         * modules/memxor (Makefile.am): Augment lib_SOURCES.
6776
6777 2011-05-23  Bruno Haible  <bruno@clisp.org>
6778
6779         memcoll: Move AC_LIBOBJ invocations to module description.
6780         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
6781         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
6782
6783 2011-05-23  Bruno Haible  <bruno@clisp.org>
6784
6785         memcasecmp: Move AC_LIBOBJ invocations to module description.
6786         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
6787         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
6788
6789 2011-05-23  Bruno Haible  <bruno@clisp.org>
6790
6791         crypto/md5: Move AC_LIBOBJ invocations to module description.
6792         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
6793         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
6794
6795 2011-05-23  Bruno Haible  <bruno@clisp.org>
6796
6797         crypto/md4: Move AC_LIBOBJ invocations to module description.
6798         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
6799         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
6800
6801 2011-05-23  Bruno Haible  <bruno@clisp.org>
6802
6803         crypto/md2: Move AC_LIBOBJ invocations to module description.
6804         * m4/md2.m4: Remove file.
6805         * modules/crypto/md2 (Files): Remove it.
6806         (configure.ac): Remove gl_MD2 call.
6807         (Makefile.am): Augment lib_SOURCES.
6808
6809 2011-05-23  Bruno Haible  <bruno@clisp.org>
6810
6811         long-options: Move AC_LIBOBJ invocations to module description.
6812         * m4/long-options.m4: Remove file.
6813         * modules/long-options (Files): Remove it.
6814         (configure.ac): Remove gl_LONG_OPTIONS call.
6815         (Makefile.am): Augment lib_SOURCES.
6816
6817 2011-05-23  Bruno Haible  <bruno@clisp.org>
6818
6819         i-ring: Move AC_LIBOBJ invocations to module description.
6820         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
6821         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
6822
6823 2011-05-23  Bruno Haible  <bruno@clisp.org>
6824
6825         idcache: Move AC_LIBOBJ invocations to module description.
6826         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
6827         * modules/idcache (Makefile.am): Augment lib_SOURCES.
6828
6829 2011-05-23  Bruno Haible  <bruno@clisp.org>
6830
6831         human: Move AC_LIBOBJ invocations to module description.
6832         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
6833         * modules/human (Makefile.am): Augment lib_SOURCES.
6834
6835 2011-05-23  Bruno Haible  <bruno@clisp.org>
6836
6837         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
6838         * m4/hmac-sha1.m4: Remove file.
6839         * modules/crypto/hmac-sha1 (Files): Remove it.
6840         (configure.ac): Remove gl_HMAC_SHA1 call.
6841         (Makefile.am): Augment lib_SOURCES.
6842
6843 2011-05-23  Bruno Haible  <bruno@clisp.org>
6844
6845         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
6846         * m4/hmac-md5.m4: Remove file.
6847         * modules/crypto/hmac-md5 (Files): Remove it.
6848         (configure.ac): Remove gl_HMAC_MD5 call.
6849         (Makefile.am): Augment lib_SOURCES.
6850
6851 2011-05-23  Bruno Haible  <bruno@clisp.org>
6852
6853         hash: Move AC_LIBOBJ invocations to module description.
6854         * m4/hash.m4: Remove file.
6855         * modules/hash (Files): Remove it.
6856         (configure.ac): Remove gl_HASH call.
6857         (Makefile.am): Augment lib_SOURCES.
6858
6859 2011-05-23  Bruno Haible  <bruno@clisp.org>
6860
6861         hard-locale: Move AC_LIBOBJ invocations to module description.
6862         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
6863         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
6864
6865 2011-05-23  Bruno Haible  <bruno@clisp.org>
6866
6867         getugroups: Move AC_LIBOBJ invocations to module description.
6868         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
6869         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
6870
6871 2011-05-23  Bruno Haible  <bruno@clisp.org>
6872
6873         gettime: Move AC_LIBOBJ invocations to module description.
6874         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
6875         * modules/gettime (Makefile.am): Augment lib_SOURCES.
6876
6877 2011-05-23  Bruno Haible  <bruno@clisp.org>
6878
6879         getndelim2: Move AC_LIBOBJ invocations to module description.
6880         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
6881         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
6882
6883 2011-05-23  Bruno Haible  <bruno@clisp.org>
6884
6885         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
6886         * m4/gc-pbkdf2-sha1.m4: Remove file.
6887         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
6888         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
6889         (Makefile.am): Augment lib_SOURCES.
6890
6891 2011-05-23  Bruno Haible  <bruno@clisp.org>
6892
6893         fts: Move AC_LIBOBJ invocations to module description.
6894         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
6895         * modules/fts (configure.ac): ... to here.
6896
6897 2011-05-23  Bruno Haible  <bruno@clisp.org>
6898
6899         file-type: Move AC_LIBOBJ invocations to module description.
6900         * m4/file-type.m4: Remove file.
6901         * modules/file-type (Files): Remove it.
6902         (configure.ac): Remove gl_FILE_TYPE call.
6903         (Makefile.am): Augment lib_SOURCES.
6904
6905 2011-05-23  Bruno Haible  <bruno@clisp.org>
6906
6907         filenamecat*: Respect rules for use of AC_LIBOBJ.
6908         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
6909         Remove AC_LIBOBJ invocation.
6910         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
6911         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
6912
6913 2011-05-23  Bruno Haible  <bruno@clisp.org>
6914
6915         filemode: Move AC_LIBOBJ invocations to module description.
6916         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
6917         * modules/filemode (Makefile.am): Augment lib_SOURCES.
6918
6919 2011-05-23  Bruno Haible  <bruno@clisp.org>
6920
6921         openat-safer: Move AC_LIBOBJ invocations to module description.
6922         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
6923         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
6924
6925 2011-05-23  Bruno Haible  <bruno@clisp.org>
6926
6927         fcntl-safer: Move AC_LIBOBJ invocations to module description.
6928         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
6929         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
6930
6931 2011-05-23  Bruno Haible  <bruno@clisp.org>
6932
6933         exclude: Move AC_LIBOBJ invocations to module description.
6934         * m4/exclude.m4: Remove file.
6935         * modules/exclude (Files): Remove it.
6936         (configure.ac): Remove gl_EXCLUDE call.
6937         (Makefile.am): Augment lib_SOURCES.
6938
6939 2011-05-23  Bruno Haible  <bruno@clisp.org>
6940
6941         dirname*: Respect rules for use of AC_LIBOBJ.
6942         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
6943         invocations.
6944         * modules/dirname (Makefile.am): Augment lib_SOURCES.
6945         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
6946
6947 2011-05-23  Bruno Haible  <bruno@clisp.org>
6948
6949         dirent-safer: Move AC_LIBOBJ invocations to module description.
6950         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
6951         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
6952
6953 2011-05-23  Bruno Haible  <bruno@clisp.org>
6954
6955         crypto/des: Move AC_LIBOBJ invocations to module description.
6956         * m4/des.m4: Remove file.
6957         * modules/crypto/des (Files): Remove it.
6958         (configure.ac): Remove gl_DES call.
6959         (Makefile.am): Augment lib_SOURCES.
6960
6961 2011-05-23  Bruno Haible  <bruno@clisp.org>
6962
6963         cycle-check: Move AC_LIBOBJ invocations to module description.
6964         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
6965         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
6966
6967 2011-05-23  Bruno Haible  <bruno@clisp.org>
6968
6969         c-strtold: Move AC_LIBOBJ invocations to module description.
6970         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
6971         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
6972
6973 2011-05-23  Bruno Haible  <bruno@clisp.org>
6974
6975         c-strtod: Move AC_LIBOBJ invocations to module description.
6976         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
6977         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
6978
6979 2011-05-23  Bruno Haible  <bruno@clisp.org>
6980
6981         crc: Move AC_LIBOBJ invocations to module description.
6982         * m4/crc.m4: Remove file.
6983         * modules/crc (Files): Remove it.
6984         (configure.ac): Remove gl_CRC call.
6985         (Makefile.am): Augment lib_SOURCES.
6986
6987 2011-05-23  Bruno Haible  <bruno@clisp.org>
6988
6989         close-stream: Move AC_LIBOBJ invocations to module description.
6990         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
6991         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
6992
6993 2011-05-23  Bruno Haible  <bruno@clisp.org>
6994
6995         closeout: Move AC_LIBOBJ invocations to module description.
6996         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
6997         * modules/closeout (Makefile.am): Augment lib_SOURCES.
6998
6999 2011-05-23  Bruno Haible  <bruno@clisp.org>
7000
7001         closein: Move AC_LIBOBJ invocations to module description.
7002         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
7003         * modules/closein (Makefile.am): Augment lib_SOURCES.
7004
7005 2011-05-23  Bruno Haible  <bruno@clisp.org>
7006
7007         cloexec: Move AC_LIBOBJ invocations to module description.
7008         * m4/cloexec.m4: Remove file.
7009         * modules/cloexec (Files): Remove it.
7010         (configure.ac): Remove gl_CLOEXEC call.
7011         (Makefile.am): Augment lib_SOURCES.
7012
7013 2011-05-23  Bruno Haible  <bruno@clisp.org>
7014
7015         check-version: Move AC_LIBOBJ invocations to module description.
7016         * m4/check-version.m4: Remove file.
7017         * modules/check-version (Files): Remove it.
7018         (configure.ac): Remove gl_CHECK_VERSION call.
7019         (Makefile.am): Augment lib_SOURCES.
7020
7021 2011-05-23  Bruno Haible  <bruno@clisp.org>
7022
7023         chdir-safer: Move AC_LIBOBJ invocations to module description.
7024         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
7025         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
7026
7027 2011-05-23  Bruno Haible  <bruno@clisp.org>
7028
7029         canonicalize: Move AC_LIBOBJ invocations to module description.
7030         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
7031         AC_LIBOBJ invocation.
7032         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
7033
7034 2011-05-23  Bruno Haible  <bruno@clisp.org>
7035
7036         canon-host: Move AC_LIBOBJ invocations to module description.
7037         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
7038         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
7039         instead of gl_CANON_HOST.
7040         (Makefile.am): Augment lib_SOURCES.
7041
7042 2011-05-23  Bruno Haible  <bruno@clisp.org>
7043
7044         backupfile: Move AC_LIBOBJ invocations to module description.
7045         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
7046         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
7047
7048 2011-05-23  Bruno Haible  <bruno@clisp.org>
7049
7050         argmatch: Move AC_LIBOBJ invocations to module description.
7051         * m4/argmatch.m4: Remove file.
7052         * modules/argmatch (Files): Remove it.
7053         (configure.ac): Remove gl_ARGMATCH call.
7054         (Makefile.am): Augment lib_SOURCES.
7055
7056 2011-05-23  Bruno Haible  <bruno@clisp.org>
7057
7058         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
7059         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
7060         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
7061
7062 2011-05-23  Bruno Haible  <bruno@clisp.org>
7063
7064         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
7065         * m4/arcfour.m4: Remove file.
7066         * modules/crypto/arcfour (Files): Remove it.
7067         (configure.ac): Remove gl_ARCFOUR call.
7068         (Makefile.am): Augment lib_SOURCES.
7069
7070 2011-05-22  Bruno Haible  <bruno@clisp.org>
7071
7072         write: Move AC_LIBOBJ invocations to module description.
7073         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
7074         * modules/write (configure.ac): ... to here.
7075
7076 2011-05-22  Bruno Haible  <bruno@clisp.org>
7077
7078         wmemset: Move AC_LIBOBJ invocations to module description.
7079         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
7080         here...
7081         * modules/wmemset (configure.ac): ... to here.
7082
7083 2011-05-22  Bruno Haible  <bruno@clisp.org>
7084
7085         wmemmove: Move AC_LIBOBJ invocations to module description.
7086         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
7087         here...
7088         * modules/wmemmove (configure.ac): ... to here.
7089
7090 2011-05-22  Bruno Haible  <bruno@clisp.org>
7091
7092         wmemcpy: Move AC_LIBOBJ invocations to module description.
7093         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
7094         here...
7095         * modules/wmemcpy (configure.ac): ... to here.
7096
7097 2011-05-22  Bruno Haible  <bruno@clisp.org>
7098
7099         wmemcmp: Move AC_LIBOBJ invocations to module description.
7100         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
7101         here...
7102         * modules/wmemcmp (configure.ac): ... to here.
7103
7104 2011-05-22  Bruno Haible  <bruno@clisp.org>
7105
7106         wmemchr: Move AC_LIBOBJ invocations to module description.
7107         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
7108         here...
7109         * modules/wmemchr (configure.ac): ... to here.
7110
7111 2011-05-22  Bruno Haible  <bruno@clisp.org>
7112
7113         wcswidth: Move AC_LIBOBJ invocations to module description.
7114         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
7115         here...
7116         * modules/wcswidth (configure.ac): ... to here.
7117
7118 2011-05-22  Bruno Haible  <bruno@clisp.org>
7119
7120         wcwidth: Respect rules for use of AC_LIBOBJ.
7121         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
7122         invocation from here...
7123         * modules/wcwidth (configure.ac): ... to here.
7124         (Depends-on): Update conditions.
7125
7126 2011-05-22  Bruno Haible  <bruno@clisp.org>
7127
7128         wctype: Move AC_LIBOBJ invocations to module description.
7129         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
7130         invocation from here...
7131         * modules/wctype (configure.ac): ... to here.
7132         (Depends-on): Update conditions.
7133
7134 2011-05-22  Bruno Haible  <bruno@clisp.org>
7135
7136         wctrans: Move AC_LIBOBJ invocations to module description.
7137         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
7138         invocation from here...
7139         * modules/wctrans (configure.ac): ... to here.
7140
7141 2011-05-22  Bruno Haible  <bruno@clisp.org>
7142
7143         wctomb: Move AC_LIBOBJ invocations to module description.
7144         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
7145         invocations from here...
7146         * modules/wctomb (configure.ac): ... to here.
7147
7148 2011-05-22  Bruno Haible  <bruno@clisp.org>
7149
7150         wctob: Move AC_LIBOBJ invocations to module description.
7151         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
7152         gl_PREREQ_WCTOB invocations from here...
7153         * modules/wctob (configure.ac): ... to here.
7154         (Depends-on): Update conditions.
7155
7156 2011-05-22  Bruno Haible  <bruno@clisp.org>
7157
7158         wcsxfrm: Move AC_LIBOBJ invocations to module description.
7159         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
7160         here...
7161         * modules/wcsxfrm (configure.ac): ... to here.
7162
7163 2011-05-22  Bruno Haible  <bruno@clisp.org>
7164
7165         wcstok: Move AC_LIBOBJ invocations to module description.
7166         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
7167         * modules/wcstok (configure.ac): ... to here.
7168
7169 2011-05-22  Bruno Haible  <bruno@clisp.org>
7170
7171         wcsstr: Move AC_LIBOBJ invocations to module description.
7172         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
7173         * modules/wcsstr (configure.ac): ... to here.
7174
7175 2011-05-22  Bruno Haible  <bruno@clisp.org>
7176
7177         wcsspn: Move AC_LIBOBJ invocations to module description.
7178         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
7179         * modules/wcsspn (configure.ac): ... to here.
7180
7181 2011-05-22  Bruno Haible  <bruno@clisp.org>
7182
7183         wcsrtombs: Move AC_LIBOBJ invocations to module description.
7184         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
7185         gl_PREREQ_WCSRTOMBS invocations from here...
7186         * modules/wcsrtombs (configure.ac): ... to here.
7187
7188 2011-05-22  Bruno Haible  <bruno@clisp.org>
7189
7190         wcsrchr: Move AC_LIBOBJ invocations to module description.
7191         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
7192         here...
7193         * modules/wcsrchr (configure.ac): ... to here.
7194
7195 2011-05-22  Bruno Haible  <bruno@clisp.org>
7196
7197         wcspbrk: Move AC_LIBOBJ invocations to module description.
7198         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
7199         here...
7200         * modules/wcspbrk (configure.ac): ... to here.
7201
7202 2011-05-22  Bruno Haible  <bruno@clisp.org>
7203
7204         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
7205         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
7206         gl_PREREQ_WCSNRTOMBS invocations from here...
7207         * modules/wcsnrtombs (configure.ac): ... to here.
7208
7209 2011-05-22  Bruno Haible  <bruno@clisp.org>
7210
7211         wcsnlen: Move AC_LIBOBJ invocations to module description.
7212         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
7213         here...
7214         * modules/wcsnlen (configure.ac): ... to here.
7215
7216 2011-05-22  Bruno Haible  <bruno@clisp.org>
7217
7218         wcsncpy: Move AC_LIBOBJ invocations to module description.
7219         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
7220         here...
7221         * modules/wcsncpy (configure.ac): ... to here.
7222
7223 2011-05-22  Bruno Haible  <bruno@clisp.org>
7224
7225         wcsncmp: Move AC_LIBOBJ invocations to module description.
7226         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
7227         here...
7228         * modules/wcsncmp (configure.ac): ... to here.
7229
7230 2011-05-22  Bruno Haible  <bruno@clisp.org>
7231
7232         wcsncat: Move AC_LIBOBJ invocations to module description.
7233         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
7234         here...
7235         * modules/wcsncat (configure.ac): ... to here.
7236
7237 2011-05-22  Bruno Haible  <bruno@clisp.org>
7238
7239         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
7240         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
7241         from here...
7242         * modules/wcsncasecmp (configure.ac): ... to here.
7243
7244 2011-05-22  Bruno Haible  <bruno@clisp.org>
7245
7246         wcslen: Move AC_LIBOBJ invocations to module description.
7247         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
7248         * modules/wcslen (configure.ac): ... to here.
7249
7250 2011-05-22  Bruno Haible  <bruno@clisp.org>
7251
7252         wcsdup: Move AC_LIBOBJ invocations to module description.
7253         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
7254         * modules/wcsdup (configure.ac): ... to here.
7255
7256 2011-05-22  Bruno Haible  <bruno@clisp.org>
7257
7258         wcscspn: Move AC_LIBOBJ invocations to module description.
7259         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
7260         here...
7261         * modules/wcscspn (configure.ac): ... to here.
7262
7263 2011-05-22  Bruno Haible  <bruno@clisp.org>
7264
7265         wcscpy: Move AC_LIBOBJ invocations to module description.
7266         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
7267         * modules/wcscpy (configure.ac): ... to here.
7268
7269 2011-05-22  Bruno Haible  <bruno@clisp.org>
7270
7271         wcscoll: Move AC_LIBOBJ invocations to module description.
7272         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
7273         here...
7274         * modules/wcscoll (configure.ac): ... to here.
7275
7276 2011-05-22  Bruno Haible  <bruno@clisp.org>
7277
7278         wcscmp: Move AC_LIBOBJ invocations to module description.
7279         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
7280         * modules/wcscmp (configure.ac): ... to here.
7281
7282 2011-05-22  Bruno Haible  <bruno@clisp.org>
7283
7284         wcschr: Move AC_LIBOBJ invocations to module description.
7285         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
7286         * modules/wcschr (configure.ac): ... to here.
7287
7288 2011-05-22  Bruno Haible  <bruno@clisp.org>
7289
7290         wcscat: Move AC_LIBOBJ invocations to module description.
7291         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
7292         * modules/wcscat (configure.ac): ... to here.
7293
7294 2011-05-22  Bruno Haible  <bruno@clisp.org>
7295
7296         wcscasecmp: Move AC_LIBOBJ invocations to module description.
7297         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
7298         here...
7299         * modules/wcscasecmp (configure.ac): ... to here.
7300
7301 2011-05-22  Bruno Haible  <bruno@clisp.org>
7302
7303         wcrtomb: Move AC_LIBOBJ invocations to module description.
7304         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
7305         invocations from here...
7306         * modules/wcrtomb (configure.ac): ... to here.
7307
7308 2011-05-22  Bruno Haible  <bruno@clisp.org>
7309
7310         wcpncpy: Move AC_LIBOBJ invocations to module description.
7311         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
7312         here...
7313         * modules/wcpncpy (configure.ac): ... to here.
7314
7315 2011-05-22  Bruno Haible  <bruno@clisp.org>
7316
7317         wcpcpy: Move AC_LIBOBJ invocations to module description.
7318         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
7319         * modules/wcpcpy (configure.ac): ... to here.
7320
7321 2011-05-22  Bruno Haible  <bruno@clisp.org>
7322
7323         waitpid: Move AC_LIBOBJ invocations to module description.
7324         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
7325         invocation from here...
7326         * modules/waitpid (configure.ac): ... to here.
7327
7328 2011-05-22  Bruno Haible  <bruno@clisp.org>
7329
7330         utimensat: Move AC_LIBOBJ invocations to module description.
7331         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
7332         here...
7333         * modules/utimensat (configure.ac): ... to here.
7334
7335 2011-05-22  Bruno Haible  <bruno@clisp.org>
7336
7337         usleep: Move AC_LIBOBJ invocations to module description.
7338         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
7339         here...
7340         * modules/usleep (configure.ac): ... to here.
7341
7342 2011-05-22  Bruno Haible  <bruno@clisp.org>
7343
7344         unlockpt: Move AC_LIBOBJ invocations to module description.
7345         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
7346         gl_PREREQ_UNLOCKPT invocations from here...
7347         * modules/unlockpt (configure.ac): ... to here.
7348
7349 2011-05-22  Bruno Haible  <bruno@clisp.org>
7350
7351         unlink: Respect rules for use of AC_LIBOBJ.
7352         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
7353         * modules/unlink (configure.ac): ... to here.
7354
7355 2011-05-22  Bruno Haible  <bruno@clisp.org>
7356
7357         uname: Move AC_LIBOBJ invocations to module description.
7358         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
7359         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
7360         here...
7361         * modules/uname (configure.ac): ... to here.
7362
7363 2011-05-22  Bruno Haible  <bruno@clisp.org>
7364
7365         ttyname_r: Move AC_LIBOBJ invocations to module description.
7366         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
7367         gl_PREREQ_TTYNAME_R invocations from here...
7368         * modules/ttyname_r (configure.ac): ... to here.
7369
7370 2011-05-22  Bruno Haible  <bruno@clisp.org>
7371
7372         tsearch: Move AC_LIBOBJ invocations to module description.
7373         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
7374         invocations from here...
7375         * modules/tsearch (configure.ac): ... to here.
7376
7377 2011-05-22  Bruno Haible  <bruno@clisp.org>
7378
7379         towctrans: Move AC_LIBOBJ invocations to module description.
7380         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
7381         AC_LIBOBJ invocation from here...
7382         * modules/towctrans (configure.ac): ... to here.
7383
7384 2011-05-22  Bruno Haible  <bruno@clisp.org>
7385
7386         tmpfile: Move AC_LIBOBJ invocations to module description.
7387         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
7388         invocations from here...
7389         * modules/tmpfile (configure.ac): ... to here.
7390
7391 2011-05-22  Bruno Haible  <bruno@clisp.org>
7392
7393         times: Move AC_LIBOBJ invocations to module description.
7394         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
7395         * modules/times (configure.ac): ... to here.
7396
7397 2011-05-22  Bruno Haible  <bruno@clisp.org>
7398
7399         time_r: Move AC_LIBOBJ invocations to module description.
7400         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
7401         invocations from here...
7402         * modules/time_r (configure.ac): ... to here.
7403
7404 2011-05-22  Bruno Haible  <bruno@clisp.org>
7405
7406         timegm: Move AC_LIBOBJ invocations to module description.
7407         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
7408         invocations from here...
7409         * modules/timegm (configure.ac): ... to here.
7410
7411 2011-05-22  Bruno Haible  <bruno@clisp.org>
7412
7413         tcgetsid: Move AC_LIBOBJ invocations to module description.
7414         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
7415         and gl_PREREQ_TCGETSID invocations from here...
7416         * modules/tcgetsid (configure.ac): ... to here.
7417         (Depends-on): Update conditions.
7418
7419 2011-05-22  Bruno Haible  <bruno@clisp.org>
7420
7421         symlinkat: Move AC_LIBOBJ invocations to module description.
7422         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
7423         here...
7424         * modules/symlinkat (configure.ac): ... to here.
7425
7426 2011-05-22  Bruno Haible  <bruno@clisp.org>
7427
7428         symlink: Move AC_LIBOBJ invocations to module description.
7429         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
7430         here...
7431         * modules/symlink (configure.ac): ... to here.
7432
7433 2011-05-22  Bruno Haible  <bruno@clisp.org>
7434
7435         strverscmp: Move AC_LIBOBJ invocations to module description.
7436         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
7437         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
7438         from here...
7439         * modules/strverscmp (configure.ac): ... to here.
7440
7441 2011-05-22  Bruno Haible  <bruno@clisp.org>
7442
7443         strtok_r: Move AC_LIBOBJ invocations to module description.
7444         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
7445         and gl_PREREQ_STRTOK_R invocations from here...
7446         * modules/strtok_r (configure.ac): ... to here.
7447         (Depends-on): Update conditions.
7448
7449 2011-05-22  Bruno Haible  <bruno@clisp.org>
7450
7451         strtoumax: Move AC_LIBOBJ invocations to module description.
7452         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
7453         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
7454         from here...
7455         * modules/strtoumax (configure.ac): ... to here.
7456
7457 2011-05-22  Bruno Haible  <bruno@clisp.org>
7458
7459         strtoimax: Move AC_LIBOBJ invocations to module description.
7460         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
7461         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
7462         from here...
7463         * modules/strtoimax (configure.ac): ... to here.
7464
7465 2011-05-22  Bruno Haible  <bruno@clisp.org>
7466
7467         strtoull: Move AC_LIBOBJ invocations to module description.
7468         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
7469         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
7470         from here...
7471         * modules/strtoull (configure.ac): ... to here.
7472
7473 2011-05-22  Bruno Haible  <bruno@clisp.org>
7474
7475         strtoll: Move AC_LIBOBJ invocations to module description.
7476         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
7477         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
7478         here...
7479         * modules/strtoll (configure.ac): ... to here.
7480
7481 2011-05-22  Bruno Haible  <bruno@clisp.org>
7482
7483         strtoul: Move AC_LIBOBJ invocations to module description.
7484         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
7485         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
7486         * modules/strtoul (configure.ac): ... to here.
7487
7488 2011-05-22  Bruno Haible  <bruno@clisp.org>
7489
7490         strtol: Move AC_LIBOBJ invocations to module description.
7491         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
7492         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
7493         * modules/strtol (configure.ac): ... to here.
7494
7495 2011-05-22  Bruno Haible  <bruno@clisp.org>
7496
7497         strtod: Move AC_LIBOBJ invocations to module description.
7498         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
7499         invocations from here...
7500         * modules/strtod (configure.ac): ... to here.
7501
7502 2011-05-22  Bruno Haible  <bruno@clisp.org>
7503
7504         strstr*: Move AC_LIBOBJ invocations to module description.
7505         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
7506         invocations from here...
7507         * modules/strstr-simple (configure.ac): ... to here.
7508         * modules/strstr (configure.ac): ... and here.
7509
7510 2011-05-22  Bruno Haible  <bruno@clisp.org>
7511
7512         strsignal: Move AC_LIBOBJ invocations to module description.
7513         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
7514         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
7515         * modules/strsignal (configure.ac): ... to here.
7516         (Depends-on): Update conditions.
7517
7518 2011-05-22  Bruno Haible  <bruno@clisp.org>
7519
7520         strsep: Move AC_LIBOBJ invocations to module description.
7521         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
7522         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
7523         here...
7524         * modules/strsep (configure.ac): ... to here.
7525
7526 2011-05-22  Bruno Haible  <bruno@clisp.org>
7527
7528         strptime: Move AC_LIBOBJ invocations to module description.
7529         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
7530         gl_PREREQ_STRPTIME invocations from here...
7531         * modules/strptime (configure.ac): ... to here.
7532
7533 2011-05-22  Bruno Haible  <bruno@clisp.org>
7534
7535         strpbrk: Move AC_LIBOBJ invocations to module description.
7536         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
7537         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
7538         here...
7539         * modules/strpbrk (configure.ac): ... to here.
7540
7541 2011-05-22  Bruno Haible  <bruno@clisp.org>
7542
7543         strnlen: Move AC_LIBOBJ invocations to module description.
7544         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
7545         invocations from here...
7546         * modules/strnlen (configure.ac): ... to here.
7547
7548 2011-05-22  Bruno Haible  <bruno@clisp.org>
7549
7550         strndup: Move AC_LIBOBJ invocations to module description.
7551         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
7552         invocations from here...
7553         * modules/strndup (configure.ac): ... to here.
7554         (Depends-on): Update conditions.
7555
7556 2011-05-22  Bruno Haible  <bruno@clisp.org>
7557
7558         strncat: Move AC_LIBOBJ invocations to module description.
7559         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
7560         invocations from here...
7561         * modules/strncat (configure.ac): ... to here.
7562
7563 2011-05-22  Bruno Haible  <bruno@clisp.org>
7564
7565         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
7566         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
7567         invocations from here...
7568         * modules/strdup (configure.ac): ... to here.
7569         * modules/strdup-posix (configure.ac): ... and here.
7570
7571 2011-05-22  Bruno Haible  <bruno@clisp.org>
7572
7573         strcspn: Move AC_LIBOBJ invocations to module description.
7574         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
7575         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
7576         here...
7577         * modules/strcspn (configure.ac): ... to here.
7578
7579 2011-05-22  Bruno Haible  <bruno@clisp.org>
7580
7581         strchrnul: Move AC_LIBOBJ invocations to module description.
7582         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
7583         gl_PREREQ_STRCHRNUL invocations from here...
7584         * modules/strchrnul (configure.ac): ... to here.
7585
7586 2011-05-22  Bruno Haible  <bruno@clisp.org>
7587
7588         strcasestr*: Move AC_LIBOBJ invocations to module description.
7589         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
7590         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
7591         * modules/strcasestr-simple (configure.ac): ... to here.
7592         * modules/strcasestr (configure.ac): ... and here.
7593
7594 2011-05-22  Bruno Haible  <bruno@clisp.org>
7595
7596         strcase: Move AC_LIBOBJ invocations to module description.
7597         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
7598         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
7599         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
7600         gl_PREREQ_STRNCASECMP invocations from here...
7601         * modules/strcase (configure.ac): ... to here.
7602
7603 2011-05-22  Bruno Haible  <bruno@clisp.org>
7604
7605         stpncpy: Move AC_LIBOBJ invocations to module description.
7606         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
7607         here...
7608         * modules/stpncpy (configure.ac): ... to here.
7609
7610 2011-05-22  Bruno Haible  <bruno@clisp.org>
7611
7612         stpcpy: Move AC_LIBOBJ invocations to module description.
7613         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
7614         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
7615         here...
7616         * modules/stpcpy (configure.ac): ... to here.
7617
7618 2011-05-21  Bruno Haible  <bruno@clisp.org>
7619
7620         stat: Move AC_LIBOBJ invocations to module description.
7621         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
7622         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
7623         here...
7624         * modules/stat (configure.ac): ... to here.
7625
7626 2011-05-21  Bruno Haible  <bruno@clisp.org>
7627
7628         sleep: Move AC_LIBOBJ invocations to module description.
7629         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
7630         * modules/sleep (configure.ac): ... to here.
7631
7632 2011-05-21  Bruno Haible  <bruno@clisp.org>
7633
7634         signbit: Move AC_LIBOBJ invocations to module description.
7635         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
7636         * modules/signbit (configure.ac): ... to here.
7637
7638 2011-05-21  Bruno Haible  <bruno@clisp.org>
7639
7640         sigprocmask: Move AC_LIBOBJ invocations to module description.
7641         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
7642         gl_PREREQ_SIGPROMASK invocations from here...
7643         * modules/sigprocmask (configure.ac): ... to here.
7644
7645 2011-05-21  Bruno Haible  <bruno@clisp.org>
7646
7647         sigaction: Move AC_LIBOBJ invocations to module description.
7648         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
7649         gl_PREREQ_SIGACTION invocations from here...
7650         * modules/sigaction (configure.ac): ... to here.
7651
7652 2011-05-21  Bruno Haible  <bruno@clisp.org>
7653
7654         sig2str: Move AC_LIBOBJ invocations to module description.
7655         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
7656         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
7657         here...
7658         * modules/sig2str (configure.ac): ... to here.
7659
7660 2011-05-21  Bruno Haible  <bruno@clisp.org>
7661
7662         setlocale: Move AC_LIBOBJ invocations to module description.
7663         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
7664         gl_PREREQ_SETLOCALE invocations from here...
7665         * modules/setlocale (configure.ac): ... to here.
7666
7667 2011-05-21  Bruno Haible  <bruno@clisp.org>
7668
7669         unsetenv: Move AC_LIBOBJ invocations to module description.
7670         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
7671         and gl_PREREQ_UNSETENV invocations from here...
7672         * modules/unsetenv (configure.ac): ... to here.
7673         (Depends-on): Update.
7674
7675 2011-05-21  Bruno Haible  <bruno@clisp.org>
7676
7677         setenv: Move AC_LIBOBJ invocations to module description.
7678         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
7679         here...
7680         * modules/setenv (configure.ac): ... to here.
7681
7682 2011-05-21  Bruno Haible  <bruno@clisp.org>
7683
7684         selinux-h: Move AC_LIBOBJ invocations to module description.
7685         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
7686         AC_LIBOBJ invocation from here...
7687         * modules/selinux-h (configure.ac): ... to here.
7688
7689 2011-05-21  Bruno Haible  <bruno@clisp.org>
7690
7691         select: Respect rules for use of AC_LIBOBJ.
7692         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
7693         here...
7694         * modules/select (configure.ac): ... to here.
7695
7696 2011-05-21  Bruno Haible  <bruno@clisp.org>
7697
7698         scandir: Move AC_LIBOBJ invocations to module description.
7699         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
7700         invocations from here...
7701         * modules/scandir (configure.ac): ... to here.
7702
7703 2011-05-21  Bruno Haible  <bruno@clisp.org>
7704
7705         rpmatch: Move AC_LIBOBJ invocations to module description.
7706         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
7707         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
7708         here...
7709         * modules/rpmatch (configure.ac): ... to here.
7710
7711 2011-05-21  Bruno Haible  <bruno@clisp.org>
7712
7713         rmdir: Respect rules for use of AC_LIBOBJ.
7714         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
7715         * modules/rmdir (configure.ac): ... to here.
7716
7717 2011-05-21  Bruno Haible  <bruno@clisp.org>
7718
7719         renameat: Move AC_LIBOBJ invocations to module description.
7720         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
7721         here...
7722         * modules/renameat (configure.ac): ... to here.
7723
7724 2011-05-21  Bruno Haible  <bruno@clisp.org>
7725
7726         rename: Respect rules for use of AC_LIBOBJ.
7727         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
7728         here...
7729         * modules/rename (configure.ac): ... to here.
7730
7731 2011-05-21  Bruno Haible  <bruno@clisp.org>
7732
7733         remove: Move AC_LIBOBJ invocations to module description.
7734         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
7735         here...
7736         * modules/remove (configure.ac): ... to here.
7737
7738 2011-05-21  Bruno Haible  <bruno@clisp.org>
7739
7740         relocatable-lib: Move AC_LIBOBJ invocations to module description.
7741         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
7742         macro.
7743         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
7744         * modules/relocatable-lib (configure.ac): ... to here.
7745         * modules/relocatable-prog-wrapper (configure.ac): Invoke
7746         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
7747
7748 2011-05-21  Bruno Haible  <bruno@clisp.org>
7749
7750         relocatable-prog: Move AC_LIBOBJ invocations to module description.
7751         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
7752         here...
7753         * modules/relocatable-prog (configure.ac): ... to here.
7754
7755 2011-05-21  Bruno Haible  <bruno@clisp.org>
7756
7757         regex: Move AC_LIBOBJ invocations to module description.
7758         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
7759         invocations from here...
7760         * modules/regex (configure.ac): ... to here.
7761
7762 2011-05-21  Bruno Haible  <bruno@clisp.org>
7763
7764         realloc-*: Move AC_LIBOBJ invocations to module description.
7765         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
7766         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
7767         AC_LIBOBJ invocations from here...
7768         * modules/realloc-gnu (configure.ac): ... to here.
7769         * modules/realloc-posix (configure.ac): ... and here.
7770
7771 2011-05-21  Bruno Haible  <bruno@clisp.org>
7772
7773         readutmp: Move AC_LIBOBJ invocations to module description.
7774         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
7775         * modules/readutmp (configure.ac): ... to here.
7776
7777 2011-05-21  Bruno Haible  <bruno@clisp.org>
7778
7779         readlinkat: Move AC_LIBOBJ invocations to module description.
7780         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
7781         here...
7782         * modules/readlinkat (configure.ac): ... to here.
7783
7784 2011-05-21  Bruno Haible  <bruno@clisp.org>
7785
7786         readlink: Move AC_LIBOBJ invocations to module description.
7787         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
7788         gl_PREREQ_READLINK invocations from here...
7789         * modules/readlink (configure.ac): ... to here.
7790
7791 2011-05-21  Bruno Haible  <bruno@clisp.org>
7792
7793         readline: Move AC_LIBOBJ invocations to module description.
7794         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
7795         gl_PREREQ_READLINE invocations from here...
7796         * modules/readline (configure.ac): ... to here.
7797
7798 2011-05-21  Bruno Haible  <bruno@clisp.org>
7799
7800         read: Move AC_LIBOBJ invocations to module description.
7801         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
7802         * modules/read (configure.ac): ... to here.
7803
7804 2011-05-21  Bruno Haible  <bruno@clisp.org>
7805
7806         rawmemchr: Move AC_LIBOBJ invocations to module description.
7807         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
7808         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
7809         from here...
7810         * modules/rawmemchr (configure.ac): ... to here.
7811
7812 2011-05-21  Bruno Haible  <bruno@clisp.org>
7813
7814         random_r: Move AC_LIBOBJ invocations to module description.
7815         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
7816         gl_PREREQ_RANDOM_R invocations from here...
7817         * modules/random_r (configure.ac): ... to here.
7818
7819 2011-05-21  Bruno Haible  <bruno@clisp.org>
7820
7821         pwrite: Move AC_LIBOBJ invocations to module description.
7822         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
7823         * modules/pwrite (configure.ac): ... to here.
7824
7825 2011-05-21  Bruno Haible  <bruno@clisp.org>
7826
7827         putenv: Move AC_LIBOBJ invocations to module description.
7828         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
7829         * modules/putenv (configure.ac): ... to here.
7830
7831 2011-05-21  Bruno Haible  <bruno@clisp.org>
7832
7833         login_tty: Move AC_LIBOBJ invocations to module description.
7834         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
7835         * modules/login_tty (configure.ac): ... to here.
7836
7837 2011-05-21  Bruno Haible  <bruno@clisp.org>
7838
7839         openpty: Move AC_LIBOBJ invocations to module description.
7840         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
7841         * modules/openpty (configure.ac): ... to here.
7842
7843 2011-05-21  Bruno Haible  <bruno@clisp.org>
7844
7845         forkpty: Move AC_LIBOBJ invocations to module description.
7846         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
7847         * modules/forkpty (configure.ac): ... to here.
7848
7849 2011-05-21  Bruno Haible  <bruno@clisp.org>
7850
7851         ptsname: Move AC_LIBOBJ invocations to module description.
7852         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
7853         invocations from here...
7854         * modules/ptsname (configure.ac): ... to here.
7855
7856 2011-05-21  Bruno Haible  <bruno@clisp.org>
7857
7858         pread: Move AC_LIBOBJ invocations to module description.
7859         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
7860         * modules/pread (configure.ac): ... to here.
7861
7862 2011-05-21  Bruno Haible  <bruno@clisp.org>
7863
7864         posix_spawn*: Move AC_LIBOBJ invocations to module description.
7865         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
7866         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
7867         * modules/posix_spawn (configure.ac): ... to here.
7868         * modules/posix_spawnp (configure.ac): ... and here.
7869
7870 2011-05-21  Bruno Haible  <bruno@clisp.org>
7871
7872         popen: Move AC_LIBOBJ invocations to module description.
7873         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
7874         invocations from here...
7875         * modules/popen (configure.ac): ... to here.
7876
7877 2011-05-21  Bruno Haible  <bruno@clisp.org>
7878
7879         poll: Move AC_LIBOBJ invocations to module description.
7880         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
7881         invocations from here...
7882         * modules/poll (configure.ac): ... to here.
7883
7884 2011-05-21  Bruno Haible  <bruno@clisp.org>
7885
7886         pipe-posix: Move AC_LIBOBJ invocations to module description.
7887         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
7888         * modules/pipe-posix (configure.ac): ... to here.
7889
7890 2011-05-21  Bruno Haible  <bruno@clisp.org>
7891
7892         openat: Respect rules for use of AC_LIBOBJ.
7893         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
7894         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
7895         * modules/openat (configure.ac): ... to here.
7896
7897 2011-05-21  Bruno Haible  <bruno@clisp.org>
7898
7899         obstack-printf*: Move AC_LIBOBJ invocations to module description.
7900         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
7901         invocation from here...
7902         * modules/obstack-printf (configure.ac): ... to here.
7903         * modules/obstack-printf-posix (configure.ac): ... and here.
7904
7905 2011-05-21  Bruno Haible  <bruno@clisp.org>
7906
7907         nl_langinfo: Move AC_LIBOBJ invocations to module description.
7908         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
7909         from here...
7910         * modules/nl_langinfo (configure.ac): ... to here.
7911
7912 2011-05-21  Bruno Haible  <bruno@clisp.org>
7913
7914         nanosleep: Move AC_LIBOBJ invocations to module description.
7915         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
7916         gl_PREREQ_NANOSLEEP invocations from here...
7917         * modules/nanosleep (configure.ac): ... to here.
7918
7919 2011-05-21  Bruno Haible  <bruno@clisp.org>
7920
7921         mountlist: Move AC_LIBOBJ invocations to module description.
7922         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
7923         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
7924         * modules/mountlist (configure.ac): ... to here.
7925
7926 2011-05-21  Bruno Haible  <bruno@clisp.org>
7927
7928         mktime: Respect rules for use of AC_LIBOBJ.
7929         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
7930         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
7931         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
7932         (gl_FUNC_MKTIME_INTERNAL): ... and here...
7933         * modules/mktime (configure.ac): ... to here.
7934         * modules/mktime-internal (configure.ac): ... and here.
7935         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
7936
7937 2011-05-21  Bruno Haible  <bruno@clisp.org>
7938
7939         mkstemps: Move AC_LIBOBJ invocations to module description.
7940         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
7941         here...
7942         * modules/mkstemps (configure.ac): ... to here.
7943
7944 2011-05-21  Bruno Haible  <bruno@clisp.org>
7945
7946         mkstemp: Move AC_LIBOBJ invocations to module description.
7947         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
7948         gl_PREREQ_MKSTEMP invocations from here...
7949         * modules/mkstemp (configure.ac): ... to here.
7950
7951 2011-05-21  Bruno Haible  <bruno@clisp.org>
7952
7953         mkostemps: Move AC_LIBOBJ invocations to module description.
7954         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
7955         here...
7956         * modules/mkostemps (configure.ac): ... to here.
7957
7958 2011-05-21  Bruno Haible  <bruno@clisp.org>
7959
7960         mkostemp: Move AC_LIBOBJ invocations to module description.
7961         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
7962         gl_PREREQ_MKOSTEMP invocations from here...
7963         * modules/mkostemp (configure.ac): ... to here.
7964
7965 2011-05-21  Bruno Haible  <bruno@clisp.org>
7966
7967         mknod: Move AC_LIBOBJ invocations to module description.
7968         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
7969         * modules/mknod (configure.ac): ... to here.
7970
7971 2011-05-21  Bruno Haible  <bruno@clisp.org>
7972
7973         mkfifoat: Move AC_LIBOBJ invocations to module description.
7974         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
7975         here...
7976         * modules/mkfifoat (configure.ac): ... to here.
7977
7978 2011-05-21  Bruno Haible  <bruno@clisp.org>
7979
7980         mkfifo: Respect rules for use of AC_LIBOBJ.
7981         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
7982         here...
7983         * modules/mkfifo (configure.ac): ... to here.
7984
7985 2011-05-21  Bruno Haible  <bruno@clisp.org>
7986
7987         mkdtemp: Move AC_LIBOBJ invocations to module description.
7988         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
7989         invocations from here...
7990         * modules/mkdtemp (configure.ac): ... to here.
7991
7992 2011-05-21  Bruno Haible  <bruno@clisp.org>
7993
7994         mkdir: Move AC_LIBOBJ invocations to module description.
7995         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
7996         * modules/mkdir (configure.ac): ... to here.
7997
7998 2011-05-21  Bruno Haible  <bruno@clisp.org>
7999
8000         memset: Move AC_LIBOBJ invocations to module description.
8001         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
8002         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
8003         here...
8004         * modules/memset (configure.ac): ... to here.
8005
8006 2011-05-21  Bruno Haible  <bruno@clisp.org>
8007
8008         memrchr: Move AC_LIBOBJ invocations to module description.
8009         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
8010         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
8011         here...
8012         * modules/memrchr (configure.ac): ... to here.
8013
8014 2011-05-21  Bruno Haible  <bruno@clisp.org>
8015
8016         mempcpy: Move AC_LIBOBJ invocations to module description.
8017         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
8018         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
8019         here...
8020         * modules/mempcpy (configure.ac): ... to here.
8021
8022 2011-05-21  Bruno Haible  <bruno@clisp.org>
8023
8024         memmove: Move AC_LIBOBJ invocations to module description.
8025         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
8026         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
8027         here...
8028         * modules/memmove (configure.ac): ... to here.
8029
8030 2011-05-21  Bruno Haible  <bruno@clisp.org>
8031
8032         memmem*: Move AC_LIBOBJ invocations to module description.
8033         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
8034         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
8035         here...
8036         (gl_FUNC_MEMMEM): ... and here...
8037         * modules/memmem-simple (configure.ac): ... to here.
8038         * modules/memmem (configure.ac): ... and here.
8039
8040 2011-05-21  Bruno Haible  <bruno@clisp.org>
8041
8042         memcpy: Move AC_LIBOBJ invocations to module description.
8043         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
8044         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
8045         here...
8046         * modules/memcpy (configure.ac): ... to here.
8047
8048 2011-05-21  Bruno Haible  <bruno@clisp.org>
8049
8050         memcmp: Simplify autoconf macro.
8051         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
8052         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
8053         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
8054
8055 2011-05-21  Bruno Haible  <bruno@clisp.org>
8056
8057         memcmp: Move AC_LIBOBJ invocations to module description.
8058         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
8059         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
8060         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
8061         * modules/memcmp (configure.ac): ... to here.
8062         (Depends-on): Update conditions.
8063
8064 2011-05-21  Bruno Haible  <bruno@clisp.org>
8065
8066         memchr: Respect rules for use of AC_LIBOBJ.
8067         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
8068         invocations from here...
8069         * modules/memchr (configure.ac): ... to here.
8070
8071 2011-05-21  Bruno Haible  <bruno@clisp.org>
8072
8073         mbtowc: Move AC_LIBOBJ invocations to module description.
8074         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
8075         invocations from here...
8076         * modules/mbtowc (configure.ac): ... to here.
8077
8078 2011-05-21  Bruno Haible  <bruno@clisp.org>
8079
8080         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
8081         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
8082         gl_PREREQ_MBSRTOWCS invocations from here...
8083         * modules/mbsrtowcs (configure.ac): ... to here.
8084
8085 2011-05-21  Bruno Haible  <bruno@clisp.org>
8086
8087         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
8088         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
8089         gl_PREREQ_MBSNRTOWCS invocations from here...
8090         * modules/mbsnrtowcs (configure.ac): ... to here.
8091
8092 2011-05-21  Bruno Haible  <bruno@clisp.org>
8093
8094         mbsinit: Move AC_LIBOBJ invocations to module description.
8095         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
8096         invocations from here...
8097         * modules/mbsinit (configure.ac): ... to here.
8098
8099 2011-05-21  Bruno Haible  <bruno@clisp.org>
8100
8101         mbrlen: Move AC_LIBOBJ invocations to module description.
8102         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
8103         invocations from here...
8104         * modules/mbrlen (configure.ac): ... to here.
8105
8106 2011-05-21  Bruno Haible  <bruno@clisp.org>
8107
8108         mbrtowc: Respect rules for use of AC_LIBOBJ.
8109         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
8110         invocations from here...
8111         * modules/mbrtowc (configure.ac): ... to here.
8112
8113 2011-05-21  Bruno Haible  <bruno@clisp.org>
8114
8115         malloc-*: Move AC_LIBOBJ invocations to module description.
8116         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
8117         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
8118         AC_LIBOBJ invocations from here...
8119         * modules/malloc-gnu (configure.ac): ... to here.
8120         * modules/malloc-posix (configure.ac): ... and here.
8121
8122 2011-05-21  Bruno Haible  <bruno@clisp.org>
8123
8124         lstat, openat: Respect rules for use of AC_LIBOBJ.
8125         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
8126         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
8127         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
8128         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
8129         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
8130         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
8131         here.
8132         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
8133
8134 2011-05-21  Bruno Haible  <bruno@clisp.org>
8135
8136         lseek: Move AC_LIBOBJ invocations to module description.
8137         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
8138         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
8139         * modules/lseek (configure.ac): ... to here.
8140
8141 2011-05-21  Bruno Haible  <bruno@clisp.org>
8142
8143         linkat: Move AC_LIBOBJ invocations to module description.
8144         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
8145         here...
8146         * modules/linkat (configure.ac): ... to here.
8147
8148 2011-05-21  Bruno Haible  <bruno@clisp.org>
8149
8150         link: Respect rules for use of AC_LIBOBJ.
8151         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
8152         * modules/link (configure.ac): ... to here.
8153
8154 2011-05-21  Bruno Haible  <bruno@clisp.org>
8155
8156         lchown: Move AC_LIBOBJ invocations to module description.
8157         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
8158         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
8159         * modules/lchown (configure.ac): ... to here.
8160
8161 2011-05-21  Bruno Haible  <bruno@clisp.org>
8162
8163         iswctype: Move AC_LIBOBJ invocations to module description.
8164         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
8165         here...
8166         * modules/iswctype (configure.ac): ... to here.
8167
8168 2011-05-21  Bruno Haible  <bruno@clisp.org>
8169
8170         iswblank: Move AC_LIBOBJ invocations to module description.
8171         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
8172         here...
8173         * modules/iswblank (configure.ac): ... to here.
8174
8175 2011-05-21  Bruno Haible  <bruno@clisp.org>
8176
8177         atanl: Move AC_LIBOBJ invocations to module description.
8178         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
8179         * modules/atanl (configure.ac): ... to here.
8180
8181 2011-05-21  Bruno Haible  <bruno@clisp.org>
8182
8183         acosl: Move AC_LIBOBJ invocations to module description.
8184         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
8185         * modules/acosl (configure.ac): ... to here.
8186
8187 2011-05-21  Bruno Haible  <bruno@clisp.org>
8188
8189         asinl: Respect rules for use of AC_LIBOBJ.
8190         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
8191         * modules/asinl (configure.ac): ... to here.
8192
8193 2011-05-21  Bruno Haible  <bruno@clisp.org>
8194
8195         tanl: Move AC_LIBOBJ invocations to module description.
8196         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
8197         * modules/tanl (configure.ac): ... to here.
8198
8199 2011-05-21  Bruno Haible  <bruno@clisp.org>
8200
8201         cosl: Move AC_LIBOBJ invocations to module description.
8202         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
8203         * modules/cosl (configure.ac): ... to here.
8204
8205 2011-05-21  Bruno Haible  <bruno@clisp.org>
8206
8207         sinl: Move AC_LIBOBJ invocations to module description.
8208         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
8209         * modules/sinl (configure.ac): ... to here.
8210
8211 2011-05-21  Bruno Haible  <bruno@clisp.org>
8212
8213         logl: Move AC_LIBOBJ invocations to module description.
8214         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
8215         * modules/logl (configure.ac): ... to here.
8216
8217 2011-05-21  Bruno Haible  <bruno@clisp.org>
8218
8219         expl: Move AC_LIBOBJ invocations to module description.
8220         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
8221         * modules/expl (configure.ac): ... to here.
8222
8223 2011-05-21  Bruno Haible  <bruno@clisp.org>
8224
8225         roundl: Move AC_LIBOBJ invocations to module description.
8226         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
8227         * modules/roundl (configure.ac): ... to here.
8228
8229 2011-05-21  Bruno Haible  <bruno@clisp.org>
8230
8231         round: Move AC_LIBOBJ invocations to module description.
8232         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
8233         * modules/round (configure.ac): ... to here.
8234
8235 2011-05-21  Bruno Haible  <bruno@clisp.org>
8236
8237         roundf: Move AC_LIBOBJ invocations to module description.
8238         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
8239         * modules/roundf (configure.ac): ... to here.
8240
8241 2011-05-21  Bruno Haible  <bruno@clisp.org>
8242
8243         truncl: Move AC_LIBOBJ invocations to module description.
8244         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
8245         * modules/truncl (configure.ac): ... to here.
8246
8247 2011-05-21  Bruno Haible  <bruno@clisp.org>
8248
8249         trunc: Move AC_LIBOBJ invocations to module description.
8250         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
8251         * modules/trunc (configure.ac): ... to here.
8252
8253 2011-05-21  Bruno Haible  <bruno@clisp.org>
8254
8255         truncf: Move AC_LIBOBJ invocations to module description.
8256         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
8257         * modules/truncf (configure.ac): ... to here.
8258
8259 2011-05-21  Bruno Haible  <bruno@clisp.org>
8260
8261         ceill: Move AC_LIBOBJ invocations to module description.
8262         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
8263         * modules/ceill (configure.ac): ... to here.
8264
8265 2011-05-21  Bruno Haible  <bruno@clisp.org>
8266
8267         ceil: Move AC_LIBOBJ invocations to module description.
8268         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
8269         * modules/ceil (configure.ac): ... to here.
8270
8271 2011-05-21  Bruno Haible  <bruno@clisp.org>
8272
8273         ceilf: Move AC_LIBOBJ invocations to module description.
8274         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
8275         * modules/ceilf (configure.ac): ... to here.
8276
8277 2011-05-21  Bruno Haible  <bruno@clisp.org>
8278
8279         floorl: Respect rules for use of AC_LIBOBJ.
8280         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
8281         * modules/floorl (configure.ac): ... to here.
8282
8283 2011-05-21  Bruno Haible  <bruno@clisp.org>
8284
8285         floor: Respect rules for use of AC_LIBOBJ.
8286         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
8287         * modules/floor (configure.ac): ... to here.
8288
8289 2011-05-21  Bruno Haible  <bruno@clisp.org>
8290
8291         floorf: Move AC_LIBOBJ invocations to module description.
8292         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
8293         * modules/floorf (configure.ac): ... to here.
8294
8295 2011-05-20  Bruno Haible  <bruno@clisp.org>
8296
8297         sqrtl: Respect rules for use of AC_LIBOBJ.
8298         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
8299         * modules/sqrtl (configure.ac): ... to here.
8300
8301 2011-05-20  Bruno Haible  <bruno@clisp.org>
8302
8303         ldexpl: Respect rules for use of AC_LIBOBJ.
8304         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
8305         * modules/ldexpl (configure.ac): ... to here.
8306
8307 2011-05-20  Bruno Haible  <bruno@clisp.org>
8308
8309         frexpl*: Respect rules for use of AC_LIBOBJ.
8310         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
8311         invocation from here...
8312         * modules/frexpl (configure.ac): ... to here.
8313         * modules/frexpl-nolibm (configure.ac): ... and here.
8314
8315 2011-05-20  Bruno Haible  <bruno@clisp.org>
8316
8317         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
8318         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
8319         invocation from here...
8320         * modules/frexp (configure.ac): ... to here.
8321         * modules/frexp-nolibm (configure.ac): ... and here.
8322
8323 2011-05-20  Bruno Haible  <bruno@clisp.org>
8324
8325         isnan: Respect rules for use of AC_LIBOBJ.
8326         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
8327         invocations here.
8328         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
8329         REPLACE_ISNAN.
8330         * modules/isnand (configure.ac): Likewise.
8331         * modules/isnanl (configure.ac): Likewise.
8332
8333 2011-05-20  Bruno Haible  <bruno@clisp.org>
8334
8335         isnanl*: Respect rules for use of AC_LIBOBJ.
8336         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
8337         invocation from here...
8338         * modules/isnanl (configure.ac): ... to here.
8339         * modules/isnanl-nolibm (configure.ac): ... and here.
8340
8341 2011-05-20  Bruno Haible  <bruno@clisp.org>
8342
8343         isnand*: Move AC_LIBOBJ invocations to module description.
8344         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
8345         invocation from here...
8346         * modules/isnand (configure.ac): ... to here.
8347         * modules/isnand-nolibm (configure.ac): ... and here.
8348
8349 2011-05-20  Bruno Haible  <bruno@clisp.org>
8350
8351         isnanf*: Move AC_LIBOBJ invocations to module description.
8352         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
8353         invocation from here...
8354         * modules/isnanf (configure.ac): ... to here.
8355         * modules/isnanf-nolibm (configure.ac): ... and here.
8356
8357 2011-05-20  Bruno Haible  <bruno@clisp.org>
8358
8359         isnan*: Separate the AC_LIBOBJ invocations.
8360         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
8361         AC_LIBOBJ invocation.
8362         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
8363         here.
8364         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
8365         AC_LIBOBJ invocation.
8366         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
8367         here.
8368         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
8369         AC_LIBOBJ invocation.
8370         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
8371         here.
8372         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
8373
8374 2011-05-08  Bruno Haible  <bruno@clisp.org>
8375
8376         isinf: Move AC_LIBOBJ invocations to module description.
8377         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
8378         * modules/isinf (configure.ac): ... to here.
8379
8380 2011-05-08  Bruno Haible  <bruno@clisp.org>
8381
8382         isfinite: Move AC_LIBOBJ invocations to module description.
8383         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
8384         * modules/isfinite (configure.ac): ... to here.
8385
8386 2011-05-08  Bruno Haible  <bruno@clisp.org>
8387
8388         isblank: Move AC_LIBOBJ invocations to module description.
8389         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
8390         here...
8391         * modules/isblank (configure.ac): ... to here.
8392
8393 2011-05-08  Bruno Haible  <bruno@clisp.org>
8394
8395         isapipe: Move AC_LIBOBJ invocations to module description.
8396         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
8397         gl_PREREQ_ISAPIPE invocations from here...
8398         * modules/isapipe (configure.ac): ... to here.
8399         (Depends-on): Update condition.
8400
8401 2011-05-08  Bruno Haible  <bruno@clisp.org>
8402
8403         ioctl: Move AC_LIBOBJ invocations to module description.
8404         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
8405         invocations from here...
8406         * modules/ioctl (configure.ac): ... to here.
8407         (Depends-on): Update condition.
8408
8409 2011-05-08  Bruno Haible  <bruno@clisp.org>
8410
8411         imaxdiv: Move AC_LIBOBJ invocations to module description.
8412         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
8413         invocations from here...
8414         * modules/imaxdiv (configure.ac): ... to here.
8415
8416 2011-05-08  Bruno Haible  <bruno@clisp.org>
8417
8418         imaxabs: Move AC_LIBOBJ invocations to module description.
8419         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
8420         invocations from here...
8421         * modules/imaxabs (configure.ac): ... to here.
8422
8423 2011-05-08  Bruno Haible  <bruno@clisp.org>
8424
8425         getaddrinfo: Move AC_LIBOBJ invocations to module description.
8426         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
8427         AC_LIBOBJ invocations from here...
8428         * modules/getaddrinfo (configure.ac): ... to here.
8429         (Depends-on): Add conditions.
8430
8431 2011-05-08  Bruno Haible  <bruno@clisp.org>
8432
8433         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
8434         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
8435         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
8436         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
8437         (gl_PREREQ_INET_PTON): ... from here.
8438         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
8439         gl_PREREQ_INET_PTON here.
8440         (Depends-on): Update condition.
8441
8442 2011-05-08  Bruno Haible  <bruno@clisp.org>
8443
8444         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
8445         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
8446         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
8447         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
8448         (gl_PREREQ_INET_NTOP): ... from here.
8449         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
8450         gl_PREREQ_INET_NTOP here.
8451         (Depends-on): Update condition.
8452
8453 2011-05-08  Bruno Haible  <bruno@clisp.org>
8454
8455         iconv_open: Move AC_LIBOBJ invocations to module description.
8456         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
8457         AC_LIBOBJ invocations from here...
8458         * modules/iconv_open (configure.ac): ... to here.
8459
8460 2011-05-08  Bruno Haible  <bruno@clisp.org>
8461
8462         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
8463         If module 'iconv_open' is among the main modules and module
8464         'iconv_open-utf' is among the tests dependencies, then
8465         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
8466         return the special iconv_t values. Therefore iconv() and iconv_close()
8467         must support these special iconv_t values, already in lib, not only in
8468         tests.
8469         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
8470         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
8471         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
8472         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
8473         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
8474         (Depends-on): Add the dependencies of iconv_open-utf.
8475         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
8476         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
8477         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
8478
8479 2011-05-08  Bruno Haible  <bruno@clisp.org>
8480
8481         group-member: Move AC_LIBOBJ invocations to module description.
8482         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
8483         gl_PREREQ_GROUP_MEMBER invocations from here...
8484         * modules/group-member (configure.ac): ... to here.
8485
8486 2011-05-08  Bruno Haible  <bruno@clisp.org>
8487
8488         grantpt: Move AC_LIBOBJ invocations to module description.
8489         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
8490         invocations from here...
8491         * modules/grantpt (configure.ac): ... to here.
8492
8493 2011-05-08  Bruno Haible  <bruno@clisp.org>
8494
8495         glob: Move AC_LIBOBJ invocations to module description.
8496         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
8497         from here...
8498         * modules/glob (configure.ac): ... to here.
8499
8500 2011-05-08  Bruno Haible  <bruno@clisp.org>
8501
8502         getusershell: Move AC_LIBOBJ invocations to module description.
8503         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
8504         Move AC_LIBOBJ invocation from here...
8505         * modules/getusershell (configure.ac): ... to here.
8506         (Depends-on): Update condition.
8507
8508 2011-05-08  Bruno Haible  <bruno@clisp.org>
8509
8510         gettimeofday: Move AC_LIBOBJ invocations to module description.
8511         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
8512         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
8513         gl_PREREQ_GETTIMEOFDAY invocations from here...
8514         * modules/gettimeofday (configure.ac): ... to here.
8515
8516 2011-05-08  Bruno Haible  <bruno@clisp.org>
8517
8518         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
8519         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
8520         just gl_FUNC_TZSET.
8521         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
8522         (gl_FUNC_TZSET_CLOBBER): Remove actions.
8523         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
8524         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
8525
8526 2011-05-08  Bruno Haible  <bruno@clisp.org>
8527
8528         getsubopt: Move AC_LIBOBJ invocations to module description.
8529         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
8530         gl_PREREQ_GETSUBOPT invocations from here...
8531         * modules/getsubopt (configure.ac): ... to here.
8532
8533 2011-05-08  Bruno Haible  <bruno@clisp.org>
8534
8535         getpass-gnu: Move AC_LIBOBJ invocations to module description.
8536         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
8537         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
8538         * modules/getpass-gnu (configure.ac): ... to here.
8539
8540 2011-05-08  Bruno Haible  <bruno@clisp.org>
8541
8542         getpass: Move AC_LIBOBJ invocations to module description.
8543         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
8544         gl_PREREQ_GETPASS invocations from here...
8545         * modules/getpass (configure.ac): ... to here.
8546
8547 2011-05-08  Bruno Haible  <bruno@clisp.org>
8548
8549         getpagesize: Move AC_LIBOBJ invocations to module description.
8550         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
8551         from here...
8552         * modules/getpagesize (configure.ac): ... to here.
8553
8554 2011-05-08  Bruno Haible  <bruno@clisp.org>
8555
8556         getopt: Move AC_LIBOBJ invocations to module description.
8557         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
8558         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
8559         invocations from here...
8560         * modules/getopt-gnu (configure.ac): ... to here.
8561         * modules/getopt-posix (configure.ac): ... and here.
8562         (Depends-on): Update condition.
8563
8564 2011-05-08  Bruno Haible  <bruno@clisp.org>
8565
8566         getopt, argp: Respect rules for use of AC_LIBOBJ.
8567         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
8568         (gl_REPLACE_GETOPT_ALWAYS): New macro.
8569         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
8570         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
8571
8572 2011-05-08  Bruno Haible  <bruno@clisp.org>
8573
8574         getlogin_r: Move AC_LIBOBJ invocations to module description.
8575         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
8576         gl_PREREQ_GETLOGIN_R invocations from here...
8577         * modules/getlogin_r (configure.ac): ... to here.
8578
8579 2011-05-08  Bruno Haible  <bruno@clisp.org>
8580
8581         getlogin: Move AC_LIBOBJ invocations to module description.
8582         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
8583         here...
8584         * modules/getlogin (configure.ac): ... to here.
8585
8586 2011-05-08  Bruno Haible  <bruno@clisp.org>
8587
8588         getloadavg: Move AC_LIBOBJ invocations to module description.
8589         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
8590         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
8591         * modules/getloadavg (configure.ac): ... to here.
8592
8593 2011-05-08  Bruno Haible  <bruno@clisp.org>
8594
8595         gethrxtime: Move AC_LIBOBJ invocations to module description.
8596         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
8597         LIB_GETHRXTIME from here...
8598         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
8599         invocations from here...
8600         * modules/gethrxtime (configure.ac): ... to here.
8601
8602 2011-05-08  Bruno Haible  <bruno@clisp.org>
8603
8604         gethostname: Move AC_LIBOBJ invocations to module description.
8605         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
8606         gl_PREREQ_GETHOSTNAME invocations from here...
8607         * modules/gethostname (configure.ac): ... to here.
8608
8609 2011-05-08  Bruno Haible  <bruno@clisp.org>
8610
8611         getgroups: Move AC_LIBOBJ invocations to module description.
8612         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
8613         here...
8614         * modules/getgroups (configure.ac): ... to here.
8615
8616 2011-05-08  Bruno Haible  <bruno@clisp.org>
8617
8618         getdtablesize: Move AC_LIBOBJ invocations to module description.
8619         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
8620         invocation from here...
8621         * modules/getdtablesize (configure.ac): ... to here.
8622
8623 2011-05-08  Bruno Haible  <bruno@clisp.org>
8624
8625         getdomainname: Move AC_LIBOBJ invocations to module description.
8626         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
8627         gl_PREREQ_GETDOMAINNAME invocations from here...
8628         * modules/getdomainname (configure.ac): ... to here.
8629
8630 2011-05-08  Bruno Haible  <bruno@clisp.org>
8631
8632         getline: Move AC_LIBOBJ invocations to module description.
8633         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
8634         invocations from here...
8635         * modules/getline (configure.ac): ... to here.
8636
8637 2011-05-08  Bruno Haible  <bruno@clisp.org>
8638
8639         getline: Simplify.
8640         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
8641         It's already handled through the module dependency.
8642
8643 2011-05-08  Bruno Haible  <bruno@clisp.org>
8644
8645         getdelim: Move AC_LIBOBJ invocations to module description.
8646         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
8647         and gl_PREREQ_GETDELIM invocations from here...
8648         * modules/getdelim (configure.ac): ... to here.
8649         (Depends-on): Fix condition.
8650
8651 2011-05-08  Bruno Haible  <bruno@clisp.org>
8652
8653         getcwd: Move AC_LIBOBJ invocations to module description.
8654         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
8655         invocations from here...
8656         * modules/getcwd (configure.ac): ... to here.
8657
8658 2011-05-08  Bruno Haible  <bruno@clisp.org>
8659
8660         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
8661         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
8662         here...
8663         * modules/getcwd-lgpl (configure.ac): ... to here.
8664
8665 2011-05-07  Bruno Haible  <bruno@clisp.org>
8666
8667         crypto/gc: Move AC_LIBOBJ invocations to module description.
8668         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
8669         * modules/crypto/gc (configure.ac): ... to here.
8670
8671 2011-05-07  Bruno Haible  <bruno@clisp.org>
8672
8673         fwriting: Move AC_LIBOBJ invocations to module description.
8674         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
8675         here...
8676         * modules/fwriting (configure.ac): ... to here.
8677
8678 2011-05-07  Bruno Haible  <bruno@clisp.org>
8679
8680         fwritable: Move AC_LIBOBJ invocations to module description.
8681         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
8682         here...
8683         * modules/fwritable (configure.ac): ... to here.
8684
8685 2011-05-07  Bruno Haible  <bruno@clisp.org>
8686
8687         futimens: Move AC_LIBOBJ invocations to module description.
8688         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
8689         here...
8690         * modules/futimens (configure.ac): ... to here.
8691
8692 2011-05-07  Bruno Haible  <bruno@clisp.org>
8693
8694         ftruncate: Move AC_LIBOBJ invocations to module description.
8695         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
8696         gl_PREREQ_FTRUNCATE invocations from here...
8697         * modules/ftruncate (configure.ac): ... to here.
8698
8699 2011-05-07  Bruno Haible  <bruno@clisp.org>
8700
8701         fsync: Move AC_LIBOBJ invocations to module description.
8702         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
8703         invocations from here...
8704         * modules/fsync (configure.ac): ... to here.
8705
8706 2011-05-07  Bruno Haible  <bruno@clisp.org>
8707
8708         fsusage: Move AC_LIBOBJ invocations to module description.
8709         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
8710         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
8711         * modules/fsusage (configure.ac): ... to here.
8712
8713 2011-05-07  Bruno Haible  <bruno@clisp.org>
8714
8715         freopen: Move AC_LIBOBJ invocations to module description.
8716         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
8717         invocations from here...
8718         * modules/freopen (configure.ac): ... to here.
8719
8720 2011-05-07  Bruno Haible  <bruno@clisp.org>
8721
8722         free: Move AC_LIBOBJ invocations to module description.
8723         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
8724         invocations from here...
8725         * modules/free (configure.ac): ... to here.
8726
8727 2011-05-07  Bruno Haible  <bruno@clisp.org>
8728
8729         freadable: Move AC_LIBOBJ invocations to module description.
8730         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
8731         here...
8732         * modules/freadable (configure.ac): ... to here.
8733
8734 2011-05-07  Bruno Haible  <bruno@clisp.org>
8735
8736         fpurge: Move AC_LIBOBJ invocations to module description.
8737         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
8738         invocations from here...
8739         * modules/fpurge (configure.ac): ... to here.
8740
8741 2011-05-07  Bruno Haible  <bruno@clisp.org>
8742
8743         fpending: Move AC_LIBOBJ invocations to module description.
8744         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
8745         gl_FUNC_FPENDING.
8746         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
8747         invocations from here...
8748         * modules/fpending (configure.ac): ... to here.
8749
8750 2011-05-07  Bruno Haible  <bruno@clisp.org>
8751
8752         fopen: Move AC_LIBOBJ invocations to module description.
8753         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
8754         invocations from here...
8755         * modules/fopen (configure.ac): ... to here.
8756
8757 2011-05-07  Bruno Haible  <bruno@clisp.org>
8758
8759         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
8760         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
8761         gl_FUNC_FNMATCH_POSIX.
8762         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
8763         invocations from here...
8764         * modules/fnmatch (configure.ac): ... to here.
8765         * modules/fnmatch-gnu (configure.ac): ... and here.
8766
8767 2011-05-07  Bruno Haible  <bruno@clisp.org>
8768
8769         flock: Move AC_LIBOBJ invocations to module description.
8770         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
8771         invocations from here...
8772         * modules/flock (configure.ac): ... to here.
8773
8774 2011-05-07  Bruno Haible  <bruno@clisp.org>
8775
8776         fileblocks: Move AC_LIBOBJ invocations to module description.
8777         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
8778         gl_PREREQ_FILEBLOCKS invocations from here...
8779         * modules/fileblocks (configure.ac): ... to here.
8780
8781 2011-05-06  Bruno Haible  <bruno@clisp.org>
8782
8783         fflush: Move AC_LIBOBJ invocations to module description.
8784         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
8785         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
8786         invocations from here...
8787         * modules/fflush (configure.ac): ... to here.
8788
8789 2011-05-06  Bruno Haible  <bruno@clisp.org>
8790
8791         fdopendir: Move AC_LIBOBJ invocations to module description.
8792         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
8793         here...
8794         * modules/fdopendir (configure.ac): ... to here.
8795         (Depends-on): Improve conditions.
8796
8797 2011-05-06  Bruno Haible  <bruno@clisp.org>
8798
8799         _Exit: Move AC_LIBOBJ invocations to module description.
8800         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
8801         invocations from here...
8802         * modules/_Exit (configure.ac): ... to here.
8803
8804 2011-05-21  Bruno Haible  <bruno@clisp.org>
8805
8806         euidaccess: Respect rules for use of AC_LIBOBJ.
8807         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
8808         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
8809         from here...
8810         * modules/euidaccess (configure.ac): ... to here.
8811
8812 2011-05-06  Bruno Haible  <bruno@clisp.org>
8813
8814         error: Move AC_LIBOBJ invocations to module description.
8815         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
8816         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
8817         invocations from here...
8818         * modules/error (configure.ac): ... to here.
8819
8820 2011-05-06  Bruno Haible  <bruno@clisp.org>
8821
8822         duplocale: Move AC_LIBOBJ invocations to module description.
8823         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
8824         gl_PREREQ_DUPLOCALE invocations from here...
8825         * modules/duplocale (configure.ac): ... to here.
8826
8827 2011-05-05  Bruno Haible  <bruno@clisp.org>
8828
8829         dirfd: Move AC_LIBOBJ invocations to module description.
8830         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
8831         gl_FUNC_DIRFD.
8832         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
8833         here...
8834         * modules/dirfd (configure.ac): ... to here.
8835         (Depends-on): Fix condition.
8836
8837 2011-05-05  Bruno Haible  <bruno@clisp.org>
8838
8839         chown: Respect rules for use of AC_LIBOBJ.
8840         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
8841         * modules/chown (configure.ac): ... to here.
8842
8843 2011-05-05  Bruno Haible  <bruno@clisp.org>
8844
8845         chdir-long: Move AC_LIBOBJ invocations to module description.
8846         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
8847         gl_PREREQ_CHDIR_LONG invocations from here...
8848         * modules/chdir-long (configure.ac): ... to here.
8849
8850 2011-05-05  Bruno Haible  <bruno@clisp.org>
8851
8852         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
8853         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
8854         from here...
8855         * modules/canonicalize-lgpl (configure.ac): ... to here.
8856
8857 2011-05-05  Bruno Haible  <bruno@clisp.org>
8858
8859         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
8860         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
8861         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
8862         REPLACE_CALLOC.
8863         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
8864         * modules/calloc-gnu (configure.ac): Likewise.
8865
8866 2011-05-05  Bruno Haible  <bruno@clisp.org>
8867
8868         btowc: Move AC_LIBOBJ invocations to module description.
8869         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
8870         invocations from here...
8871         * modules/btowc (configure.ac): ... to here.
8872
8873 2011-05-21  Bruno Haible  <bruno@clisp.org>
8874
8875         atexit: Move AC_LIBOBJ invocations to module description.
8876         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
8877         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
8878         here...
8879         * modules/atexit (configure.ac): ... to here.
8880
8881 2011-05-05  Bruno Haible  <bruno@clisp.org>
8882
8883         atoll: Move AC_LIBOBJ invocations to module description.
8884         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
8885         invocations from here...
8886         * modules/atoll (configure.ac): ... to here.
8887
8888 2011-05-05  Bruno Haible  <bruno@clisp.org>
8889
8890         argz: Move AC_LIBOBJ invocations to module description.
8891         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
8892         * modules/argz (configure.ac): ... to here.
8893
8894 2011-05-05  Bruno Haible  <bruno@clisp.org>
8895
8896         alphasort: Move AC_LIBOBJ invocations to module description.
8897         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
8898         gl_PREREQ_ALPHASORT invocations from here...
8899         * modules/alphasort (configure.ac): ... to here.
8900
8901 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
8902
8903         verify: new macro verify_expr; verify_true deprecated
8904         * NEWS: Mention this.
8905         * doc/verify.texi (Compile-time Assertions): Document this.
8906         * lib/verify.h (verify_true): Deprecate.
8907         (verify_expr): New macro.
8908         * tests/test-verify.c (function): Test verify_expr.
8909
8910 2011-06-14  Jim Meyering  <meyering@redhat.com>
8911
8912         init.sh: give more portable redirection-related advice in a comment
8913         * tests/init.sh (stderr_fileno_): Update the advice in comments.
8914         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
8915         for lots of discussion.  Stefano Lattarini suggested the solution
8916         of putting "9>&2" after the command.  Reported by Bruno Haible.
8917
8918 2011-06-13  Bruno Haible  <bruno@clisp.org>
8919
8920         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
8921         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
8922         'none'.
8923
8924 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
8925
8926         ftoastr: use strtof only if HAVE_STRTOF
8927         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
8928         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
8929         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
8930         * modules/ftoastr (configure.ac): Check for strtof.
8931
8932 2011-06-13  Bruno Haible  <bruno@clisp.org>
8933
8934         gnulib-tool: Addendum to 2011-06-08 commit.
8935         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
8936         and --witness-c-macro have been given, augment AM_CPPFLAGS.
8937
8938 2011-06-13  Bruno Haible  <bruno@clisp.org>
8939
8940         fseeko: Provide a non-inline replacement of fseek().
8941         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
8942         * modules/fseeko (Depends-on): Add fseek.
8943         * modules/fseek (License): Change to LGPLv2+.
8944
8945 2011-06-13  Bruno Haible  <bruno@clisp.org>
8946
8947         ftello: Provide a non-inline replacement of ftell().
8948         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
8949         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
8950         not have ftello() (such as on mingw).
8951         * modules/ftello (Depends-on): Add ftell.
8952         * modules/ftell (License): Change to LGPLv2+.
8953
8954 2011-05-07  Bruno Haible  <bruno@clisp.org>
8955
8956         ftell: Move AC_LIBOBJ invocations to module description.
8957         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
8958         * modules/ftell (configure.ac): ... to here.
8959
8960 2011-05-07  Bruno Haible  <bruno@clisp.org>
8961
8962         ftello: Respect rules for use of AC_LIBOBJ.
8963         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
8964         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
8965         here...
8966         * modules/ftello (configure.ac): ... to here.
8967
8968 2011-05-07  Bruno Haible  <bruno@clisp.org>
8969
8970         fseeko: Simplify.
8971         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
8972         (gl_FUNC_FSEEKO): Inline it here.
8973
8974 2011-05-07  Bruno Haible  <bruno@clisp.org>
8975
8976         fseek: Move AC_LIBOBJ invocations to module description.
8977         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
8978         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
8979         * modules/fseek (configure.ac): ... to here.
8980
8981 2011-05-07  Bruno Haible  <bruno@clisp.org>
8982
8983         fseek: Respect rules for use of AC_LIBOBJ.
8984         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
8985         here...
8986         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
8987
8988 2011-05-07  Bruno Haible  <bruno@clisp.org>
8989
8990         fseeko: Respect rules for use of AC_LIBOBJ.
8991         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
8992         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
8993         here...
8994         * modules/fseeko (configure.ac): ... to here.
8995
8996 2011-06-13  Bruno Haible  <bruno@clisp.org>
8997
8998         gnulib-tool: Allow comments in the 'Depends-on' section.
8999         * doc/gnulib.texi (Module description): Mention comment syntax in the
9000         Depends-on section.
9001         * gnulib-tool (func_get_dependencies): Filter out comment lines.
9002
9003 2011-06-13  Bruno Haible  <bruno@clisp.org>
9004
9005         file-set.h: guard __attibute__ use, now that it's not always defined
9006         * lib/file-set.h (record_file): Use __attribute__ only with compiler
9007         versions that support it.  This fixes a coreutils build failure with
9008         the vendor cc on HP-UX 11.31.
9009
9010 2011-06-12  Bruno Haible  <bruno@clisp.org>
9011
9012         acl: Add support for HP-UX >= 11.11 JFS ACLs.
9013         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
9014         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
9015         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
9016         (acl, aclsort): New declarations.
9017         (aclv_nontrivial): New declaration.
9018         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
9019         (file_has_acl): Read also the second kind of HP-UX ACLs.
9020         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
9021         kind of HP-UX ACLs if the first kind fails.
9022         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
9023         second kind of HP-UX ACLs.
9024         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
9025         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
9026         agree.
9027         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
9028         hpuxjfs.
9029         Handle hpuxjfs.
9030         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
9031         hpuxjfs.
9032         Handle hpuxjfs.
9033         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
9034         (func_test_same_acls): Use both lsacl and getacl.
9035         Handle hpuxjfs.
9036         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
9037         (func_test_same_acls): Use both lsacl and getacl.
9038         Handle hpuxjfs.
9039
9040 2011-06-12  Bruno Haible  <bruno@clisp.org>
9041
9042         acl: Complete the 2010-08-10 fix.
9043         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
9044         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
9045         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
9046         explicitly.
9047         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
9048         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
9049
9050 2011-06-12  Bruno Haible  <bruno@clisp.org>
9051
9052         spawn-pipe tests: Comments.
9053         * tests/test-spawn-pipe-child.c (main): Update comment.
9054         Reported by James Youngman <jay@gnu.org>.
9055
9056 2011-06-11  James Youngman  <jay@gnu.org>
9057
9058         New module 'stat-size'.
9059         * modules/stat-size: New module.  Provides macros for accessing
9060         file size information in instances of struct stat.  Depends on the
9061         fileblocks module because it calls st_blocks.
9062         * lib/stat-size.h: New file, adapted from coreutils' system.h.
9063         * doc/gnulib.texi: Include stat-size.texi.
9064         * doc/stat-size.texi: Documentation for this module.
9065         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
9066         * m4/fileblocks.m4: Mention that stat-size depends on the call to
9067         AC_STRUCT_ST_BLOCKS.
9068
9069 2011-06-09  Bruno Haible  <bruno@clisp.org>
9070
9071         thread: Support pthreads-win32.
9072         * lib/glthread/thread.h (gl_thread_self): Define differently on
9073         pthreads-win32.
9074         (gl_null_thread): New declaration.
9075         (gl_thread_self_pointer): New macro.
9076         * lib/glthread/thread.c (gl_null_thread): New constant.
9077         * tests/test-lock.c: Use gl_thread_self_pointer instead of
9078         gl_thread_self.
9079         * tests/test-tls.c: Likewise.
9080         Suggested by Paul Eggert. Reported by Eric Blake.
9081
9082 2011-06-09  Bruno Haible  <bruno@clisp.org>
9083
9084         thread: Fix confusion between NULL and 0.
9085         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
9086         Reported by Paul Eggert.
9087
9088 2011-06-09  Bruno Haible  <bruno@clisp.org>
9089
9090         spawn-pipe tests: Avoid test failure on HP-UX 11.
9091         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
9092         is closed.
9093
9094 2011-06-09  Bruno Haible  <bruno@clisp.org>
9095
9096         acl tests: Fix compilation error on HP-UX 11.
9097         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
9098
9099 2011-06-09  Bruno Haible  <bruno@clisp.org>
9100
9101         rmdir: Avoid test failure on HP-UX 10.20.
9102         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
9103         EEXIST.
9104
9105 2011-06-08  Eric Blake  <eblake@redhat.com>
9106
9107         perror: fix test on mingw
9108         * modules/perror-tests (Depends-on): Add dup2.
9109
9110         strerror_r-posix: fix on MacOS
9111         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
9112         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
9113         logic bug.
9114         * lib/strerror_r.c (strerror_r): Fix the bug.
9115         * lib/strerror.c (strerror): Likewise.
9116         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
9117         problem.
9118         * doc/posix-functions/strerror.texi (strerror): Likewise.
9119         * doc/posix-functions/perror.texi (perror): Likewise.
9120         * tests/test-strerror.c (main): Enhance test.
9121         * tests/test-strerror_r.c (main): Likewise.
9122
9123 2011-06-08  Bruno Haible  <bruno@clisp.org>
9124
9125         gnulib-tool: Better isolation between different gnulib-tool invocations.
9126         * gnulib-tool: New option --witness-c-macro.
9127         (witness_c_macro): New variable.
9128         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
9129         AM_CPPFLAGS define it as a C macro.
9130         (func_emit_tests_Makefile_am): Likewise.
9131         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
9132         read it from there.
9133         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
9134         m4_define, not AC_DEFUN.
9135         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
9136         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
9137         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
9138         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
9139         s|...|...|, to substitute the values of the GNULIB_* module indicator
9140         variables.
9141         * modules/dirent (Makefile.am): Likewise.
9142         * modules/fcntl-h (Makefile.am): Likewise.
9143         * modules/iconv-h (Makefile.am): Likewise.
9144         * modules/langinfo (Makefile.am): Likewise.
9145         * modules/locale (Makefile.am): Likewise.
9146         * modules/math (Makefile.am): Likewise.
9147         * modules/netdb (Makefile.am): Likewise.
9148         * modules/poll-h (Makefile.am): Likewise.
9149         * modules/pty (Makefile.am): Likewise.
9150         * modules/search (Makefile.am): Likewise.
9151         * modules/signal (Makefile.am): Likewise.
9152         * modules/spawn (Makefile.am): Likewise.
9153         * modules/stdio (Makefile.am): Likewise.
9154         * modules/stdlib (Makefile.am): Likewise.
9155         * modules/string (Makefile.am): Likewise.
9156         * modules/sys_ioctl (Makefile.am): Likewise.
9157         * modules/sys_select (Makefile.am): Likewise.
9158         * modules/sys_socket (Makefile.am): Likewise.
9159         * modules/sys_stat (Makefile.am): Likewise.
9160         * modules/sys_times (Makefile.am): Likewise.
9161         * modules/sys_utsname (Makefile.am): Likewise.
9162         * modules/sys_wait (Makefile.am): Likewise.
9163         * modules/termios (Makefile.am): Likewise.
9164         * modules/time (Makefile.am): Likewise.
9165         * modules/unistd (Makefile.am): Likewise.
9166         * modules/wchar (Makefile.am): Likewise.
9167
9168 2011-06-08  Eric Blake  <eblake@redhat.com>
9169
9170         strerror: simplify replacement
9171         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
9172         * modules/strerror (configure.ac): No prereqs needed here...
9173         * modules/strerror-override (configure.ac): ...but this needs it.
9174         (Files): Add file for needed prereq macro.
9175
9176 2011-06-08  Bruno Haible  <bruno@clisp.org>
9177
9178         strerror_r-posix: Tweaks.
9179         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
9180         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
9181         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
9182         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
9183         (gl_FUNC_STRERROR_R): ... to here.
9184         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
9185
9186 2011-06-07  Eric Blake  <eblake@redhat.com>
9187
9188         perror: document fixed bugs
9189         * doc/posix-functions/perror.texi (perror): Document recent
9190         patches.
9191
9192 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
9193
9194         stat-time: get_stat_birthtime failure is better-defined
9195         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
9196         return a timestamp whose tv_sec and tv_nsec values are both -1.
9197         Previously, the spec said only that the tv_nsec value was negative.
9198         This upward-compatible change simplifies GNU tar a bit.
9199
9200 2011-06-07  Eric Blake  <eblake@redhat.com>
9201
9202         strerror_r-posix: work around cygwin 1.7.9
9203         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
9204         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
9205         bug without replacing strerror_r.
9206         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
9207         strerror_r is buggy, but without requiring strerror_r compilation.
9208         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
9209
9210         test-perror: relax test to ignore cygwin bug
9211         * tests/test-perror2.c (main): Relax test on requiring detection
9212         of stream errors, and use unbuffered stream.
9213         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
9214         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
9215         * doc/posix-functions/fputc.texi (fputc): Likewise.
9216         * doc/posix-functions/fputs.texi (fputs): Likewise.
9217         * doc/posix-functions/fputws.texi (fputws): Likewise.
9218         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
9219         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
9220         * doc/posix-functions/getopt.texi (getopt): Likewise.
9221         * doc/posix-functions/perror.texi (perror): Likewise.
9222         * doc/posix-functions/printf.texi (printf): Likewise.
9223         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
9224         * doc/posix-functions/psignal.texi (psignal): Likewise.
9225         * doc/posix-functions/putc.texi (putc): Likewise.
9226         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
9227         Likewise.
9228         * doc/posix-functions/putchar.texi (putchar): Likewise.
9229         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
9230         Likewise.
9231         * doc/posix-functions/puts.texi (puts): Likewise.
9232         * doc/posix-functions/putwc.texi (putwc): Likewise.
9233         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
9234         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
9235         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
9236         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
9237         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
9238         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
9239         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
9240         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
9241
9242 2011-05-22  Bruno Haible  <bruno@clisp.org>
9243
9244         strerror: Move AC_LIBOBJ invocations to module description.
9245         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
9246         gl_PREREQ_STRERROR invocations from here...
9247         * modules/strerror (configure.ac): ... to here.
9248
9249 2011-05-21  Bruno Haible  <bruno@clisp.org>
9250
9251         perror: Use common idiom.
9252         * modules/perror (configure.ac): Reorder statements.
9253
9254 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
9255
9256         tests: fix usage message in 'mktempd_'
9257         * tests/init.sh (mktempd_): In the usage message, use literal
9258         'mktempd_', not '$ME' (which is even undefined), as the name of
9259         the subroutine.
9260
9261 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
9262
9263         tests init: new function 'fatal_', for hard errors
9264         Before this patch, the only way offered by tests/init.sh to
9265         properly signal a hard error was the `framework_failure_'
9266         function.  But the error message issued by that function,
9267         as its name would suggest, refers to a set-up failure in the
9268         testsuite, while hard errors can obviously also be due to
9269         other reasons.  The best way to fix this inconsistency is to
9270         introduce a new function with a more general error message.
9271         * tests/init.sh (fatal_): New function.
9272
9273 2011-06-06  Eric Blake  <eblake@redhat.com>
9274
9275         canonicalize-lgpl: use common idiom
9276         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
9277         over newer POSIX -Rf.
9278         Reported by Bruno Haible.
9279
9280         canonicalize-lgpl: work around AIX realpath bug
9281         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
9282         * doc/posix-functions/realpath.texi (realpath): Document it.
9283         Reported by Bruno Haible.
9284
9285         strerror: work around FreeBSD bug
9286         * lib/strerror.c (strerror): Special case 0.
9287         Reported by Bruno Haible.
9288
9289         strerror-override: avoid bloating errno module
9290         * modules/errno (Files, configure.ac): Move replacement strings...
9291         * modules/strerror-override: ...to new module.
9292         * modules/strerror (Depends-on): Add strerror-override.
9293         * modules/strerror_r-posix (Depends-on): Likewise.
9294         * MODULES.html.sh: Document new module.
9295         Reported by Bruno Haible.
9296
9297 2011-06-06  Bruno Haible  <bruno@clisp.org>
9298
9299         spawn-pipe tests: Rename program.
9300         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
9301         * tests/test-spawn-pipe-child.c: Update comment.
9302         * tests/test-spawn-pipe.sh: Update.
9303         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
9304
9305         spawn-pipe tests: Link the child program only against libc.
9306         * tests/test-spawn-pipe-child.c: New file, extracted from
9307         tests/test-spawn-pipe.c.
9308         (main): Expect only one argument.
9309         (is_open): New function, copied from tests/test-pipe.c.
9310         * tests/test-spawn-pipe.c: Don't include <errno.h>.
9311         (child_main): Remove function.
9312         (test_pipe): Pass only one argument to the child program.
9313         (main): Remove child process code. Expect the child program's name as
9314         first argument.
9315         * tests/test-spawn-pipe.sh: Pass the child program's name as first
9316         argument.
9317         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
9318         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
9319         test-spawn-pipe-child against no libraries.
9320
9321 2011-06-06  Bruno Haible  <bruno@clisp.org>
9322
9323         careadlinkat: Avoid mismatch between ssize_t and int.
9324         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
9325         * lib/careadlinkat.c (careadlinkatcwd): Define always.
9326
9327 2011-06-06  Jim Meyering  <meyering@redhat.com>
9328
9329         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
9330         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
9331         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
9332
9333 2011-06-05  Bruno Haible  <bruno@clisp.org>
9334
9335         ansi-c++-opt: Interoperability with libtool.
9336         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
9337         set the variable to "no", not to ":".
9338         * NEWS: Mention the change.
9339
9340 2011-06-05  Bruno Haible  <bruno@clisp.org>
9341
9342         acl: Fix test failure on AIX 7.
9343         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
9344         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
9345
9346 2011-06-05  Bruno Haible  <bruno@clisp.org>
9347
9348         pipe-filter-ii: Fix test failure on AIX and IRIX.
9349         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
9350         with EAGAIN, retry with a smaller buffer size.
9351
9352 2011-06-05  Bruno Haible  <bruno@clisp.org>
9353
9354         localename: Fix link dependencies.
9355         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
9356         * modules/localename-tests (Makefile.am): Link test-localename with
9357         $(LIBTHREAD).
9358
9359 2011-06-05  Bruno Haible  <bruno@clisp.org>
9360
9361         error: Avoid gcc warning.
9362         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
9363
9364 2011-06-05  Bruno Haible  <bruno@clisp.org>
9365
9366         unsetenv: Avoid gcc warning.
9367         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
9368
9369 2011-06-05  Bruno Haible  <bruno@clisp.org>
9370
9371         setenv: Avoid gcc warning.
9372         * lib/setenv.c (setenv): Provide declaration if system lacks it.
9373
9374 2011-06-05  Bruno Haible  <bruno@clisp.org>
9375
9376         sys_select: Ensure memset is declared also on AIX 7.
9377         * lib/sys_select.in.h: Include <string.h> also on AIX.
9378         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
9379         self-contained also on AIX 7.1.
9380
9381 2011-06-04  Jim Meyering  <meyering@redhat.com>
9382
9383         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
9384         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
9385         function name, "error".
9386         (_gl_translatable_diag_func_re): New configurable variable.
9387
9388 2011-06-04  Bruno Haible  <bruno@clisp.org>
9389
9390         getopt: Avoid gcc warning.
9391         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
9392
9393 2011-06-04  Bruno Haible  <bruno@clisp.org>
9394
9395         strerror_r: Fix comments.
9396         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
9397         commit.
9398
9399 2011-06-04  Bruno Haible  <bruno@clisp.org>
9400
9401         perror: Fix compilation error.
9402         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
9403         Undefine fprintf, not sprintf.
9404         * modules/perror (Depends-on): Remove intprops, verify.
9405
9406 2011-06-04  Bruno Haible  <bruno@clisp.org>
9407
9408         setlocale: Enable replacement on Cygwin 1.5.
9409         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
9410         Cygwin 1.5.x.
9411         * doc/posix-functions/setlocale.texi: Mention that the problem with the
9412         LC_CTYPE category also exists on Cygwin 1.5.x.
9413
9414 2011-06-04  Bruno Haible  <bruno@clisp.org>
9415
9416         strerror-override: Don't disable symbol renamings.
9417         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
9418         * lib/strerror-override.c: Include config.h.
9419         (strerror_override): Don't undefine.
9420
9421 2011-06-03  Bruno Haible  <bruno@clisp.org>
9422
9423         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
9424         * lib/localename.h: Update copyright header.
9425         * lib/localename.c: Likewise.
9426         * lib/relocatable.h: Likewise.
9427         * lib/relocatable.c: Likewise.
9428
9429 2011-06-02  Bruno Haible  <bruno@clisp.org>
9430
9431         doc: Fix a module name.
9432         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
9433
9434 2011-06-02  Bruno Haible  <bruno@clisp.org>
9435
9436         pipe2: Remove dependency on 'nonblocking' module.
9437         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
9438         O_NONBLOCK is defined by gnulib.
9439         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
9440         is zero.
9441         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
9442         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
9443         defined by gnulib.
9444         (get_nonblocking_flag): New function.
9445         (main): Test O_NONBLOCK flag only if it is nonzero.
9446         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
9447
9448 2011-06-03  Jim Meyering  <meyering@redhat.com>
9449
9450         maint: three new prohibit-header-without-use rules
9451         Prohibit use of cloexec.h, posixver.h, same.h without use.
9452         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
9453         (sc_prohibit_posixver_without_use): Likewise.
9454         (sc_prohibit_same_without_use): Likewise.
9455
9456 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
9457
9458         allocator: 'die' routine is now given requested size
9459         * lib/allocator.h (struct allocator.die): New size arg.
9460         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
9461         If the actual problem is an ssize_t limitation, not a size_t or
9462         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
9463
9464 2011-06-01  Eric Blake  <eblake@redhat.com>
9465
9466         strerror: drop strerror_r dependency
9467         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
9468         * lib/strerror-override.c (strerror_override): ...to new file.
9469         * lib/strerror-override.h: Add prototype.
9470         * lib/strerror-impl.h: Delete.
9471         * lib/strerror.c (strerror): New implementation.
9472         * modules/errno (Files): Add new files.
9473         (configure.ac): Compile new file as appropriate.
9474         * modules/strerror (Files): Drop unused file.
9475         (Depends-on): Drop strerror_r-posix.
9476         * MODULES.html.sh: Document strerror_r-posix.
9477         Requested by Sam Steingold.
9478
9479         perror: call strerror_r directly
9480         * modules/perror (Files): Drop strerror-impl.h.
9481         * lib/perror.c (perror): Use our own stack buffer, rather than
9482         calling a wrapper that uses static storage.
9483         * doc/posix-functions/perror.texi (perror): Document a limitation
9484         of our replacement.
9485
9486         strerror_r: fix includes for FreeBSD
9487         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
9488         since we use abort on some platforms.
9489         Reported by Matthias Bolte.
9490
9491 2011-05-31  Bruno Haible  <bruno@clisp.org>
9492
9493         Fix link errors in tests: openat-die uses gettext-h.
9494         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
9495         against $(LIBINTL).
9496         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
9497         against $(LIBINTL).
9498         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
9499         $(LIBINTL).
9500         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
9501         against $(LIBINTL).
9502         * modules/linkat-tests (Makefile.am): Link test-linkat against
9503         $(LIBINTL).
9504         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
9505         $(LIBINTL).
9506         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
9507         against $(LIBINTL).
9508         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
9509         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
9510         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
9511         $(LIBINTL).
9512         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
9513         $(LIBINTL).
9514         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
9515         $(LIBINTL).
9516         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9517
9518 2011-05-31  Bruno Haible  <bruno@clisp.org>
9519
9520         Fix link errors in tests: wait-process uses gettext-h.
9521         * modules/nonblocking-pipe-tests (Makefile.am): Set
9522         test_nonblocking_pipe_main_LDADD.
9523         * modules/nonblocking-socket-tests (Makefile.am): Link
9524         test-nonblocking-socket-main against $(LIBINTL).
9525         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9526
9527 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
9528
9529         assert-h: work around 'verify' incompatibility
9530         * lib/verify.h: Use @...@ directives, not ifdef.
9531         * modules/assert-h (assert.h): Implement the directives.
9532         (assert.h): Substitute the symbol-prefix more consistently.
9533
9534 2011-05-29  Jim Meyering  <meyering@redhat.com>
9535
9536         trim: remove three superfluous assignments
9537         * lib/trim.c (trim2): Remove three superfluous assignments
9538         and correct brace positioning.
9539
9540 2011-05-29  Bruno Haible  <bruno@clisp.org>
9541
9542         wctype-h: Avoid namespace pollution on Solaris 2.6.
9543         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
9544         identifiers.
9545         * doc/posix-headers/wctype.texi: Mention the problem.
9546         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9547
9548 2011-05-28  Jim Meyering  <meyering@redhat.com>
9549
9550         parse-datetime.y: accommodate -Wstrict-overflow
9551         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
9552         placate -Wstrict-overflow.
9553
9554         trim: avoid a warning from -O2 -Wstrict-overflow
9555         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
9556
9557 2011-05-29  Bruno Haible  <bruno@clisp.org>
9558
9559         gnulib-tool: Fix bug in yesterday's commit.
9560         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
9561         twice.
9562
9563 2011-05-29  Bruno Haible  <bruno@clisp.org>
9564
9565         Allow multiple gnulib generated include files to be combined.
9566         * gnulib-tool (func_compute_include_guard_prefix): New function.
9567         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
9568         ${gl_include_guard_prefix} references.
9569         (func_import, func_create_testdir): Invoke
9570         func_compute_include_guard_prefix.
9571         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
9572         * lib/ctype.in.h: Likewise.
9573         * lib/dirent.in.h: Likewise.
9574         * lib/errno.in.h: Likewise.
9575         * lib/fcntl.in.h: Likewise.
9576         * lib/float.in.h: Likewise.
9577         * lib/getopt.in.h: Likewise.
9578         * lib/iconv.in.h: Likewise.
9579         * lib/langinfo.in.h: Likewise.
9580         * lib/locale.in.h: Likewise.
9581         * lib/math.in.h: Likewise.
9582         * lib/netdb.in.h: Likewise.
9583         * lib/netinet_in.in.h: Likewise.
9584         * lib/poll.in.h: Likewise.
9585         * lib/pthread.in.h: Likewise.
9586         * lib/pty.in.h: Likewise.
9587         * lib/sched.in.h: Likewise.
9588         * lib/se-selinux.in.h: Likewise.
9589         * lib/search.in.h: Likewise.
9590         * lib/signal.in.h: Likewise.
9591         * lib/spawn.in.h: Likewise.
9592         * lib/stdarg.in.h: Likewise.
9593         * lib/stddef.in.h: Likewise.
9594         * lib/stdint.in.h: Likewise.
9595         * lib/stdio.in.h: Likewise.
9596         * lib/stdlib.in.h: Likewise.
9597         * lib/string.in.h: Likewise.
9598         * lib/strings.in.h: Likewise.
9599         * lib/sys_file.in.h: Likewise.
9600         * lib/sys_ioctl.in.h: Likewise.
9601         * lib/sys_select.in.h: Likewise.
9602         * lib/sys_socket.in.h: Likewise.
9603         * lib/sys_stat.in.h: Likewise.
9604         * lib/sys_time.in.h: Likewise.
9605         * lib/sys_times.in.h: Likewise.
9606         * lib/sys_uio.in.h: Likewise.
9607         * lib/sys_utsname.in.h: Likewise.
9608         * lib/sys_wait.in.h: Likewise.
9609         * lib/sysexits.in.h: Likewise.
9610         * lib/termios.in.h: Likewise.
9611         * lib/time.in.h: Likewise.
9612         * lib/unistd.in.h: Likewise.
9613         * lib/wchar.in.h: Likewise.
9614         * lib/wctype.in.h: Likewise.
9615         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
9616         * modules/ctype (Makefile.am): Likewise.
9617         * modules/dirent (Makefile.am): Likewise.
9618         * modules/errno (Makefile.am): Likewise.
9619         * modules/fcntl-h (Makefile.am): Likewise.
9620         * modules/float (Makefile.am): Likewise.
9621         * modules/getopt-posix (Makefile.am): Likewise.
9622         * modules/iconv-h (Makefile.am): Likewise.
9623         * modules/langinfo (Makefile.am): Likewise.
9624         * modules/locale (Makefile.am): Likewise.
9625         * modules/math (Makefile.am): Likewise.
9626         * modules/netdb (Makefile.am): Likewise.
9627         * modules/netinet_in (Makefile.am): Likewise.
9628         * modules/poll-h (Makefile.am): Likewise.
9629         * modules/pthread (Makefile.am): Likewise.
9630         * modules/pty (Makefile.am): Likewise.
9631         * modules/sched (Makefile.am): Likewise.
9632         * modules/search (Makefile.am): Likewise.
9633         * modules/selinux-h (Makefile.am): Likewise.
9634         * modules/signal (Makefile.am): Likewise.
9635         * modules/spawn (Makefile.am): Likewise.
9636         * modules/stdarg (Makefile.am): Likewise.
9637         * modules/stddef (Makefile.am): Likewise.
9638         * modules/stdint (Makefile.am): Likewise.
9639         * modules/stdio (Makefile.am): Likewise.
9640         * modules/stdlib (Makefile.am): Likewise.
9641         * modules/string (Makefile.am): Likewise.
9642         * modules/strings (Makefile.am): Likewise.
9643         * modules/sys_file (Makefile.am): Likewise.
9644         * modules/sys_ioctl (Makefile.am): Likewise.
9645         * modules/sys_select (Makefile.am): Likewise.
9646         * modules/sys_socket (Makefile.am): Likewise.
9647         * modules/sys_stat (Makefile.am): Likewise.
9648         * modules/sys_time (Makefile.am): Likewise.
9649         * modules/sys_times (Makefile.am): Likewise.
9650         * modules/sys_uio (Makefile.am): Likewise.
9651         * modules/sys_utsname (Makefile.am): Likewise.
9652         * modules/sys_wait (Makefile.am): Likewise.
9653         * modules/sysexits (Makefile.am): Likewise.
9654         * modules/termios (Makefile.am): Likewise.
9655         * modules/time (Makefile.am): Likewise.
9656         * modules/unistd (Makefile.am): Likewise.
9657         * modules/wchar (Makefile.am): Likewise.
9658         * modules/wctype-h (Makefile.am): Likewise.
9659         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
9660
9661 2011-05-29  Bruno Haible  <bruno@clisp.org>
9662
9663         assert-h: Allow multiple gnulib generated replacements to coexist.
9664         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
9665
9666 2011-05-29  Bruno Haible  <bruno@clisp.org>
9667
9668         argp: Allow coexistence with strerror_r-posix module.
9669         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
9670         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
9671         by gnulib's <string.h> replacement), assume it has the POSIX signature,
9672         not the glibc signature.
9673
9674 2011-05-28  Bruno Haible  <bruno@clisp.org>
9675
9676         gnulib-tool: Alternative structure of testdirs, similar to --import.
9677         * gnulib-tool: New option --single-configure.
9678         (func_usage): Document it.
9679         (single_configure): New variable.
9680         (func_modules_transitive_closure_separately,
9681         func_modules_transitive_closure_separately,
9682         func_determine_use_libtests, func_modules_add_dummy_separately,
9683         func_modules_to_filelist_separately): New functions, extracted from
9684         func_import.
9685         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
9686         (func_import): Use the new functions.
9687         (func_create_testdir): Set final_modules. Handle $single_configure =
9688         true case.
9689
9690 2011-05-28  Bruno Haible  <bruno@clisp.org>
9691
9692         getloadavg: Remove an unreliable safety check.
9693         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
9694         getloadavg.c is in place.
9695         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
9696         Reported by Sam Steingold <sds@gnu.org>.
9697
9698 2011-05-28  Bruno Haible  <bruno@clisp.org>
9699
9700         doc: Cleanup yet another file produced by texinfo.tex.
9701         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
9702
9703 2011-05-28  Bruno Haible  <bruno@clisp.org>
9704
9705         Finish the conditional dependencies mechanism.
9706         * gnulib-tool: New option --no-conditional-dependencies.
9707         (func_usage): Document it. Don't mark --conditional-dependencies as
9708         experimental.
9709         (cond_dependencies): The possible values can now be true, false, empty.
9710         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
9711         (func_import): Store setting in gnulib-cache.m4 and read it from there.
9712         * doc/gnulib-tool.texi (Conditional dependencies): New section.
9713
9714 2011-05-28  Bruno Haible  <bruno@clisp.org>
9715
9716         doc: Use a recent texinfo.tex.
9717         * doc/Makefile (tex_opts): New variable.
9718         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
9719
9720 2011-05-28  Jim Meyering  <meyering@redhat.com>
9721
9722         intprops.h: adjust comment to match code change
9723         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
9724         only once, it *may* have side effects.  Also fix an unrelated typo.
9725         (_GL_INT_SIGNED): Likewise.
9726
9727 2011-05-26  Simon Josefsson  <simon@josefsson.org>
9728
9729         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
9730
9731 2011-05-26  Bruno Haible  <bruno@clisp.org>
9732
9733         mbsrchr: Avoid collision with system function on Interix.
9734         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
9735         Reported by Markus Duft <mduft@gentoo.org>.
9736
9737 2011-05-15  James Youngman  <jay@gnu.org>
9738
9739         getopt: for ambiguous options, enumerate the possibilities.
9740         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
9741         the ambiguous options when an ambiguous prefix is given. This was
9742         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
9743         glibc change was
9744         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
9745
9746 2011-05-25  Eric Blake  <eblake@redhat.com>
9747
9748         getcwd: work around mingw bug
9749         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
9750         * doc/posix-functions/getcwd.texi (getcwd): Document it.
9751         Reported by Matthias Bolte.
9752
9753 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
9754
9755         test-intprops: disable -Wtype-limits diagnostics
9756         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
9757         diagnostics.  Otherwise, the integer overflow macros generate many
9758         diagnostics.  Reported by Jim Meyering in
9759         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
9760
9761         intprops: shorten, to pacify gcc -Woverlength-strings
9762         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
9763         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
9764         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
9765         likely to run afoul of C compiler limits for string constant lengths.
9766         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
9767
9768 2011-05-24  Eric Blake  <eblake@redhat.com>
9769
9770         docs: document recently fixed glibc printf bug
9771         * doc/posix-functions/fprintf.texi (fprintf): Document it.
9772         * doc/posix-functions/printf.texi (printf): Likewise.
9773         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
9774         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
9775
9776         closein-tests: convert to init.sh
9777         * modules/closein-tests (Files): Add init.sh
9778         * tests/test-closein.sh Use it.
9779
9780         yesno-tests: convert to init.sh
9781         * modules/yesno-tests (Files): Add init.sh.
9782         * tests/test-yesno.sh: Use it.
9783
9784         atexit-tests: ensure reliable exit status
9785         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
9786         Reported by Bruno Haible.
9787
9788 2011-05-24  Bruno Haible  <bruno@clisp.org>
9789
9790         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
9791         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
9792         gl_PREREQ_STRERROR_R invocations from here...
9793         * modules/strerror_r-posix (configure.ac): ... to here.
9794
9795 2011-05-24  Eric Blake  <eblake@redhat.com>
9796
9797         strerror_r: fix missing header
9798         * lib/strerror_r.c: Avoid compiler warning about snprintf.
9799
9800         strerror_r: fix AIX test failures
9801         * lib/strerror_r.c (strerror_r): Convert silent truncation to
9802         ERANGE failure.
9803
9804         strerror_r: fix Solaris test failures
9805         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
9806         failures.
9807         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
9808
9809         strerror_r: enforce POSIX recommendations
9810         * lib/strerror_r.c (safe_copy): New helper method.
9811         (strerror_r): Guarantee a non-empty string.
9812         * tests/test-strerror_r.c (main): Enhance tests to incorporate
9813         recent POSIX rulings and to match our strerror guarantees.
9814         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
9815
9816 2011-05-24  Jim Meyering  <meyering@redhat.com>
9817
9818         test-perror2.c: avoid warning about unused variable
9819         * tests/test-perror2.c (main): Remove declaration of unused "fp".
9820
9821 2011-05-24  Eric Blake  <eblake@redhat.com>
9822
9823         perror: avoid spurious test failure on HP-UX
9824         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
9825
9826         tests: fix logic bug in init.sh
9827         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
9828         shell.
9829
9830 2011-05-24  Jim Meyering  <meyering@redhat.com>
9831
9832         utimensat: do not reference an out-of-scope buffer
9833         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
9834         declared in an inner scope, yet "times" would be dereferenced outside
9835         the scope in which "ts" was valid.
9836         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
9837         of ts[2] "out/up", so that the use of aliased "times" (via
9838         "times = ts;") does not end up referencing an out-of-scope "ts"
9839
9840         opendir-safer.c: don't clobber errno; don't close negative FD
9841         * lib/opendir-safer.c (opendir_safer):
9842         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
9843         file descriptor, and more importantly, don't clobber the
9844         offending errno value with EINVAL.  Before, upon failure
9845         of dup_safer, we would pass the negative file descriptor to
9846         fdopendir, which would clobber errno.
9847
9848 2011-05-23  Bruno Haible  <bruno@clisp.org>
9849
9850         idcache: Fix module description.
9851         * modules/idcache (Include): Set to "idcache.h".
9852
9853 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
9854
9855         gnulib-tool: fix portability problem with MacOS sed
9856         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
9857         before the "}".  Problem reported by Leo in
9858         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
9859         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
9860         sed_extract_condition1, sed_extract_condition2.
9861
9862 2011-05-23  Bruno Haible  <bruno@clisp.org>
9863
9864         hash: Simplify autoconf macro.
9865         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
9866
9867 2011-05-23  Bruno Haible  <bruno@clisp.org>
9868
9869         getugroups: Fix module description.
9870         * modules/getugroups (Include): Set to "getugroups.h".
9871
9872 2011-05-23  Bruno Haible  <bruno@clisp.org>
9873
9874         linkat: Simplify autoconf macro.
9875         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
9876
9877 2011-05-23  Bruno Haible  <bruno@clisp.org>
9878             Eric Blake  <eblake@redhat.com>
9879
9880         linkat, renameat: Update dependencies.
9881         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
9882         * modules/linkat (Depends-on): Likewise. Remove also readlink,
9883         symlinkat.
9884
9885 2011-05-23  Jim Meyering  <meyering@redhat.com>
9886
9887         maint.mk: more tight_scope improvements
9888         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
9889         (_gl_TS_headers): Define only in if-0'd block.
9890         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
9891         sometimes we must *not* use it.  Adjust uses accordingly.
9892         (sc_tight_scope): Use much simpler grep-based test to determine
9893         whether we skip this rule.
9894
9895         maint.mk: generalize/improve the tight-scope rule
9896         * top/maint.mk: Emit a warning when the test is skipped.
9897         (_gl_TS_dir): Add $(srcdir)/ prefix.
9898         (_gl_TS_function_match): Simplify, rather than trying
9899         to enumerate common types.  Otherwise, it would fail to match an
9900         "extern unsigned char const *" declaration in idutils.
9901         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
9902         a way to support use of that type of macro.
9903         (_gl_TS_var_match): Simplify regexp.
9904         (_gl_TS_obj_files): New configurable variable.
9905         (_gl_TS_headers): Likewise.
9906
9907 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
9908
9909         verify: fix bug when gnulib <assert.h> is also included
9910         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
9911         is defined, not if _GL_STATIC_ASSERT_H is not defined.
9912         Perhaps there's a better way, but this fixes the immediate problem.
9913         Problem reported by Bruno Haible in
9914         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
9915
9916 2011-05-22  Bruno Haible  <bruno@clisp.org>
9917
9918         xgetcwd: Simplify autoconf macro.
9919         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
9920
9921 2011-05-22  Bruno Haible  <bruno@clisp.org>
9922
9923         New module 'mktime-internal'.
9924         * modules/mktime-internal: New file.
9925         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
9926         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
9927         mktime_internal as a C macro if libc has __mktime_internal.
9928         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
9929         conditions.
9930         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
9931
9932 2011-05-22  Bruno Haible  <bruno@clisp.org>
9933
9934         timegm: Correct mktime replacement statements.
9935         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
9936         defining mktime as a C macro. This completes a 2009-07-28 commit.
9937
9938 2011-05-22  Bruno Haible  <bruno@clisp.org>
9939
9940         timegm: Simplify autoconf macro.
9941         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
9942
9943 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
9944
9945         clock-time: change to LGPLv2+.
9946         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
9947         BSD-like but we have no mark for that; this is good enough for now.
9948
9949 2011-05-21  Bruno Haible  <bruno@clisp.org>
9950
9951         strerror_r: Fix comments.
9952         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
9953
9954 2011-05-21  Bruno Haible  <bruno@clisp.org>
9955
9956         relocatable-prog-wrapper: Fix possible link error.
9957         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
9958         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
9959         (gl_FUNC_SETENV): ... to here.
9960         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
9961         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
9962
9963 2011-05-21  Bruno Haible  <bruno@clisp.org>
9964
9965         relocatable-prog-wrapper: Assume strerror() exists.
9966         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
9967         m4/strerror.m4.
9968         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
9969         * lib/relocwrapper.c: Remove mention of strerror module.
9970         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
9971         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
9972         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
9973         C macro.
9974
9975 2011-05-21  Bruno Haible  <bruno@clisp.org>
9976
9977         select: Simplify replacement idiom.
9978         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
9979         Win32 platforms.
9980         * lib/sys_select.in.h (select): Simplify accordingly.
9981         * modules/select (Depends-on): Likewise.
9982
9983 2011-05-21  Bruno Haible  <bruno@clisp.org>
9984
9985         mkdir-p: Simplify autoconf macro.
9986         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
9987         gl_FUNC_LCHOWN.
9988
9989 2011-05-21  Eric Blake  <eblake@redhat.com>
9990
9991         strerror_r: avoid clobbering strerror on cygwin
9992         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
9993         fall back instead to sys_errlist.
9994         * modules/strerror (configure.ac): Add witness.
9995         * tests/test-strerror_r.c (main): Enhance test.
9996         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
9997         * tests/test-perror2.c (main): Free memory before exit.
9998
9999 2011-05-21  Bruno Haible  <bruno@clisp.org>
10000
10001         mkdtemp: Use gnulib naming conventions.
10002         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
10003         * modules/mkdtemp (configure.ac): Update.
10004
10005 2011-05-20  Eric Blake  <eblake@redhat.com>
10006
10007         strerror_r: avoid corrupting errno on Solaris
10008         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
10009         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
10010
10011         strerror_r: avoid compiler warning
10012         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
10013
10014         strerror_r: simplify AIX code
10015         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
10016
10017         test-perror: avoid spurious failure on FreeBSD
10018         * modules/perror-tests (Depends-on): Add strerror, now that
10019         strerror_r no longer pulls it in.
10020
10021 2011-05-20  Bruno Haible  <bruno@clisp.org>
10022
10023         strerror_r-posix: Remove unused dependencies.
10024         * modules/strerror_r-posix (Depends-on): Remove strerror.
10025         Reported by Eric Blake.
10026
10027 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
10028
10029         intprops: remove assumption about A|B representation
10030         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
10031         is a valid integer if both A and B are.  Although this is true for
10032         all known practical hosts, the C standard doesn't guarantee it,
10033         and the code need not assume it.  Also, this change may work around
10034         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
10035         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
10036
10037 2011-05-20  Eric Blake  <eblake@redhat.com>
10038
10039         perror: work around FreeBSD bug
10040         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
10041         is broken.  Move AC_LIBOBJ...
10042         * modules/perror (configure.ac): Here.
10043         * doc/posix-functions/perror.texi (perror): Document this.
10044         * tests/test-perror2.c (main): Enhance test.
10045
10046         test-perror: check for strerror interactions
10047         * tests/macros.h (STREQ): Add macro.
10048         * modules/perror-tests (Files): Add second test.
10049         * tests/test-perror2.c (main): New file.
10050         * doc/posix-functions/perror.texi (perror): Document glibc bug.
10051
10052         test-perror: rewrite to use init script
10053         * modules/perror-tests (Files): Add init.sh.
10054         * tests/test-perror.sh: Use temporary directory.
10055
10056 2011-05-20  Jim Meyering  <meyering@redhat.com>
10057
10058         maint: replace misused "a" with "an"
10059         * doc/intprops.texi: "a integer"
10060         * doc/regex.texi: "a explanation"
10061         * lib/alignof.h: "a object"
10062         * lib/argmatch.h: "a explanation"
10063         * lib/argp-help.c: "a option" and "a OPTION_DOC"
10064         * lib/stdint.in.h: "a integer"
10065         * lib/userspec.c: "a owner"
10066         * doc/gnulib.texi: Fix "a idea", and reword.
10067
10068 2011-05-19  Jim Meyering  <meyering@redhat.com>
10069
10070         maint: correct misuse of "a" and "an"
10071         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
10072         * lib/argp-help.c: "an docum...": s/an/a/
10073         * lib/argp-parse.c: "An vector": s/An/A/
10074         * lib/execute.c: "an native": s/an/a/
10075         * lib/spawn-pipe.c: Likewise.
10076         * lib/gc.h: "an Gc_rc": s/an/a/
10077         * lib/unigbrk.in.h: "an grapheme": s/an/a/
10078         * lib/fts.c: "an stat.st_dev": s/an/a/
10079
10080 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
10081
10082         intprops-tests: work around HP-UX 11.23 cc bug with constants
10083         * tests/test-intprops.c (VERIFY): New macro.
10084         (main): Use it, instead of verify, to work around the compiler bug; see
10085         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
10086
10087         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
10088         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
10089         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
10090         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
10091         (_GL_REMAINDER_OVERFLOW): Use it.
10092
10093         intprops-tests: revert unsigned part of previous change
10094         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
10095         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
10096         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
10097         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
10098
10099 2011-05-19  Bruno Haible  <bruno@clisp.org>
10100
10101         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
10102         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
10103         strerror_r() returned without filling the buffer.
10104         Reported by Eric Blake.
10105
10106 2011-05-19  Eric Blake  <eblake@redhat.com>
10107
10108         strerror_r: guarantee unchanged errno
10109         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
10110         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
10111         failure.
10112         * tests/test-strerror_r.c (main): Enhance test.
10113
10114 2011-05-19  Bruno Haible  <bruno@clisp.org>
10115
10116         strerror_r: Reorder #if blocks.
10117         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
10118         for consistency with the previous commit.
10119
10120 2011-05-19  Bruno Haible  <bruno@clisp.org>
10121
10122         perror: Avoid clobbering the strerror buffer when possible.
10123         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
10124         * lib/strerror.c: Include it.
10125         * modules/strerror (Files): Add lib/strerror-impl.h.
10126         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
10127         (my_strerror): New function, defined through lib/strerror-impl.h.
10128         (perror): Use it instead of strerror.
10129         * modules/perror (Files): Add lib/strerror-impl.h.
10130         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
10131
10132 2011-05-19  Eric Blake  <eblake@redhat.com>
10133
10134         strerror_r: fix on newer cygwin
10135         * lib/strerror_r.c (strerror_r): Cygwin now has
10136         __xpg_strerror_r, use it.
10137
10138 2011-05-19  Bruno Haible  <bruno@clisp.org>
10139
10140         strerror_r: Avoid clobbering the strerror buffer when possible.
10141         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
10142         (sys_nerr, sys_errlist): New declarations.
10143         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
10144         HP-UX, native Win32, IRIX, and 32-bit Solaris.
10145         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
10146
10147 2011-05-19  Bruno Haible  <bruno@clisp.org>
10148
10149         strerror_r: Fix test failure on mingw.
10150         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
10151         EXTEND_STRERROR_R.
10152         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
10153         macros from errno.in.h instead.
10154
10155 2011-05-19  Eric Blake  <eblake@redhat.com>
10156
10157         strerror: relax test for Solaris
10158         * tests/test-strerror.c (main): Permit Solaris behavior.
10159         * tests/test-strerror_r.c (main): Likewise.
10160
10161         strerror: enforce POSIX ruling on strerror(0)
10162         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
10163         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
10164         * lib/strerror_r.c (rpl_strerror_r): Work around it.
10165         * doc/posix-functions/strerror.texi (strerror): Document it.
10166         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
10167         * tests/test-strerror.c (main): Strengthen test.
10168         * tests/test-strerror_r.c (main): Likewise.
10169
10170 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
10171
10172         intprop-tests: port to older and more-pedantic compilers
10173         * modules/intprops-tests (Files): Add tests/macros.h.
10174         * tests/test-intprops.c: Include macros.h.
10175         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
10176         it's no longer documented to expand to an integer constant expression.
10177         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
10178         argument is floating point, as it's no longer documented to expand
10179         to an integer constant expression in that case.
10180         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
10181         compiler bugs reported by Bruno Haible.  See
10182         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
10183         (U0, U1): New constants, to work around the same bugs.  Also,
10184         in tests, use e.g., "(unsigned int) 39" rather than "39u".
10185
10186         intprops: work around C compiler bugs
10187         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
10188         bug in Sun C 5.11 2010/08/13 and other compilers; see
10189         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
10190
10191         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
10192         * doc/intprops.texi (Integer Type Determination): Fix
10193         documentation for TYPE_IS_INTEGER: it returns an constant
10194         expression, not an integer constant expression.  Fix doc for
10195         TYPE_SIGNED: it returns an integer constant expression only if its
10196         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
10197         hardly worth documented that way....)
10198
10199 2011-05-18  Bruno Haible  <bruno@clisp.org>
10200
10201         strerror_r: Avoid clobbering the strerror buffer when possible.
10202         * lib/strerror_r.c (strerror_r): Merge the three implementations.
10203         Handle gnulib defined errno values here. When strerror() returns NULL
10204         or an empty string, return EINVAL.
10205         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
10206         gnulib defined errno values here.
10207         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
10208
10209 2011-05-18  Eric Blake  <eblake@redhat.com>
10210
10211         fnmatch: avoid compiler warning
10212         * lib/fnmatch_loop.c (FCT): Use correct type.
10213         Reported by Matthias Bolte.
10214
10215 2011-05-13  Jim Meyering  <meyering@redhat.com>
10216
10217         maint.mk: three new prohibit_<HDR>_without_use rules
10218         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
10219         (sc_prohibit_stdio-safer_without_use): Likewise.
10220         (sc_prohibit_xfreopen_without_use): Likewise.
10221
10222 2011-05-17  Jim Meyering  <meyering@redhat.com>
10223
10224         announce-gen: fail if the NEWS delta is empty
10225         If there's nothing noteworthy in NEWS, then either you forgot
10226         or you shouldn't be releasing.
10227         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
10228
10229 2011-05-17  Pádraig Brady <P@draigBrady.com>
10230
10231         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
10232         reserved symbols starting with double underscore from the check.
10233
10234 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
10235
10236         intprops: add doc
10237         * doc/intprops.texi: New file, documenting intprops.
10238         * doc/gnulib.texi (Particular Modules): Include it.
10239
10240         verify: add doc to gnulib manual and fix example
10241         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
10242         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
10243         (Compile-time Assertions): Fix example so it can't overflow.
10244
10245 2011-05-17  Jim Meyering  <meyering@redhat.com>
10246
10247         warnings.m4: don't usurp save_CPPFLAGS variable name
10248         * m4/warnings.m4: Prefix local temporary variable name with gl_.
10249
10250         doc: fix typo
10251         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
10252
10253 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
10254             Bruno Haible  <bruno@clisp.org>
10255
10256         doc: Tweak recent change.
10257         * README (Portability guidelines): Tweak new text.
10258         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
10259         Interix 6.1.
10260
10261 2011-05-16  Eric Blake  <eblake@redhat.com>
10262
10263         inttypes: avoid autoconf warning
10264         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
10265         * m4/stdint.m4 (gl_STDINT_H): Likewise.
10266
10267 2011-05-16  Sam Steingold <sds@gnu.org>
10268         and Eric Blake  <eblake@redhat.com>
10269
10270         vc-list-files: accept multiple directory operands
10271         * build-aux/vc-list-files: Iterate over all remaining operands.
10272
10273 2011-05-16  Bruno Haible  <bruno@clisp.org>
10274
10275         Fix confusion regarding deprecated modules.
10276         * modules/calloc (Status, Notice): Mark module as deprecated, not
10277         obsolete.
10278         * modules/fnmatch-posix (Status, Notice): Likewise.
10279         * modules/getdate (Status, Notice): Likewise.
10280         * modules/getopt (Status, Notice): Likewise.
10281         * modules/malloc (Status, Notice): Likewise.
10282         * modules/pipe (Status, Notice): Likewise.
10283         * modules/realloc (Status, Notice): Likewise.
10284         * modules/rename-dest-slash (Status, Notice): Likewise.
10285         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
10286         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
10287         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
10288         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
10289         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
10290
10291 2011-05-16  Bruno Haible  <bruno@clisp.org>
10292
10293         doc: List the target platforms.
10294         * doc/gnulib-intro.texi (Target Platforms): New section.
10295         * doc/gnulib.texi (Introduction): Update menu.
10296         * README (Portability guidelines): Refer to the new section. Update
10297         statement about oldest supported environment. Remove rationale why
10298         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
10299         unportable C89 function.
10300         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
10301         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
10302
10303 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
10304
10305         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
10306
10307 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
10308
10309         intprops-tests: new module
10310         * modules/intprops-tests, tests/test-intprops.c: New files.
10311
10312         intprops: add safe, portable integer overflow checking
10313         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
10314         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
10315         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
10316         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
10317         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
10318         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
10319         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
10320         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
10321         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
10322         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
10323         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
10324
10325 2011-05-12  James Youngman  <jay@gnu.org>
10326
10327         Add a test for glibc's Bugzilla bug #12378.
10328         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
10329         doesn't allow the literal matching of a lone "[" (which is
10330         required by POSIX).
10331         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
10332
10333 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
10334
10335         Sync glibc change fixing Bugzilla bug #12378.
10336         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
10337         beginning and fall back to matching as normal character if the
10338         string ends before the matching ']' is found.  This is what POSIX
10339         requires.
10340
10341 2011-05-13  Eric Blake  <eblake@redhat.com>
10342
10343         getcwd-lgpl: relax test for FreeBSD
10344         * doc/posix-functions/getcwd.texi (getcwd): Document portability
10345         issue.
10346         * tests/test-getcwd-lgpl.c (main): Relax test.
10347         Reported by Matthias Bolte.
10348
10349 2011-05-11  Eric Blake  <eblake@redhat.com>
10350
10351         test-fflush: silence compiler warning
10352         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
10353
10354 2011-05-11  Bruno Haible  <bruno@clisp.org>
10355
10356         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
10357         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
10358         * modules/canonicalize (Depends-on): Add 'nocrash'.
10359         * modules/canonicalize-lgpl (Depends-on): Likewise.
10360         * doc/posix-functions/realpath.texi: Update platforms list.
10361         Reported by Ryan Schmidt <ryandesign@macports.org>.
10362
10363 2011-05-11  Bruno Haible  <bruno@clisp.org>
10364
10365         group-member: Declare function in <unistd.h>.
10366         * lib/unistd.in.h (group_member): New declaration.
10367         * lib/group-member.h: Remove file.
10368         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
10369         * tests/test-unistd-c++.cc: Check signature of group_member.
10370         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
10371         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
10372         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
10373         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
10374         HAVE_GROUP_MEMBER.
10375         * modules/group-member (Files): Remove lib/group-member.h.
10376         (Depends-on): Add unistd. Specify conditions.
10377         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
10378         (Include): Change to <unistd.h>.
10379         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
10380         HAVE_GROUP_MEMBER.
10381         * NEWS: Mention the change.
10382         * lib/euidaccess.c: Don't include group-member.h.
10383
10384 2011-05-11  Bruno Haible  <bruno@clisp.org>
10385
10386         group-member: Document module.
10387         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
10388         module.
10389
10390 2011-05-11  Bruno Haible  <bruno@clisp.org>
10391
10392         fclose: Fix mistake earlier today.
10393         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
10394
10395 2011-05-11  Eric Blake  <eblake@redhat.com>
10396
10397         fclose: preserve fflush errors
10398         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
10399         Reported by Jim Meyering.
10400
10401         bootstrap: support a prereq of 'rpcgen -' on RHEL5
10402         * build-aux/bootstrap (check_versions): When no specific version
10403         is required, merely check that the app produces an exit status
10404         that indicates its existence.
10405
10406         maint.mk: drop redundant check
10407         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
10408         the same but better.
10409
10410 2011-05-11  Bruno Haible  <bruno@clisp.org>
10411
10412         fclose: Fix possible link error.
10413         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
10414         unregister_shadow_fd. Improve comments.
10415         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
10416         Eric Blake.
10417
10418 2011-05-11  Jim Meyering  <meyering@redhat.com>
10419
10420         maint.mk: improve "can not" detection and generalize rule name
10421         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
10422         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
10423         Use the same technique as in sc_prohibit_doubled_word, so that
10424         we recognize "can not" also when the words are separated by a newline.
10425         Suggested by Eric Blake.
10426         (perl_filename_lineno_text_): Define.  Factored out of...
10427         (prohibit_doubled_word_): ...here.  Use the new definition.
10428         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
10429         (prohibit_undesirable_word_seq_RE_): New overridable variable.
10430         (ignore_undesirable_word_sequence_RE_): New overridable variable.
10431
10432 2011-05-10  Eric Blake  <eblake@redhat.com>
10433
10434         fclose: avoid double close race when possible
10435         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
10436         all but WINDOWS_SOCKETS.
10437
10438 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
10439
10440         openat: correct new comment
10441         * lib/openat-proc.c (openat_proc_name): Correct the comment.
10442
10443 2011-05-10  Jim Meyering  <meyering@redhat.com>
10444
10445         openat: add comments
10446         * lib/openat-proc.c (openat_proc_name): Add comments,
10447         mostly from Eric Blake.
10448
10449 2011-05-09  Eric Blake  <eblake@redhat.com>
10450
10451         openat: reduce syscalls in first probe of /proc
10452         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
10453         be a directory.  Simplify the probe for .. bugs.
10454         * modules/openat (Depends-on): Drop same-inode.
10455         Reported by Bastien ROUCARIES.
10456
10457 2011-05-09  Jim Meyering  <meyering@redhat.com>
10458
10459         maint.mk: change semantics/name of tight_scope variables
10460         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
10461         Rename variables to align with semantics that make them more useful.
10462
10463         maint.mk: tweak new rule's name not to impinge
10464         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
10465         (sc_tight_scope): Use new rule name rather than $@-0.
10466
10467         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
10468         * top/maint.mk (sc_tight_scope): New rule.
10469         (sc_tight_scope-0): New rule, ifdef'd out.
10470         (_gl_TS_dir): Default.
10471         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
10472         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
10473
10474 2011-05-09  Simon Josefsson  <simon@josefsson.org>
10475
10476         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
10477         Haible <bruno@clisp.org>.
10478
10479 2011-05-08  Bruno Haible  <bruno@clisp.org>
10480
10481         Comments.
10482         * m4/isnanf.m4: Add comment.
10483         * m4/isnanl.m4: Likewise.
10484
10485 2011-05-08  Bruno Haible  <bruno@clisp.org>
10486
10487         glob: Remove obsolete macro.
10488         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
10489
10490 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
10491
10492         intprops: Sun C 5.11 supports __typeof__
10493         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
10494         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
10495         which is new.
10496         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
10497
10498         intprops: switch to usual gnulib indenting and naming
10499         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
10500         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
10501
10502         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
10503
10504 2011-05-08  Jim Meyering  <meyering@redhat.com>
10505
10506         maint.mk: suppress "Entering/Leaving directory" diag in announcement
10507         * top/maint.mk (release-prep): Use make's --no-print-directory
10508         option when generating the announcement.  This eliminates the
10509         pesky "make[2]: Entering/Leaving directory" diagnostics in the
10510         generated announcement template.
10511
10512 2011-05-08  Bruno Haible  <bruno@clisp.org>
10513
10514         tzset: Fix gettimeofday wrapper on Solaris 2.6.
10515         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
10516         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
10517
10518 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
10519
10520         ignore-value, verify: Omit include files from lib_SOURCES.
10521         * modules/ignore-value, modules/verify (Makefile.am):
10522         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
10523         that leads Automake to duplicate use of am__objects_... variables
10524         in Makefile.in.  See
10525         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
10526
10527 2011-05-07  Bruno Haible  <bruno@clisp.org>
10528
10529         fclose: Simplify autoconf macro.
10530         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
10531         defined.
10532
10533 2011-05-07  Bruno Haible  <bruno@clisp.org>
10534
10535         canonicalize-lgpl: Fix autoconf macro ordering bug.
10536         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
10537         gl_STDLIB_H_DEFAULTS.
10538
10539 2011-05-06  Eric Blake  <eblake@redhat.com>
10540
10541         maintainer-makefile: make sc_po_check easier to tune
10542         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
10543         to probe for strings, such as an alternate location for gnulib.
10544
10545         fclose: guarantee behavior on seekable stdin
10546         * modules/fclose (Depends-on): Add fflush.
10547         * doc/posix-functions/fclose.texi (fclose): Document this.
10548         * tests/test-fclose.c (main): Make test for this unconditional.
10549
10550 2011-05-06  Bruno Haible  <bruno@clisp.org>
10551
10552         fflush, fpurge: Relicense under LGPLv2+.
10553         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
10554         * modules/fpurge (License): Likewise.
10555         With permission from Eric Blake and Jim Meyering.
10556         Suggested by Eric Blake.
10557
10558 2011-05-06  Karl Berry  <karl@gnu.org>
10559
10560         * MODULES.html.sh (func_all_modules): remove exit.
10561
10562 2011-05-06  Jim Meyering  <meyering@redhat.com>
10563
10564         maint.mk: use info-gnu@ as the default only for a stable release
10565         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
10566         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
10567         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
10568         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
10569
10570 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
10571
10572         assert-h: new module, which supports C1X-style static_assert
10573         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
10574         * lib/verify.h: Revamp so that this can be copied into assert.h,
10575         while retaining the ability to use it standalone as before.
10576         Rename private identifiers so as not to encroach on the
10577         standard C namespace, since this is now used by assert.h.
10578         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
10579         the old verify_true.
10580         (_GL_VERIFY_TRUE): New macro, with much of the contents of
10581         the old verify_true.  Use _GL_VERIFY_TYPE.
10582         (_GL_VERIFY): New macro, with much of the contents of the old verify.
10583         (static_assert): New macro, if _GL_STATIC_ASSERT_H
10584         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
10585         defined when this file is copied into the replacement assert.h.
10586         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
10587         and _Static_assert is not built in.
10588         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
10589         defined, and use the new macros mentioned above.
10590         * doc/posix-headers/assert.texi: Document this.
10591
10592 2011-05-05  Bruno Haible  <bruno@clisp.org>
10593
10594         fclose, fflush: Respect rules for use of AC_LIBOBJ.
10595         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
10596         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
10597         gl_REPLACE_FCLOSE here.
10598         * modules/fflush (Depends-on): Remove fclose.
10599         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
10600         combination with module 'fclose'.
10601
10602 2011-05-05  Bruno Haible  <bruno@clisp.org>
10603
10604         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
10605         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
10606         gl_FUNC_FFLUSH.
10607         (gl_FUNC_FFLUSH): Use it.
10608         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
10609         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
10610         gl_REPLACE_FSEEKO here.
10611
10612 2011-05-05  Bruno Haible  <bruno@clisp.org>
10613
10614         tzset: Relicense under LGPL.
10615         * modules/tzset (License): Change to LGPL.
10616         No agreement needed; it's a no-op.
10617
10618         strtoimax, strtoumax: Relicense under LGPL.
10619         * modules/strtoimax (License): Change to LGPL.
10620         * modules/strtoumax (License): Likewise.
10621         With permission from Jim Meyering, Paul Eggert:
10622         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
10623         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
10624
10625         getgroups: Relicense under LGPL.
10626         * modules/getgroups (License): Change to LGPL.
10627         With permission from Jim Meyering, Paul Eggert, Eric Blake:
10628         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
10629         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
10630         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
10631
10632         nanosleep: Relicense under LGPL.
10633         * modules/nanosleep (License): Change to LGPL.
10634         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
10635         Haible:
10636         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
10637         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
10638         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
10639         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
10640
10641         futimens: Relicense under LGPL.
10642         * modules/futimens (License): Change to LGPL.
10643         With permission from Eric Blake:
10644         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
10645
10646         fflush: Relicense under LGPL.
10647         * modules/fflush (License): Change to LGPL.
10648         With permission from Eric Blake, Bruno Haible, Jim Meyering:
10649         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
10650         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
10651         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
10652
10653         tmpfile: Relicense under LGPL.
10654         * modules/tmpfile (License): Change to LGPL.
10655         With permission from Ben Pfaff:
10656         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
10657
10658         isfinite: Relicense under LGPL.
10659         * modules/isfinite (License): Change to LGPL.
10660         With permission from Ben Pfaff, Bruno Haible:
10661         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
10662         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
10663
10664         acosl..tanl: Relicense under LGPL.
10665         * modules/acosl (License): Change to LGPL.
10666         * modules/asinl (License): Likewise.
10667         * modules/atanl (License): Likewise.
10668         * modules/cosl (License): Likewise.
10669         * modules/expl (License): Likewise.
10670         * modules/logl (License): Likewise.
10671         * modules/sinl (License): Likewise.
10672         * modules/sqrtl (License): Likewise.
10673         * modules/tanl (License): Likewise.
10674         Source code originally from glibc and Paolo Bonzini. Agreements:
10675         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
10676         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
10677
10678 2011-05-05  Bruno Haible  <bruno@clisp.org>
10679
10680         signal: Define sighandler_t.
10681         * lib/signal.in.h (sighandler_t): New type.
10682         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
10683         whether sighandler_t is defined.
10684         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
10685         * modules/signal (Depends-on): Add extensions.
10686         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
10687         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
10688         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
10689
10690 2011-05-05  Eric Blake  <eblake@redhat.com>
10691
10692         maint: remove useless REPLACE_*_H macros
10693         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
10694         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
10695         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
10696         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
10697         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
10698         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
10699         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
10700         * m4/btowc.m4: Update callers.
10701         * m4/dirfd.m4: Likewise.
10702         * m4/duplocale.m4: Likewise.
10703         * m4/fchdir.m4: Likewise.
10704         * m4/fdopendir.m4: Likewise.
10705         * m4/inet_ntop.m4: Likewise.
10706         * m4/inet_pton.m4: Likewise.
10707         * m4/ioctl.m4: Likewise.
10708         * m4/mbrlen.m4: Likewise.
10709         * m4/mbrtowc.m4: Likewise.
10710         * m4/mbsinit.m4: Likewise.
10711         * m4/mbsnrtowcs.m4: Likewise.
10712         * m4/mbsrtowcs.m4: Likewise.
10713         * m4/poll.m4: Likewise.
10714         * m4/setlocale.m4: Likewise.
10715         * m4/wcrtomb.m4: Likewise.
10716         * m4/wcsnrtombs.m4: Likewise.
10717         * m4/wcsrtombs.m4: Likewise.
10718         * m4/wctob.m4: Likewise.
10719         * m4/wcwidth.m4: Likewise.
10720         * modules/posix_spawn: Likewise.
10721         * modules/posix_spawn_file_actions_addclose: Likewise.
10722         * modules/posix_spawn_file_actions_adddup2: Likewise.
10723         * modules/posix_spawn_file_actions_addopen: Likewise.
10724         * modules/posix_spawn_file_actions_destroy: Likewise.
10725         * modules/posix_spawn_file_actions_init: Likewise.
10726         * modules/posix_spawnattr_destroy: Likewise.
10727         * modules/posix_spawnattr_getflags: Likewise.
10728         * modules/posix_spawnattr_getpgroup: Likewise.
10729         * modules/posix_spawnattr_getschedparam: Likewise.
10730         * modules/posix_spawnattr_getschedpolicy: Likewise.
10731         * modules/posix_spawnattr_getsigdefault: Likewise.
10732         * modules/posix_spawnattr_getsigmask: Likewise.
10733         * modules/posix_spawnattr_init: Likewise.
10734         * modules/posix_spawnattr_setflags: Likewise.
10735         * modules/posix_spawnattr_setpgroup: Likewise.
10736         * modules/posix_spawnattr_setschedparam: Likewise.
10737         * modules/posix_spawnattr_setschedpolicy: Likewise.
10738         * modules/posix_spawnattr_setsigdefault: Likewise.
10739         * modules/posix_spawnattr_setsigmask: Likewise.
10740         * modules/posix_spawnp: Likewise.
10741
10742 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
10743
10744         Add option to do-release-commit-and-tag to specify branch.
10745         * build-aux/do-release-commit-and-tag: Add --branch.
10746
10747 2011-05-03  Bruno Haible  <bruno@clisp.org>
10748
10749         Avoid unnecessary compilation units, through conditional dependencies.
10750         * modules/accept (Depends-on): Add conditions to the dependencies.
10751         * modules/acosl (Depends-on): Likewise.
10752         * modules/argz (Depends-on): Likewise.
10753         * modules/asinl (Depends-on): Likewise.
10754         * modules/atanl (Depends-on): Likewise.
10755         * modules/atoll (Depends-on): Likewise.
10756         * modules/bind (Depends-on): Likewise.
10757         * modules/btowc (Depends-on): Likewise.
10758         * modules/canonicalize-lgpl (Depends-on): Likewise.
10759         * modules/ceil (Depends-on): Likewise.
10760         * modules/ceilf (Depends-on): Likewise.
10761         * modules/ceill (Depends-on): Likewise.
10762         * modules/chdir-long (Depends-on): Likewise.
10763         * modules/chown (Depends-on): Likewise.
10764         * modules/close (Depends-on): Likewise.
10765         * modules/connect (Depends-on): Likewise.
10766         * modules/cosl (Depends-on): Likewise.
10767         * modules/dirfd (Depends-on): Likewise.
10768         * modules/dprintf (Depends-on): Likewise.
10769         * modules/dprintf-posix (Depends-on): Likewise.
10770         * modules/error (Depends-on): Likewise.
10771         * modules/euidaccess (Depends-on): Likewise.
10772         * modules/expl (Depends-on): Likewise.
10773         * modules/faccessat (Depends-on): Likewise.
10774         * modules/fchdir (Depends-on): Likewise.
10775         * modules/fclose (Depends-on): Likewise.
10776         * modules/fcntl (Depends-on): Likewise.
10777         * modules/fdopendir (Depends-on): Likewise.
10778         * modules/fflush (Depends-on): Likewise.
10779         * modules/floor (Depends-on): Likewise.
10780         * modules/floorf (Depends-on): Likewise.
10781         * modules/floorl (Depends-on): Likewise.
10782         * modules/fnmatch (Depends-on): Likewise.
10783         * modules/fopen (Depends-on): Likewise.
10784         * modules/fprintf-posix (Depends-on): Likewise.
10785         * modules/frexp (Depends-on): Likewise.
10786         * modules/frexp-nolibm (Depends-on): Likewise.
10787         * modules/frexpl (Depends-on): Likewise.
10788         * modules/frexpl-nolibm (Depends-on): Likewise.
10789         * modules/fseek (Depends-on): Likewise.
10790         * modules/fsusage (Depends-on): Likewise.
10791         * modules/ftell (Depends-on): Likewise.
10792         * modules/ftello (Depends-on): Likewise.
10793         * modules/futimens (Depends-on): Likewise.
10794         * modules/getcwd (Depends-on): Likewise.
10795         * modules/getcwd-lgpl (Depends-on): Likewise.
10796         * modules/getdelim (Depends-on): Likewise.
10797         * modules/getdomainname (Depends-on): Likewise.
10798         * modules/getgroups (Depends-on): Likewise.
10799         * modules/gethostname (Depends-on): Likewise.
10800         * modules/getline (Depends-on): Likewise.
10801         * modules/getlogin_r (Depends-on): Likewise.
10802         * modules/getopt-posix (Depends-on): Likewise.
10803         * modules/getpeername (Depends-on): Likewise.
10804         * modules/getsockname (Depends-on): Likewise.
10805         * modules/getsockopt (Depends-on): Likewise.
10806         * modules/getsubopt (Depends-on): Likewise.
10807         * modules/getusershell (Depends-on): Likewise.
10808         * modules/glob (Depends-on): Likewise.
10809         * modules/grantpt (Depends-on): Likewise.
10810         * modules/iconv_open (Depends-on): Likewise.
10811         * modules/iconv_open-utf (Depends-on): Likewise.
10812         * modules/inet_ntop (Depends-on): Likewise.
10813         * modules/inet_pton (Depends-on): Likewise.
10814         * modules/ioctl (Depends-on): Likewise.
10815         * modules/isapipe (Depends-on): Likewise.
10816         * modules/isfinite (Depends-on): Likewise.
10817         * modules/isinf (Depends-on): Likewise.
10818         * modules/lchown (Depends-on): Likewise.
10819         * modules/ldexpl (Depends-on): Likewise.
10820         * modules/link (Depends-on): Likewise.
10821         * modules/linkat (Depends-on): Likewise.
10822         * modules/listen (Depends-on): Likewise.
10823         * modules/logl (Depends-on): Likewise.
10824         * modules/lstat (Depends-on): Likewise.
10825         * modules/mbrlen (Depends-on): Likewise.
10826         * modules/mbrtowc (Depends-on): Likewise.
10827         * modules/mbsinit (Depends-on): Likewise.
10828         * modules/mbsnrtowcs (Depends-on): Likewise.
10829         * modules/mbsrtowcs (Depends-on): Likewise.
10830         * modules/mbtowc (Depends-on): Likewise.
10831         * modules/memcmp (Depends-on): Likewise.
10832         * modules/mkdir (Depends-on): Likewise.
10833         * modules/mkdtemp (Depends-on): Likewise.
10834         * modules/mkfifo (Depends-on): Likewise.
10835         * modules/mkfifoat (Depends-on): Likewise.
10836         * modules/mknod (Depends-on): Likewise.
10837         * modules/mkostemp (Depends-on): Likewise.
10838         * modules/mkostemps (Depends-on): Likewise.
10839         * modules/mkstemp (Depends-on): Likewise.
10840         * modules/mkstemps (Depends-on): Likewise.
10841         * modules/mktime (Depends-on): Likewise.
10842         * modules/nanosleep (Depends-on): Likewise.
10843         * modules/open (Depends-on): Likewise.
10844         * modules/openat (Depends-on): Likewise.
10845         * modules/perror (Depends-on): Likewise.
10846         * modules/poll (Depends-on): Likewise.
10847         * modules/popen (Depends-on): Likewise.
10848         * modules/posix_spawn (Depends-on): Likewise.
10849         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
10850         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
10851         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
10852         * modules/posix_spawnp (Depends-on): Likewise.
10853         * modules/pread (Depends-on): Likewise.
10854         * modules/printf-posix (Depends-on): Likewise.
10855         * modules/ptsname (Depends-on): Likewise.
10856         * modules/putenv (Depends-on): Likewise.
10857         * modules/pwrite (Depends-on): Likewise.
10858         * modules/readline (Depends-on): Likewise.
10859         * modules/readlink (Depends-on): Likewise.
10860         * modules/readlinkat (Depends-on): Likewise.
10861         * modules/recv (Depends-on): Likewise.
10862         * modules/recvfrom (Depends-on): Likewise.
10863         * modules/regex (Depends-on): Likewise.
10864         * modules/remove (Depends-on): Likewise.
10865         * modules/rename (Depends-on): Likewise.
10866         * modules/renameat (Depends-on): Likewise.
10867         * modules/rmdir (Depends-on): Likewise.
10868         * modules/round (Depends-on): Likewise.
10869         * modules/roundf (Depends-on): Likewise.
10870         * modules/roundl (Depends-on): Likewise.
10871         * modules/rpmatch (Depends-on): Likewise.
10872         * modules/select (Depends-on): Likewise.
10873         * modules/send (Depends-on): Likewise.
10874         * modules/sendto (Depends-on): Likewise.
10875         * modules/setenv (Depends-on): Likewise.
10876         * modules/setlocale (Depends-on): Likewise.
10877         * modules/setsockopt (Depends-on): Likewise.
10878         * modules/shutdown (Depends-on): Likewise.
10879         * modules/sigaction (Depends-on): Likewise.
10880         * modules/signbit (Depends-on): Likewise.
10881         * modules/sigprocmask (Depends-on): Likewise.
10882         * modules/sinl (Depends-on): Likewise.
10883         * modules/sleep (Depends-on): Likewise.
10884         * modules/snprintf (Depends-on): Likewise.
10885         * modules/snprintf-posix (Depends-on): Likewise.
10886         * modules/socket (Depends-on): Likewise.
10887         * modules/sprintf-posix (Depends-on): Likewise.
10888         * modules/sqrtl (Depends-on): Likewise.
10889         * modules/stat (Depends-on): Likewise.
10890         * modules/strchrnul (Depends-on): Likewise.
10891         * modules/strdup-posix (Depends-on): Likewise.
10892         * modules/strerror (Depends-on): Likewise.
10893         * modules/strerror_r-posix (Depends-on): Likewise.
10894         * modules/strndup (Depends-on): Likewise.
10895         * modules/strnlen (Depends-on): Likewise.
10896         * modules/strptime (Depends-on): Likewise.
10897         * modules/strsep (Depends-on): Likewise.
10898         * modules/strsignal (Depends-on): Likewise.
10899         * modules/strstr-simple (Depends-on): Likewise.
10900         * modules/strtod (Depends-on): Likewise.
10901         * modules/strtoimax (Depends-on): Likewise.
10902         * modules/strtok_r (Depends-on): Likewise.
10903         * modules/strtoumax (Depends-on): Likewise.
10904         * modules/symlink (Depends-on): Likewise.
10905         * modules/symlinkat (Depends-on): Likewise.
10906         * modules/tanl (Depends-on): Likewise.
10907         * modules/tcgetsid (Depends-on): Likewise.
10908         * modules/tmpfile (Depends-on): Likewise.
10909         * modules/trunc (Depends-on): Likewise.
10910         * modules/truncf (Depends-on): Likewise.
10911         * modules/truncl (Depends-on): Likewise.
10912         * modules/uname (Depends-on): Likewise.
10913         * modules/unlink (Depends-on): Likewise.
10914         * modules/unlockpt (Depends-on): Likewise.
10915         * modules/unsetenv (Depends-on): Likewise.
10916         * modules/usleep (Depends-on): Likewise.
10917         * modules/utimensat (Depends-on): Likewise.
10918         * modules/vasprintf (Depends-on): Likewise.
10919         * modules/vdprintf (Depends-on): Likewise.
10920         * modules/vdprintf-posix (Depends-on): Likewise.
10921         * modules/vfprintf-posix (Depends-on): Likewise.
10922         * modules/vprintf-posix (Depends-on): Likewise.
10923         * modules/vsnprintf (Depends-on): Likewise.
10924         * modules/vsnprintf-posix (Depends-on): Likewise.
10925         * modules/vsprintf-posix (Depends-on): Likewise.
10926         * modules/wcrtomb (Depends-on): Likewise.
10927         * modules/wcscasecmp (Depends-on): Likewise.
10928         * modules/wcscspn (Depends-on): Likewise.
10929         * modules/wcsdup (Depends-on): Likewise.
10930         * modules/wcsncasecmp (Depends-on): Likewise.
10931         * modules/wcsnrtombs (Depends-on): Likewise.
10932         * modules/wcspbrk (Depends-on): Likewise.
10933         * modules/wcsrtombs (Depends-on): Likewise.
10934         * modules/wcsspn (Depends-on): Likewise.
10935         * modules/wcsstr (Depends-on): Likewise.
10936         * modules/wcstok (Depends-on): Likewise.
10937         * modules/wcswidth (Depends-on): Likewise.
10938         * modules/wctob (Depends-on): Likewise.
10939         * modules/wctomb (Depends-on): Likewise.
10940         * modules/wctype (Depends-on): Likewise.
10941         * modules/wcwidth (Depends-on): Likewise.
10942         * modules/write (Depends-on): Likewise.
10943
10944 2011-05-03  Bruno Haible  <bruno@clisp.org>
10945
10946         Support for conditional dependencies.
10947         * doc/gnulib.texi (Module description): Document the syntax of
10948         conditional dependencies.
10949         * gnulib-tool: New option --conditional-dependencies.
10950         (func_usage): Document it.
10951         (cond_dependencies): New variable.
10952         (func_get_automake_snippet_conditional,
10953         func_get_automake_snippet_unconditional): New functions, extracted from
10954         func_get_automake_snippet.
10955         (func_get_automake_snippet): Use them.
10956         (sed_first_32_chars): New variable.
10957         (func_module_shellfunc_name): New function.
10958         (func_module_shellvar_name): New function.
10959         (func_module_conditional_name): New function.
10960         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
10961         func_cond_module_condition): New functions.
10962         (func_modules_transitive_closure): Add support for conditional
10963         dependencies.
10964         (func_emit_lib_Makefile_am): For a conditional module, enclose the
10965         conditional automake snippet in an automake conditional.
10966         (func_emit_autoconf_snippets): Emit shell functions that contain the
10967         code for conditional modules.
10968         (func_import, func_create_testdir): Update specification.
10969
10970 2011-05-03  Eric Blake  <eblake@redhat.com>
10971
10972         test-getaddrinfo: report error information
10973         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
10974
10975 2011-05-03  Jim Meyering  <meyering@redhat.com>
10976
10977         bootstrap: avoid build failure when $GZIP is set
10978         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
10979         program name.  If defined at all, it is supposed to list gzip options.
10980         Reported by Alan Curry in http://debbugs.gnu.org/8609
10981
10982 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
10983
10984         readme-release: new module with release instructions
10985         * modules/readme-release: New module.
10986         * top/README-release: New file, from coreutils, grep, diffutils.
10987         * MODULES.html.sh (Support for maintaining and releasing): Add it.
10988
10989 2011-05-02  Eric Blake  <eblake@redhat.com>
10990
10991         fflush: also replace fclose when fixing fflush
10992         * modules/fflush (Depends-on): Add fclose.
10993         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
10994         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
10995         memstreams with no backing fd.
10996         * doc/posix-functions/fclose.texi (fclose): Document the use of
10997         fflush module to fix the bug.
10998         * tests/test-fclose.c (main): Relax test when fclose is used in
10999         isolation.
11000
11001         fclose: add some tests
11002         * modules/fclose-tests: New test module.
11003         * tests/test-fclose.c: New file.
11004         * doc/posix-functions/fclose.texi (fclose): Document the bug.
11005
11006         fclose: reduced dependencies
11007         * modules/fclose (Depends-on): Switch from fflush/fseeko to
11008         simpler lseek.
11009         * lib/fclose.c (rpl_fclose): Likewise.
11010         Reported by Simon Josefsson.
11011
11012         exit: drop remaining clients
11013         * modules/argmatch (Depends-on): Replace exit with stdlib.
11014         * modules/copy-file (Depends-on): Likewise.
11015         * modules/execute (Depends-on): Likewise.
11016         * modules/exitfail (Depends-on): Likewise.
11017         * modules/obstack (Depends-on): Likewise.
11018         * modules/pagealign_alloc (Depends-on): Likewise.
11019         * modules/pipe-filter-gi (Depends-on): Likewise.
11020         * modules/pipe-filter-ii (Depends-on): Likewise.
11021         * modules/savewd (Depends-on): Likewise.
11022         * modules/spawn-pipe (Depends-on): Likewise.
11023         * modules/wait-process (Depends-on): Likewise.
11024         * modules/xsetenv (Depends-on): Likewise.
11025         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
11026         * modules/git-merge-changelog (Depends-on): Likewise.
11027         * modules/long-options (Depends-on): Likewise.
11028         * modules/pt_chown (Depends-on): Likewise.
11029         * modules/sysexits (Depends-on): Likewise.
11030
11031         freading: relax license from LGPLv3+ to LGPLv2+
11032         * modules/freading (License): Relax LGPL version.
11033
11034 2011-05-02  Bruno Haible  <bruno@clisp.org>
11035
11036         fchdir: Remove unused dependencies.
11037         * modules/fchdir (Depends-on): Remove include_next.
11038
11039 2011-05-02  Bruno Haible  <bruno@clisp.org>
11040
11041         gnulib-tool: Refactor.
11042         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
11043         from func_emit_autoconf_snippets.
11044         (func_emit_autoconf_snippets): Use it.
11045
11046 2011-05-02  Simon Josefsson  <simon@josefsson.org>
11047
11048         * NEWS: Document removal of 'exit'.
11049         * modules/exit: Remove file.
11050
11051 2011-05-01  Bruno Haible  <bruno@clisp.org>
11052
11053         Update DEPENDENCIES.
11054         * DEPENDENCIES (gettext): Recommend the newest release.
11055         Reported by Simon Josefsson.
11056
11057 2011-05-01  Bruno Haible  <bruno@clisp.org>
11058
11059         gnulib-tool: Reduce code duplication.
11060         * gnulib-tool (func_emit_autoconf_snippets): New function.
11061         (func_import, func_create_testdir): Use it.
11062
11063 2011-04-30  Eric Blake  <eblake@redhat.com>
11064
11065         fclose: don't fail on non-seekable input stream
11066         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
11067         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
11068         since fflush is allowed to fail in that case.
11069
11070 2011-04-30  Bruno Haible  <bruno@clisp.org>
11071
11072         dup3: cleanup
11073         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
11074
11075 2011-04-30  Bruno Haible  <bruno@clisp.org>
11076
11077         netdb: Make it work in C++ mode.
11078         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
11079         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
11080         module.
11081         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
11082         gl_MODULE_INDICATOR_FOR_TESTS.
11083         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
11084         * modules/netdb-c++-tests: New file.
11085         * tests/test-netdb-c++.cc: New file.
11086
11087 2011-04-30  Bruno Haible  <bruno@clisp.org>
11088
11089         New modules 'vfscanf', 'vscanf'.
11090         * modules/vfscanf: New file.
11091         * modules/vscanf: New file.
11092         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
11093         here.
11094         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
11095         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
11096
11097 2011-04-30  Bruno Haible  <bruno@clisp.org>
11098
11099         passfd: Add comments.
11100         * lib/passfd.c: Add comments about platforms.
11101
11102 2011-04-30  Bruno Haible  <bruno@clisp.org>
11103
11104         sys_uio: Make <sys/uio.h> self-contained.
11105         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
11106         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
11107
11108 2011-04-30  Bruno Haible  <bruno@clisp.org>
11109
11110         sys_socket: Ensure 'struct iovec' definition.
11111         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
11112         <sys/socket.h>.
11113         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
11114
11115 2011-04-30  Bruno Haible  <bruno@clisp.org>
11116
11117         sys_uio: Protect definition of 'struct iovec'.
11118         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
11119         it as a C struct.
11120
11121 2011-04-30  Bruno Haible  <bruno@clisp.org>
11122
11123         manywarnings: fix indentation
11124         * m4/manywarnings.m4: Indent by 2 spaces consistently.
11125
11126 2011-04-30  Pádraig Brady <P@draigBrady.com>
11127
11128         manywarnings: add -Wno-missing-field-initializers if needed.
11129         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
11130         option if it's needed to allow initialization with { 0, }
11131
11132 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
11133
11134         announce-gen: cosmetic improvement
11135         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
11136
11137 2011-04-29  Jim Meyering  <meyering@redhat.com>
11138
11139         vc-list-files: indent with spaces, not TABs
11140         * build-aux/vc-list-files: Convert leading TABs to spaces,
11141         to match the style of most other files in gnulib.
11142
11143         announce-gen: indent with spaces, not TABs
11144         * build-aux/announce-gen: Convert all TABs to spaces, to match
11145         the style of most other files in gnulib.
11146
11147 2011-04-29  Eric Blake  <eblake@redhat.com>
11148
11149         quotearg: avoid uninitialized variable use
11150         * lib/quotearg.c (quoting_options_from_style): Initialize
11151         remaining fields, and ensure that custom styles are only used via
11152         quoting_options rather than quoting_style.
11153
11154 2011-04-29  Jim Meyering  <meyering@redhat.com>
11155
11156         maint.mk: remove unused VC-tag variable
11157         * top/maint.mk (VC-tag): Remove unused variable.
11158
11159 2011-04-29  Bruno Haible  <bruno@clisp.org>
11160
11161         netdb: fix gai_strerror replacements
11162         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
11163         * modules/netdb: Substitute it.
11164
11165 2011-04-29  Jim Meyering  <meyering@redhat.com>
11166
11167         test-getcwd.c: avoid new set-but-not-used warning
11168         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
11169         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
11170         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
11171         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
11172
11173         test-hash.c: avoid a new shadowing warning
11174         * tests/test-hash.c (main): Don't shadow "dup".
11175
11176 2011-04-28  Eric Blake  <eblake@redhat.com>
11177
11178         getaddrinfo: fix gai_strerror signature
11179         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
11180         and work around mingw with UNICODE defined.
11181         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
11182         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
11183         * modules/netdb (Makefile.am): Substitute it.
11184         * lib/netdb.in.h (gai_strerror): Declare replacement.
11185         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
11186         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
11187         the fix.
11188
11189         getsockopt: avoid compiler warning
11190         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
11191         Reported by Matthias Bolte.
11192
11193         tests: drop unused link dependency
11194         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
11195         * modules/dirent-safer-tests (Makefile.am): Likewise.
11196         * modules/fdopendir-tests (Makefile.am): Likewise.
11197         * modules/mkfifoat-tests (Makefile.am): Likewise.
11198         * modules/openat-safer-tests (Makefile.am): Likewise.
11199         * modules/openat-tests (Makefile.am): Likewise.
11200         * modules/readlinkat-tests (Makefile.am): Likewise.
11201         * modules/symlinkat-tests (Makefile.am): Likewise.
11202         * modules/linkat-tests (Makefile.am): Likewise.
11203         (Depends-on): Switch to filenamecat-lgpl.
11204         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
11205         LIBINTL.
11206         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
11207         * tests/test-linkat.c (main): Don't require xalloc.
11208
11209         hash, mgetgroups: drop xalloc dependency
11210         * lib/hash.c (includes): Adjust includes.
11211         * lib/mgetgroups.c (includes): Likewise.
11212         (xgetgroups): Move...
11213         * lib/xgetgroups.c: ...to new file.
11214         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
11215         * modules/xgetgroups: New file, split from...
11216         * modules/mgetgroups: ...here.
11217         (Depends-on): Add xalloc-oversized.
11218         * modules/hash (Depends-on): Likewise.
11219         * modules/hash-tests (Depends-on): Drop xalloc.
11220         (test_hash_LDADD): Drop unused library.
11221         * tests/test-hash.c (main): Break xalloc dependency.
11222         (includes): Drop unused include.
11223
11224         xalloc-oversized: new module
11225         * modules/xalloc-oversized: New module.
11226         * modules/xalloc (Depends-on): Add it.
11227         * lib/xalloc.h (xalloc_oversized): Move...
11228         * lib/xalloc-oversized.h: ...into new file.
11229
11230         utimecmp: drop dependency on xmalloc
11231         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
11232         due to memory pressure.
11233         * modules/utimecmp (Depends-on): Drop xalloc.
11234
11235 2011-04-27  Eric Blake  <eblake@redhat.com>
11236
11237         getcwd: fix mingw bugs
11238         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
11239         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
11240         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
11241
11242 2011-04-27  Bruno Haible  <bruno@clisp.org>
11243
11244         mkstemps: Ensure declaration on MacOS X 10.5.
11245         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
11246         * doc/glibc-functions/mkstemps.texi: Document header file problem on
11247         MacOS X.
11248
11249 2011-04-27  Bruno Haible  <bruno@clisp.org>
11250
11251         mkstemp: More documentation.
11252         * doc/posix-functions/mkstemp.texi: Document header file problem on
11253         MacOS X.
11254
11255 2011-04-27  Bruno Haible  <bruno@clisp.org>
11256
11257         mkstemp: Tweak configure message when cross-compiling.
11258         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
11259         result as a guess.
11260
11261 2011-04-27  Bruno Haible  <bruno@clisp.org>
11262
11263         clean-temp: Clarify what it does.
11264         * lib/clean-temp.h: Add more comments.
11265         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
11266         module.
11267         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
11268         * doc/glibc-functions/mkstemps.texi: Likewise.
11269         * doc/glibc-functions/mkostemps.texi: Likewise.
11270
11271 2011-04-27  Eric Blake  <eblake@redhat.com>
11272
11273         fchdir: avoid extra chdir and fix test
11274         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
11275         getcwd-lgpl.
11276         * lib/fchdir.c (get_name): Any absolute name will do; it does not
11277         have to be canonical.
11278         (canonicalize_file_name): Drop unused macro.
11279         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
11280
11281         filenamecat-lgpl: fix licence
11282         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
11283         when it was first created.
11284
11285         linkat, renameat: add missing dependency
11286         * modules/linkat (Depends-on): Require getcwd-lgpl.
11287         * modules/renameat (Depends-on): Likewise.
11288
11289         tests: reduce dependencies
11290         * tests/test-linkat.c (main): Use lighter-weight getcwd.
11291         * tests/test-renameat.c (main): Likewise.
11292         * modules/linkat-tests (Depends-on): Relax dependency.
11293         * modules/renameat-tests (Depends-on): Likewise.
11294         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
11295         dependency explicit.
11296
11297         save-cwd: reduce default dependency
11298         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
11299         * lib/save-cwd.c: Update comments.
11300         * NEWS: Document the semantic change.
11301
11302         getcwd: enhance tests
11303         * tests/test-getcwd-lgpl.c: New file, taken from...
11304         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
11305         repeat long path stress tests from m4 probe.
11306         * modules/getcwd-lgpl-tests: New module.
11307         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
11308         * m4/getcwd-abort-bug.m4: Update comment.
11309         * m4/getcwd-path-max.m4: Likewise.
11310
11311         getcwd-lgpl: new module
11312         * modules/getcwd-lgpl: New module.
11313         * lib/getcwd-lgpl.c: New file.
11314         * doc/posix-functions/getcwd.texi (getcwd): Document it.
11315         * MODULES.html.sh (lacking POSIX:2008): Likewise.
11316         * modules/getcwd (configure.ac): Set C witness.
11317         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
11318
11319         getcwd: tweak comments
11320         * m4/getcwd-abort-bug.m4: Fix comments.
11321         * m4/getcwd-path-max.m4: Likewise.
11322         * m4/getcwd.m4: Likewise.
11323
11324 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
11325         and Eric Blake  <eblake@redhat.com>
11326
11327         mkstemp: replace if system version uses wrong permissions
11328         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
11329         read/write mode bits set in file created by mkstemp.
11330         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
11331
11332 2011-04-27  Eric Blake  <eblake@redhat.com>
11333
11334         passfd: avoid compiler warning
11335         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
11336         Reported by Laine Stump.
11337
11338 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
11339
11340         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
11341         required by the NetBSD (and perhaps other 4.4BSD derived) join.
11342
11343 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
11344         and Eric Blake  <eblake@redhat.com>
11345
11346         mkstemp: mention clean-temp module
11347         * lib/mkstemp.c: Add comment.
11348         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
11349
11350 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
11351
11352         inttypes: also provide default values for 32-bit tests
11353         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
11354         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
11355
11356 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
11357
11358         strtoumax: remove dependency on strtoimax
11359         This is like the strtoull change of yesterday.
11360         * modules/strtoumax (Files): Add lib/strtoimax.c.
11361         (Depends-on): Remove strtoimax and add verify.
11362
11363         inttypes-incomplete: new module
11364         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
11365         all but the PRI* and SCN* parts of gl_INTTYPES_H.
11366         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
11367         of gl_INTTYPES_H.
11368         (gl_INTTYPES_H): Rewrite in terms of these new macros.
11369         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
11370         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
11371         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
11372         * modules/strtoumax, modules/xstrtol (Depends-on):
11373         Depend on inttypes-incomplete, not inttypes.
11374         * modules/inttypes-incomplete: New module, containing the contents
11375         of the old modules/inttypes module, except that the Files: section
11376         omits m4/inttypes-pri.m4, and the configure.ac section invokes
11377         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
11378         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
11379         (Depends-on): Depend only on inttypes-incomplete.
11380         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
11381
11382         inttypes: omit now-redundant strtoimax and strtoumax work
11383         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
11384         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
11385
11386         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
11387         This supports apps that need pointers to strtoimax and strtoumax,
11388         and ports to HP-UX 11.00 64.bit, which has macros that expand to
11389         nonexistent functions.  See
11390         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
11391         et seq.
11392         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
11393         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
11394         a macro.
11395         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
11396
11397 2011-04-25  Simon Josefsson  <simon@josefsson.org>
11398
11399         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
11400
11401 2011-04-25  Bruno Haible  <bruno@clisp.org>
11402
11403         strtol, strtoul: Mark modules as obsolete.
11404         * modules/strtol (Status, Notice): New sections.
11405         * modules/strtoul (Status, Notice): New sections.
11406
11407 2011-04-25  Bruno Haible  <bruno@clisp.org>
11408
11409         strtod: Remove check for strtod, unless supporting old platforms.
11410         * modules/strtod-obsolete: New file.
11411         * m4/strtod-obsolete.m4: New file.
11412         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
11413         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
11414         * modules/strtod (Depends-on): Add strtod-obsolete.
11415         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
11416
11417 2011-04-25  Bruno Haible  <bruno@clisp.org>
11418
11419         strcase: Make module obsolete.
11420         * modules/strcase (Status, Notice): New sections.
11421
11422 2011-04-25  Bruno Haible  <bruno@clisp.org>
11423
11424         dup2: Remove check for dup2, unless supporting old obsolete platforms.
11425         * modules/dup2-obsolete: New file.
11426         * m4/dup2-obsolete.m4: New file.
11427         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
11428         gl_FUNC_DUP2_OBSOLETE is not also defined.
11429         * modules/dup2 (Depends-on): Add dup2-obsolete.
11430         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
11431
11432 2011-04-25  Bruno Haible  <bruno@clisp.org>
11433
11434         strnlen: Avoid memchr related link error on old obsolete platforms.
11435         * modules/memchr-obsolete: New file.
11436         * m4/memchr-obsolete.m4: New file.
11437         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
11438         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
11439         * modules/memchr (Depends-on): Add memchr-obsolete.
11440         * modules/strnlen (Depends-on): Likewise.
11441         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
11442
11443 2011-04-25  Jim Meyering  <meyering@redhat.com>
11444
11445         maint.mk: makefile_at_at_check extend and clean up
11446         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
11447         in addition to */Makefile.am.
11448         Exempt legitimate uses of @VAR@ notation, e.g.,
11449         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
11450         Remove obsolete coreutils-specific comment.
11451         Prompted by discussion here:
11452         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
11453
11454 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
11455
11456         strtoul: remove dependency on strtol
11457         This is so that 'configure' need not check for strtol merely because
11458         the application needs strtoul.
11459         * modules/strtoul (Files): Add lib/strtol.c.
11460         (Depends-on): Remove strtol.
11461
11462         strtoull: remove dependency on strtoul
11463         This is like the strtoll change.
11464         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
11465         (Depends-on): Remove strtoul.
11466
11467         strtoll: remove dependency on strtol
11468         This is so that 'configure' need not check for strtol merely because
11469         the application needs strtoll.
11470         * modules/strtoll (Files): Add lib/strtol.c.
11471         (Depends-on): Remove strtol.
11472
11473 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
11474
11475         inttypes: Move some configure check to module 'imaxdiv'.
11476         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
11477         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
11478         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
11479
11480 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
11481
11482         inttypes: Move some configure check to module 'imaxabs'.
11483         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
11484         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
11485         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
11486
11487 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
11488
11489         inttypes: Remove configure tests that are not needed since 2009-12-31.
11490         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
11491         gl_cv_header_working_inttypes_h.
11492
11493 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
11494
11495         * modules/strnlen (Depends-on): Remove memchr.
11496         The strnlen implementation doesn't need the memchr module's fixes; see
11497         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
11498
11499         strtol: remove dependency on wchar
11500         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
11501         * modules/strtol (Depends-on): Remove wchar.
11502
11503 2011-04-21  Eric Blake  <eblake@redhat.com>
11504
11505         passfd: fix test regression on Linux
11506         * modules/passfd-tests (configure.ac): Correct socketpair check.
11507
11508         passfd: speed up configure and drop unused code
11509         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
11510         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
11511         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
11512         Instead of probing at configure for unix_scm_rights_bsd44_way,
11513         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
11514         check to a struct member probe.
11515         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
11516         (sendfd, recvfd): Update preprocessor checks.
11517         * modules/passfd (Files): Reflect rename, and drop unused file.
11518         (Depends-on): Drop unused dependency.
11519
11520         passfd: allow compilation on mingw
11521         * modules/sys_socket (Depends-on): Add sys_uio.
11522         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
11523         iovec and a minimal struct msghdr.
11524         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
11525         * tests/test-sys_socket.c (main): Enhance test.
11526         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
11527         guaranteed to provide what we need.
11528         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
11529         * modules/passfd-tests (Depends-on): Add sys_wait.
11530         * tests/test-passfd.c (main): Skip test on mingw, for now.
11531         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
11532         partial 'struct msghdr' implementation.
11533
11534         sys_uio: new module
11535         * modules/sys_uio: New module.
11536         * modules/sys_uio-tests: Likewise.
11537         * lib/sys_uio.in.h: New file.
11538         * m4/sys_uio_h.m4: Likewise.
11539         * tests/test-sys_uio.c: Likewise.
11540         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
11541         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
11542
11543 2011-04-20  Jim Meyering  <meyering@redhat.com>
11544
11545         useless-if-before-free: avoid false-positive
11546         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
11547         disjunct so that it too requires a terminating ";".  Without that,
11548         this script would identify as useless one statement from gcc that
11549         was not:
11550           if (aligned_ptr)
11551             free (((void **) aligned_ptr) [-1]);
11552
11553 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
11554
11555         doc: update users.txt.
11556         * users.txt: Add barcode.
11557
11558 2011-04-19  Bruno Haible  <bruno@clisp.org>
11559
11560         ioctl: Remove link dependency on native Windows.
11561         * lib/fd-hook.h: Renamed from lib/close-hook.h.
11562         (gl_close_fn, gl_ioctl_fn): New types.
11563         (struct fd_hook): Renamed from struct close_hook. Change type of
11564         private_close_fn field. Add private_ioctl_fn field.
11565         (close_hook_fn): Add parameter for primary close method.
11566         (execute_close_hooks, execute_all_close_hooks): Likewise.
11567         (ioctl_hook_fn): New type.
11568         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
11569         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
11570         argument.
11571         (unregister_fd_hook): Renamed from unregister_close_hook.
11572         * lib/fd-hook.c: Renamed from lib/close-hook.c.
11573         Don't include <unistd.h>.
11574         (close): Remove undef.
11575         (anchor): Update.
11576         (execute_close_hooks): Add argument for primary close method.
11577         (execute_all_close_hooks): Likewise.
11578         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
11579         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
11580         argument. Allow each argument to be NULL.
11581         (unregister_fd_hook): Renamed from unregister_close_hook.
11582         * lib/close.c (rpl_close): Pass 'close' function pointer to
11583         execute_all_close_hooks.
11584         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
11585         (primary_ioctl): New function.
11586         (ioctl): Don't call ioctlsocket here. Instead, call
11587         execute_all_ioctl_hooks.
11588         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
11589         close method.
11590         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
11591         (fd_sockets_hook): Renamed from close_sockets_hook.
11592         (gl_sockets_startup, gl_sockets_cleanup): Update.
11593         * modules/fd-hook: Renamed from modules/close-hook. Update.
11594         * modules/close (Depends-on): Add fd-hook, remove close-hook.
11595         * modules/sockets (Depends-on): Likewise.
11596         * modules/ioctl (Depends-on): Add fd-hook.
11597         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
11598         GNULIB_SOCKET.
11599
11600 2011-04-19  Bruno Haible  <bruno@clisp.org>
11601
11602         Move the support of O_NONBLOCK in open() to the 'open' module.
11603         * modules/nonblocking (Depends-on): Remove 'open'.
11604         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
11605         gl_cv_have_open_O_NONBLOCK.
11606         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
11607         O_NONBLOCK support.
11608         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
11609
11610 2011-04-17  Bruno Haible  <bruno@clisp.org>
11611
11612         pipe2: Simplify code.
11613         * lib/pipe2.c (pipe2): Reduce code duplication.
11614
11615 2011-04-17  Bruno Haible  <bruno@clisp.org>
11616
11617         nonblocking: Add comment.
11618         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
11619
11620 2011-04-17  Bruno Haible  <bruno@clisp.org>
11621
11622         nonblocking: Add tests for sockets.
11623         * tests/test-nonblocking-socket.sh: New file.
11624         * tests/test-nonblocking-socket-main.c: New file.
11625         * tests/test-nonblocking-socket-child.c: New file.
11626         * tests/test-nonblocking-socket.h: New file.
11627         * tests/socket-server.h: New file.
11628         * tests/socket-client.h: New file.
11629         * modules/nonblocking-socket-tests: New file.
11630         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
11631
11632 2011-04-17  Bruno Haible  <bruno@clisp.org>
11633
11634         nonblocking: Add tests for pipes.
11635         * tests/test-nonblocking-pipe.sh: New file.
11636         * tests/test-nonblocking-pipe-main.c: New file.
11637         * tests/test-nonblocking-pipe-child.c: New file.
11638         * tests/test-nonblocking-pipe.h: New file.
11639         * tests/test-nonblocking-writer.h: New file.
11640         * tests/test-nonblocking-reader.h: New file.
11641         * tests/test-nonblocking-misc.h: New file.
11642         * modules/nonblocking-pipe-tests: New file.
11643         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
11644
11645 2011-04-16  Bruno Haible  <bruno@clisp.org>
11646
11647         gettext: Clarify the needed programmer actions.
11648         * modules/gettext (Notice): New field.
11649         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
11650
11651 2011-04-16  Bruno Haible  <bruno@clisp.org>
11652
11653         strchrnul: Tweak last commit.
11654         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
11655         bug.
11656         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
11657         as in _GL_FUNCDECL_SYS.
11658         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
11659         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
11660
11661 2011-04-15  Eric Blake  <eblake@redhat.com>
11662
11663         strchrnul: work around cygwin bug
11664         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
11665         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
11666         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
11667         * modules/string (Makefile.am): Substitute it.
11668         * lib/string.in.h (strchrnul): Use it.
11669
11670 2011-04-15  Bruno Haible  <bruno@clisp.org>
11671
11672         Don't require lib/stdio-write.c when only module 'stdio' is used.
11673         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
11674         invocation.
11675         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
11676
11677 2011-04-14  Bruno Haible  <bruno@clisp.org>
11678
11679         Support non-blocking pipe I/O in read() on native Windows.
11680         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
11681         (read): New declaration.
11682         * lib/read.c: New file.
11683         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
11684         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
11685         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
11686         vscanf): New declarations.
11687         * lib/stdio-read.c: New file.
11688         * m4/read.m4: New file.
11689         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
11690         REPLACE_READ.
11691         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
11692         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
11693         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
11694         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
11695         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
11696         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
11697         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
11698         * modules/read: New file.
11699         * modules/nonblocking (Files): Add lib/stdio-read.c.
11700         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
11701         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
11702         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
11703         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
11704         * modules/pread (Depends-on): Add read.
11705         * modules/safe-read (Depends-on): Likewise.
11706         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
11707         gets, scanf, vfscanf, vscanf): Verify signatures.
11708         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
11709         problem with non-blocking pipes.
11710         * doc/posix-functions/fgetc.texi: Likewise.
11711         * doc/posix-functions/fgets.texi: Likewise.
11712         * doc/posix-functions/fread.texi: Likewise.
11713         * doc/posix-functions/fscanf.texi: Likewise.
11714         * doc/posix-functions/getc.texi: Likewise.
11715         * doc/posix-functions/getchar.texi: Likewise.
11716         * doc/posix-functions/gets.texi: Likewise.
11717         * doc/posix-functions/scanf.texi: Likewise.
11718         * doc/posix-functions/vfscanf.texi: Likewise.
11719         * doc/posix-functions/vscanf.texi: Likewise.
11720
11721 2011-04-14  Bruno Haible  <bruno@clisp.org>
11722
11723         Support non-blocking pipe I/O in write() on native Windows.
11724         * lib/write.c (rpl_write): Split a write request that failed merely
11725         because the byte count was larger than the pipe buffer's size.
11726         * doc/posix-functions/write.texi: Mention the problem with large byte
11727         counts.
11728
11729 2011-04-14  Bruno Haible  <bruno@clisp.org>
11730
11731         wchar: Ensure that wchar_t gets defined on uClibc.
11732         * lib/wchar.in.h: On uClibc, include <stddef.h>.
11733         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
11734
11735 2011-04-13  Bruno Haible  <bruno@clisp.org>
11736
11737         safe-write, full-read: Avoid unnecessary compilation units.
11738         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
11739         (Depends-on): Remove safe-read. Add ssize_t.
11740         * modules/full-read (Files): Add lib/full-write.c.
11741         (Depends-on): Add full-write.
11742
11743 2011-04-13  Bruno Haible  <bruno@clisp.org>
11744
11745         Support non-blocking pipe I/O and SIGPIPE in pwrite().
11746         * modules/pwrite (Depends-on): Add 'write'.
11747
11748 2011-04-13  Bruno Haible  <bruno@clisp.org>
11749
11750         Support non-blocking pipe I/O in write() on native Windows.
11751         * lib/unistd.in.h (write): Enable replacement also if
11752         GNULIB_UNISTD_H_NONBLOCKING is 1.
11753         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
11754         (rpl_write): When failing to write on a non-blocking pipe, change
11755         errno from ENOSPC to EAGAIN.
11756         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
11757         putchar, puts, vfprintf, vprintf): Enable replacement also if
11758         GNULIB_STDIO_H_NONBLOCKING is 1.
11759         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
11760         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
11761         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
11762         CALL_WITH_SIGPIPE_EMULATION.
11763         (CALL_WITH_SIGPIPE_EMULATION): Use them.
11764         * m4/nonblocking.m4: New file.
11765         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
11766         for non-blocking I/O support.
11767         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
11768         GNULIB_UNISTD_H_NONBLOCKING.
11769         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
11770         required for non-blocking I/O support.
11771         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
11772         * modules/nonblocking (Files): Add m4/nonblocking.m4,
11773         lib/stdio-write.c, m4/asm-underscore.m4.
11774         (Depends-on): Add stdio, unistd.
11775         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
11776         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
11777         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
11778         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
11779         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
11780         problem with non-blocking pipes.
11781         * doc/posix-functions/fputc.texi: Likewise.
11782         * doc/posix-functions/fputs.texi: Likewise.
11783         * doc/posix-functions/fwrite.texi: Likewise.
11784         * doc/posix-functions/printf.texi: Likewise.
11785         * doc/posix-functions/putc.texi: Likewise.
11786         * doc/posix-functions/putchar.texi: Likewise.
11787         * doc/posix-functions/puts.texi: Likewise.
11788         * doc/posix-functions/vfprintf.texi: Likewise.
11789         * doc/posix-functions/vprintf.texi: Likewise.
11790         * doc/posix-functions/write.texi: Likewise.
11791
11792 2011-04-10  Jim Meyering  <meyering@redhat.com>
11793
11794         maint.mk: prohibit doubled words
11795         Detect them also when they're separated by a newline.
11796         There are 3 ways to customize it:
11797           - disable the test on a per file basis, as usual with rules using
11798             $(VC_LIST_EXCEPT)
11799           - replace the default doubled-word-selecting regexp (affects all files)
11800           - ignore a particular file-vs-doubled-word match
11801         I nearly used that last one to ignore the "is is" match in
11802         coreutils' NEWS file, since the text was "ls -is is ..."
11803         To do that, I would have added this line to cfg.mk:
11804           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
11805         but it would have ignored any "is is" match in NEWS.
11806         Low probability, but still...
11807         Instead, I changed the text, slightly:
11808           -  ls -is is now consistent with ls -lis in ignoring values returned
11809           +  "ls -is" is now consistent with ls -lis in ignoring values returned
11810         * top/maint.mk (prohibit_double_word_RE_): Provide default.
11811         (prohibit_doubled_word_): Define.
11812         (sc_prohibit_doubled_word): New rule.
11813         (sc_prohibit_the_the): Remove.  Subsumed by the above.
11814
11815 2011-04-10  Jim Meyering  <meyering@redhat.com>
11816
11817         maint: fix doubled-word typo in comment
11818         * m4/gethostname.m4: s/is is/it is/
11819         * m4/getdomainname.m4: Likewise.
11820
11821 2011-04-10  Jim Meyering  <meyering@redhat.com>
11822
11823         maint: remove doubled word: s/it it/it/
11824         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
11825
11826 2011-04-10  Jim Meyering  <meyering@redhat.com>
11827
11828         maint.mk: remove useless semicolon and backslash
11829         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
11830         semicolon and backslash.
11831
11832 2011-04-10  Bruno Haible  <bruno@clisp.org>
11833
11834         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
11835         * modules/stdint-tests (Depends-on): Add wchar.
11836
11837 2011-04-10  Jim Meyering  <meyering@redhat.com>
11838
11839         maint: remove doubled words in comments, e.g., s/a a/a/
11840         * lib/strptime.c (day_of_the_week): s/the the/the/
11841         * tests/test-chown.h (test_chown): s/a a/a/
11842
11843         test-chown.h: correct a cast
11844         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
11845         when the destination is a stat.st_gid.
11846
11847 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
11848
11849         getaddrinfo: Fix test for sa_len member.
11850         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
11851         include <sys/types.h> before <sys/socket.h>.
11852
11853 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
11854
11855         maint: change "can not" to "cannot"
11856         * doc/posix-functions/iconv.texi (iconv): This one crossed line
11857         boundaries.
11858
11859 2011-04-09  Jim Meyering  <meyering@redhat.com>
11860
11861         maint: change "a a" to "a"
11862         * tests/test-lchown.h (test_lchown): s/a a/a/
11863
11864         maint.mk: prohibit \<the the\>
11865         * top/maint.mk (sc_prohibit_the_the): New rule.
11866
11867         maint: fix "the the" in comment
11868         * lib/count-one-bits.h: s/the the/the/
11869
11870         maint: change "can not" to "cannot"
11871         But do not change the occurrences in maintain.texi or in
11872         build-aux/po/Makefile.in.in, which I presume comes from gettext.
11873         * doc/gnulib-tool.texi: s/can not/cannot/
11874         * doc/posix-functions/accept.texi (accept): Likewise.
11875         * doc/posix-functions/socket.texi (socket): Likewise.
11876         * lib/mbrtowc.c: Likewise.
11877
11878         maint.mk: prohibit use of "can not"
11879         * top/maint.mk (sc_prohibit_can_not): New rule.
11880         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
11881
11882 2011-04-09  Bruno Haible  <bruno@clisp.org>
11883
11884         careadlinkat: Guard against misuse of careadlinkatcwd.
11885         * lib/careadlinkat.c: Include <stdlib.h>.
11886         (careadlinkatcwd): Check that the fd argument is as expected.
11887
11888 2011-04-09  Bruno Haible  <bruno@clisp.org>
11889
11890         careadlinkat: Use common coding style.
11891         * lib/careadlinkat.c: Move gnulib includes after system includes.
11892
11893 2011-04-09  Bruno Haible  <bruno@clisp.org>
11894
11895         careadlinkat: Clarify specification.
11896         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
11897         (careadlinkatcwd): Add comment.
11898         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
11899
11900 2011-04-09  Bruno Haible  <bruno@clisp.org>
11901
11902         areadlinkat: Avoid link error on many platforms.
11903         * modules/areadlinkat (Depends-on): Add areadlink.
11904
11905 2011-04-09  Bruno Haible  <bruno@clisp.org>
11906
11907         allocator, careadlinkat: Fix double-inclusion guard.
11908         * lib/allocator.h: Fix double-inclusion guard.
11909         * lib/careadlinkat.h: Likewise.
11910
11911 2011-04-09  Bruno Haible  <bruno@clisp.org>
11912
11913         relocatable-prog-wrapper: Update after module 'areadlink' changed.
11914         * lib/relocwrapper.c: Update dependencies hierarchy.
11915         * build-aux/install-reloc: Update list of files to be compiled.
11916         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
11917         lib/allocator.[hc].
11918
11919 2011-04-08  Eric Blake  <eblake@redhat.com>
11920
11921         strftime: silence gnulib-tool warning
11922         * modules/strftime-tests (Depends-on): Drop automatic dependency.
11923
11924 2011-04-08  Bruno Haible  <bruno@clisp.org>
11925
11926         verify: Fix syntax error with GCC 4.6 in C++ mode.
11927         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
11928         (HAVE_STATIC_ASSERT): New macro.
11929         (verify_true, verify): Use 'static_assert' if it is supported and
11930         '_Static_assert' is not supported.
11931
11932 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
11933
11934         allocator: New module.
11935         * modules/allocator, lib/allocator.c: New files.
11936         * lib/allocator.h (stdlib_allocator): New decl.
11937         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
11938         Remove.  Do not include <stdlib.h>.
11939         (careadlinkat): Use stdlib_allocator instead of rolling our own.
11940         * modules/careadlinkat (Files): Remove lib/allocator.h.
11941         (Depends-on): Add allocator.
11942
11943         stdlib: let modules use system malloc, realloc
11944         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
11945         if !_GL_USE_STDLIB_ALLOC.
11946         (malloc, realloc): Limit this change to a smaller scope.
11947
11948         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
11949         (malloc, realloc): Don't #undef; no longer needed.
11950         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
11951         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
11952         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
11953         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
11954         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
11955         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
11956         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
11957         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
11958
11959         careadlinkat: rename members to avoid problem
11960         * lib/allocator.h (struct allocator): Rename members from
11961         malloc/realloc to allocate/reallocate, to avoid problems if malloc
11962         and realloc are #define'd.  Reported by Eric Blake in
11963         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
11964         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
11965
11966 2011-04-08  Eric Blake  <eblake@redhat.com>
11967
11968         nonblocking: reduce dependency
11969         * tests/test-nonblocking.c: Only test sockets when in use.
11970         * modules/nonblocking-tests (Depends-on): Drop socket.
11971         (Makefile.am): Link even if sockets are not present.
11972         * modules/pipe2-tests (Makefile.am): Likewise.
11973         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
11974
11975         pipe2: fix O_NONBLOCK support on mingw
11976         * modules/pipe2 (Depends-on): Add nonblocking.
11977         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
11978         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
11979         * tests/test-nonblocking.c (main): Likewise.
11980         * modules/pipe2-tests (Makefile.am): Avoid link failure.
11981
11982         fcntl-h: fix O_ACCMODE on cygwin
11983         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
11984         * lib/fcntl.in.h (O_ACCMODE): Fix it.
11985
11986         pipe-filter: drop O_NONBLOCK workarounds
11987         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
11988         * modules/pipe-filter-ii (Depends-on): Likewise.
11989         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
11990
11991         nonblocking: provide O_NONBLOCK for mingw
11992         * modules/nonblocking (Depends-on): Add open.
11993         (configure.ac): Set new witness macro.
11994         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
11995         * modules/fcntl-h (Makefile.am): Substitute it.
11996         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
11997         nonblocking module is in use.
11998         * lib/nonblocking.c: Adjust portability test.
11999         * lib/open.c (open): Don't let native open see gnulib flag.
12000         * tests/test-fcntl-h.c (main): Enhance test.
12001         * tests/test-open.h (test_open): Likewise.
12002         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
12003
12004         careadlinkat: fix compilation error on mingw
12005         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
12006         within struct allocator.
12007
12008 2011-04-06  Eric Blake  <eblake@redhat.com>
12009
12010         binary-io: relicense under LGPLv2+
12011         * modules/binary-io (License): Relax to LGPLv2+.
12012         Requested for libvirt, and required by pipe2.
12013
12014 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
12015
12016         verify: use _Static_assert if available
12017         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
12018         (verify_true, verify): Use it if available.  This generates better
12019         diagnostics with GCC 4.6.0 and later.
12020
12021 2011-04-05  Bruno Haible  <bruno@clisp.org>
12022
12023         Remove leftover generated .h files after config.status changed.
12024
12025         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
12026         GL_GENERATE_ALLOCA_H.
12027         * modules/alloca-opt (Makefile.am): Remove alloca.h if
12028         GL_GENERATE_ALLOCA_H evaluates to false.
12029
12030         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
12031         GL_GENERATE_ARGZ_H.
12032         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
12033         evaluates to false.
12034
12035         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
12036         GL_GENERATE_BYTESWAP_H.
12037         * modules/byteswap (Makefile.am): Remove byteswap.h if
12038         GL_GENERATE_BYTESWAP_H evaluates to false.
12039
12040         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
12041         GL_GENERATE_ERRNO_H.
12042         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
12043         evaluates to false.
12044
12045         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
12046         GL_GENERATE_FLOAT_H.
12047         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
12048         evaluates to false.
12049
12050         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
12051         GL_GENERATE_FNMATCH_H.
12052         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
12053         GL_GENERATE_FNMATCH_H evaluates to false.
12054
12055         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
12056         GL_GENERATE_GLOB_H.
12057         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
12058         evaluates to false.
12059
12060         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
12061         automake conditional GL_GENERATE_ICONV_H.
12062         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
12063         evaluates to false.
12064
12065         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
12066         GL_GENERATE_NETINET_IN_H.
12067         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
12068         GL_GENERATE_NETINET_IN_H evaluates to false.
12069
12070         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
12071         conditional GL_GENERATE_PTHREAD_H.
12072         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
12073         * modules/pthread (Makefile.am): Remove pthread.h if
12074         GL_GENERATE_PTHREAD_H evaluates to false.
12075
12076         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
12077         GL_GENERATE_SCHED_H.
12078         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
12079         evaluates to false.
12080
12081         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
12082         conditional GL_GENERATE_SELINUX_CONTEXT_H.
12083         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
12084         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
12085
12086         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
12087         GL_GENERATE_STDARG_H.
12088         * modules/stdarg (Makefile.am): Remove stdarg.h if
12089         GL_GENERATE_STDARG_H evaluates to false.
12090
12091         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
12092         GL_GENERATE_STDBOOL_H.
12093         * modules/stdbool (Makefile.am): Remove stdbool.h if
12094         GL_GENERATE_STDBOOL_H evaluates to false.
12095
12096         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
12097         conditional GL_GENERATE_STDDEF_H.
12098         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
12099         * modules/stddef (Makefile.am): Remove stddef.h if
12100         GL_GENERATE_STDDEF_H evaluates to false.
12101
12102         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
12103         GL_GENERATE_STDINT_H.
12104         * modules/stdint (Makefile.am): Remove stdint.h if
12105         GL_GENERATE_STDINT_H evaluates to false.
12106
12107         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
12108         GL_GENERATE_SYSEXITS_H.
12109         * modules/sysexits (Makefile.am): Remove sysexits.h if
12110         GL_GENERATE_SYSEXITS_H evaluates to false.
12111
12112         Reported by Karl Berry and Ralf Wildenhues.
12113
12114 2011-04-05  Bruno Haible  <bruno@clisp.org>
12115
12116         Ensure to rebuild generated .h files when config.status has changed.
12117         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
12118         config.status.
12119         * modules/ctype (Makefile.am): Likewise.
12120         * modules/dirent (Makefile.am): Likewise.
12121         * modules/errno (Makefile.am): Likewise.
12122         * modules/fcntl-h (Makefile.am): Likewise.
12123         * modules/float (Makefile.am): Likewise.
12124         * modules/getopt-posix (Makefile.am): Likewise.
12125         * modules/glob (Makefile.am): Likewise.
12126         * modules/iconv-h (Makefile.am): Likewise.
12127         * modules/inttypes (Makefile.am): Likewise.
12128         * modules/langinfo (Makefile.am): Likewise.
12129         * modules/locale (Makefile.am): Likewise.
12130         * modules/math (Makefile.am): Likewise.
12131         * modules/netdb (Makefile.am): Likewise.
12132         * modules/netinet_in (Makefile.am): Likewise.
12133         * modules/poll-h (Makefile.am): Likewise.
12134         * modules/pthread (Makefile.am): Likewise.
12135         * modules/pty (Makefile.am): Likewise.
12136         * modules/sched (Makefile.am): Likewise.
12137         * modules/search (Makefile.am): Likewise.
12138         * modules/selinux-h (Makefile.am): Likewise.
12139         * modules/signal (Makefile.am): Likewise.
12140         * modules/spawn (Makefile.am): Likewise.
12141         * modules/stdarg (Makefile.am): Likewise.
12142         * modules/stdbool (Makefile.am): Likewise.
12143         * modules/stddef (Makefile.am): Likewise.
12144         * modules/stdint (Makefile.am): Likewise.
12145         * modules/stdio (Makefile.am): Likewise.
12146         * modules/stdlib (Makefile.am): Likewise.
12147         * modules/string (Makefile.am): Likewise.
12148         * modules/strings (Makefile.am): Likewise.
12149         * modules/sys_file (Makefile.am): Likewise.
12150         * modules/sys_ioctl (Makefile.am): Likewise.
12151         * modules/sys_select (Makefile.am): Likewise.
12152         * modules/sys_socket (Makefile.am): Likewise.
12153         * modules/sys_stat (Makefile.am): Likewise.
12154         * modules/sys_time (Makefile.am): Likewise.
12155         * modules/sys_times (Makefile.am): Likewise.
12156         * modules/sys_utsname (Makefile.am): Likewise.
12157         * modules/sys_wait (Makefile.am): Likewise.
12158         * modules/sysexits (Makefile.am): Likewise.
12159         * modules/termios (Makefile.am): Likewise.
12160         * modules/time (Makefile.am): Likewise.
12161         * modules/unistd (Makefile.am): Likewise.
12162         * modules/wchar (Makefile.am): Likewise.
12163         * modules/wctype-h (Makefile.am): Likewise.
12164         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
12165
12166 2011-04-05  Bruno Haible  <bruno@clisp.org>
12167
12168         pipe2: Relicense under LGPLv2+.
12169         * modules/pipe2 (License): Change to LGPLv2+.
12170         Requested by Eric Blake, for libvirt.
12171
12172 2011-04-05  Bruce Korb  <bkorb@gnu.org>
12173
12174         bootstrap: compute gnulib_extra_files after updating build_aux
12175         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
12176         change build_aux or also supply gnulib_extra_files.  Handle correctly.
12177
12178 2011-04-05  Eric Blake  <eblake@redhat.com>
12179
12180         bootstrap: preserve git whitelist item sorting
12181         * build-aux/bootstrap (sort_patterns): New function.
12182         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
12183
12184 2011-04-05  Simon Josefsson  <simon@josefsson.org>
12185
12186         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
12187         sc_space_tab check.
12188
12189 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
12190
12191         areadlink, areadlinkat: rewrite in terms of careadlinkat
12192         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
12193         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
12194         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
12195         (malloc, realloc): Remove #undefs.
12196         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
12197         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
12198         readlink, ssize_t, stdint, unistd.
12199         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
12200         areadlink, stdint.
12201
12202         careadlinkat: new module
12203         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
12204         * modules/careadlinkat: New files, written by me with
12205         a review and feedback from Ben Pfaff in
12206         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
12207
12208 2011-04-01  Bruno Haible  <bruno@clisp.org>
12209
12210         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
12211         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
12212         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
12213         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
12214         Reported by Bruce Korb <bruce.korb@gmail.com>.
12215
12216 2011-04-01  Bruno Haible  <bruno@clisp.org>
12217
12218         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
12219         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
12220         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
12221         * modules/wcpcpy (Depends-on): Add extensions.
12222         * modules/wcpncpy (Depends-on): Likewise.
12223         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
12224         systems.
12225         * doc/posix-functions/wcpncpy.texi: Likewise.
12226         * doc/posix-functions/wcwidth.texi: Likewise.
12227
12228 2011-03-31  Eric Blake  <eblake@redhat.com>
12229
12230         nonblocking: fix mingw test failures
12231         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
12232         non-blocking flag on regular file.
12233         (get_nonblocking_flag): Set errno on invalid fd.
12234         * tests/test-nonblocking.c (main): Avoid test failure on
12235         directories if fchdir is not active.
12236         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
12237
12238 2011-03-31  Bruno Haible  <bruno@clisp.org>
12239
12240         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
12241         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
12242         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
12243         Reported by Simon Josefsson <simon@josefsson.org>.
12244
12245 2011-03-31  Bruno Haible  <bruno@clisp.org>
12246         and Eric Blake  <eblake@redhat.com>
12247
12248         nonblocking: new module
12249         * modules/nonblocking: New module.
12250         * modules/nonblocking-tests: Likewise.
12251         * lib/nonblocking.h: New file.
12252         * lib/nonblocking.c: Likewise.
12253         * tests/test-nonblocking.c: New test.
12254         * lib/ioctl.c (ioctl) [mingw]: Update comment.
12255
12256 2011-03-30  Bruno Haible  <bruno@clisp.org>
12257
12258         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
12259         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
12260         instead of 'printf' format for GCC >= 4.4.
12261         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
12262         (fprintf, printf, vfprintf, vprintf): Declare with
12263         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
12264         the system's vfprintf() function.
12265         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
12266
12267 2011-03-30  Eric Blake  <eblake@redhat.com>
12268
12269         passfd: fix scoping bug
12270         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
12271         before sendmsg/recvmsg.
12272
12273         passfd: standardize coding conventions
12274         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
12275         can be learned at compile time.
12276         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
12277         ifdefs.
12278         (sendfd, recvfd): Follow gnulib code conventions.
12279
12280         passfd: fix incorrect sendmsg arguments
12281         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
12282         incorrect msg_controllen value.
12283         * modules/passfd-tests (Depends-on): Check for alarm.
12284         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
12285         Reported by Bastien ROUCARIES.
12286
12287 2011-03-30  Bruno Haible  <bruno@clisp.org>
12288
12289         c-strcasestr: Relicense under LGPLv2+.
12290         * modules/c-strcasestr (License): Change to LGPLv2+.
12291         Requested by Eric Blake, for libvirt.
12292
12293 2011-03-30  Simon Josefsson  <simon@josefsson.org>
12294
12295         * users.txt: Add libidn2.  Fix libtasn1 link.
12296
12297 2011-03-30  Jim Meyering  <meyering@redhat.com>
12298
12299         tests: readlink* ("",... fails with EINVAL on newer kernels
12300         readlink and readlinkat have typically failed with ENOENT for
12301         the invalid, empty file name,  "".  However, with the advent
12302         of linux-2.6.39, they fail with EINVAL.
12303         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
12304         when operating on the empty file name.
12305         * tests/test-readlink.h (test_readlink): Likewise.
12306
12307 2011-03-29  Bruno Haible  <bruno@clisp.org>
12308
12309         Relicense some modules under LGPLv2+, for libidn2.
12310         * modules/array-mergesort (License): Change to LGPLv2+.
12311         * modules/c-strcaseeq (License): Likewise.
12312         * modules/striconveh (License): Likewise.
12313         * modules/striconveha (License): Likewise.
12314         * modules/uniconv/base (License): Likewise.
12315         * modules/uniconv/u8-conv-from-enc (License): Likewise.
12316         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
12317         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
12318         * modules/unictype/base (License): Likewise.
12319         * modules/unictype/bidiclass-of (License): Likewise.
12320         * modules/unictype/category-M (License): Likewise.
12321         * modules/unictype/category-none (License): Likewise.
12322         * modules/unictype/category-of (License): Likewise.
12323         * modules/unictype/category-test (License): Likewise.
12324         * modules/unictype/category-test-withtable (License): Likewise.
12325         * modules/unictype/combining-class (License): Likewise.
12326         * modules/unictype/joiningtype-of (License): Likewise.
12327         * modules/unictype/scripts (License): Likewise.
12328         * modules/uninorm/base (License): Likewise.
12329         * modules/uninorm/canonical-decomposition (License): Likewise.
12330         * modules/uninorm/composition (License): Likewise.
12331         * modules/uninorm/decompose-internal (License): Likewise.
12332         * modules/uninorm/decomposition-table (License): Likewise.
12333         * modules/uninorm/nfc (License): Likewise.
12334         * modules/uninorm/nfd (License): Likewise.
12335         * modules/uninorm/u32-normalize (License): Likewise.
12336         * modules/unistr/base (License): Likewise.
12337         * modules/unistr/u32-cpy (License): Likewise.
12338         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
12339         * modules/unistr/u32-to-u8 (License): Likewise.
12340         * modules/unistr/u32-uctomb (License): Likewise.
12341         * modules/unistr/u8-check (License): Likewise.
12342         * modules/unistr/u8-mblen (License): Likewise.
12343         * modules/unistr/u8-mbtouc (License): Likewise.
12344         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
12345         * modules/unistr/u8-mbtoucr (License): Likewise.
12346         * modules/unistr/u8-prev (License): Likewise.
12347         * modules/unistr/u8-strlen (License): Likewise.
12348         * modules/unistr/u8-to-u32 (License): Likewise.
12349         * modules/unistr/u8-uctomb (License): Likewise.
12350         * modules/unitypes (License): Likewise.
12351         Requested by Simon Josefsson.
12352
12353 2011-03-29  Simon Josefsson  <simon@josefsson.org>
12354
12355         lib-symbol-visibility: Add a notice.
12356         * modules/lib-symbol-visibility (Notice): New field.
12357
12358 2011-03-29  Bruno Haible  <bruno@clisp.org>
12359
12360         getaddrinfo: Doc fix.
12361         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
12362         section "fixed in Gnulib".
12363
12364 2011-03-28  Simon Josefsson  <simon@josefsson.org>
12365
12366         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
12367         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
12368
12369 2011-03-26  Bruno Haible  <bruno@clisp.org>
12370
12371         unictype/property-byname: Reduce the number of load-time relocations.
12372         * lib/unictype/pr_byname.c: Include <stdlib.h>.
12373         (UC_PROPERTY_INDEX_*): New enumeration values.
12374         (uc_property_byname): Convert an index from the lookup table to an
12375         uc_property_t.
12376         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
12377         values.
12378
12379 2011-03-26  Bruno Haible  <bruno@clisp.org>
12380
12381         unictype/property-byname: Allow omitted word separators and aliases.
12382         * lib/unictype/pr_byname.gperf: Add property names without word
12383         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
12384         for 'space'.
12385
12386 2011-03-26  Bruno Haible  <bruno@clisp.org>
12387
12388         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
12389         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
12390         also hyphens to space.
12391         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
12392         without spaces.
12393         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
12394
12395 2011-03-26  Bruno Haible  <bruno@clisp.org>
12396
12397         unictype/joiningtype-byname: Recognize long names as well.
12398         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
12399         a long name.
12400         * lib/unictype/joiningtype_byname.c: Include <string.h>,
12401         unictype/joiningtype_byname.h.
12402         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
12403         * lib/unictype/joiningtype_byname.gperf: New file.
12404         * modules/unictype/joiningtype-byname (Files): Add
12405         lib/unictype/joiningtype_byname.gperf.
12406         (Depends-on): Add gperf.
12407         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
12408         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
12409         long names.
12410
12411         Tests for module 'unictype/joiningtype-longname'.
12412         * modules/unictype/joiningtype-longname-tests: New file.
12413         * tests/unictype/test-joiningtype_longname.c: New file.
12414
12415         New module 'unictype/joiningtype-longname'.
12416         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
12417         * lib/unictype/joiningtype_longname.c: New file.
12418         * modules/unictype/joiningtype-longname: New file.
12419         * modules/unictype/joiningtype-all (Depends-on): Add
12420         unictype/joiningtype-longname.
12421
12422 2011-03-26  Bruno Haible  <bruno@clisp.org>
12423
12424         unictype/bidiclass-byname: Recognize long names as well.
12425         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
12426         name.
12427         * lib/unictype/bidi_byname.c: Include <string.h>,
12428         unictype/bidi_byname.h.
12429         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
12430         * lib/unictype/bidi_byname.gperf: New file.
12431         * modules/unictype/bidiclass-byname (Files): Add
12432         lib/unictype/bidi_byname.gperf.
12433         (Depends-on): Add gperf.
12434         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
12435         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
12436         long names.
12437
12438         Tests for module 'unictype/bidiclass-longname'.
12439         * modules/unictype/bidiclass-longname-tests: New file.
12440         * tests/unictype/test-bidi_longname.c: New file.
12441
12442         New module 'unictype/bidiclass-longname'.
12443         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
12444         * lib/unictype/bidi_longname.c: New file.
12445         * modules/unictype/bidiclass-longname: New file.
12446         * modules/unictype/bidiclass-all (Depends-on): Add
12447         unictype/bidiclass-longname.
12448
12449 2011-03-26  Bruno Haible  <bruno@clisp.org>
12450
12451         unictype/bidi*: Rename modules.
12452         * modules/unictype/bidiclass-all: Renamed from
12453         modules/unictype/bidicategory-all.
12454         * modules/unictype/bidiclass-name: Renamed from
12455         modules/unictype/bidiclass-name.
12456         (Description): Update.
12457         * modules/unictype/bidiclass-name-tests: Renamed from
12458         modules/unictype/bidicategory-name-tests.
12459         * modules/unictype/bidiclass-byname: Renamed from
12460         modules/unictype/bidicategory-byname.
12461         (Description): Update.
12462         * modules/unictype/bidiclass-byname-tests: Renamed from
12463         modules/unictype/bidicategory-byname-tests.
12464         * modules/unictype/bidiclass-of: Renamed from
12465         modules/unictype/bidicategory-of.
12466         (Description): Update.
12467         * modules/unictype/bidiclass-of-tests: Renamed from
12468         modules/unictype/bidicategory-of-tests.
12469         * modules/unictype/bidiclass-test: Renamed from
12470         modules/unictype/bidicategory-test.
12471         (Description): Update.
12472         * modules/unictype/bidiclass-test-tests: Renamed from
12473         modules/unictype/bidicategory-test-tests.
12474         * modules/unictype/bidicategory-all: New file, a simple redirection.
12475         * modules/unictype/bidicategory-name: Likewise.
12476         * modules/unictype/bidicategory-byname: Likewise.
12477         * modules/unictype/bidicategory-of: Likewise.
12478         * modules/unictype/bidicategory-test: Likewise.
12479         * modules/unictype/property-bidi-* (Dependencies): Update.
12480         * lib/unictype/bidi_*.c: Update comment.
12481
12482 2011-03-26  Bruno Haible  <bruno@clisp.org>
12483
12484         unictype/bidi*: Rename functions, part 2.
12485         * modules/unictype/bidicategory-name (configure.ac): Update required
12486         libunistring version.
12487         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
12488
12489 2011-03-25  Bruno Haible  <bruno@clisp.org>
12490
12491         New module 'unictype/combining-class-all'.
12492         * modules/unictype/combining-class-all: New file.
12493
12494         Tests for module 'unictype/combining-class-byname'.
12495         * modules/unictype/combining-class-byname-tests: New file.
12496         * tests/unictype/test-combiningclass_byname.c: New file.
12497
12498         New module 'unictype/combining-class-byname'.
12499         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
12500         * lib/unictype/combiningclass_byname.c: New file.
12501         * lib/unictype/combiningclass_byname.gperf: New file.
12502         * modules/unictype/combining-class-byname: New file.
12503
12504         Tests for module 'unictype/combining-class-longname'.
12505         * modules/unictype/combining-class-longname-tests: New file.
12506         * tests/unictype/test-combiningclass_longname.c: New file.
12507
12508         New module 'unictype/combining-class-longname'.
12509         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
12510         * lib/unictype/combiningclass_longname.c: New file.
12511         * modules/unictype/combining-class-longname: New file.
12512
12513         Tests for module 'unictype/combining-class-name'.
12514         * modules/unictype/combining-class-name-tests: New file.
12515         * tests/unictype/test-combiningclass_name.c: New file.
12516
12517         New module 'unictype/combining-class-name'.
12518         * lib/unictype.in.h (uc_combining_class_name): New declaration.
12519         * lib/unictype/combiningclass_name.c: New file.
12520         * modules/unictype/combining-class-name: New file.
12521
12522 2011-03-25  Bruno Haible  <bruno@clisp.org>
12523
12524         unictype/combining-class: Rename source files.
12525         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
12526         of unictype/combining.h.
12527         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
12528         Update.
12529         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
12530         * modules/unictype/combining-class (Description): Fix.
12531         (Files, Makefile.am): Update.
12532         * tests/unictype/test-combiningclass.c: Renamed from
12533         tests/unictype/test-combining.c.
12534         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
12535
12536 2011-03-25  Bruno Haible  <bruno@clisp.org>
12537
12538         unictype: Update list of canonical combining classes.
12539         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
12540
12541 2011-03-25  Bruno Haible  <bruno@clisp.org>
12542
12543         unictype/category-byname: Recognize long names as well.
12544         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
12545         a long name.
12546         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
12547         unictype/categ_byname.h.
12548         (UC_CATEGORY_INDEX_*): New enumeration values.
12549         (uc_general_category_byname): Use uc_general_category_lookup and
12550         convert from index to value.
12551         * lib/unictype/categ_byname.gperf: New file.
12552         * modules/unictype/category-byname (Files): Add
12553         lib/unictype/categ_byname.gperf.
12554         (Depends-on): Add gperf.
12555         (Makefile.am): Add rule for generating unictype/categ_byname.h.
12556         * tests/unictype/test-categ_byname.c (main): Test the recognition of
12557         long names.
12558
12559         Tests for module 'unictype/category-longname'.
12560         * modules/unictype/category-longname-tests: New file.
12561         * tests/unictype/test-categ_longname.c: New file.
12562
12563         New module 'unictype/category-longname'.
12564         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
12565         * lib/unictype/categ_longname.c: New file.
12566         * modules/unictype/category-longname: New file.
12567         * modules/unictype/category-all (Depends-on): Add it.
12568
12569 2011-03-25  Bruno Haible  <bruno@clisp.org>
12570
12571         Tests for module 'unictype/category-LC'.
12572         * modules/unictype/category-LC-tests: New file.
12573         * tests/unictype/test-categ_LC.c: New file, automatically generated.
12574
12575         New module 'unictype/category-LC'.
12576         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
12577         (UC_CATEGORY_LC): New declaration.
12578         (UC_CASED_LETTER): New macro.
12579         * lib/gen-uni-tables.c (is_category_LC): New function.
12580         (output_categories): Also handle category LC.
12581         (UC_CATEGORY_MASK_LC): New enumeration value.
12582         (general_category_byname): Also handle category LC.
12583         * lib/unictype/categ_LC.c: New file.
12584         * lib/unictype/categ_LC.h: New file, automatically generated.
12585         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
12586         category LC.
12587         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
12588         * modules/unictype/category-LC: New file.
12589         * modules/unictype/category-byname (Depends-on): Add
12590         unictype/category-LC.
12591         * modules/unictype/category-all (Depends-on): Likewise.
12592
12593 2011-03-25  Eric Blake  <eblake@redhat.com>
12594
12595         xmalloc: revert yesterday's regression
12596         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
12597         realloc's underlying behavior (allowing allocation of zero-size
12598         objects, especially if malloc-gnu is also in use).
12599
12600 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
12601
12602         maint.mk: add missing version to VC-tag
12603         * top/maint.mk: git tag was missing actual tag name; add it.
12604
12605         valgrind: do leak checking, and exit with code 1 on error (not 0)
12606         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
12607         to VALGRIND.
12608
12609 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
12610
12611         posix-modules: say what it does.
12612         * posix-modules: Add a line to the --help output saying what it does.
12613
12614 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
12615
12616         xmalloc: Do not leak if underlying realloc is C99 compatible.
12617         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
12618         This avoids a leak on C99-based systems.  See
12619         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
12620
12621 2011-03-24  Eric Blake  <eblake@redhat.com>
12622
12623         realloc: document portability problem
12624         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
12625         passing 0 size to realloc.
12626
12627 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
12628
12629         doc: update users.txt
12630         * users.txt: Add cvsps, tmpwatch
12631
12632 2011-03-23  Matt Rice  <ratmice@gmail.com>
12633
12634         doc: update users.txt
12635         * users.txt: Add gdb.
12636
12637 2011-03-23  Jim Meyering  <meyering@redhat.com>
12638
12639         doc: update users.txt
12640         Looking through matches up to the following URL (there are still
12641         several more pages), I found several projects that use gnulib:
12642         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
12643         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
12644         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
12645
12646 2011-03-22  Bruno Haible  <bruno@clisp.org>
12647
12648         unictype/bidi*: Rename functions.
12649         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
12650         uc_bidi_class, uc_is_bidi_class): New declarations.
12651         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
12652         uc_bidi_category_byname.
12653         (uc_bidi_category_byname): New function.
12654         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
12655         u_bidi_category_name.
12656         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
12657         (uc_bidi_category_name): New function.
12658         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
12659         uc_bidi_category.
12660         (uc_bidi_category): New function.
12661         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
12662         uc_is_bidi_category. Invoke uc_bidi_class.
12663         (uc_is_bidi_category): New function.
12664         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
12665         instead of uc_bidi_category_byname.
12666         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
12667         instead of uc_bidi_category_name.
12668         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
12669         uc_bidi_category.
12670         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
12671         instead of uc_is_bidi_category.
12672
12673 2011-03-21  Bruno Haible  <bruno@clisp.org>
12674
12675         New module 'unictype/joininggroup-all'.
12676         * modules/unictype/joininggroup-all: New file.
12677
12678         Tests for module 'unictype/joininggroup-of'.
12679         * modules/unictype/joininggroup-of-tests: New file.
12680         * tests/unictype/test-joininggroup_of.c: New file.
12681         * tests/unictype/test-joininggroup_of.h: New file, automatically
12682         generated by gen-uni-tables.
12683
12684         New module 'unictype/joininggroup-of'.
12685         * modules/unictype/joininggroup-of: New file.
12686         * lib/unictype/joininggroup_of.c: New file.
12687         * lib/unictype/joininggroup_of.h: New file, automatically generated by
12688         gen-uni-tables.
12689
12690         Tests for module 'unictype/joininggroup-byname'.
12691         * modules/unictype/joininggroup-byname-tests: New file.
12692         * tests/unictype/test-joininggroup_byname.c: New file.
12693
12694         New module 'unictype/joininggroup-byname'.
12695         * modules/unictype/joininggroup-byname: New file.
12696         * lib/unictype/joininggroup_byname.c: New file.
12697         * lib/unictype/joininggroup_byname.gperf: New file.
12698
12699         Tests for module 'unictype/joininggroup-name'.
12700         * modules/unictype/joininggroup-name-tests: New file.
12701         * tests/unictype/test-joininggroup_name.c: New file.
12702
12703         New module 'unictype/joininggroup-name'.
12704         * modules/unictype/joininggroup-name: New file.
12705         * lib/unictype/joininggroup_name.c: New file.
12706         * lib/unictype/joininggroup_name.h: New file.
12707
12708         New module 'unictype/joiningtype-all'.
12709         * modules/unictype/joiningtype-all: New file.
12710
12711         Tests for module 'unictype/joiningtype-of'.
12712         * modules/unictype/joiningtype-of-tests: New file.
12713         * tests/unictype/test-joiningtype_of.c: New file.
12714         * tests/unictype/test-joiningtype_of.h: New file, automatically
12715         generated by gen-uni-tables.
12716
12717         New module 'unictype/joiningtype-of'.
12718         * modules/unictype/joiningtype-of: New file.
12719         * lib/unictype/joiningtype_of.c: New file.
12720         * lib/unictype/joiningtype_of.h: New file, automatically generated by
12721         gen-uni-tables.
12722
12723         Tests for module 'unictype/joiningtype-byname'.
12724         * modules/unictype/joiningtype-byname-tests: New file.
12725         * tests/unictype/test-joiningtype_byname.c: New file.
12726
12727         New module 'unictype/joiningtype-byname'.
12728         * modules/unictype/joiningtype-byname: New file.
12729         * lib/unictype/joiningtype_byname.c: New file.
12730
12731         Tests for module 'unictype/joiningtype-name'.
12732         * modules/unictype/joiningtype-name-tests: New file.
12733         * tests/unictype/test-joiningtype_name.c: New file.
12734
12735         New module 'unictype/joiningtype-name'.
12736         * modules/unictype/joiningtype-name: New file.
12737         * lib/unictype/joiningtype_name.c: New file.
12738
12739         unictype: Add support for Arabic shaping properties.
12740         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
12741         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
12742         declarations.
12743         (UC_JOINING_GROUP_*): New enumeration values.
12744         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
12745         declarations.
12746         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
12747         (unicode_joining_type): New variable.
12748         (UC_JOINING_GROUP_*): New enumeration values.
12749         (unicode_joining_group): New variable.
12750         (fill_arabicshaping, joining_type_as_c_identifier,
12751         output_joining_type_test, output_joining_type,
12752         joining_group_as_c_identifier, output_joining_group_test,
12753         output_joining_group): New functions.
12754         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
12755         fill_arabicshaping and output_joining_type_test, output_joining_type,
12756         output_joining_group_test, output_joining_group.
12757         Reported by Simon Josefsson.
12758
12759 2011-03-21  Jim Meyering  <meyering@redhat.com>
12760
12761         strftime: fix a bug in yesterday's change
12762         * lib/strftime.c (add): Accommodate width's initial value of -1.
12763         Otherwise, nstrftime would copy uninitialized data into
12764         the result buffer.
12765
12766 2011-03-21  Jim Meyering  <meyering@redhat.com>
12767
12768         tests: add strftime-tests module
12769         * tests/test-strftime.c: New file.
12770         * modules/strftime-tests: New module.
12771
12772 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
12773
12774         strftime: don't assume a byte count fits in 'int'
12775         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
12776         found this problem by static analysis, using gcc -Wstrict-overflow
12777         (GCC 4.5.2, x86-64).  This reported an optimization that depended
12778         on an integer overflow having undefined behavior, but it turns out
12779         that the argument is a size, which might not fit in 'int' anyway,
12780
12781 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
12782
12783         stdio: don't require ignore_value around fwrite
12784
12785         This patch works around libc bug 11959
12786         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
12787         Without this patch, applications must often write
12788         ignore_value (fwrite (...)) even though the ignore_value is
12789         not helpful here.  It's common to write many objects, using
12790         fwrite/printf/etc., and then use ferror to detect output error.
12791
12792         I considered making this patch optional, but decided against it,
12793         because libc is obviously being inconsistent here: there is no
12794         reason libc should insist that user code must inspect fwrite
12795         return's value without also insisting that it inspect printf's,
12796         putchar's, etc.  If user code wants to have a strict style where
12797         all these functions' values are checked (so that ferror need not
12798         be checked), we could add support for that style in a new gnulib
12799         module, but in the meantime it's better to be consistent and to
12800         support common usage.
12801
12802         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
12803         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
12804         that we are compiling in checking mode, and if not C++, and
12805         if not already wrapping fwrite for some other reason.
12806         (fwrite): #define to rpl_fwrite if the latter is defined.
12807
12808 2011-03-20  Bruno Haible  <bruno@clisp.org>
12809
12810         verror: Fix compilation error introduced on 2011-02-13.
12811         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
12812         instead of __attribute__.
12813         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12814
12815 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
12816             Bruno Haible  <bruno@clisp.org>
12817
12818         socklen: do not depend on sys_socket
12819         While trying to modify Emacs to use gnulib's socklen module,
12820         I discovered a circular dependency: socklen depends on sys_socket
12821         and vice versa.  Emacs can use socklen, but it does not need
12822         sys_socket because it has its own substitute for sys/socket.h.
12823         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
12824         gl_TYPE_SOCKLEN_T.
12825         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
12826         gl_PREREQ_SYS_H_SOCKET.
12827         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
12828         gl_PREREQ_SYS_H_SOCKET.
12829         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
12830         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
12831         * modules/socklen (Depends-on): Do not depend on sys_socket.
12832         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
12833
12834 2011-03-20  Jim Meyering  <meyering@redhat.com>
12835
12836         maint.mk: sort file names *after* new transformation
12837         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
12838         prefix would have led to an unwarranted failure in GNU parted.
12839         Sort after that transformation.
12840
12841 2011-03-19  Jim Meyering  <meyering@redhat.com>
12842
12843         maint.mk: fix po-file syntax-check rule
12844         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
12845         Patch by Bruno Haible.
12846
12847 2011-03-19  Bruno Haible  <bruno@clisp.org>
12848
12849         socklen: Update comment.
12850         * m4/socklen.m4: Update comment about platforms.
12851
12852 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
12853             Bruno Haible  <bruno@clisp.org>
12854
12855         inet_ntop, inet_pton: Simplify.
12856         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
12857         documented to provide socklen_t and we already depend on sys_socket.
12858         * modules/inet_pton (Depends-on): Likewise.
12859         * lib/arpa_inet.in.h: Adjust comment.
12860
12861 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
12862             Bruno Haible  <bruno@clisp.org>
12863
12864         netdb: Simplify.
12865         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
12866         documented to provide socklen_t and we already depend on sys_socket.
12867         * lib/netdb.in.h: Adjust comment.
12868
12869 2011-03-19  Bruno Haible  <bruno@clisp.org>
12870
12871         sys_socket, netdb: Document problem with socklen_t.
12872         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
12873         platforms.
12874         * doc/posix-headers/netdb.texi: Likewise.
12875
12876 2011-03-18  Eric Blake  <eblake@redhat.com>
12877
12878         maint.mk: let po check work in VPATH build
12879         * top/maint.mk (po_file): Allow cfg.mk override.
12880         (sc_po_check): Allow VPATH use.
12881         Reported by Jiri Denemark.
12882
12883 2011-03-16  Jim Meyering  <meyering@redhat.com>
12884
12885         maint.mk: allow fine-grained syntax-check exclusion via Make variables
12886         Before, you would have had to create one .x-sc_ file per rule in order
12887         to exempt offending files.  Now, you may instead use a Make variable --
12888         usually defined in cfg.mk -- whose name identifies the affected rule.
12889         * top/maint.mk (_sc_excl): Define.
12890         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
12891         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
12892
12893 2011-03-13  Bruno Haible  <bruno@clisp.org>
12894
12895         ignore-value tests: Avoid warnings.
12896         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
12897         empty for gcc < 3.4.
12898
12899 2011-03-13  Bruno Haible  <bruno@clisp.org>
12900
12901         passfd: Fix link error on Solaris.
12902         * modules/passfd (Description): Correct.
12903         (Depends-on): Add socketlib.
12904         (Link): New section.
12905         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
12906
12907 2011-03-13  Bruno Haible  <bruno@clisp.org>
12908
12909         passfd: Fix link error on AIX 5.2.
12910         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
12911
12912 2011-03-13  Bruno Haible  <bruno@clisp.org>
12913
12914         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
12915         * lib/sys_socket.in.h: Include <stddef.h>.
12916         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
12917         CMSG_FIRSTHDR. Remove unused variable.
12918
12919 2011-03-13  Bruno Haible  <bruno@clisp.org>
12920
12921         passfd: Fix compilation error on OpenBSD.
12922         * lib/passfd.c: Include <sys/uio.h>.
12923
12924 2011-03-13  Bruno Haible  <bruno@clisp.org>
12925
12926         passfd test: Fix warnings.
12927         * tests/test-passfd.c: Include <sys/wait.h>.
12928         (main): Fix typo.
12929
12930 2011-03-13  Bruno Haible  <bruno@clisp.org>
12931
12932         passfd module, part 4, tweaks.
12933         * tests/test-passfd.c: Reorder includes.
12934         (main): Fix perror and printf calls.
12935
12936 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
12937
12938         passfd module, part 4.
12939         * modules/passfd-tests: New file.
12940         * tests/test-passfd.c: New file.
12941
12942 2011-03-13  Jim Meyering  <meyering@redhat.com>
12943
12944         Makefile: rely on GNU make; derive syntax-check rule names
12945         Rather than requiring that each sc_ rule be listed as a dependent
12946         of "check", use features of GNU make to derive the list.
12947         * Makefile (syntax-check-rules): Define.
12948         (check): Depend on the new variable, not the hard-coded list.
12949
12950 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
12951             Bruno Haible  <bruno@clisp.org>
12952
12953         passfd module, part 3.
12954         * lib/passfd.h (recvfd): Add a flags argument.
12955         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
12956         (recvfd): Add a flags argument.
12957         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
12958         exists.
12959         * modules/passfd (Depends-on): Add cloexec.
12960         Suggested by Eric Blake.
12961
12962 2011-03-13  Bruno Haible  <bruno@clisp.org>
12963
12964         passfd module, part 2, tweaks.
12965         * modules/passfd (Files): Reorder.
12966         (Depends-on): Remove errno.
12967         (Include): Remove <sys/socket.h>, <sys/un.h>.
12968         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
12969         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
12970         specification header. Include <sys/socket.h> always. Don't include
12971         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
12972         (sendfd): Clarify that it sets errno when it fails.
12973         (recvfd): Fix specification.
12974
12975 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
12976
12977         passfd module, part 2.
12978         * modules/passfd: New file.
12979         * lib/passfd.h: New file.
12980         * lib/passfd.c: New file.
12981
12982 2011-03-12  Bruno Haible  <bruno@clisp.org>
12983
12984         wcswidth, mbswidth: Avoid integer overflow.
12985         * lib/wcswidth.c: Include <limits.h>.
12986         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
12987         * lib/mbswidth.c: Include <limits.h>.
12988         (mbsnwidth): Avoid 'int' overflow.
12989         Reported by Jim Meyering.
12990
12991 2011-03-12  Bruno Haible  <bruno@clisp.org>
12992
12993         futimens, utimensat: Avoid endless recursion on Solaris 10.
12994         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
12995         Solaris.
12996         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
12997         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
12998
12999 2011-03-11  Jim Meyering  <meyering@redhat.com>
13000
13001         maint.mk: relax a regexp to accommodate other formatting styles
13002         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
13003         between "ngettext" and the following "(".
13004
13005 2011-03-11  Pádraig Brady <P@draigBrady.com>
13006
13007         maint.mk: suppress a false positive warning
13008         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
13009         diagnostics are marked with ngettext.
13010
13011 2011-03-10  Eric Blake  <eblake@redhat.com>
13012
13013         wchar: add explicit dependencies, for Tru64
13014         * modules/mbmemcasecoll (Depends-on): Add wchar.
13015         * modules/mbtowc (Depends-on): Likewise.
13016         * modules/vasnprintf (Depends-on): Likewise.
13017         * modules/unistdio/u-printf-args (Depends-on): Likewise.
13018         * modules/wctomb (Depends-on): Likewise.
13019         Reported by Peter O'Gorman.
13020
13021 2011-03-08  Bruno Haible  <bruno@clisp.org>
13022
13023         passfd module, part 1, tweaks.
13024         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
13025         Improve indentation. Improve AC_MSG_CHECKING messages.
13026         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
13027         gl_SOCKET_FAMILIES.
13028
13029 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
13030
13031         passfd module, part 1.
13032         * m4/afunix.m4: New file.
13033         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
13034         sockets.
13035
13036 2011-03-08  Bruno Haible  <bruno@clisp.org>
13037
13038         regex-quote: New API.
13039         * lib/regex-quote.h: Include <stdbool.h>.
13040         (struct regex_quote_spec): New type.
13041         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
13042         New declarations.
13043         (regex_quote_length, regex_quote_copy, regex_quote): Take a
13044         'const struct regex_quote_spec *' argument.
13045         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
13046         (pcre_special): New constant.
13047         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
13048         New functions.
13049         (regex_quote_length, regex_quote_copy, regex_quote): Take a
13050         'const struct regex_quote_spec *' argument.
13051         * modules/regex-quote (Depends-on): Add stdbool.
13052         * tests/test-regex-quote.c (check): Update for new API. Add test for
13053         anchored results.
13054         * NEWS: Mention the API change.
13055         Reported by Reuben Thomas and Eric Blake.
13056
13057 2011-03-06  Bruno Haible  <bruno@clisp.org>
13058
13059         regex-quote: Fix creation of POSIX extended regular expressions.
13060         * lib/regex-quote.c (ere_special): Add grouping and alternation
13061         operators.
13062
13063 2011-03-05  Bruno Haible  <bruno@clisp.org>
13064
13065         doc: Improve doc regarding autopoint vs. gnulib.
13066         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
13067         disable autopoint while running autoreconf.
13068         Suggested by Ralf Wildenhues.
13069
13070 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13071
13072         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
13073         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
13074
13075 2011-03-03  Bruce Korb  <bkorb@gnu.org>
13076
13077         parse-duration: remove xalloc.h dependency
13078         * lib/parse-duration.c (parse_period): handle NULL return from
13079         strdup instead of calling xstrdup().
13080         * modules/parse-duration: remove "xalloc" dependency
13081
13082 2011-03-03  Matthew Booth  <mbooth@redhat.com>
13083
13084         bootstrap: honor m4_base when running aclocal
13085         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
13086
13087 2011-03-02  Jim Meyering  <meyering@redhat.com>
13088
13089         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
13090         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
13091         on request from Matt Booth.
13092
13093 2011-03-01  Eric Blake  <eblake@redhat.com>
13094
13095         test-link: work on Hurd
13096         * tests/test-link.h (test_link): Hurd rejects linking directories
13097         with EISDIR instead of the POSIX-mandated EPERM.
13098
13099 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
13100
13101         stdio: simplify by moving files to printf-posix, sigpipe
13102         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
13103         since this symbol is needed only if printf is replaced.
13104         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
13105         Require gl_ASM_SYMBOL_PREFIX.
13106         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
13107         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
13108         (Depends-on): Add 'raise'.
13109         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
13110         * modules/stdio (Files): Remove lib/stdio-write.c,
13111         m4/asm-underscore.m4.
13112         (Depends-on): Remove 'raise'.
13113
13114         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
13115         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
13116         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
13117         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
13118
13119 2011-02-28  Bruno Haible  <bruno@clisp.org>
13120
13121         localcharset: Assume ANSI C behaviour of free().
13122         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
13123         calling free().
13124         Suggested by Simon Josefsson <simon@josefsson.org>.
13125
13126 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
13127             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
13128             Bruno Haible  <bruno@clisp.org>  (tiny change)
13129
13130         On Cygwin, use /proc file system instead of win32 API.
13131         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
13132         Win32 file names.
13133         (DllMain): Simplify by removing Cygwin specific code.
13134         (find_shared_library_fullname): Use Linux specific implementation also
13135         for Cygwin.
13136         (get_shared_library_fullname): Update accordingly.
13137         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
13138         Win32 file names.
13139         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
13140         Cygwin specific code.
13141
13142 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
13143             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
13144
13145         Fix OpenMP flag detection for various Fortran compilers.
13146         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
13147         OpenMP-conditional compilation construct, to force compile
13148         failure with missing OpenMP flag.
13149         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
13150
13151 2011-02-25  Eric Blake  <eblake@redhat.com>
13152
13153         strstr: expand test coverage
13154         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
13155         compilation.
13156         * tests/test-memmem.c (main): Duplicate tests.
13157         * tests/test-strcasestr.c (main): Likewise.
13158         * tests/test-c-strcasestr.c (main): Likewise.
13159
13160 2011-02-25  Jim Meyering  <meyering@redhat.com>
13161
13162         maint.mk: detect missing-NL-at-EOF, too
13163         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
13164         it also detects when a file lacks a newline at EOF.
13165         (require_exactly_one_NL_at_EOF_): Renamed from
13166         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
13167         since people may well have .x-sc_... file names tied to the
13168         existing name.  Suggested by Eric Blake.
13169
13170 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
13171
13172         dirname: move m4/dos.m4 functionality into lib/dosname.h
13173
13174         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
13175         extracts symbols from it, puts them into config.h; but it's much
13176         easier to use the symbols directly.  filename.h already does this,
13177         but it disagrees with dos.m4 in some respects.  This patch
13178         introduces a different include file dosname.h that packages up
13179         dos.m4, and then later we can work on merging filename.h and
13180         dosname.h.  Applications that need only the easy-to-configure
13181         symbols should consider including dosname.h rather than dirname.h.
13182         * NEWS: Mention incompatible changes.
13183         * m4/dos.m4: Remove.
13184         * lib/dosname.h, modules/dosname: New files.
13185         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
13186         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
13187         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
13188         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
13189         Include dosname.h, not dirname.h.
13190         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
13191         Include dosname.h, for definitions of symbols like ISSLASH
13192         that used to be in config.h.
13193         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
13194         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
13195         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
13196         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
13197         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
13198         * modules/rmdir (Files): Likewise.
13199         * modules/stat (Files): Likewise.
13200         * modules/unlink (Files): Likewise.
13201         * modules/dirname-lgpl (Depends-on): Add dosname.
13202         * modules/lstat (Depends-on): Likewise.
13203         * modules/openat (Depends-on): Likewise.
13204         * modules/rmdir (Depends-on): Likewise.
13205         * modules/savewd (Depends-on): Likewise.
13206         * modules/stat (Depends-on): Likewise.
13207         * modules/unlink (Depends-on): Likewise.
13208         * modules/openat (Depends-on): Remove dirname-lgpl.
13209         * modules/savewd (Depends-on): Likewise.
13210         * tests/test-dirname.c: Do not use removed symbols like
13211         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
13212         the remaining symbols, e.g., ISSLASH ('\\').
13213
13214 2011-02-25  Eric Blake  <eblake@redhat.com>
13215
13216         strstr: revert patches that introduced bug and pessimization
13217         * lib/str-two-way.h: Add another reference.
13218         (two_way_short_needle, two_way_long_needle): Revert changes from
13219         2011-02-24; they pessimize search speed.
13220         (critical_factorization): Partially revert changes from
13221         2010-06-22; they violate the requirement that the left half of the
13222         needle be smaller than the period of the needle.
13223
13224 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
13225
13226         filenamecat: remove unnecessary dependency on dirname-lgpl
13227         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
13228         is no direct dependency, just an indirect one via filenamecat-lgpl.
13229
13230         remove: remove unnecessary use of m4/dos.m4
13231         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
13232         * modules/remove (FILES): Remove m4/dos.m4.
13233
13234         * lib/openat-proc.c: Don't include dirname.h; not needed.
13235
13236         backupfile: remove unnecessary use of m4/dos.m4
13237         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
13238         of its symbols are used by the backupfile code.  backupfile.c does
13239         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
13240         for the rare case of programs that want all their backup file
13241         names to live within 8+3 limits, and dos.m4 doesn't address that.
13242         * modules/backupfile (Files): Remove m4/dos.m4.
13243
13244 2011-02-24  Jim Meyering  <meyering@redhat.com>
13245
13246         strstr: fix a bug whereby strstr would mistakenly return NULL
13247         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
13248         in period calculation.
13249         (two_way_long_needle): Likewise.
13250         The original problem was reported by Mike Stump in
13251         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
13252         Ralf Wildenhues provided the short needle and haystack.
13253         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
13254         Add a more involved test to trigger the bug in two_way_long_needle.
13255
13256 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
13257
13258         gnulib-tool: remove use of bold display in help screen
13259         * gnulib-tool (func_usage): Do not use bold display anymore in the
13260         help screen.  That was just meant to be a temporary emphasis for a
13261         backward-incompatible change.
13262
13263 2011-02-23  Bruno Haible  <bruno@clisp.org>
13264
13265         Fix misindentation of preprocessor directives.
13266         * lib/argp-namefrob.h: Reindent preprocessor directives.
13267         * lib/getopt_int.h (struct _getopt_data): Likewise.
13268         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
13269         * lib/vasnprintf.c (decode_long_double): Likewise.
13270         * tests/test-argmatch.c: Insert blank lines, for clarity.
13271         * tests/test-exclude.c: Likewise.
13272
13273 2011-02-22  Bruno Haible  <bruno@clisp.org>
13274
13275         ioctl: Fix for MacOS X in 64-bit mode.
13276         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
13277         value.
13278         Suggested by Eric Blake.
13279         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
13280
13281 2011-02-22  Jim Meyering  <meyering@redhat.com>
13282
13283         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
13284         * Makefile (sc_cpp_indent_check): Don't limit the check to files
13285         in lib/.
13286
13287 2011-02-22  Eric Blake  <eblake@redhat.com>
13288
13289         maint: avoid any CDPATH issue
13290         * Makefile (sc_cpp_indent_check): Anchor cd argument.
13291
13292         maint: adjust cpp indentation for my modules, as well
13293         * Makefile (sc_cpp_indent_check): Add my name.
13294         * lib/fbufmode.c: Filter through cppi.
13295         * lib/fpurge.c: Likewise.
13296         * lib/freadable.c: Likewise.
13297         * lib/freading.c: Likewise.
13298         * lib/fwritable.c: Likewise.
13299         * lib/fwriting.c: Likewise.
13300         * lib/sigaction.c: Likewise.
13301
13302 2011-02-22  Jim Meyering  <meyering@redhat.com>
13303
13304         maint: adjust cpp indentation to reflect nesting depth
13305         I.e., in a block of code that begins with an unnested "#if",
13306         put one space between the "#" in column 1 and following token.
13307         For example,
13308         -#include <sys/vfs.h>
13309         +# include <sys/vfs.h>
13310         Do this only in .c files that are part of a module I maintain.
13311         * lib/linkat.c: Filter through cppi.
13312         * lib/nanosleep.c: Likewise.
13313         * lib/openat.c: Likewise.
13314         * lib/openat-die.c: Likewise.
13315         * lib/dup3.c: Likewise.
13316         * lib/fchownat.c: Likewise.
13317         * lib/flock.c: Likewise.
13318         * lib/fsync.c: Likewise.
13319         * lib/fts.c: Likewise.
13320         * lib/getpass.c: Likewise.
13321         * lib/gettimeofday.c: Likewise.
13322         * lib/userspec.c: Likewise.
13323         * Makefile (sc_cpp_indent_check): New rule, to check this.
13324
13325 2011-02-22  Bruno Haible  <bruno@clisp.org>
13326
13327         New module 'wctomb'.
13328         * lib/stdlib.in.h (wctomb): New declaration.
13329         * lib/wctomb.c: New file.
13330         * lib/wctomb-impl.h: New file.
13331         * m4/wctomb.m4: New file.
13332         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
13333         REPLACE_WCTOMB.
13334         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
13335         REPLACE_WCTOMB.
13336         * modules/wctomb: New file.
13337         * tests/test-stdlib-c++.cc: Test signature of wctomb.
13338         * doc/posix-functions/wctomb.texi: Mention the new module.
13339         * modules/wctob (Depends-on): Add wctomb.
13340
13341 2011-02-22  Bruno Haible  <bruno@clisp.org>
13342
13343         New module 'mbtowc'.
13344         * lib/stdlib.in.h (mbtowc): New declaration.
13345         * lib/mbtowc.c: New file.
13346         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
13347         * m4/mbtowc.m4: New file.
13348         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
13349         REPLACE_MBTOWC.
13350         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
13351         REPLACE_MBTOWC.
13352         * modules/mbtowc: New file.
13353         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
13354         * doc/posix-functions/mbtowc.texi: Mention the new module.
13355         * modules/btowc (Depends-on): Add mbtowc.
13356
13357 2011-02-22  Bruno Haible  <bruno@clisp.org>
13358
13359         wcrtomb: Add more tests for native Windows platforms.
13360         * tests/test-wcrtomb-w32-1.sh: New file.
13361         * tests/test-wcrtomb-w32-2.sh: New file.
13362         * tests/test-wcrtomb-w32-3.sh: New file.
13363         * tests/test-wcrtomb-w32-4.sh: New file.
13364         * tests/test-wcrtomb-w32-5.sh: New file.
13365         * tests/test-wcrtomb-w32.c: New file.
13366         * modules/wcrtomb-tests (Files): Add them.
13367         (Makefile.am): Arrange to run these tests.
13368         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
13369         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
13370
13371 2011-02-20  Bruno Haible  <bruno@clisp.org>
13372
13373         wcrtomb: Enhance test.
13374         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
13375
13376 2011-02-20  Bruno Haible  <bruno@clisp.org>
13377
13378         mbrtowc: Tiny optimization.
13379         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
13380
13381 2011-02-20  Jim Meyering  <meyering@redhat.com>
13382
13383         test-exclude.c: remove unmatched #endif
13384         * tests/test-exclude.c: Remove stray #endif, left over from
13385         the change of a week ago.
13386
13387 2011-02-19  Jim Meyering  <meyering@redhat.com>
13388
13389         git-version-gen: skip "-dirty" check when appropriate
13390         * build-aux/git-version-gen: Don't run any git commands when the
13391         version string comes from .tarball-version.  Prior to this, we
13392         would run git update-index --refresh even from a just-unpacked
13393         tarball directory, and that could affect a .git/ directory in a
13394         parent of the build directory.  Reported by Mike Frysinger.
13395
13396 2011-02-19  Bruno Haible  <bruno@clisp.org>
13397
13398         unictype/property-byname: Reduce the size of the 'data' segment.
13399         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
13400
13401 2011-02-19  Bruno Haible  <bruno@clisp.org>
13402
13403         unictype/scripts: Reduce the size of the 'data' segment.
13404         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
13405         '%pic'.
13406         * lib/unictype/scripts_byname.gperf: Regenerated.
13407
13408 2011-02-19  Bruno Haible  <bruno@clisp.org>
13409
13410         stdint: Update documentation.
13411         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
13412
13413 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
13414
13415         stdint: omit redundant check for wchar.h
13416         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
13417         always tests whether wchar.h exists, so remove the now-redundant test.
13418
13419 2011-02-18  Bruno Haible  <bruno@clisp.org>
13420
13421         stdint: Cut dependency to module 'wchar'.
13422         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
13423         include the necessary prerequisites.
13424         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
13425         * modules/stdint (Depends-on): Remove wchar.
13426         (Makefile.am): Substitute HAVE_WCHAR_H.
13427         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
13428
13429 2011-02-18  Eric Blake  <eblake@redhat.com>
13430
13431         longlong: skip, rather than fail, on cross-compilation
13432         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
13433         when cross-compiling; regression from 2011-02-16.
13434
13435 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
13436
13437         * NEWS: Mention 2011-02-08 change to stdlib.
13438
13439 2011-02-17  Bruno Haible  <bruno@clisp.org>
13440
13441         getloadavg: Add comments about platforms.
13442         * m4/getloadavg.m4: Add comment.
13443         * lib/getloadavg.c: Likewise.
13444
13445 2011-02-17  Bruno Haible  <bruno@clisp.org>
13446
13447         getloadavg: Fix link error on Solaris 2.6.
13448         * modules/getloadavg (Link): New section.
13449         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
13450         linking test-getloadavg.
13451         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
13452         getloadavg.
13453
13454 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
13455
13456         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
13457         It was 'int', but this doesn't match the IRIX 6.5 manual.
13458         Suggested by Bruno Haible in
13459         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
13460
13461 2011-02-17  Bruno Haible  <bruno@clisp.org>
13462
13463         havelib: Fix comments.
13464         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
13465         change.
13466
13467 2011-02-17  Bruno Haible  <bruno@clisp.org>
13468
13469         havelib: Update config.rpath.
13470         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
13471
13472 2011-02-17  Bruno Haible  <bruno@clisp.org>
13473
13474         getloadavg test: Add some plausibility checks.
13475         * tests/test-getloadavg.c (check_avg): Print a warning when the value
13476         is improbable.
13477
13478 2011-02-16  Eric Blake  <eblake@redhat.com>
13479
13480         maintainer-makefile: make syntax-check a no-op from tarballs
13481         * top/maint.mk (no-vc-detected): New rule.
13482         (local-checks-available): Use it to avoid hanging if someone tries
13483         'make syntax-check' from a tarball.  Also append to any non-syntax
13484         checks already defined in cfg.mk.
13485
13486 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
13487
13488         longlong: tune, particularly for common case of c99
13489
13490         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
13491         or running anything if c99, or if unsigned long long int does not
13492         work.  In either case, we know the answer without further tests.
13493         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
13494         it at most once, and use its results for both long long int and
13495         unsigned long long int.  This is more likely to be efficient in
13496         the common case where the program wants to check for both long
13497         long int and unsigned long long int.
13498         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
13499         since the answer is already known.
13500
13501 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
13502
13503         getloadavg: set errno
13504         * lib/getloadavg.c: Set errno when returning -1.  If no other
13505         error number looks appropriate, set it to ENOSYS if the getloadavg
13506         looks like it can't possibly ever work, ENOTSUP otherwise.
13507         Suggested by Bruno Haible in
13508         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
13509
13510         getloadavg: trim unused parts and speed up 'configure'
13511         * NEWS: Document this.
13512         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
13513         always compiled if getloadavg is absent.
13514         Move test code to ...
13515         * tests/test-getloadavg.c: New file, containing previous
13516         contents of test from lib/getloadavg.c.  It also contains
13517         suggestions by Bruno Haible in
13518         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
13519         * modules/getloadavg-tests: New file.
13520         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
13521         Do tests in the same order as they're needed for getloadavg.c.
13522         Omit setgid-related tests that generate symbols KMEM_GROUP,
13523         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
13524         Do only the tests that are needed to see whether the system has
13525         getloadavg, moving the other tests into ...
13526         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
13527         NLIST_NAME_UNION; nobody should be using it.  Do not define
13528         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
13529         relevant, as the user of this module shouldn't care how getloadavg
13530         is implemented.
13531
13532         getloadavg: omit unused var
13533         * lib/getloadavg.c (getloadavg): Omit unused local variable.
13534
13535 2011-02-15  Jim Meyering  <meyering@redhat.com>
13536
13537         doc: update users.txt
13538         * users.txt: Update iwhd's URL.
13539
13540 2011-02-13  Bruno Haible  <bruno@clisp.org>
13541
13542         Consistent macro naming for macros that use GCC __attribute__.
13543         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
13544         _ATTRIBUTE_NONNULL_.
13545         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
13546         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
13547         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
13548         ATTRIBUTE_DEPRECATED.
13549         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
13550         ATTRIBUTE_NORETURN.
13551         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
13552         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
13553         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
13554         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
13555         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
13556         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
13557         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
13558         ATTRIBUTE_SENTINEL.
13559         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
13560         ATTRIBUTE_RETURN_CHECK.
13561         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
13562         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
13563         ATTRIBUTE_NORETURN.
13564         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
13565         Reported by Paul Eggert.
13566
13567 2011-02-13  Bruno Haible  <bruno@clisp.org>
13568
13569         Don't interfere with a program's definition of __attribute__.
13570         * lib/argp.h (__attribute__): Remove definition.
13571         (_GL_ATTRIBUTE_FORMAT): New macro.
13572         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
13573         * lib/argp-fmtstream.h (__attribute__): Remove definition.
13574         (_GL_ATTRIBUTE_FORMAT): New macro.
13575         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
13576         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
13577         GCC 3 or newer.
13578         * lib/error.h (__attribute__): Remove definition.
13579         (_GL_ATTRIBUTE_FORMAT): New macro.
13580         (error, error_at_line): Use it.
13581         * lib/hash.h (__attribute__): Remove definition.
13582         (ATTRIBUTE_WUR): Update definition. Define always.
13583         * lib/openat.h (__attribute__): Remove definition.
13584         (ATTRIBUTE_NORETURN): Update definition. Define always.
13585         * lib/sigpipe-die.h (__attribute__): Remove definition.
13586         (ATTRIBUTE_NORETURN): Update definition. Define always.
13587         * lib/vasnprintf.h (__attribute__): Remove definition.
13588         (_GL_ATTRIBUTE_FORMAT): New macro.
13589         (asnprintf, vasnprintf): Use it.
13590         * lib/xalloc.h (__attribute__): Remove definition.
13591         (ATTRIBUTE_NORETURN): Update definition. Define always.
13592         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
13593         * lib/xmemdup0.h (__attribute__): Remove definition.
13594         (ATTRIBUTE_NORETURN): Update definition. Define always.
13595         * lib/xprintf.h (__attribute__): Remove definition.
13596         (_GL_ATTRIBUTE_FORMAT): New macro.
13597         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
13598         * lib/xstrtol.h (__attribute__): Remove definition.
13599         (ATTRIBUTE_NORETURN): Update definition. Define always.
13600         * lib/xvasprintf.h (__attribute__): Remove definition.
13601         (_GL_ATTRIBUTE_FORMAT): New macro.
13602         (xasprintf, xvasprintf): Use it.
13603         * tests/test-argmatch.c (__attribute__): Remove definition.
13604         (ATTRIBUTE_NORETURN): Update definition. Define always.
13605         * tests/test-exclude.c (__attribute__): Remove definition.
13606         (ATTRIBUTE_NORETURN): Update definition. Define always.
13607         Reported by Paul Eggert.
13608
13609 2011-02-13  Bruno Haible  <bruno@clisp.org>
13610
13611         mbrtowc: Add more tests for native Windows platforms.
13612         * tests/test-mbrtowc-w32-1.sh: New file.
13613         * tests/test-mbrtowc-w32-2.sh: New file.
13614         * tests/test-mbrtowc-w32-3.sh: New file.
13615         * tests/test-mbrtowc-w32-4.sh: New file.
13616         * tests/test-mbrtowc-w32-5.sh: New file.
13617         * tests/test-mbrtowc-w32.c: New file.
13618         * modules/mbrtowc-tests (Files): Add them.
13619         (Makefile.am): Arrange to run these tests.
13620         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
13621         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
13622
13623 2011-02-13  Bruno Haible  <bruno@clisp.org>
13624
13625         mbrtowc: Work around native Windows bug.
13626         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
13627         guess when no suitable locale for testing was found.
13628         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
13629
13630 2011-02-13  Bruno Haible  <bruno@clisp.org>
13631
13632         mbsinit: Work around mingw bug.
13633         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
13634         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
13635         Windows.
13636         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
13637
13638 2011-02-13  Bruno Haible  <bruno@clisp.org>
13639
13640         mbsinit: Don't crash for a NULL argument.
13641         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
13642         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
13643
13644 2011-02-13  Bruno Haible  <bruno@clisp.org>
13645
13646         Don't interfere with a program's definition of __attribute__.
13647         * lib/stdio.in.h (__attribute__): Remove definition.
13648         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
13649         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
13650         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
13651         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
13652         * lib/string.in.h (__attribute__): Remove definition.
13653         Reported by Paul Eggert.
13654
13655 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
13656
13657         stdlib: don't get in the way of non-GCC __attribute__
13658         See thread starting at
13659         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
13660         Revert previous stdlib change, installing the following instead:
13661         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
13662         to get in the way of a non-GCC compiler that supports __attribute__.
13663         (_GL_ATTRIBUTE_RETURN): New macro.
13664         (_Exit): Use it instead of __attribute__.
13665
13666 2011-02-12  Bruno Haible  <bruno@clisp.org>
13667
13668         quotearg test: Avoid test failure on mingw.
13669         * tests/test-quotearg.sh: Convert the locale identifier from native
13670         Windows syntax to Unix syntax.
13671
13672 2011-02-12  Bruno Haible  <bruno@clisp.org>
13673
13674         setlocale: Prefer gnulib's override over libintl's override.
13675         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
13676         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
13677         GNULIB_defined_setlocale is set.
13678
13679 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
13680
13681         stdlib: support non-GCC __attribute__
13682
13683         Fix a serious and tricky problem encountered when attempting to
13684         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
13685         5.5, but it crashed due to memory corruption on Solaris 10 with
13686         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
13687         bits that are otherwise zero.  This tagging is optional inside
13688         Emacs but is preferred and is used when __attribute__ ((__aligned
13689         (8))) works, as it does with both recent-enough GCC and with Sun C
13690         5.11.  However, Sun C 5.11 is not GCC and does not #define
13691         __GNUC__ and __GNUC_MINOR__.
13692
13693         When I added the getloadavg module to Emacs, it brought in
13694         stdlib.in.h, which contained this fragment:
13695
13696            #ifndef __attribute__
13697            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
13698            #  define __attribute__(Spec)   /* empty */
13699            # endif
13700            #endif
13701
13702         When files that include <stdlib.h> were compiled with Sun C 5.11,
13703         the above code disabled __attribute__ ((__aligned (8))), which
13704         caused variables to not be properly aligned, which eventually led
13705         to the pointer corruption mentioned above.  (This was a bit hard
13706         to diagnose, unfortunately.)
13707
13708         Several "#define __attribute__(X) /* empty */" code snippets need
13709         to be eradicated from Gnulib to work with non-GCC compilers that
13710         support __attribute__.  The Autoconf way to do this is to test for
13711         each kind of attribute that we want support for, and selectively
13712         enable that in source code.
13713
13714         Fix this problem just for stdlib.h, by adding a test for the
13715         __noreturn__ attribute, and change stdlib.in.h to use that test
13716         when needed.  This technique can be easily generalized to the
13717         other *.in.h files and attributes, and a similar technique can be
13718         used for *.h and *.c files.  This patch is enough to solve the
13719         problem for Emacs + getloadavg, and I thought I'd publish it for
13720         feedback before undertaking further, similar fixes in other
13721         modules.
13722
13723         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
13724         because it's not needed for stdlib.h.  It merely substitutes the
13725         value directly into stdlib.h.  We may well need to #define it, or
13726         similar symbols, for other modules, but it's nice to also have an
13727         option to not #define it for applications like Emacs that do not
13728         need it.
13729
13730         * lib/stdlib.in.h (__attribute__): Do not #define.
13731         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
13732         be defined only if the _Exit module is also used.
13733         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
13734         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
13735         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
13736         platforms.
13737         * modules/_Exit (Files): Add m4/attribute.m4.
13738         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
13739         * m4/attribute.m4: New file.
13740
13741 2011-02-12  Bruno Haible  <bruno@clisp.org>
13742
13743         wcsrtombs: Work around bug on native Windows.
13744         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
13745         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
13746         instead of len.
13747         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
13748
13749 2011-02-12  Bruno Haible  <bruno@clisp.org>
13750
13751         mbsrtowcs: Work around bug on native Windows.
13752         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
13753         against mingw bug.
13754         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
13755
13756 2011-02-12  Bruno Haible  <bruno@clisp.org>
13757
13758         Avoid setlocale bugs in tests.
13759         * modules/btowc (Dependencies): Add setlocale.
13760         * modules/c-strcase (Dependencies): Likewise.
13761         * modules/mbmemcasecmp (Dependencies): Likewise.
13762         * modules/mbmemcasecoll (Dependencies): Likewise.
13763         * modules/mbrtowc (Dependencies): Likewise.
13764         * modules/mbscasecmp (Dependencies): Likewise.
13765         * modules/mbscasestr (Dependencies): Likewise.
13766         * modules/mbschr (Dependencies): Likewise.
13767         * modules/mbscspn (Dependencies): Likewise.
13768         * modules/mbsinit (Dependencies): Likewise.
13769         * modules/mbsncasecmp (Dependencies): Likewise.
13770         * modules/mbsnrtowcs (Dependencies): Likewise.
13771         * modules/mbspbrk (Dependencies): Likewise.
13772         * modules/mbspcasecmp (Dependencies): Likewise.
13773         * modules/mbsrchr (Dependencies): Likewise.
13774         * modules/mbsrtowcs (Dependencies): Likewise.
13775         * modules/mbsspn (Dependencies): Likewise.
13776         * modules/mbsstr (Dependencies): Likewise.
13777         * modules/nl_langinfo (Dependencies): Likewise.
13778         * modules/quotearg (Dependencies): Likewise.
13779         * modules/unicase/locale-language (Dependencies): Likewise.
13780         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
13781         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
13782         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
13783         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
13784         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
13785         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
13786         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
13787         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
13788         * modules/vasnprintf-posix (Dependencies): Likewise.
13789         * modules/wcrtomb (Dependencies): Likewise.
13790         * modules/wcsnrtombs (Dependencies): Likewise.
13791         * modules/wcsrtombs (Dependencies): Likewise.
13792
13793 2011-02-12  Bruno Haible  <bruno@clisp.org>
13794
13795         setlocale: Workaround native Windows bug.
13796         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
13797         succeeds but sets LC_CTYPE to "C", report a failure.
13798         * tests/test-setlocale2.sh: New file.
13799         * tests/test-setlocale2.c: New file.
13800         * modules/setlocale-tests (Files): Add the new files.
13801         (Makefile.am): Enable test-setlocale2.sh test.
13802         * doc/posix-functions/setlocale.texi: Mention workaround.
13803
13804 2011-02-11  Bruno Haible  <bruno@clisp.org>
13805
13806         Tests for module 'setlocale'.
13807         * modules/setlocale-tests: New file.
13808         * tests/test-setlocale1.sh: New file.
13809         * tests/test-setlocale1.c: New file.
13810
13811         New module 'setlocale'.
13812         * lib/locale.in.h (setlocale): New declaration.
13813         * lib/setlocale.c: New file, based on
13814         gettext/gettext-runtime/intl/setlocale.c.
13815         * m4/setlocale.m4: New file.
13816         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
13817         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
13818         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
13819         REPLACE_SETLOCALE.
13820         * modules/setlocale: New file.
13821         * tests/test-locale-c++.cc: Test the declaration of setlocale.
13822         * doc/posix-functions/setlocale.texi: Mention the new module.
13823
13824 2011-02-11  Bruno Haible  <bruno@clisp.org>
13825
13826         Prepare for locale dependent tests on mingw.
13827         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
13828         because it has the wrong locale encoding.
13829         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
13830         French_France.1252 instead of "fr".
13831         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
13832         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
13833         because it has the wrong locale encoding.
13834         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
13835         native Windows, try Turkish_Turkey.65001.
13836         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
13837         Chinese_China.54936.
13838
13839         Prepare for locale dependent tests on mingw.
13840         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
13841         differently.
13842         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
13843         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
13844         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
13845         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
13846
13847 2011-02-11  Eric Blake  <eblake@redhat.com>
13848
13849         strptime: avoid compiler warnings
13850         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
13851         compiler warnings about dead code.
13852         Reported by Daniel P. Berrange.
13853
13854 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
13855
13856         doc: update users.txt
13857         * users.txt: Add rcs.
13858
13859 2011-02-10  John W. Eaton  <jwe@gnu.org>
13860
13861         doc: update users.txt
13862         * users.txt: Add octave.
13863
13864 2011-02-10  Jim Meyering  <meyering@redhat.com>
13865
13866         doc: update users.txt
13867         * users.txt: Add iwhd.
13868
13869 2011-02-09  Bruno Haible  <bruno@clisp.org>
13870
13871         gnulib-tool: Make copyright notice adjustment more robust.
13872         * gnulib-tool (func_import): In sed_transform_main_lib_file,
13873         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
13874         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
13875         License".
13876         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
13877
13878 2011-02-06  Bruno Haible  <bruno@clisp.org>
13879
13880         New module 'towctrans'.
13881         * modules/towctrans: New file.
13882         * lib/wctype.in.h (towctrans): New declaration.
13883         * lib/towctrans.c: New file.
13884         * lib/towctrans-impl.h: New file.
13885         * m4/towctrans.m4: New file.
13886         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
13887         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
13888         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
13889         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
13890         * doc/posix-functions/towctrans.texi: Mention the new module.
13891
13892 2011-02-06  Bruno Haible  <bruno@clisp.org>
13893
13894         New module 'wctrans'.
13895         * modules/wctrans: New file.
13896         * lib/wctype.in.h (wctrans): New declaration.
13897         * lib/wctrans.c: New file.
13898         * lib/wctrans-impl.h: New file.
13899         * m4/wctrans.m4: New file.
13900         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
13901         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
13902         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
13903         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
13904         * doc/posix-functions/wctrans.texi: Mention the new module.
13905
13906 2011-02-06  Bruno Haible  <bruno@clisp.org>
13907
13908         New module 'iswctype'.
13909         * modules/iswctype: New file.
13910         * lib/wctype.in.h (iswctype): New declaration.
13911         * lib/iswctype.c: New file.
13912         * lib/iswctype-impl.h: New file.
13913         * m4/iswctype.m4: New file.
13914         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
13915         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
13916         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
13917         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
13918         * doc/posix-functions/iswctype.texi: Mention the new module and the
13919         HP-UX 11.00 problem.
13920
13921 2011-02-06  Bruno Haible  <bruno@clisp.org>
13922
13923         New module 'wctype'.
13924         * modules/wctype: Change to represent the wctype() substitute.
13925         * lib/wctype.in.h (wctype): New declaration.
13926         * lib/wctype.c: New file.
13927         * lib/wctype-impl.h: New file.
13928         * m4/wctype.m4: New file.
13929         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
13930         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
13931         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
13932         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
13933         * doc/posix-functions/wctype.texi: Mention the new module and the
13934         HP-UX 11.00 problem.
13935
13936 2011-02-06  Bruno Haible  <bruno@clisp.org>
13937
13938         wctype-h: Ensure wctype_t and wctrans_t are defined.
13939         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
13940         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
13941         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
13942         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
13943         HAVE_WCTRANS_T.
13944         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
13945
13946 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
13947
13948         flock: fix license typo
13949
13950         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
13951         omitted.
13952
13953 2011-02-08  Bruno Haible  <bruno@clisp.org>
13954
13955         Split large sed scripts, for HP-UX sed.
13956         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
13957         to avoid HP-UX limit of 99 commands, in the near future.
13958         * modules/stdlib (Makefile.am): Likewise.
13959         * modules/unistd (Makefile.am): Likewise.
13960         * modules/wchar (Makefile.am): Likewise.
13961         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
13962         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
13963         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
13964
13965 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
13966             Bruno Haible  <bruno@clisp.org>
13967
13968         stdlib: improve random_r modularization
13969         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
13970         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
13971         you also need the random_r module to get this material right.
13972         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
13973         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
13974         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
13975
13976 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
13977
13978         stdlib: don't depend on stdint
13979         * lib/stdlib.in.h: Don't include <stdint.h> merely because
13980         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
13981         be independent of whether stdint.h is needed.
13982         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
13983         here, instead of ...
13984         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
13985         struct random_data should be using the random_r module, not just
13986         the stdlib module (which wouldn't make sense: what package needs
13987         just struct random_data without also needing random_r?).
13988         * modules/stdlib (Depends-on): Remove stdint.
13989
13990         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
13991         See the thread rooted at
13992         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
13993         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
13994         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
13995         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
13996         __VMS)); previously it was always included (via fcntl--.h).
13997         (getloadavg): Do not use c_strtod.  Instead, approximate it by
13998         hand; this is good enough for load averages.  Also, do not use
13999         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
14000         flags directly if available and don't bother otherwise.  (Packages
14001         that need the extra reliability should use the modules that define
14002         these flags on older platforms that lack them.)
14003         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
14004         fcntl-safer.
14005
14006 2011-02-08  Jim Meyering  <meyering@redhat.com>
14007
14008         di-set.h, ino-map.h: add multiple-inclusion guard
14009         Technically, the guard is required only for ino-map.h, due to its
14010         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
14011         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
14012         * lib/ino-map.h: Likewise.
14013
14014 2011-02-06  Bruno Haible  <bruno@clisp.org>
14015
14016         iswblank: Ensure declaration on glibc systems.
14017         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
14018         * modules/iswblank (Dependencies): Add 'extensions'.
14019         * doc/posix-functions/iswblank.texi: Document the glibc problem.
14020
14021 2011-02-06  Bruno Haible  <bruno@clisp.org>
14022
14023         New module 'iswblank'.
14024         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
14025         * modules/iswblank: New file.
14026         * modules/wctype-h (Files): Remove lib/iswblank.c.
14027         (Makefile.am): Substitute GNULIB_ISWBLANK.
14028         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
14029         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
14030         (gl_WCTYPE_H_DEFAULTS): New macro.
14031         (gl_WCTYPE_H): Require it. Remove iswblank related code.
14032         * modules/iswblank-tests: New file.
14033         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
14034         * tests/test-wctype-h.c (main): Remove iswblank tests.
14035         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
14036         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
14037         of 'wctype-h'.
14038         * NEWS: Mention the change.
14039         * modules/mbchar (Depends-on): Add iswblank.
14040
14041 2011-02-08  Bruno Haible  <bruno@clisp.org>
14042
14043         di-set tests: Refactor.
14044         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
14045         unnecessary includes.
14046         (ASSERT): Remove macro.
14047         (main): Make C90 compliant by avoiding variable declaration after
14048         statement.
14049         * modules/di-set-tests (Files): Add tests/macros.h.
14050
14051 2011-02-08  Bruno Haible  <bruno@clisp.org>
14052
14053         ino-map tests: Refactor.
14054         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
14055         unnecessary includes.
14056         (ASSERT): Remove macro.
14057         (main): Make C90 compliant by avoiding variable declaration after
14058         statement.
14059         * modules/ino-map-tests (Files): Add tests/macros.h.
14060
14061 2011-02-08  Jim Meyering  <meyering@redhat.com>
14062
14063         di-set: add "const" to a cast
14064         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
14065         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
14066
14067 2011-02-06  Bruno Haible  <bruno@clisp.org>
14068
14069         Rename module 'wctype' to 'wctype-h'.
14070         * modules/wctype-h: Renamed from modules/wctype.
14071         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
14072         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
14073         (Files, Depends-on, Makefile.am): Update.
14074         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
14075         (Files, Makefile.am): Update.
14076         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
14077         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
14078         * doc/posix-headers/wctype.texi: Update.
14079         * doc/posix-functions/iswalnum.texi: Update.
14080         * doc/posix-functions/iswalpha.texi: Update.
14081         * doc/posix-functions/iswblank.texi: Update.
14082         * doc/posix-functions/iswcntrl.texi: Update.
14083         * doc/posix-functions/iswdigit.texi: Update.
14084         * doc/posix-functions/iswgraph.texi: Update.
14085         * doc/posix-functions/iswlower.texi: Update.
14086         * doc/posix-functions/iswprint.texi: Update.
14087         * doc/posix-functions/iswpunct.texi: Update.
14088         * doc/posix-functions/iswspace.texi: Update.
14089         * doc/posix-functions/iswupper.texi: Update.
14090         * doc/posix-functions/iswxdigit.texi: Update.
14091         * doc/posix-functions/towlower.texi: Update.
14092         * doc/posix-functions/towupper.texi: Update.
14093         * NEWS: Mention the change.
14094         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
14095         * modules/mbchar (Dependencies): Likewise.
14096         * modules/mbswidth (Dependencies): Likewise.
14097         * modules/quotearg (Dependencies): Likewise.
14098         * modules/regex (Dependencies): Likewise.
14099         * modules/wcscasecmp (Dependencies): Likewise.
14100         * modules/wcsncasecmp (Dependencies): Likewise.
14101         * modules/wcwidth (Dependencies): Likewise.
14102
14103 2011-02-06  Bruno Haible  <bruno@clisp.org>
14104
14105         New module 'wcswidth'.
14106         * modules/wcswidth: New file.
14107         * lib/wchar.in.h (wcswidth): New declaration.
14108         * lib/wcswidth.c: New file.
14109         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
14110         * m4/wcswidth.m4: New file.
14111         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
14112         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
14113         REPLACE_WCSWIDTH.
14114         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
14115         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
14116         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
14117         * doc/posix-functions/wcswidth.texi: Mention the new module.
14118
14119 2011-02-06  Bruno Haible  <bruno@clisp.org>
14120
14121         New module 'wcstok'.
14122         * modules/wcstok: New file.
14123         * lib/wchar.in.h (wcstok): New declaration.
14124         * lib/wcstok.c: New file.
14125         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
14126         * m4/wcstok.m4: New file.
14127         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
14128         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
14129         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
14130         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
14131         * doc/posix-functions/wcstok.texi: Mention the new module.
14132
14133 2011-02-06  Bruno Haible  <bruno@clisp.org>
14134
14135         New module 'wcsstr'.
14136         * modules/wcsstr: New file.
14137         * lib/wchar.in.h (wcsstr): New declaration.
14138         * lib/wcsstr.c: New file.
14139         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
14140         * m4/wcsstr.m4: New file.
14141         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
14142         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
14143         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
14144         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
14145         * doc/posix-functions/wcsstr.texi: Mention the new module.
14146
14147 2011-02-06  Bruno Haible  <bruno@clisp.org>
14148
14149         New module 'wcspbrk'.
14150         * modules/wcspbrk: New file.
14151         * lib/wchar.in.h (wcspbrk): New declaration.
14152         * lib/wcspbrk.c: New file.
14153         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
14154         * m4/wcspbrk.m4: New file.
14155         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
14156         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
14157         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
14158         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
14159         * doc/posix-functions/wcspbrk.texi: Mention the new module.
14160
14161 2011-02-06  Bruno Haible  <bruno@clisp.org>
14162
14163         New module 'wcsspn'.
14164         * modules/wcsspn: New file.
14165         * lib/wchar.in.h (wcsspn): New declaration.
14166         * lib/wcsspn.c: New file.
14167         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
14168         * m4/wcsspn.m4: New file.
14169         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
14170         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
14171         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
14172         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
14173         * doc/posix-functions/wcsspn.texi: Mention the new module.
14174
14175 2011-02-06  Bruno Haible  <bruno@clisp.org>
14176
14177         New module 'wcscspn'.
14178         * modules/wcscspn: New file.
14179         * lib/wchar.in.h (wcscspn): New declaration.
14180         * lib/wcscspn.c: New file.
14181         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
14182         * m4/wcscspn.m4: New file.
14183         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
14184         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
14185         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
14186         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
14187         * doc/posix-functions/wcscspn.texi: Mention the new module.
14188
14189 2011-02-06  Bruno Haible  <bruno@clisp.org>
14190
14191         New module 'wcsrchr'.
14192         * modules/wcsrchr: New file.
14193         * lib/wchar.in.h (wcsrchr): New declaration.
14194         * lib/wcsrchr.c: New file.
14195         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
14196         * m4/wcsrchr.m4: New file.
14197         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
14198         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
14199         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
14200         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
14201         * doc/posix-functions/wcsrchr.texi: Mention the new module.
14202
14203 2011-02-06  Bruno Haible  <bruno@clisp.org>
14204
14205         New module 'wcschr'.
14206         * modules/wcschr: New file.
14207         * lib/wchar.in.h (wcschr): New declaration.
14208         * lib/wcschr.c: New file.
14209         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
14210         * m4/wcschr.m4: New file.
14211         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
14212         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
14213         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
14214         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
14215         * doc/posix-functions/wcschr.texi: Mention the new module.
14216
14217 2011-02-06  Bruno Haible  <bruno@clisp.org>
14218
14219         New module 'wcsdup'.
14220         * modules/wcsdup: New file.
14221         * lib/wchar.in.h (wcsdup): New declaration.
14222         * lib/wcsdup.c: New file.
14223         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
14224         * m4/wcsdup.m4: New file.
14225         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
14226         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
14227         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
14228         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
14229         * doc/posix-functions/wcsdup.texi: Mention the new module.
14230
14231 2011-02-06  Bruno Haible  <bruno@clisp.org>
14232
14233         New module 'wcsxfrm'.
14234         * modules/wcsxfrm: New file.
14235         * lib/wchar.in.h (wcsxfrm): New declaration.
14236         * lib/wcsxfrm.c: New file.
14237         * lib/wcsxfrm-impl.h: New file.
14238         * m4/wcsxfrm.m4: New file.
14239         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
14240         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
14241         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
14242         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
14243         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
14244
14245 2011-02-06  Bruno Haible  <bruno@clisp.org>
14246
14247         New module 'wcscoll'.
14248         * modules/wcscoll: New file.
14249         * lib/wchar.in.h (wcscoll): New declaration.
14250         * lib/wcscoll.c: New file.
14251         * lib/wcscoll-impl.h: New file.
14252         * m4/wcscoll.m4: New file.
14253         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
14254         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
14255         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
14256         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
14257         * doc/posix-functions/wcscoll.texi: Mention the new module.
14258
14259 2011-02-06  Bruno Haible  <bruno@clisp.org>
14260
14261         New module 'wcsncasecmp'.
14262         * modules/wcsncasecmp: New file.
14263         * lib/wchar.in.h (wcsncasecmp): New declaration.
14264         * lib/wcsncasecmp.c: New file.
14265         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
14266         * m4/wcsncasecmp.m4: New file.
14267         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
14268         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
14269         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
14270         HAVE_WCSNCASECMP.
14271         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
14272         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
14273
14274 2011-02-06  Bruno Haible  <bruno@clisp.org>
14275
14276         New module 'wcscasecmp'.
14277         * modules/wcscasecmp: New file.
14278         * lib/wchar.in.h (wcscasecmp): New declaration.
14279         * lib/wcscasecmp.c: New file.
14280         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
14281         * m4/wcscasecmp.m4: New file.
14282         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
14283         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
14284         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
14285         HAVE_WCSCASECMP.
14286         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
14287         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
14288
14289 2011-02-05  Bruno Haible  <bruno@clisp.org>
14290
14291         New module 'wcsncmp'.
14292         * modules/wcsncmp: New file.
14293         * lib/wchar.in.h (wcsncmp): New declaration.
14294         * lib/wcsncmp.c: New file.
14295         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
14296         * m4/wcsncmp.m4: New file.
14297         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
14298         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
14299         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
14300         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
14301         * doc/posix-functions/wcsncmp.texi: Mention the new module.
14302
14303 2011-02-05  Bruno Haible  <bruno@clisp.org>
14304
14305         New module 'wcscmp'.
14306         * modules/wcscmp: New file.
14307         * lib/wchar.in.h (wcscmp): New declaration.
14308         * lib/wcscmp.c: New file.
14309         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
14310         * m4/wcscmp.m4: New file.
14311         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
14312         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
14313         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
14314         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
14315         * doc/posix-functions/wcscmp.texi: Mention the new module.
14316
14317 2011-02-05  Bruno Haible  <bruno@clisp.org>
14318
14319         New module 'wcsncat'.
14320         * modules/wcsncat: New file.
14321         * lib/wchar.in.h (wcsncat): New declaration.
14322         * lib/wcsncat.c: New file.
14323         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
14324         * m4/wcsncat.m4: New file.
14325         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
14326         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
14327         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
14328         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
14329         * doc/posix-functions/wcsncat.texi: Mention the new module.
14330
14331 2011-02-05  Bruno Haible  <bruno@clisp.org>
14332
14333         New module 'wcscat'.
14334         * modules/wcscat: New file.
14335         * lib/wchar.in.h (wcscat): New declaration.
14336         * lib/wcscat.c: New file.
14337         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
14338         * m4/wcscat.m4: New file.
14339         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
14340         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
14341         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
14342         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
14343         * doc/posix-functions/wcscat.texi: Mention the new module.
14344
14345 2011-02-05  Bruno Haible  <bruno@clisp.org>
14346
14347         New module 'wcpncpy'.
14348         * modules/wcpncpy: New file.
14349         * lib/wchar.in.h (wcpncpy): New declaration.
14350         * lib/wcpncpy.c: New file.
14351         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
14352         * m4/wcpncpy.m4: New file.
14353         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
14354         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
14355         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
14356         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
14357         * doc/posix-functions/wcpncpy.texi: Mention the new module.
14358
14359 2011-02-05  Bruno Haible  <bruno@clisp.org>
14360
14361         New module 'wcsncpy'.
14362         * modules/wcsncpy: New file.
14363         * lib/wchar.in.h (wcsncpy): New declaration.
14364         * lib/wcsncpy.c: New file.
14365         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
14366         * m4/wcsncpy.m4: New file.
14367         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
14368         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
14369         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
14370         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
14371         * doc/posix-functions/wcsncpy.texi: Mention the new module.
14372
14373 2011-02-05  Bruno Haible  <bruno@clisp.org>
14374
14375         New module 'wcpcpy'.
14376         * modules/wcpcpy: New file.
14377         * lib/wchar.in.h (wcpcpy): New declaration.
14378         * lib/wcpcpy.c: New file.
14379         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
14380         * m4/wcpcpy.m4: New file.
14381         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
14382         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
14383         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
14384         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
14385         * doc/posix-functions/wcpcpy.texi: Mention the new module.
14386
14387 2011-02-05  Bruno Haible  <bruno@clisp.org>
14388
14389         New module 'wcscpy'.
14390         * modules/wcscpy: New file.
14391         * lib/wchar.in.h (wcscpy): New declaration.
14392         * lib/wcscpy.c: New file.
14393         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
14394         * m4/wcscpy.m4: New file.
14395         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
14396         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
14397         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
14398         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
14399         * doc/posix-functions/wcscpy.texi: Mention the new module.
14400
14401 2011-02-05  Bruno Haible  <bruno@clisp.org>
14402
14403         New module 'wcsnlen'.
14404         * modules/wcsnlen: New file.
14405         * lib/wchar.in.h (wcsnlen): New declaration.
14406         * lib/wcsnlen.c: New file.
14407         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
14408         * m4/wcsnlen.m4: New file.
14409         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
14410         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
14411         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
14412         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
14413         * doc/posix-functions/wcsnlen.texi: Mention the new module.
14414
14415 2011-02-05  Bruno Haible  <bruno@clisp.org>
14416
14417         New module 'wcslen'.
14418         * modules/wcslen: New file.
14419         * lib/wchar.in.h (wcslen): New declaration.
14420         * lib/wcslen.c: New file.
14421         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
14422         * m4/wcslen.m4: New file.
14423         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
14424         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
14425         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
14426         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
14427         * doc/posix-functions/wcslen.texi: Mention the new module.
14428
14429 2011-02-05  Bruno Haible  <bruno@clisp.org>
14430
14431         New module 'wmemset'.
14432         * modules/wmemset: New file.
14433         * lib/wchar.in.h (wmemset): New declaration.
14434         * lib/wmemset.c: New file.
14435         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
14436         * m4/wmemset.m4: New file.
14437         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
14438         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
14439         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
14440         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
14441         * doc/posix-functions/wmemset.texi: Mention the new module.
14442
14443 2011-02-05  Bruno Haible  <bruno@clisp.org>
14444
14445         New module 'wmemmove'.
14446         * modules/wmemmove: New file.
14447         * lib/wchar.in.h (wmemmove): New declaration.
14448         * lib/wmemmove.c: New file.
14449         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
14450         * m4/wmemmove.m4: New file.
14451         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
14452         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
14453         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
14454         HAVE_WMEMMOVE.
14455         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
14456         * doc/posix-functions/wmemmove.texi: Mention the new module.
14457
14458 2011-02-05  Bruno Haible  <bruno@clisp.org>
14459
14460         New module 'wmemcpy'.
14461         * modules/wmemcpy: New file.
14462         * lib/wchar.in.h (wmemcpy): New declaration.
14463         * lib/wmemcpy.c: New file.
14464         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
14465         * m4/wmemcpy.m4: New file.
14466         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
14467         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
14468         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
14469         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
14470         * doc/posix-functions/wmemcpy.texi: Mention the new module.
14471
14472 2011-02-05  Bruno Haible  <bruno@clisp.org>
14473
14474         New module 'wmemcmp'.
14475         * modules/wmemcmp: New file.
14476         * lib/wchar.in.h (wmemcmp): New declaration.
14477         * lib/wmemcmp.c: New file.
14478         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
14479         * m4/wmemcmp.m4: New file.
14480         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
14481         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
14482         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
14483         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
14484         * doc/posix-functions/wmemcmp.texi: Mention the new module.
14485
14486 2011-02-07  Jim Meyering  <meyering@redhat.com>
14487
14488         di-set, ino-map: new modules, from coreutils
14489         * lib/di-set.c: New file.
14490         * lib/di-set.h: Likewise.
14491         * lib/ino-map.c: Likewise.
14492         * lib/ino-map.h: Likewise.
14493         * modules/di-set: Likewise.
14494         * modules/di-set-tests: Likewise.
14495         * modules/ino-map: Likewise.
14496         * modules/ino-map-tests: Likewise.
14497         * tests/test-di-set.c: Likewise.
14498         * tests/test-ino-map.c: Likewise.
14499
14500 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
14501
14502         getloadavg: merge minor changes from Emacs
14503
14504         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
14505         (getloadavg): Use memset, not bzero.
14506
14507         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
14508         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
14509         clash (bug#86).
14510
14511 2010-11-14  Bruno Haible  <bruno@clisp.org>
14512
14513         Allow multiple gnulib generated replacements to coexist.
14514         * lib/getopt.in.h (struct option): Avoid identical redefinition.
14515         * lib/inttypes.in.h (imaxdiv_t): Likewise.
14516         * lib/langinfo.in.h (nl_item): Likewise.
14517         * lib/math.in.h (_NaN, NAN): Likewise.
14518         * lib/netdb.in.h (struct addrinfo): Likewise.
14519         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
14520         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
14521         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
14522         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
14523         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
14524         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
14525         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
14526         pthread_mutexattr_init, pthread_mutexattr_settype,
14527         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
14528         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
14529         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
14530         pthread_spin_trylock, pthread_spin_unlock): Likewise.
14531         * lib/sched.in.h (struct sched_param): Likewise.
14532         * lib/se-selinux.in.h (security_class_t, security_context_t,
14533         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
14534         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
14535         lsetfilecon, fsetfilecon, security_check_context,
14536         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
14537         Likewise.
14538         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
14539         Likewise.
14540         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
14541         _gl_function_taking_int_returning_void_t, union sigval,
14542         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
14543         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
14544         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
14545         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
14546         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
14547         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
14548         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
14549         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
14550         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
14551         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
14552         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
14553         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
14554         socklen_t, rpl_fd_isset): Likewise.
14555         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
14556         * lib/sys_time.in.h (struct timeval): Likewise.
14557         * lib/sys_times.in.h (struct tms): Likewise.
14558         * lib/sys_utsname.in.h (struct utsname):
14559         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
14560         * lib/unistd.in.h (getpagesize): Likewise.
14561         * lib/wchar.in.h (mbstate_t): Likewise.
14562         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
14563         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
14564         towlower, towupper): Likewise.
14565         Reported by Sam Steingold <sds@gnu.org>.
14566
14567 2011-02-05  Eric Blake  <eblake@redhat.com>
14568
14569         unsetenv: work around Haiku issues
14570         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
14571         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
14572
14573 2010-12-30  Bruce Korb  <bkorb@gnu.org>
14574
14575         libposix: avoid calling error() within libposix
14576         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
14577         is defined.
14578
14579 2011-02-05  Eric Blake  <eblake@redhat.com>
14580
14581         strerror_r-posix: port to cygwin
14582         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
14583         implementation.
14584         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
14585         * tests/test-strerror_r.c (main): Fix test.
14586         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
14587         issue.
14588
14589 2011-02-05  Bruno Haible  <bruno@clisp.org>
14590
14591         New module 'wmemchr'.
14592         * modules/wmemchr: New file.
14593         * lib/wchar.in.h (wmemchr): New declaration.
14594         * lib/wmemchr.c: New file.
14595         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
14596         * m4/wmemchr.m4: New file.
14597         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
14598         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
14599         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
14600         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
14601         * doc/posix-functions/wmemchr.texi: Mention the new module.
14602
14603 2011-02-04  Eric Blake  <eblake@redhat.com>
14604
14605         fdopendir: detect FreeBSD bug
14606         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
14607         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
14608
14609 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
14610
14611         stdbool: do not define HAVE_STDBOOL_H
14612         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
14613         AC_HEADER_STDBOOL.  All uses changed.  Do not define
14614         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
14615         imported from the latest Autoconf git.  It was motivated by Emacs,
14616         which uses gnulib but does not need HAVE_STDBOOL_H.
14617
14618 2011-02-04  Bruno Haible  <bruno@clisp.org>
14619
14620         wcsnrtombs: Prepare for new module wwcsnrtombs.
14621         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
14622         * lib/wcsnrtombs.c: Include it.
14623         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
14624
14625         wcsrtombs: Prepare for new module wwcsrtombs.
14626         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
14627         * lib/wcsrtombs.c: Include it.
14628         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
14629
14630         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
14631         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
14632         * lib/mbsnrtowcs.c: Include it.
14633         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
14634
14635         mbsrtowcs: Prepare for new module mbsrtowwcs.
14636         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
14637         * lib/mbsrtowcs.c: Include it.
14638         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
14639
14640 2011-02-04  Bruno Haible  <bruno@clisp.org>
14641
14642         vasnprintf: Reduce use of malloc for small format strings.
14643         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
14644         (arguments): Add room for the first 7 arguments.
14645         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
14646         (char_directives, u8_directives, u16_directives, u32_directives): Add
14647         room for the first 7 directives.
14648         * lib/printf-parse.c: Include <string.h>.
14649         (PRINTF_PARSE): Change memory handling code so that it uses the first
14650         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
14651         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
14652         Reported by Pádraig Brady <P@draigbrady.com>.
14653
14654 2011-01-31  Eric Blake  <eblake@redhat.com>
14655
14656         dup2: work around Haiku bug
14657         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
14658         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
14659         * doc/posix-functions/dup2.texi (dup2): Document the bug.
14660         * tests/test-dup2.c (main): Enhance test.
14661
14662 2011-01-31  Simon Josefsson  <simon@josefsson.org>
14663
14664         doc: off_t is not available in eglibc 2.11.2 stdio.h.
14665         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
14666         declared by eglibc 2.11.2.
14667         * lib/stdio.in.h: Likewise.
14668
14669 2011-01-31  Eric Blake  <eblake@redhat.com>
14670
14671         ignore-value: add missing test dependency
14672         * tests/test-ignore-value.c: Revert previous change; stdio.h
14673         provides off_t.
14674         * modules/ignore-value-tests (Depends-on): Add missing dependency.
14675
14676 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
14677
14678         mktime: clarify long_int width checking
14679         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
14680         the top level, to make it clearer that the assumption about
14681         long_int width is being checked.  See
14682         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
14683
14684 2011-01-30  Simon Josefsson  <simon@josefsson.org>
14685
14686         ignore-value: Fix self-test.
14687         * tests/test-ignore-value.c: Include sys/types.h for off_t.
14688
14689 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
14690
14691         TYPE_MAXIMUM: avoid theoretically undefined behavior
14692         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
14693         negative number, which the C Standard says has undefined behavior.
14694         In practice this is not a problem, but might as well do it by the book.
14695         Reported by Rich Felker and Eric Blake; see
14696         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
14697         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
14698         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
14699         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
14700         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
14701         * m4/stdint.m4 (gl_STDINT_H): Likewise.
14702         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
14703
14704         mktime: #undef mktime before #defining it
14705         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
14706
14707         mktime: systematically normalize tm_isdst comparisons
14708         * lib/mktime.c (isdst_differ): New function.
14709         (__mktime_internal): Use it systematically for all isdst comparisons.
14710         This completes the fix for libc BZ #6723, and removes the need for
14711         normalizing tm_isdst.  See
14712         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
14713         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
14714
14715         mktime: fix some integer overflow issues and sidestep the rest
14716
14717         This was prompted by a bug report by Benjamin Lindner for MinGW
14718         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
14719         His bug is due to signed integer overflow (0 - INT_MIN), and I
14720         I scanned through mktime.c looking for other integer overflow
14721         problems, fixing all the bugs I found.
14722
14723         Although the C Standard says the resulting code is still not safe
14724         in the presence of integer overflow, in practice it should be good
14725         enough for all real-world two's-complement implementations, except
14726         for debugging environments that deliberately trap on integer
14727         overflow (e.g., gcc -ftrapv).
14728
14729         * lib/mktime.c (WRAPV): New macro.
14730         (SHR): Also check that long_int and time_t shift right in the
14731         usual way, before using the fast-but-unportable method.
14732         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
14733         used.  The code already assumed two's complement, so there's
14734         no need to test for alternatives.  All uses removed.
14735         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
14736         the C standard.  Problem reported by Rich Felker in
14737         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
14738         (twos_complement_arithmetic): Also check long_int and time_t.
14739         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
14740         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
14741         (__mktime_internal): Avoid integer overflow with unary subtraction
14742         in two instances where -1 - X is an adequate replacement for -X,
14743         since the calculations are approximate.
14744
14745 2011-01-29  Eric Blake  <eblake@redhat.com>
14746
14747         mktime: avoid infinite loop
14748         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
14749         type; behavior is still undefined but portable to all known targets.
14750         Reported by Rich Felker.
14751
14752 2011-01-29  Simon Josefsson  <simon@josefsson.org>
14753
14754         rename, unlink, same-inode: Relicense.
14755         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
14756         * modules/unlink (License): Likewise.
14757         * modules/same-inode (License): Likewise.
14758
14759 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
14760
14761         mktime: avoid problems on NetBSD 5 / i386
14762         * lib/mktime.c (long_int): New type.  This works around a problem
14763         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
14764         but time_t is 64 bits, and where I expect the existing code is
14765         wrong in some cases.
14766         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
14767         (ydhms_diff): Bring back the compile-time check for wide-enough
14768         year and yday.
14769
14770         mktime: fix misspelling in comment
14771         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
14772         This merges all recent glibc changes of importance.
14773
14774 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14775
14776         move-if-change: cope with concurrent mv of identical file.
14777         * build-aux/move-if-change (CMPPROG): Accept environment
14778         variable as an override for `cmp'.
14779         (usage): Document CMPPROG.
14780         Adjust comparison to drop stdout.  Cope with failure of mv if
14781         the target file exists and is identical to the source, for
14782         parallel builds.
14783         Report from H.J. Lu against binutils in PR binutils/12283.
14784
14785 2011-01-28  Bruce Korb  <bkorb@gnu.org>
14786
14787         * users.txt: Mention sharutils.
14788
14789 2011-01-28  Simon Josefsson  <simon@josefsson.org>
14790
14791         * users.txt: Mention OATH Toolkit.
14792
14793 2011-01-27  Bruno Haible  <bruno@clisp.org>
14794
14795         Prepare for supporting FreeBSD 10.
14796         * build-aux/config.libpath: Remove handling of freebsd1*.
14797
14798 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
14799
14800         Prepare for supporting FreeBSD 10.
14801         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
14802         match FreeBSD 10.0.
14803
14804 2011-01-27  Bruno Haible  <bruno@clisp.org>
14805
14806         vma-iter, get-rusage-as: Add OpenBSD support.
14807         * modules/vma-iter (configure.ac): Test for mquery.
14808         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
14809         * lib/vma-iter.c: Include <sys/mman.h>.
14810         (vma_iterate): Add an implementation based on mquery().
14811         * lib/resource-ext.h (get_rusage_as): Update comments.
14812         * lib/get-rusage-as.c: Likewise.
14813         * lib/get-rusage-data.c: Likewise.
14814
14815 2011-01-26  Karl Berry  <karl@gnu.org>
14816
14817         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
14818         variables to make it easier to override the makeinfo program used.
14819
14820 2011-01-26  Eric Blake  <eblake@redhat.com>
14821
14822         fcntl: work around Haiku F_DUPFD bugs
14823         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
14824         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
14825         cloexec bit on duplication.
14826         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
14827
14828 2011-01-26  Bruno Haible  <bruno@clisp.org>
14829
14830         Enable memory leak tests on AIX.
14831         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
14832         * tests/test-fprintf-posix3.c (main): Likewise.
14833
14834 2011-01-26  Bruno Haible  <bruno@clisp.org>
14835
14836         Tests for module 'get-rusage-data'.
14837         * modules/get-rusage-data-tests: New file.
14838         * tests/test-get-rusage-data.c: New file.
14839
14840         New module 'get-rusage-data'.
14841         * lib/resource-ext.h (get_rusage_data): New declaration.
14842         * lib/get-rusage-data.c: New file.
14843         * modules/get-rusage-data: New file.
14844
14845 2011-01-25  Bruno Haible  <bruno@clisp.org>
14846
14847         get-rusage-as: Allow for easier testing.
14848         * lib/resource-ext.h (get_rusage_as): Add comment.
14849         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
14850         (main): New function for interactive testing.
14851
14852 2011-01-25  Bruno Haible  <bruno@clisp.org>
14853
14854         vma-iter: Treat Haiku like BeOS.
14855         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
14856         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
14857
14858 2011-01-25  Eric Blake  <eblake@redhat.com>
14859
14860         c-stack: fix regression on cygwin when libsigsegv is present
14861         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
14862
14863 2011-01-24  Bruno Haible  <bruno@clisp.org>
14864
14865         vma-iter: Avoid empty intervals.
14866         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
14867         on an empty interval.
14868
14869 2011-01-24  Jim Meyering  <meyering@redhat.com>
14870
14871         u64: remove unnecessary #include
14872         * lib/u64.h: Don't include <stddef.h>.  It was not used.
14873
14874 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
14875
14876         Allow the user to avoid the HAVE_RAW_DECL_* macros.
14877         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
14878
14879 2011-01-23  Bruno Haible  <bruno@clisp.org>
14880
14881         New module 'vma-iter'.
14882         * lib/vma-iter.h: New file.
14883         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
14884         * modules/vma-iter: New file.
14885         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
14886         for get_rusage_as_via_iterator.
14887         (vma_iterate_callback): New function.
14888         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
14889         * modules/get-rusage-as (Depends-on): Add vma-iter.
14890
14891 2011-01-23  Bruno Haible  <bruno@clisp.org>
14892
14893         uninorm: Tweak includes.
14894         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
14895         Reported by Jim Meyering.
14896
14897 2011-01-23  Bruno Haible  <bruno@clisp.org>
14898
14899         get-rusage-as: Improve on NetBSD.
14900         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
14901         /proc, like on FreeBSD.
14902
14903 2011-01-23  Jim Meyering  <meyering@redhat.com>
14904
14905         xreadlink.h: remove unnecessary #include
14906         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
14907
14908         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
14909         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
14910
14911 2011-01-23  Bruno Haible  <bruno@clisp.org>
14912
14913         get-rusage-as: Fix bug.
14914         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
14915         original limit when aborting the first loop.
14916
14917 2011-01-23  Bruno Haible  <bruno@clisp.org>
14918
14919         wctype: Ensure valid C syntax.
14920         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
14921         unconditionally, instead of gl_NEXT_HEADERS conditionally.
14922
14923 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
14924
14925         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
14926         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
14927         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
14928         as they are needed only for configure's test case.
14929         This removes two unnecessary symbols from config.h.
14930
14931         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
14932         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
14933         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
14934         AC_CHECK_HEADERS_ONCE on a header that we also invoke
14935         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
14936         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
14937         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
14938         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
14939         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
14940         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
14941         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
14942         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
14943         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
14944         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
14945         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
14946         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
14947         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
14948         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
14949
14950 2011-01-21  Eric Blake  <eblake@redhat.com>
14951
14952         maintainer-makefile: work with older git for submodule check
14953         * top/maint.mk (public-submodule-commit): Rewrite to avoid
14954         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
14955         Reported by Matthias Bolte.
14956
14957         bootstrap: minor portability fixes
14958         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
14959         (usage): Omit leading capital and trailing . on help phrases, per
14960         GNU Coding Standards.
14961         (check_versions, top level): Prefix messages with script name.
14962
14963 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
14964
14965         bootstrap: support --no-git option
14966         * build-aux/bootstrap: Add --no-git option, to be used when
14967         --gnulib-srcdir points to the exact desired checkout.
14968
14969 2011-01-21  Eric Blake  <eblake@redhat.com>
14970
14971         strerror_r-posix: work with glibc 2.13
14972         * lib/strerror_r.c (strerror_r): Fix return type.
14973
14974 2011-01-21  Pádraig Brady  <P@draigBrady.com>
14975             Bruno Haible  <bruno@clisp.org>
14976
14977         uN_strstr: New unit tests.
14978         * modules/unistr/u8-strstr-tests: New file.
14979         * modules/unistr/u16-strstr-tests: New file.
14980         * modules/unistr/u32-strstr-tests: New file.
14981         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
14982         * tests/unistr/test-u8-strstr.c: New file.
14983         * tests/unistr/test-u16-strstr.c: New file.
14984         * tests/unistr/test-u32-strstr.c: New file.
14985
14986 2011-01-21  Pádraig Brady  <P@draigBrady.com>
14987             Bruno Haible  <bruno@clisp.org>
14988
14989         Make uN_strstr functions O(n) worst-case.
14990         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
14991         16-bit and 32-bit unit cases, use the unibyte algorithm from
14992         lib/mbsstr.c.
14993         * lib/unistr/u8-strstr.c: Include <string.h>.
14994         (UNIT_IS_UINT8_T): New macro.
14995         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
14996         (U_STRLEN, U_STRNLEN): New macros.
14997         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
14998         (U_STRLEN, U_STRNLEN): New macros.
14999         * modules/unistr/u8-strstr (Depends-on): Add strstr.
15000         (configure.ac): Update required libunistring version.
15001         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
15002         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
15003         malloca.
15004         (configure.ac): Update required libunistring version.
15005         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
15006         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
15007         malloca.
15008         (configure.ac): Update required libunistring version.
15009
15010 2011-01-21  Pádraig Brady  <P@draigBrady.com>
15011             Bruno Haible  <bruno@clisp.org>
15012
15013         Prepare for faster uN_strstr functions.
15014         * lib/str-kmp.h: Support definable UNITs.
15015         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
15016         needle_len argument.
15017         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
15018         * lib/mbscasestr.c (mbscasestr): Likewise.
15019
15020 2011-01-21  Pádraig Brady <P@draigBrady.com>
15021
15022         malloca-tests: make faster by unsetting MALLOC_PERTURB_
15023         * tests/test-malloca.c (main): Unset the environment variable
15024         to greatly speed up the test.
15025         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
15026         * modules/malloca-tests: Depend on unsetenv.
15027
15028 2011-01-21  Pádraig Brady <P@draigBrady.com>
15029
15030         ignore-value: remove stdint dependency
15031         * lib/ignore-value.h: Remove <stdint.h>
15032         * modules/ignore-value: Remove stdint dependency.
15033
15034 2011-01-21  Jim Meyering  <meyering@redhat.com>
15035
15036         maint.mk: adjust variable name to be consistent with other gl_ vars
15037         * top/maint.mk (gl_public_submodule_commit): Rename the variable
15038         to be lower case.
15039
15040 2011-01-20  Jim Meyering  <meyering@redhat.com>
15041
15042         maint.mk: make "check" depend on public-submodule-commit by default
15043         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
15044
15045 2011-01-20  Bruno Haible  <bruno@clisp.org>
15046
15047         mbfile, mbiter: Complete change from 2008-12-21.
15048         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
15049         * m4/mbiter.m4 (gl_MBITER): Likewise.
15050
15051 2011-01-20  Jim Meyering  <meyering@redhat.com>
15052
15053         init.sh: insert space between each function name and "()"
15054         * tests/init.sh: Make it a little easier to see that a function's
15055         name is "warn_", and not "warn" when looking at the first part of
15056         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
15057
15058 2011-01-20  Jim Meyering  <meyering@redhat.com>
15059
15060         mountlist: clean up code formatting
15061         * lib/mountlist.c (read_file_system_list): Split a long line,
15062         correct bracing style, use NULL in place of "(struct statfs *)0",
15063         don't parenthesize return value, add spaces around "=" and after
15064         ";-in-for-stmt".
15065
15066 2011-01-14  Markus Duft <mduft@gentoo.org>
15067
15068         mountlist: add support for Interix
15069         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
15070         Apply statvfs to all entries of /dev/fs.
15071         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
15072         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
15073
15074 2011-01-20  Jim Meyering  <meyering@redhat.com>
15075
15076         maint.mk: improve the public-submodule-commit rule
15077         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
15078         to suppress printing of its commands... unless V=1.
15079         Add git submodule's --quiet option to suppress printing of e.g.,
15080         "Entering gnulib" output.
15081         "cd" into $(srcdir) before running git submodule.
15082
15083 2011-01-20  Bruno Haible  <bruno@clisp.org>
15084
15085         include_next: Fix bug introduced on 2011-01-18.
15086         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
15087         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
15088         ac_cv_header_... variable if the second argument is not 'check'.
15089         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
15090         gl_NEXT_HEADERS_INTERNAL.
15091
15092 2011-01-20  Bruno Haible  <bruno@clisp.org>
15093
15094         Allow the user to avoid the GNULIB_TEST_* macros.
15095         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
15096         Suggested by Paul Eggert.
15097
15098 2011-01-14  Jim Meyering  <meyering@redhat.com>
15099
15100         bootstrap: avoid failure when there is no .gitmodules file
15101         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
15102         has been assigned to, even when its value is the empty string.
15103         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
15104         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
15105         Reported by John W. Eaton <jwe@gnu.org>.
15106
15107 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
15108
15109         assume <ctype.h>, ..., <time.h> exist
15110         For years gnulib has been assuming the existence of the headers
15111         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
15112         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
15113         them, since they don't appear to be needed.
15114         * README (Portability guidelines): Document this.
15115         * lib/flock.c: Assume <fcntl.h> exists.
15116         * lib/regex_internal.h: Assume <locale.h> exists.
15117         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
15118         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
15119         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
15120         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
15121         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
15122         * m4/regex.m4 (gl_REGEX): Likewise.
15123         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
15124         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
15125         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
15126         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
15127         * tests/test-argp.c: Likewise.
15128         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
15129
15130         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
15131         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
15132         AA_APPLE_UNIVERSAL_BUILD.  See
15133         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
15134         * NEWS: Document this.
15135
15136 2011-01-19  Eric Blake  <eblake@redhat.com>
15137
15138         c-stack: assume stack overflow if SA_SIGINFO unsupported
15139         * lib/c-stack.c (SIGACTION_WORKS): Rename...
15140         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
15141         sigaction will work.
15142         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
15143         behavior match Linux.
15144         * tests/test-c-stack.c (main): Prefer NULL for pointers.
15145
15146         stdbool-tests: accomodate Haiku
15147         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
15148
15149         binary-io: fix O_TEXT on Haiku
15150         * modules/binary-io (Depends-on): Add fcntl-h.
15151         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
15152         than blindly undefining O_TEXT.
15153         Reported by Scott McCreary.
15154
15155 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
15156
15157         include_next: do not check for standard headers like stddef.h
15158
15159         I found this problem when modifying Emacs to use gnulib.
15160         I noticed that it added HAVE_STDDEF_H to config.h, even though
15161         gnulib always assumes <stddef.h> exists as per README and this
15162         symbol is unnecessary.
15163         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
15164         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
15165         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
15166         faster for headers like stddef.h that are known to exist.
15167         (gl_CHECK_NEXT_HEADERS): Use it.
15168         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
15169         rather than gl_CHECK_NEXT_HEADERS.
15170         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
15171         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
15172
15173 2011-01-18  Eric Blake  <eblake@redhat.com>
15174
15175         ansi-c++-opt: skip C++ dependency style if C++ is unused
15176         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
15177         tests when we know C++ compilation is not desired.
15178         Reported by Scott McCreary.
15179
15180 2011-01-18  Bruno Haible  <bruno@clisp.org>
15181
15182         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
15183         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
15184         (main): Perform test also when getrlimit and setrlimit don't exist or
15185         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
15186         limiting the address space size using setrlimit, compare the address
15187         space size before and after the the test.
15188         * tests/test-dprintf-posix2.c: Likewise.
15189         * tests/test-fprintf-posix3.sh: Update skip messages.
15190         * tests/test-dprintf-posix2.sh: Likewise.
15191         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
15192         * modules/dprintf-posix-tests (Depends-on): Likewise.
15193         Reported by Bruce Korb <bkorb@gnu.org> and
15194         Gary V. Vaughan <gary@gnu.org>.
15195
15196 2011-01-18  Bruno Haible  <bruno@clisp.org>
15197
15198         get-rusage-as: Improvement for Cygwin.
15199         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
15200         areas that are merely reserved.
15201
15202 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
15203
15204         strftime: remove dependencies on multibyte modules
15205
15206         strftime depended on mbrlen, mbsinit, and wchar, but these modules
15207         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
15208         only if __osf__ is defined, and I suspect OSF doesn't need these
15209         other modules.  If my guess is wrong, we'll need to come up with a
15210         variant of strftime that doesn't need the multibyte modules.
15211
15212         I discovered this problem when attempting modify Emacs to use the
15213         strftime module.  With the previous gnulib, this caused Emacs to
15214         need 31 new files, ranging from lib/config.charset to
15215         m4/wint_t.m4.  This was overkill and I expect would be offputting
15216         to the Emacs maintainers.  After this change, only 6 new files are
15217         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
15218         stdbool.m4, and tm_gmtoff.m4.
15219
15220         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
15221         Suggested by Bruno Haible in
15222         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
15223         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
15224         and do not check for wchar.h.
15225         * modules/strftime (Files): Remove m4/mbstate_t.m4.
15226         (Depends-on): Remove mbrlen, mbsinit, wchar.
15227
15228 2011-01-18  Bruno Haible  <bruno@clisp.org>
15229
15230         Tests for module 'get-rusage-as'.
15231         * modules/get-rusage-as-tests: New file.
15232         * tests/test-get-rusage-as.c: New file.
15233
15234         New module 'get-rusage-as'.
15235         * modules/get-rusage-as: New file.
15236         * lib/resource-ext.h: New file.
15237         * lib/get-rusage-as.c: New file.
15238
15239 2011-01-17  Eric Blake  <eblake@redhat.com>
15240
15241         sigaction: relax license from LGPLv3+ to LGPLv2+
15242         * modules/sigaction (License): Relax to LGPLv2+.
15243
15244 2011-01-14  Bruno Haible  <bruno@clisp.org>
15245
15246         filemode: Make function declarations usable in C++ mode.
15247         * lib/filemode.h: Enclose function declarations in extern "C" block.
15248         Reported by John W. Eaton <jwe@gnu.org>.
15249
15250 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
15251
15252         save-cwd: no longer include "xgetcwd.h"
15253         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
15254         This avoids a compilation failure in projects that use save-cwd
15255         without also using the xgetcwd module.
15256
15257 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
15258
15259         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
15260         This is so that a program like Emacs, which needs only dtoastr,
15261         does not have to bother with distributing and compiling ftoastr
15262         and ldtoastr.
15263         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
15264         * modules/dtoastr, modules/ldtoastr: New files.
15265         * modules/ftoastr: Now works just for 'float'.
15266         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
15267         (Makefile.am): Remove ftoastr.h (not needed and no effect),
15268         dtoastr.c, ldtoastr.c.
15269
15270 2011-01-11  Jim Meyering  <meyering@redhat.com>
15271
15272         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
15273         There is no need to work around the lack of the fchdir function,
15274         since gnulib can now provide a replacement when required.
15275         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
15276         * modules/save-cwd (Depends-on): Add fchdir.
15277
15278 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
15279
15280         openat, save-cwd: avoid xmalloc
15281
15282         This removes a direct (but undocumented) dependency of openat on
15283         xalloc, along with an indirect dependency via save-cwd.  It also
15284         removes a dependency of save-cwd on xgetcwd, and thereby
15285         indirectly on xalloc.  This change causes the openat substitute
15286         to fall back on save_cwd when memory is tight, and for save_cwd to
15287         fail instead of dying when memory is tight, but that's good enough.
15288         Problem and initial idea for fix reported by Bastien Roucaries in
15289         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
15290
15291         * lib/openat-proc.c: Include stdlib.h (for malloc), not
15292         xalloc.h (for xmalloc).
15293         (openat_proc_name): Use malloc, not xmalloc.
15294         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
15295         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
15296
15297         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
15298         This avoids heap allocation for file names whose lengths are in
15299         the range 512..1023, with the upper bound increasing to at most
15300         4031 depending on the platform's PATH_MAX.  (We do not want
15301         pathmax.h here as it might supply a non-constant PATH_MAX.)
15302         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
15303         Perhaps they should be moved to malloca.h?
15304         (OPENAT_BUFFER_SIZE): Use them.
15305
15306 2011-01-10  Bruno Haible  <bruno@clisp.org>
15307
15308         doc: Update users.txt.
15309         * users.txt: Add recutils.
15310
15311 2011-01-09  Karl Berry  <karl@gnu.org>
15312
15313         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
15314
15315         * doc/configmake.texi: New file.
15316         * doc/gnulib.texi: Include it.
15317         * modules/configmake: Move documentation from here.
15318
15319 2011-01-09  Bruno Haible  <bruno@clisp.org>
15320
15321         Update to Unicode 6.0.0.
15322         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
15323         (get_lbp): Update for Unicode 6.0.0.
15324         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
15325         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
15326         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
15327         U+11001, U+11038..U+11046. Remove U+06DE.
15328         (uc_width): Fix bounds of planes.
15329         * tests/uniwidth/test-uc_width2.sh: Same updates as in
15330         lib/uniwidth/width.c.
15331         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
15332         trailing whitespace removed.
15333         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
15334         without comments, but with the original copyright notice.
15335         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
15336         * lib/unicase/ignorable.h: Likewise.
15337         * lib/unicase/tocasefold.h: Likewise.
15338         * lib/unicase/tolower.h: Likewise.
15339         * lib/unicase/totitle.h: Likewise.
15340         * lib/unicase/toupper.h: Likewise.
15341         * lib/unictype/bidi_of.h: Likewise.
15342         * lib/unictype/blocks.h: Likewise.
15343         * lib/unictype/categ_C.h: Likewise.
15344         * lib/unictype/categ_Cn.h: Likewise.
15345         * lib/unictype/categ_L.h: Likewise.
15346         * lib/unictype/categ_Ll.h: Likewise.
15347         * lib/unictype/categ_Lm.h: Likewise.
15348         * lib/unictype/categ_Lo.h: Likewise.
15349         * lib/unictype/categ_Lu.h: Likewise.
15350         * lib/unictype/categ_M.h: Likewise.
15351         * lib/unictype/categ_Mc.h: Likewise.
15352         * lib/unictype/categ_Me.h: Likewise.
15353         * lib/unictype/categ_Mn.h: Likewise.
15354         * lib/unictype/categ_N.h: Likewise.
15355         * lib/unictype/categ_Nd.h: Likewise.
15356         * lib/unictype/categ_No.h: Likewise.
15357         * lib/unictype/categ_P.h: Likewise.
15358         * lib/unictype/categ_Po.h: Likewise.
15359         * lib/unictype/categ_S.h: Likewise.
15360         * lib/unictype/categ_Sc.h: Likewise.
15361         * lib/unictype/categ_Sk.h: Likewise.
15362         * lib/unictype/categ_Sm.h: Likewise.
15363         * lib/unictype/categ_So.h: Likewise.
15364         * lib/unictype/categ_of.h: Likewise.
15365         * lib/unictype/combining.h: Likewise.
15366         * lib/unictype/ctype_alnum.h: Likewise.
15367         * lib/unictype/ctype_alpha.h: Likewise.
15368         * lib/unictype/ctype_graph.h: Likewise.
15369         * lib/unictype/ctype_lower.h: Likewise.
15370         * lib/unictype/ctype_print.h: Likewise.
15371         * lib/unictype/ctype_punct.h: Likewise.
15372         * lib/unictype/ctype_upper.h: Likewise.
15373         * lib/unictype/decdigit.h: Likewise.
15374         * lib/unictype/digit.h: Likewise.
15375         * lib/unictype/numeric.h: Likewise.
15376         * lib/unictype/pr_alphabetic.h: Likewise.
15377         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
15378         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
15379         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
15380         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
15381         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
15382         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
15383         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
15384         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
15385         * lib/unictype/pr_case_ignorable.h: Likewise.
15386         * lib/unictype/pr_cased.h: Likewise.
15387         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
15388         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
15389         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
15390         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
15391         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
15392         * lib/unictype/pr_combining.h: Likewise.
15393         * lib/unictype/pr_composite.h: Likewise.
15394         * lib/unictype/pr_currency_symbol.h: Likewise.
15395         * lib/unictype/pr_decimal_digit.h: Likewise.
15396         * lib/unictype/pr_deprecated.h: Likewise.
15397         * lib/unictype/pr_format_control.h: Likewise.
15398         * lib/unictype/pr_grapheme_base.h: Likewise.
15399         * lib/unictype/pr_grapheme_extend.h: Likewise.
15400         * lib/unictype/pr_grapheme_link.h: Likewise.
15401         * lib/unictype/pr_id_continue.h: Likewise.
15402         * lib/unictype/pr_id_start.h: Likewise.
15403         * lib/unictype/pr_ideographic.h: Likewise.
15404         * lib/unictype/pr_lowercase.h: Likewise.
15405         * lib/unictype/pr_math.h: Likewise.
15406         * lib/unictype/pr_numeric.h: Likewise.
15407         * lib/unictype/pr_other_alphabetic.h: Likewise.
15408         * lib/unictype/pr_other_id_continue.h: Likewise.
15409         * lib/unictype/pr_other_math.h: Likewise.
15410         * lib/unictype/pr_punctuation.h: Likewise.
15411         * lib/unictype/pr_sentence_terminal.h: Likewise.
15412         * lib/unictype/pr_terminal_punctuation.h: Likewise.
15413         * lib/unictype/pr_unassigned_code_value.h: Likewise.
15414         * lib/unictype/pr_unified_ideograph.h: Likewise.
15415         * lib/unictype/pr_uppercase.h: Likewise.
15416         * lib/unictype/pr_xid_continue.h: Likewise.
15417         * lib/unictype/pr_xid_start.h: Likewise.
15418         * lib/unictype/scripts.h: Likewise.
15419         * lib/unictype/scripts_byname.gperf: Likewise.
15420         * lib/unictype/sy_java_ident.h: Likewise.
15421         * lib/unigbrk/gbrkprop.h: Likewise.
15422         * lib/unilbrk/lbrkprop1.h: Likewise.
15423         * lib/unilbrk/lbrkprop2.h: Likewise.
15424         * lib/uninorm/decomposition-table2.h: Likewise.
15425         * lib/uniwbrk/wbrkprop.h: Likewise.
15426         * tests/unicase/test-cased.c: Likewise.
15427         * tests/unicase/test-ignorable.c: Likewise.
15428         * tests/unicase/test-uc_tolower.c: Likewise.
15429         * tests/unicase/test-uc_totitle.c: Likewise.
15430         * tests/unicase/test-uc_toupper.c: Likewise.
15431         * tests/unictype/test-categ_C.c: Likewise.
15432         * tests/unictype/test-categ_Cn.c: Likewise.
15433         * tests/unictype/test-categ_L.c: Likewise.
15434         * tests/unictype/test-categ_Ll.c: Likewise.
15435         * tests/unictype/test-categ_Lm.c: Likewise.
15436         * tests/unictype/test-categ_Lo.c: Likewise.
15437         * tests/unictype/test-categ_Lu.c: Likewise.
15438         * tests/unictype/test-categ_M.c: Likewise.
15439         * tests/unictype/test-categ_Mc.c: Likewise.
15440         * tests/unictype/test-categ_Me.c: Likewise.
15441         * tests/unictype/test-categ_Mn.c: Likewise.
15442         * tests/unictype/test-categ_N.c: Likewise.
15443         * tests/unictype/test-categ_Nd.c: Likewise.
15444         * tests/unictype/test-categ_No.c: Likewise.
15445         * tests/unictype/test-categ_P.c: Likewise.
15446         * tests/unictype/test-categ_Po.c: Likewise.
15447         * tests/unictype/test-categ_S.c: Likewise.
15448         * tests/unictype/test-categ_Sc.c: Likewise.
15449         * tests/unictype/test-categ_Sk.c: Likewise.
15450         * tests/unictype/test-categ_Sm.c: Likewise.
15451         * tests/unictype/test-categ_So.c: Likewise.
15452         * tests/unictype/test-ctype_alnum.c: Likewise.
15453         * tests/unictype/test-ctype_alpha.c: Likewise.
15454         * tests/unictype/test-ctype_graph.c: Likewise.
15455         * tests/unictype/test-ctype_lower.c: Likewise.
15456         * tests/unictype/test-ctype_print.c: Likewise.
15457         * tests/unictype/test-ctype_punct.c: Likewise.
15458         * tests/unictype/test-ctype_upper.c: Likewise.
15459         * tests/unictype/test-decdigit.h: Likewise.
15460         * tests/unictype/test-digit.h: Likewise.
15461         * tests/unictype/test-numeric.h: Likewise.
15462         * tests/unictype/test-pr_alphabetic.c: Likewise.
15463         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
15464         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
15465         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
15466         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
15467         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
15468         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
15469         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
15470         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
15471         * tests/unictype/test-pr_case_ignorable.c: Likewise.
15472         * tests/unictype/test-pr_cased.c: Likewise.
15473         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
15474         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
15475         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
15476         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
15477         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
15478         * tests/unictype/test-pr_combining.c: Likewise.
15479         * tests/unictype/test-pr_composite.c: Likewise.
15480         * tests/unictype/test-pr_currency_symbol.c: Likewise.
15481         * tests/unictype/test-pr_decimal_digit.c: Likewise.
15482         * tests/unictype/test-pr_deprecated.c: Likewise.
15483         * tests/unictype/test-pr_format_control.c: Likewise.
15484         * tests/unictype/test-pr_grapheme_base.c: Likewise.
15485         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
15486         * tests/unictype/test-pr_grapheme_link.c: Likewise.
15487         * tests/unictype/test-pr_id_continue.c: Likewise.
15488         * tests/unictype/test-pr_id_start.c: Likewise.
15489         * tests/unictype/test-pr_ideographic.c: Likewise.
15490         * tests/unictype/test-pr_lowercase.c: Likewise.
15491         * tests/unictype/test-pr_math.c: Likewise.
15492         * tests/unictype/test-pr_numeric.c: Likewise.
15493         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
15494         * tests/unictype/test-pr_other_id_continue.c: Likewise.
15495         * tests/unictype/test-pr_other_math.c: Likewise.
15496         * tests/unictype/test-pr_punctuation.c: Likewise.
15497         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
15498         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
15499         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
15500         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
15501         * tests/unictype/test-pr_uppercase.c: Likewise.
15502         * tests/unictype/test-pr_xid_continue.c: Likewise.
15503         * tests/unictype/test-pr_xid_start.c: Likewise.
15504         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
15505         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
15506         changes.
15507         * lib/unictype/categ_Cc.h: Likewise.
15508         * lib/unictype/categ_Cf.h: Likewise.
15509         * lib/unictype/categ_Co.h: Likewise.
15510         * lib/unictype/categ_Cs.h: Likewise.
15511         * lib/unictype/categ_Lt.h: Likewise.
15512         * lib/unictype/categ_Nl.h: Likewise.
15513         * lib/unictype/categ_Pc.h: Likewise.
15514         * lib/unictype/categ_Pd.h: Likewise.
15515         * lib/unictype/categ_Pe.h: Likewise.
15516         * lib/unictype/categ_Pf.h: Likewise.
15517         * lib/unictype/categ_Pi.h: Likewise.
15518         * lib/unictype/categ_Ps.h: Likewise.
15519         * lib/unictype/categ_Z.h: Likewise.
15520         * lib/unictype/categ_Zl.h: Likewise.
15521         * lib/unictype/categ_Zp.h: Likewise.
15522         * lib/unictype/categ_Zs.h: Likewise.
15523         * lib/unictype/ctype_blank.h: Likewise.
15524         * lib/unictype/ctype_cntrl.h: Likewise.
15525         * lib/unictype/ctype_digit.h: Likewise.
15526         * lib/unictype/ctype_space.h: Likewise.
15527         * lib/unictype/ctype_xdigit.h: Likewise.
15528         * lib/unictype/mirror.h: Likewise.
15529         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
15530         * lib/unictype/pr_bidi_block_separator.h: Likewise.
15531         * lib/unictype/pr_bidi_common_separator.h: Likewise.
15532         * lib/unictype/pr_bidi_control.h: Likewise.
15533         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
15534         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
15535         * lib/unictype/pr_bidi_european_digit.h: Likewise.
15536         * lib/unictype/pr_bidi_pdf.h: Likewise.
15537         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
15538         * lib/unictype/pr_bidi_whitespace.h: Likewise.
15539         * lib/unictype/pr_dash.h: Likewise.
15540         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
15541         * lib/unictype/pr_diacritic.h: Likewise.
15542         * lib/unictype/pr_extender.h: Likewise.
15543         * lib/unictype/pr_hex_digit.h: Likewise.
15544         * lib/unictype/pr_hyphen.h: Likewise.
15545         * lib/unictype/pr_ids_binary_operator.h: Likewise.
15546         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
15547         * lib/unictype/pr_ignorable_control.h: Likewise.
15548         * lib/unictype/pr_iso_control.h: Likewise.
15549         * lib/unictype/pr_join_control.h: Likewise.
15550         * lib/unictype/pr_left_of_pair.h: Likewise.
15551         * lib/unictype/pr_line_separator.h: Likewise.
15552         * lib/unictype/pr_logical_order_exception.h: Likewise.
15553         * lib/unictype/pr_non_break.h: Likewise.
15554         * lib/unictype/pr_not_a_character.h: Likewise.
15555         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
15556         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
15557         * lib/unictype/pr_other_id_start.h: Likewise.
15558         * lib/unictype/pr_other_lowercase.h: Likewise.
15559         * lib/unictype/pr_other_uppercase.h: Likewise.
15560         * lib/unictype/pr_paired_punctuation.h: Likewise.
15561         * lib/unictype/pr_paragraph_separator.h: Likewise.
15562         * lib/unictype/pr_pattern_syntax.h: Likewise.
15563         * lib/unictype/pr_pattern_white_space.h: Likewise.
15564         * lib/unictype/pr_private_use.h: Likewise.
15565         * lib/unictype/pr_quotation_mark.h: Likewise.
15566         * lib/unictype/pr_radical.h: Likewise.
15567         * lib/unictype/pr_soft_dotted.h: Likewise.
15568         * lib/unictype/pr_space.h: Likewise.
15569         * lib/unictype/pr_titlecase.h: Likewise.
15570         * lib/unictype/pr_variation_selector.h: Likewise.
15571         * lib/unictype/pr_white_space.h: Likewise.
15572         * lib/unictype/pr_zero_width.h: Likewise.
15573         * lib/unictype/sy_c_ident.h: Likewise.
15574         * lib/unictype/sy_c_whitespace.h: Likewise.
15575         * lib/unictype/sy_java_whitespace.h: Likewise.
15576         * lib/uninorm/composition-table.gperf: Likewise.
15577         * lib/uninorm/decomposition-table1.h: Likewise.
15578         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
15579         LB8.
15580         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
15581         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
15582         * modules/unictype/*: Bump version number of expected libunistring
15583         version.
15584
15585 2011-01-09  Bruno Haible  <bruno@clisp.org>
15586
15587         Update to Unicode 5.2.0.
15588         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
15589         trailing whitespace removed.
15590
15591 2011-01-09  Bruno Haible  <bruno@clisp.org>
15592
15593         New Unicode character properties, from Unicode 5.2.0.
15594         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
15595         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
15596         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
15597         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
15598         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
15599         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
15600         uc_is_property_cased, uc_is_property_case_ignorable,
15601         uc_is_property_changes_when_lowercased,
15602         uc_is_property_changes_when_uppercased,
15603         uc_is_property_changes_when_titlecased,
15604         uc_is_property_changes_when_casefolded,
15605         uc_is_property_changes_when_casemapped): New declarations.
15606         * lib/unictype/pr_byname.gperf: Add the new properties.
15607         * modules/unictype/property-byname (Depends-on): Depend on the new
15608         properties modules.
15609         * modules/unictype/property-all (Depends-on): Likewise.
15610         * MODULES.html.sh (Unicode string functions): Add
15611         unictype/property-case-ignorable, unictype/property-cased,
15612         unictype/property-changes-when-casefolded,
15613         unictype/property-changes-when-casemapped,
15614         unictype/property-changes-when-lowercased,
15615         unictype/property-changes-when-titlecased,
15616         unictype/property-changes-when-uppercased.
15617
15618         New module 'unictype/property-changes-when-casemapped'.
15619         * modules/unictype/property-changes-when-casemapped: New file.
15620         * lib/unictype/pr_changes_when_casemapped.c: New file.
15621         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
15622         generated by gen-uni-tables.
15623         * modules/unictype/property-changes-when-casemapped-tests: New file.
15624         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
15625         automatically generated by gen-uni-tables.
15626
15627         New module 'unictype/property-changes-when-casefolded'.
15628         * modules/unictype/property-changes-when-casefolded: New file.
15629         * lib/unictype/pr_changes_when_casefolded.c: New file.
15630         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
15631         generated by gen-uni-tables.
15632         * modules/unictype/property-changes-when-casefolded-tests: New file.
15633         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
15634         automatically generated by gen-uni-tables.
15635
15636         New module 'unictype/property-changes-when-titlecased'.
15637         * modules/unictype/property-changes-when-titlecased: New file.
15638         * lib/unictype/pr_changes_when_titlecased.c: New file.
15639         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
15640         generated by gen-uni-tables.
15641         * modules/unictype/property-changes-when-titlecased-tests: New file.
15642         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
15643         automatically generated by gen-uni-tables.
15644
15645         New module 'unictype/property-changes-when-uppercased'.
15646         * modules/unictype/property-changes-when-uppercased: New file.
15647         * lib/unictype/pr_changes_when_uppercased.c: New file.
15648         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
15649         generated by gen-uni-tables.
15650         * modules/unictype/property-changes-when-uppercased-tests: New file.
15651         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
15652         automatically generated by gen-uni-tables.
15653
15654         New module 'unictype/property-changes-when-lowercased'.
15655         * modules/unictype/property-changes-when-lowercased: New file.
15656         * lib/unictype/pr_changes_when_lowercased.c: New file.
15657         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
15658         generated by gen-uni-tables.
15659         * modules/unictype/property-changes-when-lowercased-tests: New file.
15660         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
15661         automatically generated by gen-uni-tables.
15662
15663         New module 'unictype/property-case-ignorable'.
15664         * modules/unictype/property-case-ignorable: New file.
15665         * lib/unictype/pr_case_ignorable.c: New file.
15666         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
15667         by gen-uni-tables.
15668         * modules/unictype/property-case-ignorable-tests: New file.
15669         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
15670         generated by gen-uni-tables.
15671
15672         New module 'unictype/property-cased'.
15673         * modules/unictype/property-cased: New file.
15674         * lib/unictype/pr_cased.c: New file.
15675         * lib/unictype/pr_cased.h: New file, automatically generated by
15676         gen-uni-tables.
15677         * modules/unictype/property-cased-tests: New file.
15678         * tests/unictype/test-pr_cased.c: New file, automatically generated by
15679         gen-uni-tables.
15680
15681 2011-01-09  Bruno Haible  <bruno@clisp.org>
15682
15683         Update to Unicode 5.2.0.
15684         * lib/gen-uni-tables.c (output_predicate, output_category,
15685         output_combclass, output_bidi_category, output_decimal_digit_test,
15686         output_decimal_digit, output_digit_test, output_digit,
15687         output_numeric_test, output_numeric, output_mirror, output_scripts,
15688         output_scripts_byname, output_blocks, output_ident_category): Fix
15689         comment header.
15690         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
15691         get_wbp.
15692         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
15693         items.
15694         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
15695         Changes_When_Lowercased, Changes_When_Uppercased,
15696         Changes_When_Titlecased, Changes_When_Casefolded,
15697         Changes_When_Casemapped.
15698         (is_property_alphabetic, is_property_default_ignorable_code_point):
15699         Update for Unicode 5.2.0.
15700         (is_property_cased, is_property_case_ignorable,
15701         is_property_changes_when_lowercased,
15702         is_property_changes_when_uppercased,
15703         is_property_changes_when_titlecased,
15704         is_property_changes_when_casefolded,
15705         is_property_changes_when_casemapped): New functions.
15706         (output_properties): Output also the properties cased, case_ignorable,
15707         changes_when_lowercased, changes_when_uppercased,
15708         changes_when_titlecased, changes_when_casefolded,
15709         changes_when_casemapped.
15710         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
15711         Unicode TR#11 revision 17 -> 19.
15712         (LBP_CP): New enumeration value.
15713         (LBP_*): Adjust values accordingly.
15714         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
15715         TR#14 revision 22 -> 24.
15716         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
15717         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
15718         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
15719         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
15720         is_WBP_MIDLETTER.
15721         (output_composition_tables): Allow for 24 bits instead of 16 bits in
15722         the code1 and code2 of each composition rule.
15723         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
15724         * lib/unicase/ignorable.h: Likewise.
15725         * lib/unicase/tocasefold.h: Likewise.
15726         * lib/unicase/tolower.h: Likewise.
15727         * lib/unicase/totitle.h: Likewise.
15728         * lib/unicase/toupper.h: Likewise.
15729         * lib/unictype/bidi_of.h: Likewise.
15730         * lib/unictype/blocks.h: Likewise.
15731         * lib/unictype/categ_C.h: Likewise.
15732         * lib/unictype/categ_Cf.h: Likewise.
15733         * lib/unictype/categ_Cn.h: Likewise.
15734         * lib/unictype/categ_L.h: Likewise.
15735         * lib/unictype/categ_Ll.h: Likewise.
15736         * lib/unictype/categ_Lm.h: Likewise.
15737         * lib/unictype/categ_Lo.h: Likewise.
15738         * lib/unictype/categ_Lu.h: Likewise.
15739         * lib/unictype/categ_M.h: Likewise.
15740         * lib/unictype/categ_Mc.h: Likewise.
15741         * lib/unictype/categ_Mn.h: Likewise.
15742         * lib/unictype/categ_N.h: Likewise.
15743         * lib/unictype/categ_Nd.h: Likewise.
15744         * lib/unictype/categ_Nl.h: Likewise.
15745         * lib/unictype/categ_No.h: Likewise.
15746         * lib/unictype/categ_P.h: Likewise.
15747         * lib/unictype/categ_Pd.h: Likewise.
15748         * lib/unictype/categ_Po.h: Likewise.
15749         * lib/unictype/categ_S.h: Likewise.
15750         * lib/unictype/categ_Sc.h: Likewise.
15751         * lib/unictype/categ_So.h: Likewise.
15752         * lib/unictype/categ_of.h: Likewise.
15753         * lib/unictype/combining.h: Likewise.
15754         * lib/unictype/ctype_alnum.h: Likewise.
15755         * lib/unictype/ctype_alpha.h: Likewise.
15756         * lib/unictype/ctype_graph.h: Likewise.
15757         * lib/unictype/ctype_lower.h: Likewise.
15758         * lib/unictype/ctype_print.h: Likewise.
15759         * lib/unictype/ctype_punct.h: Likewise.
15760         * lib/unictype/ctype_upper.h: Likewise.
15761         * lib/unictype/decdigit.h: Likewise.
15762         * lib/unictype/digit.h: Likewise.
15763         * lib/unictype/numeric.h: Likewise.
15764         * lib/unictype/pr_alphabetic.h: Likewise.
15765         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
15766         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
15767         * lib/unictype/pr_bidi_european_digit.h: Likewise.
15768         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
15769         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
15770         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
15771         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
15772         * lib/unictype/pr_combining.h: Likewise.
15773         * lib/unictype/pr_composite.h: Likewise.
15774         * lib/unictype/pr_currency_symbol.h: Likewise.
15775         * lib/unictype/pr_dash.h: Likewise.
15776         * lib/unictype/pr_decimal_digit.h: Likewise.
15777         * lib/unictype/pr_deprecated.h: Likewise.
15778         * lib/unictype/pr_diacritic.h: Likewise.
15779         * lib/unictype/pr_extender.h: Likewise.
15780         * lib/unictype/pr_grapheme_base.h: Likewise.
15781         * lib/unictype/pr_grapheme_extend.h: Likewise.
15782         * lib/unictype/pr_grapheme_link.h: Likewise.
15783         * lib/unictype/pr_id_continue.h: Likewise.
15784         * lib/unictype/pr_id_start.h: Likewise.
15785         * lib/unictype/pr_ideographic.h: Likewise.
15786         * lib/unictype/pr_ignorable_control.h: Likewise.
15787         * lib/unictype/pr_logical_order_exception.h: Likewise.
15788         * lib/unictype/pr_lowercase.h: Likewise.
15789         * lib/unictype/pr_numeric.h: Likewise.
15790         * lib/unictype/pr_other_alphabetic.h: Likewise.
15791         * lib/unictype/pr_punctuation.h: Likewise.
15792         * lib/unictype/pr_sentence_terminal.h: Likewise.
15793         * lib/unictype/pr_terminal_punctuation.h: Likewise.
15794         * lib/unictype/pr_unassigned_code_value.h: Likewise.
15795         * lib/unictype/pr_unified_ideograph.h: Likewise.
15796         * lib/unictype/pr_uppercase.h: Likewise.
15797         * lib/unictype/pr_xid_continue.h: Likewise.
15798         * lib/unictype/pr_xid_start.h: Likewise.
15799         * lib/unictype/pr_zero_width.h: Likewise.
15800         * lib/unictype/scripts.h: Likewise.
15801         * lib/unictype/scripts_byname.gperf: Likewise.
15802         * lib/unictype/sy_java_ident.h: Likewise.
15803         * lib/unigbrk/gbrkprop.h: Likewise.
15804         * lib/unilbrk/lbrkprop1.h: Likewise.
15805         * lib/unilbrk/lbrkprop2.h: Likewise.
15806         * lib/unilbrk/lbrktables.h: Likewise.
15807         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
15808         LBP_CP. Implement rule LB30.
15809         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
15810         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
15811         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
15812         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
15813         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
15814         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
15815         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
15816         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
15817         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
15818         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
15819         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
15820         bits instead of 16 bits in the code1 and code2 of each composition
15821         rule.
15822         (uc_composition): Update for Unicode 5.2.0.
15823         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
15824         * lib/uninorm/decomposition-table2.h: Likewise.
15825         * lib/uniwbrk/wbrkprop.h: Likewise.
15826         * tests/unicase/test-cased.c: Likewise.
15827         * tests/unicase/test-ignorable.c: Likewise.
15828         * tests/unicase/test-uc_tolower.c: Likewise.
15829         * tests/unicase/test-uc_totitle.c: Likewise.
15830         * tests/unicase/test-uc_toupper.c: Likewise.
15831         * tests/unictype/test-categ_C.c: Likewise.
15832         * tests/unictype/test-categ_Cf.c: Likewise.
15833         * tests/unictype/test-categ_Cn.c: Likewise.
15834         * tests/unictype/test-categ_L.c: Likewise.
15835         * tests/unictype/test-categ_Ll.c: Likewise.
15836         * tests/unictype/test-categ_Lm.c: Likewise.
15837         * tests/unictype/test-categ_Lo.c: Likewise.
15838         * tests/unictype/test-categ_Lu.c: Likewise.
15839         * tests/unictype/test-categ_M.c: Likewise.
15840         * tests/unictype/test-categ_Mc.c: Likewise.
15841         * tests/unictype/test-categ_Mn.c: Likewise.
15842         * tests/unictype/test-categ_N.c: Likewise.
15843         * tests/unictype/test-categ_Nd.c: Likewise.
15844         * tests/unictype/test-categ_Nl.c: Likewise.
15845         * tests/unictype/test-categ_No.c: Likewise.
15846         * tests/unictype/test-categ_P.c: Likewise.
15847         * tests/unictype/test-categ_Pd.c: Likewise.
15848         * tests/unictype/test-categ_Po.c: Likewise.
15849         * tests/unictype/test-categ_S.c: Likewise.
15850         * tests/unictype/test-categ_Sc.c: Likewise.
15851         * tests/unictype/test-categ_So.c: Likewise.
15852         * tests/unictype/test-ctype_alnum.c: Likewise.
15853         * tests/unictype/test-ctype_alpha.c: Likewise.
15854         * tests/unictype/test-ctype_graph.c: Likewise.
15855         * tests/unictype/test-ctype_lower.c: Likewise.
15856         * tests/unictype/test-ctype_print.c: Likewise.
15857         * tests/unictype/test-ctype_punct.c: Likewise.
15858         * tests/unictype/test-ctype_upper.c: Likewise.
15859         * tests/unictype/test-decdigit.h: Likewise.
15860         * tests/unictype/test-digit.h: Likewise.
15861         * tests/unictype/test-numeric.h: Likewise.
15862         * tests/unictype/test-pr_alphabetic.c: Likewise.
15863         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
15864         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
15865         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
15866         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
15867         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
15868         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
15869         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
15870         * tests/unictype/test-pr_combining.c: Likewise.
15871         * tests/unictype/test-pr_composite.c: Likewise.
15872         * tests/unictype/test-pr_currency_symbol.c: Likewise.
15873         * tests/unictype/test-pr_dash.c: Likewise.
15874         * tests/unictype/test-pr_decimal_digit.c: Likewise.
15875         * tests/unictype/test-pr_deprecated.c: Likewise.
15876         * tests/unictype/test-pr_diacritic.c: Likewise.
15877         * tests/unictype/test-pr_extender.c: Likewise.
15878         * tests/unictype/test-pr_grapheme_base.c: Likewise.
15879         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
15880         * tests/unictype/test-pr_grapheme_link.c: Likewise.
15881         * tests/unictype/test-pr_id_continue.c: Likewise.
15882         * tests/unictype/test-pr_id_start.c: Likewise.
15883         * tests/unictype/test-pr_ideographic.c: Likewise.
15884         * tests/unictype/test-pr_ignorable_control.c: Likewise.
15885         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
15886         * tests/unictype/test-pr_lowercase.c: Likewise.
15887         * tests/unictype/test-pr_numeric.c: Likewise.
15888         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
15889         * tests/unictype/test-pr_punctuation.c: Likewise.
15890         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
15891         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
15892         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
15893         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
15894         * tests/unictype/test-pr_uppercase.c: Likewise.
15895         * tests/unictype/test-pr_xid_continue.c: Likewise.
15896         * tests/unictype/test-pr_xid_start.c: Likewise.
15897         * tests/unictype/test-pr_zero_width.c: Likewise.
15898         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
15899         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
15900         changed behaviour: line breaking is now disallowed between a letter
15901         or '=' and '('.
15902         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
15903         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
15904         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
15905         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
15906         * tests/uniwidth/test-uc_width2.sh: Same updates as in
15907         lib/uniwidth/width.c.
15908         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
15909         without comments, but with the original copyright notice.
15910         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
15911         changes.
15912         * lib/unictype/categ_Cc.h: Likewise.
15913         * lib/unictype/categ_Co.h: Likewise.
15914         * lib/unictype/categ_Cs.h: Likewise.
15915         * lib/unictype/categ_Lt.h: Likewise.
15916         * lib/unictype/categ_Me.h: Likewise.
15917         * lib/unictype/categ_Pc.h: Likewise.
15918         * lib/unictype/categ_Pe.h: Likewise.
15919         * lib/unictype/categ_Pf.h: Likewise.
15920         * lib/unictype/categ_Pi.h: Likewise.
15921         * lib/unictype/categ_Ps.h: Likewise.
15922         * lib/unictype/categ_Sk.h: Likewise.
15923         * lib/unictype/categ_Sm.h: Likewise.
15924         * lib/unictype/categ_Z.h: Likewise.
15925         * lib/unictype/categ_Zl.h: Likewise.
15926         * lib/unictype/categ_Zp.h: Likewise.
15927         * lib/unictype/categ_Zs.h: Likewise.
15928         * lib/unictype/ctype_blank.h: Likewise.
15929         * lib/unictype/ctype_cntrl.h: Likewise.
15930         * lib/unictype/ctype_digit.h: Likewise.
15931         * lib/unictype/ctype_space.h: Likewise.
15932         * lib/unictype/ctype_xdigit.h: Likewise.
15933         * lib/unictype/mirror.h: Likewise.
15934         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
15935         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
15936         * lib/unictype/pr_bidi_block_separator.h: Likewise.
15937         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
15938         * lib/unictype/pr_bidi_common_separator.h: Likewise.
15939         * lib/unictype/pr_bidi_control.h: Likewise.
15940         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
15941         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
15942         * lib/unictype/pr_bidi_pdf.h: Likewise.
15943         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
15944         * lib/unictype/pr_bidi_whitespace.h: Likewise.
15945         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
15946         * lib/unictype/pr_format_control.h: Likewise.
15947         * lib/unictype/pr_hex_digit.h: Likewise.
15948         * lib/unictype/pr_hyphen.h: Likewise.
15949         * lib/unictype/pr_ids_binary_operator.h: Likewise.
15950         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
15951         * lib/unictype/pr_iso_control.h: Likewise.
15952         * lib/unictype/pr_join_control.h: Likewise.
15953         * lib/unictype/pr_left_of_pair.h: Likewise.
15954         * lib/unictype/pr_line_separator.h: Likewise.
15955         * lib/unictype/pr_math.h: Likewise.
15956         * lib/unictype/pr_non_break.h: Likewise.
15957         * lib/unictype/pr_not_a_character.h: Likewise.
15958         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
15959         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
15960         * lib/unictype/pr_other_id_continue.h: Likewise.
15961         * lib/unictype/pr_other_id_start.h: Likewise.
15962         * lib/unictype/pr_other_lowercase.h: Likewise.
15963         * lib/unictype/pr_other_math.h: Likewise.
15964         * lib/unictype/pr_other_uppercase.h: Likewise.
15965         * lib/unictype/pr_paired_punctuation.h: Likewise.
15966         * lib/unictype/pr_paragraph_separator.h: Likewise.
15967         * lib/unictype/pr_pattern_syntax.h: Likewise.
15968         * lib/unictype/pr_pattern_white_space.h: Likewise.
15969         * lib/unictype/pr_private_use.h: Likewise.
15970         * lib/unictype/pr_quotation_mark.h: Likewise.
15971         * lib/unictype/pr_radical.h: Likewise.
15972         * lib/unictype/pr_soft_dotted.h: Likewise.
15973         * lib/unictype/pr_space.h: Likewise.
15974         * lib/unictype/pr_titlecase.h: Likewise.
15975         * lib/unictype/pr_variation_selector.h: Likewise.
15976         * lib/unictype/pr_white_space.h: Likewise.
15977         * lib/unictype/sy_c_ident.h: Likewise.
15978         * lib/unictype/sy_c_whitespace.h: Likewise.
15979         * lib/unictype/sy_java_whitespace.h: Likewise.
15980         * modules/uni*/*: Bump version number of expected libunistring version.
15981         Reported by Simon Josefsson.
15982
15983 2011-01-09  Karl Heuer  <kwzh@gnu.org>
15984
15985         useless-if-before-free: fix typo in --help and make the internal,
15986         automatic version date update process work once again.
15987         --help output contained a NUL character instead of the
15988         backslash-zero that was intended.  Also, the "must lie within
15989         the first 8 lines" line is on line 9, and hence not getting
15990         automatically updated.
15991         * build-aux/useless-if-before-free: Fix the former by adding a
15992         backslash, and the latter by condensing the three lines of what-it-does
15993         to a single line, leaving one line of slack for the future.
15994
15995 2011-01-09  Bruno Haible  <bruno@clisp.org>
15996
15997         uniwidth/width: Fix width of U+1D173..U+1D17A.
15998         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
15999         symbolic_width, output_width_property_test): New functions.
16000         (main): Invoke output_nonspacing_property, output_width_property_test.
16001         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
16002         U+1D173..U+1D17A.
16003         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
16004         1.
16005         * modules/uniwidth/*: Bump version number of expected libunistring
16006         version.
16007         * modules/unilbrk/*: Likewise.
16008
16009 2011-01-08  Bruno Haible  <bruno@clisp.org>
16010
16011         uninorm tests: Preserve copyright of Unicode data file.
16012         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
16013         Mention modifications.
16014
16015 2011-01-08  Bruno Haible  <bruno@clisp.org>
16016
16017         gen-uni-tables: Prepare for Unicode 5.2.0.
16018         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
16019         (debug_output_lbp, output_lbp): Update.
16020
16021 2011-01-08  Bruno Haible  <bruno@clisp.org>
16022
16023         unilbrk: Clarify gen-uni-tables.c code.
16024         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
16025         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
16026         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
16027
16028 2011-01-07  Bruno Haible  <bruno@clisp.org>
16029
16030         strtod: Restore errno when successfully parsing Infinity or NaN.
16031         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
16032         restore the original errno.
16033
16034 2011-01-07  Bruno Haible  <bruno@clisp.org>
16035
16036         remove test: Avoid failure on HP-UX 11.
16037         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
16038
16039 2011-01-07  Bruno Haible  <bruno@clisp.org>
16040
16041         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
16042         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
16043         error code.
16044
16045 2011-01-07  Pádraig Brady <P@draigBrady.com>
16046
16047         ignore-value: fixup comments, and add Eric Blake
16048         as an author since he rewrote the macros.
16049         * lib/ignore-value.h (ignore_value):  State that
16050         we now support aggregates.  Also specify exactly
16051         when the GCC warn_unused_result feature was added.
16052
16053 2011-01-06  Eric Blake  <eblake@redhat.com>
16054
16055         ignore-value: support aggregate types
16056         * lib/ignore-value.h (ignore_value): Provide separate gcc
16057         definition.
16058         * modules/ignore-value-tests: New test module.
16059         * tests/test-ignore-value.c: New test.
16060
16061         maint.mk: improve sc_prohibit_strcmp regex
16062         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
16063         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
16064         definition of STRNEQ.
16065
16066         signal: work around Haiku issue with SIGBUS
16067         * lib/siglist.h: Add comment.
16068         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
16069         strsignal's favoring of SIGSEGV.
16070         * tests/test-signal.c (main): Avoid test failure.
16071         * doc/posix-headers/signal.texi (signal.h): Document the issue.
16072         Reported by Scott McCreary.
16073
16074         maint.mk: add pre-release check to ensure submodule commits are public
16075         * top/maint.mk (public-submodule-commit): New rule.
16076         (submodule-checks): New variable.
16077         (alpha beta stable): Depend on the variable.
16078
16079 2011-01-05  Pádraig Brady <P@draigBrady.com>
16080         and Jim Meyering  <meyering@redhat.com>
16081
16082         ignore-value: make ignore_value more generic; deprecate ignore_ptr
16083         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
16084         (ATTRIBUTE_DEPRECATED): Define.
16085         (_ignore_case): New function.
16086         (ignore_value): New macro, to replace the old function.
16087         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
16088         * modules/ignore-value (Depends-on): Add stdint.
16089
16090 2011-01-04  Eric Blake  <eblake@redhat.com>
16091
16092         doc: regenerate INSTALL
16093         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
16094         @firstparagraphindent support, now that autoconf dropped it.
16095         (INSTALL_PRELUDE): Reinstate old macro.
16096         * doc/install.texi: Resync from autoconf.
16097         * doc/INSTALL: Reflect recent autoconf update.
16098         * doc/INSTALL.ISO: Likewise.
16099         * doc/INSTALL.UTF-8: Likewise.
16100         Reported by Karl Berry.
16101
16102 2011-01-04  Bruce Korb  <address@hidden>
16103
16104         git-version-gen: avoid a sub-shell
16105         * build-aux/git-version-gen: Redirect stderr in `...` via
16106         "exec 2>...", rather than via an added sub-shell.
16107
16108 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
16109
16110         git-version-gen: use (...) rather than sh -c '...'
16111         * build-aux/git-version-gen: Rather than hard-coding a shell's name
16112         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
16113
16114 2011-01-03  Jim Meyering  <meyering@redhat.com>
16115
16116         git-version-gen: convert leading TABs to spaces
16117         * build-aux/git-version-gen: Expand leading TABs.
16118
16119         git-version-gen: handle failed "git rev-list"
16120         * build-aux/git-version-gen: Rather than leaking a "fatal" error
16121         from git and proceeding as if it had succeeded but printed no SHA1
16122         checksums, suppress the diagnostic and handle the failure.
16123         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
16124
16125         git-version-gen: include command name in one more diagnostic
16126         * build-aux/git-version-gen: When the required .tarball-version file
16127         was missing or unreadable, you might see the diagnostic from "cat",
16128         but no trace of the name of the invoking script.  Now, you still see
16129         the diagnostic from cat, but also get one from "git-version-gen: ".
16130         Inspired by a patch from Bruce Korb.
16131
16132         update-copyright: adjust test to match changed code
16133         * tests/test-update-copyright.sh: Change test's expected output
16134         to match new actual output.
16135
16136 2011-01-02  Bruno Haible  <bruno@clisp.org>
16137
16138         getlogin_r: Avoid test failure on HP-UX 11.
16139         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
16140         ERANGE when the second argument is zero.
16141         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
16142         portability problem.
16143
16144 2011-01-02  Bruce Korb  <bkorb@gnu.org>
16145
16146         * build-aux/update-copyright: doc Simon's changes
16147
16148 2011-01-02  Simon Josefsson  <simon@josefsson.org>
16149
16150         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
16151         environment variable.
16152
16153 2011-01-02  Bruno Haible  <bruno@clisp.org>
16154
16155         unigbrk: Avoid gcc warnings.
16156         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
16157         unused variable.
16158         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
16159         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
16160         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
16161         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
16162         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
16163         Change type of first argument to 'const char *'.
16164         (main): Remove unused variable.
16165         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
16166         type of first argument to 'const char *'.
16167         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
16168         Likewise.
16169         (main): Change type of variable 's'.
16170         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
16171         to 'int'.
16172
16173 2011-01-02  Bruno Haible  <bruno@clisp.org>
16174
16175         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
16176         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
16177         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
16178         bug.
16179         * lib/pwrite.c: Undo 2010-12-31 patch.
16180         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
16181
16182 2011-01-02  Bruno Haible  <bruno@clisp.org>
16183
16184         pread: Fix test whether it works.
16185         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
16186
16187 2011-01-02  Bruno Haible  <bruno@clisp.org>
16188
16189         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
16190         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
16191         ends in "6". Don't require a specific month name. Try also the locale
16192         names found on HP-UX 11 and Solaris 7.
16193
16194 2011-01-02  Bruno Haible  <bruno@clisp.org>
16195
16196         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
16197         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
16198         C linkage.
16199         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
16200
16201 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
16202
16203         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
16204         for consistency, since the "cluster" term is not used elsewhere.
16205         * lib/unigbrk.in.h: Update name.
16206         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
16207         * lib/unigbrk/u16-grapheme-next.c: Update name.
16208         * lib/unigbrk/u16-grapheme-prev.c: Update name.
16209         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
16210         * lib/unigbrk/u32-grapheme-next.c: Update name.
16211         * lib/unigbrk/u32-grapheme-prev.c: Update name.
16212         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
16213         * lib/unigbrk/u8-grapheme-next.c: Update name.
16214         * lib/unigbrk/u8-grapheme-prev.c: Update name.
16215         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
16216         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
16217         Suggested by Bruno Haible.
16218
16219 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
16220
16221         Remove module 'u8-grapheme-len' as too redundant with
16222         'u8-grapheme-next'.
16223         * modules/unigbrk/u8-grapheme-len: Delete file.
16224         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
16225         * lib/unigbrk.in.h: Remove prototype for deleted function.
16226         * lib/unigbrk/u8-grapheme-len.c: Delete file.
16227         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
16228
16229         Remove module 'u16-grapheme-len' as too redundant with
16230         'u16-grapheme-next'.
16231         * modules/unigbrk/u16-grapheme-len: Delete file.
16232         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
16233         * lib/unigbrk.in.h: Remove prototype for deleted function.
16234         * lib/unigbrk/u16-grapheme-len.c: Delete file.
16235         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
16236
16237         Remove module 'u32-grapheme-len' as too redundant with
16238         'u32-grapheme-next'.
16239         * modules/unigbrk/u32-grapheme-len: Delete file.
16240         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
16241         * lib/unigbrk.in.h: Remove prototype for deleted function.
16242         * lib/unigbrk/u32-grapheme-len.c: Delete file.
16243         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
16244
16245         Suggested by Bruno Haible.
16246
16247 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
16248
16249         * unigbrk.in.h: Fix typo: "ben" => "been".
16250         Reported by Bruno Haible.
16251
16252 2011-01-01  Jim Meyering  <meyering@redhat.com>
16253
16254         maint: update almost all copyright ranges to include 2011
16255         Run the new "make update-copyright" rule.
16256
16257 2011-01-01  Jim Meyering  <meyering@redhat.com>
16258
16259         maint: update-copyright: exempt doc/INSTALL*
16260         * Makefile (update-copyright): Also exclude doc/INSTALL*,
16261         since they are generated.  Suggested by Bruno Haible.
16262
16263 2011-01-01  Jim Meyering  <meyering@redhat.com>
16264
16265         maint: refine the update-copyright rule
16266         * Makefile (update-copyright): Also exclude any file that includes
16267         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
16268         code that merely generates the comment.
16269
16270 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
16271
16272         New module 'u8-grapheme-len'.
16273         * modules/unigbrk/u8-grapheme-len: New file.
16274         * modules/unigbrk/u8-grapheme-len-tests: New file.
16275         * lib/unigbrk.in.h: Add prototype for new function.
16276         * lib/unigbrk/u8-grapheme-len.c: New file.
16277         * tests/unigbrk/test-u8-grapheme-len.c: New file.
16278
16279         New module 'u16-grapheme-len'.
16280         * modules/unigbrk/u16-grapheme-len: New file.
16281         * modules/unigbrk/u16-grapheme-len-tests: New file.
16282         * lib/unigbrk.in.h: Add prototype for new function.
16283         * lib/unigbrk/u16-grapheme-len.c: New file.
16284         * tests/unigbrk/test-u16-grapheme-len.c: New file.
16285
16286         New module 'u32-grapheme-len'.
16287         * modules/unigbrk/u32-grapheme-len: New file.
16288         * modules/unigbrk/u32-grapheme-len-tests: New file.
16289         * lib/unigbrk.in.h: Add prototype for new function.
16290         * lib/unigbrk/u32-grapheme-len.c: New file.
16291         * tests/unigbrk/test-u32-grapheme-len.c: New file.
16292
16293         New module 'u8-grapheme-next'.
16294         * modules/unigbrk/u8-grapheme-next: New file.
16295         * modules/unigbrk/u8-grapheme-next-tests: New file.
16296         * lib/unigbrk.in.h: Add prototype for new function.
16297         * lib/unigbrk/u8-grapheme-next.c: New file.
16298         * tests/unigbrk/test-u8-grapheme-next.c: New file.
16299
16300         New module 'u16-grapheme-next'.
16301         * modules/unigbrk/u16-grapheme-next: New file.
16302         * modules/unigbrk/u16-grapheme-next-tests: New file.
16303         * lib/unigbrk.in.h: Add prototype for new function.
16304         * lib/unigbrk/u16-grapheme-next.c: New file.
16305         * tests/unigbrk/test-u16-grapheme-next.c: New file.
16306
16307         New module 'u32-grapheme-next'.
16308         * modules/unigbrk/u32-grapheme-next: New file.
16309         * modules/unigbrk/u32-grapheme-next-tests: New file.
16310         * lib/unigbrk.in.h: Add prototype for new function.
16311         * lib/unigbrk/u32-grapheme-next.c: New file.
16312         * tests/unigbrk/test-u32-grapheme-next.c: New file.
16313
16314         New module 'u8-grapheme-prev'.
16315         * modules/unigbrk/u8-grapheme-prev: New file.
16316         * modules/unigbrk/u8-grapheme-prev-tests: New file.
16317         * lib/unigbrk.in.h: Add prototype for new function.
16318         * lib/unigbrk/u8-grapheme-prev.c: New file.
16319         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
16320
16321         New module 'u16-grapheme-prev'.
16322         * modules/unigbrk/u16-grapheme-prev: New file.
16323         * modules/unigbrk/u16-grapheme-prev-tests: New file.
16324         * lib/unigbrk.in.h: Add prototype for new function.
16325         * lib/unigbrk/u16-grapheme-prev.c: New file.
16326         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
16327
16328         New module 'u32-grapheme-prev'.
16329         * modules/unigbrk/u32-grapheme-prev: New file.
16330         * modules/unigbrk/u32-grapheme-prev-tests: New file.
16331         * lib/unigbrk.in.h: Add prototype for new function.
16332         * lib/unigbrk/u32-grapheme-prev.c: New file.
16333         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
16334
16335         New module 'u8-grapheme-breaks'.
16336         * modules/unigbrk/u8-grapheme-breaks: New file.
16337         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
16338         * lib/unigbrk.in.h: Add prototype for new function.
16339         * lib/unigbrk/u8-grapheme-breaks.c: New file.
16340         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
16341
16342         New module 'u16-grapheme-breaks'.
16343         * modules/unigbrk/u16-grapheme-breaks: New file.
16344         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
16345         * lib/unigbrk.in.h: Add prototype for new function.
16346         * lib/unigbrk/u16-grapheme-breaks.c: New file.
16347         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
16348
16349         New module 'u32-grapheme-breaks'.
16350         * modules/unigbrk/u32-grapheme-breaks: New file.
16351         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
16352         * lib/unigbrk.in.h: Add prototype for new function.
16353         * lib/unigbrk/u32-grapheme-breaks.c: New file.
16354         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
16355
16356         New module 'ulc-grapheme-breaks'.
16357         * modules/unigbrk/ulc-grapheme-breaks: New file.
16358         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
16359         * m4/locale-ar.m4: New file.
16360         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
16361         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
16362         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
16363
16364 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
16365
16366         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
16367         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
16368         modified how this file was generated before I initially submitted
16369         the module, but failed to regenerate it.  This meant that several
16370         of the level2 entries were wrong.
16371         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
16372         Remove the division-by-2 that is folded into the table now that
16373         gbrkprop.h has been regenerated properly.  Now -1 entries are
16374         handled correctly.
16375
16376         New module 'unigbrk/uc-gbrk-prop-tests'.
16377         * modules/unigbrk/uc-gbrk-prop-tests: New file.
16378         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
16379         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
16380         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
16381
16382 2011-01-01  Bruno Haible  <bruno@clisp.org>
16383
16384         Avoid use of hexadecimal escapes.
16385         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
16386         instead of hexadecimal escapes.
16387
16388 2011-01-01  Jim Meyering  <meyering@redhat.com>
16389
16390         maint: new rule to update copyright year ranges
16391         * Makefile (update-copyright): New rule.
16392
16393         maint: indent with TABs in Makefile
16394         * Makefile: Expand leading sequences of spaces to TABs
16395
16396         version-etc: update the copyright year it reports
16397         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
16398
16399 2010-12-31  Bruno Haible  <bruno@clisp.org>
16400
16401         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
16402         * lib/isfinite.c (zerof, zerod, zerol): New variables.
16403         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
16404         zero.
16405
16406 2010-12-31  Bruno Haible  <bruno@clisp.org>
16407
16408         pwrite: Work around HP-UX 11.11 bug.
16409         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
16410         works and set REPLACE_PWRITE if not.
16411         * lib/pwrite.c (pwrite): Add an implementation that uses the system
16412         function.
16413         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
16414
16415 2010-12-31  Bruno Haible  <bruno@clisp.org>
16416
16417         pread: Work around HP-UX 11 bugs.
16418         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
16419         and set REPLACE_PREAD if not.
16420         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
16421
16422 2010-12-31  Eric Blake  <eblake@redhat.com>
16423
16424         nl_langinfo: fix YESEXPR on Irix 6.5
16425         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
16426         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
16427         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
16428         it.
16429
16430 2010-12-31  Bruno Haible  <bruno@clisp.org>
16431
16432         iconv: Document HP-UX 11 bug.
16433         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
16434
16435 2010-12-31  Bruno Haible  <bruno@clisp.org>
16436
16437         ldexpl: Fix link error on HP-UX 11.
16438         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
16439         LDEXPL_LIBM, using $ISNANL_LIBM.
16440
16441 2010-12-31  Eric Blake  <eblake@redhat.com>
16442
16443         ftello: avoid compilation failure with SunStudio c89
16444         * lib/ftello.c (ftello): Use lseek, not llseek.
16445
16446         tests: avoid failing coreutils tests on cygwin
16447         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
16448         (create_exe_shims_): Return 0 when skipping.
16449
16450 2010-12-31  Bruno Haible  <bruno@clisp.org>
16451
16452         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
16453         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
16454
16455 2010-12-31  Bruno Haible  <bruno@clisp.org>
16456
16457         waitpid: Fix link error in C++ mode.
16458         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
16459
16460 2010-12-31  Bruno Haible  <bruno@clisp.org>
16461
16462         isnan: Use GCC built-ins when possible.
16463         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
16464         __builtin_isnan.
16465         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
16466         (isnan): Define using GCC built-ins for GCC >= 4.0.
16467
16468 2010-12-31  Bruno Haible  <bruno@clisp.org>
16469
16470         isnand: Fix mistake.
16471         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
16472         __builtin_isnand.
16473
16474 2010-12-31  Bruno Haible  <bruno@clisp.org>
16475
16476         open: Avoid C++ error on HP-UX 11.
16477         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
16478
16479 2010-12-31  Bruno Haible  <bruno@clisp.org>
16480
16481         time_r: Add missing declarations on HP-UX 11.
16482         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
16483         instead of HAVE_LOCALTIME_R.
16484         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
16485         HAVE_LOCALTIME_R always.
16486         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
16487         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
16488         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
16489         HAVE_LOCALTIME_R.
16490         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
16491         * doc/posix-functions/localtime_r.texi: Likewise.
16492
16493 2010-12-29  Eric Blake  <eblake@redhat.com>
16494
16495         mountlist: tweak previous commit
16496         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
16497         Reported by Paul Eggert.
16498
16499         mountlist: fix local drive detection on cygwin
16500         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
16501         that works for cygwin.
16502
16503 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
16504
16505         ftoastr, snprintf: ftoastr + snprintf module
16506         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
16507         since the snprintf module now should be good enough here.
16508         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
16509         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
16510         and gl_MODULE_INDICATOR([snprintf]), but the former enables
16511         GNULIB_SNPRINTF only for the test directory, and the latter
16512         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
16513         seems to suffice by itself.
16514
16515 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
16516
16517         alloca: one step towards thread-safety
16518         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
16519         need for a static variable.  All callers changed.  This does not
16520         make the alloca replacement thread-safe, but it's one step.
16521
16522         tests: minor indenting change
16523         * tests/init.sh: Sync from coreutils housekeeping patch
16524         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
16525         to keep lines within 80 columns.
16526
16527 2010-12-28  Jim Meyering  <meyering@redhat.com>
16528
16529         regex: don't infloop on persistent failing calloc
16530         * lib/regexec.c (build_trtable): Return failure indication upon
16531         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
16532         In glibc, this was fixed for version 2.13:
16533         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
16534
16535 2010-12-28  Bruno Haible  <bruno@clisp.org>
16536             Paul Eggert <eggert@cs.ucla.edu>
16537
16538         linkat: Make implementation robust against system behaviour variations.
16539         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
16540         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
16541         way, and to -2 if it needs a generic runtime test.
16542         * lib/linkat.c (solaris_optimized_link_immediate,
16543         solaris_optimized_link_follow): New functions.
16544         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
16545         (check_same_link): Use it.
16546
16547 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
16548
16549         New module 'unigbrk/base'.
16550         * modules/unigbrk/base: New file.
16551         * lib/unigbrk.in.h: New file.
16552
16553         New module 'unigbrk/uc-gbrk-prop'.
16554         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
16555         * modules/unigbrk/uc-gbrk-prop: New file.
16556         * lib/unigbrk/gbrkprop.h: New file.
16557         * lib/unigbrk/uc-gbrk-prop.c: New file.
16558
16559         New module 'unigbrk/uc-is-grapheme-break'.
16560         * modules/unigbrk/uc-is-grapheme-break: New file.
16561         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
16562         * lib/unigbrk/uc-is-grapheme-break.c: New file.
16563         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
16564         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
16565         * tests/unigbrk/GraphemeBreakTest.txt: New file.
16566
16567         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
16568
16569 2010-12-27  Bruno Haible  <bruno@clisp.org>
16570
16571         linkat test: Avoid failure on Solaris 11 2010-11.
16572         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
16573
16574 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
16575
16576         utimens: work around glibc rounding bug on more platforms
16577         * lib/utimens.c (fdutimens): Work around rounding bug even if
16578         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
16579         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
16580
16581 2010-12-27  Bruno Haible  <bruno@clisp.org>
16582
16583         select tests: Improve comments.
16584         * tests/test-select.c (do_select): Add comments.
16585
16586 2010-12-27  Bruno Haible  <bruno@clisp.org>
16587
16588         select tests: Safer way of handling timeout.
16589         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
16590         at every invocation.
16591
16592 2010-12-27  Bruno Haible  <bruno@clisp.org>
16593
16594         select tests: Use 'bool' where appropriate.
16595         * tests/test-select.c (connect_to_socket): Change argument type to
16596         'bool'.
16597
16598 2010-12-27  Bruno Haible  <bruno@clisp.org>
16599
16600         select tests: Use existing modules.
16601         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
16602         (configure.ac): Don't test for unistd.h.
16603         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
16604         declared in <unistd.h>.
16605
16606 2010-12-27  Bruno Haible  <bruno@clisp.org>
16607
16608         mbrtowc: Work around a Solaris 7 bug.
16609         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
16610         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
16611         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
16612         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
16613         MBRTOWC_NULL_ARG1_BUG.
16614         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
16615         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
16616         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
16617         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
16618
16619 2010-12-27  Jim Meyering  <meyering@redhat.com>
16620
16621         read-file.c: tweak syntax
16622         * lib/read-file.c (fread_file): Remove space after "*" in function
16623         definitions.
16624
16625 2010-12-27  Bruno Haible  <bruno@clisp.org>
16626
16627         times test: Avoid gcc warnings on OSF/1.
16628         * tests/test-times.c (main): Cast printf arguments from clock_t to
16629         'long int'.
16630
16631 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
16632
16633         utimens: work around glibc rounding bug on older Linux kernels
16634         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
16635         on Linux with a glibc whose utimes might not work, then work
16636         around a longstanding glibc bug involving rounding rather than
16637         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
16638         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
16639
16640 2010-12-26  Bruno Haible  <bruno@clisp.org>
16641
16642         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
16643         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
16644         _GL_CXXALIAS_SYS.
16645         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
16646
16647 2010-12-26  Bruno Haible  <bruno@clisp.org>
16648
16649         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
16650         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
16651         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
16652         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
16653         looking for the declaration.
16654         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
16655         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
16656         problem.
16657         * doc/posix-functions/inet_pton.texi: Likewise.
16658
16659 2010-12-26  Bruno Haible  <bruno@clisp.org>
16660
16661         arpa_inet: Use the common idioms with C++ support.
16662         * lib/arpa_inet.in.h: Include c++defs.h.
16663         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
16664         support.
16665         * modules/arpa_inet (Depends-on): Add c++defs.
16666         (Makefile.am): Substitute the contents of c++defs.h.
16667         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
16668         * modules/arpa_inet-c++-tests: New file.
16669         * tests/test-arpa_inet-c++.cc: New file.
16670
16671 2010-12-25  Bruno Haible  <bruno@clisp.org>
16672
16673         Fix more C++ link errors on Solaris 8.
16674         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
16675         $(LIB_EACCESS).
16676         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
16677         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
16678         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
16679         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
16680         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
16681
16682 2010-12-25  Bruno Haible  <bruno@clisp.org>
16683
16684         printf-posix: Fix link error when a non-GCC compiler is used.
16685         * lib/stdio.in.h (printf): When not using GCC, override printf
16686         correctly.
16687         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
16688
16689 2010-12-25  Bruno Haible  <bruno@clisp.org>
16690
16691         strerror_r-posix: Update doc.
16692         * doc/posix-functions/strerror_r.texi: Update doc about the return
16693         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
16694
16695 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
16696
16697         utimens: simplify the logic of the previous change
16698         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
16699         This should not affect whether the test succeeds or fails.
16700
16701         utimens: configure better on hosts with NFS clock skew
16702         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
16703         uses the clock of the local host.  It might use the clock of the
16704         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
16705         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
16706
16707 2010-12-25  Bruno Haible  <bruno@clisp.org>
16708
16709         ptsname test: Avoid failure on Solaris.
16710         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
16711         open a pseudo-terminal; don't use BSD-style ptys.
16712         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
16713
16714 2010-12-25  Bruno Haible  <bruno@clisp.org>
16715
16716         ptsname: Avoid ERANGE failure on some systems.
16717         * lib/ptsname.c (buffer): Increase size.
16718
16719 2010-12-25  Bruno Haible  <bruno@clisp.org>
16720
16721         rename, renameat: Avoid test failures at NFS mounted locations.
16722         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
16723         so that subsequent mkdir calls succeed.
16724
16725 2010-12-25  Bruno Haible  <bruno@clisp.org>
16726
16727         iswblank: Fix C++ link error on Solaris 8.
16728         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
16729         _GL_FUNCDECL_SYS.
16730
16731 2010-12-25  Bruno Haible  <bruno@clisp.org>
16732
16733         unistd: Fix C++ link error on Solaris 8.
16734         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
16735
16736 2010-12-25  Bruno Haible  <bruno@clisp.org>
16737
16738         readlink doc: Mention an old glibc bug.
16739         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
16740
16741 2010-12-25  Bruno Haible  <bruno@clisp.org>
16742
16743         fcntl-h: Fix for use of C++ on glibc systems.
16744         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
16745         also on glibc systems in C++ mode.
16746         Reported by Gary V. Vaughan <gary@gnu.org>.
16747
16748 2010-12-25  Bruno Haible  <bruno@clisp.org>
16749
16750         roundl-ieee: Make it work on OSF/1 5.1 with cc.
16751         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
16752
16753 2010-12-25  Bruno Haible  <bruno@clisp.org>
16754
16755         truncl-ieee: Make it work on OSF/1 5.1 with cc.
16756         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
16757         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
16758         test whether truncl works according to ISO C 99 with IEC 60559.
16759         * m4/truncl-ieee.m4: New file.
16760         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
16761         m4/signbit.m4.
16762         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
16763
16764 2010-12-25  Bruno Haible  <bruno@clisp.org>
16765
16766         ceill-ieee: Make it work on OSF/1 5.1 with cc.
16767         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
16768         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
16769         test whether ceill works according to ISO C 99 with IEC 60559.
16770         * m4/ceill-ieee.m4: New file.
16771         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
16772         m4/signbit.m4.
16773         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
16774
16775 2010-12-25  Bruno Haible  <bruno@clisp.org>
16776
16777         Ensure all prerequisites of <wchar.h> are included.
16778         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
16779         before <wchar.h>.
16780         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
16781         gl_MBRLEN_NUL_RETVAL): Likewise.
16782         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
16783         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
16784         AC_FUNC_MBRTOWC): Likewise.
16785         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
16786         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
16787         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
16788         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
16789         Likewise.
16790         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
16791         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
16792         (gl_WCHAR_H): Improve comments.
16793         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
16794
16795 2010-12-25  Bruno Haible  <bruno@clisp.org>
16796
16797         strtok_r: Fix C syntax error in autoconf macro.
16798         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
16799         characters in test program.
16800
16801 2010-12-24  Bruno Haible  <bruno@clisp.org>
16802
16803         ceil, trunc, round: Fix gcc warnings.
16804         * lib/ceil.c (MIN): Undefine before redefining.
16805         * lib/trunc.c (MIN): Likewise.
16806         * lib/round.c (MIN): Likewise.
16807         Include <math.h> first.
16808
16809 2010-12-24  Bruno Haible  <bruno@clisp.org>
16810
16811         select tests: Avoid failures on OSF/1 5.1.
16812         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
16813         failure of closing the last socket; it may fail with ECONNRESET.
16814
16815 2010-12-24  Eric Blake  <eblake@redhat.com>
16816
16817         stdint: avoid HP-UX 10.20 preprocessor bug
16818         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
16819         than #if.
16820         * tests/test-floor2.c (main): Likewise.
16821         Reported by Peter O'Gorman.
16822
16823         pipe: make obsoletion transition easier
16824         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
16825         * modules/pipe (Files): Include revived file.
16826         (Include): Drop reference, to mirror getdate's behavior.
16827
16828 2010-12-24  Bruno Haible  <bruno@clisp.org>
16829
16830         sys_socket: Hide mismatch of declarations on NonStop Kernel.
16831         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
16832         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
16833         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
16834
16835 2010-12-24  Bruno Haible  <bruno@clisp.org>
16836
16837         gethostname: Ensure declaration on NonStop Kernel.
16838         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
16839         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
16840
16841 2010-12-24  Bruno Haible  <bruno@clisp.org>
16842
16843         sys_select: Ensure all necessary types on NonStop Kernel.
16844         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
16845         include <sys/time.h>.
16846         * doc/posix-headers/sys_select.texi: Mention that it's missing on
16847         NonStop Kernel.
16848         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
16849
16850 2010-12-24  Bruno Haible  <bruno@clisp.org>
16851
16852         sys_select: Remove unneeded include.
16853         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
16854         have <sys/select.h>.
16855
16856 2010-12-24  Bruno Haible  <bruno@clisp.org>
16857
16858         gethostname: Provide a fallback for HOST_NAME_MAX.
16859         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
16860         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
16861         instead.
16862         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
16863
16864 2010-12-24  Bruno Haible  <bruno@clisp.org>
16865
16866         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
16867         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
16868         (SA_RESTART): Likewise.
16869         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
16870
16871 2010-12-24  Bruno Haible  <bruno@clisp.org>
16872
16873         signal: Define NSIG.
16874         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
16875         * tests/test-signal.c (nsig): New variable.
16876         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
16877
16878 2010-12-24  Bruno Haible  <bruno@clisp.org>
16879
16880         rename, renameat: Avoid test failures on OSF/1 5.1.
16881         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
16882         alternative error codes.
16883         * tests/test-renameat.c (main): Likewise.
16884
16885 2010-12-24  Bruno Haible  <bruno@clisp.org>
16886
16887         *printf: Detect large precisions bug on Solaris 10/SPARC.
16888         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
16889         by Paul Eggert.
16890         * tests/test-snprintf-posix.h (test_function): Add this test code here
16891         too.
16892         * tests/test-sprintf-posix.h (test_function): Likewise.
16893         * tests/test-vasnprintf-posix.c (test_function): Likewise.
16894         * tests/test-vasprintf-posix.c (test_function): Likewise.
16895         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
16896         around by gnulib.
16897         * doc/posix-functions/printf.texi: Likewise.
16898         * doc/posix-functions/snprintf.texi: Likewise.
16899         * doc/posix-functions/sprintf.texi: Likewise.
16900         * doc/posix-functions/vfprintf.texi: Likewise.
16901         * doc/posix-functions/vprintf.texi: Likewise.
16902         * doc/posix-functions/vsnprintf.texi: Likewise.
16903         * doc/posix-functions/vsprintf.texi: Likewise.
16904         * doc/posix-functions/dprintf.texi: Undo last commit.
16905         * doc/posix-functions/vdprintf.texi: Likewise.
16906
16907 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
16908
16909         tests: port test-fdutimensat.c to Solaris 8
16910         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
16911         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
16912         On Solaris 8, it fails with errno == ENOSYS, because there is no
16913         futimens (so it can't use the fd), and there is no lutimens (so it
16914         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
16915
16916         vsnprintf: make more consistent with snprintf; doc fixes
16917
16918         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
16919         the byte count return problem was promoted from the snprintf-posix
16920         to the snprintf module.
16921         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
16922         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
16923         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
16924         * tests/test-snprintf.c (main): Check the byte count returned.
16925         * tests/test-vsnprintf.c (main): Likewise.
16926
16927 2010-12-23  Eric Blake  <eblake@redhat.com>
16928
16929         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
16930         * modules/sigpipe (License): Relax license.
16931
16932 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
16933
16934         doc: document Solaris printf bug with large float precisions
16935         * doc/posix-functions/dprintf.texi (dprintf):
16936         * doc/posix-functions/fprintf.texi (fprintf):
16937         * doc/posix-functions/printf.texi (printf):
16938         * doc/posix-functions/snprintf.texi (snprintf):
16939         * doc/posix-functions/sprintf.texi (sprintf):
16940         * doc/posix-functions/vdprintf.texi (vdprintf):
16941         * doc/posix-functions/vfprintf.texi (vfprintf):
16942         * doc/posix-functions/vprintf.texi (vprintf):
16943         * doc/posix-functions/vsnprintf.texi (vsnprintf):
16944         * doc/posix-functions/vsprintf.texi (vsprintf):
16945         Mention that these functions mishandle large floating point
16946         precisions on Solaris 10.  The same bug is also present in Solaris
16947         8, and I assume earlier.  This causes "cd gnulib-tests; make
16948         check" to fail on Solaris 8 (and I assume, later) when building
16949         the latest coreutils, in test-vasprintf-posix's call to
16950         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
16951         the wide flavors (e.g., wprintf) so this patch just updates the
16952         documentation for the narrow ones.
16953
16954         test-posixtm.c: add two tests
16955         * tests/test-posixtm.c: Add two tests, to highlight the
16956         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
16957         around this bug; this is merely to document it.
16958
16959 2010-12-22  Bruno Haible  <bruno@clisp.org>
16960
16961         getlogin_r: Work around portability problem on OSF/1.
16962         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
16963         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
16964         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
16965         test for a truncated result.
16966         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
16967         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
16968         * modules/getlogin_r (Depends-on): Add memchr.
16969         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
16970
16971 2010-12-22  Bruno Haible  <bruno@clisp.org>
16972
16973         ptsname: Avoid test failure on OSF/1 5.1.
16974         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
16975         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
16976         (same_slave): New function.
16977         (main): Use it to compare ptsname's result with the expected file name.
16978
16979 2010-12-22  Bruno Haible  <bruno@clisp.org>
16980
16981         Port extended stdio modules to HP NonStop Kernel.
16982         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
16983         macros.
16984         * lib/fbufmode.c: Update comments.
16985         * lib/fflush.c: Likewise.
16986         * lib/fpurge.c: Likewise.
16987         * lib/freadable.c: Likewise.
16988         * lib/freadahead.c: Likewise.
16989         * lib/freading.c: Likewise.
16990         * lib/freadptr.c: Likewise.
16991         * lib/freadseek.c: Likewise.
16992         * lib/fseeko.c: Likewise.
16993         * lib/fseterr.c: Likewise.
16994         * lib/fwritable.c: Likewise.
16995         * lib/fwriting.c: Likewise.
16996         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
16997
16998 2010-12-22  Bruno Haible  <bruno@clisp.org>
16999
17000         ttyname_r: Work around bug on OSF/1 5.1.
17001         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
17002         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
17003         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
17004         present.
17005         * lib/ttyname_r.c (ttyname_r): Update comments.
17006
17007 2010-12-22  Bruno Haible  <bruno@clisp.org>
17008
17009         round: Implement result sign according to IEEE 754.
17010         * lib/round.c (MIN, MINUS_ZERO): New macros.
17011         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
17012         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
17013         * tests/test-round-ieee.c (main): Likewise.
17014         * tests/test-roundl-ieee.c (main): Likewise.
17015
17016         trunc: Implement result sign according to IEEE 754.
17017         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
17018         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
17019         * tests/test-trunc2.c: Include minus-zero.h.
17020         (MINUS_ZERO): New macro.
17021         (trunc_reference): Keep in sync with lib/trunc.c.
17022         * tests/test-truncf2.c: Include minus-zero.h.
17023         (MINUS_ZERO): New macro.
17024         (truncf_reference): Keep in sync with lib/trunc.c.
17025         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
17026         * tests/test-trunc-ieee.c (main): Likewise.
17027         * tests/test-truncl-ieee.c (main): Likewise.
17028
17029         ceil: Implement result sign according to IEEE 754.
17030         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
17031         (FUNC): Return -0.0 for -1 < x < 0.
17032         * tests/test-ceil2.c: Include minus-zero.h.
17033         (MINUS_ZERO): New macro.
17034         (ceil_reference): Keep in sync with lib/ceil.c.
17035         * tests/test-ceilf2.c: Include minus-zero.h.
17036         (MINUS_ZERO): New macro.
17037         (ceilf_reference): Keep in sync with lib/ceil.c.
17038         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
17039         * tests/test-ceil-ieee.c (main): Likewise.
17040         * tests/test-ceill-ieee.c (main): Likewise.
17041
17042         floor: Implement result sign according to IEEE 754.
17043         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
17044         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
17045         * tests/test-floorf2.c (floorf_reference): Likewise.
17046         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
17047         * tests/test-floor-ieee.c (main): Likewise.
17048         * tests/test-floorl-ieee.c (main): Likewise.
17049
17050 2010-12-22  Bruno Haible  <bruno@clisp.org>
17051
17052         getaddrinfo: Update doc.
17053         * doc/posix-functions/gai_strerror.texi: Return type is also different
17054         on AIX and HP-UX.
17055
17056 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
17057
17058         getaddrinfo, inet_ntop: Update doc for Solaris.
17059         * doc/posix-functions/gai_strerror.texi: Return type is also an
17060         issue on Solaris 9 and earlier.
17061         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
17062         on Solaris 10 and earlier.
17063
17064 2010-12-21  Bruno Haible  <bruno@clisp.org>
17065
17066         New module 'roundl-ieee'.
17067         * modules/roundl-ieee: New file.
17068         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
17069         test whether roundl works according to ISO C 99 with IEC 60559.
17070         * m4/roundl-ieee.m4: New file.
17071         * modules/roundl-ieee-tests: New file.
17072         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
17073         * tests/test-roundl.c (main): Remove signbit tests.
17074         * modules/roundl-tests (Depends-on): Remove signbit.
17075         * doc/posix-functions/roundl.texi: Mention the new module.
17076
17077 2010-12-21  Bruno Haible  <bruno@clisp.org>
17078
17079         New module 'truncl-ieee'.
17080         * modules/truncl-ieee: New file.
17081         * modules/truncl-ieee-tests: New file.
17082         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
17083         * tests/test-truncl.c (main): Remove signbit tests.
17084         * modules/truncl-tests (Depends-on): Remove signbit.
17085         * doc/posix-functions/truncl.texi: Mention the new module.
17086
17087 2010-12-21  Bruno Haible  <bruno@clisp.org>
17088
17089         New module 'ceill-ieee'.
17090         * modules/ceill-ieee: New file.
17091         * modules/ceill-ieee-tests: New file.
17092         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
17093         * tests/test-ceill.c (main): Remove signbit tests.
17094         * modules/ceill-tests (Depends-on): Remove signbit.
17095         * doc/posix-functions/ceill.texi: Mention the new module.
17096
17097 2010-12-21  Bruno Haible  <bruno@clisp.org>
17098
17099         New module 'floorl-ieee'.
17100         * modules/floorl-ieee: New file.
17101         * modules/floorl-ieee-tests: New file.
17102         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
17103         * tests/test-floorl.c (main): Remove signbit tests.
17104         * modules/floorl-tests (Depends-on): Remove signbit.
17105         * doc/posix-functions/floorl.texi: Mention the new module.
17106
17107 2010-12-21  Bruno Haible  <bruno@clisp.org>
17108
17109         New module 'round-ieee'.
17110         * modules/round-ieee: New file.
17111         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
17112         whether round works according to ISO C 99 with IEC 60559.
17113         * m4/round-ieee.m4: New file.
17114         * modules/round-ieee-tests: New file.
17115         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
17116         * tests/test-round1.c (main): Remove signbit tests.
17117         * modules/round-tests (Depends-on): Remove 'signbit'.
17118         * doc/posix-functions/round.texi: Mention the new module.
17119
17120 2010-12-21  Bruno Haible  <bruno@clisp.org>
17121
17122         New module 'trunc-ieee'.
17123         * modules/trunc-ieee: New file.
17124         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
17125         whether trunc works according to ISO C 99 with IEC 60559.
17126         * m4/trunc-ieee.m4: New file.
17127         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
17128         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
17129         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
17130         * modules/trunc-ieee-tests: New file.
17131         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
17132         * tests/test-trunc1.c (main): Remove signbit tests.
17133         * modules/trunc-tests (Depends-on): Remove 'signbit'.
17134         * doc/posix-functions/trunc.texi: Mention the new module.
17135
17136 2010-12-21  Bruno Haible  <bruno@clisp.org>
17137
17138         New module 'ceil-ieee'.
17139         * modules/ceil-ieee: New file.
17140         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
17141         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
17142         ISO C 99 with IEC 60559.
17143         * m4/ceil-ieee.m4: New file.
17144         * modules/ceil (Files): Add lib/ceil.c.
17145         (Depends-on): Add 'float'.
17146         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
17147         * lib/math.in.h (ceil): New declaration.
17148         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
17149         REPLACE_CEIL.
17150         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
17151         * modules/ceil-ieee-tests: New file.
17152         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
17153         * tests/test-math-c++.cc: Check the signature of 'ceil'.
17154         * doc/posix-functions/ceil.texi: Mention the new module.
17155
17156 2010-12-21  Bruno Haible  <bruno@clisp.org>
17157
17158         New module 'floor-ieee'.
17159         * modules/floor-ieee: New file.
17160         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
17161         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
17162         ISO C 99 with IEC 60559.
17163         * m4/floor-ieee.m4: New file.
17164         * modules/floor (Files): Add lib/floor.c.
17165         (Depends-on): Add 'float'.
17166         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
17167         * lib/math.in.h (floor): New declaration.
17168         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
17169         REPLACE_FLOOR.
17170         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
17171         * modules/floor-ieee-tests: New file.
17172         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
17173         * tests/test-math-c++.cc: Check the signature of 'floor'.
17174         * doc/posix-functions/floor.texi: Mention the new module.
17175
17176 2010-12-21  Bruno Haible  <bruno@clisp.org>
17177
17178         New module 'roundf-ieee'.
17179         * modules/roundf-ieee: New file.
17180         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
17181         test whether roundf works according to ISO C 99 with IEC 60559.
17182         * m4/roundf-ieee.m4: New file.
17183         * modules/roundf-ieee-tests: New file.
17184         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
17185         * tests/test-roundf1.c (main): Remove signbit tests.
17186         * modules/roundf-tests (Depends-on): Remove 'signbit'.
17187         * doc/posix-functions/roundf.texi: Mention the new module.
17188
17189 2010-12-21  Bruno Haible  <bruno@clisp.org>
17190
17191         New module 'truncf-ieee'.
17192         * modules/truncf-ieee: New file.
17193         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
17194         test whether truncf works according to ISO C 99 with IEC 60559.
17195         * m4/truncf-ieee.m4: New file.
17196         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
17197         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
17198         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
17199         * modules/truncf-ieee-tests: New file.
17200         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
17201         * tests/test-truncf1.c (main): Remove signbit tests.
17202         * modules/truncf-tests (Depends-on): Remove 'signbit'.
17203         * doc/posix-functions/truncf.texi: Mention the new module.
17204
17205 2010-12-21  Bruno Haible  <bruno@clisp.org>
17206
17207         New module 'ceilf-ieee'.
17208         * modules/ceilf-ieee: New file.
17209         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
17210         test whether ceilf works according to ISO C 99 with IEC 60559.
17211         * m4/ceilf-ieee.m4: New file.
17212         * modules/ceilf-ieee-tests: New file.
17213         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
17214         * tests/test-ceilf1.c (main): Remove signbit tests.
17215         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
17216         * doc/posix-functions/ceilf.texi: Mention the new module.
17217
17218 2010-12-21  Bruno Haible  <bruno@clisp.org>
17219
17220         New module 'floorf-ieee'.
17221         * modules/floorf-ieee: New file.
17222         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
17223         test whether floorf works according to ISO C 99 with IEC 60559.
17224         * m4/floorf-ieee.m4: New file.
17225         * modules/floorf-ieee-tests: New file.
17226         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
17227         * tests/test-floorf1.c (main): Remove signbit tests.
17228         * modules/floorf-tests (Depends-on): Remove 'signbit'.
17229         * doc/posix-functions/floorf.texi: Mention the new module.
17230
17231 2010-12-21  Bruno Haible  <bruno@clisp.org>
17232
17233         Support for minus zero in autoconf macros.
17234         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
17235         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
17236         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
17237         * tests/minus-zero.h: Update comments.
17238
17239 2010-12-21  Bruno Haible  <bruno@clisp.org>
17240
17241         Tests for module 'ceil'.
17242         * modules/ceil-tests: New file.
17243         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
17244         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
17245
17246 2010-12-21  Bruno Haible  <bruno@clisp.org>
17247
17248         Tests for module 'floor'.
17249         * modules/floor-tests: New file.
17250         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
17251         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
17252
17253 2010-12-21  Bruno Haible  <bruno@clisp.org>
17254
17255         math: Fix indentation.
17256         * lib/math.in.h (floorf): Fix indentation.
17257
17258 2010-12-21  Bruno Haible  <bruno@clisp.org>
17259
17260         Fix cross-compilation guesses on Solaris.
17261         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
17262         not match "solaris2.10".
17263         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
17264         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
17265         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
17266
17267 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
17268
17269         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
17270         This fixes a problem observed with the latest coreutils snapshot
17271         that caused a test to fail on Solaris 8.  src/csplit.c's call
17272         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
17273         earlier, instead of returning the number of bytes that would have
17274         been generated; this causes csplit to incorrectly report memory
17275         exhaustion.
17276         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
17277         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
17278         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
17279         comments to match.
17280         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
17281         Fix typo in matching older versions of Solaris: "solaris2.10"
17282         is matched by the shell pattern "solaris2.[0-9]*".  This matters
17283         only for guessing while cross-compiling.
17284         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
17285
17286 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
17287
17288         ftoastr: fix comment again
17289         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
17290         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
17291         Also, simplify example a bit by using flags = 0.
17292
17293 2010-12-20  Bruno Haible  <bruno@clisp.org>
17294
17295         round*, trunc*: Update documentation regarding glibc.
17296         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
17297         * doc/posix-functions/round.texi: Likewise.
17298         * doc/posix-functions/roundl.texi: Likewise.
17299         * doc/posix-functions/truncf.texi: Likewise.
17300         * doc/posix-functions/trunc.texi: Likewise.
17301         * doc/posix-functions/truncl.texi: Likewise.
17302
17303 2010-12-20  Bruno Haible  <bruno@clisp.org>
17304
17305         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
17306         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
17307         * doc/posix-functions/round.texi: Likewise.
17308         * doc/posix-functions/roundl.texi: Likewise.
17309
17310 2010-12-20  Bruno Haible  <bruno@clisp.org>
17311
17312         ttyname_r: Add missing declaration on HP-UX 11.
17313         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
17314         HAVE_TTYNAME_R.
17315         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
17316         declared. Set HAVE_TTYNAME_R always.
17317         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
17318         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
17319         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
17320         HAVE_TTYNAME_R.
17321         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
17322
17323 2010-12-20  Bruno Haible  <bruno@clisp.org>
17324
17325         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
17326         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
17327         * doc/posix-functions/getlogin_r.texi: Likewise.
17328         * tests/test-getlogin.c: Include <errno.h>.
17329         (main): Avoid test failure on HP-UX 11.11.
17330         * tests/test-getlogin_r.c (main): Likewise.
17331
17332 2010-12-20  Bruno Haible  <bruno@clisp.org>
17333
17334         getlogin_r: Add missing declaration on HP-UX 11.
17335         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
17336         declared also when it exists as a function.
17337         * doc/posix-functions/getlogin_r.texi: Document this workaround.
17338
17339 2010-12-20  Bruno Haible  <bruno@clisp.org>
17340
17341         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
17342         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
17343         through wcrtomb.
17344
17345 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
17346
17347         ftoastr: fix comment
17348         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
17349         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
17350
17351 2010-12-19  Bruno Haible  <bruno@clisp.org>
17352
17353         isnan: Ensure it is a macro.
17354         * lib/math.in.h (isnan): Define as a macro if not already a macro.
17355         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
17356         Solaris.
17357
17358 2010-12-19  Bruno Haible  <bruno@clisp.org>
17359
17360         ldexpl test: Fix link error on OSF/1 5.1.
17361         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
17362
17363 2010-12-19  Bruno Haible  <bruno@clisp.org>
17364
17365         wctype: Make it work in C++ mode on OSF/1 5.1.
17366         * lib/wctype.in.h (iswblank): Declare but not define here.
17367         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
17368         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
17369         * modules/wctype (Files): Add lib/iswblank.c.
17370
17371 2010-12-19  Bruno Haible  <bruno@clisp.org>
17372
17373         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
17374         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
17375         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
17376
17377 2010-12-19  Bruno Haible  <bruno@clisp.org>
17378
17379         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
17380         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
17381         _POSIX_PII_SOCKET.
17382         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
17383         * doc/posix-functions/recvfrom.texi: Likewise.
17384         * doc/posix-functions/send.texi: Likewise.
17385         * doc/posix-functions/sendto.texi: Likewise.
17386
17387 2010-12-19  Bruno Haible  <bruno@clisp.org>
17388
17389         tcgetsid: Add missing declaration on OSF/1 5.1.
17390         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
17391         HAVE_TCGETSID.
17392         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
17393         Don't set HAVE_TCGETSID.
17394         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
17395         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
17396         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
17397         HAVE_TCGETSID.
17398         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
17399
17400 2010-12-19  Bruno Haible  <bruno@clisp.org>
17401
17402         stdio: Fix problem with popen() declaration on OSF/1 5.1.
17403         * lib/stdio.in.h: During the include_next statement, let recursive
17404         includes of this file include only the system header file.
17405
17406 2010-12-19  Bruno Haible  <bruno@clisp.org>
17407
17408         iconv_open: Fix regression from 2010-12-04.
17409         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
17410         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
17411
17412 2010-12-19  Bruno Haible  <bruno@clisp.org>
17413
17414         stdbool test: Avoid a gcc warning.
17415         * tests/test-stdbool.c (main): Fail if e1 is false.
17416         Reported by Jim Meyering.
17417
17418 2010-12-19  Jim Meyering  <meyering@redhat.com>
17419
17420         setenv: restore to working order
17421         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
17422         mistakenly removed.
17423         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
17424         HAVE_SETENV.
17425         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
17426         HAVE_SETENV.
17427
17428 2010-12-19  Bruno Haible  <bruno@clisp.org>
17429
17430         Document some different function declarations on OSF/1 5.1.
17431         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
17432         * doc/posix-functions/inet_ntop.texi: Likewise.
17433         * doc/posix-functions/gethostname.texi: Likewise.
17434         * lib/unistd.in.h (gethostname): Update comment.
17435
17436 2010-12-19  Bruno Haible  <bruno@clisp.org>
17437
17438         doc: Mention vasprintf-posix module.
17439         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
17440         the 'vasprintf-posix' module.
17441         * doc/glibc-functions/vasprintf.texi: Likewise.
17442
17443 2010-12-19  Bruno Haible  <bruno@clisp.org>
17444
17445         unsetenv: Add missing declaration on OSF/1 5.1.
17446         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
17447         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
17448         Don't set HAVE_UNSETENV. In the test program, set _BSD.
17449         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
17450         not HAVE_UNSETENV.
17451         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
17452         HAVE_UNSETENV.
17453         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
17454
17455 2010-12-19  Bruno Haible  <bruno@clisp.org>
17456
17457         setenv: Add missing declaration on OSF/1 5.1.
17458         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
17459         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
17460         declared. Don't set HAVE_SETENV.
17461         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
17462         not HAVE_SETENV.
17463         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
17464         HAVE_SETENV.
17465         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
17466
17467 2010-12-19  Bruno Haible  <bruno@clisp.org>
17468
17469         nl_langinfo tests: Avoid gcc warning.
17470         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
17471
17472 2010-12-19  Bruno Haible  <bruno@clisp.org>
17473
17474         mknod: Avoid error in C++ mode on OSF/1 with GCC.
17475         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
17476         _GL_CXXALIAS_SYS.
17477
17478 2010-12-19  Bruno Haible  <bruno@clisp.org>
17479
17480         stdbool: Relax test.
17481         * tests/test-stdbool.c (e): Don't require that casts from a variable's
17482         address to 'bool' work in static initializer, for compilers other than
17483         GCC.
17484
17485 2010-12-19  Bruno Haible  <bruno@clisp.org>
17486
17487         ftello: Add missing declaration on OSF/1 5.1.
17488         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
17489         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
17490         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
17491         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
17492         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
17493
17494 2010-12-19  Bruno Haible  <bruno@clisp.org>
17495
17496         fseeko: Add missing declaration on OSF/1 5.1.
17497         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
17498         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
17499         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
17500         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
17501         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
17502
17503 2010-12-19  Bruno Haible  <bruno@clisp.org>
17504
17505         fchdir: Add missing declaration on OSF/1 5.1.
17506         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
17507         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
17508         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
17509         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
17510         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
17511
17512 2010-12-19  Bruno Haible  <bruno@clisp.org>
17513
17514         relocatable-prog-wrapper: Separate from relocatable-prog.
17515         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
17516         uninstall-relocwrapper rule here.
17517         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
17518         Reported by Ian Beckwith <ianb@erislabs.net>.
17519
17520 2010-12-19  Bruno Haible  <bruno@clisp.org>
17521
17522         unistr/u8-mbsnlen: Add missing dependency.
17523         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
17524         Reported by Ian Beckwith <ianb@erislabs.net>.
17525
17526 2010-12-19  Bruno Haible  <bruno@clisp.org>
17527
17528         iconv: Make it possible again to use this module without 'iconv-h'.
17529         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
17530         if it is not defined.
17531         Reported by Ian Beckwith <ianb@erislabs.net>.
17532
17533 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
17534
17535         acl: port to Solaris 8 when copying from tmpfs to ufs
17536         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
17537         error number.  Problem observed on Solaris 8 with latest
17538         coreutils, with "mv A B", where A is on a tmpfs file system and B
17539         is on a ufs file system.  This caused coreutils' mv/part-symlink
17540         test to fail.
17541
17542         tests: set fail=0 at start
17543         * tests/init.sh (setup_): Move fail=0 initialization here ...
17544         (mktempd_): ... from here, so that tests can rely on fail being
17545         set to 0 initially.  This fixes a problem in coreutils; see:
17546         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
17547
17548 2010-12-18  Bruno Haible  <bruno@clisp.org>
17549
17550         memmem-simple: Stylistic changes.
17551         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
17552         Fix preprocessor directive indentation.
17553
17554 2010-12-15  Pádraig Brady <P@draigBrady.com>
17555
17556         memmem, memmem-simple: reorganize and expand empty needle check
17557         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
17558         functional checks to memmem-simple so that one has a fully functional
17559         memmem by using just this module.
17560         Restrict the performance only check to the memmem module.
17561         Also expand the empty needle check to ensure the correct
17562         pointer is returned, not just a non NULL pointer.
17563         * doc/glibc-functions/memmem.texi: Rearrange the portability
17564         documentation to correlate with the rearranged checks.
17565         Clarify exactly how the memmem and memmem-simple modules
17566         relate to each other.
17567
17568 2010-12-15  Pádraig Brady <P@draigBrady.com>
17569             Bruno Haible  <bruno@clisp.org>
17570
17571         Improve cross-compilation guesses for uClibc.
17572         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
17573         that uClibc does not have the glibc bug.
17574         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
17575         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
17576
17577 2010-12-14  Eric Blake  <eblake@redhat.com>
17578
17579         configmake: provide fallbacks for oldest supported autotools
17580         * m4/configmake.m4: New file.
17581         * modules/configmake (Files): Ship it.
17582         (configure.ac): Use it to guarantee fallbacks.
17583
17584 2010-12-13  Pádraig Brady <P@draigBrady.com>
17585
17586         read-file: Improve handling of large files
17587         * lib/read-file.c (fread_file): Minimize realloc()s
17588         for regular files, and better manage sizes around SIZE_MAX.
17589
17590 2010-12-13  Eric Blake  <eblake@redhat.com>
17591
17592         cloexec, fcntl: relax license
17593         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
17594         consent from all contributors.
17595         * modules/fcntl (License): Likewise.
17596
17597 2010-12-10  Bruno Haible  <bruno@clisp.org>
17598
17599         Tests for module 'pipe-posix'.
17600         * modules/pipe-posix-tests: New file.
17601         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
17602
17603 2010-12-10  Bruno Haible  <bruno@clisp.org>
17604
17605         pipe-posix: Make it work in C++ mode.
17606         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
17607         (pipe): Use common idiom, not a macro definition.
17608         * lib/pipe.c: New file.
17609         * m4/pipe.m4: New file.
17610         * modules/pipe-posix (Description): Enhance.
17611         (Files): Add lib/pipe.c, m4/pipe.m4.
17612         (configure.ac): Invoke gl_FUNC_PIPE.
17613         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
17614         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
17615         * tests/test-unistd-c++.cc: Check the signature of pipe.
17616
17617 2010-12-10  Bruno Haible  <bruno@clisp.org>
17618
17619         Rename module 'pipe' to 'spawn-pipe'.
17620         * modules/spawn-pipe: New file, renamed from modules/pipe.
17621         (Files, configure.ac, Makefile.am): Update.
17622         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
17623         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
17624         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
17625         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
17626         "spawn-pipe.h" instead of "pipe.h".
17627         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
17628         to gl_SPAWN_PIPE.
17629         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
17630         (Files, Makefile.am): Update.
17631         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
17632         Update.
17633         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
17634         Include "spawn-pipe.h" instead of "pipe.h".
17635         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
17636         * lib/javacomp.c: Likewise.
17637         * lib/javaversion.c: Likewise.
17638         * lib/pipe-filter-gi.c: Likewise.
17639         * lib/pipe-filter-ii.c: Likewise.
17640         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
17641         * modules/javacomp (Depends-on): Likewise.
17642         * modules/javaversion (Depends-on): Likewise.
17643         * modules/pipe-filter-gi (Depends-on): Likewise.
17644         * modules/pipe-filter-ii (Depends-on): Likewise.
17645         * MODULES.html.sh (Executing programs): Update.
17646         * NEWS: Mention the change.
17647
17648 2010-12-10  Eric Blake  <eblake@redhat.com>
17649
17650         pipe-posix: new module
17651         * modules/pipe-posix: New file.
17652         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
17653         (gl_UNISTD_H): Check for declaration.
17654         * modules/unistd (Makefile.am): Substitute it.
17655         * lib/unistd.in.h (pipe): Provide it for mingw.
17656         * doc/posix-functions/pipe.texi (pipe): Update documentation.
17657         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
17658
17659 2010-12-07  Bruno Haible  <bruno@clisp.org>
17660
17661         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
17662         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
17663         u8_strcmp_gnu.
17664         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
17665
17666 2010-12-06  Bruno Haible  <bruno@clisp.org>
17667
17668         Update internal documentation.
17669         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
17670
17671 2010-12-04  Bruno Haible  <bruno@clisp.org>
17672
17673         Put more information about failed tests into the test return codes.
17674         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
17675         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
17676         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
17677         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
17678         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
17679         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
17680         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
17681         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
17682         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
17683         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
17684         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
17685         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
17686         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
17687         * m4/stdint.m4 (gl_STDINT_H): Likewise.
17688         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
17689         returns a bit mask.
17690         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
17691         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
17692         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
17693         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
17694         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
17695         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
17696         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
17697         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
17698         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
17699         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
17700         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
17701         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
17702         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
17703         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
17704         * m4/link.m4 (gl_FUNC_LINK): Likewise.
17705         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
17706         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
17707         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
17708         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
17709         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
17710         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
17711         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
17712         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
17713         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
17714         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
17715         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
17716         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
17717         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
17718         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
17719         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
17720         gl_PRINTF_PRECISION): Likewise.
17721         * m4/regex.m4 (gl_REGEX): Likewise.
17722         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
17723         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
17724         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
17725         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
17726         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
17727         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
17728         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
17729         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
17730         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
17731         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
17732         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
17733         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
17734         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
17735         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
17736         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
17737         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
17738         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
17739         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
17740         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
17741         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
17742         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
17743         enumerated value.
17744         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
17745
17746 2010-12-04  Bruno Haible  <bruno@clisp.org>
17747
17748         Update for Solaris 11 2010-11.
17749         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
17750         Express, released in November 2010.
17751
17752 2010-12-04  Bruno Haible  <bruno@clisp.org>
17753
17754         nproc: Relax license.
17755         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
17756         and Paul Eggert.
17757         Requested by Ludovic Courtès <ludo@gnu.org>.
17758
17759 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
17760
17761         utimecmp: fine-grained src to nearby coarse-grained dest
17762
17763         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
17764         and the source is on a file system with higher-resolution time
17765         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
17766         not work, and the time stamps are close together, the algorithm to
17767         determine the exact resolution from the read-back mtime was buggy:
17768         it had a "!=" where it should have had an "==".  This bug has been
17769         in the code ever since it was introduced to gnulib.
17770         Problem reported by Dan Jacobson in
17771         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
17772
17773 2010-11-30  Bruno Haible  <bruno@clisp.org>
17774
17775         strerror_r-posix: Fix autoconf test.
17776         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
17777
17778 2010-11-28  Bruno Haible  <bruno@clisp.org>
17779             Paul Eggert  <eggert@cs.ucla.edu>
17780
17781         Tests for module 'getdomainname'.
17782         * modules/getdomainname-tests: New file.
17783         * tests/test-getdomainname.c: New file, based on
17784         tests/test-gethostname.c.
17785
17786 2010-11-28  Bruno Haible  <bruno@clisp.org>
17787             Paul Eggert  <eggert@cs.ucla.edu>
17788
17789         getdomainname: Use the system function when possible.
17790         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
17791         (getdomainname): Replace if needed. Provide the declaration if it is
17792         missing. Don't use _GL_CXXALIAS_SYS_CAST.
17793         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
17794         (getdomainname): When the system has getdomainname, call the system
17795         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
17796         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
17797         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
17798         found in libnsl. Look for the declaration also in <netdb.h>. Replace
17799         the function if its second argument is of type 'int' or if it is found
17800         in libnsl.
17801         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
17802         <sys/systeminfo.h> and sysinfo().
17803         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
17804         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
17805         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
17806         HAVE_GETDOMAINNAME.
17807         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
17808         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
17809         * doc/glibc-functions/getdomainname.texi: Document the problems with
17810         the getdomainname declaration.
17811
17812 2010-11-28  Bruno Haible  <bruno@clisp.org>
17813
17814         sys_socket: Ensure ss_family field on AIX.
17815         * lib/sys_socket.in.h (ss_family): New macro definition.
17816         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
17817         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
17818         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
17819         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
17820         * modules/sys_socket (Makefile.am): Substitute
17821         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
17822         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
17823
17824 2010-11-27  Bruno Haible  <bruno@clisp.org>
17825
17826         readline: Improve configure output.
17827         * m4/readline.m4 (gl_FUNC_READLINE): Make the
17828         "checking for readline..." result understandable.
17829
17830 2010-11-27  Bruno Haible  <bruno@clisp.org>
17831
17832         *printf-posix: Detect a bug on Solaris 10/x86.
17833         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
17834         for floating-point output.
17835         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
17836         directive.
17837         * tests/test-snprintf-posix.h (test_function): Likewise.
17838         * tests/test-sprintf-posix.h (test_function): Likewise.
17839         * tests/test-vasprintf-posix.c (test_function): Likewise.
17840         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
17841         * doc/posix-functions/printf.texi: Likewise.
17842         * doc/posix-functions/snprintf.texi: Likewise.
17843         * doc/posix-functions/sprintf.texi: Likewise.
17844         * doc/posix-functions/vfprintf.texi: Likewise.
17845         * doc/posix-functions/vprintf.texi: Likewise.
17846         * doc/posix-functions/vsnprintf.texi: Likewise.
17847         * doc/posix-functions/vsprintf.texi: Likewise.
17848         * doc/glibc-functions/obstack_printf.texi: Likewise.
17849         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
17850
17851 2010-11-27  Bruno Haible  <bruno@clisp.org>
17852
17853         Fix link error when module libunistring-optional is in use.
17854         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
17855         * modules/striconveha-tests (Makefile.am): Likewise.
17856
17857 2010-11-27  Bruno Haible  <bruno@clisp.org>
17858
17859         regex: Mention link dependencies.
17860         * modules/regex (Link): New section.
17861         * modules/rpmatch (Link): Likewise.
17862         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
17863
17864 2010-11-27  Bruno Haible  <bruno@clisp.org>
17865
17866         ftoastr: Fix compilation error on Solaris.
17867         * lib/ftoastr.c: Include <config.h>.
17868
17869 2010-11-27  Bruno Haible  <bruno@clisp.org>
17870
17871         getloadavg: Update documentation.
17872         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
17873
17874 2010-11-27  Bruno Haible  <bruno@clisp.org>
17875
17876         sys_socket: Fix test whether the functions are declared.
17877         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
17878         not <sys/select.h>.
17879
17880 2010-11-27  Bruno Haible  <bruno@clisp.org>
17881
17882         getpass: Make sure to get system declaration on some platforms.
17883         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
17884         gl_USE_SYSTEM_EXTENSIONS.
17885         * modules/getpass (Depends-on): Add extensions.
17886
17887 2010-11-26  Bruno Haible  <bruno@clisp.org>
17888
17889         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
17890         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
17891         'iconv' module is present.
17892         (ICONV_CONST): New macro.
17893         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
17894         ICONV_CONST.
17895         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
17896         set ICONV_CONST.
17897         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
17898         here.
17899         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
17900         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
17901         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
17902         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
17903         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
17904         present.
17905
17906 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
17907
17908         ftoastr: comment fix
17909         * lib/ftoastr.c: "little" -> "little or no" in comment
17910
17911 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
17912
17913         stdint: port to GCC 4.3 + OSX + Octave
17914         On this platform, stdint.h is buggy and defines int64_t to long
17915         long int.  The replacement defined it to long int, causing
17916         problems with C++ style name mangling.  Instead, trust the system
17917         definition if INT64_MAX is defined, and likewise for the unsigned
17918         variant.   Problem reported by Jarno Rajahalme in
17919         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
17920         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
17921         and don't mess with int64_t and INT64_MAX in this case.
17922         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
17923
17924 2010-11-24  Bruno Haible  <bruno@clisp.org>
17925
17926         doc: Corrections regarding MacOS X 10.4 and 10.5.
17927         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
17928         MacOS X.
17929         Reported by Simon Josefsson.
17930
17931 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
17932
17933         Uninstall ".bin" files installed by relocwrapper.
17934         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
17935         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
17936         unless it is already there.
17937
17938 2010-11-21  Bruno Haible  <bruno@clisp.org>
17939
17940         Update for NetBSD 5.0.
17941         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
17942         NetBSD; the test fails on NetBSD 5.0.
17943         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
17944         about NetBSD.
17945
17946 2010-11-21  Bruno Haible  <bruno@clisp.org>
17947
17948         Update for HP-UX 11.23 and HP-UX 11.31.
17949         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
17950         HP-UX.
17951
17952 2010-11-21  Bruno Haible  <bruno@clisp.org>
17953
17954         Update for MacOS X 10.5.
17955         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
17956         MacOS X; the test fails on MacOS X 10.5.8.
17957         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
17958         about MacOS X.
17959
17960 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
17961
17962         bootstrap: add bootstrap_sync option.
17963         See discussion at
17964         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
17965         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
17966         * build-aux/bootstrap: Accept --bootstrap-sync to update
17967         bootstrap if it is not identical to the local gnulib's
17968         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
17969         enable this by default.  Accept --no-bootstrap-sync to disable
17970         it.
17971
17972 2010-11-20  Bruno Haible  <bruno@clisp.org>
17973
17974         Ensure that <features.h> is included before __GLIBC__ is tested.
17975         * lib/printf-parse.h: Include <features.h>.
17976         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
17977         Reported by Mike Frysinger <vapier@gentoo.org>.
17978
17979         Ensure that <features.h> is included before __GLIBC__ is tested.
17980         * lib/wchar.in.h: Include <features.h>.
17981         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
17982         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
17983         Reported by Mike Frysinger <vapier@gentoo.org>.
17984
17985         Ensure that <features.h> is included before __GLIBC__ is tested.
17986         * lib/arpa_inet.in.h: Include <features.h>.
17987         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
17988         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
17989         Reported by Mike Frysinger <vapier@gentoo.org>.
17990
17991         Ensure that <features.h> is included before __GLIBC__ is tested.
17992         * build-aux/link-warning.h: Include <features.h>.
17993         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
17994         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
17995         Reported by Mike Frysinger <vapier@gentoo.org>.
17996
17997         Ensure that <features.h> is included before __GLIBC__ is tested.
17998         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
17999         Reported by Mike Frysinger <vapier@gentoo.org>.
18000
18001 2010-11-20  Bruno Haible  <bruno@clisp.org>
18002
18003         memmem: Fix autoconf test.
18004         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
18005
18006 2010-11-20  Bruno Haible  <bruno@clisp.org>
18007
18008         Port to uClibc.
18009         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
18010         * lib/fcntl.in.h: Likewise.
18011         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
18012         * lib/mbrtowc.c (mbrtowc): Likewise.
18013         * lib/relocatable.c (find_shared_library_fullname): Likewise.
18014         * lib/strerror_r.c: Likewise.
18015         * lib/unistr/u8-strnlen.c: Likewise.
18016         * lib/vasnprintf.c (decimal_point_char): Likewise.
18017         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
18018         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
18019         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
18020         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
18021         * tests/test-sigaction.c (handler, main): Likewise.
18022         * lib/freading.h: Treat uClibc like a non-glibc platform.
18023         * lib/freading.c: Likewise.
18024         * lib/gettext.h: Likewise.
18025         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
18026         Likewise.
18027         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
18028         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
18029         * lib/propername.c (proper_name_utf8): Likewise.
18030         * lib/spawn.in.h: Likewise.
18031         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
18032         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
18033         mem_cd_iconveh_internal): Likewise.
18034         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
18035         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
18036         strstr, strcasestr): Likewise.
18037         * lib/unicodeio.c (unicode_to_mb): Likewise.
18038         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
18039         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
18040         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
18041         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
18042         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
18043         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
18044         * lib/unistr/u8-stpncpy.c: Likewise.
18045         * lib/vasnprintf.c (VASNPRINTF): Likewise.
18046         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
18047         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
18048         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
18049         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
18050         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
18051         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
18052         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
18053         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
18054         Likewise.
18055         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
18056         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
18057         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
18058         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
18059         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
18060         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
18061         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
18062         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
18063         * tests/test-getopt.h (OPTIND_MIN): Likewise.
18064         * tests/test-striconveha.c (main): Likewise.
18065         * tests/test-vasnprintf-posix.c (test_function): Likewise.
18066         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
18067         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
18068         * doc/posix-functions/getline.texi: Likewise.
18069         Reported by Mike Frysinger <vapier@gentoo.org>.
18070
18071 2010-11-20  Bruno Haible  <bruno@clisp.org>
18072
18073         nproc: Fix condition.
18074         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
18075         HAVE_PTHREAD_AFFINITY_NP.
18076
18077 2010-11-20  Bruno Haible  <bruno@clisp.org>
18078
18079         Fix a comment.
18080         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
18081
18082 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
18083
18084         ftoastr: don't assume snprintf
18085         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
18086         Implement a subset of snprintf here, by using sprintf safely.
18087         * modules/ftoastr (Depends-on): Remove snprintf.
18088
18089 2010-11-19  Jim Meyering  <meyering@redhat.com>
18090
18091         test-rename.h: fix compilation failure
18092         * tests/test-rename.h (test_rename): Add omitted "}".
18093
18094 2010-11-17  Jim Meyering  <meyering@redhat.com>
18095
18096         maint.mk: add a URL discussing the no-@acronym policy
18097         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
18098
18099 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
18100
18101         ftoastr: depend on snprintf, improve comments
18102         * lib/ftoastr.c: Also mention Loitsch's draft.
18103         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
18104         needed in the current implementation, but it might simplify
18105         speeding up the code later.
18106         * modules/ftoastr: Depend on snprintf; this improves portability.
18107         Suggested by Bruno Haible in the same email.
18108
18109         ftoastr: port to hosts lacking strtof and strtold
18110         Problem reported by Bruno Haible in
18111         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
18112         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
18113         environment and strtold (and presumably strtof) are not available.
18114         * modules/ftoastr (Files): Add m4/c-strtod.m4.
18115         (configure.ac): Require gl_C99_STRTOLD.
18116
18117 2010-11-18  Bruno Haible  <bruno@clisp.org>
18118
18119         c-strtold: Avoid link error on AIX 7.
18120         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
18121         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
18122         (gl_C_STRTOLD): Test whether strtold_l exists.
18123         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
18124
18125 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
18126
18127         intprops: new macro INT_BITS_STRLEN_BOUND
18128         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
18129         ftoastr.h.  This exposes an internal of intprops.h that was formerly
18130         not exposed.  Also, it uses a slightly tighter bound than before;
18131         though this makes no practical difference, we might as well be as
18132         tight as we easily can.
18133
18134         ftoastr: new module, for lossless conversion of floats to short strings
18135         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
18136         * modules/ftoastr: New files.
18137
18138 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
18139
18140         bootstrap: port to Solaris sed
18141         * build-aux/bootstrap (get_version): Port to Solaris sed.
18142         See Ralf Wildenhues's note in
18143         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
18144
18145 2010-11-14  Jim Meyering  <meyering@redhat.com>
18146
18147         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
18148         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
18149         and move definition closer to sole use.
18150
18151 2010-11-13  Jim Meyering  <meyering@redhat.com>
18152
18153         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
18154         Now we require at least autoconf-2.59, which means the work-around
18155         is no longer needed.
18156         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
18157         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
18158         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
18159         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
18160         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
18161
18162 2010-11-13  Bruno Haible  <bruno@clisp.org>
18163
18164         rename, renameat: Avoid test failures at NFS mounted locations.
18165         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
18166         functions.
18167         (test_rename): Use assert_nonexistent.
18168         * tests/test-rename.c: Include <dirent.h>.
18169         * tests/test-renameat.c: Likewise.
18170         Reported by Gary V. Vaughan <gary@gnu.org>.
18171
18172         rename, renameat: Document Linux bug with NFS
18173         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
18174         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
18175         * doc/posix-functions/renameat.texi: Likewise.
18176         Suggested by Eric Blake.
18177
18178 2010-11-13  Bruno Haible  <bruno@clisp.org>
18179
18180         rename test: Add comments.
18181         * tests/test-rename.h (test_rename): Add structure and comments.
18182
18183 2010-11-13  Eric Blake  <eblake@redhat.com>
18184
18185         maintainer-makefile: cover a few more files
18186         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
18187         scripts generated within C files, for libvirt.
18188
18189 2010-11-13  Bruno Haible  <bruno@clisp.org>
18190
18191         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
18192         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
18193         character, return the number of bytes that belong together, not always
18194         1.
18195         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
18196         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
18197         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
18198         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
18199         number of bytes of an invalid character.
18200         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
18201         (main): Invoke it.
18202         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
18203         results.
18204         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
18205         malformed byte sequences.
18206         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
18207         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
18208         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
18209         Reported by Ben Pfaff and Paolo Bonzini.
18210
18211 2010-11-13  Bruno Haible  <bruno@clisp.org>
18212
18213         openat: Work around glibc bug with fchownat() and empty file names.
18214         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
18215         (gl_FUNC_FCHOWNAT): Invoke it.
18216         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
18217         * doc/posix-functions/fchownat.texi: Document the glibc bug.
18218         Reported by Gary V. Vaughan <gary@gnu.org>.
18219
18220 2010-11-13  Bruno Haible  <bruno@clisp.org>
18221
18222         openat: Ensure autoconf macro ordering.
18223         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
18224         gl_USE_SYSTEM_EXTENSIONS.
18225         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
18226
18227 2010-11-13  Bruno Haible  <bruno@clisp.org>
18228
18229         Update comments.
18230         * lib/unistr/u8-check.c: Update file name in comments.
18231         * lib/unistr/u8-mblen.c: Likewise.
18232         * lib/unistr/u8-prev.c: Likewise.
18233         * lib/unistr/u8-strmblen.c: Likewise.
18234         * lib/unistr/u8-strmbtouc.c: Likewise.
18235
18236 2010-11-13  Jim Meyering  <meyering@redhat.com>
18237
18238         tests: avoid test failure on Solaris 10 due to lack of PATH export
18239         * tests/test-update-copyright.sh: Don't forget to export PATH.
18240
18241         init.sh: ensure that IFS is defined, just in case...
18242         * tests/init.sh (setup_): Ensure that IFS is defined,
18243         so that saving and restoring it works as expected.  This
18244         appears to be useful at least for an old version of dash
18245         from a long time ago (RH 6).  See here for details:
18246         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
18247
18248         maint.mk: tighten "test a == b" check
18249         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
18250         test to files that contain something like #!/bin/sh.
18251         Without this, coreutils would get two false positives in
18252         the comments of C source files.
18253
18254 2010-11-12  Eric Blake  <eblake@redhat.com>
18255
18256         bootstrap: fix typo in previous attempt
18257         * build-aux/bootstrap (buildreq): Correct the grouping.
18258         Reported by Paul Eggert.
18259
18260         maintainer-makefile: prohibit test x == x
18261         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
18262         Based on a report by Matthias Bolte.
18263
18264         bootstrap: allow FreeBSD gzip
18265         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
18266         which has no '.' and goes to stderr.
18267         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
18268         Reported by Matthias Bolte.
18269
18270         maintainer-makefile: check for i18n setup
18271         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
18272         will likely work.
18273
18274 2010-11-12  Bruno Haible  <bruno@clisp.org>
18275
18276         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
18277         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
18278         * lib/nanosleep.c (nanosleep): Likewise.
18279
18280 2010-11-11  Bruno Haible  <bruno@clisp.org>
18281
18282         fcntl-h: Fix for use of C++ on glibc systems.
18283         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
18284         also on glibc systems in C++ mode.
18285         Reported by Gary V. Vaughan <gary@gnu.org>.
18286
18287 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
18288
18289         mknod: avoid false failure with dash
18290         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
18291
18292 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
18293
18294         unlink: Fix "is it should" typo in diagnostic.
18295         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
18296         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
18297
18298 2010-11-11  Bruno Haible  <bruno@clisp.org>
18299
18300         Tests for module 'strerror_r-posix'.
18301         * modules/strerror_r-posix-tests: New file.
18302         * tests/test-strerror_r.c: New file.
18303         * tests/test-string-c++.cc: Check the signature of strerror_r.
18304
18305         New module 'strerror_r-posix'.
18306         * lib/string.in.h (strerror_r): New declaration.
18307         * lib/strerror_r.c: New file.
18308         * m4/strerror_r.m4: New file.
18309         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
18310         of strerror_r.
18311         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
18312         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
18313         * modules/strerror_r-posix: New file.
18314         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
18315         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
18316         * doc/posix-functions/strerror_r.texi: Mention the new module and the
18317         portability problems.
18318
18319 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
18320
18321         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
18322         line is also considered for output. Quoted function name in shell
18323         command, so temporary files for functions like MyClass::operator()
18324         are removed correctly without errors.
18325
18326 2010-11-09  Bruno Haible  <bruno@clisp.org>
18327
18328         * doc/posix-functions/strerror.texi: List more failing platforms.
18329
18330         * doc/posix-functions/strerror.texi: Add a comment.
18331
18332 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
18333
18334         fdopendir: fix bug on MacOS X when low on file descriptors
18335
18336         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
18337         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
18338         All callers changed.
18339         (fdopendir): Invoke save_cwd at the top level, not after using
18340         multiple dup() calls to use up file descriptors.  Then retry
18341         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
18342         less than the maximum number of open file descriptors, because
18343         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
18344         on Mac OS X 10.6.4 for tar 1.24
18345         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
18346         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
18347         and for tar 1.25
18348         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
18349
18350 2010-11-07  Bruno Haible  <bruno@clisp.org>
18351
18352         vasnprintf: Support I flag on glibc systems.
18353         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
18354         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
18355         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
18356         snprintf function.
18357         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
18358         glibc systems.
18359         * tests/test-vasnprintf-posix3.c: New file.
18360         * modules/vasnprintf-posix-tests (Files): Add it.
18361         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
18362
18363 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
18364
18365         [html] Fix copy/paste bug: Use unique name for compiler warnings.
18366         * MODULES.html.sh: For compiler warnings, use name
18367         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
18368
18369 2010-11-05  Eric Blake  <eblake@redhat.com>
18370
18371         ceil, floor: avoid spurious failure with icc
18372         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
18373         [denormals-as-zero] when optimizing without -mieee-fp option.
18374         * tests/test-floorf2.c (floorf_reference): Likewise.
18375         * tests/test-ceilf1.c (dummy): New function.
18376         (main): Use it to outsmart icc's optimization.
18377         * tests/test-floorf1.c (dummy, main): Likewise.
18378
18379         tests: require working signbit
18380         * modules/ceilf-tests (Depends-on): Add signbit.
18381         * modules/ceill-tests (Depends-on): Likewise.
18382         * modules/floorf-tests (Depends-on): Likewise.
18383         * modules/floorl-tests (Depends-on): Likewise.
18384         * modules/round-tests (Depends-on): Likewise.
18385         * modules/roundf-tests (Depends-on): Likewise.
18386         * modules/roundl-tests (Depends-on): Likewise.
18387         * modules/trunc-tests (Depends-on): Likewise.
18388         * modules/truncf-tests (Depends-on): Likewise.
18389         * modules/truncl-tests (Depends-on): Likewise.
18390
18391         strtod: work around icc bug
18392         * lib/strtod.c (minus_zero): Define to working value.
18393         (strtod): Use it to avoid icc bug.
18394
18395         copysign: enhance tests
18396         * modules/copysign-tests (Files): Add minus-zero.h.
18397         * tests/test-copysign.c (main): Also test zeros.
18398
18399 2010-11-04  Eric Blake  <eblake@redhat.com>
18400
18401         ceil, floor, round, trunc: enhance tests of -0
18402         * tests/test-ceilf1.c (main): Ensure correct sign of result.
18403         * tests/test-ceill.c (main): Likewise.
18404         * tests/test-floorf1.c (main): Likewise.
18405         * tests/test-floorl.c (main): Likewise.
18406         * tests/test-round1.c (main): Likewise.
18407         * tests/test-roundf1.c (main): Likewise.
18408         * tests/test-roundl.c (main): Likewise.
18409         * tests/test-trunc1.c (main): Likewise.
18410         * tests/test-truncf1.c (main): Likewise.
18411         * tests/test-truncl.c (main): Likewise.
18412
18413 2010-11-04  Eric Blake  <eblake@redhat.com>
18414
18415         frexp, tests: work around ICC bug with -zero
18416         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
18417         works with more compilers.
18418         * tests/minus-zero.h: New file.
18419         * modules/ceilf-tests (Files): Include it.
18420         * modules/ceill-tests (Files): Likewise.
18421         * modules/floorf-tests (Files): Likewise.
18422         * modules/floorl-tests (Files): Likewise.
18423         * modules/frexp-nolibm-tests (Files): Likewise.
18424         * modules/frexp-tests (Files): Likewise.
18425         * modules/frexpl-nolibm-tests (Files): Likewise.
18426         * modules/frexpl-tests (Files): Likewise.
18427         * modules/isnan-tests (Files): Likewise.
18428         * modules/isnand-nolibm-tests (Files): Likewise.
18429         * modules/isnand-tests (Files): Likewise.
18430         * modules/isnanf-nolibm-tests (Files): Likewise.
18431         * modules/isnanf-tests (Files): Likewise.
18432         * modules/isnanl-nolibm-tests (Files): Likewise.
18433         * modules/isnanl-tests (Files): Likewise.
18434         * modules/round-tests (Files): Likewise.
18435         * modules/roundf-tests (Files): Likewise.
18436         * modules/roundl-tests (Files): Likewise.
18437         * modules/ldexpl-tests (Files): Likewise.
18438         * modules/signbit-tests (Files): Likewise.
18439         * modules/snprintf-posix-tests (Files): Likewise.
18440         * modules/sprintf-posix-tests (Files): Likewise.
18441         * modules/strtod-tests (Files): Likewise.
18442         * modules/trunc-tests (Files): Likewise.
18443         * modules/truncf-tests (Files): Likewise.
18444         * modules/truncl-tests (Files): Likewise.
18445         * modules/vsnprintf-posix-tests (Files): Likewise.
18446         * modules/vsprintf-posix-tests (Files): Likewise.
18447         * modules/vasnprintf-posix-tests (Files): Likewise.
18448         * modules/vasprintf-posix-tests (Files): Likewise.
18449         * tests/test-ceilf1.c (main): Use it.
18450         * tests/test-ceill.c (main): Likewise.
18451         * tests/test-floorf1.c (main): Likewise.
18452         * tests/test-floorl.c (main): Likewise.
18453         * tests/test-frexp.c (main): Likewise.
18454         * tests/test-frexpl.c (main): Likewise.
18455         * tests/test-isnan.c (main): Likewise.
18456         * tests/test-isnand.h (main): Likewise.
18457         * tests/test-isnanf.h (main): Likewise.
18458         * tests/test-isnanl.h (main): Likewise.
18459         * tests/test-ldexpl.c (main): Likewise.
18460         * tests/test-round.c (main): Likewise.
18461         * tests/test-roundf.c (main): Likewise.
18462         * tests/test-roundl.c (main): Likewise.
18463         * tests/test-signbit.c (test_signbitf, test_signbitd)
18464         (test_signbitl): Likewise.
18465         * tests/test-snprintf-posix.h (test_function): Likewise.
18466         * tests/test-sprintf-posix.h (test_function): Likewise.
18467         * tests/test-strtod.c (main): Likewise.
18468         * tests/test-trunc1.c (main): Likewise.
18469         * tests/test-truncf1.c (main): Likewise.
18470         * tests/test-truncl.c (main): Likewise.
18471
18472         isnanl: work around icc bug
18473         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
18474
18475 2010-11-03  Eric Blake  <eblake@redhat.com>
18476
18477         tests: fix compiler warnings
18478         * tests/test-getopt.h (test_getopt): Fix condition.
18479         * tests/test-getopt_long.h (test_getopt_long): Likewise.
18480         * tests/test-pipe2.c (main): Likewise.
18481         * tests/test-quotearg-simple.c (main): Avoid icc warning.
18482
18483         utimens: fix broken m4 test
18484         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
18485
18486 2010-10-28  Bruno Haible  <bruno@clisp.org>
18487
18488         posix_spawn*, getdtablesize: Relax license.
18489         * modules/posix_spawn (License): Change to LGPLv2+.
18490         * modules/posix_spawnp (License): Likewise.
18491         * modules/posix_spawn-internal (License): Likewise.
18492         * modules/posix_spawnattr_init (License): Likewise.
18493         * modules/posix_spawnattr_getflags (License): Likewise.
18494         * modules/posix_spawnattr_setflags (License): Likewise.
18495         * modules/posix_spawnattr_getpgroup (License): Likewise.
18496         * modules/posix_spawnattr_setpgroup (License): Likewise.
18497         * modules/posix_spawnattr_getschedparam (License): Likewise.
18498         * modules/posix_spawnattr_setschedparam (License): Likewise.
18499         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
18500         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
18501         * modules/posix_spawnattr_getsigdefault (License): Likewise.
18502         * modules/posix_spawnattr_setsigdefault (License): Likewise.
18503         * modules/posix_spawnattr_getsigmask (License): Likewise.
18504         * modules/posix_spawnattr_setsigmask (License): Likewise.
18505         * modules/posix_spawnattr_destroy (License): Likewise.
18506         * modules/posix_spawn_file_actions_init (License): Likewise.
18507         * modules/posix_spawn_file_actions_addclose (License): Likewise.
18508         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
18509         * modules/posix_spawn_file_actions_addopen (License): Likewise.
18510         * modules/posix_spawn_file_actions_destroy (License): Likewise.
18511         * modules/getdtablesize (License): Likewise.
18512         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
18513
18514 2010-10-26  Bruno Haible  <bruno@clisp.org>
18515
18516         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
18517         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
18518         Cygwin and mingw.
18519         Suggested by Eric Blake.
18520
18521 2010-10-26  Bruno Haible  <bruno@clisp.org>
18522
18523         stdio: Work around compilation error due to renameat() on Solaris 10.
18524         * lib/stdio.in.h: Include <unistd.h> on Solaris.
18525         * lib/renameat.c: Don't include <unistd.h> here.
18526         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
18527         Reported by Paul Eggert and Eric Blake.
18528
18529 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
18530
18531         renameat: port to Solaris 10, which declares renameat in unistd.h
18532
18533         * lib/renameat.c: Include unistd.h before stdio.h, because
18534         Solaris 10 declares renameat in unistd.h.  Problem encountered
18535         when building GNU tar 1.24 on Solaris 10.
18536
18537 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
18538
18539         fdopendir: fix C89 compilation
18540         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
18541         compilers.
18542
18543 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
18544
18545         inttostr: simplify by removing unnecessary redundancy
18546         * lib/anytostr.c: Don't include verify.h.
18547         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
18548         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
18549         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
18550         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
18551         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
18552         Likewise.
18553         * modules/inttostr (Depends-on): Remove 'verify'.
18554
18555 2010-10-23  Bruno Haible  <bruno@clisp.org>
18556
18557         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
18558         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
18559         Reported by Eric Blake.
18560
18561 2010-10-23  Bruno Haible  <bruno@clisp.org>
18562
18563         Tests: Fix LOCALE_JA on MirBSD 10.
18564         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
18565         to an UTF-8 locale.
18566         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
18567         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
18568         Reported by Eric Blake.
18569
18570 2010-10-21  Bruno Haible  <bruno@clisp.org>
18571
18572         nl_langinfo test: Avoid test failure on NetBSD 5.
18573         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
18574         Reported by Eric Blake.
18575
18576 2010-10-21  Eric Blake  <eblake@redhat.com>
18577
18578         c-stack: work around libsigsegv 2.8 bug
18579         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
18580         overflow on at least PowerPC64.
18581
18582 2010-10-17  Bruno Haible  <bruno@clisp.org>
18583
18584         userspec: Drop redundant file.
18585         * modules/userspec (Files): Remove lib/inttostr.h.
18586
18587 2010-10-17  Bruno Haible  <bruno@clisp.org>
18588
18589         nl_langinfo tests: Silence some warnings.
18590         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
18591         Reported by Jim Meyering.
18592
18593 2010-10-17  Bruno Haible  <bruno@clisp.org>
18594
18595         Make use of GCC's attribute __alloc_size__.
18596         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
18597         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
18598         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
18599         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
18600         __alloc_size__.
18601         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
18602         Suggested by Jim Meyering.
18603
18604 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
18605
18606         bootstrap: anchor .gitignore entries.
18607         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
18608         with...
18609         (insert_vc_ignore): ... this new function, which prepends `/' to
18610         all .gitignore entries before passing them to
18611         insert_sorted_if_absent.
18612
18613 2010-10-16  Bruno Haible  <bruno@clisp.org>
18614
18615         nextafter: Fix configure check.
18616         * modules/nextafter (configure.ac): Correct expected prototype.
18617
18618 2010-10-16  Bruno Haible  <bruno@clisp.org>
18619
18620         termios: Update documentation.
18621         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
18622
18623 2010-10-16  Bruno Haible  <bruno@clisp.org>
18624
18625         tests: Make them compile with TinyCC.
18626         * tests/test-strstr.c (main): Remove parentheses around array
18627         initializer.
18628
18629 2010-10-15  Eric Blake  <eblake@redhat.com>
18630
18631         ignore-value: make header idempotent
18632         * lib/ignore-value.h: Add double-inclusion guards.
18633         Reported by Stefan Berger.
18634
18635 2010-10-15  Jim Meyering  <meyering@redhat.com>
18636
18637         GNUmakefile: handle "stable" target, not "major"
18638         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
18639         lists in maint.mk and announce-gen.  Without this, "make stable"
18640         would fail to ensure that $(VERSION) is up to date.
18641
18642 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
18643
18644         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
18645         & co.
18646
18647 2010-10-14  Bruno Haible  <bruno@clisp.org>
18648
18649         vasnprintf: Don't set errno to 0.
18650         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
18651         block that sets it to 0.
18652         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
18653
18654 2010-10-14  Bruno Haible  <bruno@clisp.org>
18655
18656         socketlib: Fix.
18657         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
18658         gl_PREREQ_SYS_H_WINSOCK2.
18659         Reported by Ian Beckwith <ianb@erislabs.net>.
18660
18661 2010-10-13  Jim Meyering  <meyering@redhat.com>
18662
18663         test-select-stdin.c: avoid warn_unused_result warnings
18664         * tests/test-select-stdin.c: Include "macros.h".
18665         ASSERT that read and fflush succeed.
18666
18667 2010-10-13  Jim Meyering  <meyering@redhat.com>
18668
18669         git-version-gen: do require git-VC'd files in cwd
18670         * build-aux/git-version-gen: Reject a git version string
18671         if there are no commits associated with the current directory.
18672         This avoids an unlikely false-positive (unrelated dir whose parent
18673         repository also contains a tag matching v*), as pointed out
18674         by Giuseppe Scrivano in
18675         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
18676
18677 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
18678
18679         argv-iter: omit nonconforming declaration
18680         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
18681         enum arg_iter_err declaration, which doesn't conform to C99.
18682         Solaris 10 cc warns about this.
18683
18684 2010-10-13  Eric Blake  <eblake@redhat.com>
18685
18686         termios: fix compilation on mingw
18687         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
18688         (gl_TERMIOS_H): Adjust it on mingw.
18689         * modules/termios (Makefile.am): Substitute new key.
18690         * lib/termios.in.h (includes): Make include_next conditional.
18691         * doc/posix-headers/termios.texi (termios.h): Update
18692         documentation.
18693         Reported by Daniel P. Berrange.
18694
18695 2010-10-13  Jim Meyering  <meyering@redhat.com>
18696
18697         git-version-gen: don't require that .git/ be in the current dir
18698         * build-aux/git-version-gen: Adjust this script so that it works
18699         when run from any working directory beneath the top-level .git/-
18700         containing directory.  Inspired by a patch from Giuseppe Scrivano,
18701         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
18702
18703         test-select: avoid warn_unused_result warnings
18704         * tests/test-select.c: Include "macros.h".
18705         ASSERT that each call to read, write, and pipe succeeds.
18706         While not technically required, also check each "close".
18707         * modules/select-tests (Files): Add tests/macros.h.
18708
18709         test-symlinkat: remove declaration of unused local
18710         * tests/test-symlinkat.c (main): Remove unused local, "buf".
18711
18712         test-inttostr: avoid shadowing warnings
18713         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
18714         and use malloc rather than the stack for the same reason as
18715         mentioned in the comment justifying the other allocation.
18716
18717 2010-10-11  Bruno Haible  <bruno@clisp.org>
18718
18719         stdlib: Allow multiple gnulib generated replacements to coexist.
18720         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
18721         Reported by Sam Steingold <sds@gnu.org>.
18722
18723 2010-10-11  Jim Meyering  <meyering@redhat.com>
18724
18725         fix a documentation typo
18726         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
18727
18728 2010-10-11  Eric Blake  <eblake@redhat.com>
18729
18730         futimens: work around Solaris 11 bug
18731         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
18732         * tests/test-futimens.h (test_futimens): Enhance, rather than
18733         weaken test.
18734         * doc/posix-functions/futimens.texi (futimens): Document the bug.
18735
18736 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
18737
18738         Indentation.
18739         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
18740         higher-level operators more to the left.
18741
18742 2010-10-11  Jim Meyering  <meyering@redhat.com>
18743
18744         test-futimens: avoid unwarranted test failure on Solaris 5.11
18745         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
18746         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
18747         because it tries to dereference the NULL name argument.
18748
18749 2010-10-11  Bruno Haible  <bruno@clisp.org>
18750
18751         Indentation.
18752         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
18753         indentation.
18754
18755 2010-10-11  Jim Meyering  <meyering@redhat.com>
18756
18757         spawn.in.h: make indentation consistent with parentheses
18758         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
18759         Make indentation consistent with parentheses.
18760
18761 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
18762
18763         Fix mismatched parens in previous commit
18764         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
18765         parens.
18766
18767 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
18768
18769         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
18770
18771         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
18772         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
18773         * lib/malloca.c: Include "verify.h".
18774         (verify1): Remove, replacing with a verify call.
18775         * lib/relocwrapper.c (verify1): Likewise.
18776         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
18777         Likewise.
18778         * modules/malloca (Depends-on): Add 'verify'.
18779         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
18780         * modules/vasnprintf (Depends-on): Add 'verify'.
18781         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
18782         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
18783         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
18784         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
18785         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
18786         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
18787         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
18788
18789         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
18790
18791         Formerly the style was sometimes 2*X - 1, because the C standard
18792         was wrongly thought to disallow ?: in integral constant expressions.
18793         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
18794         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
18795         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
18796         * lib/stdint.in.h (_verify_intmax_size): Likewise.
18797         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
18798         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
18799         verify that time_t cannot be floating.
18800
18801 2010-10-08  Eric Blake  <eblake@redhat.com>
18802
18803         time: enforce recent POSIX ruling that time_t is integral
18804         * lib/time.in.h (__time_t_must_be_integral): Detect any
18805         problematic systems, allowing the rest of gnulib to assume POSIX.
18806
18807 2010-10-08  Jim Meyering  <meyering@redhat.com>
18808
18809         fdopendir: fix a bug on systems lacking openat and /proc support
18810         OpenBSD 4.7 is one such system.  The most noticeable effect was
18811         failure of any application making nontrivial use of fts: rm, du,
18812         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
18813           ./rm: traversal failed: `a': Bad file descriptor
18814         Debugging that, you see that even though FD 6 was closed just
18815         prior to the opendir call in fd_clone_opendir, its resulting
18816         dir->dd_fd was 8, rather than the expected value of 6:
18817
18818         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
18819         93                close (fd);
18820         (gdb) n
18821         94                dir = fd_clone_opendir (dupfd);
18822         (gdb) n
18823         95                saved_errno = errno;
18824         (gdb) p dir->dd_fd
18825         $11 = 8
18826
18827         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
18828         The problem is that on OpenBSD, fd_clone_opendir has to resort
18829         to using the old-style save/restore CWD mechanism, due to its
18830         lack of openat/proc support, and *that* would steal the FD (6)
18831         that opendir was supposed to use.
18832
18833         The fix is to squirrel away the desired FD so that save_cwd uses a
18834         different one, and then free the dest FD right before calling opendir.
18835         That guarantees opendir will use the required file descriptor.
18836
18837         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
18838
18839 2010-10-08  Bruno Haible  <bruno@clisp.org>
18840
18841         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
18842         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
18843
18844 2010-10-08  Bruno Haible  <bruno@clisp.org>
18845
18846         nanosleep: Make replacement POSIX compliant.
18847         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
18848         is out of range.
18849         Reported by Jim Meyering.
18850
18851 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
18852
18853         bootstrap: add hook for altering gnulib.mk, for Bison
18854         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
18855         the Bison bootstrapping process can rewrite file names and variables
18856         in this file before later parts of 'bootstrap' use the file.
18857         Bison wants to include lib/gnulib.mk from the top-level makefile,
18858         so it needs the file names in this file to be relative to the top
18859         level, not relative to lib; plus it needs variable names to be
18860         rewritten.
18861         (slurp): Use the new function.
18862
18863         bootstrap: reformat for readability
18864         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
18865
18866 2010-10-08  Eric Blake  <eblake@redhat.com>
18867
18868         docs: update cygwin progress
18869         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
18870         1.7.7.
18871         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
18872         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
18873         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
18874         * doc/posix-functions/carg.texi (carg): Likewise.
18875         * doc/posix-functions/cargf.texi (cargf): Likewise.
18876         * doc/posix-functions/casin.texi (casin): Likewise.
18877         * doc/posix-functions/casinf.texi (casinf): Likewise.
18878         * doc/posix-functions/casinh.texi (casinh): Likewise.
18879         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
18880         * doc/posix-functions/catan.texi (catan): Likewise.
18881         * doc/posix-functions/catanf.texi (catanf): Likewise.
18882         * doc/posix-functions/catanh.texi (catanh): Likewise.
18883         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
18884         * doc/posix-functions/ccos.texi (ccos): Likewise.
18885         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
18886         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
18887         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
18888         * doc/posix-functions/cexp.texi (cexp): Likewise.
18889         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
18890         * doc/posix-functions/cimag.texi (cimag): Likewise.
18891         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
18892         * doc/posix-functions/clog.texi (clog): Likewise.
18893         * doc/posix-functions/clogf.texi (clogf): Likewise.
18894         * doc/posix-functions/conj.texi (conj): Likewise.
18895         * doc/posix-functions/conjf.texi (conjf): Likewise.
18896         * doc/posix-functions/cpow.texi (cpow): Likewise.
18897         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
18898         * doc/posix-functions/cproj.texi (cproj): Likewise.
18899         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
18900         * doc/posix-functions/creal.texi (creal): Likewise.
18901         * doc/posix-functions/crealf.texi (crealf): Likewise.
18902         * doc/posix-functions/csin.texi (csin): Likewise.
18903         * doc/posix-functions/csinf.texi (csinf): Likewise.
18904         * doc/posix-functions/csinh.texi (csinh): Likewise.
18905         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
18906         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
18907         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
18908         * doc/posix-functions/ctan.texi (ctan): Likewise.
18909         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
18910         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
18911         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
18912         * doc/posix-headers/complex.texi (complex.h): Likewise.
18913
18914 2010-10-07  Jim Meyering  <meyering@redhat.com>
18915
18916         parse-datetime: avoid compilation failure on OpenBSD 4.7
18917         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
18918         This works around a compilation failure on OpenBSD 4.7:
18919         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
18920
18921 2010-10-07  Eric Blake  <eblake@redhat.com>
18922
18923         docs: update cygwin progress
18924         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
18925         1.7.6.
18926         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
18927         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
18928         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
18929         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
18930         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
18931         Likewise.
18932         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
18933         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
18934         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
18935         Likewise.
18936         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
18937         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
18938         Likewise.
18939         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
18940         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
18941         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
18942         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
18943         Likewise.
18944         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
18945         Likewise.
18946         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
18947
18948         docs: update parse-datetime history
18949         * doc/parse-datetime.texi (Authors of parse_datetime): Better
18950         documentation of this function's history and alternatives.
18951
18952         cygwin: use more robust version check
18953         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
18954         exclude an eventual cygwin 1.9.1.
18955         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
18956         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
18957         (gl_FUNC_STRCASESTR): Likewise.
18958         Reported by Bruno Haible.
18959
18960 2010-10-06  Bruno Haible  <bruno@clisp.org>
18961
18962         string, sys_select: Avoid #including large headers unless necessary.
18963         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
18964         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
18965         OSF/1, BeOS, Haiku.
18966         Reported by Jim Meyering.
18967
18968 2010-10-05  Eric Blake  <eblake@redhat.com>
18969
18970         memmem, strstr, strcasestr: fix bug with long periodic needle
18971         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
18972         periodic needle having false positive.
18973         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
18974         and cygwin 1.7.7.
18975         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
18976         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
18977         (gl_FUNC_STRCASESTR): Likewise.
18978         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
18979         * tests/test-memmem.c (main): Expose the bug.
18980         * tests/test-strcasestr.c (main): Likewise.
18981         * tests/test-strstr.c (main): Likewise.
18982         * tests/test-c-strcasestr.c (main): Likewise.
18983         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
18984         * doc/posix-functions/strstr.texi (strstr): Likewise.
18985         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
18986         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
18987
18988 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
18989
18990         parse-datetime: do some more renaming
18991         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
18992         parse_datetime, not get_date.  Mention the renaming.
18993         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
18994         in comments.
18995         * m4/bison.m4: Likewise.
18996
18997 2010-10-05  Eric Blake  <eblake@redhat.com>
18998
18999         parse-datetime: better name than get_date
19000         * NEWS: Reword the deprecation notice.
19001         * modules/get_date: Rename to modules/parse-datetime.
19002         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
19003         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
19004         * lib/get_date.y: Rename to lib/parse-datetime.y.
19005         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
19006         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
19007         * doc/getdate.texi: Provide fallback wrapper.
19008         * lib/getdate.h: Move guts, and wrap...
19009         * lib/parse-datetime.h: ...new file.
19010         * lib/parse-datetime.y (get_date): Rename...
19011         (parse_datetime): ...to this.
19012         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
19013         (gl_PARSE_DATETIME): ...to this.
19014         * doc/posix-functions/getdate.texi (get_date): Provide fallback
19015         documentation.
19016         * modules/getdate (Files): Provide fallback docs and header.
19017         (Notice, Depends-on): Update references.
19018         * tests/test-parse-datetime.c: Likewise.
19019         * DEPENDENCIES: Likewise.
19020         * MODULES.html.sh (Date and time <time.h>): Likewise.
19021         * doc/parse-datetime.texi (Date input formats)
19022         (Authors of parse_datetime): Likewise.
19023         * modules/parse-datetime (Files, configure.ac, Makefile.am)
19024         (Include): Likewise.
19025         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
19026         * gnulib-tool: Likewise.
19027         * m4/bison.m4 (gl_BISON): Likewise.
19028         Suggested by Bruno Haible.
19029
19030 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
19031
19032         more ports to Solaris tr, which needs [] around ranges
19033         * gnulib-tool: Solaris tr needs [] around ranges.
19034         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
19035         * tests/test-pipe-filter-gi1.c (main): Likewise.
19036         * tests/test-pipe-filter-ii1.c (main): Likewise.
19037
19038 2010-10-05  Eric Blake  <eblake@redhat.com>
19039
19040         bootstrap: fix Solaris regression
19041         * build-aux/bootstrap (check_versions): Solaris tr still needs []
19042         around ranges.
19043         Reported by Pádraig Brady.
19044
19045         bootstrap: work with pkg-config
19046         * build-aux/bootstrap (check_versions): Also transliterate - in
19047         prerequisite name.
19048         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
19049         prerequisites that were already found, to avoid confusion.
19050         Reported by Justin Clift.
19051
19052         faccessat: remove unused wrappers
19053         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
19054         presence of these wrappers dragged in -lgen on Solaris.
19055         Reported by Clemens Brogi; fix suggested by Paul Eggert.
19056
19057 2010-10-05  Jim Meyering  <meyering@redhat.com>
19058
19059         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
19060         * Makefile (sc_pragma_columns): New syntax-check rule.
19061
19062 2010-10-04  Bruno Haible  <bruno@clisp.org>
19063
19064         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
19065         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
19066         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
19067         Reported by Bruce Korb and Eric Blake.
19068
19069 2010-10-04  Bruno Haible  <bruno@clisp.org>
19070
19071         threadlib: Make option --with-libpth-prefix work.
19072         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
19073         use $LIBPTH, not just -lpth.
19074
19075 2010-10-04  Bruno Haible  <bruno@clisp.org>
19076
19077         Avoid line length limitation from HP NonStop system header files.
19078         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
19079         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
19080         * lib/ctype.in.h: Likewise.
19081         * lib/dirent.in.h: Likewise.
19082         * lib/errno.in.h: Likewise.
19083         * lib/fcntl.in.h: Likewise.
19084         * lib/float.in.h: Likewise.
19085         * lib/getopt.in.h: Likewise.
19086         * lib/iconv.in.h: Likewise.
19087         * lib/inttypes.in.h: Likewise.
19088         * lib/langinfo.in.h: Likewise.
19089         * lib/locale.in.h: Likewise.
19090         * lib/math.in.h: Likewise.
19091         * lib/netdb.in.h: Likewise.
19092         * lib/netinet_in.in.h: Likewise.
19093         * lib/poll.in.h: Likewise.
19094         * lib/pthread.in.h: Likewise.
19095         * lib/pty.in.h: Likewise.
19096         * lib/sched.in.h: Likewise.
19097         * lib/se-selinux.in.h: Likewise.
19098         * lib/search.in.h: Likewise.
19099         * lib/signal.in.h: Likewise.
19100         * lib/spawn.in.h: Likewise.
19101         * lib/stdarg.in.h: Likewise.
19102         * lib/stddef.in.h: Likewise.
19103         * lib/stdint.in.h: Likewise.
19104         * lib/stdio.in.h: Likewise.
19105         * lib/stdlib.in.h: Likewise.
19106         * lib/string.in.h: Likewise.
19107         * lib/strings.in.h: Likewise.
19108         * lib/sys_file.in.h: Likewise.
19109         * lib/sys_ioctl.in.h: Likewise.
19110         * lib/sys_select.in.h: Likewise.
19111         * lib/sys_socket.in.h: Likewise.
19112         * lib/sys_stat.in.h: Likewise.
19113         * lib/sys_time.in.h: Likewise.
19114         * lib/sys_times.in.h: Likewise.
19115         * lib/sys_utsname.in.h: Likewise.
19116         * lib/sys_wait.in.h: Likewise.
19117         * lib/sysexits.in.h: Likewise.
19118         * lib/termios.in.h: Likewise.
19119         * lib/time.in.h: Likewise.
19120         * lib/unistd.in.h: Likewise.
19121         * lib/wchar.in.h: Likewise.
19122         * lib/wctype.in.h: Likewise.
19123         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
19124         * modules/ctype (Makefile.am): Likewise.
19125         * modules/dirent (Makefile.am): Likewise.
19126         * modules/errno (Makefile.am): Likewise.
19127         * modules/fcntl-h (Makefile.am): Likewise.
19128         * modules/float (Makefile.am): Likewise.
19129         * modules/getopt-posix (Makefile.am): Likewise.
19130         * modules/iconv-h (Makefile.am): Likewise.
19131         * modules/inttypes (Makefile.am): Likewise.
19132         * modules/langinfo (Makefile.am): Likewise.
19133         * modules/locale (Makefile.am): Likewise.
19134         * modules/math (Makefile.am): Likewise.
19135         * modules/netdb (Makefile.am): Likewise.
19136         * modules/netinet_in (Makefile.am): Likewise.
19137         * modules/poll-h (Makefile.am): Likewise.
19138         * modules/pthread (Makefile.am): Likewise.
19139         * modules/pty (Makefile.am): Likewise.
19140         * modules/sched (Makefile.am): Likewise.
19141         * modules/search (Makefile.am): Likewise.
19142         * modules/selinux-h (Makefile.am): Likewise.
19143         * modules/signal (Makefile.am): Likewise.
19144         * modules/spawn (Makefile.am): Likewise.
19145         * modules/stdarg (Makefile.am): Likewise.
19146         * modules/stddef (Makefile.am): Likewise.
19147         * modules/stdint (Makefile.am): Likewise.
19148         * modules/stdio (Makefile.am): Likewise.
19149         * modules/stdlib (Makefile.am): Likewise.
19150         * modules/string (Makefile.am): Likewise.
19151         * modules/strings (Makefile.am): Likewise.
19152         * modules/sys_file (Makefile.am): Likewise.
19153         * modules/sys_ioctl (Makefile.am): Likewise.
19154         * modules/sys_select (Makefile.am): Likewise.
19155         * modules/sys_socket (Makefile.am): Likewise.
19156         * modules/sys_stat (Makefile.am): Likewise.
19157         * modules/sys_time (Makefile.am): Likewise.
19158         * modules/sys_times (Makefile.am): Likewise.
19159         * modules/sys_utsname (Makefile.am): Likewise.
19160         * modules/sys_wait (Makefile.am): Likewise.
19161         * modules/sysexits (Makefile.am): Likewise.
19162         * modules/termios (Makefile.am): Likewise.
19163         * modules/time (Makefile.am): Likewise.
19164         * modules/unistd (Makefile.am): Likewise.
19165         * modules/wchar (Makefile.am): Likewise.
19166         * modules/wctype (Makefile.am): Likewise.
19167
19168 2010-10-04  Bruno Haible  <bruno@clisp.org>
19169
19170         read-file tests: Avoid a test failure on NonStop Kernel.
19171         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
19172         a regular file.
19173         Reported by Joachim Schmitz <schmitz@hp.com>.
19174
19175 2010-10-03  Bruno Haible  <bruno@clisp.org>
19176
19177         gnulib-tool: Fixes for --create-testdir with --libtool.
19178         * gnulib-tool (func_get_automake_snippet): Don't augment
19179         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
19180         an executable.
19181         (func_create_testdir): Handle module 'alloca' like func_import.
19182         Reported by Bruce Korb <bruce.korb@gmail.com>.
19183
19184 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
19185
19186         Avoid some lines longer than 80 characters.
19187         * lib/stdint.in.h: Break long comment lines.
19188         * lib/math.in.h: Likewise.
19189         (_GL_NUM_UINT_WORDS): New macro, for readability.
19190         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
19191         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
19192         * lib/stdlib.in.h: Likewise.
19193         * lib/spawn.in.h: Likewise.
19194         * lib/sys_socket.in.h: Update an URL.
19195         * lib/sys_stat.in.h: Break long line.
19196
19197 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
19198
19199         Improve pmccabe2html.
19200         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
19201         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
19202         when the sources change. Remove the line in the HTML about "Used
19203         ranges" (which implied that there might be other unused ranges),
19204         rename "Resume" to "Summary" (easier to understand for more users).
19205         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
19206         styles, and some unnecessary blank lines.
19207
19208 2010-10-03  Bruno Haible  <bruno@clisp.org>
19209             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
19210
19211         acl: Add support for ACLs on NonStop Kernel.
19212         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
19213         Check whether the function aclsort() exists.
19214         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
19215         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
19216         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
19217         (acl_nontrivial [HAVE_ACLSORT]: New function.
19218         (file_has_acl): Implement for NonStop Kernel.
19219         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
19220         (qset_acl): Implement for NonStop Kernel.
19221         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
19222         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
19223         (main): Implement for NonStop Kernel.
19224         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
19225         Kernel. Handle this flavor.
19226         * tests/test-set-mode-acl.sh: Likewise.
19227         * tests/test-copy-acl.sh: Likewise.
19228         * tests/test-copy-file.sh: Likewise.
19229
19230 2010-10-03  Bruno Haible  <bruno@clisp.org>
19231
19232         Info about ACLs on NonStop Kernel.
19233         * doc/acl-resources.txt: Add info about NonStop Kernel.
19234         References by Joachim Schmitz <schmitz@hp.com>.
19235
19236 2010-10-02  Bruno Haible  <bruno@clisp.org>
19237
19238         Define missing EDQUOT on NonStop Kernel.
19239         * lib/errno.in.h (EDQUOT): Assign a value if missing.
19240         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
19241         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
19242         missing.
19243         * doc/posix-headers/errno.texi: Mention the NSK bug.
19244         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
19245         Reported by Joachim Schmitz <schmitz@hp.com>.
19246
19247 2010-10-02  Bruno Haible  <bruno@clisp.org>
19248
19249         Update doc for POSIX:2008.
19250         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
19251         Update URL of POSIX specification.
19252
19253 2010-10-02  Bruno Haible  <bruno@clisp.org>
19254
19255         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
19256         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
19257         from gnulib, not from Automake.
19258
19259 2010-10-02  Bruno Haible  <bruno@clisp.org>
19260
19261         New module 'system-posix'.
19262         * modules/system-posix: New file.
19263         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
19264         module is present.
19265         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
19266         GNULIB_SYSTEM_POSIX.
19267         * modules/stdlib (Depends-on): Remove sys_wait.
19268         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
19269         * doc/posix-functions/system.texi: Mention the new module.
19270         * doc/posix-headers/stdlib.texi: Likewise.
19271         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
19272         define test_sys_wait_macros to a no-op.
19273         Reported by Sam Steingold <sds@gnu.org>.
19274
19275 2010-09-30  Bruno Haible  <bruno@clisp.org>
19276
19277         More renaming from 'getdate' to 'get_date'.
19278         * doc/get_date.texi: Renamed from doc/getdate.texi.
19279         * modules/get_date (Files): Update.
19280         * MODULES.html.sh (Date and time <time.h>): Update.
19281         * DEPENDENCIES: Update.
19282         * gnulib-tool: Update comment.
19283         * m4/bison.m4 (gl_BISON): Likewise.
19284         * m4/get_date.m4 (gl_GET_DATE): Likewise.
19285
19286 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
19287
19288         bootstrap: support ACLOCAL_FLAGS during aclocal
19289         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
19290         can add additional -I dir for third-party .m4 files.
19291
19292 2010-09-30  Eric Blake  <eblake@redhat.com>
19293
19294         bootstrap: use glibtoolize on MacOS
19295         * build-aux/bootstrap (check_versions): Convert libtool into
19296         libtoolize.
19297         (tool search): Move libtool check earlier, and look for
19298         glibtoolize for MacOS.
19299         (gnulib_tool_options): Auto-add --libtool when appropriate.
19300         Reported by Justin Clift.
19301
19302         poll: fix typo that broke test on MacOS
19303         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
19304         Reported by Justin Clift.
19305
19306         getdate: rename to get_date
19307         Note: getdate.h is not renamed, to minimize client impact.
19308         * modules/getdate: Mark obsolete.  Move old contents...
19309         * modules/get_date: ...to new module name.
19310         * modules/getdate-tests: Move...
19311         * modules/get_date-tests: ...here.
19312         * m4/getdate.m4: Move...
19313         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
19314         * lib/getdate.y: Move...
19315         * lib/get_date.y: ...here.
19316         * tests/test-getdate.c: Move...
19317         * tests/test-get_date.c: ...here.
19318         * doc/posix-functions/getdate.texi (getdate): Update name.
19319         * NEWS: Mention the change.
19320
19321 2010-09-29  Bruno Haible  <bruno@clisp.org>
19322
19323         Separate the module 'waitpid' from the module 'sys_wait'.
19324         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
19325         present.
19326         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
19327         gl_MODULE_INDICATOR_FOR_TESTS.
19328         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
19329         * modules/sys_wait (Depends-on): Remove waitpid.
19330         (Makefile.am): Substitute GNULIB_WAITPID.
19331         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
19332         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
19333         signature only if the 'waitpid' module is present.
19334         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
19335         * NEWS: Mention the change.
19336         * modules/grantpt (Depends-on): Add waitpid.
19337         * modules/wait-process (Depends-on): Likewise.
19338
19339 2010-09-29  Bruno Haible  <bruno@clisp.org>
19340
19341         More tests for module 'sys_wait'.
19342         * modules/sys_wait-c++-tests: New file.
19343         * tests/test-sys_wait-c++.cc: New file.
19344         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
19345         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
19346
19347 2010-09-29  Bruno Haible  <bruno@clisp.org>
19348
19349         New module 'waitpid'.
19350         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
19351         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
19352         Don't include <process.h>.
19353         (waitpid): Declare only, using modern idiom.
19354         * m4/waitpid.m4: New file.
19355         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
19356         * modules/waitpid: New file.
19357         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
19358         (Makefile.am): Update.
19359         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
19360
19361 2010-09-28  Bruno Haible  <bruno@clisp.org>
19362
19363         poll: Assume ANSI C.
19364         * lib/poll.c (poll): Use an ANSI C declaration.
19365
19366 2010-09-28  Bruno Haible  <bruno@clisp.org>
19367
19368         poll-h: Create poll.h on all platforms.
19369         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
19370         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
19371         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
19372         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
19373         (gl_REPLACE_POLL_H): Don't set POLL_H.
19374         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
19375         * modules/poll-h (Depends-on): Add include_next.
19376         (Makefile.am): Create poll.h unconditionally. Substitute also
19377         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
19378
19379 2010-09-28  Bruno Haible  <bruno@clisp.org>
19380
19381         Tests for module 'poll-h'.
19382         * modules/poll-h-c++-tests: New file.
19383         * tests/test-poll-h-c++.cc: New file.
19384
19385         Tests for module 'poll-h'.
19386         * modules/poll-h-tests: New file.
19387         * tests/test-poll-h.c: New file.
19388
19389 2010-09-28  Bruno Haible  <bruno@clisp.org>
19390
19391         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
19392         * modules/poll-h (Depends-on): Add 'extensions'.
19393
19394 2010-09-28  Bruno Haible  <bruno@clisp.org>
19395
19396         New module 'poll-h'.
19397         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
19398         (poll): Use modern idiom.
19399         * modules/poll-h: New file.
19400         * modules/poll (Files): Remove lib/poll.in.h.
19401         (Depends-on): Add poll-h.
19402         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
19403         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
19404         * m4/poll_h.m4: New file.
19405         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
19406         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
19407         and invoke gl_REPLACE_POLL_H.
19408         * lib/poll.c: Use common idiom.
19409         * tests/test-poll.c: Likewise.
19410         * doc/posix-headers/poll.texi: Mention the poll-h module.
19411         Suggested by Eric Blake.
19412
19413 2010-09-26  Bruno Haible  <bruno@clisp.org>
19414
19415         sys_wait: Implement WSTOPSIG.
19416         * lib/sys_wait.in.h (WSTOPSIG): New macro.
19417         Reported by Simon Josefsson.
19418
19419 2010-09-26  Simon Josefsson  <simon@josefsson.org>
19420
19421         stdlib, sys_wait: Avoid compilation error on mingw.
19422         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
19423
19424 2010-09-26  Bruno Haible  <bruno@clisp.org>
19425
19426         stdlib tests: Avoid code duplication.
19427         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
19428         * modules/sys_wait-tests (Files): Likewise.
19429         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
19430         * tests/test-stdlib.c: Include test-sys_wait.h.
19431         (main): Invoke test_sys_wait_macros.
19432         * tests/test-sys_wait.c: Include test-sys_wait.h.
19433         (main): Invoke test_sys_wait_macros.
19434
19435 2010-09-25  Simon Josefsson  <simon@josefsson.org>
19436
19437         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
19438         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
19439         sure Windows sockets are working before calling getaddrinfo.
19440         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
19441         * doc/gnulib.texi (Windows sockets): Fix typo.
19442
19443 2010-09-25  Bruno Haible  <bruno@clisp.org>
19444
19445         Tests for module 'regex-quote'.
19446         * modules/regex-quote-tests: New file.
19447         * tests/test-regex-quote.c: New file.
19448
19449         New module 'regex-quote'.
19450         * lib/regex-quote.h: New file.
19451         * lib/regex-quote.c: New file.
19452         * modules/regex-quote: New file.
19453         Suggested by Reuben Thomas <rrt@sc3d.org>.
19454
19455 2010-09-24  Bruno Haible  <bruno@clisp.org>
19456
19457         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
19458         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
19459
19460 2010-09-23  Bruno Haible  <bruno@clisp.org>
19461
19462         setenv: Relax license.
19463         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
19464         Blake.
19465         Requested by Eric Blake.
19466
19467 2010-09-22  Bruno Haible  <bruno@clisp.org>
19468
19469         termios: Relax license.
19470         * modules/termios (License): Change to LGPLv2+.
19471         Requested by Eric Blake.
19472
19473 2010-09-22  Bruno Haible  <bruno@clisp.org>
19474
19475         threadlib: Allow the package to change the default to 'no'.
19476         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
19477         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
19478         Reported by Paul Eggert.
19479
19480 2010-09-22  Pádraig Brady  <P@draigbrady.com>
19481             Bruno Haible  <bruno@clisp.org>
19482
19483         Fix endless loop in mbmemcasecoll.
19484         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
19485         byte.
19486         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
19487
19488 2010-09-22  Bruno Haible  <bruno@clisp.org>
19489
19490         Tests for module 'memcoll'.
19491         * modules/memcoll-tests: New file.
19492         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
19493
19494         memcoll, xmemcoll: Clarify size vs. length.
19495         * modules/memcoll.c (memcoll0): Clarify specification.
19496         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
19497         passed to collate_error.
19498
19499 2010-09-22  Bruno Haible  <bruno@clisp.org>
19500
19501         Tests for module 'memcasecmp'.
19502         * modules/memcasecmp-tests: New file.
19503         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
19504
19505 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
19506
19507         * lib/pthread.in.h: Add split double-inclusion guard, and include
19508         system <pthread.h> if there is one.  Use @@-style as in other
19509         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
19510         pthread.h doesn't.
19511         (pthread_mutexattr_destroy, pthread_mutexattr_init):
19512         (pthread_mutexattr_settype, pthread_mutex_trylock):
19513         New static inline functions, if there's no system <pthread.h>.
19514         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
19515         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
19516         Approximate with mutexes if the system lacks spinlocks, as in
19517         MacOS.
19518         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
19519         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
19520         @@-style.  Check for spinlocks separately.
19521         (gl_PTHREAD_DEFAULTS): New macro.
19522         * modules/pthread: Redo to use a more typical style for in.h files.
19523
19524 2010-09-21  Eric Blake  <eblake@redhat.com>
19525
19526         net_if: enhance tests
19527         * tests/test-net_if.c (main): Move signature checks earlier.
19528         Print failures to stderr.
19529         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
19530         Document the bug that we do not yet fix.
19531
19532 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
19533
19534         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
19535         about gnulib, not GSS.
19536
19537 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
19538
19539         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
19540         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
19541         for Emacs.
19542         * build-aux/pmccabe2html: Make Makefile.am example code more
19543         cut-and-paste friendly.
19544
19545 2010-09-21  Simon Josefsson  <simon@josefsson.org>
19546
19547         * tests/test-net_if.c: New file.
19548         * modules/net_if-tests: New file.
19549
19550 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
19551
19552         pthread: add pthread_spin_destroy
19553         * lib/pthread.in.h (pthread_spin_destroy): New function.
19554
19555 2010-09-19  Bruno Haible  <bruno@clisp.org>
19556
19557         gnulib-tool: Fix --help output.
19558         * gnulib-tool (func_usage): Fix help message.
19559         Reported by Reuben Thomas <rrt@sc3d.org>.
19560
19561 2010-09-18  Jim Meyering  <meyering@redhat.com>
19562
19563         maint.mk: avoid unexpanded \n in two diagnostics
19564         * top/maint.mk (sc_prohibit_always_true_header_tests):
19565         Don't use a literal \n in a halt=... assignment.  It would not be
19566         expanded, and the two \n bytes would appear in the diagnostic output
19567         rather than the desired newline.  Use halt=$$(printf ... instead.
19568         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
19569
19570 2010-09-18  Bruno Haible  <bruno@clisp.org>
19571
19572         netinet_in: Doc tweak.
19573         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
19574         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
19575
19576 2010-09-18  Jim Meyering  <meyering@redhat.com>
19577
19578         init.sh: correct an outdated comment
19579         * tests/init.sh (create_exe_shims_):  s/function/alias/
19580
19581         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
19582         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
19583         a file named "*.exe" is removed between the glob expansion and the
19584         processing of that oddly named file.
19585
19586 2010-09-17  Eric Blake  <eblake@redhat.com>
19587
19588         mirbsd: add some more support
19589         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
19590         in BSD family.
19591         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
19592         devices as OpenBSD.
19593         * m4/host-os.m4 (mirbsd): Add MirBSD.
19594
19595         tests: fix unportable assumption on sys/wait.h
19596         * tests/test-sys_wait.c (main): Relax test.
19597         * tests/test-stdlib.c (main): Likewise.
19598
19599         init.sh: accomodate directory with no .exes
19600         * tests/init.sh: Accomodate directory containing only scripts.
19601
19602         tests: avoid compiler warning
19603         * tests/test-stdlib.c (main): Use the variable.
19604
19605         fdutimens, fdutimensat: update signature, again
19606         * lib/utimens.h (gl_futimens): Delete, and move signature...
19607         (fdutimens): ...here.
19608         (fdutimensat): Rearrange signature.
19609         (lutimensat): Rename variable for clarity.
19610         * lib/fdutimensat.c (fdutimensat): Update signature.
19611         * lib/utimens.c (fdutimens): Likewise.
19612         (gl_futimens): Delete.
19613         (utimens, lutimens): Update callers.
19614         * lib/futimens.c (futimens): Likewise.
19615         * tests/test-fdutimensat.c: Likewise.
19616         * tests/test-utimens.c: Likewise.
19617         * tests/test-futimens.h: Update comment.
19618         * NEWS: Mention this.
19619         Suggested by Paul Eggert.
19620
19621 2010-09-17  Bruno Haible  <bruno@clisp.org>
19622
19623         Take over the maintenance of some older macros from Autoconf.
19624         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
19625         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
19626         GNU Autoconf.
19627         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
19628         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
19629
19630 2010-09-17  Eric Blake  <eblake@redhat.com>
19631
19632         fdutimensat: drop atflag validation
19633         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
19634         with valid fd, to close a race scenario where futimens is
19635         unsupported and FILE was replaced by a symlink.
19636         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
19637         accordingly.
19638         Suggested by Paul Eggert.
19639
19640 2010-09-16  Bruno Haible  <bruno@clisp.org>
19641
19642         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
19643         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
19644
19645 2010-09-16  Bruno Haible  <bruno@clisp.org>
19646
19647         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
19648         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
19649         login_tty exists.
19650         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
19651
19652 2010-09-16  Bruno Haible  <bruno@clisp.org>
19653
19654         login_tty: Make the replacement code work on BSD systems.
19655         * lib/login_tty.c: Include <sys/ioctl.h>.
19656         (login_tty): Use ioctl TIOCSCTTY when available.
19657         * modules/login_tty (Depends-on): Add sys_ioctl.
19658         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
19659
19660 2010-09-16  Bruno Haible  <bruno@clisp.org>
19661
19662         login_tty: Stricter unit test.
19663         * modules/login_tty-tests (Depends-on): Add tcgetsid.
19664         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
19665         and tcgetsid() after login_tty.
19666         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
19667
19668 2010-09-16  Bruno Haible  <bruno@clisp.org>
19669
19670         New module 'tcgetsid'.
19671         * lib/tcgetsid.c: New file.
19672         * m4/tcgetsid.m4: New file.
19673         * modules/tcgetsid: New file.
19674         * modules/termios (Depends-on): Add c++defs, warn-on-use.
19675         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
19676         GNULIB_TCGETSID, HAVE_TCGETSID.
19677         * lib/termios.in.h: Include <sys/types.h>.
19678         (tcgetsid): New declaration.
19679         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
19680         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
19681         * doc/posix-functions/tcgetsid.texi: Mention the new module.
19682         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
19683
19684 2010-09-16  Bruno Haible  <bruno@clisp.org>
19685
19686         Tests for module 'termios'.
19687         * modules/termios-c++-tests: New file.
19688         * modules/termios-tests: New file.
19689         * tests/test-termios-c++.cc: New file.
19690         * tests/test-termios.c: New file.
19691
19692         New module 'termios'.
19693         * modules/termios: New file.
19694         * lib/termios.in.h: New file.
19695         * m4/termios_h.m4: New file.
19696         * doc/posix-headers/termios.texi: Mention the new module.
19697
19698 2010-09-16  Eric Blake  <eblake@redhat.com>
19699
19700         fdutimensat: add an atflag parameter
19701         * lib/fdutimensat.c (fdutimensat): Add new parameter.
19702         * lib/utimens.h (fdutimensat): Update prototype.
19703         * tests/test-fdutimensat.c: Adjust test to match.
19704         * NEWS: Document the change.
19705         Suggested by Paul Eggert.
19706
19707 2010-09-16  Bruno Haible  <bruno@clisp.org>
19708
19709         Fix typos in comments.
19710         * lib/striconveh.h: Fix typo in comment.
19711         * lib/login_tty.c (login_tty): Likewise.
19712
19713 2010-09-15  Bruno Haible  <bruno@clisp.org>
19714
19715         stdlib: clarify MirBSD WEXITSTATUS bug
19716         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
19717         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
19718
19719 2010-09-15  Eric Blake  <eblake@redhat.com>
19720
19721         stdlib: work around MirBSD WEXITSTATUS bug
19722         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
19723         * modules/stdlib (Depends-on): Add sys_wait.
19724         * tests/test-sys_wait.c (main): Enhance test.
19725         * tests/test-stdlib.c (main): Likewise.
19726         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
19727
19728         docs: mention MacOS issue with WEXITSTATUS(constant)
19729         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
19730         issue.
19731         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
19732
19733         strnlen: add tests
19734         * modules/strnlen-tests: New file.
19735         * tests/test-strnlen.c: Likewise.
19736
19737 2010-09-14  Bruno Haible  <bruno@clisp.org>
19738
19739         unistr/base: Avoid link errors when module 'libunistring' is also used.
19740         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
19741         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
19742         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
19743         Declare also when HAVE_LIBUNISTRING is set.
19744         Reported by Pádraig Brady <P@draigbrady.com>.
19745
19746 2010-09-14  Eric Blake  <eblake@redhat.com>
19747
19748         test-rawmemchr: make more robust
19749         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
19750         (Depends-on, configure.ac): Add needed prerequisites to use it.
19751         * modules/memchr-tests (Files, Depends-on, configure.ac):
19752         Likewise, to avoid implicit reliance on memchr module prereqs.
19753         * tests/test-memchr.c (main): Ensure proper masking.
19754         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
19755         reads.
19756
19757         memchr: detect glibc Alpha bug
19758         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
19759         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
19760         Alpha.
19761         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
19762         * tests/test-memchr.c (main): Enhance test.
19763         Reported by Nelson H. F. Beebe.
19764
19765 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
19766
19767         fts, getcwd, glob: audit for dirfd returning -1
19768         * lib/fts.c (opendir): Remove #define; no longer used.
19769         (opendirat): New arg PDIR_FD.  All callers changed.
19770         (fts_build, _opendir2): Use new opendirat to avoid the need for
19771         dirfd, or for checking whether dirfd returns a negative value.
19772         Don't use opendir; always use openat followed by fdopendir.
19773         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
19774         it.
19775         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
19776         returns -1 here.
19777         * modules/fts (Depends-on): Remove dirfd.
19778         * modules/getcwd (Depends-on): Likewise.
19779
19780 2010-09-13  Eric Blake  <eblake@redhat.com>
19781
19782         float: fix broken MirBSD header
19783         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
19784         * doc/posix-headers/float.texi (float.h): Document it.
19785
19786 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
19787
19788         fts: use O_NOFOLLOW to avoid race condition when opening a directory
19789         * lib/fts.c (opendirat): New arg extra_flags.
19790         (__opendir2): Use it to avoid following symlinks when opening
19791         a directory, if symlinks are not supposed to be followed.  See
19792         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
19793
19794         fdopendir: preserve argument fd before returning
19795         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
19796         (fdopendir_with_dup, fd_clone_opendir): New static functions.
19797         (fdopendir): Use them, arranging for FD to be open to the same
19798         directory that it was when it started.  (It might be temporarily
19799         closed while fdopendir is running, so this not thread- or
19800         signal-safe.)  Be careful to do the right thing even when file
19801         descriptors are scarce and dup fails with errno == EMFILE.  See
19802         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
19803
19804 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
19805
19806         regex: Pass the system regex if its only problem is 32-bit regoff_t.
19807         * NEWS: Document change.
19808         * m4/regex.m4: Disable test for regoff_t size.
19809
19810 2010-09-13  Jim Meyering  <meyering@redhat.com>
19811
19812         fts: don't operate on an invalid file descriptor after failed dup
19813         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
19814         negative file descriptor.
19815
19816 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
19817
19818         savedir: add streamsavedir, deprecate fdsavedir
19819         * NEWS: Mention deprecation of fdsavedir.
19820         * lib/savedir.c (streamsavedir): New extern function, whose name
19821         ends in "savedir" to be consistent with the others.  This differs
19822         from savedirstream in that it doesn't close its argument.  The
19823         next version of GNU tar will use this instead of fdsavedir, to
19824         avoid some race conditions and conserve file descriptors.
19825         (savedirstream): Reimplement as a wrapper around streamsavedir.
19826         (fdsavedir): Add a comment deprecating this function.  As far as
19827         I know, only GNU tar used it, and GNU tar doesn't need it any more.
19828         * lib/savedir.h (streamsavedir): New decl.
19829         (fdsavedir): Add a comment deprecating this.
19830
19831 2010-09-10  Bruno Haible  <bruno@clisp.org>
19832
19833         langinfo: Fix last commit.
19834         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
19835         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
19836         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
19837
19838 2010-09-10  Bruno Haible  <bruno@clisp.org>
19839
19840         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
19841         * lib/progreloc.c (O_EXEC): Define fallback.
19842
19843 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
19844
19845         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
19846         * NEWS: Document recent changes to fcntl-h.
19847         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
19848         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
19849         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
19850         Similarly for O_SEARCH; this last was already true, but not documented.
19851         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
19852         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
19853         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
19854         Likewise.
19855         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
19856         is zero, not whether it is defined.
19857         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
19858         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
19859         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
19860
19861 2010-09-10  Bruno Haible  <bruno@clisp.org>
19862
19863         langinfo, nl_langinfo: Fix for IRIX 5.3.
19864         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
19865         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
19866         HAVE_LANGINFO_YESEXPR.
19867         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
19868         HAVE_LANGINFO_YESEXPR.
19869         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
19870         HAVE_LANGINFO_T_FMT_AMPM is 0.
19871         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
19872         HAVE_LANGINFO_YESEXPR is 0.
19873         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
19874         NOEXPR.
19875         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
19876         * doc/posix-functions/nl_langinfo.texi: Likewise.
19877         Reported by Eric Blake.
19878
19879 2010-09-10  Bruno Haible  <bruno@clisp.org>
19880
19881         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
19882         * doc/glibc-functions/login_tty.texi: Mention the include file problem
19883         on FreeBSD 8.0 and OpenBSD 4.6.
19884         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
19885         * m4/pty_h.m4 (gl_PTY_H): Likewise.
19886         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
19887         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
19888         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
19889         ac_includes_default.
19890         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
19891
19892 2010-09-09  Eric Blake  <eblake@redhat.com>
19893
19894         strsignal: work around NetBSD bug
19895         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
19896         * lib/string.in.h (includes): Likewise.
19897         * doc/posix-functions/strsignal.texi (strsignal): Document the
19898         bug.
19899         Reported by Nelson H. F. Beebe.
19900
19901         gnulib-tool: work with NetBSD /bin/sh
19902         * gnulib-tool (func_cache_var, func_cache_lookup_module)
19903         (func_get_description, func_get_comment, func_get_status)
19904         (func_get_notice, func_get_applicability, func_get_filelist)
19905         (func_get_dependencies, func_get_autoconf_early_snippet)
19906         (func_get_autoconf_snippet, func_get_automake_snippet)
19907         (func_get_include_directive, func_get_link_directive)
19908         (func_get_license, func_get_maintainer, func_import): Avoid
19909         shell syntax errors from parsing syntax extensions.
19910
19911 2010-09-09  Bruno Haible  <bruno@clisp.org>
19912
19913         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
19914         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
19915         a reliable way to determine whether the 'alias' command works.
19916
19917 2010-09-08  Jim Meyering  <meyering@redhat.com>
19918
19919         init.sh: penalize a set-x-impaired shell; don't disqualify it
19920         * tests/init.sh: Too many shells corrupt application stderr when
19921         you set -x, so we can't afford to disqualify them, since at least
19922         on Irix-6.5, that would disqualify all bourne shells.
19923         Instead, use a two-pass approach.
19924         On the first pass, try to find a shell that meets the stricter
19925         condition that set -x does not corrupt stderr.
19926         If no shell meets the stricter condition, retest each candidate
19927         shell, but without that extra condition.  Finally, when
19928         VERBOSE=yes is requested and set -x might cause trouble, simply
19929         issue a warning and refrain from enabling debug output.
19930
19931 2010-09-08  Eric Blake  <eblake@redhat.com>
19932
19933         unsetenv: fix OpenBSD bug
19934         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
19935         * doc/posix-functions/unsetenv.texi (unsetenv): Update
19936         documentation.
19937         Reported by Jim Meyering.
19938
19939         strtod: work around IRIX 6.5 bug
19940         * lib/strtod.c (strtod): Reparse number on shorter string if
19941         exponent parse was invalid.
19942         * tests/test-strtod.c (main): Add check for "0x1p 2".
19943         Reported by Tom G. Christensen.
19944
19945         getopt: optimize previous patch
19946         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
19947         empty variable.  Speed up awk script.
19948         Reported by Paolo Bonzini.
19949
19950 2010-09-08  Jim Meyering  <meyering@redhat.com>
19951
19952         test.sh: disqualify shells for which set -x corrupts stderr
19953         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
19954         and OpenBSD 4.7.  They make it so with "set -x", environment settings
19955         appear in stderr output.  For example, this command:
19956             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
19957         prints "P=1" on those two systems:
19958
19959 2010-09-08  Bruno Haible  <bruno@clisp.org>
19960
19961         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
19962         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
19963         commands, because some shells ignore redirections when there is an
19964         error in the command lookup.
19965         Reported by Eric Blake.
19966
19967 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
19968
19969         * lib/regex.h: Fix a mention of `regex_compile' (should be
19970         `re_compile_pattern').
19971         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
19972         (re_set_registers): Correct name of parameter in comment.
19973
19974         * doc/regex.texi: Add documentation for missing syntax flags.
19975         Remove commented-out documentation of defunct syntax option
19976         RE_NO_EMPTY_ALTS.
19977         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
19978         Add documentation of re_set_registers.
19979         Document trick to re-use a pattern buffer by setting fastmap manually.
19980         Update documentation of struct re_pattern_buffer per public members.
19981         Uncomment documentation of equivalence class operators and
19982         collating symbol operators, since they are now implemented,
19983         Explain leftmost-longest matching in relation to alternatives.
19984         Tidy documentation of substring matching.
19985         Remove POSIX documentation, which is done better in
19986         glibc, and refer the reader there. Keep BSD API documentation, as
19987         that is not readily available elsewhere.
19988
19989 2010-09-07  Eric Blake  <eblake@redhat.com>
19990
19991         getopt: handle POSIXLY_CORRECT set but not exported
19992         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
19993         export state of POSIXLY_CORRECT, due to bash set -o posix.
19994         Reported by Dustin J. Mitchell.
19995
19996 2010-09-05  Bruno Haible  <bruno@clisp.org>
19997
19998         gnulib-tool: Highlight the changed options.
19999         * gnulib-tool (func_usage): Display the --import, --add-import,
20000         --remove-import explanations in bold font.
20001
20002 2010-09-06  Karl Berry  <karl@gnu.org>
20003
20004         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
20005
20006 2010-09-05  Bruno Haible  <bruno@clisp.org>
20007
20008         uniwidth/width: Update comment.
20009         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
20010         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
20011
20012 2010-09-05  Bruno Haible  <bruno@clisp.org>
20013
20014         isinf, isnan: Relax license.
20015         * modules/isinf (License): Change from GPL to LGPL, with consent from
20016         Ben Pfaff.
20017         * modules/isnan (License): Likewise.
20018         Requested by Ludovic Courtès.
20019
20020 2010-09-04  Bruno Haible  <bruno@clisp.org>
20021
20022         gnulib-tool: Help migration from --import to --add-import or --update.
20023         * gnulib-tool: Emit a verbose error message when --import is used
20024         without any module name.
20025
20026 2010-09-04  Bruno Haible  <bruno@clisp.org>
20027
20028         Update doc about gnulib-tool.
20029         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
20030         'gnulib-tool --update' in more detail.
20031         Reported by Eric Blake.
20032
20033 2010-09-04  Bruno Haible  <bruno@clisp.org>
20034
20035         gnulib-tool: Change --import. New options --add/remove-import.
20036         * gnulib-tool: New options --add-import, --remove-import.
20037         (func_usage): Document them.
20038         (have_associative): Define always.
20039         (func_import): In import mode, don't merge the specified settings with
20040         the cached settings. Implement remove-import mode.
20041         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
20042         Explain when to use them versus --import.
20043         (Simple update): Use --add-import instead of --import.
20044         * NEWS: Mention the change.
20045
20046 2010-09-04  Bruno Haible  <bruno@clisp.org>
20047
20048         * doc/gnulib-tool.texi (Initial import): Update paragraph about
20049         separate gnulib.mk.
20050
20051 2010-09-04  Bruno Haible  <bruno@clisp.org>
20052
20053         gnulib-tool: Don't talk about CVS any more.
20054         * gnulib-tool (func_usage, func_import): Write "version control"
20055         instead of CVS.
20056
20057 2010-09-04  Jim Meyering  <meyering@redhat.com>
20058
20059         maint.mk: avoid obscure sc_copyright_check failure in coreutils
20060         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
20061         false positives (whose names may be ill-chosen) when searching
20062         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
20063         would cause a false-positive.
20064
20065         avoid coreutils "make distcheck" failure
20066         Coreutils tests with an absolute build directory name that contains
20067         a space.  Not quoting this directory name caused a failure.
20068         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
20069         * tests/test-vc-list-files-cvs.sh: Likewise.
20070
20071 2010-09-04  Bruno Haible  <bruno@clisp.org>
20072
20073         gnulib-tool: Avoid error when run in a package without Makefile.am.
20074         * gnulib-tool: When collecting the m4dirs in a package that does not
20075         have a Makefile.am, eliminate those directories that contain no
20076         gnulib-cache.m4. Fix expression that counts these directories.
20077
20078 2010-09-04  Bruno Haible  <bruno@clisp.org>
20079
20080         update-copyright test: Improve output when perl is missing or too old.
20081         * tests/test-update-copyright.sh: Move test of Perl version down after
20082         the test whether Perl exists. Provide an explanation relating Perl's
20083         error message to Automake's SKIP: message.
20084
20085 2010-09-04  Bruno Haible  <bruno@clisp.org>
20086
20087         Don't augment PATH in TESTS_ENVIRONMENT.
20088         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
20089         set abs_aux_dir instead of augmenting PATH.
20090         * modules/vc-list-files-tests (Makefile.am): Likewise.
20091         * tests/test-update-copyright.sh: Augment PATH here.
20092         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
20093         path_prepend_.
20094         * tests/test-vc-list-files-git.sh: Likewise.
20095
20096 2010-09-04  Jim Meyering  <meyering@redhat.com>
20097
20098         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
20099         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
20100
20101 2010-09-04  Bruno Haible  <bruno@clisp.org>
20102
20103         strdup: Fix compilation error in C++ mode.
20104         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
20105         the macro.
20106
20107 2010-09-04  Bruno Haible  <bruno@clisp.org>
20108
20109         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
20110         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
20111         macro into a function.
20112         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
20113
20114 2010-09-04  Bruno Haible  <bruno@clisp.org>
20115
20116         Set PATH_SEPARATOR the same way autoconf does.
20117         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
20118         the value of PATH_SEPARATOR the same way autoconf-generated configure
20119         scripts do.
20120         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
20121         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
20122
20123 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
20124
20125         Set PATH_SEPARATOR the same way autoconf does.
20126         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
20127         the same way autoconf-generated configure scripts do.
20128         * posix-modules: Likewise.
20129
20130 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
20131
20132         hash: fix safe_hasher const typo
20133         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
20134         const; otherwise, there is a type error later.
20135
20136 2010-09-02  Jim Meyering  <meyering@redhat.com>
20137
20138         test-update-copyright.sh: require perl 5.8.0
20139         * tests/test-update-copyright.sh: Require 5.8.0,
20140         which Tom G. Christensen has confirmed is adequate,
20141         while 5.6.1 is not.
20142
20143 2010-09-02  Eric Blake  <eblake@redhat.com>
20144
20145         tests: init.sh improvements for re-exec'ing with zsh
20146         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
20147         -vx through shell re-exec.
20148         Reported by Tom G. Christensen.
20149
20150         wctype: fix typo in previous commit
20151         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
20152         Reported by Ludovic Courtès.
20153
20154 2010-09-02  Jim Meyering  <meyering@redhat.com>
20155
20156         test-update-copyright.sh: skip test if Perl is too old
20157         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
20158         Reported by Tom G. Christensen.
20159
20160 2010-09-02  Bruno Haible  <bruno@clisp.org>
20161
20162         wctype: Avoid compilation error on IRIX 6.5.30.
20163         * lib/wctype.in.h (iswblank): Declare with a replacement if
20164         REPLACE_ISWBLANK is set.
20165         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
20166         declared. Set REPLACE_ISWBLANK.
20167         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
20168         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
20169         * doc/posix-headers/wctype.texi: Likewise.
20170         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
20171
20172 2010-09-01  Bruno Haible  <bruno@clisp.org>
20173
20174         New module 'socketlib'.
20175         * modules/socketlib: New file.
20176         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
20177         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
20178         * modules/sockets (Depends-on): Add socketlib.
20179         Suggested by Sam Steingold <sds@gnu.org>.
20180
20181 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
20182
20183         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
20184
20185         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
20186         when one needs search access to a directory but not read access.
20187         On systems where it is available, it works in some cases where
20188         O_RDONLY does not, namely on directories that are searchable but
20189         not readable, and which need only to be searchable.  If O_SEARCH
20190         is not available, fall back to the traditional method of using
20191         O_RDONLY.
20192
20193         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
20194         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
20195         when opening a directory that needs only to be searchable.
20196         * lib/chdir-safer.c (chdir_no_follow): Likewise.
20197         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
20198         * lib/openat-proc.c (openat_proc_name): Likewise.
20199         * lib/openat.c (openat_needs_fchdir): Likewise.
20200         * lib/save-cwd.c (save_cwd): Likewise.
20201         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
20202
20203 2010-08-28  Bruno Haible  <bruno@clisp.org>
20204
20205         New module 'host-cpu-c-abi'.
20206         * modules/host-cpu-c-abi: New file.
20207         * m4/host-cpu-c-abi.m4: New file, based on part of
20208         clisp/src/m4/general.m4.
20209         Requested by Sam Steingold <sds@gnu.org>.
20210
20211 2010-08-31  Eric Blake  <eblake@redhat.com>
20212         and Jim Meyering  <meyering@redhat.com>
20213
20214         hash: factor, and guard against misbehaving hasher function
20215         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
20216         of table->hasher's return value.  Also protect against a hash value
20217         so large that adding it to table->bucket results in a NULL pointer.
20218         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
20219         Use it in place of open-coded check-and-abort.
20220
20221 2010-08-30  Bruno Haible  <bruno@clisp.org>
20222
20223         hash: silence spurious clang warning
20224         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
20225         Reported by Eric Blake.
20226
20227 2010-08-30  Eric Blake  <eblake@redhat.com>
20228
20229         strstr, memmem, strcasestr: avoid leaked shell message
20230         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
20231         FreeBSD.
20232         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
20233         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
20234
20235         tests: silence clang warning
20236         * tests/test-malloca.c (do_allocation): Avoid dead store.
20237
20238 2010-08-29  Bruno Haible  <bruno@clisp.org>
20239
20240         gettext: Fix recent mistake.
20241         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
20242
20243 2010-08-29  Bruno Haible  <bruno@clisp.org>
20244
20245         selinux-h: Offer a --without-selinux option.
20246         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
20247         --without-selinux was specified, skip all tests and define
20248         HAVE_SELINUX_SELINUX_H to 0.
20249         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
20250         set LIB_SELINUX to empty.
20251         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
20252         gl_LIBSELINUX. If --without-selinux was specified, replace
20253         selinux/context.h.
20254         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
20255
20256 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20257             Bruno Haible  <bruno@clisp.org>
20258
20259         Make the module 'realloc-gnu' work again on AIX and OSF/1.
20260         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
20261         of HAVE_REALLOC.
20262         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
20263         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
20264         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
20265         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
20266
20267 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20268             Bruno Haible  <bruno@clisp.org>
20269
20270         Make the module 'calloc-gnu' work again on AIX and OSF/1.
20271         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
20272         HAVE_CALLOC.
20273         * lib/xmalloc.c: Update accordingly.
20274         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
20275         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
20276         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
20277
20278 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20279             Bruno Haible  <bruno@clisp.org>
20280
20281         Make the module 'malloc-gnu' work again on AIX and OSF/1.
20282         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
20283         HAVE_MALLOC.
20284         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
20285         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
20286         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
20287
20288 2010-08-29  Bruno Haible  <bruno@clisp.org>
20289
20290         Update modules list.
20291         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
20292         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
20293         (String handling <string.h>): Add astrxfrm.
20294         (File system functions): Add readlinkat.
20295
20296 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20297
20298         Tests for module 'realloc-gnu'.
20299         * modules/realloc-gnu-tests: New file.
20300         * tests/test-realloc-gnu.c: New file.
20301
20302         Tests for module 'calloc-gnu'.
20303         * modules/calloc-gnu-tests: New file.
20304         * tests/test-calloc-gnu.c: New file.
20305
20306         Tests for module 'malloc-gnu'.
20307         * modules/malloc-gnu-tests: New file.
20308         * tests/test-malloc-gnu.c: New file.
20309
20310 2010-08-28  Bruno Haible  <bruno@clisp.org>
20311
20312         Rename module 'realloc' -> 'realloc-gnu'.
20313         * modules/realloc-gnu: New file, copied from modules/realloc.
20314         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
20315         obsolete.
20316         * modules/mgetgroups (Depends-on): Update.
20317         * doc/posix-functions/realloc.texi: Update.
20318         * NEWS: Mention the change.
20319
20320         Rename module 'calloc' -> 'calloc-gnu'.
20321         * modules/calloc-gnu: New file, copied from modules/calloc.
20322         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
20323         obsolete.
20324         * doc/posix-functions/calloc.texi: Update.
20325         * NEWS: Mention the change.
20326
20327         Rename module 'malloc' -> 'malloc-gnu'.
20328         * modules/malloc-gnu: New file, copied from modules/malloc.
20329         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
20330         obsolete.
20331         * modules/argp (Depends-on): Update.
20332         * modules/regex (Depends-on): Update.
20333         * doc/posix-functions/malloc.texi: Update.
20334         * NEWS: Mention the change.
20335
20336 2010-08-28  Eric Blake  <eblake@redhat.com>
20337
20338         pread, pwrite: add missing dependency
20339         * modules/pread (Depends-on): Add extensions.
20340         * modules/pwrite (Depends-on): Likewise.
20341
20342 2010-08-28  Bruno Haible  <bruno@clisp.org>
20343
20344         unistr/u*-strchr: Fix tests dependencies.
20345         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
20346         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
20347         Reported by Ian Beckwith <ianb@erislabs.net>.
20348
20349 2010-08-28  Bruno Haible  <bruno@clisp.org>
20350
20351         read-file: Don't occupy too much unused memory.
20352         * lib/read-file.c (fread_file): Shrink the buffer at the end.
20353
20354 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
20355             Eric Blake  <eblake@redhat.com>
20356             Bruno Haible  <bruno@clisp.org>
20357
20358         read-file: Avoid memory reallocations with regular files.
20359         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
20360         (fread_file): With regular files, use the remaining length as the
20361         initial buffer size.  Check against overflow.
20362         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
20363         sys_stat.
20364
20365 2010-08-28  Bruno Haible  <bruno@clisp.org>
20366
20367         ftello: Relax license.
20368         * modules/ftello (License): Relax to LGPLv2+.
20369         Reported by Eric Blake.
20370
20371 2010-08-28  Bruno Haible  <bruno@clisp.org>
20372
20373         Avoid relocwrapper link errors due to gnulib replacement functions.
20374         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
20375         function.
20376         Reported by Ben Pfaff <blp@cs.stanford.edu>.
20377
20378 2010-08-28  Bruno Haible  <bruno@clisp.org>
20379
20380         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
20381         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
20382         defined.
20383         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
20384         Suggested by Eric Blake.
20385
20386 2010-08-28  Bruno Haible  <bruno@clisp.org>
20387
20388         sys_socket, netdb: Ensure socklen_t gets defined.
20389         * modules/sys_socket (Depends-on): Add socklen.
20390         * modules/netdb (Depends-on): Likewise.
20391         * modules/getaddrinfo (Depends-on): Remove socklen.
20392         * modules/getsockopt (Depends-on): Likewise.
20393         * modules/setsockopt (Depends-on): Likewise.
20394         * tests/test-sys_socket.c: Check that socklen_t is defined.
20395         * tests/test-netdb.c: Likewise.
20396         * m4/socklen.m4: Update comments.
20397         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
20398
20399 2010-08-27  Eric Blake  <eblake@redhat.com>
20400
20401         login_tty: add missing dependency
20402         * modules/login_tty (Depends-on): Add pty.
20403
20404 2010-08-26  Eric Blake  <eblake@redhat.com>
20405
20406         lib-symbol-versions: fix m4 quoting
20407         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
20408         format for AC_LINK_IFELSE.
20409
20410         glob: fix compile test
20411         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
20412
20413         btowc: fix missing file
20414         * modules/btowc (Files): Also ship locale-fr.m4.
20415
20416         lseek: fix link test
20417         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
20418         AC_LINK_IFELSE.
20419
20420         include_next: silence autoconf 2.68 warning
20421         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
20422         AC_COMPILE_IFELSE as special.
20423         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
20424         autoconf < 2.68.
20425
20426         acl: fix compilation test
20427         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
20428         AC_COMPILE_IFELSE.
20429
20430 2010-08-26  Bruno Haible  <bruno@clisp.org>
20431
20432         Modernize AC_TRY_RUN invocations.
20433         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
20434         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
20435         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
20436         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
20437         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
20438         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
20439         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
20440         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
20441         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
20442         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
20443         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
20444         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
20445         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
20446         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
20447         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
20448         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
20449         gl_MBRLEN_NUL_RETVAL): Likewise.
20450         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
20451         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
20452         Likewise.
20453         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
20454         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
20455         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
20456         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
20457         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
20458         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
20459         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
20460         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
20461         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
20462         Likewise.
20463         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
20464         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
20465         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
20466         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
20467         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
20468         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
20469         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
20470         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
20471         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
20472         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
20473
20474 2010-08-26  Bruno Haible  <bruno@clisp.org>
20475
20476         Modernize AC_TRY_LINK invocations.
20477         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
20478         AC_TRY_LINK.
20479         * m4/argp.m4 (gl_ARGP): Likewise.
20480         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
20481         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
20482         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
20483         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
20484         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
20485         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
20486         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
20487         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
20488         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
20489         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
20490         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
20491         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
20492         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
20493         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
20494         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
20495         * m4/hostent.m4 (gl_HOSTENT): Likewise.
20496         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
20497         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
20498         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
20499         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
20500         Likewise.
20501         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
20502         Likewise.
20503         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
20504         Likewise.
20505         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
20506         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
20507         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
20508         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
20509         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
20510         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
20511         * m4/servent.m4 (gl_SERVENT): Likewise.
20512         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
20513         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
20514         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
20515         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
20516         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
20517         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
20518         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
20519         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
20520         * modules/tsearch-tests (configure.ac): Likewise.
20521
20522 2010-08-26  Bruno Haible  <bruno@clisp.org>
20523
20524         Modernize AC_TRY_COMPILE invocations.
20525         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
20526         AC_TRY_COMPILE.
20527         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
20528         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
20529         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
20530         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
20531         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
20532         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
20533         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
20534         * m4/lock.m4 (gl_LOCK): Likewise.
20535         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
20536         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
20537         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
20538         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
20539         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
20540         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
20541         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
20542         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
20543         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
20544         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
20545         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
20546         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
20547         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
20548         extraneous semicolon.
20549
20550 2010-08-26  Jim Meyering  <meyering@redhat.com>
20551
20552         stat-time: relax license LGPL
20553         * modules/stat-time (License): Change from GPL to LGPL,
20554         with consent from all contributors, for use in libguile.
20555         Requested by Ludovic Courtès.
20556
20557 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
20558
20559         poll: return immediately on POLLHUP.
20560         * lib/poll.c (poll): Always set timeout before wait_timeout is
20561         computed.
20562
20563 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20564
20565         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
20566         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
20567         rmdir ("dir/.//"), unlinkat.
20568
20569 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
20570
20571         stdbool: avoid spurious failure with modern xlc
20572         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
20573
20574 2010-08-24  Bruno Haible  <bruno@clisp.org>
20575
20576         getloadavg: simplify code
20577         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
20578         gl_have_func. Update comments.
20579
20580 2010-08-24  Eric Blake  <eblake@redhat.com>
20581
20582         getloadavg: don't define SVR4 on cygwin
20583         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
20584         only define SVR4 when -lkvm is required.
20585         Reported by Yaakov Selkowitz.
20586
20587 2010-08-24  Bruno Haible  <bruno@clisp.org>
20588
20589         priv-set: fix comment
20590         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
20591
20592 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
20593
20594         priv-set: fix comments
20595         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
20596         to match code, as suggested by David Bartley in:
20597         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
20598
20599 2010-08-23  Eric Blake  <eblake@redhat.com>
20600
20601         stdbool: avoid rejecting clang
20602         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
20603         * tests/test-stdbool.c: Enable more tests if using the system
20604         <stdbool.h> instead of the gnulib replacement.
20605         (main): Move xlc bug test to a runtime test for all compilers.
20606         Reported by Anders Kaseorg.
20607
20608         argz: fix shell quoting issue
20609         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
20610         Reported by Charles Wilson.
20611
20612 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
20613             Erik Faye-Lund <kusmabite@gmail.com>
20614
20615         poll, select: handle ERROR_BROKEN_PIPE.
20616         * lib/poll.c (win32_compute_revents): Return POLLHUP when
20617         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
20618         * lib/select.c (win32_compute_revents): Do not mark a pipe
20619         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
20620
20621 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
20622
20623         fts: allow compilation with C++
20624         * lib/fts_.h: Specify extern "C" linkage with C++.
20625
20626 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20627
20628         Fix gnulib-tool sed script de-commentation for AIX sed.
20629         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
20630         sed.
20631
20632 2010-08-17  Eric Blake  <eblake@redhat.com>
20633
20634         test-stddef: test for (some) offsetof bugs
20635         * tests/test-stddef.c: Enhance test to ensure correct type of
20636         offsetof.
20637         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
20638         that we are not fixing at this time.
20639
20640 2010-08-15  Bruno Haible  <bruno@clisp.org>
20641
20642         stpncpy: Allow stpncpy to be defined as a macro.
20643         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
20644         if it's already correctly declared.
20645         * lib/string.in.h (stpncpy): Undefine before redefining.
20646         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
20647
20648 2010-08-14  Bruno Haible  <bruno@clisp.org>
20649
20650         Rename module 'memxfrm' to 'amemxfrm'.
20651         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
20652         (amemxfrm): Renamed from memxfrm.
20653         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
20654         (amemxfrm): Renamed from memxfrm.
20655         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
20656         * NEWS: Mention the change.
20657         * MODULES.html.sh (String handling <string.h>): Update.
20658         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
20659         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
20660         * lib/unicase/u16-casexfrm.c: Likewise.
20661         * lib/unicase/u32-casexfrm.c: Likewise.
20662         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
20663         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
20664         * lib/uninorm/u16-normxfrm.c: Likewise.
20665         * lib/uninorm/u32-normxfrm.c: Likewise.
20666         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
20667         memxfrm.
20668         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
20669         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
20670         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
20671         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
20672         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
20673         Suggested by Paul Eggert.
20674
20675 2010-08-14  Bruno Haible  <bruno@clisp.org>
20676
20677         Tests for module 'astrxfrm'.
20678         * modules/astrxfrm-tests: New file.
20679         * tests/test-astrxfrm.c: New file.
20680
20681         New module 'astrxfrm'.
20682         * lib/astrxfrm.h: New file.
20683         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
20684         * modules/astrxfrm: New file.
20685
20686 2010-08-14  Reuben Thomas <rrt@sc3d.org>
20687
20688         regex: Tweak doc.
20689         * doc/regex.texi (Overview): Don't mention regex.c.
20690         (GNU Regular Expression Compiling): Likewise.
20691         (Match-end-of-line Operator): Mention 'not_eol'.
20692
20693 2010-08-14  Brian Gough  <bjg@gnu.org>
20694             Bruno Haible  <bruno@clisp.org>
20695
20696         git-merge-changelog: add doc relating to use with bzr and hg.
20697         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
20698
20699 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
20700
20701         pthread: fix pthread.h creation for srcdir != builddir
20702         * modules/pthread (Makefile.am): Fix the rule to work also in a
20703         non-srcdir build.
20704
20705 2010-08-13  Karl Berry  <karl@gnu.org>
20706
20707         * doc/regex.texi (Predefined Syntaxes): @smallexample.
20708         * doc/posix-*/*: force line break before @url of POSIX
20709         specifications.
20710         Suggested by Werner Lemberg.
20711
20712 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
20713
20714         strtod: fix const diagnostic
20715         * lib/strtod.c (strtod): Don't assign const char * to char *,
20716         as this elicits a warning from GCC when warnings are enabled.
20717
20718 2010-08-10  Pádraig Brady <P@draigbrady.com>
20719         and Eric Blake  <eblake@redhat.com>
20720
20721         copy-acl: ignore ENOTSUP on HP-UX
20722         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
20723         so that it is available for HP-UX.
20724         * lib/copy-acl.c (qcopy_acl): Use it.
20725         Reported by Patrick M. Callahan.
20726
20727 2010-08-10  Eric Blake  <eblake@redhat.com>
20728
20729         open, chown: relax license
20730         * modules/open (License): Change to LGPLv2+, with consent by all
20731         authors, for use in augeas.
20732         * modules/chown (License): Likewise.
20733         * modules/lchown (Likewise): Likewise.
20734         Requested by Adam Stokes.
20735
20736 2010-08-09  Karl Berry  <karl@gnu.org>
20737
20738         * build-aux/ar-lib: new file, import from Automake.
20739         * config/srclist.txt: autocheck for updates.
20740
20741 2010-08-09  Eric Blake  <eblake@redhat.com>
20742
20743         readlinkat: adjust client modules
20744         * modules/areadlinkat (Depends-on): Use readlinkat, not
20745         symlinkat.
20746         * modules/areadlinkat-with-size (Depends-on): Likewise.
20747
20748         mknod: be more vocal about danger of running tests as root
20749         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
20750         root, since that is just asking for problems.
20751         Suggested by Bruno Haible, based on a report by Rainer Tammer.
20752
20753         readlinkat: split into its own module
20754         * modules/symlinkat: Split readlinkat...
20755         * modules/readlinkat: ...into separate module.
20756         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
20757         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
20758         * lib/symlinkat.c (readlinkat): Move...
20759         * lib/readlinkat.c: ...into new file.
20760         * modules/symlinkat-tests: Split readlinkat test...
20761         * modules/readlinkat-tests: ...into separate module.
20762         * tests/test-symlinkat.c: Split...
20763         * tests/test-readlinkat.c: ...into new file.
20764         * NEWS: Document the split.
20765         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
20766         * lib/unistd.in.h (readlinkat): Likewise.
20767         Suggested by Bruno Haible.
20768
20769 2010-08-08  Bruno Haible  <bruno@clisp.org>
20770
20771         memxfrm: Speed up.
20772         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
20773         that usually only one call to strxfrm is necessary for each string
20774         part.
20775         Reported by Paul Eggert <eggert@cs.ucla.edu>.
20776
20777 2010-08-07  Karl Berry  <karl@gnu.org>
20778
20779         * doc/posix-headers/limits.texi,
20780         * doc/posix-functions/malloc.texi,
20781         * doc/posix-functions/strsignal.texi: missing @item.
20782         * doc/ld-version-script.texi: spurious leading i.
20783         * doc/regex.texi (Interval Operators): no commas inside @var.
20784
20785 2010-08-01  Bruno Haible  <bruno@clisp.org>
20786
20787         Integrate the regex documentation.
20788         * doc/gnulib.texi: Define 'cn' index.
20789         (Regular expressions): New a chapter that includes regex.texi and
20790         regexprops-generic.texi.
20791         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
20792         syntax.
20793
20794         Whitespace cleanup.
20795         * doc/regex.texi: Remove trailing spaces.
20796
20797         Add regex documentation.
20798         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
20799         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
20800         Written by Kathy A. Hargreaves and Karl Berry.
20801
20802 2010-08-01  Bruno Haible  <bruno@clisp.org>
20803
20804         link: Update documentation.
20805         * doc/posix-functions/link.texi: Update regarding Solaris.
20806
20807 2010-07-31  Bruno Haible  <bruno@clisp.org>
20808
20809         Update modules list.
20810         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
20811         (String handling <string.h>): Add memcmp2, memxfrm.
20812         (Container data structures): Add xlist, xsublist, xoset.
20813         (Core language properties): Add alignof, unused-parameter.
20814         (Process control, Numeric conversion functions <stdlib.h>): Renamed
20815         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
20816         (Unibyte characters <ctype.h>): New section.
20817         (String handling <string.h>): New section.
20818         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
20819         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
20820         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
20821         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
20822         tan, tanh, tanl, y0, y1, yn.
20823         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
20824         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
20825         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
20826         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
20827         unlockpt, vdprintf, vdprintf-posix.
20828         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
20829         (File system functions): Add concat-filename, sys_file, sys_ioctl,
20830         xconcat-filename.
20831         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
20832         getdtablesize, pipe2, pipe2-safer.
20833         (Security): New section.
20834         (Networking functions): Add accept4.
20835         (Signal handling): Add sigpipe.
20836         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
20837         mbmemcasecoll.
20838         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
20839         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
20840         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
20841         pipe-filter-ii.
20842         (Misc): Add argp-version-etc, login_tty, parse-duration.
20843
20844 2010-07-31  Bruno Haible  <bruno@clisp.org>
20845
20846         Improve doc in MODULES.html.
20847         * modules/linkat (Description): Add the word "function".
20848         * modules/mkfifo (Description): Likewise.
20849         * modules/mknod (Description): Likewise.
20850         * modules/remove (Description): Likewise.
20851         * modules/renameat (Description): Likewise.
20852         * modules/stat (Description): Likewise.
20853         * modules/symlink (Description): Likewise.
20854         * modules/unlink (Description): Likewise.
20855
20856 2010-07-31  Bruno Haible  <bruno@clisp.org>
20857
20858         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
20859         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
20860         option --enable/disable-c++ instead of --enable/disable-cxx.
20861         * NEWS: Mention the change.
20862
20863 2010-07-31  Bruno Haible  <bruno@clisp.org>
20864
20865         readlink, areadlink: Relax test a bit.
20866         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
20867         alternative to ENOTDIR.
20868         * tests/test-areadlink.h (test_areadlink): Likewise.
20869         Reported by Rainer Tammer.
20870
20871 2010-07-31  Bruno Haible  <bruno@clisp.org>
20872
20873         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
20874         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
20875         character, perform the search using U_STRCHR.
20876         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
20877         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
20878         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
20879         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
20880         Suggested by Paolo Bonzini.
20881
20882 2010-07-31  Bruno Haible  <bruno@clisp.org>
20883
20884         unistr/u*-strstr: Fix dependencies.
20885         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
20886         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
20887         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
20888
20889 2010-07-31  Bruno Haible  <bruno@clisp.org>
20890
20891         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
20892         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
20893         the beginning of the loop.
20894         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
20895         cases in 'switch' statement.
20896
20897         unistr/u8-strchr: Fix several bugs.
20898         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
20899         the string. When not found, return NULL, not a pointer near the end.
20900
20901         More tests for unistr/u8-strchr.
20902         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
20903         that the function does not read past the first occurrence of the byte
20904         being searched.
20905         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
20906         * tests/unistr/test-u16-strchr.c (main): New function.
20907         * tests/unistr/test-u32-strchr.c (main): New function.
20908
20909 2010-07-31  Bruno Haible  <bruno@clisp.org>
20910
20911         posix-modules: Ignore backup files of documentation files.
20912         * posix-modules: grep only through files named *.texi.
20913
20914 2010-07-31  Bruno Haible  <bruno@clisp.org>
20915
20916         symlinkat: Fix documentation.
20917         * doc/posix-functions/readlinkat.texi: Fix module name.
20918
20919 2010-07-31  Bruno Haible  <bruno@clisp.org>
20920
20921         fchownat: Replace also when chown has the trailing slash bug.
20922         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
20923         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
20924         introduced on 2010-04-10.
20925         Reported by Rainer Tammer.
20926
20927 2010-07-31  Bruno Haible  <bruno@clisp.org>
20928
20929         linkat: Work around AIX 7.1 bug.
20930         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
20931         whether linkat handles trailing slash correctly. If not, replace linkat
20932         and define LINKAT_TRAILING_SLASH_BUG.
20933         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
20934         check whether (fd1,file1) points to a directory if file1 or file2 ends
20935         in a slash. Code taken from lib/link.c.
20936         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
20937         Reported by Rainer Tammer.
20938
20939 2010-07-31  Bruno Haible  <bruno@clisp.org>
20940
20941         Correctly determine whether pow is available in libc on AIX 7 with xlc.
20942         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
20943         This disables an xlc optimization that was causing wrong test results.
20944         Reported by Rainer Tammer.
20945
20946 2010-07-31  Bruno Haible  <bruno@clisp.org>
20947
20948         iconv: Work around AIX 6.1..7.1 bug.
20949         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
20950         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
20951         cross-compiling, guess no on all versions of AIX.
20952         Reported by Rainer Tammer.
20953
20954 2010-07-31  Bruno Haible  <bruno@clisp.org>
20955
20956         readlink: Relax test a bit.
20957         * tests/test-readlink.h (test_readlink): Allow different errno value
20958         when readlink is called with a file name that ends in / and refers to
20959         a file.
20960         Suggested by Eric Blake.
20961         Reported by Rainer Tammer.
20962
20963 2010-07-31  Bruno Haible  <bruno@clisp.org>
20964
20965         copysign: Does not require -lm on glibc systems.
20966         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
20967         gl_COMMON_DOUBLE_MATHFUNC.
20968         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
20969
20970 2010-07-31  Bruno Haible  <bruno@clisp.org>
20971
20972         duplocale: Work around AIX 7.1 bug.
20973         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
20974         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
20975         * lib/duplocale.c (rpl_duplocale): Update comment.
20976         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
20977         Reported by Rainer Tammer.
20978
20979 2010-07-30  Bruno Haible  <bruno@clisp.org>
20980
20981         dirfd: Avoid link error on AIX 7.1.
20982         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
20983         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
20984         exist, set REPLACE_DIRFD.
20985         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
20986         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
20987         * doc/posix-functions/dirfd.texi: Update.
20988         Reported by Rainer Tammer.
20989
20990 2010-07-30  Eric Blake  <eblake@redhat.com>
20991
20992         strtod: next round of AIX fixes
20993         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
20994         exponent.
20995         * tests/test-strtod.c (main): Enhance tests.
20996         * doc/posix-functions/strtod.texi (strtod): Document next bug.
20997         Reported by Rainer Tammer.
20998
20999         futimens: fix configure check
21000         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
21001         Reported by Bruno Haible.
21002
21003 2010-07-30  Bruno Haible  <bruno@clisp.org>
21004
21005         getline: Update regarding AIX.
21006         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
21007         Reported by Rainer Tammer.
21008
21009 2010-07-30  Bruno Haible  <bruno@clisp.org>
21010
21011         wcwidth: Drop replacement on AIX 7.
21012         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
21013         AIX 7.
21014         Reported by Rainer Tammer.
21015
21016 2010-07-30  Bruno Haible  <bruno@clisp.org>
21017
21018         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
21019         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
21020         a 'char *'.
21021         Reported by Rainer Tammer.
21022
21023 2010-07-30  Bruno Haible  <bruno@clisp.org>
21024
21025         unlink: Update regarding AIX.
21026         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
21027         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
21028         Reported by Rainer Tammer.
21029
21030 2010-07-30  Bruno Haible  <bruno@clisp.org>
21031
21032         symlink: Update regarding AIX.
21033         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
21034         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
21035         Reported by Rainer Tammer.
21036
21037 2010-07-30  Bruno Haible  <bruno@clisp.org>
21038
21039         strndup: Update regarding AIX.
21040         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
21041         AIX 7.
21042         Reported by Rainer Tammer.
21043
21044 2010-07-30  Bruno Haible  <bruno@clisp.org>
21045
21046         stat: Update regarding AIX.
21047         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
21048         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
21049         Reported by Rainer Tammer.
21050
21051 2010-07-30  Bruno Haible  <bruno@clisp.org>
21052
21053         truncl: Fix autoconf test.
21054         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
21055         whether truncl works.
21056         Reported by Rainer Tammer.
21057
21058 2010-07-30  Bruno Haible  <bruno@clisp.org>
21059
21060         round: Update regarding AIX.
21061         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
21062         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
21063         Reported by Rainer Tammer.
21064
21065 2010-07-30  Bruno Haible  <bruno@clisp.org>
21066
21067         rename: Update regarding AIX.
21068         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
21069         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
21070         Reported by Rainer Tammer.
21071
21072 2010-07-30  Bruno Haible  <bruno@clisp.org>
21073
21074         printf.m4: Update regarding AIX.
21075         * m4/printf.m4: Update comments regarding AIX.
21076         Reported by Rainer Tammer.
21077
21078 2010-07-30  Bruno Haible  <bruno@clisp.org>
21079
21080         iconv: Update regarding AIX.
21081         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
21082         AIX 7.
21083         Reported by Rainer Tammer.
21084
21085 2010-07-30  Bruno Haible  <bruno@clisp.org>
21086
21087         getopt: Update regarding AIX.
21088         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
21089         no on AIX.
21090         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
21091         Reported by Rainer Tammer.
21092
21093 2010-07-30  Bruno Haible  <bruno@clisp.org>
21094
21095         ldexpl; Update regarding AIX.
21096         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
21097         on AIX 7.
21098         Reported by Rainer Tammer.
21099
21100 2010-07-30  Bruno Haible  <bruno@clisp.org>
21101
21102         frexpl: Update regarding AIX.
21103         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
21104         on AIX 7.
21105         Reported by Rainer Tammer.
21106
21107 2010-07-30  Bruno Haible  <bruno@clisp.org>
21108
21109         open, fopen: Update regarding AIX.
21110         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
21111         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
21112         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
21113         * doc/posix-functions/fopen.texi: Likewise.
21114         Reported by Rainer Tammer.
21115
21116 2010-07-30  Bruno Haible  <bruno@clisp.org>
21117
21118         chown: Update doc regarding AIX.
21119         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
21120         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
21121         Reported by Rainer Tammer.
21122
21123 2010-07-30  Eric Blake  <eblake@redhat.com>
21124
21125         strtod: fix bug in replacement function on AIX
21126         * lib/strtod.c (strtod): Special case broken "0x" parse in
21127         underlying strtod.
21128         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
21129         * doc/posix-functions/strtod.texi (strtod): Likewise.
21130         Reported by Rainer Tammer.
21131
21132 2010-07-30  Bruno Haible  <bruno@clisp.org>
21133
21134         mbrlen: Fix cross-compilation guess for AIX.
21135         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
21136         guess. Leftover from 2008-12-22.
21137
21138 2010-07-30  Bruno Haible  <bruno@clisp.org>
21139
21140         mbrtowc: Fix cross-compilation guess for AIX.
21141         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
21142         guess. Leftover from 2008-12-21.
21143
21144 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
21145
21146         init.sh: work around trap limitation of some shells
21147         * tests/init.sh (setup_): Move exit trap outside of shell function.
21148
21149 2010-07-29  Eric Blake  <eblake@redhat.com>
21150
21151         strtod: aid debugging
21152         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
21153         understanding why strtod is rejected.
21154
21155 2010-07-28  Bruno Haible  <bruno@clisp.org>
21156
21157         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
21158         * lib/unistr/u8-chr.c: Include <string.h>.
21159         * tests/unistr/test-u8-chr.c: Likewise.
21160         * tests/unistr/test-u16-chr.c: Likewise.
21161         * tests/unistr/test-u32-chr.c: Likewise.
21162         * tests/unistr/test-u8-strchr.c: Likewise.
21163         * tests/unistr/test-u16-strchr.c: Likewise.
21164         * tests/unistr/test-u32-strchr.c: Likewise.
21165         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
21166         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
21167         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
21168         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
21169
21170 2010-07-28  Bruno Haible  <bruno@clisp.org>
21171
21172         Use spaces for indentation, not tabs.
21173         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
21174
21175 2010-07-27  Bruno Haible  <bruno@clisp.org>
21176
21177         mbspcasecmp: Fix function specification.
21178         * lib/string.in.h (mbspcasecmp): Fix specification comment.
21179         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
21180         Reported by Eric Blake <eblake@redhat.com>.
21181
21182 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
21183
21184         timespec: use cast and not conditional, as truncation isn't possible
21185         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
21186         instead of a conditional.  Comment about the situation in more detail.
21187         This undoes most of the 2009-10-29 patch.
21188
21189 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
21190
21191         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
21192         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
21193         * lib/unistr/u8-strchr.c: Likewise.
21194         * modules/unistr/u8-chr: Depend on memchr.
21195
21196         unistr/u*-strchr: add tests
21197         * modules/unistr/u8-strchr-tests: New file.
21198         * modules/unistr/u16-strchr-tests: New file.
21199         * modules/unistr/u32-strchr-tests: New file.
21200         * tests/unistr/test-strchr.h: New file.
21201         * tests/unistr/test-u8-strchr.c: New file.
21202         * tests/unistr/test-u16-strchr.c: New file.
21203         * tests/unistr/test-u32-strchr.c: New file.
21204
21205         unistr/u*-chr: test multibyte sequences more
21206         * tests/unistr/test-chr.h: Do complete testing of the characters in the
21207         test vector.
21208         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
21209         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
21210         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
21211
21212         unistr/u*-chr: test multibyte sequences
21213         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
21214
21215         unistr/u*-chr: prepare for multibyte tests
21216         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
21217         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
21218         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
21219         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
21220         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
21221         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
21222
21223 2010-07-18  Bruno Haible  <bruno@clisp.org>
21224
21225         unistr/u8-strchr: Optimize non-ASCII argument case.
21226         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
21227         because the first byte often matches anyway.
21228         Reported by Pádraig Brady <P@draigbrady.com>.
21229
21230 2010-07-15  Karl Berry  <karl@gnu.org>
21231
21232         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
21233
21234 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
21235
21236         getcwd: on Solaris, work better if ancestors are inaccessible
21237         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
21238         buffer and size, try again with a large buffer.  This works better
21239         on Solaris, since its getcwd succeeds even if the path to the root
21240         is inaccessible, and this is helpful in common cases such as .zfs
21241         hidden directories.  Problem reported by J Chapman Flack in
21242         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
21243         Use system getcwd if it's declared, not merely if it's partly
21244         working; use the partly-working test only to avoid needless effort
21245         if the system getcwd fails.
21246         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
21247         comment that was already obsolete and is now even more obsolete.
21248         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
21249         now might call strdup.
21250
21251 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
21252
21253         pthread: Add enough so that coreutils/src/sort.c compiles.
21254         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
21255         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
21256         gnulib. Include <sched.h> and <time.h>, as per POSIX.
21257         Include <sys/types.h>, in case it defines pthread_t.
21258         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
21259         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
21260         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
21261         (pthread_rwlockattr_t, pthread_spinlock_t):
21262         New typedefs, if HAVE_PTHREAD_T is not defined.
21263         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
21264         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
21265         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
21266         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
21267         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
21268         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
21269         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
21270         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
21271         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
21272         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
21273         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
21274         New macros.
21275         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
21276         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
21277         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
21278         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
21279         (pthread_spin_unlock): New dummy functions.
21280         (pthread_create): Return EAGAIN; don't set errno.
21281         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
21282         require AC_C_INLINE.
21283         * modules/pthread (Depends-on): Add sched, time.
21284         (pthread.h): Use AM_V_GEN.
21285
21286 2010-07-13  Bruno Haible  <bruno@clisp.org>
21287
21288         striconveh: Don't malloc memory if the result buffer is sufficient.
21289         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
21290         buffer if its size is sufficient.
21291         Reported by Ludovic Courtès <ludo@gnu.org>.
21292
21293 2010-07-13  Bruno Haible  <bruno@clisp.org>
21294
21295         strtod: Add safety check.
21296         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
21297
21298 2010-07-12  Bruno Haible  <bruno@clisp.org>
21299
21300         Unify tests that set gl_cv_func_ldexpl_no_libm.
21301         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
21302         gl_FUNC_LDEXPL.
21303         (gl_FUNC_LDEXPL): Invoke it.
21304         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
21305
21306 2010-07-12  Bruno Haible  <bruno@clisp.org>
21307
21308         Unify tests that set gl_cv_func_ldexp_no_libm.
21309         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
21310         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
21311         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
21312         (configure.ac): Simply invoke gl_FUNC_LDEXP.
21313         * modules/strtod (Files): Add m4/ldexp.m4.
21314
21315 2010-07-12  Bruno Haible  <bruno@clisp.org>
21316
21317         Unify tests that set gl_cv_func_frexpl_no_libm.
21318         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
21319         gl_FUNC_FREXPL_NO_LIBM.
21320         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
21321         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
21322
21323 2010-07-12  Bruno Haible  <bruno@clisp.org>
21324
21325         Unify tests that set gl_cv_func_frexp_no_libm.
21326         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
21327         gl_FUNC_FREXP_NO_LIBM.
21328         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
21329         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
21330
21331 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
21332
21333         memcoll: clarify sizes versus lengths, document better, and tweak perf
21334         * lib/memcoll.c (strcoll_loop, memcoll0):
21335         Improve quality of descriptive comments.  Name variables
21336         consistently as to whether they are lengths (which do not include
21337         terminating null) versus sizes (which do).
21338         * lib/xmemcoll.c (xmemcoll0): Likewise.
21339         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
21340         returned when s1size == 0; this is easier to compile and saves
21341         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
21342
21343 2010-07-12  Bruno Haible  <bruno@clisp.org>
21344
21345         Tests for module '_Exit'.
21346         * modules/_Exit-tests: New file.
21347         * tests/test-_Exit.sh: New file.
21348         * tests/test-_Exit.c: New file.
21349
21350         New module '_Exit'.
21351         * lib/stdlib.in.h (__attribute__): New macro.
21352         (_Exit): New declaration.
21353         * lib/_Exit.c: New file.
21354         * m4/_Exit.m4: New file.
21355         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
21356         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
21357         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
21358         * modules/_Exit: New file.
21359         * tests/test-stdlib-c++.cc (_Exit): Check signature.
21360         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
21361
21362 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
21363
21364         strtod: make it more-accurate typically, and don't require libm
21365         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
21366         Include limits.h.  Don't include string.h.
21367         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
21368         (locale_isspace): New function, so that no casts are needed to
21369         check whether *s is a space.
21370         (ldexp): Provide an unused dummy if not available.
21371         (scale_radix_exp, parse_number, underlying_strtod): New functions.
21372         (strtod): Use them.  This implementation prefers to use the
21373         underlying strtod if available, falling back on our own code
21374         only to fix known bugs.  This is more likely to produce an
21375         accurate result.  Also, it avoids the use of libm functions.
21376         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
21377         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
21378         was absent, but it caused a test failure with coreutils.
21379         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
21380         with libm.
21381         * modules/strtod (Makefile.am, Link): libm is no longer needed.
21382         * modules/strtod-tests (Makefile.am): Likewise.
21383
21384 2010-07-11  Pádraig Brady  <P@draigBrady.com>
21385             Bruno Haible  <bruno@clisp.org>
21386
21387         unistr/u8-strchr: Optimize ASCII argument case.
21388         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
21389
21390 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
21391
21392         (x)memcoll: minor tweaks
21393         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
21394         is after the type that it qualifies.
21395         (memcoll0): Likewise.
21396         * lib/memcoll.h (memcoll0): Likewise.
21397         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
21398         * lib/xmemcoll.h (xmemcoll0): Likewise.
21399         * lib/memcoll.c (memcoll0): Correct the comment.  This function
21400         differs from memcoll in that the NUL byte is part of the argument.
21401         Omit the abort-checks, as performance is a real issue here.  Plus,
21402         the checks were wrong anyway (an off-by-one error).  Omit local
21403         variable 'diff', as it's a bit clearer that way.
21404         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
21405         no longer needed.
21406
21407 2010-07-08  Chen Guo <chenguo4@yahoo.com>
21408
21409         (x)memcoll: speedup when input is known to be NUL delimited
21410         * lib/memcoll.c: Include stdlib.
21411         (memcoll0): New function.
21412         (strcoll_loop): New function, refactored for use in both memcoll
21413         and memcoll0.
21414         * lib/memcoll.h (memcoll0): Add prototype.
21415         * lib/xmemcoll.c (xmemcoll0): New function.
21416         (collate_error): New function, refactored for use in both xmemcoll
21417         and xmemcoll0.
21418         * lib/xmemcoll.h (xmemcoll0): Add prototype.
21419         * m4/memcoll.m4: add inline invocation.
21420
21421 2010-07-06  Pádraig Brady  <P@draigBrady.com>
21422
21423         * build-aux/bootstrap: Remove any local translations
21424         from the translation project synchronization directory,
21425         so that local only translations are not distributed.
21426
21427 2010-07-04  Bruno Haible  <bruno@clisp.org>
21428
21429         fsusage: Clarify which code applies to which platforms.
21430         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
21431         platform.
21432         * lib/fsusage.c (get_fs_usage): Likewise.
21433
21434 2010-07-04  Bruno Haible  <bruno@clisp.org>
21435
21436         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
21437         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
21438         Reported by Martin Lambers <marlam@marlam.de>.
21439
21440 2010-07-04  Jim Meyering  <meyering@redhat.com>
21441
21442         hash: once again explicitly disallow insertion of NULL
21443         * lib/hash.c (hash_insert0): Reinstate just-removed test:
21444         inserting a NULL pointer cannot work with these functions.
21445         Add a comment with details.
21446         This reverts part of the 2010-07-01 commit, 5bef1a35
21447         "hash: extend module to deal with non-pointer keys".
21448
21449 2010-07-01  Bruno Haible  <bruno@clisp.org>
21450
21451         stdbool: Update doc.
21452         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
21453         Info from Christian Weisgerber <naddy@mips.inka.de>.
21454
21455 2010-07-01  Jim Meyering  <meyering@redhat.com>
21456
21457         hash: extend module to deal with non-pointer keys
21458         * lib/hash.c (hash_insert0): New interface, much like hash_insert
21459         but that allows insertion of non-pointer entries.
21460         Do not disallow an ENTRY value of NULL.
21461         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
21462         * lib/hash.h (hash_insert0): Declare.
21463
21464 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
21465
21466         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
21467         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
21468         not present (i.e. with autoconf 2.59 and when using gettextize, not
21469         gnulib), require AC_GNU_SOURCE instead.
21470
21471 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
21472
21473         idpriv-drop: Fix tests.
21474         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
21475         not to the test-idpriv-droptemp program.
21476
21477 2010-06-29  Bruno Haible  <bruno@clisp.org>
21478
21479         string: Fix syntax error with g++ 2.96.
21480         * lib/string.in.h (__pure__): Remove definition.
21481         (_GL_ATTRIBUTE_PURE): New macro.
21482         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
21483         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
21484         Reported by Christian Weisgerber <naddy@mips.inka.de>.
21485
21486 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
21487
21488         unitypes: Fix bug introduced on 2010-05-18.
21489         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
21490
21491 2010-06-22  Eric Blake  <eblake@redhat.com>
21492
21493         memmem: slight optimization
21494         * lib/str-two-way.h (critical_factorization): Update comments.
21495         Reduce work during factorization phase.
21496         Reported by Carlos Bueno <carlos@bueno.org>.
21497
21498 2010-06-21  Bruno Haible  <bruno@clisp.org>
21499
21500         Fix HAVE_CALLOC_POSIX misnomer.
21501         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
21502         !HAVE_CALLOC_POSIX.
21503         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
21504         HAVE_CALLOC_POSIX.
21505         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
21506         instead of HAVE_CALLOC_POSIX.
21507         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
21508         HAVE_CALLOC_POSIX.
21509
21510         Use modern idiom for calloc() replacement.
21511         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
21512         AC_FUNC_CALLOC.
21513         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
21514         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
21515         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
21516         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
21517         (gl_REPLACE_CALLOC): New macro.
21518
21519 2010-06-21  Bruno Haible  <bruno@clisp.org>
21520
21521         Fix HAVE_REALLOC_POSIX misnomer.
21522         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
21523         !HAVE_REALLOC_POSIX.
21524         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
21525         HAVE_REALLOC_POSIX.
21526         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
21527         instead of HAVE_REALLOC_POSIX.
21528         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
21529         HAVE_REALLOC_POSIX.
21530
21531         Use modern idiom for realloc() replacement.
21532         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
21533         AC_FUNC_REALLOC.
21534         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
21535         Autoconf's AC_FUNC_REALLOC.
21536         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
21537         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
21538         (gl_REPLACE_REALLOC): New macro.
21539         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
21540
21541 2010-06-21  Bruno Haible  <bruno@clisp.org>
21542
21543         Fix HAVE_MALLOC_POSIX misnomer.
21544         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
21545         !HAVE_MALLOC_POSIX.
21546         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
21547         HAVE_MALLOC_POSIX.
21548         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
21549         instead of HAVE_MALLOC_POSIX.
21550         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
21551         HAVE_MALLOC_POSIX.
21552
21553         Use modern idiom for malloc() replacement.
21554         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
21555         AC_FUNC_MALLOC.
21556         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
21557         Autoconf's AC_FUNC_MALLOC.
21558         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
21559         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
21560         (gl_REPLACE_MALLOC): New macro.
21561         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
21562
21563 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
21564
21565         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
21566         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
21567         This macro takes 3 arguments, not 4.
21568
21569 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
21570
21571         ipv6: fix detection under mingw
21572         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
21573         in6_addr.
21574
21575 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
21576
21577         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
21578         that strtod() works when cross-compiling to a glibc version known
21579         to work.
21580
21581 2010-06-15  Bruno Haible  <bruno@clisp.org>
21582
21583         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
21584
21585 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
21586
21587         select: Correct timeout.
21588         * lib/select.c (rpl_select): Compute wait_timeout correctly.
21589
21590 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
21591
21592         git-version-gen: init shell var to avoid env var influence
21593         * build-aux/git-version-gen (v): Init shell var to empty.
21594
21595 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
21596
21597         priv-set: Don't assume that priv.h exists merely because getppriv does.
21598         See Jan Andersen's bug report about AIX 5L in
21599         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
21600         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
21601         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
21602         * lib/priv-set.h: Likewise.
21603         * tests/test-priv-set.c: Likewise.
21604
21605 2010-06-13  Bruno Haible  <bruno@clisp.org>
21606
21607         relocatable: Make it easier to test whether to install wrappers.
21608         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
21609         RELOCATABLE_VIA_WRAPPER.
21610
21611 2010-06-13  Bruno Haible  <bruno@clisp.org>
21612
21613         gnulib-tool: Display specified modules and dependencies differently.
21614         * gnulib-tool (func_show_module_list): New function.
21615         (func_import, func_create_testdir): Invoke it.
21616         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
21617
21618 2010-06-13  Bruno Haible  <bruno@clisp.org>
21619
21620         gnulib-tool: Align code of func_import and func_create_testdir.
21621         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
21622         specified_modules.
21623
21624 2010-06-12  Jim Meyering  <meyering@redhat.com>
21625
21626         test-inttostr: avoid spurious failure on Solaris 9
21627         * tests/test-inttostr.c (main): Skip the test when snprintf fails
21628         to accept "%ju".  Reported by Bruno Haible.
21629
21630 2010-06-11  Jim Meyering  <meyering@redhat.com>
21631
21632         test-sys_socket: mark variables as used more readably
21633         * tests/test-sys_socket.c (main): Mark otherwise unused variables
21634         as "used" explicitly via (void) statement casts.  This is more
21635         readable than using them in an artificial return expression.
21636         Suggestion from Bruno Haible.
21637
21638 2010-06-11  Bruno Haible  <bruno@clisp.org>
21639
21640         Avoid some more warnings from "gcc -Wwrite-strings".
21641         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
21642         to 'const char *'.
21643         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
21644         * tests/test-c-strcasestr.c (main): Likewise.
21645         * tests/test-mbscasestr1.c (main): Likewise.
21646         * tests/test-mbscasestr2.c (main): Likewise.
21647         * tests/test-memmem.c (main): Likewise.
21648         * tests/test-strstr.c (main): Likewise.
21649         * tests/test-strcasestr.c (main): Likewise.
21650
21651 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21652
21653         init.sh: change framework_failure_ to fail with status 99, not 1
21654         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
21655         automake's parallel-tests rule that this is an unexpected failure,
21656         even if the test is listed in XFAIL_TESTS.
21657
21658 2010-06-11  Jim Meyering  <meyering@redhat.com>
21659
21660         test-inttostr: avoid warnings about 4-6KB literal strings
21661         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
21662         Include "macros.h", for its definition of ASSERT.
21663         (CK): s/assert/ASSERT/
21664         * modules/inttostr-tests (Files): Add macros.h.
21665
21666         init.sh: don't use $ME_ or skip_ before they are defined
21667         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
21668         their first uses.  Also hoist their companions: warn_, fail_,
21669         framework_failure_, $stderr_fileno.  Prompted by a patch from
21670         Stefano Lattarini.
21671
21672         test-sys_socket: avoid set-but-not-used warnings from gcc
21673         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
21674         avoid warning about set-but-not-used variables.
21675
21676         test-xvasprintf: avoid 'const' discard warnings
21677         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
21678         "const" when assigning from literal strings.
21679         (test_xasprintf): Add "void" in function argument list to placate
21680         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
21681
21682         tests: avoid compilation warnings in argmatch and exclude tests...
21683         in packages that define ARGMATCH_DIE_DECL, like coreutils.
21684         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
21685         Since it always exits, declare with the "noreturn" attribute.
21686         * tests/test-argmatch.c: Likewise.
21687
21688         tests: avoid 'const' discard warnings in mbsstr tests
21689         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
21690         * tests/test-mbsstr2.c (main): Likewise.
21691
21692         test-verify: avoid warning from gcc's -Wmissing-declarations
21693         * tests/test-verify.c (function): Declare to be static.
21694
21695         test-inttostr.c: include <string.h> for use of strcmp
21696         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
21697
21698         test-linkat: avoid failed assertion on "other" architectures
21699         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
21700         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
21701         sparc: https://bugs.launchpad.net/bugs/591968
21702
21703 2010-06-11  Jim Meyering  <meyering@redhat.com>
21704
21705         printf.m4: avoid autoconf's "Expanded Before Required" warning
21706         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
21707         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
21708         autoconf warning.
21709
21710 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
21711
21712         Replacement header templates are now named with ".in", not "_".
21713         * doc/gnulib-intro.texi: Correct.
21714
21715 2010-06-10  Jim Meyering  <meyering@redhat.com>
21716
21717         inttostr-tests: depend on snprintf, not snprintf-posix
21718         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
21719         snprintf-posix, to avoid this aclocal failure:
21720           missing file gnulib-tests/vasnprintf.c
21721           configure.ac:45: error: expected source file, required through \
21722           AC_LIBSOURCES, not found
21723
21724 2010-06-10  Jim Meyering  <meyering@redhat.com>
21725
21726         inttostr: add a new function, inttostr, and tests
21727         The namesake function was not available.  The existence of the
21728         template file, inttostr.c makes its addition nontrivial.
21729         * lib/anytostr.c: Rename from inttostr.c.
21730         (anytostr): Rename from inttostr.
21731         * lib/inttostr.c: New file.
21732         * modules/inttostr (Files): Add anytostr.c.
21733         (Makefile.am): Set lib_SOURCES instead of ...
21734         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
21735         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
21736         * lib/offtostr.c: Likewise.
21737         * lib/uinttostr.c: Likewise.
21738         * lib/umaxtostr.c: Likewise.
21739         * modules/inttostr-tests: New file.
21740         * tests/test-inttostr.c: New file.  Test these functions.
21741
21742 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
21743             Bruno Haible  <bruno@clisp.org>
21744
21745         Add "Extending Gnulib" chapter to manual.
21746         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
21747         chapter.
21748         (Extending Gnulib): New chapter.
21749         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
21750         chapter.
21751
21752 2010-06-09  Bruno Haible  <bruno@clisp.org>
21753
21754         Avoid relocwrapper link errors due to gnulib replacement functions.
21755         * lib/areadlink.c: Use the system's malloc, realloc functions.
21756         (areadlink): Set errno to ENOMEM explicitly.
21757         * modules/areadlink (Depends-on): Remove malloc-posix.
21758         Reported by Ben Pfaff <blp@cs.stanford.edu>.
21759
21760 2010-06-09  Bruno Haible  <bruno@clisp.org>
21761
21762         Avoid relocwrapper link errors due to gnulib replacement functions.
21763         * lib/canonicalize-lgpl.c: Use the system's malloc function.
21764         * lib/malloca.c: Likewise.
21765         * lib/relocatable.c: Likewise.
21766         * lib/progreloc.c: Use the system's malloc, sprintf functions.
21767         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
21768         * lib/setenv.c: Use the system's malloc, realloc functions.
21769         * lib/strerror.c: Use the system's sprintf function.
21770         Reported by Ben Pfaff <blp@cs.stanford.edu>.
21771
21772 2010-06-04  Bruno Haible  <bruno@clisp.org>
21773
21774         Prefer documented low-level autoconf macro names.
21775         * m4/lib-link.m4: Use m4_translit instead of translit.
21776         * m4/environ.m4: Likewise.
21777         * m4/mathfunc.m4: Likewise.
21778         * m4/onceonly.m4: Likewise.
21779         * m4/stdint.m4: Likewise.
21780         Suggested by Eric Blake.
21781
21782 2010-06-04  Martin Lambers  <marlam@marlam.de>
21783             Bruno Haible  <bruno@clisp.org>
21784
21785         havelib: Allow library names with '+' characters.
21786         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
21787         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
21788
21789 2010-06-09  Bruno Haible  <bruno@clisp.org>
21790
21791         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
21792         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
21793         realloc failed.
21794
21795 2010-06-08  Peter Simons  <simons@cryp.to>
21796
21797         maint.mk: make the news-check rule more configurable
21798         * top/maint.mk (news-check-lines-spec): New variable.
21799         (news-check): Use "sed -n 1,10p" in place of "head".
21800
21801 2010-06-07  Jim Meyering  <meyering@redhat.com>
21802
21803         do-release-commit-and-tag: fix typo in --help
21804         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
21805
21806         regex: avoid new dead-code warning with gcc-4.6.0
21807         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
21808         if-block containing a while-loop.  It's been unused for at least
21809         5 years.
21810
21811 2010-06-05  Bruno Haible  <bruno@clisp.org>
21812
21813         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
21814         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
21815
21816 2010-06-04  Bruno Haible  <bruno@clisp.org>
21817
21818         Update to GNU gettext 0.18.1.
21819         * modules/gettext (configure.ac): Require gettext infrastructure from
21820         version 0.18.1.
21821
21822 2010-06-03  Bruno Haible  <bruno@clisp.org>
21823
21824         Don't use AC_LIBOBJ with file names in subdirectories.
21825         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
21826         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
21827         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
21828         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
21829         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
21830         gl_LIBUNISTRING_LIBSOURCE.
21831         (Makefile.am): Augment lib_SOURCES here, conditionally.
21832         * NEWS: Drop requirement for Automake option 'subdir-objects'.
21833
21834 2010-06-03  Bruno Haible  <bruno@clisp.org>
21835
21836         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
21837         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
21838         expansion does not end with a newline.
21839         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
21840         unnecessary newline.
21841
21842 2010-06-03  Bruno Haible  <bruno@clisp.org>
21843
21844         Reduce dependencies.
21845         * tests/test-quotearg.h: New file, extracted from
21846         tests/test-quotearg.c.
21847         * tests/test-quotearg-simple.c: New file, extracted from
21848         tests/test-quotearg.c.
21849         * tests/test-quotearg.c: Don't include <ctype.h>.
21850         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
21851         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
21852         use_quote_double_quotes, use_quotearg_colon): Moved to
21853         tests/test-quotearg.h.
21854         (results_g, flag_results, custom_quotes, custom_results): Moved
21855         to tests/test-quotearg-simple.c.
21856         (main): Moved the part that does not depend on gettext to
21857         tests/test-quotearg-simple.c. Return 77 if the test cannot be
21858         performed.
21859         * modules/quotearg-simple: New file.
21860         * modules/quotearg-simple-tests: New file.
21861         * modules/quotearg (Depends-on): Add quotearg-simple.
21862         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
21863         (Files): Add tests/test-quotearg.h.
21864         Reported by Paolo Bonzini.
21865
21866 2010-06-03  Bruno Haible  <bruno@clisp.org>
21867
21868         Reduce dependencies.
21869         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
21870
21871 2010-06-03  Bruno Haible  <bruno@clisp.org>
21872
21873         time: Undefine more broken macros.
21874         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
21875         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
21876         Reported by Eric Blake.
21877
21878 2010-06-03  Bruno Haible  <bruno@clisp.org>
21879
21880         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
21881         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
21882         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
21883         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
21884         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
21885         Reported by Ludovic Courtès <ludo@gnu.org>.
21886
21887 2010-06-02  Eric Blake  <eblake@redhat.com>
21888
21889         time: work with mingw + pthreads-win32 library
21890         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
21891         if timespec is defined only in pthread.h.
21892         * modules/time (Makefile.am): Substitute it.
21893         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
21894         <pthread.h>, when needed.
21895         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
21896         from the library.
21897
21898 2010-05-31  Bruno Haible  <bruno@clisp.org>
21899
21900         Avoid expanding two macros in the wrong order.
21901         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
21902         gl_LIBUNISTRING if it is defined.
21903         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
21904         autoconf >= 2.64.
21905         Reported by Ludovic Courtès <ludo@gnu.org>.
21906
21907 2010-05-27  Jim Meyering  <meyering@redhat.com>
21908
21909         maint.mk: also prohibit "#undef" of always-defined symbols
21910         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
21911         Allow more than one space before the symbol name.
21912         (sc_prohibit_always-defined_macros): Use grep's -E, now that
21913         the regexp uses alternation.
21914
21915 2010-05-26  Eric Blake  <eblake@redhat.com>
21916
21917         maint.mk: avoid echo -e
21918         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
21919         Convert all uses of echo -* to printf.
21920         Reported by Matthias Bolte.
21921
21922 2010-05-25  Bruno Haible  <bruno@clisp.org>
21923
21924         Update to GNU gettext 0.18, part 2.
21925         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
21926         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
21927
21928 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21929
21930         Add missing include in test-pwrite.c.
21931         * tests/test-pwrite.c: Include string.h, for strcmp.
21932
21933 2010-05-24  Bruno Haible  <bruno@clisp.org>
21934
21935         * NEWS: Mention requirement for Automake option 'subdir-objects'.
21936
21937 2010-05-24  Bruno Haible  <bruno@clisp.org>
21938
21939         Don't use conversion with transliteration in u{8,16,32}_strcoll.
21940         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
21941         iconveh_error argument.
21942         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
21943         U_STRCONV_TO_LOCALE.
21944         * lib/unistr/u16-strcoll.c: Likewise.
21945         * lib/unistr/u32-strcoll.c: Likewise.
21946         * modules/unistr/u8-strcoll (Depends-on): Add
21947         uniconv/u8-strconv-to-enc, localcharset. Remove
21948         uniconv/u8-strconv-to-locale.
21949         (configure.ac): Bump version number.
21950         * modules/unistr/u16-strcoll (Depends-on): Add
21951         uniconv/u16-strconv-to-enc, localcharset. Remove
21952         uniconv/u16-strconv-to-locale.
21953         (configure.ac): Bump version number.
21954         * modules/unistr/u32-strcoll (Depends-on): Add
21955         uniconv/u32-strconv-to-enc, localcharset. Remove
21956         uniconv/u32-strconv-to-locale.
21957         (configure.ac): Bump version number.
21958
21959 2010-05-24  Bruno Haible  <bruno@clisp.org>
21960
21961         Avoid a test failure on NetBSD 5.0.
21962         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
21963         an iconv() bug.
21964
21965 2010-05-24  Bruno Haible  <bruno@clisp.org>
21966
21967         Adjust #include directive style.
21968         * modules/regex (Includes): Recommend to write <regex.h>.
21969
21970 2010-05-24  Bruno Haible  <bruno@clisp.org>
21971
21972         regex: Don't require alloca.
21973         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
21974         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
21975         only inside if (0).
21976
21977 2010-05-23  Jim Meyering  <meyering@redhat.com>
21978
21979         test-renameat.c: include <sys/stat.h>
21980         * tests/test-renameat.c: Include <sys/stat.h>; required for
21981         definition of S_IS* macros.
21982
21983 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
21984
21985         Update maintainer documentation for 'relocatable-prog' module.
21986         * doc/relocatable-maint.texi: Update.
21987         Comments by Bruno Haible.
21988
21989 2010-05-23  Bruno Haible  <bruno@clisp.org>
21990
21991         git-merge-changelog: Enable --split-merged-entry by default.
21992         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
21993         (usage): Don't mention this option any more.
21994         Reported by Ralf Wildenhues.
21995
21996 2010-05-23  Jim Meyering  <meyering@redhat.com>
21997
21998         test-pwrite: do not leave behind a test file named "out"
21999         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
22000         The trivial-looking use of init.sh is really necessary.
22001         It ensures that the temporary file, "out", is created in
22002         a temporary directory, and removed upon termination.
22003         * tests/test-pwrite.sh: Re-add file.
22004         * modules/pwrite-tests: Reference it.
22005
22006 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22007
22008         Fix output redirection buglet in init.sh.
22009         * tests/init.sh: Fix redirection of stderr.
22010
22011 2010-05-20  Simon Josefsson  <simon@josefsson.org>
22012
22013         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
22014
22015 2010-05-17  Simon Josefsson  <simon@josefsson.org>
22016
22017         * modules/valgrind-tests: New file.
22018         * m4/valgrind-tests.m4: New file.
22019         * doc/valgrind-tests.texi: New file.
22020         * doc/gnulib.texi (Running self-tests under valgrind): New
22021         section.
22022
22023 2010-05-19  Bruno Haible  <bruno@clisp.org>
22024
22025         Clean up dead code in recent commit.
22026         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
22027         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
22028         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
22029         Suggested by Paolo Bonzini.
22030
22031 2010-05-19  Bruno Haible  <bruno@clisp.org>
22032
22033         Avoid valgrind error reports from libunistring.
22034         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
22035         * modules/libunistring (Files): Add it.
22036         * modules/libunistring-optional (Files): Likewise.
22037
22038 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
22039             Bruno Haible  <bruno@clisp.org>
22040
22041         New module 'libunistring-optional'.
22042         * modules/libunistring-optional: New file.
22043         * m4/libunistring-base.m4: New file.
22044         * m4/libunistring-optional.m4: New file.
22045         * lib/unicase.in.h: Renamed from lib/unicase.h.
22046         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
22047         * lib/unictype.in.h: Renamed from lib/unictype.h.
22048         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
22049         * lib/uniname.in.h: Renamed from lib/uniname.h.
22050         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
22051         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
22052         * lib/unistr.in.h: Renamed from lib/unistr.h.
22053         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
22054         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
22055         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
22056         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
22057         gl_LIBUNISTRING. If the library was found, determine the installed
22058         version and set LIBUNISTRING_VERSION.
22059         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
22060         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
22061         handle a configuration option --with-included-libunistring.
22062         * modules/libunistring (Files): Add m4/absolute-header.m4.
22063         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
22064         Add m4/libunistring-base.m4.
22065         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22066         (Makefile.am): Build unicase.h from unicase.in.h.
22067         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
22068         Add m4/libunistring-base.m4.
22069         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22070         (Makefile.am): Build uniconv.h from uniconv.in.h.
22071         * modules/unictype/base (Files): Use unictype.in.h instead of
22072         unictype.h. Add m4/libunistring-base.m4.
22073         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22074         (Makefile.am): Build unictype.h from unictype.in.h.
22075         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
22076         Add m4/libunistring-base.m4.
22077         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22078         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
22079         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
22080         Add m4/libunistring-base.m4.
22081         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22082         (Makefile.am): Build uniname.h from uniname.in.h.
22083         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
22084         Add m4/libunistring-base.m4.
22085         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22086         (Makefile.am): Build uninorm.h from uninorm.in.h.
22087         * modules/unistdio/base (Files): Use unistdio.in.h instead of
22088         unistdio.h. Add m4/libunistring-base.m4.
22089         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22090         (Makefile.am): Build unistdio.h from unistdio.in.h.
22091         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
22092         Add m4/libunistring-base.m4.
22093         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22094         (Makefile.am): Build unistr.h from unistr.in.h.
22095         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
22096         Add m4/libunistring-base.m4.
22097         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22098         (Makefile.am): Build unitypes.h from unitypes.in.h.
22099         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
22100         Add m4/libunistring-base.m4.
22101         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22102         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
22103         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
22104         uniwidth.h. Add m4/libunistring-base.m4.
22105         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22106         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
22107         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
22108         instead of augmenting lib_SOURCES.
22109         * modules/unicase/empty-suffix-context: Likewise.
22110         * modules/unicase/locale-language: Likewise.
22111         * modules/unicase/tolower: Likewise.
22112         * modules/unicase/totitle: Likewise.
22113         * modules/unicase/toupper: Likewise.
22114         * modules/unicase/u8-casecmp: Likewise.
22115         * modules/unicase/u8-casecoll: Likewise.
22116         * modules/unicase/u8-casefold: Likewise.
22117         * modules/unicase/u8-casexfrm: Likewise.
22118         * modules/unicase/u8-ct-casefold: Likewise.
22119         * modules/unicase/u8-ct-tolower: Likewise.
22120         * modules/unicase/u8-ct-totitle: Likewise.
22121         * modules/unicase/u8-ct-toupper: Likewise.
22122         * modules/unicase/u8-is-cased: Likewise.
22123         * modules/unicase/u8-is-casefolded: Likewise.
22124         * modules/unicase/u8-is-lowercase: Likewise.
22125         * modules/unicase/u8-is-titlecase: Likewise.
22126         * modules/unicase/u8-is-uppercase: Likewise.
22127         * modules/unicase/u8-prefix-context: Likewise.
22128         * modules/unicase/u8-suffix-context: Likewise.
22129         * modules/unicase/u8-tolower: Likewise.
22130         * modules/unicase/u8-totitle: Likewise.
22131         * modules/unicase/u8-toupper: Likewise.
22132         * modules/unicase/u16-casecmp: Likewise.
22133         * modules/unicase/u16-casecoll: Likewise.
22134         * modules/unicase/u16-casefold: Likewise.
22135         * modules/unicase/u16-casexfrm: Likewise.
22136         * modules/unicase/u16-ct-casefold: Likewise.
22137         * modules/unicase/u16-ct-tolower: Likewise.
22138         * modules/unicase/u16-ct-totitle: Likewise.
22139         * modules/unicase/u16-ct-toupper: Likewise.
22140         * modules/unicase/u16-is-cased: Likewise.
22141         * modules/unicase/u16-is-casefolded: Likewise.
22142         * modules/unicase/u16-is-lowercase: Likewise.
22143         * modules/unicase/u16-is-titlecase: Likewise.
22144         * modules/unicase/u16-is-uppercase: Likewise.
22145         * modules/unicase/u16-prefix-context: Likewise.
22146         * modules/unicase/u16-suffix-context: Likewise.
22147         * modules/unicase/u16-tolower: Likewise.
22148         * modules/unicase/u16-totitle: Likewise.
22149         * modules/unicase/u16-toupper: Likewise.
22150         * modules/unicase/u32-casecmp: Likewise.
22151         * modules/unicase/u32-casecoll: Likewise.
22152         * modules/unicase/u32-casefold: Likewise.
22153         * modules/unicase/u32-casexfrm: Likewise.
22154         * modules/unicase/u32-ct-casefold: Likewise.
22155         * modules/unicase/u32-ct-tolower: Likewise.
22156         * modules/unicase/u32-ct-totitle: Likewise.
22157         * modules/unicase/u32-ct-toupper: Likewise.
22158         * modules/unicase/u32-is-cased: Likewise.
22159         * modules/unicase/u32-is-casefolded: Likewise.
22160         * modules/unicase/u32-is-lowercase: Likewise.
22161         * modules/unicase/u32-is-titlecase: Likewise.
22162         * modules/unicase/u32-is-uppercase: Likewise.
22163         * modules/unicase/u32-prefix-context: Likewise.
22164         * modules/unicase/u32-suffix-context: Likewise.
22165         * modules/unicase/u32-tolower: Likewise.
22166         * modules/unicase/u32-totitle: Likewise.
22167         * modules/unicase/u32-toupper: Likewise.
22168         * modules/unicase/ulc-casecmp: Likewise.
22169         * modules/unicase/ulc-casecoll: Likewise.
22170         * modules/unicase/ulc-casexfrm: Likewise.
22171         * modules/uniconv/u8-conv-from-enc: Likewise.
22172         * modules/uniconv/u8-conv-to-enc: Likewise.
22173         * modules/uniconv/u8-strconv-from-enc: Likewise.
22174         * modules/uniconv/u8-strconv-from-locale: Likewise.
22175         * modules/uniconv/u8-strconv-to-enc: Likewise.
22176         * modules/uniconv/u8-strconv-to-locale: Likewise.
22177         * modules/uniconv/u16-conv-from-enc: Likewise.
22178         * modules/uniconv/u16-conv-to-enc: Likewise.
22179         * modules/uniconv/u16-strconv-from-enc: Likewise.
22180         * modules/uniconv/u16-strconv-from-locale: Likewise.
22181         * modules/uniconv/u16-strconv-to-enc: Likewise.
22182         * modules/uniconv/u16-strconv-to-locale: Likewise.
22183         * modules/uniconv/u32-conv-from-enc: Likewise.
22184         * modules/uniconv/u32-conv-to-enc: Likewise.
22185         * modules/uniconv/u32-strconv-from-enc: Likewise.
22186         * modules/uniconv/u32-strconv-from-locale: Likewise.
22187         * modules/uniconv/u32-strconv-to-enc: Likewise.
22188         * modules/uniconv/u32-strconv-to-locale: Likewise.
22189         * modules/unictype/bidicategory-byname: Likewise.
22190         * modules/unictype/bidicategory-name: Likewise.
22191         * modules/unictype/bidicategory-of: Likewise.
22192         * modules/unictype/bidicategory-test: Likewise.
22193         * modules/unictype/block-list: Likewise.
22194         * modules/unictype/block-test: Likewise.
22195         * modules/unictype/category-C: Likewise.
22196         * modules/unictype/category-Cc: Likewise.
22197         * modules/unictype/category-Cf: Likewise.
22198         * modules/unictype/category-Cn: Likewise.
22199         * modules/unictype/category-Co: Likewise.
22200         * modules/unictype/category-Cs: Likewise.
22201         * modules/unictype/category-L: Likewise.
22202         * modules/unictype/category-Ll: Likewise.
22203         * modules/unictype/category-Lm: Likewise.
22204         * modules/unictype/category-Lo: Likewise.
22205         * modules/unictype/category-Lt: Likewise.
22206         * modules/unictype/category-Lu: Likewise.
22207         * modules/unictype/category-M: Likewise.
22208         * modules/unictype/category-Mc: Likewise.
22209         * modules/unictype/category-Me: Likewise.
22210         * modules/unictype/category-Mn: Likewise.
22211         * modules/unictype/category-N: Likewise.
22212         * modules/unictype/category-Nd: Likewise.
22213         * modules/unictype/category-Nl: Likewise.
22214         * modules/unictype/category-No: Likewise.
22215         * modules/unictype/category-P: Likewise.
22216         * modules/unictype/category-Pc: Likewise.
22217         * modules/unictype/category-Pd: Likewise.
22218         * modules/unictype/category-Pe: Likewise.
22219         * modules/unictype/category-Pf: Likewise.
22220         * modules/unictype/category-Pi: Likewise.
22221         * modules/unictype/category-Po: Likewise.
22222         * modules/unictype/category-Ps: Likewise.
22223         * modules/unictype/category-S: Likewise.
22224         * modules/unictype/category-Sc: Likewise.
22225         * modules/unictype/category-Sk: Likewise.
22226         * modules/unictype/category-Sm: Likewise.
22227         * modules/unictype/category-So: Likewise.
22228         * modules/unictype/category-Z: Likewise.
22229         * modules/unictype/category-Zl: Likewise.
22230         * modules/unictype/category-Zp: Likewise.
22231         * modules/unictype/category-Zs: Likewise.
22232         * modules/unictype/category-and: Likewise.
22233         * modules/unictype/category-and-not: Likewise.
22234         * modules/unictype/category-byname: Likewise.
22235         * modules/unictype/category-name: Likewise.
22236         * modules/unictype/category-none: Likewise.
22237         * modules/unictype/category-of: Likewise.
22238         * modules/unictype/category-or: Likewise.
22239         * modules/unictype/category-test: Likewise.
22240         * modules/unictype/combining-class: Likewise.
22241         * modules/unictype/ctype-alnum: Likewise.
22242         * modules/unictype/ctype-alpha: Likewise.
22243         * modules/unictype/ctype-blank: Likewise.
22244         * modules/unictype/ctype-cntrl: Likewise.
22245         * modules/unictype/ctype-digit: Likewise.
22246         * modules/unictype/ctype-graph: Likewise.
22247         * modules/unictype/ctype-lower: Likewise.
22248         * modules/unictype/ctype-print: Likewise.
22249         * modules/unictype/ctype-punct: Likewise.
22250         * modules/unictype/ctype-space: Likewise.
22251         * modules/unictype/ctype-upper: Likewise.
22252         * modules/unictype/ctype-xdigit: Likewise.
22253         * modules/unictype/decimal-digit: Likewise.
22254         * modules/unictype/digit: Likewise.
22255         * modules/unictype/mirror: Likewise.
22256         * modules/unictype/numeric: Likewise.
22257         * modules/unictype/property-alphabetic: Likewise.
22258         * modules/unictype/property-ascii-hex-digit: Likewise.
22259         * modules/unictype/property-bidi-arabic-digit: Likewise.
22260         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
22261         * modules/unictype/property-bidi-block-separator: Likewise.
22262         * modules/unictype/property-bidi-boundary-neutral: Likewise.
22263         * modules/unictype/property-bidi-common-separator: Likewise.
22264         * modules/unictype/property-bidi-control: Likewise.
22265         * modules/unictype/property-bidi-embedding-or-override: Likewise.
22266         * modules/unictype/property-bidi-eur-num-separator: Likewise.
22267         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
22268         * modules/unictype/property-bidi-european-digit: Likewise.
22269         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
22270         * modules/unictype/property-bidi-left-to-right: Likewise.
22271         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
22272         * modules/unictype/property-bidi-other-neutral: Likewise.
22273         * modules/unictype/property-bidi-pdf: Likewise.
22274         * modules/unictype/property-bidi-segment-separator: Likewise.
22275         * modules/unictype/property-bidi-whitespace: Likewise.
22276         * modules/unictype/property-byname: Likewise.
22277         * modules/unictype/property-combining: Likewise.
22278         * modules/unictype/property-composite: Likewise.
22279         * modules/unictype/property-currency-symbol: Likewise.
22280         * modules/unictype/property-dash: Likewise.
22281         * modules/unictype/property-decimal-digit: Likewise.
22282         * modules/unictype/property-default-ignorable-code-point: Likewise.
22283         * modules/unictype/property-deprecated: Likewise.
22284         * modules/unictype/property-diacritic: Likewise.
22285         * modules/unictype/property-extender: Likewise.
22286         * modules/unictype/property-format-control: Likewise.
22287         * modules/unictype/property-grapheme-base: Likewise.
22288         * modules/unictype/property-grapheme-extend: Likewise.
22289         * modules/unictype/property-grapheme-link: Likewise.
22290         * modules/unictype/property-hex-digit: Likewise.
22291         * modules/unictype/property-hyphen: Likewise.
22292         * modules/unictype/property-id-continue: Likewise.
22293         * modules/unictype/property-id-start: Likewise.
22294         * modules/unictype/property-ideographic: Likewise.
22295         * modules/unictype/property-ids-binary-operator: Likewise.
22296         * modules/unictype/property-ids-trinary-operator: Likewise.
22297         * modules/unictype/property-ignorable-control: Likewise.
22298         * modules/unictype/property-iso-control: Likewise.
22299         * modules/unictype/property-join-control: Likewise.
22300         * modules/unictype/property-left-of-pair: Likewise.
22301         * modules/unictype/property-line-separator: Likewise.
22302         * modules/unictype/property-logical-order-exception: Likewise.
22303         * modules/unictype/property-lowercase: Likewise.
22304         * modules/unictype/property-math: Likewise.
22305         * modules/unictype/property-non-break: Likewise.
22306         * modules/unictype/property-not-a-character: Likewise.
22307         * modules/unictype/property-numeric: Likewise.
22308         * modules/unictype/property-other-alphabetic: Likewise.
22309         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
22310         * modules/unictype/property-other-grapheme-extend: Likewise.
22311         * modules/unictype/property-other-id-continue: Likewise.
22312         * modules/unictype/property-other-id-start: Likewise.
22313         * modules/unictype/property-other-lowercase: Likewise.
22314         * modules/unictype/property-other-math: Likewise.
22315         * modules/unictype/property-other-uppercase: Likewise.
22316         * modules/unictype/property-paired-punctuation: Likewise.
22317         * modules/unictype/property-paragraph-separator: Likewise.
22318         * modules/unictype/property-pattern-syntax: Likewise.
22319         * modules/unictype/property-pattern-white-space: Likewise.
22320         * modules/unictype/property-private-use: Likewise.
22321         * modules/unictype/property-punctuation: Likewise.
22322         * modules/unictype/property-quotation-mark: Likewise.
22323         * modules/unictype/property-radical: Likewise.
22324         * modules/unictype/property-sentence-terminal: Likewise.
22325         * modules/unictype/property-soft-dotted: Likewise.
22326         * modules/unictype/property-space: Likewise.
22327         * modules/unictype/property-terminal-punctuation: Likewise.
22328         * modules/unictype/property-test: Likewise.
22329         * modules/unictype/property-titlecase: Likewise.
22330         * modules/unictype/property-unassigned-code-value: Likewise.
22331         * modules/unictype/property-unified-ideograph: Likewise.
22332         * modules/unictype/property-uppercase: Likewise.
22333         * modules/unictype/property-variation-selector: Likewise.
22334         * modules/unictype/property-white-space: Likewise.
22335         * modules/unictype/property-xid-continue: Likewise.
22336         * modules/unictype/property-xid-start: Likewise.
22337         * modules/unictype/property-zero-width: Likewise.
22338         * modules/unictype/scripts: Likewise.
22339         * modules/unictype/syntax-c-ident: Likewise.
22340         * modules/unictype/syntax-c-whitespace: Likewise.
22341         * modules/unictype/syntax-java-ident: Likewise.
22342         * modules/unictype/syntax-java-whitespace: Likewise.
22343         * modules/unilbrk/u8-possible-linebreaks: Likewise.
22344         * modules/unilbrk/u8-width-linebreaks: Likewise.
22345         * modules/unilbrk/u16-possible-linebreaks: Likewise.
22346         * modules/unilbrk/u16-width-linebreaks: Likewise.
22347         * modules/unilbrk/u32-possible-linebreaks: Likewise.
22348         * modules/unilbrk/u32-width-linebreaks: Likewise.
22349         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
22350         * modules/unilbrk/ulc-width-linebreaks: Likewise.
22351         * modules/uniname/uniname: Likewise.
22352         * modules/uninorm/canonical-decomposition: Likewise.
22353         * modules/uninorm/composition: Likewise.
22354         * modules/uninorm/decomposing-form: Likewise.
22355         * modules/uninorm/decomposition: Likewise.
22356         * modules/uninorm/filter: Likewise.
22357         * modules/uninorm/nfc: Likewise.
22358         * modules/uninorm/nfd: Likewise.
22359         * modules/uninorm/nfkc: Likewise.
22360         * modules/uninorm/nfkd: Likewise.
22361         * modules/uninorm/u8-normalize: Likewise.
22362         * modules/uninorm/u8-normcmp: Likewise.
22363         * modules/uninorm/u8-normcoll: Likewise.
22364         * modules/uninorm/u8-normxfrm: Likewise.
22365         * modules/uninorm/u16-normalize: Likewise.
22366         * modules/uninorm/u16-normcmp: Likewise.
22367         * modules/uninorm/u16-normcoll: Likewise.
22368         * modules/uninorm/u16-normxfrm: Likewise.
22369         * modules/uninorm/u32-normalize: Likewise.
22370         * modules/uninorm/u32-normcmp: Likewise.
22371         * modules/uninorm/u32-normcoll: Likewise.
22372         * modules/uninorm/u32-normxfrm: Likewise.
22373         * modules/unistdio/u8-asnprintf: Likewise.
22374         * modules/unistdio/u8-asprintf: Likewise.
22375         * modules/unistdio/u8-snprintf: Likewise.
22376         * modules/unistdio/u8-sprintf: Likewise.
22377         * modules/unistdio/u8-u8-asnprintf: Likewise.
22378         * modules/unistdio/u8-u8-asprintf: Likewise.
22379         * modules/unistdio/u8-u8-snprintf: Likewise.
22380         * modules/unistdio/u8-u8-sprintf: Likewise.
22381         * modules/unistdio/u8-u8-vasnprintf: Likewise.
22382         * modules/unistdio/u8-u8-vasprintf: Likewise.
22383         * modules/unistdio/u8-u8-vsnprintf: Likewise.
22384         * modules/unistdio/u8-u8-vsprintf: Likewise.
22385         * modules/unistdio/u8-vasnprintf: Likewise.
22386         * modules/unistdio/u8-vasprintf: Likewise.
22387         * modules/unistdio/u8-vsnprintf: Likewise.
22388         * modules/unistdio/u8-vsprintf: Likewise.
22389         * modules/unistdio/u16-asnprintf: Likewise.
22390         * modules/unistdio/u16-asprintf: Likewise.
22391         * modules/unistdio/u16-snprintf: Likewise.
22392         * modules/unistdio/u16-sprintf: Likewise.
22393         * modules/unistdio/u16-u16-asnprintf: Likewise.
22394         * modules/unistdio/u16-u16-asprintf: Likewise.
22395         * modules/unistdio/u16-u16-snprintf: Likewise.
22396         * modules/unistdio/u16-u16-sprintf: Likewise.
22397         * modules/unistdio/u16-u16-vasnprintf: Likewise.
22398         * modules/unistdio/u16-u16-vasprintf: Likewise.
22399         * modules/unistdio/u16-u16-vsnprintf: Likewise.
22400         * modules/unistdio/u16-u16-vsprintf: Likewise.
22401         * modules/unistdio/u16-vasnprintf: Likewise.
22402         * modules/unistdio/u16-vasprintf: Likewise.
22403         * modules/unistdio/u16-vsnprintf: Likewise.
22404         * modules/unistdio/u16-vsprintf: Likewise.
22405         * modules/unistdio/u32-asnprintf: Likewise.
22406         * modules/unistdio/u32-asprintf: Likewise.
22407         * modules/unistdio/u32-snprintf: Likewise.
22408         * modules/unistdio/u32-sprintf: Likewise.
22409         * modules/unistdio/u32-u32-asnprintf: Likewise.
22410         * modules/unistdio/u32-u32-asprintf: Likewise.
22411         * modules/unistdio/u32-u32-snprintf: Likewise.
22412         * modules/unistdio/u32-u32-sprintf: Likewise.
22413         * modules/unistdio/u32-u32-vasnprintf: Likewise.
22414         * modules/unistdio/u32-u32-vasprintf: Likewise.
22415         * modules/unistdio/u32-u32-vsnprintf: Likewise.
22416         * modules/unistdio/u32-u32-vsprintf: Likewise.
22417         * modules/unistdio/u32-vasnprintf: Likewise.
22418         * modules/unistdio/u32-vasprintf: Likewise.
22419         * modules/unistdio/u32-vsnprintf: Likewise.
22420         * modules/unistdio/u32-vsprintf: Likewise.
22421         * modules/unistdio/ulc-asnprintf: Likewise.
22422         * modules/unistdio/ulc-asprintf: Likewise.
22423         * modules/unistdio/ulc-fprintf: Likewise.
22424         * modules/unistdio/ulc-snprintf: Likewise.
22425         * modules/unistdio/ulc-sprintf: Likewise.
22426         * modules/unistdio/ulc-vasnprintf: Likewise.
22427         * modules/unistdio/ulc-vasprintf: Likewise.
22428         * modules/unistdio/ulc-vfprintf: Likewise.
22429         * modules/unistdio/ulc-vsnprintf: Likewise.
22430         * modules/unistdio/ulc-vsprintf: Likewise.
22431         * modules/unistr/u8-check: Likewise.
22432         * modules/unistr/u8-chr: Likewise.
22433         * modules/unistr/u8-cmp: Likewise.
22434         * modules/unistr/u8-cmp2: Likewise.
22435         * modules/unistr/u8-cpy: Likewise.
22436         * modules/unistr/u8-cpy-alloc: Likewise.
22437         * modules/unistr/u8-endswith: Likewise.
22438         * modules/unistr/u8-mblen: Likewise.
22439         * modules/unistr/u8-mbsnlen: Likewise.
22440         * modules/unistr/u8-mbtouc: Likewise.
22441         * modules/unistr/u8-mbtouc-unsafe: Likewise.
22442         * modules/unistr/u8-mbtoucr: Likewise.
22443         * modules/unistr/u8-move: Likewise.
22444         * modules/unistr/u8-next: Likewise.
22445         * modules/unistr/u8-prev: Likewise.
22446         * modules/unistr/u8-set: Likewise.
22447         * modules/unistr/u8-startswith: Likewise.
22448         * modules/unistr/u8-stpcpy: Likewise.
22449         * modules/unistr/u8-stpncpy: Likewise.
22450         * modules/unistr/u8-strcat: Likewise.
22451         * modules/unistr/u8-strchr: Likewise.
22452         * modules/unistr/u8-strcmp: Likewise.
22453         * modules/unistr/u8-strcoll: Likewise.
22454         * modules/unistr/u8-strcpy: Likewise.
22455         * modules/unistr/u8-strcspn: Likewise.
22456         * modules/unistr/u8-strdup: Likewise.
22457         * modules/unistr/u8-strlen: Likewise.
22458         * modules/unistr/u8-strmblen: Likewise.
22459         * modules/unistr/u8-strmbtouc: Likewise.
22460         * modules/unistr/u8-strncat: Likewise.
22461         * modules/unistr/u8-strncmp: Likewise.
22462         * modules/unistr/u8-strncpy: Likewise.
22463         * modules/unistr/u8-strnlen: Likewise.
22464         * modules/unistr/u8-strpbrk: Likewise.
22465         * modules/unistr/u8-strrchr: Likewise.
22466         * modules/unistr/u8-strspn: Likewise.
22467         * modules/unistr/u8-strstr: Likewise.
22468         * modules/unistr/u8-strtok: Likewise.
22469         * modules/unistr/u8-to-u16: Likewise.
22470         * modules/unistr/u8-to-u32: Likewise.
22471         * modules/unistr/u8-uctomb: Likewise.
22472         * modules/unistr/u16-check: Likewise.
22473         * modules/unistr/u16-chr: Likewise.
22474         * modules/unistr/u16-cmp: Likewise.
22475         * modules/unistr/u16-cmp2: Likewise.
22476         * modules/unistr/u16-cpy: Likewise.
22477         * modules/unistr/u16-cpy-alloc: Likewise.
22478         * modules/unistr/u16-endswith: Likewise.
22479         * modules/unistr/u16-mblen: Likewise.
22480         * modules/unistr/u16-mbsnlen: Likewise.
22481         * modules/unistr/u16-mbtouc: Likewise.
22482         * modules/unistr/u16-mbtouc-unsafe: Likewise.
22483         * modules/unistr/u16-mbtoucr: Likewise.
22484         * modules/unistr/u16-move: Likewise.
22485         * modules/unistr/u16-next: Likewise.
22486         * modules/unistr/u16-prev: Likewise.
22487         * modules/unistr/u16-set: Likewise.
22488         * modules/unistr/u16-startswith: Likewise.
22489         * modules/unistr/u16-stpcpy: Likewise.
22490         * modules/unistr/u16-stpncpy: Likewise.
22491         * modules/unistr/u16-strcat: Likewise.
22492         * modules/unistr/u16-strchr: Likewise.
22493         * modules/unistr/u16-strcmp: Likewise.
22494         * modules/unistr/u16-strcoll: Likewise.
22495         * modules/unistr/u16-strcpy: Likewise.
22496         * modules/unistr/u16-strcspn: Likewise.
22497         * modules/unistr/u16-strdup: Likewise.
22498         * modules/unistr/u16-strlen: Likewise.
22499         * modules/unistr/u16-strmblen: Likewise.
22500         * modules/unistr/u16-strmbtouc: Likewise.
22501         * modules/unistr/u16-strncat: Likewise.
22502         * modules/unistr/u16-strncmp: Likewise.
22503         * modules/unistr/u16-strncpy: Likewise.
22504         * modules/unistr/u16-strnlen: Likewise.
22505         * modules/unistr/u16-strpbrk: Likewise.
22506         * modules/unistr/u16-strrchr: Likewise.
22507         * modules/unistr/u16-strspn: Likewise.
22508         * modules/unistr/u16-strstr: Likewise.
22509         * modules/unistr/u16-strtok: Likewise.
22510         * modules/unistr/u16-to-u32: Likewise.
22511         * modules/unistr/u16-to-u8: Likewise.
22512         * modules/unistr/u16-uctomb: Likewise.
22513         * modules/unistr/u32-check: Likewise.
22514         * modules/unistr/u32-chr: Likewise.
22515         * modules/unistr/u32-cmp: Likewise.
22516         * modules/unistr/u32-cmp2: Likewise.
22517         * modules/unistr/u32-cpy: Likewise.
22518         * modules/unistr/u32-cpy-alloc: Likewise.
22519         * modules/unistr/u32-endswith: Likewise.
22520         * modules/unistr/u32-mblen: Likewise.
22521         * modules/unistr/u32-mbsnlen: Likewise.
22522         * modules/unistr/u32-mbtouc: Likewise.
22523         * modules/unistr/u32-mbtouc-unsafe: Likewise.
22524         * modules/unistr/u32-mbtoucr: Likewise.
22525         * modules/unistr/u32-move: Likewise.
22526         * modules/unistr/u32-next: Likewise.
22527         * modules/unistr/u32-prev: Likewise.
22528         * modules/unistr/u32-set: Likewise.
22529         * modules/unistr/u32-startswith: Likewise.
22530         * modules/unistr/u32-stpcpy: Likewise.
22531         * modules/unistr/u32-stpncpy: Likewise.
22532         * modules/unistr/u32-strcat: Likewise.
22533         * modules/unistr/u32-strchr: Likewise.
22534         * modules/unistr/u32-strcmp: Likewise.
22535         * modules/unistr/u32-strcoll: Likewise.
22536         * modules/unistr/u32-strcpy: Likewise.
22537         * modules/unistr/u32-strcspn: Likewise.
22538         * modules/unistr/u32-strdup: Likewise.
22539         * modules/unistr/u32-strlen: Likewise.
22540         * modules/unistr/u32-strmblen: Likewise.
22541         * modules/unistr/u32-strmbtouc: Likewise.
22542         * modules/unistr/u32-strncat: Likewise.
22543         * modules/unistr/u32-strncmp: Likewise.
22544         * modules/unistr/u32-strncpy: Likewise.
22545         * modules/unistr/u32-strnlen: Likewise.
22546         * modules/unistr/u32-strpbrk: Likewise.
22547         * modules/unistr/u32-strrchr: Likewise.
22548         * modules/unistr/u32-strspn: Likewise.
22549         * modules/unistr/u32-strstr: Likewise.
22550         * modules/unistr/u32-strtok: Likewise.
22551         * modules/unistr/u32-to-u16: Likewise.
22552         * modules/unistr/u32-to-u8: Likewise.
22553         * modules/unistr/u32-uctomb: Likewise.
22554         * modules/uniwbrk/u8-wordbreaks: Likewise.
22555         * modules/uniwbrk/u16-wordbreaks: Likewise.
22556         * modules/uniwbrk/u32-wordbreaks: Likewise.
22557         * modules/uniwbrk/ulc-wordbreaks: Likewise.
22558         * modules/uniwbrk/wordbreak-property: Likewise.
22559         * modules/uniwidth/u8-strwidth: Likewise.
22560         * modules/uniwidth/u8-width: Likewise.
22561         * modules/uniwidth/u16-strwidth: Likewise.
22562         * modules/uniwidth/u16-width: Likewise.
22563         * modules/uniwidth/u32-strwidth: Likewise.
22564         * modules/uniwidth/u32-width: Likewise.
22565         * modules/uniwidth/width: Likewise.
22566         * modules/unicase/cased-tests (Makefile.am): Link all test programs
22567         with $(LIBUNISTRING).
22568         * modules/unicase/ignorable-tests: Likewise.
22569         * modules/unicase/locale-language-tests: Likewise.
22570         * modules/unicase/tolower-tests: Likewise.
22571         * modules/unicase/totitle-tests: Likewise.
22572         * modules/unicase/toupper-tests: Likewise.
22573         * modules/unicase/u8-casecmp-tests: Likewise.
22574         * modules/unicase/u8-casecoll-tests: Likewise.
22575         * modules/unicase/u8-casefold-tests: Likewise.
22576         * modules/unicase/u8-is-cased-tests: Likewise.
22577         * modules/unicase/u8-is-casefolded-tests: Likewise.
22578         * modules/unicase/u8-is-lowercase-tests: Likewise.
22579         * modules/unicase/u8-is-titlecase-tests: Likewise.
22580         * modules/unicase/u8-is-uppercase-tests: Likewise.
22581         * modules/unicase/u8-tolower-tests: Likewise.
22582         * modules/unicase/u8-totitle-tests: Likewise.
22583         * modules/unicase/u8-toupper-tests: Likewise.
22584         * modules/unicase/u16-casecmp-tests: Likewise.
22585         * modules/unicase/u16-casecoll-tests: Likewise.
22586         * modules/unicase/u16-casefold-tests: Likewise.
22587         * modules/unicase/u16-is-cased-tests: Likewise.
22588         * modules/unicase/u16-is-casefolded-tests: Likewise.
22589         * modules/unicase/u16-is-lowercase-tests: Likewise.
22590         * modules/unicase/u16-is-titlecase-tests: Likewise.
22591         * modules/unicase/u16-is-uppercase-tests: Likewise.
22592         * modules/unicase/u16-tolower-tests: Likewise.
22593         * modules/unicase/u16-totitle-tests: Likewise.
22594         * modules/unicase/u16-toupper-tests: Likewise.
22595         * modules/unicase/u32-casecmp-tests: Likewise.
22596         * modules/unicase/u32-casecoll-tests: Likewise.
22597         * modules/unicase/u32-casefold-tests: Likewise.
22598         * modules/unicase/u32-is-cased-tests: Likewise.
22599         * modules/unicase/u32-is-casefolded-tests: Likewise.
22600         * modules/unicase/u32-is-lowercase-tests: Likewise.
22601         * modules/unicase/u32-is-titlecase-tests: Likewise.
22602         * modules/unicase/u32-is-uppercase-tests: Likewise.
22603         * modules/unicase/u32-tolower-tests: Likewise.
22604         * modules/unicase/u32-totitle-tests: Likewise.
22605         * modules/unicase/u32-toupper-tests: Likewise.
22606         * modules/unicase/ulc-casecmp-tests: Likewise.
22607         * modules/unicase/ulc-casecoll-tests: Likewise.
22608         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
22609         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
22610         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
22611         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
22612         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
22613         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
22614         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
22615         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
22616         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
22617         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
22618         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
22619         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
22620         * modules/unictype/bidicategory-byname-tests: Likewise.
22621         * modules/unictype/bidicategory-name-tests: Likewise.
22622         * modules/unictype/bidicategory-of-tests: Likewise.
22623         * modules/unictype/bidicategory-test-tests: Likewise.
22624         * modules/unictype/block-list-tests: Likewise.
22625         * modules/unictype/block-of-tests: Likewise.
22626         * modules/unictype/block-test-tests: Likewise.
22627         * modules/unictype/category-C-tests: Likewise.
22628         * modules/unictype/category-Cc-tests: Likewise.
22629         * modules/unictype/category-Cf-tests: Likewise.
22630         * modules/unictype/category-Cn-tests: Likewise.
22631         * modules/unictype/category-Co-tests: Likewise.
22632         * modules/unictype/category-Cs-tests: Likewise.
22633         * modules/unictype/category-L-tests: Likewise.
22634         * modules/unictype/category-Ll-tests: Likewise.
22635         * modules/unictype/category-Lm-tests: Likewise.
22636         * modules/unictype/category-Lo-tests: Likewise.
22637         * modules/unictype/category-Lt-tests: Likewise.
22638         * modules/unictype/category-Lu-tests: Likewise.
22639         * modules/unictype/category-M-tests: Likewise.
22640         * modules/unictype/category-Mc-tests: Likewise.
22641         * modules/unictype/category-Me-tests: Likewise.
22642         * modules/unictype/category-Mn-tests: Likewise.
22643         * modules/unictype/category-N-tests: Likewise.
22644         * modules/unictype/category-Nd-tests: Likewise.
22645         * modules/unictype/category-Nl-tests: Likewise.
22646         * modules/unictype/category-No-tests: Likewise.
22647         * modules/unictype/category-P-tests: Likewise.
22648         * modules/unictype/category-Pc-tests: Likewise.
22649         * modules/unictype/category-Pd-tests: Likewise.
22650         * modules/unictype/category-Pe-tests: Likewise.
22651         * modules/unictype/category-Pf-tests: Likewise.
22652         * modules/unictype/category-Pi-tests: Likewise.
22653         * modules/unictype/category-Po-tests: Likewise.
22654         * modules/unictype/category-Ps-tests: Likewise.
22655         * modules/unictype/category-S-tests: Likewise.
22656         * modules/unictype/category-Sc-tests: Likewise.
22657         * modules/unictype/category-Sk-tests: Likewise.
22658         * modules/unictype/category-Sm-tests: Likewise.
22659         * modules/unictype/category-So-tests: Likewise.
22660         * modules/unictype/category-Z-tests: Likewise.
22661         * modules/unictype/category-Zl-tests: Likewise.
22662         * modules/unictype/category-Zp-tests: Likewise.
22663         * modules/unictype/category-Zs-tests: Likewise.
22664         * modules/unictype/category-and-not-tests: Likewise.
22665         * modules/unictype/category-and-tests: Likewise.
22666         * modules/unictype/category-byname-tests: Likewise.
22667         * modules/unictype/category-name-tests: Likewise.
22668         * modules/unictype/category-none-tests: Likewise.
22669         * modules/unictype/category-of-tests: Likewise.
22670         * modules/unictype/category-or-tests: Likewise.
22671         * modules/unictype/category-test-withtable-tests: Likewise.
22672         * modules/unictype/combining-class-tests: Likewise.
22673         * modules/unictype/ctype-alnum-tests: Likewise.
22674         * modules/unictype/ctype-alpha-tests: Likewise.
22675         * modules/unictype/ctype-blank-tests: Likewise.
22676         * modules/unictype/ctype-cntrl-tests: Likewise.
22677         * modules/unictype/ctype-digit-tests: Likewise.
22678         * modules/unictype/ctype-graph-tests: Likewise.
22679         * modules/unictype/ctype-lower-tests: Likewise.
22680         * modules/unictype/ctype-print-tests: Likewise.
22681         * modules/unictype/ctype-punct-tests: Likewise.
22682         * modules/unictype/ctype-space-tests: Likewise.
22683         * modules/unictype/ctype-upper-tests: Likewise.
22684         * modules/unictype/ctype-xdigit-tests: Likewise.
22685         * modules/unictype/decimal-digit-tests: Likewise.
22686         * modules/unictype/digit-tests: Likewise.
22687         * modules/unictype/mirror-tests: Likewise.
22688         * modules/unictype/numeric-tests: Likewise.
22689         * modules/unictype/property-alphabetic-tests: Likewise.
22690         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
22691         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
22692         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
22693         * modules/unictype/property-bidi-block-separator-tests: Likewise.
22694         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
22695         * modules/unictype/property-bidi-common-separator-tests: Likewise.
22696         * modules/unictype/property-bidi-control-tests: Likewise.
22697         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
22698         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
22699         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
22700         * modules/unictype/property-bidi-european-digit-tests: Likewise.
22701         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
22702         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
22703         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
22704         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
22705         * modules/unictype/property-bidi-pdf-tests: Likewise.
22706         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
22707         * modules/unictype/property-bidi-whitespace-tests: Likewise.
22708         * modules/unictype/property-byname-tests: Likewise.
22709         * modules/unictype/property-combining-tests: Likewise.
22710         * modules/unictype/property-composite-tests: Likewise.
22711         * modules/unictype/property-currency-symbol-tests: Likewise.
22712         * modules/unictype/property-dash-tests: Likewise.
22713         * modules/unictype/property-decimal-digit-tests: Likewise.
22714         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
22715         * modules/unictype/property-deprecated-tests: Likewise.
22716         * modules/unictype/property-diacritic-tests: Likewise.
22717         * modules/unictype/property-extender-tests: Likewise.
22718         * modules/unictype/property-format-control-tests: Likewise.
22719         * modules/unictype/property-grapheme-base-tests: Likewise.
22720         * modules/unictype/property-grapheme-extend-tests: Likewise.
22721         * modules/unictype/property-grapheme-link-tests: Likewise.
22722         * modules/unictype/property-hex-digit-tests: Likewise.
22723         * modules/unictype/property-hyphen-tests: Likewise.
22724         * modules/unictype/property-id-continue-tests: Likewise.
22725         * modules/unictype/property-id-start-tests: Likewise.
22726         * modules/unictype/property-ideographic-tests: Likewise.
22727         * modules/unictype/property-ids-binary-operator-tests: Likewise.
22728         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
22729         * modules/unictype/property-ignorable-control-tests: Likewise.
22730         * modules/unictype/property-iso-control-tests: Likewise.
22731         * modules/unictype/property-join-control-tests: Likewise.
22732         * modules/unictype/property-left-of-pair-tests: Likewise.
22733         * modules/unictype/property-line-separator-tests: Likewise.
22734         * modules/unictype/property-logical-order-exception-tests: Likewise.
22735         * modules/unictype/property-lowercase-tests: Likewise.
22736         * modules/unictype/property-math-tests: Likewise.
22737         * modules/unictype/property-non-break-tests: Likewise.
22738         * modules/unictype/property-not-a-character-tests: Likewise.
22739         * modules/unictype/property-numeric-tests: Likewise.
22740         * modules/unictype/property-other-alphabetic-tests: Likewise.
22741         * modules/unictype/property-other-default-ignorable-code-point-tests:
22742         Likewise.
22743         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
22744         * modules/unictype/property-other-id-continue-tests: Likewise.
22745         * modules/unictype/property-other-id-start-tests: Likewise.
22746         * modules/unictype/property-other-lowercase-tests: Likewise.
22747         * modules/unictype/property-other-math-tests: Likewise.
22748         * modules/unictype/property-other-uppercase-tests: Likewise.
22749         * modules/unictype/property-paired-punctuation-tests: Likewise.
22750         * modules/unictype/property-paragraph-separator-tests: Likewise.
22751         * modules/unictype/property-pattern-syntax-tests: Likewise.
22752         * modules/unictype/property-pattern-white-space-tests: Likewise.
22753         * modules/unictype/property-private-use-tests: Likewise.
22754         * modules/unictype/property-punctuation-tests: Likewise.
22755         * modules/unictype/property-quotation-mark-tests: Likewise.
22756         * modules/unictype/property-radical-tests: Likewise.
22757         * modules/unictype/property-sentence-terminal-tests: Likewise.
22758         * modules/unictype/property-soft-dotted-tests: Likewise.
22759         * modules/unictype/property-space-tests: Likewise.
22760         * modules/unictype/property-terminal-punctuation-tests: Likewise.
22761         * modules/unictype/property-test-tests: Likewise.
22762         * modules/unictype/property-titlecase-tests: Likewise.
22763         * modules/unictype/property-unassigned-code-value-tests: Likewise.
22764         * modules/unictype/property-unified-ideograph-tests: Likewise.
22765         * modules/unictype/property-uppercase-tests: Likewise.
22766         * modules/unictype/property-variation-selector-tests: Likewise.
22767         * modules/unictype/property-white-space-tests: Likewise.
22768         * modules/unictype/property-xid-continue-tests: Likewise.
22769         * modules/unictype/property-xid-start-tests: Likewise.
22770         * modules/unictype/property-zero-width-tests: Likewise.
22771         * modules/unictype/scripts-tests: Likewise.
22772         * modules/unictype/syntax-c-ident-tests: Likewise.
22773         * modules/unictype/syntax-c-whitespace-tests: Likewise.
22774         * modules/unictype/syntax-java-ident-tests: Likewise.
22775         * modules/unictype/syntax-java-whitespace-tests: Likewise.
22776         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
22777         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
22778         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
22779         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
22780         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
22781         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
22782         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
22783         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
22784         * modules/uniname/uniname-tests: Likewise.
22785         * modules/uninorm/canonical-decomposition-tests: Likewise.
22786         * modules/uninorm/compat-decomposition-tests: Likewise.
22787         * modules/uninorm/composition-tests: Likewise.
22788         * modules/uninorm/decomposing-form-tests: Likewise.
22789         * modules/uninorm/decomposition-tests: Likewise.
22790         * modules/uninorm/filter-tests: Likewise.
22791         * modules/uninorm/nfc-tests: Likewise.
22792         * modules/uninorm/nfd-tests: Likewise.
22793         * modules/uninorm/nfkc-tests: Likewise.
22794         * modules/uninorm/nfkd-tests: Likewise.
22795         * modules/uninorm/u8-normcmp-tests: Likewise.
22796         * modules/uninorm/u8-normcoll-tests: Likewise.
22797         * modules/uninorm/u16-normcmp-tests: Likewise.
22798         * modules/uninorm/u16-normcoll-tests: Likewise.
22799         * modules/uninorm/u32-normcmp-tests: Likewise.
22800         * modules/uninorm/u32-normcoll-tests: Likewise.
22801         * modules/unistdio/u8-asnprintf-tests: Likewise.
22802         * modules/unistdio/u8-vasnprintf-tests: Likewise.
22803         * modules/unistdio/u8-vasprintf-tests: Likewise.
22804         * modules/unistdio/u8-vsnprintf-tests: Likewise.
22805         * modules/unistdio/u8-vsprintf-tests: Likewise.
22806         * modules/unistdio/u16-asnprintf-tests: Likewise.
22807         * modules/unistdio/u16-vasnprintf-tests: Likewise.
22808         * modules/unistdio/u16-vasprintf-tests: Likewise.
22809         * modules/unistdio/u16-vsnprintf-tests: Likewise.
22810         * modules/unistdio/u16-vsprintf-tests: Likewise.
22811         * modules/unistdio/u32-asnprintf-tests: Likewise.
22812         * modules/unistdio/u32-vasnprintf-tests: Likewise.
22813         * modules/unistdio/u32-vasprintf-tests: Likewise.
22814         * modules/unistdio/u32-vsnprintf-tests: Likewise.
22815         * modules/unistdio/u32-vsprintf-tests: Likewise.
22816         * modules/unistdio/ulc-asnprintf-tests: Likewise.
22817         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
22818         * modules/unistdio/ulc-vasprintf-tests: Likewise.
22819         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
22820         * modules/unistdio/ulc-vsprintf-tests: Likewise.
22821         * modules/unistr/u8-check-tests: Likewise.
22822         * modules/unistr/u8-chr-tests: Likewise.
22823         * modules/unistr/u8-cmp-tests: Likewise.
22824         * modules/unistr/u8-cmp2-tests: Likewise.
22825         * modules/unistr/u8-cpy-alloc-tests: Likewise.
22826         * modules/unistr/u8-cpy-tests: Likewise.
22827         * modules/unistr/u8-mblen-tests: Likewise.
22828         * modules/unistr/u8-mbsnlen-tests: Likewise.
22829         * modules/unistr/u8-mbtouc-tests: Likewise.
22830         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
22831         * modules/unistr/u8-mbtoucr-tests: Likewise.
22832         * modules/unistr/u8-move-tests: Likewise.
22833         * modules/unistr/u8-next-tests: Likewise.
22834         * modules/unistr/u8-prev-tests: Likewise.
22835         * modules/unistr/u8-set-tests: Likewise.
22836         * modules/unistr/u8-stpcpy-tests: Likewise.
22837         * modules/unistr/u8-stpncpy-tests: Likewise.
22838         * modules/unistr/u8-strcat-tests: Likewise.
22839         * modules/unistr/u8-strcmp-tests: Likewise.
22840         * modules/unistr/u8-strcoll-tests: Likewise.
22841         * modules/unistr/u8-strcpy-tests: Likewise.
22842         * modules/unistr/u8-strdup-tests: Likewise.
22843         * modules/unistr/u8-strlen-tests: Likewise.
22844         * modules/unistr/u8-strmblen-tests: Likewise.
22845         * modules/unistr/u8-strmbtouc-tests: Likewise.
22846         * modules/unistr/u8-strncat-tests: Likewise.
22847         * modules/unistr/u8-strncmp-tests: Likewise.
22848         * modules/unistr/u8-strncpy-tests: Likewise.
22849         * modules/unistr/u8-strnlen-tests: Likewise.
22850         * modules/unistr/u8-to-u16-tests: Likewise.
22851         * modules/unistr/u8-to-u32-tests: Likewise.
22852         * modules/unistr/u8-uctomb-tests: Likewise.
22853         * modules/unistr/u16-check-tests: Likewise.
22854         * modules/unistr/u16-chr-tests: Likewise.
22855         * modules/unistr/u16-cmp-tests: Likewise.
22856         * modules/unistr/u16-cmp2-tests: Likewise.
22857         * modules/unistr/u16-cpy-alloc-tests: Likewise.
22858         * modules/unistr/u16-cpy-tests: Likewise.
22859         * modules/unistr/u16-mblen-tests: Likewise.
22860         * modules/unistr/u16-mbsnlen-tests: Likewise.
22861         * modules/unistr/u16-mbtouc-tests: Likewise.
22862         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
22863         * modules/unistr/u16-mbtoucr-tests: Likewise.
22864         * modules/unistr/u16-move-tests: Likewise.
22865         * modules/unistr/u16-next-tests: Likewise.
22866         * modules/unistr/u16-prev-tests: Likewise.
22867         * modules/unistr/u16-set-tests: Likewise.
22868         * modules/unistr/u16-stpcpy-tests: Likewise.
22869         * modules/unistr/u16-stpncpy-tests: Likewise.
22870         * modules/unistr/u16-strcat-tests: Likewise.
22871         * modules/unistr/u16-strcmp-tests: Likewise.
22872         * modules/unistr/u16-strcoll-tests: Likewise.
22873         * modules/unistr/u16-strcpy-tests: Likewise.
22874         * modules/unistr/u16-strdup-tests: Likewise.
22875         * modules/unistr/u16-strlen-tests: Likewise.
22876         * modules/unistr/u16-strmblen-tests: Likewise.
22877         * modules/unistr/u16-strmbtouc-tests: Likewise.
22878         * modules/unistr/u16-strncat-tests: Likewise.
22879         * modules/unistr/u16-strncmp-tests: Likewise.
22880         * modules/unistr/u16-strncpy-tests: Likewise.
22881         * modules/unistr/u16-strnlen-tests: Likewise.
22882         * modules/unistr/u16-to-u32-tests: Likewise.
22883         * modules/unistr/u16-to-u8-tests: Likewise.
22884         * modules/unistr/u16-uctomb-tests: Likewise.
22885         * modules/unistr/u32-check-tests: Likewise.
22886         * modules/unistr/u32-chr-tests: Likewise.
22887         * modules/unistr/u32-cmp-tests: Likewise.
22888         * modules/unistr/u32-cmp2-tests: Likewise.
22889         * modules/unistr/u32-cpy-alloc-tests: Likewise.
22890         * modules/unistr/u32-cpy-tests: Likewise.
22891         * modules/unistr/u32-mblen-tests: Likewise.
22892         * modules/unistr/u32-mbsnlen-tests: Likewise.
22893         * modules/unistr/u32-mbtouc-tests: Likewise.
22894         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
22895         * modules/unistr/u32-mbtoucr-tests: Likewise.
22896         * modules/unistr/u32-move-tests: Likewise.
22897         * modules/unistr/u32-next-tests: Likewise.
22898         * modules/unistr/u32-prev-tests: Likewise.
22899         * modules/unistr/u32-set-tests: Likewise.
22900         * modules/unistr/u32-stpcpy-tests: Likewise.
22901         * modules/unistr/u32-stpncpy-tests: Likewise.
22902         * modules/unistr/u32-strcat-tests: Likewise.
22903         * modules/unistr/u32-strcmp-tests: Likewise.
22904         * modules/unistr/u32-strcoll-tests: Likewise.
22905         * modules/unistr/u32-strcpy-tests: Likewise.
22906         * modules/unistr/u32-strdup-tests: Likewise.
22907         * modules/unistr/u32-strlen-tests: Likewise.
22908         * modules/unistr/u32-strmblen-tests: Likewise.
22909         * modules/unistr/u32-strmbtouc-tests: Likewise.
22910         * modules/unistr/u32-strncat-tests: Likewise.
22911         * modules/unistr/u32-strncmp-tests: Likewise.
22912         * modules/unistr/u32-strncpy-tests: Likewise.
22913         * modules/unistr/u32-strnlen-tests: Likewise.
22914         * modules/unistr/u32-to-u16-tests: Likewise.
22915         * modules/unistr/u32-to-u8-tests: Likewise.
22916         * modules/unistr/u32-uctomb-tests: Likewise.
22917         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
22918         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
22919         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
22920         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
22921         * modules/uniwidth/u8-strwidth-tests: Likewise.
22922         * modules/uniwidth/u8-width-tests: Likewise.
22923         * modules/uniwidth/u16-strwidth-tests: Likewise.
22924         * modules/uniwidth/u16-width-tests: Likewise.
22925         * modules/uniwidth/u32-strwidth-tests: Likewise.
22926         * modules/uniwidth/u32-width-tests: Likewise.
22927         * modules/uniwidth/width-tests: Likewise.
22928
22929 2010-05-18  Richard Jones  <rjones@redhat.com>
22930
22931         doc: users.txt: list hivex
22932         * users.txt: Add hivex.
22933
22934 2010-05-18  Richard Jones  <rjones@redhat.com>
22935
22936         doc: users.txt: list febootstrap
22937         * users.txt: Add febootstrap.
22938
22939 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
22940
22941         bootstrap: fix an error when gnulib is not used as a git submodule
22942         * build-aux/bootstrap (gnulib_path): If its length is zero then
22943         assign "gnulib" to it.
22944         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
22945
22946 2010-05-16  Bruno Haible  <bruno@clisp.org>
22947
22948         Avoid autoconf warnings about AM_ICONV.
22949         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
22950         2.64.
22951
22952 2010-05-16  Bruno Haible  <bruno@clisp.org>
22953
22954         absolute-header: Make the macro usable in more situations.
22955         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
22956         from gl_ABSOLUTE_HEADER.
22957         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
22958
22959 2010-05-16  James Youngman  <jay@gnu.org>
22960
22961         doc: update users.txt
22962         * users.txt: Add CSSC.
22963
22964 2010-05-16  Jim Meyering  <meyering@redhat.com>
22965
22966         init.sh: fix an error in the previous change; add more comments
22967         * tests/init.sh: Compare exit code in loop against 9, not 2.
22968         Patch by Bruno Haible.
22969         Make the two tests more similar by adding an empty "then" clause.
22970         Add comments.
22971
22972         init.sh: avoid unnecessary shell re-exec
22973         * tests/init.sh: Improve the re-exec-required check to first test the
22974         current shell.  If it passes the test, do not search for a shell that
22975         does pass, and do not re-exec.  This test is particularly contorted to
22976         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
22977         of $(...) evokes a syntax error and causes immediate shell exit with
22978         status 2.  Bruno Haible reported that the re-exec made it impossible
22979         to single-step through any init.sh-using script.
22980
22981 2010-05-16  Bruno Haible  <bruno@clisp.org>
22982
22983         Fix collision between gnulib's and libintl's printf replacements.
22984         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
22985         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
22986         (printf): When using GNU C, map the __printf__ function to rpl_printf
22987         via __asm__. When not using GNU C, define rpl_printf instead of
22988         __printf__.
22989         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
22990         commit.
22991         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
22992         commit.
22993         * m4/asm-underscore.m4: New file.
22994         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
22995         * modules/stdio (Files): Add m4/asm-underscore.m4.
22996         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
22997         Reported by Ben Pfaff.
22998
22999 2010-05-16  Bruno Haible  <bruno@clisp.org>
23000
23001         verify: Avoid skipping the test on openSUSE 11.0.
23002         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
23003
23004 2010-05-13  Bruno Haible  <bruno@clisp.org>
23005
23006         Avoid useless warnings from G++.
23007         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
23008         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
23009         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
23010
23011 2010-05-11  Jim Meyering  <meyering@redhat.com>
23012
23013         maint.mk: tweak preceding change
23014         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
23015         regexps tighter by anchoring at EOL, and make the new group "shy"
23016         for slightly decreased overhead.
23017
23018 2010-05-11  Eric Blake  <eblake@redhat.com>
23019
23020         maint.mk: gnulib doesn't guarantee NSIG
23021         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
23022
23023 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
23024
23025         test-pwrite.c: Remove unused variable declaration.
23026         * tests/test-pwrite.c (main): Remove read_buf declaration.
23027
23028         Remove useless test-pwrite.sh file.
23029         * tests/test-pwrite.sh: Delete file.
23030         * modules/pwrite-tests: Remove references.
23031         Reported by Bruno Haible.
23032
23033 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
23034
23035         init.sh: fix a typo
23036         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
23037
23038 2010-05-10  Jim Meyering  <meyering@redhat.com>
23039
23040         maint.mk: avoid using a temporary file in the always-defined-macros check
23041         * top/maint.mk (.re-defmac): Remove rule.
23042         (gl_trap_): Remove definition.
23043         (sc_prohibit_always-defined_macros): Rewrite not to create and
23044         depend on a temporary file.  Instead, depend on GNU grep's ability
23045         to read a list of regular expressions from stdin when given "-f -".
23046
23047 2010-05-09  Bruno Haible  <bruno@clisp.org>
23048
23049         Update to GNU gettext 0.18, part 1.
23050         * m4/gettext.m4: Update to GNU gettext 0.18.
23051         * m4/intl.m4: Likewise.
23052         * m4/po.m4: Likewise.
23053         * modules/gettext (Files): Add m4/fcntl-o.m4.
23054         (configure.ac): Require gettext infrastructure from version 0.18.
23055
23056 2010-05-09  Jim Meyering  <meyering@redhat.com>
23057
23058         init.sh: enable MALLOC_PERTURB_
23059         * tests/init.sh: Enable glibc's malloc-perturbing option.
23060
23061         maint.mk: improve sc_cross_check_PATH_usage_in_tests
23062         With my recent change in init.sh from the two-line form:
23063             -#   : ${srcdir=.}
23064             -#   . "$srcdir/init.sh"; path_prepend_ .
23065             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
23066         I noticed that using the one-line form would cause this test
23067         to fail with a false-positive, or to stop working altogether,
23068         depending on whether help-version changed or all the tests did.
23069         * top/maint.mk (_hv_regex): Remove this definition.
23070         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
23071         (_hv_regex_strong): Use a stronger regex to check for conformance.
23072         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
23073         Give a separate diagnostic for lack of conforming use.
23074
23075         maint.mk: prohibit definition of symbols defined by gnulib
23076         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
23077         definition of symbols defined by gnulib.
23078
23079 2010-05-09  Bruno Haible  <bruno@clisp.org>
23080
23081         acl: Avoid test failure on Cygwin-hosted mingw.
23082         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
23083
23084 2010-05-09  Bruno Haible  <bruno@clisp.org>
23085
23086         error: Use system's fcntl function.
23087         * lib/error.c (fcntl): Undefine.
23088
23089 2010-05-09  Jim Meyering  <meyering@redhat.com>
23090
23091         verify: adjust formatting to be more consistent
23092         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
23093         argument-list '('s, and after one comma.
23094
23095 2010-05-09  Bruno Haible  <bruno@clisp.org>
23096
23097         error: More reliable output on mingw.
23098         * lib/error.c: Include <windows.h>.
23099         (is_open): New function.
23100         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
23101         defined.
23102
23103 2010-05-09  Bruno Haible  <bruno@clisp.org>
23104
23105         vasnprintf: Fix syntax errors in libintl build on mingw.
23106         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
23107         pad_ourselves and prec_ourselves after use.
23108
23109 2010-05-08  Bruno Haible  <bruno@clisp.org>
23110
23111         * lib/config.charset: Update comments for Cygwin 1.7.
23112         * lib/localcharset.c: Likewise.
23113
23114 2010-05-07  Jim Meyering  <meyering@redhat.com>
23115
23116         init.sh: improve comments
23117         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
23118         . "${srcdir=.}/init.sh"; path_prepend_ .
23119         Add a note about path_prepend_ and the alternative of using
23120         TESTS_ENVIRONMENT.
23121
23122 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
23123
23124         exclude: Unescape hashed patterns in wildcard mode.
23125         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
23126         to the hash list.
23127         * tests/test-exclude8.sh: New test case.
23128         * modules/exclude-tests: Add new test.
23129
23130 2010-05-05  Eric Blake  <eblake@redhat.com>
23131
23132         verify: automate tests
23133         * modules/verify-tests: New module.
23134         * tests/test-verify.sh: New file.
23135         * tests/test-verify.c: Guard each negative test with a unique id.
23136         Also avoid warning about unused left hand of comma expressions.
23137
23138 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
23139
23140         Further improvements to verify.h, suggested by Eric Blake.
23141         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
23142         the GL_* versions, to avoid collision with OpenGL.
23143         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
23144         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
23145         than testing merely whether it's defined.
23146
23147         Modify verify.h to pacify gcc -Wredundant_decls.
23148         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
23149         These use the prefix "GL_" since they're likely to be useful elsewhere.
23150         We may need to break them out into a different .h file.
23151         (__COUNTER__): Define to 0 if the compiler doesn't support it.
23152         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
23153         of verify_function__.
23154
23155 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
23156
23157         Tests for module pwrite.
23158         * modules/pwrite-tests: New file.
23159         * tests/test-pwrite.sh: New file.
23160         * tests/test-pwrite.c: New file.
23161
23162         New module pwrite.
23163         * lib/unistd.in.h (pwrite): New declaration.
23164         * lib/pwrite.c: New file, from glibc with modifications.
23165         * m4/pwrite.m4: New file.
23166         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
23167         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
23168         REPLACE_PWRITE.
23169         * modules/pwrite: New file.
23170         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
23171         REPLACE_PWRITE.
23172         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
23173         * doc/posix-functions/pwrite.texi: Mention the new module.
23174
23175 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
23176
23177         pread: Update documentation.
23178         * doc/posix-functions/pread.texi: Mention the 'pread' module.
23179
23180 2010-05-04  Eric Blake  <eblake@redhat.com>
23181
23182         docs: update cygwin progress
23183         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
23184         this bug.
23185         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
23186         Added in cygwin 1.7.2.
23187         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
23188         Likewise.
23189         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
23190         Likewise.
23191         * doc/glibc-functions/dup3.texi (dup3): Likewise.
23192         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
23193         * doc/glibc-functions/accept4.texi (accept4): Likewise.
23194         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
23195         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
23196         Mention nproc module.
23197         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
23198         bug in cygwin 1.7.5 addition.
23199         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
23200         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
23201         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
23202         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
23203         1.7.5.
23204         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
23205         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
23206         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
23207         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
23208         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
23209         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
23210         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
23211         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
23212         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
23213         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
23214         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
23215         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
23216         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
23217         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
23218         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
23219         Likewise.
23220         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
23221         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
23222         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
23223         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
23224         Likewise.
23225         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
23226         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
23227         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
23228         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
23229         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
23230         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
23231         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
23232         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
23233         Likewise.
23234         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
23235         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
23236         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
23237         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
23238         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
23239         Likewise.
23240         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
23241         Likewise.
23242         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
23243         Likewise.
23244         * doc/glibc-functions/xdrrec_endofrecord.texi
23245         (xdrrec_endofrecord): Likewise.
23246         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
23247         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
23248         Likewise.
23249         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
23250         Likewise.
23251
23252 2010-05-04  Jim Meyering  <meyering@redhat.com>
23253
23254         gendocs.sh: make its "-s FILE" option more useful
23255         * build-aux/gendocs.sh: When honoring the -s FILE option, update
23256         $PACKAGE to reflect the probably-different basename of "FILE".
23257
23258 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
23259
23260         bootstrap: don't ignore download_po_files failure
23261         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
23262         failure.
23263
23264 2010-05-03  Jim Meyering  <meyering@redhat.com>
23265
23266         maint.mk: allow to pass options to gendocs.sh
23267         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
23268         (gendocs_options_): New overridable variable.
23269
23270         gnu-web-doc-update: don't ignore configure or build failure
23271         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
23272
23273         announce-gen: backslash-escape '@'s in --help output
23274         * build-aux/announce-gen: Fix syntax errors.
23275
23276         maint.mk, announce-gen: allow project-specific announcement mail headers
23277         * top/maint.mk (translation_project_): Define default.
23278         (announcement_Cc_, announcement_mail_headers_): Likewise.
23279         (announcement): Invoke announce-gen with new --mail-headers option.
23280         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
23281
23282         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
23283         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
23284         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
23285         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
23286         line in the "err2" output file when running "make check" in verbose
23287         mode (i.e., with set -x enabled).
23288
23289 2010-05-03  Bruno Haible  <bruno@clisp.org>
23290
23291         wctob: Fix for weird platforms.
23292         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
23293         argument value.
23294
23295 2010-05-03  Jim Meyering  <meyering@redhat.com>
23296
23297         maint.mk: prohibit unwarranted use of <strings.h>
23298         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
23299         strings.h in a file that does not also use strcasecmp, strncasecmp,
23300         ffs or ffsll.
23301
23302         maint.mk: remove obsolete comments
23303         * top/maint.mk: Remove stale, commented-out rules.
23304
23305 2010-05-02  Bruno Haible  <bruno@clisp.org>
23306
23307         wcwidth: Declare also when it's aliased.
23308         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
23309         macro.
23310
23311 2010-05-02  Bruno Haible  <bruno@clisp.org>
23312
23313         Fix regression from 2010-04-25.
23314         * gnulib-tool (func_modules_transitive_closure): Check the status of
23315         all modules, not only of the tests that are of the form foo-tests where
23316         foo is a module.
23317
23318 2010-05-02  Bruno Haible  <bruno@clisp.org>
23319
23320         wctob: Work around nasty Cygwin 1.7.2 bug.
23321         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
23322         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
23323
23324 2010-05-01  Bruno Haible  <bruno@clisp.org>
23325
23326         fpurge: Sharper test.
23327         * tests/test-fpurge.c (main): Add one more ftell check.
23328         * modules/fpurge-tests (Depends-on): Add ftell.
23329         Suggested by Eric Blake.
23330
23331 2010-05-01  Bruno Haible  <bruno@clisp.org>
23332
23333         ftello: Another test.
23334         * tests/test-ftello3.c: New file.
23335         * modules/ftello-tests (Files): Add it.
23336         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
23337         MOSTLYCLEANFILES.
23338
23339         ftell: Another test.
23340         * tests/test-ftell3.c: New file.
23341         * modules/ftell-tests (Files): Add it.
23342         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
23343         MOSTLYCLEANFILES.
23344
23345 2010-05-01  Bruno Haible  <bruno@clisp.org>
23346
23347         ftell, ftello: Work around Solaris bug.
23348         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
23349         * lib/ftello.c: Include stdio-impl.h.
23350         (ftello): On Solaris, when _IOWRT is set, compute the result without
23351         looking at _IOREAD.
23352         * modules/ftello (Files): Add lib/stdio-impl.h.
23353         * doc/posix-functions/ftell.texi: Mention Solaris bug.
23354         * doc/posix-functions/ftello.texi: Likewise.
23355         Reported by Eric Blake.
23356
23357 2010-05-01  Bruno Haible  <bruno@clisp.org>
23358
23359         freading: Adapt to special meaning of _IOREAD flag on Solaris.
23360         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
23361         the _IOWRT flag is also set.
23362
23363 2010-05-01  Bruno Haible  <bruno@clisp.org>
23364
23365         Fix doc about a HP-UX stdio bug.
23366         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
23367         * doc/posix-functions/ftello.texi: Likewise.
23368
23369 2010-05-01  Bruno Haible  <bruno@clisp.org>
23370
23371         lseek test: Fix failure on Solaris.
23372         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
23373         output.
23374
23375 2010-04-30  Jim Meyering  <meyering@redhat.com>
23376
23377         bootstrap: don't ignore failure to generate po*/Makevars
23378         * build-aux/bootstrap (with_gettext): Don't ignore failure
23379         to create po/Makevars or runtime-po/Makevars.
23380
23381 2010-04-29  Eric Blake  <eblake@redhat.com>
23382
23383         headers: relax license to LGPLv2+
23384         * modules/fcntl-h (License): Relax license.
23385         * modules/getopt-posix (License): Likewise.
23386         * modules/locale (License): Likewise.
23387         * modules/math (License): Likewise.
23388         * modules/pty (License): Likewise.
23389         * modules/sched (License): Likewise.
23390         * modules/search (License): Likewise.
23391         * modules/spawn (License): Likewise.
23392         * modules/stdarg (License): Likewise.
23393         * modules/sysexits (License): Likewise.
23394
23395 2010-04-29  Jim Meyering  <meyering@redhat.com>
23396
23397         inttypes: relax license to LGPLv2+
23398         * modules/inttypes (License): Relax license.
23399
23400 2010-04-29  Simon Josefsson  <simon@josefsson.org>
23401
23402         * top/maint.mk (indent): Run twice to produce idempotent results.
23403
23404 2010-04-28  Bruno Haible  <bruno@clisp.org>
23405
23406         getdate: Generate getdate.c in the source directory.
23407         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
23408         MOSTLYCLEANFILES.
23409         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
23410
23411 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
23412
23413         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
23414         is not declared as a const *; avoid warnings in that case.
23415
23416 2010-04-28  Eric Blake  <eblake@redhat.com>
23417
23418         canonicalize-lgpl: avoid compiler warning
23419         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
23420         declaration' / 'extraneous semicolon' warning with some compilers.
23421         Reported by Andreas Gruenbacher.
23422
23423 2010-04-28  Jim Meyering  <meyering@redhat.com>
23424
23425         init.sh: ensure a more reliable exit status when exiting via trap
23426         * tests/init.sh (setup_): Don't rely on $? in signal handler.
23427         Inspired by patches from Dmitry V. Levin.
23428         Also trap on signal 3 (SIGQUIT).
23429
23430 2010-04-27  Bruno Haible  <bruno@clisp.org>
23431
23432         Update doc about utimes().
23433         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
23434         'utimens' module.
23435         Reported by Andreas Gruenbacher <agruen@suse.de>.
23436
23437 2010-04-27  Eric Blake  <eblake@redhat.com>
23438
23439         full-read, full-write: relax license
23440         * modules/full-read (License): Drop to LGPLv2+.
23441         * modules/full-write (License): Likewise.
23442         * modules/safe-read (License): Likewise.
23443         * modules/safe-write (License): Likewise.
23444
23445         pthread: mention library for linking
23446         * modules/pthread (Link): Mention $(LIB_PTHREAD).
23447
23448 2010-04-27  Jim Meyering  <meyering@redhat.com>
23449
23450         maint.mk: fix a bug introduced in last change
23451         * top/maint.mk (gl_assured_headers_): Now that all names are on
23452         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
23453         is not anchored to end of word, it should be adequate.
23454
23455         maint.mk: avoid side-effect in latest syntax-check
23456         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
23457         to run commands via $(shell...), and hence to incur cost only when
23458         the new rule is actually run.
23459
23460         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
23461         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
23462         and use that to create a regexp used to detect all #if HAVE_..._H uses.
23463         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
23464         (gl_assured_headers_, az_, AZ_): Define.
23465         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
23466
23467 2010-04-26  Jim Meyering  <jim@meyering.net>
23468             Bruno Haible  <bruno@clisp.org>
23469
23470         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
23471         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
23472         Prompted by an exchange with Gilles Espinasse.
23473
23474 2010-04-26  Jim Meyering  <meyering@redhat.com>
23475
23476         git-version-gen: aesthetic tweak
23477         * build-aux/git-version-gen: Use "$nl" rather than a literal,
23478         so that the command remains on a single line.
23479
23480 2010-04-26  Eric Blake  <eblake@redhat.com>
23481
23482         git-version-gen: allow use on EBCDIC hosts
23483         * build-aux/git-version-gen (dirty): Use literal rather than tying
23484         ourselves to ascii.
23485         Reported by Steve Goetze.
23486
23487 2010-04-25  Bruno Haible  <bruno@clisp.org>
23488
23489         netdb: Add support for GNULIB_POSIXCHECK.
23490         * lib/netdb.in.h: Include warn-on-use.h.
23491         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
23492         functions are used when GNULIB_POSIXCHECK is defined and the
23493         getaddrinfo module is not in use.
23494         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
23495         freeaddrinfo, gai_strerror, getnameinfo are declared.
23496         * modules/netdb (Depends-on): Add warn-on-use.
23497         (Makefile.am): Include warn-on-use.h in netdb.h.
23498
23499 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
23500
23501         build: avoid "make check" failure without .git/ directory
23502         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
23503         there is no .git/ directory.
23504
23505 2010-04-25  Bruno Haible  <bruno@clisp.org>
23506
23507         ptsname: Fix misuse of ttyname_r.
23508         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
23509         of errno.
23510
23511 2010-04-25  Bruno Haible  <bruno@clisp.org>
23512
23513         ttyname_r: Make it work on Solaris 10.
23514         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
23515         if the system function has the POSIX declaration. Test whether the
23516         function fails if the buffer is less than 128 bytes large.
23517         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
23518         system's ttyname_r function. Provide a reasonably large buffer.
23519         * modules/ttyname_r (Depends-on): Add extensions.
23520         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
23521
23522 2010-04-25  Bruno Haible  <bruno@clisp.org>
23523
23524         Use the 'extensions' module for some more functions on Solaris.
23525         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
23526         module.
23527         * doc/posix-functions/ctime_r.texi: Likewise.
23528         * doc/posix-functions/getgrgid_r.texi: Likewise.
23529         * doc/posix-functions/getgrnam_r.texi: Likewise.
23530         * doc/posix-functions/getpwnam_r.texi: Likewise.
23531         * doc/posix-functions/getpwuid_r.texi: Likewise.
23532         * doc/posix-functions/readdir_r.texi: Likewise.
23533         * doc/posix-functions/sigwait.texi: Likewise.
23534         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
23535         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
23536
23537 2010-04-25  Bruno Haible  <bruno@clisp.org>
23538
23539         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
23540         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
23541         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
23542         * lib/ttyname_r.c: Include <limits.h>.
23543         (ttyname_r): Define using the system's ttyname_r function, if it exists
23544         and not on Solaris.
23545         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
23546         set.
23547         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
23548         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
23549         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
23550         Reported by Simon Josefsson.
23551
23552 2010-04-25  Bruno Haible  <bruno@clisp.org>
23553
23554         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
23555         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
23556         * doc/posix-functions/ctime_r.texi: Likewise.
23557         * doc/posix-functions/getgrgid_r.texi: Likewise.
23558         * doc/posix-functions/getgrnam_r.texi: Likewise.
23559         * doc/posix-functions/getlogin_r.texi: Likewise.
23560         * doc/posix-functions/getpwnam_r.texi: Likewise.
23561         * doc/posix-functions/getpwuid_r.texi: Likewise.
23562         * doc/posix-functions/readdir_r.texi: Likewise.
23563         * doc/posix-functions/sigwait.texi: Likewise.
23564         * doc/posix-functions/ttyname_r.texi: Likewise.
23565         Reported by Simon Josefsson.
23566
23567 2010-04-25  Bruno Haible  <bruno@clisp.org>
23568
23569         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
23570         * gnulib-tool (func_usage): Document that --with-*-tests options apply
23571         also to --create-testdir.
23572         (func_acceptable): Don't consider the status of *-tests modules here.
23573         (func_modules_transitive_closure): Consider it here, before including a
23574         test module.
23575         (func_import, func_create_testdir): Set inc_all_direct_tests,
23576         inc_all_indirect_tests.
23577         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
23578         --create-testdir and --create-megatestdir.
23579
23580 2010-04-25  Bruno Haible  <bruno@clisp.org>
23581
23582         gnulib-tool: Add --without-*-tests options.
23583         * gnulib-tool (func_usage): Document the --without-*-tests options.
23584         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
23585         excl_unportable_tests): New variables.
23586         Fail if they are specified with --import or --update.
23587         (func_acceptable): Respect the excl_*_tests variables.
23588         (func_import): Set the excl_*_tests variables to empty.
23589
23590 2010-04-25  Simon Josefsson  <simon@josefsson.org>
23591             Bruno Haible  <bruno@clisp.org>
23592
23593         Work around a MacOS X 10.4 bug with openpty.
23594         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
23595         * tests/test-openpty.c (main): Close the master side explicitly.
23596
23597 2010-04-25  Bruno Haible  <bruno@clisp.org>
23598
23599         strnlen: Fix a C++ test error on MacOS X and Solaris.
23600         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
23601         the function is not declared.
23602         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
23603         Simon Josefsson.
23604
23605 2010-04-24  Bruno Haible  <bruno@clisp.org>
23606
23607         Avoid a gcc warning.
23608         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
23609         of correct type for %08lx directive.
23610         Reported by Eric Blake.
23611
23612 2010-04-24  Bruno Haible  <bruno@clisp.org>
23613
23614         vasnprintf: Correct errno value in case of out-of-memory.
23615         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
23616         or sprintf. Use the errno value from SNPRINTF or sprintf.
23617         Reported by Ian Beckwith <ianb@erislabs.net>.
23618
23619 2010-04-24  Bruno Haible  <bruno@clisp.org>
23620
23621         ansi-c++-opt: Find correct compiler when cross-compiling.
23622         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
23623         AC_CHECK_PROGS.
23624         Reported by Simon Josefsson.
23625
23626 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
23627
23628         vc-list-files: Add support for subversion
23629         * build-aux/vc-list-files: Use "svn list" to generate the list of
23630         files controlled by subversion.
23631
23632 2010-04-23  Jim Meyering  <meyering@redhat.com>
23633
23634         vc-list-files tests: convert to use init.sh
23635         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
23636         path_prepend_.
23637         Use Exit, not exit.
23638         Use skip_ rather than open coding it.
23639         Remove trap set-up and compare definitions.
23640         * tests/test-vc-list-files-git.sh: Likewise.
23641         * modules/vc-list-files-tests (Files): Add tests/init.sh.
23642
23643 2010-04-22  Simon Josefsson  <simon@josefsson.org>
23644
23645         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
23646         backup files.
23647
23648 2010-04-21  Simon Josefsson  <simon@josefsson.org>
23649
23650         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
23651
23652 2010-04-20  Eric Blake  <eblake@redhat.com>
23653
23654         tests: be robust to ignored SIGPIPE
23655         * tests/test-select-in.sh: Consume all output.
23656         * tests/test-lseek.sh: Check correct exit status, while avoiding
23657         EPIPE.
23658
23659 2010-04-20  Simon Josefsson  <simon@josefsson.org>
23660             Bruno Haible  <bruno@clisp.org>
23661
23662         visibility: Don't use -fvisibility if it leads to a warning.
23663         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
23664         yes, don't pretend that visibility works if it leads to a warning.
23665         Reported by Mike Gran <spk121@yahoo.com>.
23666
23667 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
23668
23669         * build-aux/bootstrap: Use "git -h" for testing for supported options
23670         instead of "git --help".  The short-form option only shows a summary,
23671         and doesn't layout the full man page.  Grep for the full option name
23672         in the summary, too.
23673
23674 2010-04-19  Bruno Haible  <bruno@clisp.org>
23675
23676         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
23677         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
23678         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
23679         mention of RELOCATABLE_STRIP.
23680         Reported by Sylvain Beucler <beuc@beuc.net>.
23681
23682 2010-04-19  Bruno Haible  <bruno@clisp.org>
23683
23684         * lib/diffseq.h: Fix typo in comment.
23685         Reported by Eric Blake.
23686
23687 2010-04-19  Bruno Haible  <bruno@clisp.org>
23688
23689         ioctl: Move autoconf macro to a .m4 file.
23690         * m4/ioctl.m4: New file, extracted from modules/ioctl.
23691         * modules/ioctl (Files): Add it.
23692         (configure.ac): Simply invoke gl_FUNC_IOCTL.
23693         Reported by Ian Beckwith <ianb@erislabs.net>.
23694
23695 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
23696             Bruno Haible  <bruno@clisp.org>
23697
23698         diffseq: Accommodate use-case with abstract arrays.
23699         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
23700         is not defined.
23701         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
23702         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
23703
23704 2010-04-18  Bruno Haible  <bruno@clisp.org>
23705
23706         * doc/posix-headers/stdbool.texi: More precise wording.
23707
23708 2010-04-17  Jim Meyering  <meyering@redhat.com>
23709
23710         maint.mk: use gnu-style indentation in an embedded perl script
23711         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
23712         Rename variable: s/two/last_two_bytes/
23713
23714 2010-04-16  Eric Blake  <eblake@redhat.com>
23715
23716         test-stdbool: skip test that fails with Solaris CC
23717         * tests/test-stdbool.c (f): Skip test that causes compilation
23718         error under buggy C++ compiler.
23719         * lib/stdbool.in.h: Document the limitation.
23720         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
23721
23722         setenv: allow compilation with C++
23723         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
23724         register keyword.
23725
23726         stdint: allow test to pass with C++
23727         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
23728
23729         getopt: allow compilation with C++
23730         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
23731         struct.
23732         * lib/getopt.c (_getopt_internal_r): Use correct type.
23733         Reported by Dagobert Michelson, via Joel E. Denny.
23734
23735 2010-04-16  Bruno Haible  <bruno@clisp.org>
23736
23737         Override netdb.h always.
23738         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
23739         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
23740         Reported by Ludovic Courtès <ludo@gnu.org>.
23741
23742 2010-04-15  Bruno Haible  <bruno@clisp.org>
23743
23744         openpty: Fix mistake from 2010-03-21.
23745         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
23746         Reported by Simon Josefsson.
23747
23748 2010-04-15  Eric Blake  <eblake@redhat.com>
23749
23750         test-forkpty: fix expected signature
23751         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
23752         Reported by Simon Josefsson.
23753
23754 2010-04-15  Jim Meyering  <meyering@redhat.com>
23755
23756         maint.mk: texinfo_suffix_re_: correct the default regexp
23757         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
23758
23759         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
23760         make it configurable via texinfo_suffix_re_.
23761
23762 2010-04-14  Eric Blake  <eblake@redhat.com>
23763
23764         strtok_r: relax license to LGPLv2+
23765         * modules/strtok_r (License): Relax license.
23766         Reported by Matthias Bolte.
23767
23768 2010-04-14  Simon Josefsson  <simon@josefsson.org>
23769
23770         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
23771         version 1.4.4 by default instead of requiring the libgcrypt
23772         version used during build.  This makes it possible to use the
23773         application with older but still binary compatible libgcrypt
23774         versions.
23775
23776 2010-04-13  Eric Blake  <eblake@redhat.com>
23777
23778         getopt-gnu: match recent glibc fixes and posix ruling
23779         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
23780         '+' handling, when requesting extensions.
23781         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
23782         'W;' handling.
23783         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
23784         * doc/posix-functions/getopt.texi (getopt): Document this.
23785         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
23786         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
23787         Likewise.
23788
23789         getopt: merge bug fixes from glibc
23790         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
23791         diagnostics.  Honor '+:' correctly.  Reject ';'.
23792
23793         getopt-posix: detect MacOS bug
23794         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
23795         optind when missing a required argument.
23796         * doc/posix-functions/getopt.texi (getopt): Document the bug.
23797         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
23798         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
23799         Likewise.
23800
23801         getopt-posix: avoid spurious failure on Solaris
23802         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
23803         an indicator that setting optind=1 is sufficient for reset.
23804
23805         getopt-posix: avoid spurious failure on FreeBSD
23806         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
23807         in POSIX mode, since the m4 test uses it.
23808
23809         gnulib-tool: silence warning on BSD sh
23810         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
23811
23812 2010-04-13  Jim Meyering  <meyering@redhat.com>
23813
23814         doc: users.txt: GNU patch now uses gnulib
23815         * users.txt: Add patch.
23816
23817 2010-04-12  Jim Meyering  <meyering@redhat.com>
23818
23819         maint.mk: generate more concise timing data for syntax-check rules
23820         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
23821         " done" from each line that reports a syntax-check test duration.
23822
23823 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
23824
23825         git-version-gen: use "git update-index..." rather than "git status"
23826         * build-aux/git-version-gen: Use git update-index --refresh, not
23827         "git status".  With some versions of git, "git status" would fail
23828         to update the index and result in an unwarranted "-dirty" suffix.
23829
23830 2010-04-11  Jim Meyering  <meyering@redhat.com>
23831
23832         openat: correct formatting (no semantic change)
23833         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
23834         Suggested by Bruno Haible.
23835
23836 2010-04-11  Bruno Haible  <bruno@clisp.org>
23837
23838         Stricter declaration checking in testdirs.
23839         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
23840         If for_tests is true, augment AM_CPPFLAGS to define
23841         GNULIB_STRICT_CHECKING.
23842         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
23843         GNULIB_STRICT_CHECKING is defined, verify that the function is
23844         declared.
23845
23846 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
23847             Bruno Haible  <bruno@clisp.org>
23848
23849         libunistring: Improve configure output.
23850         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
23851         Don't say "consider installing GNU libunistring" when checking again
23852         with libiconv.
23853
23854 2010-04-11  Bruno Haible  <bruno@clisp.org>
23855
23856         libunistring: Correct value of $LTLIBUNISTRING.
23857         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
23858         correct the value of $LTLIBUNISTRING.
23859
23860 2010-04-11  Bruno Haible  <bruno@clisp.org>
23861
23862         havelib: Add static libraries to LIBS in the right order.
23863         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
23864         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
23865
23866 2010-04-11  Bruno Haible  <bruno@clisp.org>
23867
23868         libunistring: Detect libunistring also when it depends on libiconv.
23869         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
23870         the second AC_LIB_HAVE_LINKFLAGS invocation.
23871
23872 2010-04-11  James Youngman  <jay@gnu.org>
23873
23874         close-stream: declare local scalars to be "const"
23875         * lib/close-stream.c (close_stream): Make boolean variables const
23876         to document the fact that we set but do not change them.
23877
23878 2010-04-11  Bruno Haible  <bruno@clisp.org>
23879
23880         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
23881
23882 2010-04-11  Jim Meyering  <meyering@redhat.com>
23883
23884         maint.mk: don't include dist-check.mk
23885         * top/maint.mk: Remove bogus include directive.
23886
23887         maint.mk: improve empty-line-at-EOF check
23888         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
23889         solution, rather than tail+Perl-based one.  The latter would read
23890         a few kilobytes from the end of each file, and did not handle empty
23891         files properly.
23892
23893         maint.mk: print the elapsed time for each syntax-check rule
23894         * top/maint.mk (sc_m_rules_): Save start time in a file.
23895         (sc_z_rules_): New rules: remove temp file and print elapsed time.
23896         (local-check): Interpose the .z rules
23897
23898 2010-04-11  Jim Meyering  <meyering@redhat.com>
23899
23900         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
23901         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
23902         empty file with one that ends in an empty line.
23903
23904 2010-04-10  Bruno Haible  <bruno@clisp.org>
23905
23906         mkdir: Make it work on mingw64.
23907         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
23908         * lib/mkdir.c: Update comment.
23909         Reported by Roman Donchenko (Роман Донченко) <dxdragon@yandex.ru>.
23910
23911 2010-04-10  Bruno Haible  <bruno@clisp.org>
23912
23913         Don't override improved macro from newer autoconf.
23914         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
23915         autoconf >= 2.62.
23916         Reported by Joel E. Denny <jdenny@clemson.edu>.
23917
23918 2010-04-10  Jim Meyering  <meyering@redhat.com>
23919
23920         maint.mk: new syntax-check rule: prohibit empty lines at end of file
23921         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
23922
23923         maint.mk: correct a diagnostic
23924         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
23925         in diagnostic; now use $prohibit.
23926
23927 2010-04-10  Bruno Haible  <address@hidden>
23928
23929         fchownat: Fix a C++ test error on Solaris 8.
23930         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
23931         the function does not exist.
23932
23933 2010-04-10  Bruno Haible  <bruno@clisp.org>
23934
23935         vasnprintf: Add more tests.
23936         * tests/test-vasnprintf-posix.c: Include <errno.h>.
23937         (test_function): Test converting an invalid wide string.
23938
23939         vasnprintf: Correct handling of unconvertible wide string arguments.
23940         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
23941         VASNPRINTF.
23942         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
23943         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
23944         smaller than the expected maximum need for the directive. Set errno to
23945         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
23946         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
23947         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
23948         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
23949         * modules/vasnprintf (Files): Add m4/printf.m4.
23950         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
23951
23952 2010-04-10  Bruno Haible  <bruno@clisp.org>
23953
23954         vasnprintf: Fix crash in %ls directive.
23955         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
23956         string is passed as argument to %ls, with no precision and no width.
23957         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
23958
23959 2010-04-10  Bruno Haible  <bruno@clisp.org>
23960
23961         vasnprintf: Fix multiple test failures on mingw.
23962         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
23963         _snprintf, or snwprintf, not _snwprintf.
23964
23965 2010-04-10  Bruno Haible  <bruno@clisp.org>
23966
23967         write: Fix a C++ test error on mingw.
23968         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
23969
23970 2010-04-10  Bruno Haible  <bruno@clisp.org>
23971
23972         vasnprintf test: Reduce code duplication.
23973         * tests/test-vasnprintf.c (test_function): New function, extracted from
23974         test_vasnprintf.
23975         (test_vasnprintf, test_asnprintf): Invoke it.
23976
23977 2010-04-10  Bruno Haible  <bruno@clisp.org>
23978
23979         strnlen: Fix warning in C++ mode on MacOS X.
23980         * lib/string.in.h (strnlen): Use the modern idiom.
23981         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
23982         defining strnlen as a macro already in <config.h>.
23983         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
23984         REPLACE_STRNLEN.
23985         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
23986         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
23987
23988 2010-04-08  James Youngman  <jay@gnu.org>
23989
23990         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
23991         the example.
23992
23993 2010-04-09  Jim Meyering  <meyering@redhat.com>
23994
23995         maint.mk: print better diagnostic when there is no $(_hv_file)
23996         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
23997         announce that when $(_hv_file) (aka help-version) does not exist.
23998
23999         init.sh: run tr in the "C" locale to avoid multibyte interpretation
24000         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
24001         not try to interpret its random input bytes.  Jarno Rajahalme reported
24002         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
24003         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
24004         (mktempd_): Likewise, just in case.
24005
24006         ftruncate: add two years to projected module removal date: 2012
24007         * m4/ftruncate.m4: Adjust comments.
24008
24009         ftruncate: mark module as obsolete; even MinGW provides it, now
24010         * modules/ftruncate (Status): Obsolete.
24011         (Notice): Say that.
24012         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
24013         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
24014
24015 2010-04-08  Bruno Haible  <bruno@clisp.org>
24016
24017         Fix side effects from tests-related modules.
24018         * modules/dprintf-posix (Comment): New section.
24019         * modules/fprintf-posix (Comment): Likewise.
24020         * modules/obstack-printf-posix (Comment): Likewise.
24021         * modules/printf-posix (Comment): Likewise.
24022         * modules/snprintf-posix (Comment): Likewise.
24023         * modules/sprintf-posix (Comment): Likewise.
24024         * modules/vasnprintf-posix (Comment): Likewise.
24025         * modules/vasprintf-posix (Comment): Likewise.
24026         * modules/vdprintf-posix (Comment): Likewise.
24027         * modules/vfprintf-posix (Comment): Likewise.
24028         * modules/vprintf-posix (Comment): Likewise.
24029         * modules/vsnprintf-posix (Comment): Likewise.
24030         * modules/vsprintf-posix (Comment): Likewise.
24031         * modules/xprintf-posix (Comment): Likewise.
24032         * modules/xvasprintf-posix (Comment): Likewise.
24033         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
24034         * modules/floorf-tests (Depends-on): Likewise.
24035         * modules/round-tests (Depends-on): Likewise.
24036         * modules/roundf-tests (Depends-on): Likewise.
24037         * modules/trunc-tests (Depends-on): Likewise.
24038         * modules/truncf-tests (Depends-on): Likewise.
24039         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
24040         'fprintf-posix' module is not present.
24041         * tests/test-floorf2.c (check): Likewise.
24042         * tests/test-trunc2.c (check): Likewise.
24043         * tests/test-truncf2.c (check): Likewise.
24044         * tests/test-round2.c (equal): Likewise.
24045         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
24046
24047 2010-04-07  Karl Berry  <karl@gnu.org>
24048
24049         * config/srclist.txt,
24050         * config/srclistvars.sh,
24051         * config/srclist-update: doc fixes.
24052
24053 2010-04-07  Jim Meyering  <meyering@redhat.com>
24054
24055         maint.mk: add a PATH crosschecking syntax-check rule
24056         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
24057         Useful if you use a test like the one in help-version (coreutils,
24058         diffutils, grep, gzip) that ensures $(VERSION) matches what is
24059         printed by prog --version.
24060
24061 2010-04-06  Bruno Haible  <bruno@clisp.org>
24062
24063         Fix link error on mingw.
24064         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
24065         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
24066
24067 2010-04-06  Bruno Haible  <bruno@clisp.org>
24068
24069         Assume rmdir exists.
24070         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
24071
24072 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
24073
24074         doc: update users.txt
24075         * users.txt: Add gcal.
24076
24077 2010-04-06  Jim Meyering  <meyering@redhat.com>
24078
24079         init.sh: simply unset TMPDIR rather than risking env -i
24080         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
24081         although it probably works fine on all Unix-based systems, some
24082         systems (Cygwin?) cannot tolerate a totally cleared environment.
24083         Suggestion from Eric Blake.
24084
24085 2010-04-06  Jim Meyering  <meyering@redhat.com>
24086
24087         init.sh: portability fix: use env's POSIX-specified -i option not -u
24088         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
24089         than unportable env -u.  Solaris 5.11's env lacks support for -u.
24090
24091 2010-04-05  Bruno Haible  <bruno@clisp.org>
24092
24093         btowc: Work around Cygwin 1.7.2 bug.
24094         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
24095         does not map NUL to 0.
24096         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
24097
24098 2010-04-05  Bruno Haible  <bruno@clisp.org>
24099
24100         Make the multithread modules work on Cygwin 1.7.2.
24101         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
24102         imported symbols can be declared weak, so that it returns "no" on
24103         Cygwin 1.7.2.
24104
24105 2010-04-05  Bruno Haible  <bruno@clisp.org>
24106
24107         Use the module 'strncat'.
24108         * modules/unistr/u8-strncat (Depends-on): Add strncat.
24109
24110         Tests for module 'strncat'.
24111         * modules/strncat-tests: New file.
24112         * tests/test-strncat.c: New file.
24113
24114         New module 'strncat'.
24115         * lib/string.in.h (strncat): New declaration.
24116         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
24117         * m4/strncat.m4: New file, based on m4/memchr.m4.
24118         * modules/strncat: New file.
24119         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
24120         is declared.
24121         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
24122         REPLACE_STRNCAT.
24123         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
24124         REPLACE_STRNCAT.
24125         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
24126         module.
24127         * tests/test-string-c++.cc: Check signature of strncat.
24128
24129 2010-04-05  Jim Meyering  <meyering@redhat.com>
24130
24131         xstrtoumax-tests: convert to use init.sh
24132         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
24133         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
24134         Use Exit, not exit.
24135         Remove uses of $EXEEXT and "./" to run a program in the current dir.
24136
24137         xstrtoimax-tests: convert to use init.sh
24138         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
24139         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
24140         Use Exit, not exit.
24141         Remove uses of $EXEEXT and "./" to run a program in the current dir.
24142
24143 2010-04-05  Bruno Haible  <bruno@clisp.org>
24144
24145         sys_socket: Avoid #define replacements in C++ mode.
24146         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
24147         warning to the function if possible, rather than #defining the symbol
24148         to a dysfunctional alias.
24149
24150 2010-04-05  Bruno Haible  <bruno@clisp.org>
24151
24152         fseeko: Fix C++ test error on mingw.
24153         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
24154         gl_FUNC_FSEEKO.
24155         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
24156         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
24157         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
24158         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
24159
24160 2010-04-05  Bruno Haible  <bruno@clisp.org>
24161
24162         duplocale: Improve test output.
24163         * tests/test-duplocale.c (main): Print reason for skipped test.
24164
24165 2010-04-05  Bruno Haible  <bruno@clisp.org>
24166
24167         Assume rmdir exists.
24168         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
24169         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
24170
24171 2010-04-05  Bruno Haible  <bruno@clisp.org>
24172
24173         Fix link error on Solaris 8 with cc.
24174         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
24175
24176 2010-04-05  Bruno Haible  <bruno@clisp.org>
24177
24178         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
24179         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
24180
24181 2010-04-05  Bruno Haible  <bruno@clisp.org>
24182
24183         vasprintf: Update documentation.
24184         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
24185
24186 2010-04-05  Bruno Haible  <bruno@clisp.org>
24187
24188         ptsname: Improve test.
24189         * tests/test-ptsname.c (main): Also try the various master names of BSD
24190         systems.
24191
24192 2010-04-05  Bruno Haible  <bruno@clisp.org>
24193
24194         memchr: Avoid a possible C++ test error.
24195         * lib/string.in.h (memchr): Provide declaration if function is missing.
24196         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
24197         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
24198         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
24199         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
24200
24201 2010-04-05  Bruno Haible  <bruno@clisp.org>
24202
24203         strtok_r: Improve idiom.
24204         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
24205         AC_LIBOBJ is used.
24206
24207 2010-04-05  Bruno Haible  <bruno@clisp.org>
24208
24209         strdup: Improve idiom.
24210         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
24211         AC_LIBOBJ is used.
24212         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
24213         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
24214         when AC_LIBOBJ is used.
24215
24216 2010-04-05  Bruno Haible  <bruno@clisp.org>
24217
24218         mbsinit, mbrtowc, wcrtomb: Improve idioms.
24219         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
24220         don't set REPLACE_MBSINIT to 1.
24221         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
24222         don't set REPLACE_MBRTOWC to 1.
24223         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
24224         exist, don't set REPLACE_MBSRTOWCS to 1.
24225         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
24226         exist, don't set REPLACE_MBSNRTOWCS to 1.
24227         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
24228         don't set REPLACE_WCRTOMB to 1.
24229         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
24230         exist, don't set REPLACE_WCSRTOMBS to 1.
24231         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
24232         exist, don't set REPLACE_WCSNRTOMBS to 1.
24233
24234 2010-04-05  Bruno Haible  <bruno@clisp.org>
24235
24236         ldexpl: Improve idiom.
24237         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
24238         make sure to set HAVE_DECL_LDEXPL to 0.
24239
24240 2010-04-05  Jim Meyering  <meyering@redhat.com>
24241
24242         xstrtol-tests: convert to use init.sh
24243         * modules/xstrtol-tests (Files): Add tests/init.sh.
24244         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
24245         Use Exit, not exit.
24246         Remove uses of $EXEEXT and "./" to run a program in the current dir.
24247
24248         atexit-tests: convert to use init.sh
24249         * modules/atexit-tests (Files): Add tests/init.sh.
24250         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
24251         Use Exit, not exit.
24252         Remove uses of $EXEEXT and "./" to run a program in the current dir.
24253
24254         init.sh: fix typo
24255         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
24256
24257         init.sh: make it easier for a test script to write to the tty, ...
24258         when using automake's parallel-tests mode.
24259         * tests/init.sh (stderr_fileno_): Define overridable variable.
24260         (warn_): New function, to use it.
24261         (fail_, skip_, framework_failure_): Use warn_.
24262
24263 2010-04-04  Bruno Haible  <bruno@clisp.org>
24264
24265         btowc: Avoid warning.
24266         * lib/btowc.c: Include <stdlib.h>.
24267         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
24268
24269 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
24270             Bruno Haible  <bruno@clisp.org>
24271
24272         wchar: Port to NetBSD 1.5.
24273         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
24274         * lib/wctype.in.h (WEOF): Likewise.
24275
24276 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
24277             Bruno Haible  <bruno@clisp.org>
24278
24279         Port extended stdio to NetBSD 1.5.
24280         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
24281         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
24282         older.
24283
24284 2010-04-04  Bruno Haible  <bruno@clisp.org>
24285
24286         string: Remove unused substitution.
24287         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
24288         HAVE_DECL_STRERROR.
24289         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
24290
24291 2010-04-04  Bruno Haible  <bruno@clisp.org>
24292
24293         strtod: Avoid a possible C++ test error.
24294         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
24295         set REPLACE_STRTOD.
24296
24297 2010-04-04  Bruno Haible  <bruno@clisp.org>
24298
24299         strerror: Update documentation.
24300         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
24301
24302 2010-04-04  Bruno Haible  <bruno@clisp.org>
24303
24304         stdio: Fix some C++ test errors on Solaris 8 with GCC.
24305         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
24306         _GL_CXXALIAS_SYS_CAST.
24307
24308 2010-04-04  Bruno Haible  <bruno@clisp.org>
24309
24310         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
24311         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
24312         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
24313         REPLACE_FREXPL to 1.
24314         * doc/posix-functions/frexpl.texi: Update documentation.
24315
24316 2010-04-04  Bruno Haible  <bruno@clisp.org>
24317
24318         math: Fix some C++ test errors on Solaris 8 and Cygwin.
24319         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
24320
24321 2010-04-04  Bruno Haible  <bruno@clisp.org>
24322
24323         Implement nanosleep for native Windows.
24324         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
24325
24326 2010-04-04  Bruno Haible  <bruno@clisp.org>
24327
24328         math: Fix some C++ test errors on Solaris 8.
24329         * lib/math.in.h (truncf, trunc): Use simpler idiom.
24330
24331 2010-04-04  Bruno Haible  <bruno@clisp.org>
24332
24333         math: Fix some C++ test errors on Cygwin.
24334         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
24335         truncl): Provide declaration if the system does not have it.
24336         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
24337         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
24338         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
24339         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
24340         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
24341         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
24342         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
24343         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
24344         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
24345         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
24346         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
24347         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
24348         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
24349         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
24350         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
24351         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
24352         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
24353         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
24354         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
24355         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
24356         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
24357         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
24358
24359 2010-04-04  Bruno Haible  <bruno@clisp.org>
24360
24361         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
24362         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
24363         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
24364         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
24365         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
24366         * m4/isinf.m4 (gl_ISINF): Likewise.
24367         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
24368
24369 2010-04-04  Bruno Haible  <bruno@clisp.org>
24370
24371         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
24372         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
24373
24374 2010-04-04  Bruno Haible  <bruno@clisp.org>
24375
24376         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
24377         * modules/tmpfile (configure.ac): Update.
24378
24379         tmpfile: Fix C++ test error on mingw.
24380         * lib/stdio.in.h (tmpfile): New declaration.
24381         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
24382         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
24383         * modules/tmpfile (Depends-on): Add stdio.
24384         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
24385         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
24386         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
24387         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
24388         REPLACE_TMPFILE.
24389         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
24390
24391 2010-04-04  Bruno Haible  <bruno@clisp.org>
24392
24393         ioctl: Fix C++ test error on mingw.
24394         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
24395         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
24396         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
24397
24398 2010-04-03  Bruno Haible  <bruno@clisp.org>
24399
24400         wcwidth: Fix C++ test error on mingw.
24401         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
24402         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
24403         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
24404
24405 2010-04-03  Bruno Haible  <bruno@clisp.org>
24406
24407         nanosleep: Fix C++ test error on mingw.
24408         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
24409         * lib/time.in.h (nanosleep): Use modern idiom.
24410         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
24411         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
24412         REPLACE_NANOSLEEP to 1.
24413         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
24414         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
24415
24416 2010-04-03  Bruno Haible  <bruno@clisp.org>
24417
24418         strptime: Fix C++ test error on mingw.
24419         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
24420         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
24421         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
24422         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
24423         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
24424         not REPLACE_STRPTIME.
24425         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
24426         REPLACE_STRPTIME.
24427
24428 2010-04-03  Bruno Haible  <bruno@clisp.org>
24429
24430         timegm: Fix C++ test error on mingw.
24431         * lib/time.in.h (timegm): Use modern idiom.
24432         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
24433         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
24434         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
24435         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
24436
24437 2010-04-03  Bruno Haible  <bruno@clisp.org>
24438
24439         timegm: Assume declaration if function exists.
24440         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
24441         if it exists. Don't clobber ac_cv_func_timegm.
24442
24443 2010-04-03  Bruno Haible  <bruno@clisp.org>
24444
24445         time_r: Fix C++ test error on mingw.
24446         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
24447         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
24448         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
24449         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
24450         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
24451
24452 2010-04-03  Bruno Haible  <bruno@clisp.org>
24453
24454         time_r: Minor updates.
24455         * modules/time_r (Description): Mention the provided functions.
24456         * lib/time_r.c: Don't include <string.h>.
24457         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
24458         * doc/posix-functions/localtime_r.texi: Likewise.
24459
24460 2010-04-03  Bruno Haible  <bruno@clisp.org>
24461
24462         time: Fix regression introduced on 2010-03-08.
24463         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
24464         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
24465
24466 2010-04-03  Jim Meyering  <meyering@redhat.com>
24467
24468         maint.mk: don't silently disable project-specific syntax-check rules
24469         * top/maint.mk (_prohibit_regexp): Define, to help people realize
24470         that they need to convert their project-specific syntax-check rules
24471         to use the new _sc_search_regexp.
24472
24473 2010-04-03  Bruno Haible  <bruno@clisp.org>
24474
24475         fchdir: Fix regression introduced on 2010-03-08.
24476         * lib/unistd.in.h (fchdir): Fix declaration.
24477         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
24478         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
24479         REPLACE_FCHDIR.
24480         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
24481         REPLACE_FCHDIR.
24482
24483 2010-04-03  Bruno Haible  <bruno@clisp.org>
24484
24485         getpagesize: Fix C++ test error on mingw.
24486         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
24487         system does not declare the function.
24488         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
24489         declared.
24490         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
24491         HAVE_DECL_GETPAGESIZE.
24492         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
24493
24494 2010-04-03  Bruno Haible  <bruno@clisp.org>
24495
24496         stdio: Make C++ tests work on mingw.
24497         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
24498         does not declare the function.
24499
24500 2010-04-03  Bruno Haible  <bruno@clisp.org>
24501
24502         ftello: Fix C++ test error on mingw.
24503         * lib/stdio.in.h (ftello): Use modern idiom.
24504         * lib/ftello.c (ftello): Renamed from rpl_ftello.
24505         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
24506         is missing and that it needs to be replaced.
24507         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
24508         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
24509         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
24510
24511 2010-04-03  Bruno Haible  <bruno@clisp.org>
24512
24513         fseeko: Fix C++ test error on mingw.
24514         * lib/stdio.in.h (fseeko): Use modern idiom.
24515         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
24516         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
24517         is missing and that it needs to be replaced.
24518         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
24519         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
24520         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
24521
24522 2010-04-03  Bruno Haible  <bruno@clisp.org>
24523
24524         mkstemp: Fix C++ test error on mingw.
24525         * lib/stdlib.in.h (mkstemp): Use modern idiom.
24526         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
24527         function is missing and that it needs to be replaced.
24528         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
24529         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
24530
24531 2010-04-03  Bruno Haible  <bruno@clisp.org>
24532
24533         stpncpy: Fix C++ test error on mingw.
24534         * lib/string.in.h (stpncpy): Use modern idiom.
24535         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
24536         function is missing and that it needs to be replaced.
24537         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
24538         REPLACE_STPNCPY.
24539         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
24540
24541 2010-04-03  Bruno Haible  <bruno@clisp.org>
24542
24543         sys_stat: Fix C++ test error on mingw.
24544         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
24545         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
24546
24547 2010-04-03  Bruno Haible  <bruno@clisp.org>
24548
24549         pty: Update doc.
24550         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
24551
24552 2010-04-03  Bruno Haible  <bruno@clisp.org>
24553
24554         unistd: Fix C++ test error on mingw.
24555         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
24556
24557 2010-04-03  Bruno Haible  <bruno@clisp.org>
24558
24559         Update doc regarding mingw.
24560         * doc/glibc-functions/openpty.texi: Update regarding mingw.
24561         * doc/glibc-functions/login_tty.texi: Likewise.
24562         * doc/glibc-functions/forkpty.texi: Likewise.
24563
24564 2010-04-03  Bruno Haible  <bruno@clisp.org>
24565
24566         stdlib: Avoid compilation failure of c-strtold on mingw.
24567         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
24568
24569 2010-04-03  Bruno Haible  <bruno@clisp.org>
24570
24571         locale: Make C++ tests work on Cygwin and mingw.
24572         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
24573         cannot provide the function.
24574         Reported by Simon Josefsson.
24575
24576 2010-04-03  Bruno Haible  <bruno@clisp.org>
24577
24578         localename: Port to MacOS X 10.6.
24579         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
24580         memory layout of the locales in MacOS X 10.6 as well.
24581         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
24582
24583 2010-04-02  Bruno Haible  <bruno@clisp.org>
24584
24585         gnulib-tool: Ensure that long-running tests are executed last.
24586         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
24587         running tests after the one for the other tests.
24588
24589 2010-04-02  Bruno Haible  <bruno@clisp.org>
24590
24591         gnulib-tool: Ensure the tests in the main directory are executed first.
24592         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
24593         start with the current directory.
24594
24595 2010-04-02  Bruno Haible  <bruno@clisp.org>
24596
24597         Tests for module 'havelib', moved here from GNU gettext.
24598         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
24599         modifications.
24600         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
24601         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
24602         with modifications.
24603         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
24604         modifications.
24605         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
24606         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
24607         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
24608         with modifications.
24609         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
24610         with modifications.
24611         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
24612         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
24613         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
24614         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
24615         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
24616         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
24617         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
24618         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
24619         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
24620         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
24621         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
24622         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
24623         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
24624         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
24625         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
24626         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
24627         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
24628         with modifications.
24629         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
24630         with modifications.
24631         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
24632         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
24633         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
24634         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
24635         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
24636         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
24637         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
24638         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
24639         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
24640         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
24641         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
24642         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
24643         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
24644         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
24645         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
24646         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
24647         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
24648         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
24649         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
24650         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
24651         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
24652         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
24653         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
24654         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
24655         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
24656         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
24657         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
24658         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
24659         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
24660         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
24661         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
24662         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
24663         * tests/havelib/rpathx/rpathx.c: New file, from
24664         gettext/autoconf-lib-link.
24665         * tests/havelib/rpathx/Makefile.am: New file, from
24666         gettext/autoconf-lib-link.
24667         * tests/havelib/rpathx/configure.ac: New file, from
24668         gettext/autoconf-lib-link with modifications.
24669         * tests/havelib/rpathy/rpathy.c: New file, from
24670         gettext/autoconf-lib-link.
24671         * tests/havelib/rpathy/Makefile.am: New file, from
24672         gettext/autoconf-lib-link.
24673         * tests/havelib/rpathy/configure.ac: New file, from
24674         gettext/autoconf-lib-link with modifications.
24675         * tests/havelib/rpathz/rpathz.c: New file, from
24676         gettext/autoconf-lib-link.
24677         * tests/havelib/rpathz/Makefile.am: New file, from
24678         gettext/autoconf-lib-link.
24679         * tests/havelib/rpathz/configure.ac: New file, from
24680         gettext/autoconf-lib-link with modifications.
24681         * tests/havelib/rpathlx/usex.c: New file, from
24682         gettext/autoconf-lib-link.
24683         * tests/havelib/rpathlx/Makefile.am: New file, from
24684         gettext/autoconf-lib-link.
24685         * tests/havelib/rpathlx/configure.ac: New file, from
24686         gettext/autoconf-lib-link with modifications.
24687         * tests/havelib/rpathly/usey.c: New file, from
24688         gettext/autoconf-lib-link.
24689         * tests/havelib/rpathly/Makefile.am: New file, from
24690         gettext/autoconf-lib-link.
24691         * tests/havelib/rpathly/configure.ac: New file, from
24692         gettext/autoconf-lib-link with modifications.
24693         * tests/havelib/rpathlz/usez.c: New file, from
24694         gettext/autoconf-lib-link.
24695         * tests/havelib/rpathlz/Makefile.am: New file, from
24696         gettext/autoconf-lib-link.
24697         * tests/havelib/rpathlz/configure.ac: New file, from
24698         gettext/autoconf-lib-link with modifications.
24699         * tests/havelib/rpathlyx/usey.c: New file, from
24700         gettext/autoconf-lib-link.
24701         * tests/havelib/rpathlyx/Makefile.am: New file, from
24702         gettext/autoconf-lib-link.
24703         * tests/havelib/rpathlyx/configure.ac: New file, from
24704         gettext/autoconf-lib-link with modifications.
24705         * tests/havelib/rpathlzyx/usez.c: New file, from
24706         gettext/autoconf-lib-link.
24707         * tests/havelib/rpathlzyx/Makefile.am: New file, from
24708         gettext/autoconf-lib-link.
24709         * tests/havelib/rpathlzyx/configure.ac: New file, from
24710         gettext/autoconf-lib-link with modifications.
24711         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
24712         with modifications.
24713
24714 2010-04-02  Bruno Haible  <bruno@clisp.org>
24715
24716         gnulib-tool: Create distributed built sources also for the tests.
24717         * gnulib-tool (func_create_testdir): Also generate distributed built
24718         sources in the tests directory.
24719
24720 2010-04-02  Bruno Haible  <bruno@clisp.org>
24721
24722         gnulib-tool: Obey user's environment variables.
24723         * gnulib-tool (func_create_testdir): When creating built sources,
24724         respect the environment variables for autoconf, automake, etc. given by
24725         the user.
24726
24727 2010-04-02  Bruno Haible  <bruno@clisp.org>
24728
24729         gnulib-tool: Provide the value of --m4-base to modules.
24730         * gnulib-tool (func_import, func_create_testdir): Emit a definition
24731         of gl_m4_base.
24732
24733 2010-04-02  Eric Blake  <eblake@redhat.com>
24734
24735         maint.mk: fix some fallout
24736         * NEWS: Document the incompatible change, and its effect on cfg.mk.
24737         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
24738
24739 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
24740
24741         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
24742         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
24743         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
24744         (sc_cast_of_x_alloc_return_value): Likewise.
24745         (sc_cast_of_alloca_return_value): Likewise.
24746         (sc_space_tab): Likewise.
24747         (sc_prohibit_atoi_atof): Likewise.
24748         (sc_prohibit_magic_number_exit): Likewise.
24749         (sc_error_exit_success): Likewise.
24750         (sc_file_system): Likewise.
24751         (sc_prohibit_have_config_h): Likewise.
24752         (sc_require_config_h): Likewise.
24753         (sc_prohibit_HAVE_MBRTOWC): Likewise.
24754         (sc_obsolete_symbols): Likewise.
24755         (sc_changelog): Likewise.
24756         (sc_program_name): Likewise.
24757         (sc_the_the): Likewise.
24758         (sc_trailing_blank): Likewise.
24759         (sc_two_space_separator_in_usage): Likewise.
24760         (sc_useless_cpp_parens): Likewise.
24761         (sc_GPL_version): Likewise.
24762         (sc_GFDL_version): Likewise.
24763         (sc_texinfo_acronym): Likewise.
24764         (sc_prohibit_cvs_keyword): Likewise.
24765         (sc_prohibit_stat_st_blocks): Likewise.
24766         (sc_prohibit_S_IS_definition): Likewise.
24767         (sc_redundant_const): Likewise.
24768         (sc_makefile_TAB_only_indentation): Likewise.
24769         (sc_m4_quote_check): Likewise.
24770         (sc_makefile_path_separator_check): Likewise.
24771         (sc_copyright_check): Likewise.
24772         (sc_Wundef_boolean): Likewise.
24773         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
24774
24775         maint.mk: match 0 or more whitespace-before-function-call '('
24776         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
24777         that have zero or two-and-more spaces between the function name
24778         and the open parenthesis.
24779         (sc_error_message_warn_fatal): Likewise.
24780         (sc_error_message_uppercase): Likewise.
24781         (sc_error_message_period): Likewise.
24782
24783 2010-03-31  Eric Blake  <eblake@redhat.com>
24784
24785         maint.mk: check for [ as well as test
24786         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
24787         Based on a libvirt report by Matthias Bolte.
24788
24789         gnumakefile: don't squelch _version output
24790         * top/GNUmakefile (_version): Create one-shot dependency rather
24791         than using $(shell) when version must be regenerated.
24792         (_autoreconf): Run verbosely, by default.
24793
24794         sys_time: avoid compiler warnings
24795         * lib/sys_time.in.h (includes): Ensure gcc pragma is
24796         unconditional, fixing regression from 2010-03-29.
24797         Reported by Simon Josefsson.
24798
24799 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
24800
24801         maint.mk: s/_header_without_use/_sc_header_without_use/
24802         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
24803         (sc_prohibit_assert_without_use): Use the new name.
24804         (sc_prohibit_close_stream_without_use): Likewise.
24805         (sc_prohibit_getopt_without_use): Likewise.
24806         (sc_prohibit_quotearg_without_use): Likewise.
24807         (sc_prohibit_quote_without_use): Likewise.
24808         (sc_prohibit_long_options_without_use): Likewise.
24809         (sc_prohibit_inttostr_without_use): Likewise.
24810         (sc_prohibit_ignore_value_without_use): Likewise.
24811         (sc_prohibit_error_without_use): Likewise.
24812         (sc_prohibit_xalloc_without_use): Likewise.
24813         (sc_prohibit_hash_without_use): Likewise.
24814         (sc_prohibit_hash_pjw_without_use): Likewise.
24815         (sc_prohibit_safe_read_without_use): Likewise.
24816         (sc_prohibit_argmatch_without_use): Likewise.
24817         (sc_prohibit_canonicalize_without_use): Likewise.
24818         (sc_prohibit_root_dev_ino_without_use): Likewise.
24819         (sc_prohibit_openat_without_use): Likewise.
24820         (sc_prohibit_c_ctype_without_use): Likewise.
24821         (sc_prohibit_signal_without_use): Likewise.
24822         (sc_prohibit_intprops_without_use): Likewise.
24823
24824 2010-03-30  Eric Blake  <eblake@redhat.com>
24825
24826         maint: improve module indicators
24827         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
24828         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
24829         columns, and avoid extra macro expansion.
24830
24831         fdopendir: work around FreeBSD bug
24832         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
24833         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
24834         * modules/dirent (Makefile.am): Substitute it.
24835         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
24836         declaration.
24837         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
24838         fix.
24839         Reported by Christian Weisgerber <naddy@mips.inka.de>.
24840
24841 2010-03-29  Bruno Haible  <bruno@clisp.org>
24842
24843         Emit #pragma system_header after the inclusion guard, not before.
24844         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
24845         guard that spans the entire file, not before. This enables an
24846         optimization in GCC's preprocessor.
24847         * lib/ctype.in.h: Likewise.
24848         * lib/dirent.in.h: Likewise.
24849         * lib/errno.in.h: Likewise.
24850         * lib/float.in.h: Likewise.
24851         * lib/getopt.in.h: Likewise.
24852         * lib/iconv.in.h: Likewise.
24853         * lib/langinfo.in.h: Likewise.
24854         * lib/locale.in.h: Likewise.
24855         * lib/math.in.h: Likewise.
24856         * lib/netdb.in.h: Likewise.
24857         * lib/netinet_in.in.h: Likewise.
24858         * lib/pty.in.h: Likewise.
24859         * lib/sched.in.h: Likewise.
24860         * lib/se-selinux.in.h: Likewise.
24861         * lib/search.in.h: Likewise.
24862         * lib/spawn.in.h: Likewise.
24863         * lib/stdarg.in.h: Likewise.
24864         * lib/stdint.in.h: Likewise.
24865         * lib/string.in.h: Likewise.
24866         * lib/strings.in.h: Likewise.
24867         * lib/sys_file.in.h: Likewise.
24868         * lib/sys_ioctl.in.h: Likewise.
24869         * lib/sys_time.in.h: Likewise.
24870         * lib/sys_times.in.h: Likewise.
24871         * lib/sys_utsname.in.h: Likewise.
24872         * lib/sys_wait.in.h: Likewise.
24873         * lib/sysexits.in.h: Likewise.
24874         * lib/wctype.in.h: Likewise.
24875
24876 2010-03-28  James Youngman  <jay@gnu.org>
24877
24878         save-cwd: don't leak a file descriptor when the caller execs.
24879         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
24880         saved file descriptor.
24881         * modules/save-cwd (Depends-on): Depend on cloexec.
24882
24883 2010-03-29  Bruno Haible  <bruno@clisp.org>
24884
24885         Remove vestiges of fts-lgpl module.
24886         * lib/fts_.h: Assume GNULIB_FTS is 1.
24887         * lib/fts.c: Likewise.
24888         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
24889
24890 2010-03-28  Bruno Haible  <bruno@clisp.org>
24891
24892         Fix definition of tests witness macro.
24893         * gnulib-tool (func_import): Fix definition of witness macro.
24894
24895 2010-03-28  Bruno Haible  <bruno@clisp.org>
24896
24897         Fix ioctl's protoype on glibc systems.
24898         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
24899         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
24900         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
24901         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
24902         signature. If not, arrange to replace the ioctl function.
24903         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
24904         REPLACE_IOCTL.
24905         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
24906         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
24907         Reported by Ludovic Courtès <ludo@gnu.org>.
24908
24909 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
24910
24911         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
24912         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
24913         made it so grep -r --include=GLOB* ... did not work.
24914
24915 2010-03-26  Jim Meyering  <meyering@redhat.com>
24916             Eric Blake  <eblake@redhat.com>
24917
24918         maint.mk: prohibit use of test's -o and -a operators
24919         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
24920
24921 2010-03-28  Bruno Haible  <bruno@clisp.org>
24922
24923         Remove unused GNULIB_XYZ macro definitions.
24924         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
24925         invocation.
24926
24927 2010-03-28  Bruno Haible  <bruno@clisp.org>
24928
24929         Mark privileged tests modules.
24930         * modules/idpriv-drop-tests (Status): New section.
24931         * modules/idpriv-droptemp-tests (Status): New section.
24932
24933 2010-03-28  Bruno Haible  <bruno@clisp.org>
24934
24935         Split C++ tests into separate tests modules.
24936         * modules/dirent-c++-tests: New file, extracted from
24937         modules/dirent-tests.
24938         * modules/dirent-tests: Depend on it.
24939         * modules/fcntl-h-c++-tests: New file, extracted from
24940         modules/fcntl-h-tests.
24941         * modules/fcntl-h-tests: Depend on it.
24942         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
24943         * modules/glob-tests: Depend on it.
24944         * modules/iconv-h-c++-tests: New file, extracted from
24945         modules/iconv-h-tests.
24946         * modules/iconv-h-tests: Depend on it.
24947         * modules/langinfo-c++-tests: New file, extracted from
24948         modules/langinfo-tests.
24949         * modules/langinfo-tests: Depend on it.
24950         * modules/locale-c++-tests: New file, extracted from
24951         modules/locale-tests.
24952         * modules/locale-tests: Depend on it.
24953         * modules/math-c++-tests: New file, extracted from modules/math-tests.
24954         * modules/math-tests: Depend on it.
24955         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
24956         * modules/pty-tests: Depend on it.
24957         * modules/search-c++-tests: New file, extracted from
24958         modules/search-tests.
24959         * modules/search-tests: Depend on it.
24960         * modules/signal-c++-tests: New file, extracted from
24961         modules/signal-tests.
24962         * modules/signal-tests: Depend on it.
24963         * modules/spawn-c++-tests: New file, extracted from
24964         modules/spawn-tests.
24965         * modules/spawn-tests: Depend on it.
24966         * modules/stdio-c++-tests: New file, extracted from
24967         modules/stdio-tests.
24968         * modules/stdio-tests: Depend on it.
24969         * modules/stdlib-c++-tests: New file, extracted from
24970         modules/stdlib-tests.
24971         * modules/stdlib-tests: Depend on it.
24972         * modules/string-c++-tests: New file, extracted from
24973         modules/string-tests.
24974         * modules/string-tests: Depend on it.
24975         * modules/sys_ioctl-c++-tests: New file, extracted from
24976         modules/sys_ioctl-tests.
24977         * modules/sys_ioctl-tests: Depend on it.
24978         * modules/sys_select-c++-tests: New file, extracted from
24979         modules/sys_select-tests.
24980         * modules/sys_select-tests: Depend on it.
24981         * modules/sys_socket-c++-tests: New file, extracted from
24982         modules/sys_socket-tests.
24983         * modules/sys_socket-tests: Depend on it.
24984         * modules/sys_stat-c++-tests: New file, extracted from
24985         modules/sys_stat-tests.
24986         * modules/sys_stat-tests: Depend on it.
24987         * modules/sys_time-c++-tests: New file, extracted from
24988         modules/sys_time-tests.
24989         * modules/sys_time-tests: Depend on it.
24990         * modules/time-c++-tests: New file, extracted from modules/time-tests.
24991         * modules/time-tests: Depend on it.
24992         * modules/unistd-c++-tests: New file, extracted from
24993         modules/unistd-tests.
24994         * modules/unistd-tests: Depend on it.
24995         * modules/wchar-c++-tests: New file, extracted from
24996         modules/wchar-tests.
24997         * modules/wchar-tests: Depend on it.
24998         * modules/wctype-c++-tests: New file, extracted from
24999         modules/wctype-tests.
25000         * modules/wctype-tests: Depend on it.
25001         Reported by Simon Josefsson.
25002
25003 2010-03-28  Bruno Haible  <bruno@clisp.org>
25004
25005         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
25006         * gnulib-tool (func_exists_module): New function, extracted from
25007         func_verify_module.
25008         (func_verify_module): Use it.
25009         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
25010         'foo' only if 'foo' exists.
25011         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
25012         module.
25013
25014 2010-03-28  Bruno Haible  <bruno@clisp.org>
25015
25016         gnulib-tool: Add support for special categories of tests.
25017         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
25018         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
25019         (func_usage): Document them.
25020         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
25021         inc_unportable_tests, inc_all_tests): New variables.
25022         (func_acceptable): Consider these variables.
25023         (func_modules_transitive_closure): Make it work when the 'Status' field
25024         consists of multiple words.
25025         (func_import): Store and restore the values of inc_cxx_tests,
25026         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
25027         inc_all_tests in gnulib-comp.m4.
25028         (func_create_testdir): Set inc_all_tests to true.
25029         * doc/gnulib.texi (Extra tests modules): New section.
25030         Suggested by Jim Meyering.
25031
25032 2010-03-28  Bruno Haible  <bruno@clisp.org>
25033
25034         ansi-c++-opt: Allow turning off the C++ build by default.
25035         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
25036         gl_CXX_CHOICE_DEFAULT_NO is defined.
25037         Requested by Eric Blake.
25038
25039 2010-03-28  Bruno Haible  <bruno@clisp.org>
25040
25041         unistd: Avoid #define replacements in C++ mode.
25042         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
25043         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
25044         setsockopt, shutdown, select): In C++, attach a warning to the function
25045         if possible, rather than #defining the symbol to a dysfunctional alias.
25046         Reported by John W. Eaton <jwe@gnu.org>.
25047
25048 2010-03-28  Bruno Haible  <bruno@clisp.org>
25049
25050         Fix link errors on mingw.
25051         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
25052         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
25053         $(LIBSOCKET).
25054         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
25055         $(LIBSOCKET).
25056
25057 2010-03-28  Bruno Haible  <bruno@clisp.org>
25058             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25059
25060         lib-ignore: Determine different options for different compilers.
25061         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
25062         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
25063         Add comments.
25064         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
25065         * NEWS: Mention the change.
25066
25067 2010-03-27  Bruno Haible  <bruno@clisp.org>
25068
25069         Remove unused GNULIB_XYZ macro definitions.
25070         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
25071         * modules/fseek (configure.ac): Likewise.
25072         * modules/ioctl (configure.ac): Likewise.
25073         * modules/open (configure.ac): Likewise.
25074         * modules/stdlib-safer (configure.ac): Likewise.
25075
25076 2010-03-27  Bruno Haible  <bruno@clisp.org>
25077
25078         Add a remark about certain modules.
25079         * modules/malloc (Comment): New section.
25080         * modules/realloc (Comment): Likewise.
25081         * modules/sigpipe (Comment): Likewise.
25082
25083 2010-03-27  Bruno Haible  <bruno@clisp.org>
25084
25085         Resolve conflict between the two kinds of module indicators.
25086         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
25087         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
25088         * modules/canonicalize (configure.ac): Invoke
25089         gl_MODULE_INDICATOR_FOR_TESTS.
25090         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
25091         GNULIB_XYZ.
25092         * tests/test-dirent-c++.cc: Likewise.
25093         * tests/test-dirent-safer.c: Likewise.
25094         * tests/test-dup2.c: Likewise.
25095         * tests/test-fchdir.c: Likewise.
25096         * tests/test-fcntl-h-c++.cc: Likewise.
25097         * tests/test-getopt.c: Likewise.
25098         * tests/test-getopt.h: Likewise.
25099         * tests/test-langinfo-c++.cc: Likewise.
25100         * tests/test-locale-c++.cc: Likewise.
25101         * tests/test-math-c++.cc: Likewise.
25102         * tests/test-pty-c++.cc: Likewise.
25103         * tests/test-search-c++.cc: Likewise.
25104         * tests/test-signal-c++.cc: Likewise.
25105         * tests/test-spawn-c++.cc: Likewise.
25106         * tests/test-stdio-c++.cc: Likewise.
25107         * tests/test-stdlib-c++.cc: Likewise.
25108         * tests/test-string-c++.cc: Likewise.
25109         * tests/test-sys_ioctl-c++.cc: Likewise.
25110         * tests/test-sys_select-c++.cc: Likewise.
25111         * tests/test-sys_socket-c++.cc: Likewise.
25112         * tests/test-sys_stat-c++.cc: Likewise.
25113         * tests/test-sys_time-c++.cc: Likewise.
25114         * tests/test-time-c++.cc: Likewise.
25115         * tests/test-unistd-c++.cc: Likewise.
25116         * tests/test-wchar-c++.cc: Likewise.
25117         * tests/uninorm/test-u8-nfc.c: Likewise.
25118         * tests/uninorm/test-u8-nfd.c: Likewise.
25119         * tests/uninorm/test-u8-nfkc.c: Likewise.
25120         * tests/uninorm/test-u8-nfkd.c: Likewise.
25121         * tests/uninorm/test-u16-nfc.c: Likewise.
25122         * tests/uninorm/test-u16-nfd.c: Likewise.
25123         * tests/uninorm/test-u16-nfkc.c: Likewise.
25124         * tests/uninorm/test-u16-nfkd.c: Likewise.
25125         * tests/uninorm/test-u32-nfc.c: Likewise.
25126         * tests/uninorm/test-u32-nfc-big.c: Likewise.
25127         * tests/uninorm/test-u32-nfd.c: Likewise.
25128         * tests/uninorm/test-u32-nfd-big.c: Likewise.
25129         * tests/uninorm/test-u32-nfkc.c: Likewise.
25130         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
25131         * tests/uninorm/test-u32-nfkd.c: Likewise.
25132         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
25133         * tests/uninorm/test-u32-normalize-big.c: Likewise.
25134
25135 2010-03-27  Bruno Haible  <bruno@clisp.org>
25136
25137         Distinguish two kinds of module indicators.
25138         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
25139         gl_MODULE_INDICATOR.
25140         (gl_MODULE_INDICATOR): New macro.
25141         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
25142         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
25143         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
25144         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
25145         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
25146         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
25147         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
25148         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
25149         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
25150         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
25151         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
25152         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
25153         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
25154         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
25155         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
25156         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
25157         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
25158         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
25159         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
25160         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
25161         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
25162         * modules/cloexec (configure.ac): Likewise.
25163         * modules/getopt-gnu (configure.ac): Likewise.
25164         * modules/uninorm/u8-normalize (configure.ac): Likewise.
25165         * modules/uninorm/u16-normalize (configure.ac): Likewise.
25166         * modules/uninorm/u32-normalize (configure.ac): Likewise.
25167         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
25168
25169 2010-03-27  Bruno Haible  <bruno@clisp.org>
25170
25171         New module description field 'Comment'.
25172         * gnulib-tool: New option --extract-comment.
25173         (func_usage): Document it.
25174         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
25175         (func_get_comment): New function.
25176         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
25177
25178 2010-03-27  Bruno Haible  <bruno@clisp.org>
25179
25180         Addendum to 2010-02-07 commit.
25181         * gnulib-tool (func_usage): Document --extract-applicability option.
25182
25183 2010-03-27  Bruno Haible  <bruno@clisp.org>
25184
25185         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
25186         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
25187         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
25188         rather than link errors.
25189
25190 2010-03-27  Bruno Haible  <bruno@clisp.org>
25191
25192         Avoid side effects from tests-related modules on the compilation of lib.
25193         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
25194         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
25195         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
25196         parameter. Emit into AM_CPPFLAGS a definition of the designated C
25197         macro.
25198         (func_import): Define a witness macro. Assign it a value that depends
25199         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
25200         tests-related modules.
25201         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
25202         Reported by Jim Meyering.
25203
25204 2010-03-27  Bruno Haible  <bruno@clisp.org>
25205
25206         Factorize common .m4 code.
25207         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
25208         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
25209         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
25210         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
25211         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
25212         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
25213         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
25214         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
25215         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
25216         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
25217         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
25218         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
25219         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
25220         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
25221         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
25222         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
25223         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
25224         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
25225         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
25226         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
25227         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
25228         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
25229         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
25230         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
25231         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
25232         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
25233         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
25234         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
25235         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
25236         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
25237         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
25238         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
25239
25240 2010-03-27  Bruno Haible  <bruno@clisp.org>
25241
25242         Fix a compilation error on Cygwin with g++ >= 4.3.
25243         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
25244         if it is undefined or if we alias it to chmod.
25245         (lstat): Don't warn about the use of this function if it is undefined
25246         or if we alias it to stat.
25247         Reported by Simon Josefsson.
25248
25249 2010-03-27  Bruno Haible  <bruno@clisp.org>
25250
25251         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
25252         * modules/getlogin (configure.ac): Update.
25253
25254         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
25255         * modules/getlogin_r (configure.ac): Update.
25256
25257         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
25258         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
25259         * modules/inet_ntop (configure.ac): Update.
25260
25261         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
25262         * modules/inet_pton (configure.ac): Update.
25263
25264         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
25265         * modules/mbslen (configure.ac): Update.
25266
25267         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
25268         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
25269         * modules/forkpty (configure.ac): Update.
25270         * modules/openpty (configure.ac): Update.
25271
25272 2010-03-26  Simon Josefsson  <simon@josefsson.org>
25273
25274         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
25275         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
25276
25277 2010-03-25  Eric Blake  <eblake@redhat.com>
25278
25279         maint: use pragma consistently across replacement headers
25280         * lib/ctype.in.h (system_header): Hoist for consistent placement.
25281         * lib/dirent.in.h (system_header): Likewise.
25282         * lib/errno.in.h (system_header): Likewise.
25283         * lib/float.in.h (system_header): Likewise.
25284         * lib/getopt.in.h (system_header): Likewise.
25285         * lib/iconv.in.h (system_header): Likewise.
25286         * lib/inttypes.in.h (system_header): Likewise.
25287         * lib/langinfo.in.h (system_header): Likewise.
25288         * lib/locale.in.h (system_header): Likewise.
25289         * lib/math.in.h (system_header): Likewise.
25290         * lib/netdb.in.h (system_header): Likewise.
25291         * lib/netinet_in.in.h (system_header): Likewise.
25292         * lib/pty.in.h (system_header): Likewise.
25293         * lib/sched.in.h (system_header): Likewise.
25294         * lib/se-selinux.in.h (system_header): Likewise.
25295         * lib/search.in.h (system_header): Likewise.
25296         * lib/spawn.in.h (system_header): Likewise.
25297         * lib/stdarg.in.h (system_header): Likewise.
25298         * lib/stdint.in.h (system_header): Likewise.
25299         * lib/string.in.h (system_header): Likewise.
25300         * lib/strings.in.h (system_header): Likewise.
25301         * lib/sys_file.in.h (system_header): Likewise.
25302         * lib/sys_ioctl.in.h (system_header): Likewise.
25303         * lib/sys_socket.in.h (system_header): Likewise.
25304         * lib/sys_times.in.h (system_header): Likewise.
25305         * lib/sys_utsname.in.h (system_header): Likewise.
25306         * lib/sys_wait.in.h (system_header): Likewise.
25307         * lib/sysexits.in.h (system_header): Likewise.
25308         * lib/unistd.in.h (system_header): Likewise.
25309         * lib/wctype.in.h (system_header): Likewise.
25310
25311         arpa/inet: fix mingw compilation warning
25312         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
25313         Reported by Matthew Bolte.
25314
25315 2010-03-25  Bruno Haible  <bruno@clisp.org>
25316
25317         Avoid collision between gnulib wrapper and libintl wrapper.
25318         * lib/printf.c (printf): Don't define if a printf wrapper is already
25319         defined in intl/printf.c.
25320         Reported by Michel Boaventura <michel@michelboaventura.com>.
25321
25322 2010-03-25  Bruno Haible  <bruno@clisp.org>
25323
25324         Use ANSI C.
25325         * lib/readutmp.h (getutent): Provide ANSI C prototype.
25326
25327 2010-03-25  Bruno Haible  <bruno@clisp.org>
25328
25329         Minor formatting changes.
25330         * lib/acosl.c: Insert space before function argument list.
25331         * lib/argz.c: Likewise.
25332         * lib/asinl.c: Likewise.
25333         * lib/expl.c: Likewise.
25334         * lib/gen-uni-tables.c: Likewise.
25335         * lib/gettext.h: Likewise.
25336         * lib/glthread/lock.h: Likewise.
25337         * lib/tanl.c: Likewise.
25338         * lib/uniname/uniname.c: Likewise.
25339         * tests/test-idpriv-drop.c: Likewise.
25340         * tests/test-idpriv-droptemp.c: Likewise.
25341         * tests/test-lock.c: Likewise.
25342         * tests/test-tls.c: Likewise.
25343         * lib/argp-help.c: Insert space before function-like macro argument
25344         list.
25345         * lib/memcmp.c: Likewise.
25346         * tests/test-base64.c: Likewise.
25347         * lib/localename.c: Insert space before sizeof's argument list.
25348         * lib/safe-alloc.h: Likewise.
25349         * lib/file-set.h: Insert space before macro argument list.
25350         * tests/test-argp.c: Likewise.
25351         * lib/argp-namefrob.h: Insert space before function parameter list.
25352         * lib/getaddrinfo.c: Likewise.
25353         * lib/netdb.in.h: Likewise.
25354         * lib/parse-duration.h: Likewise.
25355         * lib/parse-duration.c: Likewise.
25356         * lib/poll.c: Likewise.
25357         * lib/select.c: Likewise.
25358         * lib/trim.h: Likewise.
25359         * tests/test-usleep.c: Likewise.
25360         * lib/ldexpl.c: Insert space before function parameter list and before
25361         function argument list.
25362         * lib/logl.c: Likewise.
25363         * lib/sqrtl.c: Likewise.
25364         * lib/trim.c: Likewise.
25365         * lib/cosl.c: Use GNU style indentation. Insert space before function
25366         argument list.
25367         * lib/sinl.c: Likewise.
25368         * lib/tsearch.c: Insert space after 'for'.
25369         Reported by Jim Meyering.
25370
25371 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
25372
25373         * maint.mk (sc_Wundef_boolean): Check for the presence of the
25374         config header before grepping, as it's not present before
25375         autoreconf/configure are run.  Reported by Simon Josefsson.
25376
25377 2010-03-23  Bruno Haible  <bruno@clisp.org>
25378
25379         pt_chown: Make it work with automake < 1.11.
25380         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
25381         Reported by Simon Josefsson.
25382
25383 2010-03-23  Bruno Haible  <bruno@clisp.org>
25384
25385         pt_chown: Don't depend on GPLed modules.
25386         * lib/pt_chown.c: Don't include idpriv.h.
25387         (main): Don't drop privileges.
25388         * modules/pt_chown (Depends-on): Remove idpriv-drop.
25389         Reported by Simon Josefsson.
25390
25391 2010-03-24  Simon Josefsson  <simon@josefsson.org>
25392
25393         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
25394         suggestions from karl@freefriends.org (Karl Berry).
25395
25396 2010-03-22  Eric Blake  <eblake@redhat.com>
25397
25398         gethostname: further tweaks
25399         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
25400         are overriding gethostname.
25401         Suggested by Bruno Haible.
25402
25403 2010-03-21  Bruno Haible  <bruno@clisp.org>
25404
25405         Fix comments.
25406         * lib/forkpty.c (rpl_forkpty): Fix comment.
25407         * lib/openpty.c (rpl_openpty): Likewise.
25408         Reported by Eric Blake.
25409
25410 2010-03-22  Eric Blake  <eblake@redhat.com>
25411
25412         gethostname: fix build on mingw
25413         * lib/unistd.in.h (includes): Work around fact that mingw
25414         <winsock2.h> re-includes <unistd.h>, by avoiding any
25415         redeclarations if we are being included by <winsock2.h>.
25416         Reported by Matthias Bolte.
25417
25418 2010-03-21  Bruno Haible  <bruno@clisp.org>
25419
25420         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
25421         * lib/forkpty.c (forkpty): New replacement function, from glibc with
25422         modifications.
25423         * lib/pty.in.h (forkpty): Update declaration. Add comments.
25424         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
25425         provide the replacement.
25426         * modules/forkpty (Depends-on): Add openpty, login_tty.
25427         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
25428         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
25429         * doc/glibc-functions/forkpty.texi: More supported platforms.
25430         * config/srclist.txt: Add forkpty.c (commented).
25431
25432 2010-03-21  Bruno Haible  <bruno@clisp.org>
25433
25434         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
25435         (Makefile.am): Verify that PTY_LIB is defined.
25436
25437         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
25438
25439 2010-03-21  Bruno Haible  <bruno@clisp.org>
25440
25441         Tests for module 'login_tty'.
25442         * modules/login_tty-tests: New file.
25443         * tests/test-login_tty.c: New file.
25444
25445         New module 'login_tty'.
25446         * lib/login_tty.c: New file.
25447         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
25448         * modules/login_tty: New file.
25449         * doc/glibc-functions/login_tty.texi: Mention the new module.
25450
25451 2010-03-21  Bruno Haible  <bruno@clisp.org>
25452
25453         login_tty: Documentation.
25454         * doc/glibc-functions/login_tty.texi: New file.
25455         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
25456
25457 2010-03-21  Bruno Haible  <bruno@clisp.org>
25458
25459         pty: Consistent macro naming.
25460         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
25461         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
25462         * modules/pty (configure.ac): Update.
25463
25464 2010-03-21  Bruno Haible  <bruno@clisp.org>
25465
25466         Tests for openpty: Make stricter.
25467         * tests/test-openpty.c (main): Add test of canonical processing and
25468         erase.
25469         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
25470
25471         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
25472         * lib/openpty.c (openpty): New replacement function.
25473         * lib/pty.in.h: Include <termios.h>.
25474         (openpty): Update declaration. Add comments.
25475         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
25476         is not declared, arrange to provide the replacement. Check for _getpty
25477         and posix_openpt.
25478         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
25479         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
25480         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
25481         * modules/pty-tests (test_pty_c___LDADD): New variable.
25482         * doc/glibc-functions/openpty.texi: More supported platforms.
25483
25484 2010-03-21  Bruno Haible  <bruno@clisp.org>
25485
25486         setenv: Tweaks.
25487         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
25488         the test program.
25489         * doc/posix-functions/setenv.texi: Update platforms list.
25490
25491 2010-03-21  Bruno Haible  <bruno@clisp.org>
25492
25493         New module 'unlockpt'.
25494         * lib/unlockpt.c: New file, from glibc with modifications.
25495         * m4/unlockpt.m4: New file.
25496         * modules/unlockpt: New file.
25497         * lib/stdlib.in.h (unlockpt): New declaration.
25498         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
25499         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
25500         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
25501         HAVE_UNLOCKPT.
25502         * doc/posix-functions/unlockpt.texi: Mention the new module.
25503         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
25504         * config/srclist.txt: Add unlockpt.c (commented).
25505
25506 2010-03-21  Jim Meyering  <meyering@redhat.com>
25507
25508         maint.mk: prohibit inclusion of "intprops.h" without use
25509         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
25510
25511 2010-03-21  Bruno Haible  <bruno@clisp.org>
25512
25513         New module 'grantpt'.
25514         * lib/grantpt.c: New file, from glibc with modifications.
25515         * m4/grantpt.m4: New file.
25516         * modules/grantpt: New file.
25517         * lib/stdlib.in.h (grantpt): New declaration.
25518         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
25519         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
25520         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
25521         HAVE_GRANTPT.
25522         * doc/posix-functions/grantpt.texi: Mention the new module.
25523         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
25524         * config/srclist.txt: Add grantpt.c (commented).
25525
25526 2010-03-21  Bruno Haible  <bruno@clisp.org>
25527
25528         New module 'pt_chown'.
25529         * lib/pt_chown.c: New file, from glibc with modifications.
25530         * lib/pty-private.h: New file, from glibc with modifications.
25531         * modules/pt_chown: New file.
25532         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
25533
25534 2010-03-21  Bruno Haible  <bruno@clisp.org>
25535
25536         Tests for module 'ptsname'.
25537         * modules/ptsname-tests: New file.
25538         * tests/test-ptsname.c: New file.
25539
25540         New module 'ptsname'.
25541         * lib/ptsname.c: New file, from glibc with modifications.
25542         * m4/ptsname.m4: New file.
25543         * modules/ptsname: New file.
25544         * lib/stdlib.in.h (ptsname): New declaration.
25545         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
25546         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
25547         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
25548         HAVE_PTSNAME.
25549         * doc/posix-functions/ptsname.texi: Mention the new module.
25550         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
25551         * config/srclist.txt: Add ptsname.c (commented).
25552
25553 2010-03-21  Bruno Haible  <bruno@clisp.org>
25554
25555         Tests for module 'ttyname_r'.
25556         * modules/ttyname_r-tests: New file.
25557         * tests/test-ttyname_r.c: New file.
25558
25559         New module 'ttyname_r'.
25560         * lib/ttyname_r.c: New file.
25561         * m4/ttyname_r.m4: New file.
25562         * modules/ttyname_r: New file.
25563         * lib/unistd.in.h (ttyname_r): New declaration.
25564         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
25565         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
25566         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
25567         HAVE_TTYNAME_R.
25568         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
25569         * doc/posix-functions/ttyname_r.texi: Mention the new module.
25570
25571 2010-03-20  Bruno Haible  <bruno@clisp.org>
25572
25573         signal: Undefine macro definitions in C++ mode.
25574         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
25575         sigfillset): Undefine macro definitions from the system header in C++
25576         mode.
25577         Reported by John W. Eaton <jwe@gnu.org>.
25578
25579 2010-03-20  Bruno Haible  <bruno@clisp.org>
25580
25581         Ensure no #include statements inside extern "C" { ... }.
25582         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
25583         contain #include statements.
25584         * lib/time.in.h: Likewise.
25585
25586 2010-03-20  Bruno Haible  <bruno@clisp.org>
25587
25588         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
25589         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
25590         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
25591         Reported by John W. Eaton <jwe@gnu.org>.
25592
25593 2010-03-20  Bruno Haible  <bruno@clisp.org>
25594
25595         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
25596         Reported by Jim Meyering.
25597
25598 2010-03-20  Bruno Haible  <bruno@clisp.org>
25599
25600         pipe: Set errno upon failure.
25601         * lib/pipe.h: Specify that when -1 is returned, errno is set.
25602         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
25603         errno value in error message.
25604
25605 2010-03-20  Bruno Haible  <bruno@clisp.org>
25606             Jim Meyering  <meyering@redhat.com>
25607
25608         lchown: Avoid "unused variable" warning.
25609         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
25610
25611 2010-03-20  Bruno Haible  <bruno@clisp.org>
25612
25613         Work around unlink() bug on MacOS X 10.5.6.
25614         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
25615         attempting to unlink a parent directory.
25616         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
25617         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
25618         activate for the replacement function.
25619         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
25620
25621 2010-03-20  Bruno Haible  <bruno@clisp.org>
25622
25623         Fix link errors on Solaris 8.
25624         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
25625         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
25626
25627 2010-03-19  Jim Meyering  <meyering@redhat.com>
25628
25629         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
25630         The _LIBC implementation of build_range_exp correctly honors the
25631         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
25632         However, the non-_LIBC implementation would ignore that syntax-bit
25633         flag and return REG_ERANGE unconditionally.
25634         This change makes it honor that flag.
25635         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
25636         Make two pointer parameters "const".
25637         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
25638         (parse_bracket_exp): Update caller.
25639
25640         regex.m4: correct the reversed range endpoint ([b-a]) test
25641         * m4/regex.m4: When requiring that [b-a] evoke failure,
25642         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
25643         test pass once again for x86-based systems.
25644
25645 2010-03-19  Bruno Haible  <bruno@clisp.org>
25646
25647         scandir: Fix link error on Solaris 8.
25648         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
25649         macros.
25650
25651 2010-03-19  Bruno Haible  <bruno@clisp.org>
25652
25653         getusershell: Fix documentation.
25654         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
25655         module.
25656         * doc/glibc-functions/setusershell.texi: Likewise.
25657
25658         getusershell: Provide declaration, missing on Solaris 9.
25659         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
25660         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
25661         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
25662         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
25663         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
25664         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
25665         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
25666         HAVE_GETUSERSHELL.
25667         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
25668
25669 2010-03-19  Bruno Haible  <bruno@clisp.org>
25670
25671         wctype: Provide iswblank function.
25672         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
25673         exists and is fine.
25674         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
25675         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
25676         * tests/test-wctype.c (main): Re-enable the iswblank tests.
25677         * doc/posix-functions/iswblank.texi: Update.
25678
25679 2010-03-19  Bruno Haible  <bruno@clisp.org>
25680
25681         Tests of module 'pty' in C++ mode.
25682         * modules/pty-tests: New file.
25683         * tests/test-pty-c++.cc: New file.
25684         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
25685
25686 2010-03-19  Eric Blake  <eblake@redhat.com>
25687
25688         logb: fix documentation
25689         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
25690         1.5 declaration bug.
25691
25692         forkpty, openpty: prefer glibc's const-safe prototype
25693         * lib/forkpty.c (rpl_forkpty): New file.
25694         * lib/openpty.c (rpl_openpty): Likewise.
25695         * modules/forkpty (Files): Distribute it.
25696         * modules/openpty (Files): Likewise.
25697         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
25698         check...
25699         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
25700         replacement for for non-const BSD signature.
25701         * modules/pty (Makefile.am): Substitute witnesses.
25702         * lib/pty.in.h (forkpty, openpty): Declare replacements.
25703         * tests/test-forkpty.c: Update signature check.
25704         * tests/test-openpty.c: Likewise.
25705         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
25706         * doc/glibc-functions/openpty.texi (openpty): Likewise.
25707
25708         forkpty, openpty: split functions into new modules
25709         * modules/pty (Makefile.am): Substitute new witnesses.
25710         (Libraries): Move library detection...
25711         * modules/forkpty: ...into new module.
25712         * modules/openpty: Another new module.
25713         * modules/pty-tests: Rename and split...
25714         * modules/forkpty-tests: ...to this...
25715         * modules/openpty-tests: ...and this.
25716         * tests/test-pty.c: Rename and split...
25717         * tests/test-forkpty.c: ...to this...
25718         * tests/test-openpty.c: ...and this.
25719         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
25720         (gl_PTY): Split library searching...
25721         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
25722         (gl_FORKPTY, gl_OPENPTY): New macros.
25723         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
25724         * NEWS: Mention the split.
25725         * MODULES.html.sh (Misc): Document the modules.
25726         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
25727         * doc/glibc-functions/openpty.texi (openpty): Likewise.
25728
25729         pty: improve replacement header
25730         * lib/pty.in.h: New file.
25731         * modules/pty (Files): Ship it.
25732         (Makefile.am): Always build replacement.
25733         * m4/pty.m4: Rename...
25734         * m4/pty_h.m4: ...to this.
25735         (gl_PTY): Modernize setting of witness macros; update check of
25736         forkpty to take proper advantage of cache.
25737         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
25738
25739         getopt: avoid compiler warning
25740         * lib/getopt.c (attribute_hidden): Remove unused macro.
25741
25742 2010-03-18  Bruno Haible  <bruno@clisp.org>
25743
25744         Fix link errors on Solaris 8.
25745         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
25746         * modules/search-tests (test_search_c___LDADD): Likewise.
25747         * modules/signal-tests (test_signal_c___LDADD): Likewise.
25748         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
25749         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
25750         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
25751         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
25752         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
25753         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
25754
25755 2010-03-18  Bruno Haible  <bruno@clisp.org>
25756
25757         Fix bug introduced on 2010-03-14.
25758         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
25759         (gl_SPAWN_H): Require it.
25760         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
25761         Reported by Simon Josefsson.
25762
25763 2010-03-18  Bruno Haible  <bruno@clisp.org>
25764
25765         Fix typo introduced on 2009-12-31.
25766         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
25767         posix_spawn_file_actions_adddup2.
25768
25769 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
25770         and Eric Blake  <eblake@redhat.com>
25771
25772         test-vc-list-files-git: make more robust
25773         * tests/test-vc-list-files-git.sh: Unset problematic environment
25774         variables.  Chain commands together.
25775
25776 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
25777
25778         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
25779         `AC_CHECK_DECL' invocation.
25780
25781 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
25782
25783         * lib/inttostr.c (inttostr): Make sure the invocation of verify
25784         appears before executable statements. Suggested by Petr Sumbera
25785         <Petr.Sumbera@Sun.COM>.
25786
25787 2010-03-14  Bruno Haible  <bruno@clisp.org>
25788
25789         * tests/test-flock.c (test_exclusive): Comment out a test that causes
25790         portability problems. Instead use a simpler test.
25791         (main): Check that invalid arguments are rejected only on Linux.
25792
25793 2010-03-14  Bruno Haible  <bruno@clisp.org>
25794
25795         Fix bug introduced on 2009-12-31.
25796         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
25797         gl_PREREQ_SYS_H_WINSOCK2 always.
25798         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
25799         SYS_SOCKET_H variable.
25800         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
25801         Update comments.
25802         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
25803         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
25804         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
25805         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
25806         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
25807
25808 2010-03-14  Bruno Haible  <bruno@clisp.org>
25809
25810         Fix values returned by sinl, cosl.
25811         * lib/trigl.h: Add specification comments.
25812         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
25813         that combines the values from the precomputed table with the values of
25814         the Chebyshev polynomials.
25815
25816 2010-03-14  Bruno Haible  <bruno@clisp.org>
25817
25818         Fix compilation error when modules 'posix_spawn[p]' are not used.
25819         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
25820         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
25821
25822 2010-03-14  Bruno Haible  <bruno@clisp.org>
25823
25824         Fix compilation error on mingw when module 'time_r' is not used.
25825         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
25826         is 1.
25827         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
25828         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
25829         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
25830         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
25831
25832 2010-03-14  Bruno Haible  <bruno@clisp.org>
25833
25834         Fix compilation error with Sun C.
25835         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
25836         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
25837         instead of GCC specific ULONG_LONG_MAX.
25838         * lib/xstrtoll.c: Likewise.
25839         * lib/xstrtoull.c: Likewise.
25840
25841 2010-03-13  Bruno Haible  <bruno@clisp.org>
25842
25843         Allow the user to disable C++ code and tests.
25844         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
25845         (gl_PROG_ANSI_CXX): Require it.
25846
25847 2010-03-13  Bruno Haible  <bruno@clisp.org>
25848
25849         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
25850         cases.
25851
25852 2010-03-13  Bruno Haible  <bruno@clisp.org>
25853
25854         Test that gnulib does not break the standard C++ headers.
25855         * tests/test-locale-c++2.cc: New file.
25856         * modules/locale-tests (Files): Add it.
25857         (Makefile.am): Compile it for test-locale-c++.
25858         * tests/test-math-c++2.cc: New file.
25859         * modules/math-tests (Files): Add it.
25860         (Makefile.am): Compile it for test-math-c++.
25861         * tests/test-signal-c++2.cc: New file.
25862         * modules/signal-tests (Files): Add it.
25863         (Makefile.am): Compile it for test-signal-c++.
25864         * tests/test-stdio-c++2.cc: New file.
25865         * modules/stdio-tests (Files): Add it.
25866         (Makefile.am): Compile it for test-stdio-c++.
25867         * tests/test-stdlib-c++2.cc: New file.
25868         * modules/stdlib-tests (Files): Add it.
25869         (Makefile.am): Compile it for test-stdlib-c++.
25870         * tests/test-string-c++2.cc: New file.
25871         * modules/string-tests (Files): Add it.
25872         (Makefile.am): Compile it for test-string-c++.
25873         * tests/test-time-c++2.cc: New file.
25874         * modules/time-tests (Files): Add it.
25875         (Makefile.am): Compile it for test-time-c++.
25876         Reported by John W. Eaton <jwe@gnu.org>.
25877
25878 2010-03-13  Bruno Haible  <bruno@clisp.org>
25879
25880         * gnulib-tool (func_usage): Clarify which options are available for
25881         --create-testdir and --create-megatestdir.
25882
25883 2010-03-13  Bruno Haible  <bruno@clisp.org>
25884
25885         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
25886         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
25887         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
25888         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
25889         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
25890         when appropriate.
25891         Reported by Jim Meyering.
25892
25893 2010-03-12  Simon Josefsson  <simon@josefsson.org>
25894
25895         * gnulib-tool (func_import): Explain origin of code.
25896
25897 2010-03-12  Bruno Haible  <bruno@clisp.org>
25898
25899         Fix problem with automake's definition of CXXLINK.
25900         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
25901         Reported by Simon Josefsson and Ludovic Courtès.
25902
25903 2010-03-12  Bruno Haible  <bruno@clisp.org>
25904
25905         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
25906         stable releases.
25907
25908 2010-03-11  Bruno Haible  <bruno@clisp.org>
25909
25910         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
25911         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
25912         whether the system provides one variant or multiple variants of the
25913         function.
25914         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
25915         C++ compilers.
25916         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
25917         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
25918         Reported by Jim Meyering.
25919
25920 2010-03-09  Simon Josefsson  <simon@josefsson.org>
25921
25922         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
25923
25924 2010-03-08  Bruno Haible  <bruno@clisp.org>
25925
25926         gnulib-tool: Add support for --libtool in --create-testdir.
25927         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
25928         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
25929
25930 2010-03-08  Eric Blake  <eblake@redhat.com>
25931
25932         gnulib-tool.texi: mention possibility of git submodule
25933         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
25934         submodules.
25935         * doc/.gitignore: Ignore another generated file.
25936
25937 2010-03-08  Karl Berry  <karl@gnu.org>
25938
25939         * doc/gnulib-tool.texi (VCS Issues): Mention third option
25940         of committing gnulib files while skipping others.
25941
25942 2010-03-07  Bruno Haible  <bruno@clisp.org>
25943
25944         Tests of module 'wctype' in C++ mode.
25945         * tests/test-wctype-c++.cc: New file.
25946         * modules/wctype-tests (Files): Add it and tests/signature.h.
25947         (Depends-on): Add ansi-c++-opt.
25948         (Makefile.am): Arrange to compile and run test-wctype-c++.
25949
25950         Tests of module 'wchar' in C++ mode.
25951         * tests/test-wchar-c++.cc: New file.
25952         * modules/wchar-tests (Files): Add it and tests/signature.h.
25953         (Depends-on): Add ansi-c++-opt.
25954         (Makefile.am): Arrange to compile and run test-wchar-c++.
25955         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
25956         gl_MODULE_INDICATOR.
25957
25958         Tests of module 'unistd' in C++ mode.
25959         * tests/test-unistd-c++.cc: New file.
25960         * modules/unistd-tests (Files): Add it and tests/signature.h.
25961         (Depends-on): Add ansi-c++-opt.
25962         (Makefile.am): Arrange to compile and run test-unistd-c++.
25963         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
25964         gl_MODULE_INDICATOR.
25965
25966         Tests of module 'time' in C++ mode.
25967         * tests/test-time-c++.cc: New file.
25968         * modules/time-tests (Files): Add it and tests/signature.h.
25969         (Depends-on): Add ansi-c++-opt.
25970         (Makefile.am): Arrange to compile and run test-time-c++.
25971         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
25972
25973         Tests of module 'sys_time' in C++ mode.
25974         * tests/test-sys_time-c++.cc: New file.
25975         * modules/sys_time-tests (Files): Add it and tests/signature.h.
25976         (Depends-on): Add ansi-c++-opt.
25977         (Makefile.am): Arrange to compile and run test-sys_time-c++.
25978         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
25979         gl_MODULE_INDICATOR.
25980
25981         Tests of module 'sys_stat' in C++ mode.
25982         * tests/test-sys_stat-c++.cc: New file.
25983         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
25984         (Depends-on): Add ansi-c++-opt.
25985         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
25986         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
25987         gl_MODULE_INDICATOR.
25988
25989         Tests of module 'sys_socket' in C++ mode.
25990         * tests/test-sys_socket-c++.cc: New file.
25991         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
25992         (Depends-on): Add ansi-c++-opt.
25993         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
25994         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
25995         gl_MODULE_INDICATOR.
25996
25997         Tests of module 'sys_select' in C++ mode.
25998         * tests/test-sys_select-c++.cc: New file.
25999         * modules/sys_select-tests (Files): Add it and tests/signature.h.
26000         (Depends-on): Add ansi-c++-opt.
26001         (Makefile.am): Arrange to compile and run test-sys_select-c++.
26002         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
26003         gl_MODULE_INDICATOR.
26004
26005         Tests of module 'sys_ioctl' in C++ mode.
26006         * tests/test-sys_ioctl-c++.cc: New file.
26007         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
26008         (Depends-on): Add ansi-c++-opt.
26009         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
26010         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
26011         gl_MODULE_INDICATOR.
26012
26013         Tests of module 'string' in C++ mode.
26014         * tests/test-string-c++.cc: New file.
26015         * modules/string-tests (Files): Add it and tests/signature.h.
26016         (Depends-on): Add ansi-c++-opt.
26017         (Makefile.am): Arrange to compile and run test-string-c++.
26018         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
26019         gl_MODULE_INDICATOR.
26020
26021         Tests of module 'stdlib' in C++ mode.
26022         * tests/test-stdlib-c++.cc: New file.
26023         * modules/stdlib-tests (Files): Add it and tests/signature.h.
26024         (Depends-on): Add ansi-c++-opt.
26025         (Makefile.am): Arrange to compile and run test-stdlib-c++.
26026         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
26027         gl_MODULE_INDICATOR.
26028
26029         Tests of module 'stdio' in C++ mode.
26030         * tests/test-stdio-c++.cc: New file.
26031         * modules/stdio-tests (Files): Add it and tests/signature.h.
26032         (Depends-on): Add ansi-c++-opt.
26033         (Makefile.am): Arrange to compile and run test-stdio-c++.
26034         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
26035         gl_MODULE_INDICATOR.
26036
26037         Tests of module 'spawn' in C++ mode.
26038         * tests/test-spawn-c++.cc: New file.
26039         * modules/spawn-tests (Files): Add it and tests/signature.h.
26040         (Depends-on): Add ansi-c++-opt.
26041         (Makefile.am): Arrange to compile and run test-spawn-c++.
26042         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
26043         gl_MODULE_INDICATOR.
26044
26045         Tests of module 'signal' in C++ mode.
26046         * tests/test-signal-c++.cc: New file.
26047         * modules/signal-tests (Files): Add it and tests/signature.h.
26048         (Depends-on): Add ansi-c++-opt.
26049         (Makefile.am): Arrange to compile and run test-signal-c++.
26050         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
26051         gl_MODULE_INDICATOR.
26052
26053         Tests of module 'search' in C++ mode.
26054         * tests/test-search-c++.cc: New file.
26055         * modules/search-tests (Files): Add it and tests/signature.h.
26056         (Depends-on): Add ansi-c++-opt.
26057         (Makefile.am): Arrange to compile and run test-search-c++.
26058         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
26059         gl_MODULE_INDICATOR.
26060
26061         Tests of module 'math' in C++ mode.
26062         * tests/test-math-c++.cc: New file.
26063         * modules/math-tests (Files): Add it and tests/signature.h.
26064         (Depends-on): Add ansi-c++-opt.
26065         (Makefile.am): Arrange to compile and run test-math-c++.
26066         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
26067
26068         Tests of module 'locale' in C++ mode.
26069         * tests/test-locale-c++.cc: New file.
26070         * modules/locale-tests (Files): Add it and tests/signature.h.
26071         (Depends-on): Add ansi-c++-opt.
26072         (Makefile.am): Arrange to compile and run test-locale-c++.
26073         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
26074         gl_MODULE_INDICATOR.
26075
26076         Tests of module 'langinfo' in C++ mode.
26077         * tests/test-langinfo-c++.cc: New file.
26078         * modules/langinfo-tests (Files): Add it and tests/signature.h.
26079         (Depends-on): Add ansi-c++-opt.
26080         (Makefile.am): Arrange to compile and run test-langinfo-c++.
26081         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
26082         gl_MODULE_INDICATOR.
26083
26084         Tests of module 'iconv-h' in C++ mode.
26085         * tests/test-iconv-h-c++.cc: New file.
26086         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
26087         (Depends-on): Add ansi-c++-opt.
26088         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
26089
26090         Tests of module 'glob' in C++ mode.
26091         * tests/test-glob-c++.cc: New file.
26092         * modules/glob-tests (Files): Add it.
26093         (Depends-on): Add ansi-c++-opt.
26094         (Makefile.am): Arrange to compile and run test-glob-c++.
26095
26096         Tests of module 'fcntl-h' in C++ mode.
26097         * tests/test-fcntl-h-c++.cc: New file.
26098         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
26099         (Depends-on): Add ansi-c++-opt.
26100         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
26101         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
26102         gl_MODULE_INDICATOR.
26103
26104         Tests of module 'dirent' in C++ mode.
26105         * tests/test-dirent-c++.cc: New file.
26106         * modules/dirent-tests (Files): Add it and tests/signature.h.
26107         (Depends-on): Add ansi-c++-opt.
26108         (Makefile.am): Arrange to compile and run test-dirent-c++.
26109         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
26110         gl_MODULE_INDICATOR.
26111
26112         New module 'ansi-c++-opt'.
26113         * modules/ansi-c++-opt: New file.
26114         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
26115
26116         Document C++ namespace mode.
26117         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
26118
26119         wctype: Avoid #define replacements in C++ mode.
26120         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
26121         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
26122         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
26123         In C++, define a namespaced alias symbol.
26124         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
26125         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
26126         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
26127         rule.
26128
26129         wchar: Avoid #define replacements in C++ mode.
26130         * lib/wchar.in.h: Include c++defs.h.
26131         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
26132         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
26133         symbol.
26134         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
26135         * modules/wchar (Depends-on): Add c++defs.
26136         (Makefile.am): Update wchar.h rule.
26137
26138         unistd: Avoid #define replacements in C++ mode.
26139         * lib/unistd.in.h: Include c++defs.h.
26140         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
26141         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
26142         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
26143         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
26144         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
26145         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
26146         symbol.
26147         (environ): Update.
26148         * modules/unistd (Depends-on): Add c++defs.
26149         (Makefile.am): Update unistd.h rule.
26150
26151         time: Avoid #define replacements in C++ mode.
26152         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
26153         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
26154         define a namespaced alias symbol.
26155         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
26156         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
26157         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
26158         * modules/time (Depends-on): Add c++defs, warn-on-use.
26159         (Makefile.am): Update time.h rule.
26160         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
26161         * modules/nanosleep (configure.ac): Likewise.
26162         * modules/strptime (configure.ac): Likewise.
26163         * modules/timegm (configure.ac): Likewise.
26164
26165         sys_time: Avoid #define replacements in C++ mode.
26166         * lib/sys_time.in.h: Include c++defs.h.
26167         (gettimeofday): In C++, define a namespaced alias symbol.
26168         * modules/sys_time (Depends-on): Add c++defs.
26169         (Makefile.am): Update sys/time.h rule.
26170
26171         sys_stat: Avoid #define replacements in C++ mode.
26172         * lib/sys_stat.in.h: Include c++defs.h.
26173         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
26174         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
26175         namespaced alias symbol.
26176         In C++, define a namespaced alias symbol.
26177         * modules/sys_stat (Depends-on): Add c++defs.
26178         (Makefile.am): Update sys/stat.h rule.
26179
26180         sys_socket: Avoid #define replacements in C++ mode.
26181         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
26182         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
26183         definitions also when the system has a <sys/socket.h>.
26184         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
26185         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
26186         In C++, define a namespaced alias symbol.
26187         * modules/sys_socket (Depends-on): Add c++defs.
26188         (Makefile.am): Update sys/socket.h rule.
26189
26190         sys_select: Avoid #define replacements in C++ mode.
26191         * lib/sys_select.in.h: Include c++defs.h. Enable the function
26192         definitions also when the system has a <sys/select.h>.
26193         (select): In C++, define a namespaced alias symbol.
26194         * modules/sys_select (Depends-on): Add c++defs.
26195         (Makefile.am): Update sys/select.h rule.
26196
26197         sys_ioctl: Avoid #define replacements in C++ mode.
26198         * lib/sys_ioctl.in.h: Include c++defs.h.
26199         (ioctl): In C++, define a namespaced alias symbol.
26200         * modules/sys_ioctl (Depends-on): Add c++defs.
26201         (Makefile.am): Update sys/ioctl.h rule.
26202
26203         string: Avoid #define replacements in C++ mode.
26204         * lib/string.in.h: Include c++defs.h.
26205         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
26206         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
26207         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
26208         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
26209         strsignal, strverscmp): In C++, define a namespaced alias symbol.
26210         * modules/string (Depends-on): Add c++defs.
26211         (Makefile.am): Update string.h rule.
26212
26213         stdlib: Avoid #define replacements in C++ mode.
26214         * lib/stdlib.in.h: Include c++defs.h.
26215         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
26216         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
26217         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
26218         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
26219         symbol.
26220         * modules/stdlib (Depends-on): Add c++defs.
26221         (Makefile.am): Update stdlib.h rule.
26222
26223         stdio: Avoid #define replacements in C++ mode.
26224         * lib/stdio.in.h: Include c++defs.h.
26225         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
26226         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
26227         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
26228         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
26229         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
26230         namespaced alias symbol.
26231         * modules/stdio (Depends-on): Add c++defs.
26232         (Makefile.am): Update stdio.h rule.
26233
26234         spawn: Avoid #define replacements in C++ mode.
26235         * lib/spawn.in.h: Include c++defs.h.
26236         (posix_spawn, posix_spawnp, posix_spawnattr_init,
26237         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
26238         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
26239         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
26240         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
26241         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
26242         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
26243         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
26244         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
26245         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
26246         In C++, define a namespaced alias symbol.
26247         * modules/spawn (Depends-on): Add c++defs.
26248         (Makefile.am): Update spawn.h rule.
26249
26250         signal: Avoid #define replacements in C++ mode.
26251         * lib/signal.in.h: Include c++defs.h.
26252         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
26253         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
26254         namespaced alias symbol.
26255         * modules/signal (Depends-on): Add c++defs.
26256         (Makefile.am): Update signal.h rule.
26257
26258         search: Avoid #define replacements in C++ mode.
26259         * lib/search.in.h: Include c++defs.h.
26260         (_gl_search_compar_fn, _gl_search_action_fn): New types.
26261         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
26262         symbol.
26263         * modules/search (Depends-on): Add c++defs.
26264         (Makefile.am): Update search.h rule.
26265
26266         math: Avoid #define replacements in C++ mode.
26267         * lib/math.in.h: Include c++defs.h.
26268         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
26269         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
26270         trunc, truncl): In C++, define a namespaced alias symbol.
26271         * modules/math (Depends-on): Add c++defs.
26272         (Makefile.am): Update math.h rule.
26273
26274         locale: Avoid #define replacements in C++ mode.
26275         * lib/locale.in.h: Include c++defs.h.
26276         (duplocale): In C++, define a namespaced alias symbol.
26277         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
26278         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
26279         * modules/locale (Depends-on): Add c++defs.
26280         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
26281
26282         langinfo: Avoid #define replacements in C++ mode.
26283         * lib/langinfo.in.h: Include c++defs.h.
26284         (nl_langinfo): In C++, define a namespaced alias symbol.
26285         * modules/langinfo (Depends-on): Add c++defs.
26286         (Makefile.am): Update langinfo.h rule.
26287
26288         iconv-h: Avoid #define replacements in C++ mode.
26289         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
26290         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
26291         symbol.
26292         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
26293         whenever iconv is present.
26294         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
26295         (Makefile.am): Update iconv.h rule.
26296
26297         glob: Avoid #define replacements in C++ mode.
26298         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
26299         (_gl_glob_errfunc_fn): New type.
26300         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
26301         symbol.
26302         * modules/glob (Depends-on): Add c++defs, warn-on-use.
26303         (Makefile.am): Update glob.h rule.
26304
26305         fcntl-h: Avoid #define replacements in C++ mode.
26306         * lib/fcntl.in.h: Include c++defs.h.
26307         (fcntl, open, openat): In C++, define a namespaced alias symbol.
26308         * modules/fcntl-h (Depends-on): Add c++defs.
26309         (Makefile.am): Update fcntl.h rule.
26310
26311         dirent: Avoid #define replacements in C++ mode.
26312         * lib/dirent.in.h: Include c++defs.h.
26313         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
26314         namespaced alias symbol.
26315         (dirfd): Update declaration.
26316         * modules/dirent (Depends-on): Add c++defs.
26317         (Makefile.am): Update dirent.h rule.
26318
26319         ctype: Make it usable in C++ code.
26320         * lib/ctype.in.h: Include c++defs.h.
26321         (isblank): Declare as extern "C".
26322         * modules/ctype (Depends-on): Add c++defs.
26323         (Makefile.am): Update ctype.h rule.
26324
26325         New module 'c++defs'.
26326         * modules/c++defs: New file.
26327         * build-aux/c++defs.h: New file.
26328         Reported by John W. Eaton <jwe@gnu.org>.
26329
26330 2010-03-07  Bruno Haible  <bruno@clisp.org>
26331
26332         logb: Provide missing declaration for Cygwin.
26333         * lib/math.in.h (logb): New declaration.
26334         * m4/logb.m4: New file.
26335         * modules/logb (Files): Add m4/logb.m4.
26336         (Depends-on): Add math.
26337         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
26338         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
26339         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
26340         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
26341         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
26342
26343 2010-03-07  Bruno Haible  <bruno@clisp.org>
26344
26345         Fix test-cond link error.
26346         * tests/test-cond.c: Include <stdio.h>.
26347
26348 2010-03-07  Bruno Haible  <bruno@clisp.org>
26349
26350         Fix test-dirent-safer link error.
26351         * modules/dirent-safer-tests (Makefile.am): Define
26352         test_dirent_safer_LDADD.
26353
26354 2010-03-07  Bruno Haible  <bruno@clisp.org>
26355
26356         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
26357         among default module list.
26358
26359 2010-03-07  Bruno Haible  <bruno@clisp.org>
26360
26361         Fix link error on platforms with GNU libiconv.
26362         * modules/unistr/u8-strcoll-tests (Makefile): Define
26363         test_u8_strcoll_LDADD.
26364         * modules/unistr/u16-strcoll-tests (Makefile): Define
26365         test_u16_strcoll_LDADD.
26366         * modules/unistr/u32-strcoll-tests (Makefile): Define
26367         test_u32_strcoll_LDADD.
26368
26369 2010-03-07  Bruno Haible  <bruno@clisp.org>
26370
26371         Use POSIX declarations for socket functions.
26372         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
26373         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
26374         rpl_sendto): Change declaration to match POSIX.
26375         * lib/connect.c (rpl_connect): Likewise.
26376         * lib/accept.c (rpl_accept): Likewise.
26377         * lib/bind.c (rpl_bind): Likewise.
26378         * lib/getpeername.c (rpl_getpeername): Likewise.
26379         * lib/getsockname.c (rpl_getsockname): Likewise.
26380         * lib/recv.c (rpl_recv): Likewise.
26381         * lib/send.c (rpl_send): Likewise.
26382         * lib/recvfrom.c (rpl_recvfrom): Likewise.
26383         * lib/sendto.c (rpl_sendto): Likewise.
26384
26385 2010-03-06  Bruno Haible  <bruno@clisp.org>
26386
26387         Clarify access, euidaccess, faccessat.
26388         * doc/posix-functions/faccessat.texi: Mention security problem under
26389         "Other problems", not "Portability problems".
26390         * doc/posix-functions/access.texi: Likewise. Mention a related security
26391         problem.
26392         * doc/glibc-functions/euidaccess.texi: Mention security problems.
26393         * lib/euidaccess.c: Add comments about platforms.
26394         * lib/unistd.in.h (access, euidaccess): Add warnings.
26395
26396 2010-03-07  Bruno Haible  <bruno@clisp.org>
26397
26398         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
26399         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
26400         (POSIX_SPAWN_SETSCHEDULER): Likewise.
26401         (POSIX_SPAWN_USEVFORK): Define in a way that works when
26402         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
26403         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
26404         declare when POSIX_SPAWN_SETSCHEDULER is zero.
26405         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
26406         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
26407         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
26408         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
26409         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
26410         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
26411         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
26412         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
26413         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
26414         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
26415         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
26416         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
26417         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
26418         Likewise.
26419         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
26420         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
26421         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
26422         Likewise.
26423         * tests/test-spawn.c (main): Make it work when
26424         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
26425
26426 2010-03-07  Bruno Haible  <bruno@clisp.org>
26427
26428         Fix incorrect Makefile.am generation in German locale.
26429         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
26430         Execute sed command with character range in C locale.
26431
26432 2010-03-06  Bruno Haible  <bruno@clisp.org>
26433
26434         Tests for module 'iconv-h'.
26435         * modules/iconv-h-tests: New file.
26436         * tests/test-iconv-h.c: New file.
26437
26438         New module 'iconv-h'.
26439         * modules/iconv-h: New file.
26440         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
26441         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
26442         (configure.ac): Remove gl_ICONV_H.
26443         (Makefile.am): Remove rule for iconv.h.
26444
26445 2010-03-06  Bruno Haible  <bruno@clisp.org>
26446
26447         More consistent naming of *.m4 files.
26448         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
26449         * modules/wctype (Files): Update.
26450
26451         More consistent naming of *.m4 files.
26452         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
26453         * modules/wchar (Files): Update.
26454
26455 2010-03-06  Jim Meyering  <meyering@redhat.com>
26456
26457         euidaccess: relax license to LGPLv2+
26458         * modules/euidaccess (License): Relax to LGPLv2+.
26459
26460 2010-03-06  Bruno Haible  <bruno@clisp.org>
26461
26462         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
26463         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
26464         (Makefile.am): Augment lib_SOURCES instead.
26465
26466 2010-03-04  Jim Meyering  <meyering@redhat.com>
26467
26468         utime: remove obsolete module
26469         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
26470         unnecessary for years, and has been marked as obsolete for 10 months.
26471         * modules/utime: Remove file.
26472         * lib/utime.c: Remove file.
26473         * m4/utime.m4: Remove file.
26474         * m4/utimes-null.m4: Remove file.
26475         * doc/posix-functions/utime.texi (utime): Remove reference to
26476         the module.  Move the sole "fixed by gnulib" item into the
26477         "problems not fixed by Gnulib" list.
26478         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
26479
26480 2010-03-05  Simon Josefsson  <simon@josefsson.org>
26481
26482         * modules/exit (License): Relax license to LGPLv2+.
26483         (Status): Mark as obsolete.
26484         * NEWS: Mention deprecated 'exit' module.
26485         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
26486         of now obsolete 'exit'.
26487
26488 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26489
26490         fts-lgpl: remove unused module
26491         * modules/fts-lgpl: Remove.
26492         * MODULES.html.sh (func_all_modules): Adjust.
26493         * check-module (find_included_lib_files): Adjust.
26494         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
26495
26496 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
26497
26498         copy-acl: enhance Solaris ACL error handling
26499         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
26500         * lib/set-mode-acl.c (qset_acl): Likewise.
26501
26502 2010-03-02  Bruno Haible  <bruno@clisp.org>
26503
26504         spawn: Don't override the system defined values on FreeBSD 8.
26505         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
26506         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
26507         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
26508         if HAVE_POSIX_SPAWN is 1.
26509         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
26510
26511 2010-03-01  Bruno Haible  <bruno@clisp.org>
26512
26513         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
26514         regarding Automake.
26515
26516 2010-02-25  Bruno Haible  <bruno@clisp.org>
26517
26518         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
26519         * gnulib-tool: Define 'echo' as a function only before the ksh alias
26520         setting, not afterwards.
26521         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
26522
26523 2010-02-24  Eric Blake  <eblake@redhat.com>
26524
26525         bootstrap, git-version-gen: use timestamp
26526         * build-aux/git-version-gen (scriptversion): Force UTC.
26527         * build-aux/bootstrap (scriptversion): New variable.
26528
26529         bootstrap: allow older git
26530         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
26531         older than 1.6.4.  Requested by the libvirt project.
26532
26533 2010-02-23  Eric Blake  <eblake@redhat.com>
26534
26535         warn-on-use: work with old autoconf
26536         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
26537         AS_VAR semantics of autoconf 2.60.
26538         Reported by Bruno Haible.
26539
26540         bootstrap: improve some comments
26541         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
26542         clarification comments.
26543
26544         gettimeofday: provide correct function
26545         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
26546         when replacement is declared, otherwise provide gettimeofday.
26547         Reported by Michael Goffioul.
26548
26549 2010-02-23  Jim Meyering  <meyering@redhat.com>
26550
26551         lib-ignore: relax license to "unlimited", not LGPLv2+
26552         * modules/lib-ignore (License): Relax to "unlimited".
26553
26554 2010-02-23  Jim Meyering  <meyering@redhat.com>
26555
26556         lib-ignore: relax license to LGPLv2+
26557         * modules/lib-ignore (License): Relax to LGPLv2+.
26558
26559 2010-02-22  Eric Blake  <eblake@redhat.com>
26560
26561         lseek: avoid bash 3.2 broken pipe bug
26562         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
26563         warning from bash 3.2.
26564         Reported by Ben Pfaff, with analysis from Bruno Haible.
26565
26566         bootstrap: support non-FSF copyright holder
26567         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
26568         bootstrap.conf override of COPYRIGHT_HOLDER.
26569         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
26570
26571         bootstrap: interoperate with gettext 0.14.1
26572         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
26573
26574         bootstrap: allow for alternate submodule location
26575         * build-aux/bootstrap (gnulib_path): New variable; use instead of
26576         hardcoding submodule location.
26577         (gnulib_mk): Allow direct use of Makefile.am.
26578
26579         bootstrap: use GNULIB_SRCDIR to reduce disk usage
26580         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
26581         rather than reconfiguring where the submodule points.
26582
26583         gettimeofday: restore support for platforms that lack function
26584         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
26585         replacement if function is missing.
26586         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
26587         * modules/sys_time (Makefile.am): Substitute it.
26588         * lib/sys_time.in.h (gettimeofday): Check it.
26589         Reported by Michael Goffioul.
26590
26591 2010-02-21  Bruno Haible  <bruno@clisp.org>
26592
26593         * lib/stdio.in.h (obstack_printf): Fix typo.
26594
26595 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
26596
26597         vc-list-files: use bzr ls's -R option
26598         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
26599         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
26600
26601 2010-02-21  Jim Meyering  <meyering@redhat.com>
26602
26603         init.sh: fix EXEEXT shims to work also for names like test-prog
26604         * tests/init.sh: Re-exec a better shell, when needed.
26605         If the current shell lacks support for posix $(...), an init.sh-using
26606         test will now try to find a shell that supports that.  If EXEEXT is
26607         nonempty, we also require support for hyphen-in-alias-name and shell
26608         substitutions like ${var#glob}.  Failure to find such a shell results
26609         in a skipped test.
26610
26611 2010-02-21  Bruno Haible  <bruno@clisp.org>
26612
26613         Really work around around "broken pipe" error message from bash 3.2.
26614         * gnulib-tool (func_reset_sigpipe): Remove function.
26615         (echo): In bash 3.2, define to a function that uses printf.
26616         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
26617
26618 2010-02-20  Bruno Haible  <bruno@clisp.org>
26619
26620         Restore support for automake 1.9.6 with autoconf 2.61.
26621         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
26622         Reported by James Youngman <jay@gnu.org>.
26623
26624 2010-02-20  Bruno Haible  <bruno@clisp.org>
26625
26626         Improve *printf warning condition.
26627         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
26628         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
26629         and the function is overridden due to SIGPIPE emulation.
26630
26631 2010-02-20  Bruno Haible  <bruno@clisp.org>
26632
26633         * lib/stdio.in.h: Tweak comments.
26634
26635 2010-02-19  Bruno Haible  <bruno@clisp.org>
26636
26637         Make it easier to find modules. New gnulib-tool option '--find'.
26638         * gnulib-tool: New option --find.
26639         (func_usage): Document it.
26640         (func_sanitize_modulelist): New function, extracted from
26641         func_all_modules.
26642         (func_all_modules): Invoke it.
26643         * doc/gnulib-tool.texi (Which modules?): New node.
26644
26645 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
26646
26647         * lib/sys_select.in.h: Provide select replacement even if
26648         sys/select.h exists on a system, for Interix.
26649
26650 2010-02-18  Jim Meyering  <meyering@redhat.com>
26651
26652         init.sh: don't use $(...) just yet
26653         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
26654         to accommodate e.g., Solaris' /bin/sh.
26655
26656 2010-02-17  Bruno Haible  <bruno@clisp.org>
26657
26658         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
26659         Reported by Ludovic Courtès <ludo@gnu.org>.
26660
26661 2010-02-16  Simon Josefsson  <simon@josefsson.org>
26662
26663         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
26664         linking with -lintl.
26665
26666 2010-02-17  Simon Josefsson  <simon@josefsson.org>
26667
26668         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
26669         if not provided by the system's netdb.h.  Reported by
26670         ludo@gnu.org (Ludovic Courtès).
26671
26672 2010-02-15  Jim Meyering  <meyering@redhat.com>
26673
26674         init.sh: improve portability and efficiency
26675         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
26676         "dummy" in a for loop.
26677         Use '!', not '^' to select the complement of a character set used
26678         in a "case" statement.
26679         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
26680         Suggestions from Eric Blake.
26681
26682         init.sh: automatically accommodate programs with the .exe suffix
26683         Automatically arrange for an invocation of "prog" to execute the
26684         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
26685         may use the simpler "prog", yet still work when built on a system
26686         that requires specifying the added suffix.
26687         Do this by constructing a function named "prog" that invokes
26688         "prog.exe" for each .exe file in selected directories.
26689         * tests/init.sh (find_exe_basenames_): New function.
26690         (create_exe_shim_functions_): New function.
26691         (path_prepend_): Use it.
26692
26693         maint.mk: mark syntax-check sc_*.m rules as .PHONY
26694         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
26695         "make -t syntax-check" doesn't create a ton of sc_*.m files.
26696
26697 2010-02-14  Jim Meyering  <meyering@redhat.com>
26698
26699         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
26700         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
26701         (sc_prohibit_hash_pjw_without_use): New rule.
26702
26703         maint.mk: allow the default upload destination dir to be overridden
26704         * top/maint.mk (upload_dest_dir_): Define with a default that
26705         preserves the status quo.
26706         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
26707         Reported by Peter Simons.
26708
26709         maint.mk: prohibit inclusion of "hash.h" without_use
26710         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
26711
26712 2010-02-10  Jim Meyering  <meyering@redhat.com>
26713
26714         maint.mk: prohibit inclusion of "ignore-value.h" without_use
26715         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
26716
26717 2010-02-09  Eric Blake  <ebb9@byu.net>
26718         and Bruno Haible  <bruno@clisp.org>
26719
26720         obstack-printf-posix: ensure declaration
26721         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
26722         extracted from gl_FUNC_OBSTACK_PRINTF.
26723         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
26724         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
26725         Likewise.
26726         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
26727         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
26728         0.
26729
26730 2010-02-08  Bruno Haible  <bruno@clisp.org>
26731
26732         gnulib-tool: Fix typo in 2010-02-07 commit.
26733         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
26734         Reported by Eric Blake.
26735
26736 2010-02-07  Bruno Haible  <bruno@clisp.org>
26737
26738         gnulib-tool: Fix up caching patches.
26739         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
26740         option --no-cache. Use associative arrays when supported by the shell.
26741         (sed_comments): New variable.
26742         (modcache): Renamed from do_cache.
26743         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
26744         abbreviate unnecessarily.
26745         (have_associative): New variable.
26746         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
26747         way also for ksh and zsh.
26748         (func_init_sed_convert_to_cache_statements): New function, extracted
26749         from func_cache_lookup_module. Add support for associative arrays.
26750         Don't set the c_MODULE_cached variable here. Ignore all lines before
26751         the first field header. Remove only the final newline, not all trailing
26752         newlines. Support empty fields correctly. Limit the use of 'eval' to
26753         assignments.
26754         (func_get_description, func_get_status, func_get_notice,
26755         func_get_applicability, func_get_filelist, func_get_dependencies,
26756         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
26757         func_get_automake_snippet, func_get_include_directive,
26758         func_get_link_directive, func_get_license, func_get_maintainer):
26759         Update documentation. List the unoptimized code first. Add support for
26760         associative arrays. Limit the use of 'eval' to assignments.
26761         (func_get_applicability): Undo stylistic pessimisations.
26762         (func_get_automake_snippet, func_get_include_directive): Reduce code
26763         duplication.
26764         (func_modules_transitive_closure, func_modules_add_dummy,
26765         func_modules_notice, func_modules_to_filelist, func_add_file,
26766         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
26767         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
26768         func_create_testdir, func_create_megatestdir): Update documentation.
26769
26770 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26771
26772         * gnulib-tool (func_cache_lookup_module): Store the module name
26773         belonging to the cache variable; error out if two different
26774         module names map to the same cache variable name.
26775
26776 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26777
26778         gnulib-tool: Make caching optional.
26779         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
26780         Update matching short versions of --no-changelog.
26781         (func_usage): Update.
26782         (sed_extract_cache_prog): Renamed from ...
26783         (sed_extract_prog): ... this; revert to old extraction script.
26784         (func_get_description, func_get_status)
26785         (func_get_notice, func_get_applicability, func_get_filelist)
26786         (func_get_dependencies, func_get_autoconf_early_snippet)
26787         (func_get_autoconf_snippet, func_get_automake_snippet)
26788         (func_get_include_directive, func_get_link_directive)
26789         (func_get_license, func_get_maintainer): If $do_cache is false,
26790         use old, non-caching extraction scripts.
26791         Suggestion by Bruno Haible.
26792
26793 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26794
26795         gnulib-tool: cache module metainformation.
26796         * gnulib-tool (sed_extract_prog): Match newline before each
26797         header, and rewrite header to a shell variable suffix.
26798         (func_cache_var, func_cache_lookup_module): New functions,
26799         to turn a module name into a cache variable prefix, and to
26800         look up and cache module metainformation.
26801         (func_get_description, func_get_status)
26802         (func_get_notice, func_get_applicability, func_get_filelist)
26803         (func_get_dependencies, func_get_autoconf_early_snippet)
26804         (func_get_autoconf_snippet, func_get_automake_snippet)
26805         (func_get_include_directive, func_get_link_directive)
26806         (func_get_license, func_get_maintainer): Use
26807         func_cache_lookup_module.
26808
26809 2010-02-07  Bruno Haible  <bruno@clisp.org>
26810
26811         fnctl: Fix missing dependency.
26812         * modules/fcntl (Depends-on): Add getdtablesize.
26813         Reported by John W. Eaton <jwe@gnu.org>.
26814
26815 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
26816
26817         Argp: fix recognition of short alias options.
26818
26819         * lib/argp-parse.c (convert_options): Fix improper use of
26820         `|' between character values.
26821         * tests/test-argp.c (group1_option): New alias option
26822         --read (-r).
26823         (group1_parser): Special handling for 'r'.
26824         (test15): New test case.
26825         (test_fun): Add test15.
26826         * tests/test-argp-2.sh: Update expected --help and --usage
26827         outputs.
26828
26829 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
26830
26831         * tests/test-argp.c: Fix indentation.
26832
26833 2010-02-04  Eric Blake  <ebb9@byu.net>
26834
26835         gettimeofday: expose type of second argument
26836         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
26837         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
26838         * tests/test-gettimeofday.c: Use it to silence warning.
26839         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
26840         the issue.
26841
26842 2010-02-03  Jim Meyering  <meyering@redhat.com>
26843
26844         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
26845         * lib/regcomp.c (TYPE_SIGNED): Define.
26846         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
26847
26848         regcomp.c: avoid a new -Wshadow warning
26849         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
26850
26851 2010-02-01  Jim Meyering  <meyering@redhat.com>
26852
26853         removing useless parentheses in cpp #define directives
26854         For motivation, see commit c0221df4, "define STREQ(a,b)
26855         consistently, removing useless parentheses"
26856         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
26857         * lib/mountlist.c (MNT_IGNORE): Likewise.
26858         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
26859
26860 2010-02-01  Eric Blake  <ebb9@byu.net>
26861
26862         sys_time: use link-warning
26863         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
26864         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
26865         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
26866         * modules/sys_time (Depends-on): Add warn-on-use.
26867         (Makefile.am): Always build replacement.
26868         (configure.ac): Update substitutions.
26869         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
26870         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
26871         bother with SYS_TIME_H.
26872         * modules/gettimeofday (configure.ac): Declare indicator.
26873         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
26874         in use.
26875
26876         closein-tests: silence compiler warning
26877         * tests/test-closein.c (main): Ignore fread result.
26878         * modules/closein-tests (Depends-on): Add ignore-value.
26879
26880         tests: silence warning about system return
26881         * tests/test-areadlink-with-size.c (main): Ignore system result.
26882         * tests/test-areadlink.c (main): Likewise.
26883         * tests/test-areadlinkat-with-size.c (main): Likewise.
26884         * tests/test-areadlinkat.c (main): Likewise.
26885         * tests/test-canonicalize-lgpl.c (main): Likewise.
26886         * tests/test-canonicalize.c (main): Likewise.
26887         * tests/test-chown.c (main): Likewise.
26888         * tests/test-fchownat.c (main): Likewise.
26889         * tests/test-fdutimensat.c (main): Likewise.
26890         * tests/test-fstatat.c (main): Likewise.
26891         * tests/test-futimens.c (main): Likewise.
26892         * tests/test-lchown.c (main): Likewise.
26893         * tests/test-link.c (main): Likewise.
26894         * tests/test-linkat.c (main): Likewise.
26895         * tests/test-lstat.c (main): Likewise.
26896         * tests/test-mkdir.c (main): Likewise.
26897         * tests/test-mkdirat.c (main): Likewise.
26898         * tests/test-mkfifo.c (main): Likewise.
26899         * tests/test-mkfifoat.c (main): Likewise.
26900         * tests/test-mknod.c (main): Likewise.
26901         * tests/test-readlink.c (main): Likewise.
26902         * tests/test-remove.c (main): Likewise.
26903         * tests/test-rename.c (main): Likewise.
26904         * tests/test-renameat.c (main): Likewise.
26905         * tests/test-rmdir.c (main): Likewise.
26906         * tests/test-symlink.c (main): Likewise.
26907         * tests/test-symlinkat.c (main): Likewise.
26908         * tests/test-unlink.c (main): Likewise.
26909         * tests/test-unlinkat.c (main): Likewise.
26910         * tests/test-utimens.c (main): Likewise.
26911         * tests/test-utimensat.c (main): Likewise.
26912         * modules/areadlink-tests (Depends-on): Add ignore-value.
26913         * modules/areadlink-with-size-tests (Depends-on): Likewise.
26914         * modules/areadlinkat-tests (Depends-on): Likewise.
26915         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
26916         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
26917         * modules/canonicalize-tests (Depends-on): Likewise.
26918         * modules/chown-tests (Depends-on): Likewise.
26919         * modules/fdutimensat-tests (Depends-on): Likewise.
26920         * modules/futimens-tests (Depends-on): Likewise.
26921         * modules/lchown-tests (Depends-on): Likewise.
26922         * modules/link-tests (Depends-on): Likewise.
26923         * modules/linkat-tests (Depends-on): Likewise.
26924         * modules/lstat-tests (Depends-on): Likewise.
26925         * modules/mkdir-tests (Depends-on): Likewise.
26926         * modules/mkfifo-tests (Depends-on): Likewise.
26927         * modules/mkfifoat-tests (Depends-on): Likewise.
26928         * modules/mknod-tests (Depends-on): Likewise.
26929         * modules/openat-tests (Depends-on): Likewise.
26930         * modules/readlink-tests (Depends-on): Likewise.
26931         * modules/remove-tests (Depends-on): Likewise.
26932         * modules/rename-tests (Depends-on): Likewise.
26933         * modules/renameat-tests (Depends-on): Likewise.
26934         * modules/rmdir-tests (Depends-on): Likewise.
26935         * modules/symlink-tests (Depends-on): Likewise.
26936         * modules/symlinkat-tests (Depends-on): Likewise.
26937         * modules/unlink-tests (Depends-on): Likewise.
26938         * modules/utimens-tests (Depends-on): Likewise.
26939         * modules/utimensat-tests (Depends-on): Likewise.
26940
26941 2010-01-31  Bruno Haible  <bruno@clisp.org>
26942
26943         Perform the same test for many <math.h> functions.
26944         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
26945         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
26946         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
26947         of gl_MATHFUNC.
26948         * modules/acos (configure.ac): Likewise.
26949         * modules/asin (configure.ac): Likewise.
26950         * modules/atan (configure.ac): Likewise.
26951         * modules/atan2 (configure.ac): Likewise.
26952         * modules/cbrt (configure.ac): Likewise.
26953         * modules/copysign (configure.ac): Likewise.
26954         * modules/cos (configure.ac): Likewise.
26955         * modules/cosh (configure.ac): Likewise.
26956         * modules/erf (configure.ac): Likewise.
26957         * modules/erfc (configure.ac): Likewise.
26958         * modules/exp (configure.ac): Likewise.
26959         * modules/fmod (configure.ac): Likewise.
26960         * modules/hypot (configure.ac): Likewise.
26961         * modules/j0 (configure.ac): Likewise.
26962         * modules/j1 (configure.ac): Likewise.
26963         * modules/jn (configure.ac): Likewise.
26964         * modules/lgamma (configure.ac): Likewise.
26965         * modules/log (configure.ac): Likewise.
26966         * modules/log10 (configure.ac): Likewise.
26967         * modules/log1p (configure.ac): Likewise.
26968         * modules/pow (configure.ac): Likewise.
26969         * modules/remainder (configure.ac): Likewise.
26970         * modules/sin (configure.ac): Likewise.
26971         * modules/sinh (configure.ac): Likewise.
26972         * modules/tan (configure.ac): Likewise.
26973         * modules/tanh (configure.ac): Likewise.
26974         * modules/y0 (configure.ac): Likewise.
26975         * modules/y1 (configure.ac): Likewise.
26976         * modules/yn (configure.ac): Likewise.
26977         Suggested by Paolo Bonzini.
26978
26979 2010-01-31  Bruno Haible  <bruno@clisp.org>
26980
26981         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
26982
26983 2010-01-31  Bruno Haible  <bruno@clisp.org>
26984
26985         Work around getdelim() bug on FreeBSD 8.0.
26986         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
26987         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
26988         not work.
26989         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
26990         is 1.
26991         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
26992         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
26993         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
26994         a non-zero size.
26995         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
26996
26997 2010-01-31  Bruno Haible  <bruno@clisp.org>
26998
26999         Work around getline() bug on FreeBSD 8.0.
27000         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
27001         and a non-zero size.
27002         * tests/test-getline.c (main): Likewise.
27003         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
27004         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
27005
27006 2010-01-28  Eric Blake  <ebb9@byu.net>
27007
27008         regex: fix build failure
27009         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
27010         platforms.
27011
27012 2010-01-28  Jim Meyering  <meyering@redhat.com>
27013
27014         regex: do not ignore memory allocation failure
27015         * lib/regex_internal.c (create_cd_newstate): Detect
27016         re_node_set_init_copy failure.   Extracted from glibc commit
27017         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
27018
27019         regex: sync more white-space changes from libc
27020         * lib/regex_internal.c: White-space only changes.
27021         * lib/regexec.c: Likewise.
27022
27023         regex: add many uses of __attribute_warn_unused_result__
27024         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
27025         * lib/regexec.c: Likewise.
27026         Extracted from a messy glibc commit.
27027
27028         regcomp.c: spelling and merge-artifact from glibc
27029         * lib/regcomp.c: Merge remainder of glibc's
27030         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
27031
27032         regcomp.c: sync white-space changes from glibc
27033         * lib/regcomp.c: Merge to accommodate white space
27034         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
27035
27036         regcomp.c: do not ignore internal return values
27037         * lib/regcomp.c: Do not ignore internal return values.
27038         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
27039         but without its white-space changes and spelling fixes.
27040
27041         regex_internal.h: define __attribute_warn_unused_result__
27042         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
27043
27044         maint: add a syntax-check rule to check for vulnerable Makefile.in
27045         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
27046
27047 2010-01-27  Jim Meyering  <meyering@redhat.com>
27048
27049         ncftpput-ftp: clean up spaces
27050         * build-aux/ncftpput-ftp: Make Copyright line consistent.
27051         Remove trailing blanks.
27052
27053 2010-01-27  Simon Josefsson  <simon@josefsson.org>
27054
27055         * build-aux/git-version-gen: Fix copyright statement.
27056         * build-aux/gnupload: Likewise.
27057         * tests/test-arcfour.c: Likewise.
27058         * tests/test-arctwo.c: Likewise.
27059         * tests/test-count-one-bits.c: Likewise.
27060         * tests/test-crc.c: Likewise.
27061         * tests/test-des.c: Likewise.
27062         * tests/test-gc-arcfour.c: Likewise.
27063         * tests/test-gc-arctwo.c: Likewise.
27064         * tests/test-gc-des.c: Likewise.
27065         * tests/test-gc-hmac-md5.c: Likewise.
27066         * tests/test-gc-hmac-sha1.c: Likewise.
27067         * tests/test-gc-md2.c: Likewise.
27068         * tests/test-gc-md4.c: Likewise.
27069         * tests/test-gc-md5.c: Likewise.
27070         * tests/test-gc-pbkdf2-sha1.c: Likewise.
27071         * tests/test-gc-rijndael.c: Likewise.
27072         * tests/test-gc-sha1.c: Likewise.
27073         * tests/test-gc.c: Likewise.
27074         * tests/test-gethostname.c: Likewise.
27075         * tests/test-gettimeofday.c: Likewise.
27076         * tests/test-hash.c: Likewise.
27077         * tests/test-hmac-md5.c: Likewise.
27078         * tests/test-hmac-sha1.c: Likewise.
27079         * tests/test-md2.c: Likewise.
27080         * tests/test-md4.c: Likewise.
27081         * tests/test-md5.c: Likewise.
27082         * tests/test-memchr.c: Likewise.
27083         * tests/test-memchr2.c: Likewise.
27084         * tests/test-memcmp.c: Likewise.
27085         * tests/test-memmem.c: Likewise.
27086         * tests/test-memrchr.c: Likewise.
27087         * tests/test-rawmemchr.c: Likewise.
27088         * tests/test-read-file.c: Likewise.
27089         * tests/test-rijndael.c: Likewise.
27090         * tests/test-sockets.c: Likewise.
27091         * tests/test-strchrnul.c: Likewise.
27092         * tests/test-strstr.c: Likewise.
27093         * tests/test-strtod.c: Likewise.
27094         * build-aux/ncftpput-ftp: Likewise.
27095
27096 2010-01-26  Eric Blake  <ebb9@byu.net>
27097
27098         ignore-value: update recommended header name
27099         * modules/ignore-value (Include): Only use <> for headers that
27100         exist in glibc.
27101
27102 2010-01-26  Jim Meyering  <meyering@redhat.com>
27103
27104         test-userspec.c: avoid compiler warnings
27105         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
27106         and "initialization discards qualifiers..." warnings.
27107         Put the first "uid" in its own scope, and make char* members "const".
27108
27109 2010-01-25  Bruno Haible  <bruno@clisp.org>
27110
27111         gnulib-tool: Make warning diagnostics consistent.
27112         * gnulib-tool (func_warning): New function.
27113         Use it everywhere where gnulib-tool produces output to stderr and it is
27114         not a fatal error.
27115
27116 2010-01-25  Bruno Haible  <bruno@clisp.org>
27117
27118         Fix test dependencies.
27119         * modules/xstrtol-tests (Depends-on): Add inttypes.
27120         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
27121
27122 2010-01-25 Pádraig Brady <P@draigBrady.com>
27123
27124         syntax-check: detect incorrect boolean macro values in config.h
27125         * modules/maintainer-makefile (configure.ac): Parameterize the location
27126         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
27127         The logic is from Eric Blake and the location indicated by Jim Meyering.
27128         Note the more natural CONFIG_HEADER name is prohibited by automake
27129         for backwards compatibility reasons.
27130         * top/maint.mk (sc_Wundef_boolean): New rule.
27131
27132 2010-01-25  Jim Meyering  <meyering@redhat.com>
27133
27134         bootstrap: detect MacOS 10.6's shasum, too
27135         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
27136         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
27137
27138 2010-01-23  Jim Meyering  <meyering@redhat.com>
27139
27140         xstrtoll: new module
27141         * modules/xstrtoll: New file.
27142         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
27143         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
27144         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
27145         ./configure fails if you use this module and lack "long long".
27146         * modules/xstrtoll-tests: New module.
27147         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
27148         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
27149         new init.sh-based test framework.
27150
27151 2010-01-24  Bruno Haible  <bruno@clisp.org>
27152
27153         Tests for module 'yn'.
27154         * modules/yn-tests: New file.
27155         * tests/test-yn.c: New file.
27156
27157         Tests for module 'y1'.
27158         * modules/y1-tests: New file.
27159         * tests/test-y1.c: New file.
27160
27161         Tests for module 'y0'.
27162         * modules/y0-tests: New file.
27163         * tests/test-y0.c: New file.
27164
27165         Tests for module 'tanh'.
27166         * modules/tanh-tests: New file.
27167         * tests/test-tanh.c: New file.
27168
27169         Tests for module 'tan'.
27170         * modules/tan-tests: New file.
27171         * tests/test-tan.c: New file.
27172
27173         Tests for module 'sqrt'.
27174         * modules/sqrt-tests: New file.
27175         * tests/test-sqrt.c: New file.
27176
27177         Tests for module 'sinh'.
27178         * modules/sinh-tests: New file.
27179         * tests/test-sinh.c: New file.
27180
27181         Tests for module 'sin'.
27182         * modules/sin-tests: New file.
27183         * tests/test-sin.c: New file.
27184
27185         Tests for module 'rint'.
27186         * modules/rint-tests: New file.
27187         * tests/test-rint.c: New file.
27188
27189         Tests for module 'remainder'.
27190         * modules/remainder-tests: New file.
27191         * tests/test-remainder.c: New file.
27192
27193         Tests for module 'pow'.
27194         * modules/pow-tests: New file.
27195         * tests/test-pow.c: New file.
27196
27197         Tests for module 'nextafter'.
27198         * modules/nextafter-tests: New file.
27199         * tests/test-nextafter.c: New file.
27200
27201         Tests for module 'modf'.
27202         * modules/modf-tests: New file.
27203         * tests/test-modf.c: New file.
27204
27205         Tests for module 'logb'.
27206         * modules/logb-tests: New file.
27207         * tests/test-logb.c: New file.
27208
27209         Tests for module 'log1p'.
27210         * modules/log1p-tests: New file.
27211         * tests/test-log1p.c: New file.
27212
27213         Tests for module 'log10'.
27214         * modules/log10-tests: New file.
27215         * tests/test-log10.c: New file.
27216
27217         Tests for module 'log'.
27218         * modules/log-tests: New file.
27219         * tests/test-log.c: New file.
27220
27221         Tests for module 'lgamma'.
27222         * modules/lgamma-tests: New file.
27223         * tests/test-lgamma.c: New file.
27224
27225         Tests for module 'ldexp'.
27226         * modules/ldexp-tests: New file.
27227         * tests/test-ldexp.c: New file.
27228
27229         Tests for module 'jn'.
27230         * modules/jn-tests: New file.
27231         * tests/test-jn.c: New file.
27232
27233         Tests for module 'j1'.
27234         * modules/j1-tests: New file.
27235         * tests/test-j1.c: New file.
27236
27237         Tests for module 'j0'.
27238         * modules/j0-tests: New file.
27239         * tests/test-j0.c: New file.
27240
27241         Tests for module 'hypot'.
27242         * modules/hypot-tests: New file.
27243         * tests/test-hypot.c: New file.
27244
27245         Tests for module 'fmod'.
27246         * modules/fmod-tests: New file.
27247         * tests/test-fmod.c: New file.
27248
27249         Tests for module 'fabs'.
27250         * modules/fabs-tests: New file.
27251         * tests/test-fabs.c: New file.
27252
27253         Tests for module 'exp'.
27254         * modules/exp-tests: New file.
27255         * tests/test-exp.c: New file.
27256
27257         Tests for module 'erfc'.
27258         * modules/erfc-tests: New file.
27259         * tests/test-erfc.c: New file.
27260
27261         Tests for module 'erf'.
27262         * modules/erf-tests: New file.
27263         * tests/test-erf.c: New file.
27264
27265         Tests for module 'cosh'.
27266         * modules/cosh-tests: New file.
27267         * tests/test-cosh.c: New file.
27268
27269         Tests for module 'cos'.
27270         * modules/cos-tests: New file.
27271         * tests/test-cos.c: New file.
27272
27273         Tests for module 'copysign'.
27274         * modules/copysign-tests: New file.
27275         * tests/test-copysign.c: New file.
27276
27277         Tests for module 'cbrt'.
27278         * modules/cbrt-tests: New file.
27279         * tests/test-cbrt.c: New file.
27280
27281         Tests for module 'atan2'.
27282         * modules/atan2-tests: New file.
27283         * tests/test-atan2.c: New file.
27284
27285         Tests for module 'atan'.
27286         * modules/atan-tests: New file.
27287         * tests/test-atan.c: New file.
27288
27289         Tests for module 'asin'.
27290         * modules/asin-tests: New file.
27291         * tests/test-asin.c: New file.
27292
27293         Tests for module 'acos'.
27294         * modules/acos-tests: New file.
27295         * tests/test-acos.c: New file.
27296
27297 2010-01-24  Bruno Haible  <bruno@clisp.org>
27298
27299         Fix tests for common <math.h> functions.
27300         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
27301         code snippet that references the function pointer, rather than merely
27302         calling the function. Substitute the FUNC_LIBM variable.
27303         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
27304         * modules/acos (configure.ac): Likewise.
27305         * modules/asin (configure.ac): Likewise.
27306         * modules/atan (configure.ac): Likewise.
27307         * modules/atan2 (configure.ac): Likewise.
27308         * modules/cbrt (configure.ac): Likewise.
27309         * modules/copysign (configure.ac): Likewise.
27310         * modules/cos (configure.ac): Likewise.
27311         * modules/cosh (configure.ac): Likewise.
27312         * modules/erf (configure.ac): Likewise.
27313         * modules/erfc (configure.ac): Likewise.
27314         * modules/exp (configure.ac): Likewise.
27315         * modules/fabs (configure.ac): Likewise.
27316         * modules/fmod (configure.ac): Likewise.
27317         * modules/hypot (configure.ac): Likewise.
27318         * modules/j0 (configure.ac): Likewise.
27319         * modules/j1 (configure.ac): Likewise.
27320         * modules/jn (configure.ac): Likewise.
27321         * modules/ldexp (configure.ac): Likewise.
27322         * modules/lgamma (configure.ac): Likewise.
27323         * modules/log (configure.ac): Likewise.
27324         * modules/log10 (configure.ac): Likewise.
27325         * modules/log1p (configure.ac): Likewise.
27326         * modules/logb (configure.ac): Likewise.
27327         * modules/modf (configure.ac): Likewise.
27328         * modules/nextafter (configure.ac): Likewise.
27329         * modules/pow (configure.ac): Likewise.
27330         * modules/remainder (configure.ac): Likewise.
27331         * modules/rint (configure.ac): Likewise.
27332         * modules/sin (configure.ac): Likewise.
27333         * modules/sinh (configure.ac): Likewise.
27334         * modules/tan (configure.ac): Likewise.
27335         * modules/tanh (configure.ac): Likewise.
27336         * modules/y0 (configure.ac): Likewise.
27337         * modules/y1 (configure.ac): Likewise.
27338         * modules/yn (configure.ac): Likewise.
27339
27340 2010-01-24  Bruno Haible  <bruno@clisp.org>
27341
27342         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
27343         * tests/test-acosl.c (x): New variable.
27344         (main): Store argument in x and fetch it from x.
27345         * tests/test-asinl.c (x): New variable.
27346         (main): Store argument in x and fetch it from x.
27347         * tests/test-atanl.c (x): New variable.
27348         (main): Store argument in x and fetch it from x.
27349         * tests/test-cosl.c (x): New variable.
27350         (main): Store argument in x and fetch it from x.
27351         * tests/test-expl.c (x): New variable.
27352         (main): Store argument in x and fetch it from x.
27353         * tests/test-logl.c (x): New variable.
27354         (main): Store argument in x and fetch it from x.
27355         * tests/test-sinl.c (x): New variable.
27356         (main): Store argument in x and fetch it from x.
27357         * tests/test-sqrtl.c (x): New variable.
27358         (main): Store argument in x and fetch it from x.
27359         * tests/test-tanl.c (x): New variable.
27360         (main): Store argument in x and fetch it from x.
27361
27362 2010-01-24  Bruno Haible  <bruno@clisp.org>
27363
27364         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
27365         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
27366         assignments to the initial TESTS_ENVIRONMENT.
27367         * doc/gnulib.texi (Unit test modules): Document it.
27368         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
27369         TESTS_ENVIRONMENT.
27370         * modules/btowc-tests (Makefile.am): Likewise.
27371         * modules/c-stack-tests (Makefile.am): Likewise.
27372         * modules/c-strcase-tests (Makefile.am): Likewise.
27373         * modules/copy-file-tests (Makefile.am): Likewise.
27374         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
27375         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
27376         * modules/mbrtowc-tests (Makefile.am): Likewise.
27377         * modules/mbscasecmp-tests (Makefile.am): Likewise.
27378         * modules/mbscasestr-tests (Makefile.am): Likewise.
27379         * modules/mbschr-tests (Makefile.am): Likewise.
27380         * modules/mbscspn-tests (Makefile.am): Likewise.
27381         * modules/mbsinit-tests (Makefile.am): Likewise.
27382         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
27383         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
27384         * modules/mbspbrk-tests (Makefile.am): Likewise.
27385         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
27386         * modules/mbsrchr-tests (Makefile.am): Likewise.
27387         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
27388         * modules/mbsspn-tests (Makefile.am): Likewise.
27389         * modules/mbsstr-tests (Makefile.am): Likewise.
27390         * modules/nl_langinfo-tests (Makefile.am): Likewise.
27391         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
27392         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
27393         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
27394         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
27395         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
27396         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
27397         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
27398         * modules/wcrtomb-tests (Makefile.am): Likewise.
27399         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
27400         * modules/wcsrtombs-tests (Makefile.am): Likewise.
27401         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
27402         assignments from TESTS_ENVIRONMENT.
27403         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
27404         augmentation.
27405         * modules/argp-version-etc-tests (Makefile.am): Likewise.
27406         * modules/atexit-tests (Makefile.am): Likewise.
27407         * modules/binary-io-tests (Makefile.am): Likewise.
27408         * modules/closein-tests (Makefile.am): Likewise.
27409         * modules/dprintf-posix-tests (Makefile.am): Likewise.
27410         * modules/exclude-tests (Makefile.am): Likewise.
27411         * modules/fflush-tests (Makefile.am): Likewise.
27412         * modules/fpending-tests (Makefile.am): Likewise.
27413         * modules/fprintf-posix-tests (Makefile.am): Likewise.
27414         * modules/freadahead-tests (Makefile.am): Likewise.
27415         * modules/freadptr-tests (Makefile.am): Likewise.
27416         * modules/freadseek-tests (Makefile.am): Likewise.
27417         * modules/fseek-tests (Makefile.am): Likewise.
27418         * modules/fseeko-tests (Makefile.am): Likewise.
27419         * modules/ftell-tests (Makefile.am): Likewise.
27420         * modules/ftello-tests (Makefile.am): Likewise.
27421         * modules/idpriv-drop-tests (Makefile.am): Likewise.
27422         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
27423         * modules/lseek-tests (Makefile.am): Likewise.
27424         * modules/parse-duration-tests (Makefile.am): Likewise.
27425         * modules/perror-tests (Makefile.am): Likewise.
27426         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
27427         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
27428         * modules/pipe-tests (Makefile.am): Likewise.
27429         * modules/pread-tests (Makefile.am): Likewise.
27430         * modules/printf-posix-tests (Makefile.am): Likewise.
27431         * modules/select-tests (Makefile.am): Likewise.
27432         * modules/sigpipe-tests (Makefile.am): Likewise.
27433         * modules/tsearch-tests (Makefile.am): Likewise.
27434         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
27435         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
27436         * modules/uniname/uniname-tests (Makefile.am): Likewise.
27437         * modules/uniwidth/width-tests (Makefile.am): Likewise.
27438         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
27439         * modules/version-etc-tests (Makefile.am): Likewise.
27440         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
27441         * modules/vprintf-posix-tests (Makefile.am): Likewise.
27442         * modules/xalloc-die-tests (Makefile.am): Likewise.
27443         * modules/xprintf-posix-tests (Makefile.am): Likewise.
27444         * modules/xstrtoimax-tests (Makefile.am): Likewise.
27445         * modules/xstrtol-tests (Makefile.am): Likewise.
27446         * modules/xstrtoumax-tests (Makefile.am): Likewise.
27447         * modules/yesno-tests (Makefile.am): Likewise.
27448         Suggested by Jim Meyering.
27449
27450 2010-01-24  Bruno Haible  <bruno@clisp.org>
27451
27452         More documentation.
27453         * doc/gnulib.texi (Writing modules): New chapter.
27454         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
27455         the new chapter.
27456
27457 2010-01-24  Jim Meyering  <meyering@redhat.com>
27458
27459         maint.mk: do not prepend "./" after filtering
27460         * top/maint.mk (_prepend_srcdir_prefix): New variable
27461         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
27462         "./" when $(srcdir) is ".".
27463
27464         define STREQ(a,b) consistently, removing useless parentheses
27465         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
27466         since the only risk is that "a" or "b" contains an unparenthesized
27467         comma, but if either did that, STREQ would have 3 or more arguments.
27468         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
27469         * lib/fts.c (STREQ): Remove unnecessary parentheses.
27470         * lib/hash-triple.c (STREQ): Likewise.
27471         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
27472         * lib/getugroups.c (STREQ): Likewise.
27473
27474 2010-01-23  Jim Meyering  <meyering@redhat.com>
27475
27476         maint.mk: fix syntax-check in a non-srcdir build directory
27477         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
27478         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
27479
27480 2010-01-22  Jim Meyering  <meyering@redhat.com>
27481
27482         userspec: add unit tests
27483         * tests/test-userspec.c: New file.
27484         * modules/userspec-tests: Likewise.
27485
27486 2010-01-21  Jim Meyering  <meyering@redhat.com>
27487
27488         maint.mk: handle source file names containing "." robustly
27489         * top/maint.mk (_dot_escaped_srcdir): Define.
27490         (VC_LIST): Use it in LHS of sed substitution.
27491
27492 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
27493
27494         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
27495         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
27496         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
27497         from a non-srcdir build.
27498
27499 2010-01-20  Eric Blake  <ebb9@byu.net>
27500
27501         warn-on-use: use instead of link-warning
27502         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
27503         * modules/unistd (Depends-on, Makefile.am): Likewise.
27504         * modules/arpa_inet (Depends-on): Replace link-warning with
27505         warn-on-use.
27506         (Makefile.am): Update rules accordingly.
27507         * modules/ctype (Depends-on, Makefile.am): Likewise.
27508         * modules/dirent (Depends-on, Makefile.am): Likewise.
27509         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
27510         * modules/inttypes (Depends-on, Makefile.am): Likewise.
27511         * modules/langinfo (Depends-on, Makefile.am): Likewise.
27512         * modules/locale (Depends-on, Makefile.am): Likewise.
27513         * modules/math (Depends-on, Makefile.am): Likewise.
27514         * modules/search (Depends-on, Makefile.am): Likewise.
27515         * modules/signal (Depends-on, Makefile.am): Likewise.
27516         * modules/spawn (Depends-on, Makefile.am): Likewise.
27517         * modules/stdlib (Depends-on, Makefile.am): Likewise.
27518         * modules/string (Depends-on, Makefile.am): Likewise.
27519         * modules/strings (Depends-on, Makefile.am): Likewise.
27520         * modules/sys_file (Depends-on, Makefile.am): Likewise.
27521         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
27522         * modules/sys_select (Depends-on, Makefile.am): Likewise.
27523         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
27524         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
27525         * modules/sys_times (Depends-on, Makefile.am): Likewise.
27526         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
27527         * modules/wchar (Depends-on, Makefile.am): Likewise.
27528         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
27529         should be poisoned.
27530         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
27531         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
27532         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
27533         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
27534         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
27535         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
27536         * m4/math_h.m4 (gl_MATH_H): Likewise.
27537         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
27538         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
27539         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
27540         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
27541         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
27542         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
27543         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
27544         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
27545         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
27546         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
27547         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
27548         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
27549         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
27550         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
27551         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
27552         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
27553         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
27554         GL_LINK_WARNING.
27555         * lib/ctype.in.h: Likewise.
27556         * lib/dirent.in.h: Likewise.
27557         * lib/fcntl.in.h: Likewise.
27558         * lib/inttypes.in.h: Likewise.
27559         * lib/langinfo.in.h: Likewise.
27560         * lib/locale.in.h: Likewise.
27561         * lib/math.in.h: Likewise.
27562         * lib/search.in.h: Likewise.
27563         * lib/signal.in.h: Likewise.
27564         * lib/spawn.in.h: Likewise.
27565         * lib/stdio.in.h: Likewise.
27566         * lib/stdlib.in.h: Likewise.
27567         * lib/string.in.h: Likewise.
27568         * lib/strings.in.h: Likewise.
27569         * lib/sys_file.in.h: Likewise.
27570         * lib/sys_ioctl.in.h: Likewise.
27571         * lib/sys_select.in.h: Likewise.
27572         * lib/sys_socket.in.h: Likewise.
27573         * lib/sys_stat.in.h: Likewise.
27574         * lib/sys_times.in.h: Likewise.
27575         * lib/sys_utsname.in.h: Likewise.
27576         * lib/unistd.in.h: Likewise.
27577         * lib/wchar.in.h: Likewise.
27578
27579 2010-01-20  Bruno Haible  <bruno@clisp.org>
27580
27581         Avoid duplicate -lm.
27582         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
27583         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
27584         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
27585         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
27586         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
27587         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
27588         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
27589         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
27590         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
27591         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
27592         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
27593         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
27594         Reported by Paolo Bonzini.
27595
27596 2010-01-19  Bruno Haible  <bruno@clisp.org>
27597
27598         langinfo, nl_langinfo: Relicense under LGPLv2+.
27599         * modules/langinfo (License): Change to LGPLv2+.
27600         * modules/nl_langinfo (License): Likewise.
27601         Patch by David Lutterkort <lutter@redhat.com>.
27602
27603 2010-01-19  Bruno Haible  <bruno@clisp.org>
27604
27605         Avoid compilation error with cc on OSF/1 5.1.
27606         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
27607         statement, not before.
27608         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
27609
27610 2010-01-18  Bruno Haible  <bruno@clisp.org>
27611
27612         Avoid a link error due to the __printf__ symbol.
27613         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
27614         and 2.6.x.
27615         (__format__, __printf__): Remove definitions.
27616         * lib/argp-fmtstream.h: Likewise.
27617         * lib/argp.h: Likewise.
27618         * lib/error.h: Likewise.
27619         * lib/vasnprintf.h: Likewise.
27620         * lib/xprintf.h: Likewise.
27621         * lib/xvasprintf.h: Likewise.
27622         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
27623
27624 2010-01-18  Bruno Haible  <bruno@clisp.org>
27625
27626         Tests for module 'tanl'.
27627         * modules/tanl-tests: New file.
27628         * tests/test-tanl.c: New file.
27629
27630         Tests for module 'sqrtl'.
27631         * modules/sqrtl-tests: New file.
27632         * tests/test-sqrtl.c: New file.
27633
27634         Tests for module 'sinl'.
27635         * modules/sinl-tests: New file.
27636         * tests/test-sinl.c: New file.
27637
27638         Tests for module 'logl'.
27639         * modules/logl-tests: New file.
27640         * tests/test-logl.c: New file.
27641
27642         Tests for module 'expl'.
27643         * modules/expl-tests: New file.
27644         * tests/test-expl.c: New file.
27645
27646         Tests for module 'cosl'.
27647         * modules/cosl-tests: New file.
27648         * tests/test-cosl.c: New file.
27649
27650         Tests for module 'atanl'.
27651         * modules/atanl-tests: New file.
27652         * tests/test-atanl.c: New file.
27653
27654         Tests for module 'asinl'.
27655         * modules/asinl-tests: New file.
27656         * tests/test-asinl.c: New file.
27657
27658         Tests for module 'acosl'.
27659         * modules/acosl-tests: New file.
27660         * tests/test-acosl.c: New file.
27661
27662         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
27663         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
27664         tanl): Use the standard gnulib idiom.
27665         * lib/cosl.c: Don't include trigl.c and sincosl.c.
27666         * lib/sinl.c: Likewise.
27667         * lib/tanl.c: Don't include trigl.c.
27668         (kernel_tanl): Make static.
27669         * lib/sincosl.c: Include trigl.h first.
27670         * lib/trigl.c: Likewise.
27671         * m4/acosl.m4: New file.
27672         * m4/asinl.m4: New file.
27673         * m4/atanl.m4: New file.
27674         * m4/cosl.m4: New file.
27675         * m4/expl.m4: New file.
27676         * m4/logl.m4: New file.
27677         * m4/sinl.m4: New file.
27678         * m4/sqrtl.m4: New file.
27679         * m4/tanl.m4: New file.
27680         * m4/mathl.m4: Remove file.
27681         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
27682         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
27683         Don't initialize GNULIB_MATHL.
27684         * modules/acosl: New file.
27685         * modules/asinl: New file.
27686         * modules/atanl: New file.
27687         * modules/cosl: New file.
27688         * modules/expl: New file.
27689         * modules/logl: New file.
27690         * modules/sinl: New file.
27691         * modules/sqrtl: New file.
27692         * modules/tanl: New file.
27693         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
27694         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
27695         substitute GNULIB_MATHL.
27696         * modules/mathl: Rewritten.
27697         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
27698         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
27699         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
27700         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
27701         * doc/posix-functions/expl.texi: Mention the 'expl' module.
27702         * doc/posix-functions/logl.texi: Mention the 'logl' module.
27703         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
27704         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
27705         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
27706
27707 2010-01-18  Bruno Haible  <bruno@clisp.org>
27708
27709         sqrt: Make gl_FUNC_SQRT requirable.
27710         * m4/sqrt.m4: New file.
27711         * modules/sqrt (Files): Add it.
27712         (configure.ac): Invoke gl_FUNC_SQRT.
27713
27714 2010-01-18  Bruno Haible  <bruno@clisp.org>
27715
27716         New modules for common <math.h> functions.
27717         * m4/mathfunc.m4: New file.
27718         * modules/acos: New file.
27719         * modules/asin: New file.
27720         * modules/atan: New file.
27721         * modules/atan2: New file.
27722         * modules/cbrt: New file.
27723         * modules/copysign: New file.
27724         * modules/cos: New file.
27725         * modules/cosh: New file.
27726         * modules/erf: New file.
27727         * modules/erfc: New file.
27728         * modules/exp: New file.
27729         * modules/fabs: New file.
27730         * modules/fmod: New file.
27731         * modules/hypot: New file.
27732         * modules/j0: New file.
27733         * modules/j1: New file.
27734         * modules/jn: New file.
27735         * modules/ldexp: New file.
27736         * modules/lgamma: New file.
27737         * modules/log: New file.
27738         * modules/log10: New file.
27739         * modules/log1p: New file.
27740         * modules/logb: New file.
27741         * modules/modf: New file.
27742         * modules/nextafter: New file.
27743         * modules/pow: New file.
27744         * modules/remainder: New file.
27745         * modules/rint: New file.
27746         * modules/sin: New file.
27747         * modules/sinh: New file.
27748         * modules/sqrt: New file.
27749         * modules/tan: New file.
27750         * modules/tanh: New file.
27751         * modules/y0: New file.
27752         * modules/y1: New file.
27753         * modules/yn: New file.
27754         * doc/posix-functions/acos.texi: Mention the 'acos' module.
27755         * doc/posix-functions/asin.texi: Mention the 'asin' module.
27756         * doc/posix-functions/atan.texi: Mention the 'atan' module.
27757         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
27758         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
27759         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
27760         * doc/posix-functions/cos.texi: Mention the 'cos' module.
27761         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
27762         * doc/posix-functions/erf.texi: Mention the 'erf' module.
27763         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
27764         * doc/posix-functions/exp.texi: Mention the 'exp' module.
27765         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
27766         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
27767         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
27768         * doc/posix-functions/j0.texi: Mention the 'j0' module.
27769         * doc/posix-functions/j1.texi: Mention the 'j1' module.
27770         * doc/posix-functions/jn.texi: Mention the 'jn' module.
27771         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
27772         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
27773         * doc/posix-functions/log.texi: Mention the 'log' module.
27774         * doc/posix-functions/log10.texi: Mention the 'log10' module.
27775         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
27776         * doc/posix-functions/logb.texi: Mention the 'logb' module.
27777         * doc/posix-functions/modf.texi: Mention the 'modf' module.
27778         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
27779         * doc/posix-functions/pow.texi: Mention the 'pow' module.
27780         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
27781         * doc/posix-functions/rint.texi: Mention the 'rint' module.
27782         * doc/posix-functions/sin.texi: Mention the 'sin' module.
27783         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
27784         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
27785         * doc/posix-functions/tan.texi: Mention the 'tan' module.
27786         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
27787         * doc/posix-functions/y0.texi: Mention the 'y0' module.
27788         * doc/posix-functions/y1.texi: Mention the 'y1' module.
27789         * doc/posix-functions/yn.texi: Mention the 'yn' module.
27790
27791 2010-01-18  Jim Meyering  <meyering@redhat.com>
27792
27793         ignore-value: relax license to LGPLv2+
27794         * modules/ignore-value (License): Relax to LGPLv2+.
27795
27796         getdate: don't leak when TZ contains two or more '"'s
27797         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
27798         double quote in TZ after the first one.
27799
27800         readtokens: do not leak internal token_lengths buffer
27801         * lib/readtokens.c (readtokens): Free the local, lengths,
27802         when the supplied "token_lengths" parameter is NULL.
27803
27804 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27805
27806         Fix a couple of missing LIBTHREAD link failures on AIX.
27807         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
27808         $(LIBTHREAD).
27809         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
27810
27811         Link test-poll against INET_PTON_LIB.
27812         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
27813         for inet_pton on Solaris 10.
27814
27815 2010-01-17  Bruno Haible  <bruno@clisp.org>
27816
27817         unistdio/*-sprintf: Fix typo in module description.
27818         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
27819         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
27820         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
27821         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
27822         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
27823         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
27824         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
27825         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
27826
27827 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27828
27829         gnulib-tool: fix filelist for AIX, HP-UX ksh.
27830         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
27831         variables in shell case patterns, for AIX and HP-UX ksh.
27832
27833         Split large sed scripts, for HP-UX sed.
27834         * modules/stdio: Split sed scripts around 50 sed commands,
27835         to avoid HP-UX limit of 99 commands, in the near future.
27836         * modules/string: Likewise.
27837         * modules/unistd: Likewise.
27838
27839         gnulib-tool: avoid writing in the current directory.
27840         * gnulib-tool (func_emit_lib_Makefile_am)
27841         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
27842         not in the current directory, so concurrent gnulib-tool
27843         instances do not interfere.
27844
27845 2010-01-16  Jim Meyering  <meyering@redhat.com>
27846
27847         doc: update users.txt
27848         * users.txt: Add grep.
27849         (diffutils, gzip): Update URLs.
27850
27851 2010-01-12  Bruno Haible  <bruno@clisp.org>
27852
27853         posix_spawn: Avoid test failure on Cygwin.
27854         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
27855         characters.
27856         Reported by Simon Josefsson.
27857
27858 2010-01-12  Bruno Haible  <bruno@clisp.org>
27859
27860         * tests/test-cond.c (main): When skipping the test, show the reason.
27861
27862 2010-01-12  Simon Josefsson  <simon@josefsson.org>
27863
27864         * lib/striconv.c (str_cd_iconv): Avoid if before free.
27865
27866 2010-01-12  Simon Josefsson  <simon@josefsson.org>
27867
27868         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
27869         VC_LIST_ALWAYS_EXCLUDE_REGEX.
27870
27871 2010-01-12  Eric Blake  <ebb9@byu.net>
27872
27873         build: guarantee AS_VAR_IF
27874         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
27875         (gl_AS_VAR_IF): Move...
27876         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
27877         Reported by Simon Josefsson.
27878
27879 2010-01-12  Simon Josefsson  <simon@josefsson.org>
27880
27881         * lib/stdio.in.h: Fix typo.
27882
27883 2010-01-12  Simon Josefsson  <simon@josefsson.org>
27884
27885         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
27886         libgpg-error.
27887
27888 2010-01-12  Simon Josefsson  <simon@josefsson.org>
27889
27890         * tests/test-xalloc-die.sh: Use $EXEEXT.
27891
27892 2010-01-12  Simon Josefsson  <simon@josefsson.org>
27893             Bruno Haible  <bruno@clisp.org>
27894
27895         getlogin, getlogin_r: Avoid test failure.
27896         * tests/test-getlogin.c: Include <stdio.h>.
27897         (main): Skip the test when the function fails because stdin is not a
27898         tty.
27899         * tests/test-getlogin_r.c: Include <stdio.h>.
27900         (main): Skip the test when the function fails because stdin is not a
27901         tty.
27902
27903 2010-01-11  Eric Blake  <ebb9@byu.net>
27904
27905         tests: avoid more large file warnings
27906         * tests/test-fflush.c: Avoid warning about ftell use.
27907         * tests/test-fseek.c: Avoid warning about fseek use.
27908
27909 2010-01-10  Bruno Haible  <bruno@clisp.org>
27910
27911         nproc: Work better on Linux when /proc and /sys are not mounted.
27912         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
27913         as lower bound when, on glibc/Linux systems,
27914         sysconf (_SC_NPROCESSORS_CONF) returns 1.
27915         Suggested by Pádraig Brady <P@draigbrady.com>.
27916         Reported by Dmitry V. Levin <ldv@altlinux.org>.
27917
27918         nproc: Refactor.
27919         * lib/nproc.c (num_processors_via_affinity_mask): New function,
27920         extracted from num_processors.
27921         (num_processors): Call it.
27922
27923 2010-01-11  Jim Meyering  <meyering@redhat.com>
27924
27925         utimecmp: avoid new warning from upcoming gcc-4.5.0
27926         * lib/utimecmp.c (BILLION): Define using #define rather than an
27927         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
27928
27929 2010-01-11  Eric Blake  <ebb9@byu.net>
27930
27931         math: add portability warnings for classification macros
27932         * modules/math (Depends-on): Add warn-on-use.
27933         (Makefile.am): Provide new substitutions.
27934         * m4/math_h.m4 (gl_MATH_H): Require inline.
27935         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
27936         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
27937         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
27938         implement warnings.
27939
27940         unistd: warn on use of environ without module
27941         * modules/unistd (Depends-on): Add warn-on-use.
27942         (Makefile.am): Provide new substitutions.
27943         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
27944         * lib/unistd.in.h (environ): Wrap with a warning helper function.
27945
27946         stdio: warn on suspicious uses
27947         * modules/stdio (Depends-on): Add warn-on-use.
27948         (Makefile.am): Provide new substitutions.
27949         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
27950         fseeko.
27951         * lib/stdio.in.h (gets): Always warn on use.
27952         (fseek, ftell): Adjust when warnings are issued, and honor
27953         _GL_NO_LARGE_FILES as a way to silence the warning.
27954         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
27955         any warning about large file offsets.
27956         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
27957         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
27958         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
27959         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
27960         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
27961         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
27962         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
27963         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
27964
27965         warn-on-use: new module
27966         * modules/warn-on-use: New file.
27967         * build-aux/warn-on-use.h: Likewise.
27968         * m4/warn-on-use.m4: Likewise.
27969         * MODULES.html.sh (Support for building): Mention it.
27970
27971 2010-01-10  Bruno Haible  <bruno@clisp.org>
27972
27973         Tests for module 'unistr/u32-strdup'.
27974         * modules/unistr/u32-strdup-tests: New file.
27975         * tests/unistr/test-u32-strdup.c: New file.
27976
27977         Tests for module 'unistr/u16-strdup'.
27978         * modules/unistr/u16-strdup-tests: New file.
27979         * tests/unistr/test-u16-strdup.c: New file.
27980
27981         Tests for module 'unistr/u8-strdup'.
27982         * modules/unistr/u8-strdup-tests: New file.
27983         * tests/unistr/test-u8-strdup.c: New file.
27984         * tests/unistr/test-strdup.h: New file.
27985
27986         Tests for module 'unistr/u32-strncmp'.
27987         * modules/unistr/u32-strncmp-tests: New file.
27988         * tests/unistr/test-u32-strncmp.c: New file.
27989
27990         Tests for module 'unistr/u16-strncmp'.
27991         * modules/unistr/u16-strncmp-tests: New file.
27992         * tests/unistr/test-u16-strncmp.c: New file.
27993
27994         Tests for module 'unistr/u8-strncmp'.
27995         * modules/unistr/u8-strncmp-tests: New file.
27996         * tests/unistr/test-u8-strncmp.c: New file.
27997         * tests/unistr/test-strncmp.h: New file.
27998
27999         Tests for module 'unistr/u32-strcoll'.
28000         * modules/unistr/u32-strcoll-tests: New file.
28001         * tests/unistr/test-u32-strcoll.c: New file.
28002
28003         Tests for module 'unistr/u16-strcoll'.
28004         * modules/unistr/u16-strcoll-tests: New file.
28005         * tests/unistr/test-u16-strcoll.c: New file.
28006
28007         Tests for module 'unistr/u8-strcoll'.
28008         * modules/unistr/u8-strcoll-tests: New file.
28009         * tests/unistr/test-u8-strcoll.c: New file.
28010
28011         Tests for module 'unistr/u32-strcmp'.
28012         * modules/unistr/u32-strcmp-tests: New file.
28013         * tests/unistr/test-u32-strcmp.c: New file.
28014         * tests/unistr/test-u32-strcmp.h: New file.
28015
28016         Tests for module 'unistr/u16-strcmp'.
28017         * modules/unistr/u16-strcmp-tests: New file.
28018         * tests/unistr/test-u16-strcmp.c: New file.
28019         * tests/unistr/test-u16-strcmp.h: New file.
28020
28021         Tests for module 'unistr/u8-strcmp'.
28022         * modules/unistr/u8-strcmp-tests: New file.
28023         * tests/unistr/test-u8-strcmp.c: New file.
28024         * tests/unistr/test-u8-strcmp.h: New file.
28025         * tests/unistr/test-strcmp.h: New file.
28026
28027         Tests for module 'unistr/u32-strncat'.
28028         * modules/unistr/u32-strncat-tests: New file.
28029         * tests/unistr/test-u32-strncat.c: New file.
28030
28031         Tests for module 'unistr/u16-strncat'.
28032         * modules/unistr/u16-strncat-tests: New file.
28033         * tests/unistr/test-u16-strncat.c: New file.
28034
28035         Tests for module 'unistr/u8-strncat'.
28036         * modules/unistr/u8-strncat-tests: New file.
28037         * tests/unistr/test-u8-strncat.c: New file.
28038         * tests/unistr/test-strncat.h: New file.
28039
28040         Tests for module 'unistr/u32-strcat'.
28041         * modules/unistr/u32-strcat-tests: New file.
28042         * tests/unistr/test-u32-strcat.c: New file.
28043
28044         Tests for module 'unistr/u16-strcat'.
28045         * modules/unistr/u16-strcat-tests: New file.
28046         * tests/unistr/test-u16-strcat.c: New file.
28047
28048         Tests for module 'unistr/u8-strcat'.
28049         * modules/unistr/u8-strcat-tests: New file.
28050         * tests/unistr/test-u8-strcat.c: New file.
28051         * tests/unistr/test-strcat.h: New file.
28052
28053         Tests for module 'unistr/u32-stpncpy'.
28054         * modules/unistr/u32-stpncpy-tests: New file.
28055         * tests/unistr/test-u32-stpncpy.c: New file.
28056
28057         Tests for module 'unistr/u16-stpncpy'.
28058         * modules/unistr/u16-stpncpy-tests: New file.
28059         * tests/unistr/test-u16-stpncpy.c: New file.
28060
28061         Tests for module 'unistr/u8-stpncpy'.
28062         * modules/unistr/u8-stpncpy-tests: New file.
28063         * tests/unistr/test-u8-stpncpy.c: New file.
28064         * tests/unistr/test-stpncpy.h: New file.
28065
28066         Tests for module 'unistr/u32-strncpy'.
28067         * modules/unistr/u32-strncpy-tests: New file.
28068         * tests/unistr/test-u32-strncpy.c: New file.
28069
28070         Tests for module 'unistr/u16-strncpy'.
28071         * modules/unistr/u16-strncpy-tests: New file.
28072         * tests/unistr/test-u16-strncpy.c: New file.
28073
28074         Tests for module 'unistr/u8-strncpy'.
28075         * modules/unistr/u8-strncpy-tests: New file.
28076         * tests/unistr/test-u8-strncpy.c: New file.
28077         * tests/unistr/test-strncpy.h: New file.
28078
28079         Tests for module 'unistr/u32-stpcpy'.
28080         * modules/unistr/u32-stpcpy-tests: New file.
28081         * tests/unistr/test-u32-stpcpy.c: New file.
28082
28083         Tests for module 'unistr/u16-stpcpy'.
28084         * modules/unistr/u16-stpcpy-tests: New file.
28085         * tests/unistr/test-u16-stpcpy.c: New file.
28086
28087         Tests for module 'unistr/u8-stpcpy'.
28088         * modules/unistr/u8-stpcpy-tests: New file.
28089         * tests/unistr/test-u8-stpcpy.c: New file.
28090         * tests/unistr/test-stpcpy.h: New file.
28091
28092         Tests for module 'unistr/u32-strcpy'.
28093         * modules/unistr/u32-strcpy-tests: New file.
28094         * tests/unistr/test-u32-strcpy.c: New file.
28095
28096         Tests for module 'unistr/u16-strcpy'.
28097         * modules/unistr/u16-strcpy-tests: New file.
28098         * tests/unistr/test-u16-strcpy.c: New file.
28099
28100         Tests for module 'unistr/u8-strcpy'.
28101         * modules/unistr/u8-strcpy-tests: New file.
28102         * tests/unistr/test-u8-strcpy.c: New file.
28103         * tests/unistr/test-strcpy.h: New file.
28104
28105         Tests for module 'unistr/u32-strnlen'.
28106         * modules/unistr/u32-strnlen-tests: New file.
28107         * tests/unistr/test-u32-strnlen.c: New file.
28108
28109         Tests for module 'unistr/u16-strnlen'.
28110         * modules/unistr/u16-strnlen-tests: New file.
28111         * tests/unistr/test-u16-strnlen.c: New file.
28112
28113         Tests for module 'unistr/u8-strnlen'.
28114         * modules/unistr/u8-strnlen-tests: New file.
28115         * tests/unistr/test-u8-strnlen.c: New file.
28116         * tests/unistr/test-strnlen.h: New file.
28117
28118         Tests for module 'unistr/u32-strlen'.
28119         * modules/unistr/u32-strlen-tests: New file.
28120         * tests/unistr/test-u32-strlen.c: New file.
28121
28122         Tests for module 'unistr/u16-strlen'.
28123         * modules/unistr/u16-strlen-tests: New file.
28124         * tests/unistr/test-u16-strlen.c: New file.
28125
28126         Tests for module 'unistr/u8-strlen'.
28127         * modules/unistr/u8-strlen-tests: New file.
28128         * tests/unistr/test-u8-strlen.c: New file.
28129
28130         Tests for module 'unistr/u32-prev'.
28131         * modules/unistr/u32-prev-tests: New file.
28132         * tests/unistr/test-u32-prev.c: New file.
28133
28134         Tests for module 'unistr/u16-prev'.
28135         * modules/unistr/u16-prev-tests: New file.
28136         * tests/unistr/test-u16-prev.c: New file.
28137
28138         Tests for module 'unistr/u8-prev'.
28139         * modules/unistr/u8-prev-tests: New file.
28140         * tests/unistr/test-u8-prev.c: New file.
28141
28142         Tests for module 'unistr/u32-next'.
28143         * modules/unistr/u32-next-tests: New file.
28144         * tests/unistr/test-u32-next.c: New file.
28145
28146         Tests for module 'unistr/u16-next'.
28147         * modules/unistr/u16-next-tests: New file.
28148         * tests/unistr/test-u16-next.c: New file.
28149
28150         Tests for module 'unistr/u8-next'.
28151         * modules/unistr/u8-next-tests: New file.
28152         * tests/unistr/test-u8-next.c: New file.
28153
28154         Tests for module 'unistr/u32-strmbtouc'.
28155         * modules/unistr/u32-strmbtouc-tests: New file.
28156         * tests/unistr/test-u32-strmbtouc.c: New file.
28157
28158         Tests for module 'unistr/u16-strmbtouc'.
28159         * modules/unistr/u16-strmbtouc-tests: New file.
28160         * tests/unistr/test-u16-strmbtouc.c: New file.
28161
28162         Tests for module 'unistr/u8-strmbtouc'.
28163         * modules/unistr/u8-strmbtouc-tests: New file.
28164         * tests/unistr/test-u8-strmbtouc.c: New file.
28165
28166         Tests for module 'unistr/u32-strmblen'.
28167         * modules/unistr/u32-strmblen-tests: New file.
28168         * tests/unistr/test-u32-strmblen.c: New file.
28169
28170         Tests for module 'unistr/u16-strmblen'.
28171         * modules/unistr/u16-strmblen-tests: New file.
28172         * tests/unistr/test-u16-strmblen.c: New file.
28173
28174         Tests for module 'unistr/u8-strmblen'.
28175         * modules/unistr/u8-strmblen-tests: New file.
28176         * tests/unistr/test-u8-strmblen.c: New file.
28177
28178         Tests for module 'unistr/u32-cpy-alloc'.
28179         * modules/unistr/u32-cpy-alloc-tests: New file.
28180         * tests/unistr/test-u32-cpy-alloc.c: New file.
28181
28182         Tests for module 'unistr/u16-cpy-alloc'.
28183         * modules/unistr/u16-cpy-alloc-tests: New file.
28184         * tests/unistr/test-u16-cpy-alloc.c: New file.
28185
28186         Tests for module 'unistr/u8-cpy-alloc'.
28187         * modules/unistr/u8-cpy-alloc-tests: New file.
28188         * tests/unistr/test-u8-cpy-alloc.c: New file.
28189         * tests/unistr/test-cpy-alloc.h: New file.
28190
28191         Tests for module 'unistr/u32-mbsnlen'.
28192         * modules/unistr/u32-mbsnlen-tests: New file.
28193         * tests/unistr/test-u32-mbsnlen.c: New file.
28194
28195         Tests for module 'unistr/u16-mbsnlen'.
28196         * modules/unistr/u16-mbsnlen-tests: New file.
28197         * tests/unistr/test-u16-mbsnlen.c: New file.
28198
28199         Tests for module 'unistr/u8-mbsnlen'.
28200         * modules/unistr/u8-mbsnlen-tests: New file.
28201         * tests/unistr/test-u8-mbsnlen.c: New file.
28202
28203         Tests for module 'unistr/u32-chr'.
28204         * modules/unistr/u32-chr-tests: New file.
28205         * tests/unistr/test-u32-chr.c: New file.
28206
28207         Tests for module 'unistr/u16-chr'.
28208         * modules/unistr/u16-chr-tests: New file.
28209         * tests/unistr/test-u16-chr.c: New file.
28210
28211         Tests for module 'unistr/u8-chr'.
28212         * modules/unistr/u8-chr-tests: New file.
28213         * tests/unistr/test-u8-chr.c: New file.
28214         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
28215
28216         Tests for module 'unistr/u32-cmp2'.
28217         * modules/unistr/u32-cmp2-tests: New file.
28218         * tests/unistr/test-u32-cmp2.c: New file.
28219
28220         Tests for module 'unistr/u16-cmp2'.
28221         * modules/unistr/u16-cmp2-tests: New file.
28222         * tests/unistr/test-u16-cmp2.c: New file.
28223
28224         Tests for module 'unistr/u8-cmp2'.
28225         * modules/unistr/u8-cmp2-tests: New file.
28226         * tests/unistr/test-u8-cmp2.c: New file.
28227         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
28228
28229         Tests for module 'unistr/u32-cmp'.
28230         * modules/unistr/u32-cmp-tests: New file.
28231         * tests/unistr/test-u32-cmp.c: New file.
28232
28233         Tests for module 'unistr/u16-cmp'.
28234         * modules/unistr/u16-cmp-tests: New file.
28235         * tests/unistr/test-u16-cmp.c: New file.
28236
28237         Tests for module 'unistr/u8-cmp'.
28238         * modules/unistr/u8-cmp-tests: New file.
28239         * tests/unistr/test-u8-cmp.c: New file.
28240         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
28241
28242         Tests for module 'unistr/u32-set'.
28243         * modules/unistr/u32-set-tests: New file.
28244         * tests/unistr/test-u32-set.c: New file.
28245
28246         Tests for module 'unistr/u16-set'.
28247         * modules/unistr/u16-set-tests: New file.
28248         * tests/unistr/test-u16-set.c: New file.
28249
28250         Tests for module 'unistr/u8-set'.
28251         * modules/unistr/u8-set-tests: New file.
28252         * tests/unistr/test-u8-set.c: New file.
28253         * tests/unistr/test-set.h: New file.
28254
28255         Tests for module 'unistr/u32-move'.
28256         * modules/unistr/u32-move-tests: New file.
28257         * tests/unistr/test-u32-move.c: New file.
28258
28259         Tests for module 'unistr/u16-move'.
28260         * modules/unistr/u16-move-tests: New file.
28261         * tests/unistr/test-u16-move.c: New file.
28262
28263         Tests for module 'unistr/u8-move'.
28264         * modules/unistr/u8-move-tests: New file.
28265         * tests/unistr/test-u8-move.c: New file.
28266         * tests/unistr/test-move.h: New file.
28267
28268         Tests for module 'unistr/u32-cpy'.
28269         * modules/unistr/u32-cpy-tests: New file.
28270         * tests/unistr/test-u32-cpy.c: New file.
28271
28272         Tests for module 'unistr/u16-cpy'.
28273         * modules/unistr/u16-cpy-tests: New file.
28274         * tests/unistr/test-u16-cpy.c: New file.
28275
28276         Tests for module 'unistr/u8-cpy'.
28277         * modules/unistr/u8-cpy-tests: New file.
28278         * tests/unistr/test-u8-cpy.c: New file.
28279         * tests/unistr/test-cpy.h: New file.
28280
28281 2010-01-09  Bruno Haible  <bruno@clisp.org>
28282
28283         Tests for module 'unistr/u32-uctomb'.
28284         * modules/unistr/u32-uctomb-tests: New file.
28285         * tests/unistr/test-u32-uctomb.c: New file.
28286
28287         Tests for module 'unistr/u16-uctomb'.
28288         * modules/unistr/u16-uctomb-tests: New file.
28289         * tests/unistr/test-u16-uctomb.c: New file.
28290
28291         Tests for module 'unistr/u8-uctomb'.
28292         * modules/unistr/u8-uctomb-tests: New file.
28293         * tests/unistr/test-u8-uctomb.c: New file.
28294
28295         Tests for module 'unistr/u32-mbtoucr'.
28296         * modules/unistr/u32-mbtoucr-tests: New file.
28297         * tests/unistr/test-u32-mbtoucr.c: New file.
28298
28299         Tests for module 'unistr/u16-mbtoucr'.
28300         * modules/unistr/u16-mbtoucr-tests: New file.
28301         * tests/unistr/test-u16-mbtoucr.c: New file.
28302
28303         Tests for module 'unistr/u8-mbtoucr'.
28304         * modules/unistr/u8-mbtoucr-tests: New file.
28305         * tests/unistr/test-u8-mbtoucr.c: New file.
28306
28307         Tests for module 'unistr/u32-mbtouc'.
28308         * modules/unistr/u32-mbtouc-tests: New file.
28309         * tests/unistr/test-u32-mbtouc.c: New file.
28310
28311         Tests for module 'unistr/u16-mbtouc'.
28312         * modules/unistr/u16-mbtouc-tests: New file.
28313         * tests/unistr/test-u16-mbtouc.c: New file.
28314
28315         Tests for module 'unistr/u8-mbtouc'.
28316         * modules/unistr/u8-mbtouc-tests: New file.
28317         * tests/unistr/test-u8-mbtouc.c: New file.
28318
28319         Tests for module 'unistr/u32-mbtouc-unsafe'.
28320         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
28321         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
28322         * tests/unistr/test-u32-mbtouc.h: New file.
28323
28324         Tests for module 'unistr/u16-mbtouc-unsafe'.
28325         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
28326         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
28327         * tests/unistr/test-u16-mbtouc.h: New file.
28328
28329         Tests for module 'unistr/u8-mbtouc-unsafe'.
28330         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
28331         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
28332         * tests/unistr/test-u8-mbtouc.h: New file.
28333
28334         Tests for module 'unistr/u32-mblen'.
28335         * modules/unistr/u32-mblen-tests: New file.
28336         * tests/unistr/test-u32-mblen.c: New file.
28337
28338         Tests for module 'unistr/u16-mblen'.
28339         * modules/unistr/u16-mblen-tests: New file.
28340         * tests/unistr/test-u16-mblen.c: New file.
28341
28342         Tests for module 'unistr/u8-mblen'.
28343         * modules/unistr/u8-mblen-tests: New file.
28344         * tests/unistr/test-u8-mblen.c: New file.
28345
28346         Tests for module 'unistr/u32-to-u16'.
28347         * modules/unistr/u32-to-u16-tests: New file.
28348         * tests/unistr/test-u32-to-u16.c: New file.
28349
28350         Tests for module 'unistr/u32-to-u8'.
28351         * modules/unistr/u32-to-u8-tests: New file.
28352         * tests/unistr/test-u32-to-u8.c: New file.
28353
28354         Tests for module 'unistr/u16-to-u32'.
28355         * modules/unistr/u16-to-u32-tests: New file.
28356         * tests/unistr/test-u16-to-u32.c: New file.
28357
28358         Tests for module 'unistr/u16-to-u8'.
28359         * modules/unistr/u16-to-u8-tests: New file.
28360         * tests/unistr/test-u16-to-u8.c: New file.
28361
28362         Tests for module 'unistr/u8-to-u32'.
28363         * modules/unistr/u8-to-u32-tests: New file.
28364         * tests/unistr/test-u8-to-u32.c: New file.
28365
28366         Tests for module 'unistr/u8-to-u16'.
28367         * modules/unistr/u8-to-u16-tests: New file.
28368         * tests/unistr/test-u8-to-u16.c: New file.
28369
28370         Tests for module 'unistr/u32-check'.
28371         * modules/unistr/u32-check-tests: New file.
28372         * tests/unistr/test-u32-check.c: New file.
28373
28374         Tests for module 'unistr/u16-check'.
28375         * modules/unistr/u16-check-tests: New file.
28376         * tests/unistr/test-u16-check.c: New file.
28377
28378         Tests for module 'unistr/u8-check'.
28379         * modules/unistr/u8-check-tests: New file.
28380         * tests/unistr/test-u8-check.c: New file.
28381
28382         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
28383         (category_equals): New function.
28384         (main): Add more tests.
28385         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
28386
28387         * tests/unictype/test-bidi_byname.c (main): Add more tests.
28388
28389 2010-01-10  Bruno Haible  <bruno@clisp.org>
28390
28391         unistr/u*-strcoll: Try harder to distinguish different strings.
28392         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
28393         compare s1 and s2 to see if they are different.
28394
28395 2010-01-10  Bruno Haible  <bruno@clisp.org>
28396
28397         unistr/u*-stpncpy: Fix the return value.
28398         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
28399         description of the return value consistent with stpncpy in glibc.
28400         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
28401         written non-NUL unit.
28402
28403 2010-01-10  Bruno Haible  <bruno@clisp.org>
28404
28405         unistr/u*-next: Add missing dependencies.
28406         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
28407         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
28408         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
28409
28410 2010-01-10  Bruno Haible  <bruno@clisp.org>
28411
28412         unistr/u8-mbsnlen: Fix return value for incomplete character.
28413         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
28414         u8_mblen.
28415         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
28416         Remove unistr/u8-mblen.
28417         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
28418         u16_mblen.
28419         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
28420         Remove unistr/u16-mblen.
28421
28422 2010-01-10  Bruno Haible  <bruno@clisp.org>
28423
28424         wchar: Fix compilation error when <wchar.h> is used from coreutils.
28425         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
28426         Reported by Brian Gough <bjg@gnu.org> and
28427         Chris Clayton <chris2553@googlemail.com> via
28428         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
28429
28430 2010-01-09  Bruno Haible  <bruno@clisp.org>
28431
28432         unistr/u16-to-u32: Reject invalid input.
28433         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
28434         u16_mbtouc.
28435         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
28436         Remove unistr/u16-mbtouc.
28437
28438         unistr/u16-to-u8: Reject invalid input.
28439         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
28440         u16_mbtouc.
28441         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
28442         Remove unistr/u16-mbtouc.
28443
28444         unistr/u8-to-u32: Reject invalid input.
28445         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
28446         u8_mbtouc.
28447         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
28448         Remove unistr/u8-mbtouc.
28449
28450         unistr/u8-to-u16: Reject invalid input.
28451         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
28452         u8_mbtouc.
28453         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
28454         Remove unistr/u8-mbtouc.
28455
28456 2010-01-09  Bruno Haible  <bruno@clisp.org>
28457
28458         Tests for module 'getlogin'.
28459         * modules/getlogin-tests: New file.
28460         * tests/test-getlogin.c: New file.
28461
28462         New module 'getlogin'.
28463         * lib/unistd.in.h (getlogin): New declaration.
28464         * lib/getlogin.c: New file.
28465         * m4/getlogin.m4: New file.
28466         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
28467         HAVE_GETLOGIN.
28468         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
28469         HAVE_GETLOGIN.
28470         * modules/getlogin: New file.
28471         * doc/posix-functions/getlogin.texi: Mention the new module.
28472         Reported by John W. Eaton <jwe@gnu.org>.
28473
28474 2010-01-09  Bruno Haible  <bruno@clisp.org>
28475
28476         getlogin_r: Support for native Windows.
28477         * lib/getlogin_r.c: Include <windows.h>
28478         (getlogin_r): Implement for native Windows.
28479         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
28480         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
28481         via John W. Eaton <jwe@gnu.org>.
28482
28483 2010-01-09  Bruno Haible  <bruno@clisp.org>
28484
28485         getlogin_r: Small fixes.
28486         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
28487         succeeds.
28488         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
28489         before testing whether getlogin_r is declared. No need to set
28490         HAVE_DECL_GETLOGIN_R to 1.
28491         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
28492
28493 2010-01-09  Bruno Haible  <bruno@clisp.org>
28494
28495         * lib/unistd.in.h (getlogin_r): Add comment.
28496
28497 2010-01-09  Bruno Haible  <bruno@clisp.org>
28498
28499         Tests for module 'getlogin_r'.
28500         * modules/getlogin_r-tests: New file.
28501         * tests/test-getlogin_r.c: New file.
28502
28503 2010-01-09  Jim Meyering  <meyering@redhat.com>
28504
28505         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
28506         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
28507         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
28508
28509 2010-01-08  Simon Josefsson  <simon@josefsson.org>
28510
28511         * lib/dup2.c (rpl_dup2): Improve comment.
28512
28513 2010-01-08  Eric Blake  <ebb9@byu.net>
28514
28515         maint.mk: allow packages to add makefile @@ exceptions
28516         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
28517         (sc_makefile_check): Rename...
28518         (sc_makefile_at_at_check): ...to this, and use hook.
28519
28520         dup2: work around mingw bug
28521         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
28522         Reported by Simon Josefsson.
28523
28524 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
28525
28526         glob: Fix C++ compilation.
28527         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
28528         C++.
28529
28530 2010-01-07  Bruno Haible  <bruno@clisp.org>
28531
28532         Fix indentation of wctype.in.h, broken since 2007-01-06.
28533         * lib/wctype.in.h: Fix indentation of preprocessor directives.
28534
28535 2010-01-07  Bruno Haible  <bruno@clisp.org>
28536
28537         mbslen: Avoid collision with system function.
28538         * lib/string.in.h [MirBSD]: Include <wchar.h>.
28539         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
28540         * m4/mbslen.m4: New file.
28541         * modules/mbslen (Files): Add it.
28542         (configure.ac): Invoke gl_MBSLEN.
28543         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
28544         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
28545         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
28546         via Ian Beckwith <ianb@erislabs.net>.
28547
28548 2010-01-07  Bruno Haible  <bruno@clisp.org>
28549
28550         dirent: Document the last fix.
28551         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
28552
28553 2010-01-07  Bruno Haible  <bruno@clisp.org>
28554
28555         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
28556         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
28557         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
28558         va_list are defined.
28559         * doc/posix-headers/stdio.texi: Document the bug of missing types.
28560         Reported by Eric Blake.
28561
28562 2010-01-07  Bruno Haible  <bruno@clisp.org>
28563
28564         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
28565         * modules/xlist (Depends-on): Add 'list',
28566         * modules/xoset (Depends-on): Add 'oset'.
28567         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
28568
28569 2010-01-07  Bruno Haible  <bruno@clisp.org>
28570
28571         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
28572         * doc/posix-functions/strncasecmp.texi: Likewise.
28573
28574 2010-01-07  Bruno Haible  <bruno@clisp.org>
28575
28576         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
28577
28578 2010-01-07  John W. Eaton  <jwe@octave.org>
28579
28580         wctype: allow C++ use
28581         * lib/wctype.in.h: Add extern "C" block for C++.
28582
28583 2010-01-06  Eric Blake  <ebb9@byu.net>
28584
28585         maint.mk: detect incorrect GFDL usage
28586         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
28587
28588 2010-01-06  Jim Meyering  <meyering@redhat.com>
28589         and Eric Blake  <ebb9@byu.net>
28590
28591         maint.mk: ignore multi-line copyright in NEWS
28592         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
28593
28594 2010-01-06  Eric Blake  <ebb9@byu.net>
28595
28596         select: add missing dependency
28597         * modules/select-tests (Depends-on): Move sockets dependency...
28598         * modules/select (Depends-on): ...here.
28599         Reported by Ian Beckwith.
28600
28601         doc: regenerate INSTALL
28602         * doc/INSTALL: Reflect recent autoconf update.
28603         * doc/INSTALL.ISO: Likewise.
28604         * doc/INSTALL.UTF-8: Likewise.
28605
28606         pread: fix compilation on glibc
28607         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
28608         Reported by Ralf Wildenhues.
28609
28610         dirent: fix test failure
28611         * lib/dirent.in.h (includes): Guarantee ino_t.
28612         Reported by Ralf Wildenhues.
28613
28614 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
28615
28616         linkat, renameat: avoid bad free
28617         * lib/at-func2.c (at_func2): Fix typo.
28618         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
28619
28620 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28621
28622         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
28623         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
28624         to avoid failure of symlink test later.
28625
28626 2010-01-06  Eric Blake  <ebb9@byu.net>
28627
28628         stdio, unistd: guarantee ssize_t
28629         * lib/unistd.in.h (includes): Ensure that types required by POSIX
28630         2008 are exposed when needed.
28631         * lib/stdio.in.h (includes): Likewise.
28632         Reported by Ralf Wildenhues.
28633
28634 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
28635
28636         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
28637         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
28638         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
28639
28640 2010-01-06  Jim Meyering  <meyering@redhat.com>
28641
28642         readtokens: this module *does* require xalloc.h
28643         It uses only functions that were omitted by the old syntax-check rule.
28644         * lib/readtokens.c: Include "xalloc.h" once again.
28645         * modules/readtokens (Depends-on): Add xalloc.
28646         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
28647
28648 2010-01-05  Eric Blake  <ebb9@byu.net>
28649
28650         maint: support 'make announcement' from a VPATH build
28651         * top/maint.mk (announcement): Look for correct NEWS file.
28652
28653 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
28654
28655         utimens (fdutimens): ignore a negative FD, per contract
28656         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
28657         when we have a valid file descriptor.  Otherwise, using a brand
28658         new glibc (with just-patched futimens that now fails with EBADF)
28659         would cause this function to fail with ENOSYS.
28660         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
28661         See also http://bugzilla.redhat.com/552320.
28662
28663 2010-01-05  Eric Blake  <ebb9@byu.net>
28664
28665         strcase: document what it provides
28666         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
28667         gnulib module.
28668         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
28669         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
28670
28671 2010-01-05  Jim Meyering  <meyering@redhat.com>
28672
28673         maint: remove useless inclusions of "xalloc.h"
28674         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
28675         * lib/readtokens.c: Likewise.
28676         * lib/same.c: Likewise.
28677         * modules/getloadavg (Depends-on): Remove xalloc.
28678         * modules/readtokens: Likewise.
28679         * modules/same: Likewise.
28680
28681         maint.mk: include 4 more function names in alloca.h-checking regexp
28682         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
28683         regexp.  Before, we would give a false-positive (saying alloca.h
28684         is included unnecessarily) when the only uses involved omitted symbols.
28685
28686         xalloc.h: use consistent formatting
28687         * lib/xalloc.h: Move declarations to start in the first column.
28688
28689 2010-01-05  Eric Blake  <ebb9@byu.net>
28690
28691         mkdir: avoid xalloc
28692         * lib/mkdir.c (includes): Drop unused header.
28693         Reported by John W. Eaton.
28694
28695 2010-01-04  Jim Meyering  <meyering@redhat.com>
28696
28697         nl_langinfo: avoid configure-time syntax error
28698         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
28699         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
28700         the empty string.  Don't let that provoke a shell syntax error.
28701
28702         regcomp, regexec, fnmatch: avoid array bounds read error
28703         * lib/regcomp.c (build_equiv_class): From glibc:
28704         Use only the low 24 bits of a findidx return value as an index
28705         into the weights array.  Patch by Ulrich Drepper:
28706         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
28707         * lib/regexec.c (check_node_accept_bytes): Likewise.
28708         * lib/fnmatch_loop.c (FCT): Likewise.
28709
28710         regcomp: skip collseq lookup when there are no rules
28711         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
28712         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
28713
28714         regcomp: recognize ill-formed { } expressions
28715         * lib/regcomp.c (parse_dup_op): From glibc:
28716         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
28717
28718         regcomp: fix typo in comment
28719         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
28720         s/satisfy/satisfies/.
28721
28722         regcomp: sync from glibc: remove dead store
28723         * lib/regcomp.c (duplicate_node_closure): Remove useless
28724         search_duplicated_node call and dead store.
28725
28726         regcomp: sync from glibc; always use nl_langinfo
28727         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
28728         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
28729         * modules/regex (Depends-on): Add nl_langinfo.
28730
28731 2010-01-04  Eric Blake  <ebb9@byu.net>
28732
28733         fdopendir: fix configure test
28734         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
28735
28736 2010-01-01  Bruno Haible  <bruno@clisp.org>
28737
28738         wchar: Remove unused configure check.
28739         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
28740
28741 2010-01-01  Eric Blake  <ebb9@byu.net>
28742
28743         headers: make check of system header explicit
28744         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
28745         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
28746         ourselves.
28747         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
28748         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
28749         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
28750         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
28751         internals.
28752         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
28753         missing.
28754         Suggested by Bruno Haible.
28755
28756 2010-01-01  Jim Meyering  <meyering@redhat.com>
28757
28758         ChangeLog: tweak to eliminate unnecessary copyright line
28759         * ChangeLog: Remove a copyright line that was mistakenly updated
28760         by today's update-copyright run.  Reported by Eric Blake.
28761
28762         test-update-copyright: don't let envvar setting cause test failure
28763         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
28764
28765 2010-01-01  Bruno Haible  <bruno@clisp.org>
28766
28767         localename: Avoid gcc warning.
28768         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
28769         function if it is not used.
28770
28771 2010-01-01  Jim Meyering  <meyering@redhat.com>
28772
28773         update nearly all FSF copyright year lists to include 2010
28774         Use the same procedure as for 2009, outlined in
28775         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
28776
28777         version-etc: set COPYRIGHT_YEAR to 2010
28778         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
28779
28780 2009-12-31  Eric Blake  <ebb9@byu.net>
28781
28782         doc: correct availability of cygwin 1.5.x getopt
28783         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
28784         variables.
28785         * doc/posix-functions/opterr.texi (opterr): Likewise.
28786         * doc/posix-functions/optind.texi (optind): Likewise.
28787         * doc/posix-functions/optopt.texi (optopt): Likewise.
28788         * doc/posix-functions/tzname.texi (tzname): Likewise.
28789
28790         openat: update maintainer
28791         * modules/openat (Maintainer): Add myself.
28792
28793         utimens: avoid shadowing warning
28794         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
28795         buffers into one, to avoid shadowing, as well as avoiding a
28796         redundant stat.
28797         Reported by Jim Meyering.
28798
28799         test-dup2: avoid compiler warning
28800         * tests/test-dup2.c (is_inheritable): Only define if used.
28801
28802 2010-01-01  Bruno Haible  <bruno@clisp.org>
28803
28804         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
28805         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
28806         defined, use wctomb instead of wcrtomb.
28807
28808 2010-01-01  Bruno Haible  <bruno@clisp.org>
28809
28810         iconv: Reject native Solaris iconv.
28811         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
28812         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
28813
28814 2009-12-31  Bruno Haible  <bruno@clisp.org>
28815
28816         * tests/test-signal.c (main): Remove test of 'SIG'.
28817
28818 2009-12-31  Bruno Haible  <bruno@clisp.org>
28819
28820         spawn: Fix incomplete fix.
28821         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
28822         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
28823         warnings for GNULIB_POSIXCHECK again.
28824         Reported by Eric Blake.
28825
28826 2009-12-31  Bruno Haible  <bruno@clisp.org>
28827
28828         Avoid namespace pollution on glibc systems.
28829         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
28830         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
28831         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
28832         glibc systems.
28833
28834 2009-12-31  Bruno Haible  <bruno@clisp.org>
28835
28836         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
28837         (gl_REPLACE_WCHAR_H): Turn into a no-op.
28838         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
28839         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
28840         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
28841         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
28842         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
28843
28844 2009-12-31  Bruno Haible  <bruno@clisp.org>
28845
28846         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
28847         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
28848         afterwards.
28849
28850 2009-12-31  Bruno Haible  <bruno@clisp.org>
28851
28852         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
28853         SYS_UTSNAME_H.
28854
28855 2009-12-31  Bruno Haible  <bruno@clisp.org>
28856
28857         spawn: Fix misapplied patch.
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.
28861
28862 2009-12-31  Bruno Haible  <bruno@clisp.org>
28863
28864         times: Update after sys_times changed.
28865         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
28866         * modules/times (Files): Add it.
28867         (configure.ac): Invoke gl_FUNC_TIMES.
28868
28869 2009-12-31  Bruno Haible  <bruno@clisp.org>
28870
28871         Use AC_C_INLINE where necessary.
28872         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
28873         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
28874         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
28875         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
28876         * m4/mbfile.m4 (gl_MBFILE): Likewise.
28877         * m4/mbiter.m4 (gl_MBITER): Likewise.
28878         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
28879         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
28880         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
28881         * modules/u64 (configure.ac): Likewise.
28882
28883 2009-12-31  Bruno Haible  <bruno@clisp.org>
28884
28885         Use AC_C_INLINE instead of module 'inline' where possible.
28886         * modules/inline (Description): Clarify purpose.
28887         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
28888         * modules/count-one-bits (Depends-on): Remove inline.
28889         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
28890         * modules/openat (Depends-on): Remove inline.
28891         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
28892         instead of depending on module 'inline'.
28893         * modules/filevercmp (Depends-on, configure.ac): Likewise.
28894         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
28895         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
28896         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
28897         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
28898         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
28899         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
28900         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
28901         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
28902         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
28903         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
28904         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
28905         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
28906         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
28907         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
28908         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
28909         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
28910         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
28911         Likewise.
28912         * modules/unictype/property-ascii-hex-digit (Depends-on,
28913         configure.ac): Likewise.
28914         * modules/unictype/property-bidi-arabic-digit (Depends-on,
28915         configure.ac): Likewise.
28916         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
28917         configure.ac): Likewise.
28918         * modules/unictype/property-bidi-block-separator (Depends-on,
28919         configure.ac): Likewise.
28920         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
28921         configure.ac): Likewise.
28922         * modules/unictype/property-bidi-common-separator (Depends-on,
28923         configure.ac): Likewise.
28924         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
28925         Likewise.
28926         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
28927         configure.ac): Likewise.
28928         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
28929         configure.ac): Likewise.
28930         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
28931         configure.ac): Likewise.
28932         * modules/unictype/property-bidi-european-digit (Depends-on,
28933         configure.ac): Likewise.
28934         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
28935         configure.ac): Likewise.
28936         * modules/unictype/property-bidi-left-to-right (Depends-on,
28937         configure.ac): Likewise.
28938         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
28939         configure.ac): Likewise.
28940         * modules/unictype/property-bidi-other-neutral (Depends-on,
28941         configure.ac): Likewise.
28942         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
28943         Likewise.
28944         * modules/unictype/property-bidi-segment-separator (Depends-on,
28945         configure.ac): Likewise.
28946         * modules/unictype/property-bidi-whitespace (Depends-on,
28947         configure.ac): Likewise.
28948         * modules/unictype/property-combining (Depends-on, configure.ac):
28949         Likewise.
28950         * modules/unictype/property-composite (Depends-on, configure.ac):
28951         Likewise.
28952         * modules/unictype/property-currency-symbol (Depends-on,
28953         configure.ac): Likewise.
28954         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
28955         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
28956         Likewise.
28957         * modules/unictype/property-default-ignorable-code-point (Depends-on,
28958         configure.ac): Likewise.
28959         * modules/unictype/property-deprecated (Depends-on, configure.ac):
28960         Likewise.
28961         * modules/unictype/property-diacritic (Depends-on, configure.ac):
28962         Likewise.
28963         * modules/unictype/property-extender (Depends-on, configure.ac):
28964         Likewise.
28965         * modules/unictype/property-format-control (Depends-on, configure.ac):
28966         Likewise.
28967         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
28968         Likewise.
28969         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
28970         Likewise.
28971         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
28972         Likewise.
28973         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
28974         Likewise.
28975         * modules/unictype/property-hyphen (Depends-on, configure.ac):
28976         Likewise.
28977         * modules/unictype/property-id-continue (Depends-on, configure.ac):
28978         Likewise.
28979         * modules/unictype/property-id-start (Depends-on, configure.ac):
28980         Likewise.
28981         * modules/unictype/property-ideographic (Depends-on, configure.ac):
28982         Likewise.
28983         * modules/unictype/property-ids-binary-operator (Depends-on,
28984         configure.ac): Likewise.
28985         * modules/unictype/property-ids-trinary-operator (Depends-on,
28986         configure.ac): Likewise.
28987         * modules/unictype/property-ignorable-control (Depends-on,
28988         configure.ac): Likewise.
28989         * modules/unictype/property-iso-control (Depends-on, configure.ac):
28990         Likewise.
28991         * modules/unictype/property-join-control (Depends-on, configure.ac):
28992         Likewise.
28993         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
28994         Likewise.
28995         * modules/unictype/property-line-separator (Depends-on, configure.ac):
28996         Likewise.
28997         * modules/unictype/property-logical-order-exception (Depends-on,
28998         configure.ac): Likewise.
28999         * modules/unictype/property-lowercase (Depends-on, configure.ac):
29000         Likewise.
29001         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
29002         * modules/unictype/property-non-break (Depends-on, configure.ac):
29003         Likewise.
29004         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
29005         Likewise.
29006         * modules/unictype/property-numeric (Depends-on, configure.ac):
29007         Likewise.
29008         * modules/unictype/property-other-alphabetic (Depends-on,
29009         configure.ac): Likewise.
29010         * modules/unictype/property-other-default-ignorable-code-point
29011         (Depends-on, configure.ac): Likewise.
29012         * modules/unictype/property-other-grapheme-extend (Depends-on,
29013         configure.ac): Likewise.
29014         * modules/unictype/property-other-id-continue (Depends-on,
29015         configure.ac): Likewise.
29016         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
29017         Likewise.
29018         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
29019         Likewise.
29020         * modules/unictype/property-other-math (Depends-on, configure.ac):
29021         Likewise.
29022         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
29023         Likewise.
29024         * modules/unictype/property-paired-punctuation (Depends-on,
29025         configure.ac): Likewise.
29026         * modules/unictype/property-paragraph-separator (Depends-on,
29027         configure.ac): Likewise.
29028         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
29029         Likewise.
29030         * modules/unictype/property-pattern-white-space (Depends-on,
29031         configure.ac): Likewise.
29032         * modules/unictype/property-private-use (Depends-on, configure.ac):
29033         Likewise.
29034         * modules/unictype/property-punctuation (Depends-on, configure.ac):
29035         Likewise.
29036         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
29037         Likewise.
29038         * modules/unictype/property-radical (Depends-on, configure.ac):
29039         Likewise.
29040         * modules/unictype/property-sentence-terminal (Depends-on,
29041         configure.ac): Likewise.
29042         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
29043         Likewise.
29044         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
29045         * modules/unictype/property-terminal-punctuation (Depends-on,
29046         configure.ac): Likewise.
29047         * modules/unictype/property-titlecase (Depends-on, configure.ac):
29048         Likewise.
29049         * modules/unictype/property-unassigned-code-value (Depends-on,
29050         configure.ac): Likewise.
29051         * modules/unictype/property-unified-ideograph (Depends-on,
29052         configure.ac): Likewise.
29053         * modules/unictype/property-uppercase (Depends-on, configure.ac):
29054         Likewise.
29055         * modules/unictype/property-variation-selector (Depends-on,
29056         configure.ac): Likewise.
29057         * modules/unictype/property-white-space (Depends-on, configure.ac):
29058         Likewise.
29059         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
29060         Likewise.
29061         * modules/unictype/property-xid-start (Depends-on, configure.ac):
29062         Likewise.
29063         * modules/unictype/property-zero-width (Depends-on, configure.ac):
29064         Likewise.
29065         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
29066         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
29067         Likewise.
29068
29069 2009-12-31  Bruno Haible  <bruno@clisp.org>
29070
29071         Remove unnecessary AC_C_INLINE invocation.
29072         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
29073         since 2009-08-21.
29074
29075 2009-12-31  Jim Meyering  <meyering@redhat.com>
29076
29077         maint.mk: don't require explicit gpg_key_ID in cfg.mk
29078         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
29079         With this change, we can all remove the gpg_key_ID = ... definition
29080         from our respective cfg.mk files.
29081
29082         maint.mk: create announcement template in ~/, not in /tmp
29083         * top/maint.mk (emit_upload_commands): Adjust.
29084         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
29085         Remove temporary file, .ci-msg.
29086
29087 2009-12-31  Eric Blake  <ebb9@byu.net>
29088
29089         link-warning: always build headers with link warnings
29090         * modules/arpa_inet (Makefile.am): Always build replacement
29091         header.
29092         * modules/ctype (Makefile.am): Likewise.
29093         * modules/dirent (Makefile.am): Likewise.
29094         * modules/inttypes (Makefile.am): Likewise.
29095         * modules/langinfo (Makefile.am): Likewise.
29096         * modules/locale (Makefile.am): Likewise.
29097         * modules/spawn (Makefile.am): Likewise.
29098         * modules/sys_file (Makefile.am): Likewise.
29099         * modules/sys_ioctl (Makefile.am): Likewise.
29100         * modules/sys_select (Makefile.am): Likewise.
29101         * modules/sys_socket (Makefile.am): Likewise.
29102         * modules/sys_times (Makefile.am): Likewise.
29103         * modules/sys_utsname (Makefile.am): Likewise.
29104         * modules/sys_wait (Makefile.am): Likewise.
29105         * modules/wchar (Makefile.am): Likewise.
29106         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
29107         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
29108         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
29109         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
29110         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
29111         Likewise.
29112         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
29113         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
29114         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
29115         Likewise.
29116         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
29117         Likewise.
29118         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
29119         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
29120         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
29121         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
29122         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
29123         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
29124         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
29125         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
29126         (gl_WCHAR_H_DEFAULTS): Likewise.
29127
29128 2009-12-31  Eric Blake  <ebb9@byu.net>
29129
29130         signal, spawn: use link warnings
29131         * lib/signal.in.h (sigset_t): Make unconditional.
29132         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
29133         (sigpending, sigprocmask, sigaction): Add link warnings.
29134         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
29135         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
29136         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
29137         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
29138         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
29139         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
29140         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
29141         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
29142         (posix_spawn_file_actions_destroy)
29143         (posix_spawn_file_actions_addopen)
29144         (posix_spawn_file_actions_addclose)
29145         (posix_spawn_file_actions_adddup2): Likewise.
29146         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
29147         * tests/test-signal.c (main): Enhance test.
29148
29149         spawn: improve wrapper support
29150         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
29151         (gl_SPAWN_H_DEFAULTS): New defaults.
29152         * modules/spawn (Makefile.am): Substitute them.
29153         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
29154         Only declare if missing or broken.
29155
29156         sys_times, sys_utsname: use include_next
29157         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
29158         header.
29159         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
29160         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
29161         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
29162         * modules/sys_times (Depends-on): Add include_next.
29163         (Makefile.am): Substitute additional values.
29164         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
29165         * lib/sys_times.in.h (includes): Include native header, if
29166         available.
29167         * lib/sys_utsname.in.h (includes): Likewise.
29168         * tests/test-sys_times.c (main): Enhance test.
29169
29170         fdutimensat: revert prior patch
29171         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
29172         utimens.h.
29173         Reported by Bruno Haible.
29174
29175 2009-12-30  Eric Blake  <ebb9@byu.net>
29176
29177         sys_wait: drop link-warning dependency
29178         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
29179         link-warning efforts.
29180         * lib/sys_wait.in.h: Likewise.
29181
29182         fdutimensat: remove bogus dependency
29183         * modules/fdutimensat (Depends-on): Drop inline.
29184
29185         unistd: fix typo
29186         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
29187
29188 2009-12-30  Bruno Haible  <bruno@clisp.org>
29189
29190         Fix compilation error with Solaris cc.
29191         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
29192         * lib/unicase/u16-is-invariant.c: Likewise.
29193         * lib/unicase/u32-is-invariant.c: Likewise.
29194         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
29195
29196 2009-12-30  Bruno Haible  <bruno@clisp.org>
29197
29198         Fix test crash.
29199         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
29200         locales.
29201         Reported by Simon Josefsson <simon@josefsson.org>.
29202
29203 2009-12-30  Bruno Haible  <bruno@clisp.org>
29204
29205         Fix compilation error on most platforms.
29206         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
29207         Reported by Simon Josefsson <simon@josefsson.org>
29208         and Nelson H. F. Beebe <beebe@math.utah.edu>.
29209
29210 2009-12-30  Eric Blake  <ebb9@byu.net>
29211
29212         futimens, utimensat: work around ntfs-3g bug
29213         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
29214         a ctime bug is present, and expand workaround to cover ntfs-3g.
29215         * lib/utimens.c (fdutimens, lutimens): Likewise.
29216         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
29217         (validate_timespec): Adjust return value.
29218         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
29219         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
29220         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
29221
29222 2009-12-29  Eric Blake  <ebb9@byu.net>
29223
29224         link-warning: make usage consistent
29225         * modules/ctype (Depends-on): Add link-warning.
29226         (Makefile.am): Update rules accordingly.
29227         * modules/langinfo (Depends-on, Makefile.am): Likewise.
29228         * modules/locale (Depends-on, Makefile.am): Likewise.
29229         * modules/sys_file (Makefile.am): Likewise.
29230         * modules/getopt-posix (Makefile.am): Delete unused link warning
29231         efforts.
29232         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
29233         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
29234         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
29235         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
29236
29237         stdio: remove unused variables
29238         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
29239         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
29240         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
29241
29242         tests: test more substitute headers
29243         * modules/ctype-tests: New file.
29244         * modules/dirent-tests: Likewise.
29245         * modules/spawn-tests: Likewise.
29246         * modules/sys_file-tests: Likewise.
29247         * modules/sys_ioctl-tests: Likewise.
29248         * modules/sys_wait-tests: Likewise.
29249         * tests/test-ctype.c: Likewise.
29250         * tests/test-dirent.c: Likewise.
29251         * tests/test-spawn.c: Likewise.
29252         * tests/test-sys_file.c: Likewise.
29253         * tests/test-sys_ioctl.c: Likewise.
29254         * tests/test-sys_wait.c: Likewise.
29255         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
29256         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
29257         whether or not flock is in use.
29258
29259         tests: remove License section from module
29260         * modules/arpa_inet-tests: Remove unneeded section.
29261         * modules/byteswap-tests: Likewise.
29262         * modules/ceilf-tests: Likewise.
29263         * modules/ceill-tests: Likewise.
29264         * modules/crypto/des-tests: Likewise.
29265         * modules/crypto/gc-arcfour-tests: Likewise.
29266         * modules/crypto/gc-arctwo-tests: Likewise.
29267         * modules/crypto/gc-des-tests: Likewise.
29268         * modules/crypto/gc-hmac-md5-tests: Likewise.
29269         * modules/crypto/gc-hmac-sha1-tests: Likewise.
29270         * modules/crypto/gc-md2-tests: Likewise.
29271         * modules/crypto/gc-md4-tests: Likewise.
29272         * modules/crypto/gc-md5-tests: Likewise.
29273         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
29274         * modules/crypto/gc-rijndael-tests: Likewise.
29275         * modules/crypto/gc-sha1-tests: Likewise.
29276         * modules/crypto/gc-tests: Likewise.
29277         * modules/crypto/md2-tests: Likewise.
29278         * modules/crypto/md4-tests: Likewise.
29279         * modules/fcntl-h-tests: Likewise.
29280         * modules/floorf-tests: Likewise.
29281         * modules/floorl-tests: Likewise.
29282         * modules/frexp-nolibm-tests: Likewise.
29283         * modules/frexp-tests: Likewise.
29284         * modules/frexpl-nolibm-tests: Likewise.
29285         * modules/frexpl-tests: Likewise.
29286         * modules/getaddrinfo-tests: Likewise.
29287         * modules/inttypes-tests: Likewise.
29288         * modules/isfinite-tests: Likewise.
29289         * modules/isinf-tests: Likewise.
29290         * modules/ldexpl-tests: Likewise.
29291         * modules/locale-tests: Likewise.
29292         * modules/math-tests: Likewise.
29293         * modules/netdb-tests: Likewise.
29294         * modules/netinet_in-tests: Likewise.
29295         * modules/printf-frexp-tests: Likewise.
29296         * modules/printf-frexpl-tests: Likewise.
29297         * modules/priv-set-tests: Likewise.
29298         * modules/random_r-tests: Likewise.
29299         * modules/round-tests: Likewise.
29300         * modules/roundf-tests: Likewise.
29301         * modules/roundl-tests: Likewise.
29302         * modules/search-tests: Likewise.
29303         * modules/select-tests: Likewise.
29304         * modules/signal-tests: Likewise.
29305         * modules/stdbool-tests: Likewise.
29306         * modules/stddef-tests: Likewise.
29307         * modules/stdint-tests: Likewise.
29308         * modules/stdio-tests: Likewise.
29309         * modules/stdlib-tests: Likewise.
29310         * modules/string-tests: Likewise.
29311         * modules/strings-tests: Likewise.
29312         * modules/sys_select-tests: Likewise.
29313         * modules/sys_socket-tests: Likewise.
29314         * modules/sys_stat-tests: Likewise.
29315         * modules/sys_time-tests: Likewise.
29316         * modules/sys_utsname-tests: Likewise.
29317         * modules/sysexits-tests: Likewise.
29318         * modules/time-tests: Likewise.
29319         * modules/trunc-tests: Likewise.
29320         * modules/truncf-tests: Likewise.
29321         * modules/truncl-tests: Likewise.
29322         * modules/tsearch-tests: Likewise.
29323         * modules/unistd-tests: Likewise.
29324         * modules/wchar-tests: Likewise.
29325         * modules/wctype-tests: Likewise.
29326
29327         tests: fix license on several tests
29328         * tests/test-des.c: Update to GPLv3+.
29329         * tests/test-flock.c: Likewise.
29330         * tests/test-fsync.c: Likewise.
29331         * tests/test-futimens.h: Likewise.
29332         * tests/test-gc-arcfour.c: Likewise.
29333         * tests/test-gc-arctwo.c: Likewise.
29334         * tests/test-gc-des.c: Likewise.
29335         * tests/test-gc-hmac-md5.c: Likewise.
29336         * tests/test-gc-hmac-sha1.c: Likewise.
29337         * tests/test-gc-md2.c: Likewise.
29338         * tests/test-gc-md4.c: Likewise.
29339         * tests/test-gc-md5.c: Likewise.
29340         * tests/test-gc-pbkdf2-sha1.c: Likewise.
29341         * tests/test-gc-rijndael.c: Likewise.
29342         * tests/test-gc-sha1.c: Likewise.
29343         * tests/test-gc.c: Likewise.
29344         * tests/test-getcwd.c: Likewise.
29345         * tests/test-link.c: Likewise.
29346         * tests/test-link.h: Likewise.
29347         * tests/test-lutimens.h: Likewise.
29348         * tests/test-md2.c: Likewise.
29349         * tests/test-md4.c: Likewise.
29350         * tests/test-mkdir.h: Likewise.
29351         * tests/test-rename.c: Likewise.
29352         * tests/test-rename.h: Likewise.
29353         * tests/test-safe-alloc.c: Likewise.
29354         * tests/test-utimens-common.h: Likewise.
29355         * tests/test-utimens.h: Likewise.
29356
29357         maint: sync license texts
29358         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
29359         * doc/gpl-3.0.texi: Revert copyright year update.
29360         * doc/lgpl-3.0.texi: Likewise.
29361
29362 2009-12-29  Jim Meyering  <meyering@redhat.com>
29363
29364         update nearly all FSF copyright year lists to include 2009
29365         The files named by the following are exempted:
29366             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
29367               test -f "$dst" && { echo "$dst"; continue; }
29368               test -d "$dst" || continue
29369               echo "$dst"/$(basename "$src")
29370             done > exempt
29371             git ls-files tests/unictype >> exempt
29372         In the remaining files, convert to all-interval notation if
29373         - there is already at least one year interval like 2000-2003
29374         - the file is maintained by me
29375         - the file is in lib/uni*/, where that style already prevails
29376         Otherwise, use update-copyright's default.
29377
29378 2009-12-29  Simon Josefsson  <simon@josefsson.org>
29379         and Eric Blake  <ebb9@byu.net>
29380
29381         tests: don't require debug system() to pass
29382         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
29383         * tests/test-rmdir.h (test_rmdir_func): Likewise.
29384         * tests/test-unlink.h (test_unlink_func): Likewise.
29385         * tests/test-fstatat.c (main): ...into callers.
29386         * tests/test-lstat.c (main): Likewise.
29387         * tests/test-rmdir.c (main): Likewise.
29388         * tests/test-unlink.c (main): Likewise.
29389         * tests/test-unlinkat.c (main): Likewise.
29390         * tests/test-areadlink-with-size.c (main): Don't require a
29391         debug-only system call to pass, aiding cross-testing to mingw.
29392         * tests/test-areadlink.c (main): Likewise.
29393         * tests/test-areadlinkat-with-size.c (main): Likewise.
29394         * tests/test-areadlinkat.c (main): Likewise.
29395         * tests/test-canonicalize-lgpl.c (main): Likewise.
29396         * tests/test-canonicalize.c (main): Likewise.
29397         * tests/test-chown.c (main): Likewise.
29398         * tests/test-fchownat.c (main): Likewise.
29399         * tests/test-lchown.c (main): Likewise.
29400         * tests/test-fdutimensat.c (main): Likewise.
29401         * tests/test-futimens.c (main): Likewise.
29402         * tests/test-link.c (main): Likewise.
29403         * tests/test-linkat.c (main): Likewise.
29404         * tests/test-mkdir.c (main): Likewise.
29405         * tests/test-mkdirat.c (main): Likewise.
29406         * tests/test-mkfifo.c (main): Likewise.
29407         * tests/test-mkfifoat.c (main): Likewise.
29408         * tests/test-mknod.c (main): Likewise.
29409         * tests/test-readlink.c (main): Likewise.
29410         * tests/test-remove.c (main): Likewise.
29411         * tests/test-rename.c (main): Likewise.
29412         * tests/test-renameat.c (main): Likewise.
29413         * tests/test-symlink.c (main): Likewise.
29414         * tests/test-symlinkat.c (main): Likewise.
29415         * tests/test-utimens.c (main): Likewise.
29416         * tests/test-utimensat.c (main): Likewise.
29417
29418 2009-12-29  Simon Josefsson  <simon@josefsson.org>
29419
29420         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
29421         on $(UNUSED_PARAMETER_H) to avoid build failure.
29422
29423 2009-12-28  Jim Meyering  <meyering@redhat.com>
29424
29425         update-copyright: you may specify a max. line length other than 72
29426         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
29427
29428         maint: use consistent FSF copyright line syntax
29429         * lib/posixtm.c: Add missing comma in FSF copyright line.
29430         * lib/posixtm.h: Likewise.
29431         * lib/getugroups.c: Add missing ", Inc.".
29432
29433         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
29434         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
29435         FSF copyright line.  Remove trailing blanks.
29436
29437 2009-12-28  Eric Blake  <ebb9@byu.net>
29438
29439         test-dup2: reduce dependencies
29440         * modules/cloexec (Configure.ac): Set witness.
29441         * modules/dup2-tests (Depends-on): Drop cloexec.
29442         * tests/test-dup2.c (main): Skip portion of test if cloexec module
29443         not present.
29444         Suggested by Bruno Haible.
29445
29446 2009-12-26  Bruno Haible  <bruno@clisp.org>
29447
29448         Remove an unneeded dependency.
29449         * modules/fseterr (Depends-on): Remove dup2.
29450
29451 2009-12-26  Eric Blake  <ebb9@byu.net>
29452
29453         tests: use macros.h in more places
29454         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
29455         (ASSERT_STREAM): Provide default of stderr.
29456         * tests/test-dirent-safer.c: Include macros.h, using alternate
29457         stream for assertions.
29458         * tests/test-dup-safer.c: Likewise.
29459         * tests/test-freopen-safer.c: Likewise.
29460         * tests/test-getopt.c: Likewise.
29461         * tests/test-openat-safer.c: Likewise.
29462         * tests/test-pipe.c: Likewise.
29463         * tests/test-popen-safer.c: Likewise.
29464         * modules/dirent-safer-tests (Files): Include macros.h.
29465         * modules/unistd-safer-tests (Files): Likewise.
29466         * modules/freopen-safer-tests (Files): Likewise.
29467         * modules/getopt-posix-tests (Files): Likewise.
29468         * modules/openat-safer-tests (Files): Likewise.
29469         * modules/pipe-tests (Files): Likewise.
29470
29471 2009-12-26  Bruno Haible  <bruno@clisp.org>
29472
29473         javacomp: Portability fix.
29474         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
29475         that it also works on Solaris.
29476
29477 2009-12-26  Bruno Haible  <bruno@clisp.org>
29478
29479         localename: Fix storage allocation of gl_locale_name_thread's result.
29480         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
29481         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
29482         all platforms that have 'uselocale'.
29483         (gl_locale_name_thread_unsafe): New function, extracted from
29484         gl_locale_name_thread.
29485         (gl_locale_name_thread): Call struniq on all platforms that have
29486         'uselocale'.
29487         * tests/test-localename.c (test_locale_name_thread): Check that the
29488         resulting strings are permanently allocated.
29489         * modules/localename-tests (Depends-on): Add strdup.
29490
29491 2009-12-26  Bruno Haible  <bruno@clisp.org>
29492
29493         * tests/test-localename.c (categories): Fill in the strings.
29494
29495 2009-12-26  Jim Meyering  <meyering@redhat.com>
29496
29497         isdir: complete the removal of m4/isdir.m4
29498         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
29499
29500         isdir: clean up, since at least grep still uses it
29501         * lib/isdir.c: Include "isdir.h".
29502         (S_ISDIR): Remove now-unneeded definition.
29503         * modules/isdir (Files): Add lib/isdir.h.
29504         * lib/isdir.h: New file, with declaration.
29505         * m4/isdir.m4: Remove file -- unneeded.
29506
29507 2009-12-25  Bruno Haible  <bruno@clisp.org>
29508
29509         selinux-h: Make generated .h files standalone.
29510         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
29511         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
29512         * lib/se-selinux.in.h: Likewise.
29513         * modules/selinux-h (Depends-on): Add unused-parameter.
29514         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
29515         selinux/selinux.h and selinux/context.h.
29516         Suggested by Eric Blake.
29517
29518 2009-12-25  Bruno Haible  <bruno@clisp.org>
29519
29520         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
29521         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
29522         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
29523         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
29524         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
29525
29526 2009-12-24  Bruno Haible  <bruno@clisp.org>
29527
29528         openat: Fix warning.
29529         * lib/openat-proc.c: Include <unistd.h>.
29530
29531 2009-12-24  Bruno Haible  <bruno@clisp.org>
29532
29533         New module 'unused-parameter'.
29534         * build-aux/unused-parameter.h: New file, extracted from earlier
29535         gnulib-common.m4.
29536         * modules/unused-parameter: New file.
29537         * lib/unistr.h: Include unused-parameter.h.
29538         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
29539         _GL_UNUSED.
29540         * modules/unistr/base (Depends-on): Add unused-parameter.
29541
29542 2009-12-24  Bruno Haible  <bruno@clisp.org>
29543
29544         Add missing dependencies to 'extensions' module.
29545         * m4/extensions.m4: Add comment.
29546         * modules/accept4 (Depends-on): Add extensions.
29547         * modules/dup3 (Depends-on): Likewise.
29548         * modules/fcntl (Depends-on): Likewise.
29549         * modules/futimens (Depends-on): Likewise.
29550         * modules/mknod (Depends-on): Likewise.
29551         * modules/pipe2 (Depends-on): Likewise.
29552         * modules/stat-time (Depends-on): Likewise.
29553         * modules/strcasestr-simple (Depends-on): Likewise.
29554         * modules/strsignal (Depends-on): Likewise.
29555         * modules/utimensat (Depends-on): Likewise.
29556         * modules/localcharset (Depends-on): Likewise. Needed because of
29557         gl_FCNTL_O_FLAGS.
29558         * modules/wcrtomb (Depends-on): Likewise. Needed because of
29559         AC_TYPE_MBSTATE_T.
29560         * modules/wcsnrtombs (Depends-on): Likewise.
29561         * modules/wcsrtombs (Depends-on): Likewise.
29562
29563 2009-12-24  Bruno Haible  <bruno@clisp.org>
29564
29565         binary-io: Avoid gcc warning due to SET_BINARY.
29566         * lib/binary-io.h (SET_BINARY): Cast the result to void.
29567         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
29568
29569 2009-12-24  Bruno Haible  <bruno@clisp.org>
29570
29571         Avoid future namespace pollution on glibc systems.
29572         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
29573         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
29574         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
29575         glibc systems.
29576
29577 2009-12-24  Bruno Haible  <bruno@clisp.org>
29578
29579         Refactor common macros used in tests.
29580         * tests/macros.h: New file.
29581         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
29582         and/or <stdlib.h>, if appropriate.
29583         (ASSERT, SIZEOF): Remove macros.
29584         * tests/test-areadlink-with-size.c: Likewise.
29585         * tests/test-areadlinkat.c: Likewise.
29586         * tests/test-areadlinkat-with-size.c: Likewise.
29587         * tests/test-argmatch.c: Likewise.
29588         * tests/test-argv-iter.c: Likewise.
29589         * tests/test-array-mergesort.c: Likewise.
29590         * tests/test-array_list.c: Likewise.
29591         * tests/test-array_oset.c: Likewise.
29592         * tests/test-avltree_list.c: Likewise.
29593         * tests/test-avltree_oset.c: Likewise.
29594         * tests/test-avltreehash_list.c: Likewise.
29595         * tests/test-base64.c: Likewise.
29596         * tests/test-binary-io.c: Likewise.
29597         * tests/test-bitrotate.c: Likewise.
29598         * tests/test-btowc.c: Likewise.
29599         * tests/test-byteswap.c: Likewise.
29600         * tests/test-c-ctype.c: Likewise.
29601         * tests/test-c-stack.c: Likewise.
29602         * tests/test-c-strcasecmp.c: Likewise.
29603         * tests/test-c-strcasestr.c: Likewise.
29604         * tests/test-c-strncasecmp.c: Likewise.
29605         * tests/test-c-strstr.c: Likewise.
29606         * tests/test-canonicalize-lgpl.c: Likewise.
29607         * tests/test-canonicalize.c: Likewise.
29608         * tests/test-carray_list.c: Likewise.
29609         * tests/test-ceilf1.c: Likewise.
29610         * tests/test-ceilf2.c: Likewise.
29611         * tests/test-ceill.c: Likewise.
29612         * tests/test-chown.c: Likewise.
29613         * tests/test-cloexec.c: Likewise.
29614         * tests/test-copy-acl.c: Likewise.
29615         * tests/test-copy-file.c: Likewise.
29616         * tests/test-count-one-bits.c: Likewise.
29617         * tests/test-dprintf-posix.c: Likewise.
29618         * tests/test-dup2.c: Likewise.
29619         * tests/test-dup3.c: Likewise.
29620         * tests/test-duplocale.c: Likewise.
29621         * tests/test-fbufmode.c: Likewise.
29622         * tests/test-fchdir.c: Likewise.
29623         * tests/test-fchownat.c: Likewise.
29624         * tests/test-fcntl-safer.c: Likewise.
29625         * tests/test-fcntl.c: Likewise.
29626         * tests/test-fdopendir.c: Likewise.
29627         * tests/test-fdutimensat.c: Likewise.
29628         * tests/test-fflush2.c: Likewise.
29629         * tests/test-file-has-acl.c: Likewise.
29630         * tests/test-filevercmp.c: Likewise.
29631         * tests/test-flock.c: Likewise.
29632         * tests/test-floorf1.c: Likewise.
29633         * tests/test-floorf2.c: Likewise.
29634         * tests/test-floorl.c: Likewise.
29635         * tests/test-fnmatch.c: Likewise.
29636         * tests/test-fopen.h: Likewise.
29637         * tests/test-fpending.c: Likewise.
29638         * tests/test-fprintf-posix.c: Likewise.
29639         * tests/test-fpurge.c: Likewise.
29640         * tests/test-freadable.c: Likewise.
29641         * tests/test-freadahead.c: Likewise.
29642         * tests/test-freading.c: Likewise.
29643         * tests/test-freadptr.c: Likewise.
29644         * tests/test-freadptr2.c: Likewise.
29645         * tests/test-freadseek.c: Likewise.
29646         * tests/test-freopen.c: Likewise.
29647         * tests/test-frexp.c: Likewise.
29648         * tests/test-frexpl.c: Likewise.
29649         * tests/test-fseek.c: Likewise.
29650         * tests/test-fseeko.c: Likewise.
29651         * tests/test-fstatat.c: Likewise.
29652         * tests/test-fstrcmp.c: Likewise.
29653         * tests/test-fsync.c: Likewise.
29654         * tests/test-ftell.c: Likewise.
29655         * tests/test-ftello.c: Likewise.
29656         * tests/test-func.c: Likewise.
29657         * tests/test-futimens.c: Likewise.
29658         * tests/test-fwritable.c: Likewise.
29659         * tests/test-fwriting.c: Likewise.
29660         * tests/test-getcwd.c: Likewise.
29661         * tests/test-getdate.c: Likewise.
29662         * tests/test-getdelim.c: Likewise.
29663         * tests/test-getdtablesize.c: Likewise.
29664         * tests/test-getgroups.c: Likewise.
29665         * tests/test-getline.c: Likewise.
29666         * tests/test-getndelim2.c: Likewise.
29667         * tests/test-glob.c: Likewise.
29668         * tests/test-hash.c: Likewise.
29669         * tests/test-i-ring.c: Likewise.
29670         * tests/test-iconv-utf.c: Likewise.
29671         * tests/test-iconv.c: Likewise.
29672         * tests/test-idpriv-drop.c: Likewise.
29673         * tests/test-idpriv-droptemp.c: Likewise.
29674         * tests/test-inet_ntop.c: Likewise.
29675         * tests/test-inet_pton.c: Likewise.
29676         * tests/test-isblank.c: Likewise.
29677         * tests/test-isfinite.c: Likewise.
29678         * tests/test-isinf.c: Likewise.
29679         * tests/test-isnan.c: Likewise.
29680         * tests/test-isnand.h: Likewise.
29681         * tests/test-isnanf.h: Likewise.
29682         * tests/test-isnanl.h: Likewise.
29683         * tests/test-lchown.c: Likewise.
29684         * tests/test-ldexpl.c: Likewise.
29685         * tests/test-link.c: Likewise.
29686         * tests/test-linkat.c: Likewise.
29687         * tests/test-linked_list.c: Likewise.
29688         * tests/test-linkedhash_list.c: Likewise.
29689         * tests/test-localename.c: Likewise.
29690         * tests/test-lseek.c: Likewise.
29691         * tests/test-lstat.c: Likewise.
29692         * tests/test-mbmemcasecmp.c: Likewise.
29693         * tests/test-mbmemcasecoll.c: Likewise.
29694         * tests/test-mbrtowc.c: Likewise.
29695         * tests/test-mbscasecmp.c: Likewise.
29696         * tests/test-mbscasestr1.c: Likewise.
29697         * tests/test-mbscasestr2.c: Likewise.
29698         * tests/test-mbscasestr3.c: Likewise.
29699         * tests/test-mbscasestr4.c: Likewise.
29700         * tests/test-mbschr.c: Likewise.
29701         * tests/test-mbscspn.c: Likewise.
29702         * tests/test-mbsinit.c: Likewise.
29703         * tests/test-mbsncasecmp.c: Likewise.
29704         * tests/test-mbsnrtowcs.c: Likewise.
29705         * tests/test-mbspbrk.c: Likewise.
29706         * tests/test-mbspcasecmp.c: Likewise.
29707         * tests/test-mbsrchr.c: Likewise.
29708         * tests/test-mbsrtowcs.c: Likewise.
29709         * tests/test-mbsspn.c: Likewise.
29710         * tests/test-mbsstr1.c: Likewise.
29711         * tests/test-mbsstr2.c: Likewise.
29712         * tests/test-mbsstr3.c: Likewise.
29713         * tests/test-memchr.c: Likewise.
29714         * tests/test-memchr2.c: Likewise.
29715         * tests/test-memcmp.c: Likewise.
29716         * tests/test-memmem.c: Likewise.
29717         * tests/test-memrchr.c: Likewise.
29718         * tests/test-mkdir.c: Likewise.
29719         * tests/test-mkdirat.c: Likewise.
29720         * tests/test-mkfifo.c: Likewise.
29721         * tests/test-mkfifoat.c: Likewise.
29722         * tests/test-mknod.c: Likewise.
29723         * tests/test-nanosleep.c: Likewise.
29724         * tests/test-nl_langinfo.c: Likewise.
29725         * tests/test-obstack-printf.c: Likewise.
29726         * tests/test-open.c: Likewise.
29727         * tests/test-openat.c: Likewise.
29728         * tests/test-pipe-filter-gi1.c: Likewise.
29729         * tests/test-pipe-filter-gi2-main.c: Likewise.
29730         * tests/test-pipe-filter-ii1.c: Likewise.
29731         * tests/test-pipe-filter-ii2-main.c: Likewise.
29732         * tests/test-pipe2.c: Likewise.
29733         * tests/test-popen.h: Likewise.
29734         * tests/test-posixtm.c: Likewise.
29735         * tests/test-pread.c: Likewise.
29736         * tests/test-printf-frexp.c: Likewise.
29737         * tests/test-printf-frexpl.c: Likewise.
29738         * tests/test-printf-posix.c: Likewise.
29739         * tests/test-priv-set.c: Likewise.
29740         * tests/test-quotearg.c: Likewise.
29741         * tests/test-random_r.c: Likewise.
29742         * tests/test-rawmemchr.c: Likewise.
29743         * tests/test-rbtree_list.c: Likewise.
29744         * tests/test-rbtree_oset.c: Likewise.
29745         * tests/test-rbtreehash_list.c: Likewise.
29746         * tests/test-readlink.c: Likewise.
29747         * tests/test-remove.c: Likewise.
29748         * tests/test-rename.c: Likewise.
29749         * tests/test-renameat.c: Likewise.
29750         * tests/test-rmdir.c: Likewise.
29751         * tests/test-round1.c: Likewise.
29752         * tests/test-roundf1.c: Likewise.
29753         * tests/test-roundl.c: Likewise.
29754         * tests/test-safe-alloc.c: Likewise.
29755         * tests/test-sameacls.c: Likewise.
29756         * tests/test-set-mode-acl.c: Likewise.
29757         * tests/test-setenv.c: Likewise.
29758         * tests/test-sigaction.c: Likewise.
29759         * tests/test-signbit.c: Likewise.
29760         * tests/test-sleep.c: Likewise.
29761         * tests/test-snprintf-posix.c: Likewise.
29762         * tests/test-snprintf.c: Likewise.
29763         * tests/test-sprintf-posix.c: Likewise.
29764         * tests/test-stat-time.c: Likewise.
29765         * tests/test-stat.c: Likewise.
29766         * tests/test-strcasestr.c: Likewise.
29767         * tests/test-strchrnul.c: Likewise.
29768         * tests/test-strerror.c: Likewise.
29769         * tests/test-striconv.c: Likewise.
29770         * tests/test-striconveh.c: Likewise.
29771         * tests/test-striconveha.c: Likewise.
29772         * tests/test-strsignal.c: Likewise.
29773         * tests/test-strstr.c: Likewise.
29774         * tests/test-strtod.c: Likewise.
29775         * tests/test-strverscmp.c: Likewise.
29776         * tests/test-symlink.c: Likewise.
29777         * tests/test-symlinkat.c: Likewise.
29778         * tests/test-trunc1.c: Likewise.
29779         * tests/test-trunc2.c: Likewise.
29780         * tests/test-truncf1.c: Likewise.
29781         * tests/test-truncf2.c: Likewise.
29782         * tests/test-truncl.c: Likewise.
29783         * tests/test-uname.c: Likewise.
29784         * tests/test-unlink.c: Likewise.
29785         * tests/test-unlinkat.c: Likewise.
29786         * tests/test-unsetenv.c: Likewise.
29787         * tests/test-usleep.c: Likewise.
29788         * tests/test-utimens.c: Likewise.
29789         * tests/test-utimensat.c: Likewise.
29790         * tests/test-vasnprintf-posix.c: Likewise.
29791         * tests/test-vasnprintf-posix2.c: Likewise.
29792         * tests/test-vasnprintf.c: Likewise.
29793         * tests/test-vasprintf-posix.c: Likewise.
29794         * tests/test-vasprintf.c: Likewise.
29795         * tests/test-vdprintf-posix.c: Likewise.
29796         * tests/test-vfprintf-posix.c: Likewise.
29797         * tests/test-vprintf-posix.c: Likewise.
29798         * tests/test-vsnprintf-posix.c: Likewise.
29799         * tests/test-vsnprintf.c: Likewise.
29800         * tests/test-vsprintf-posix.c: Likewise.
29801         * tests/test-wcrtomb.c: Likewise.
29802         * tests/test-wcsnrtombs.c: Likewise.
29803         * tests/test-wcsrtombs.c: Likewise.
29804         * tests/test-wctype.c: Likewise.
29805         * tests/test-wcwidth.c: Likewise.
29806         * tests/test-xfprintf-posix.c: Likewise.
29807         * tests/test-xmemdup0.c: Likewise.
29808         * tests/test-xprintf-posix.c: Likewise.
29809         * tests/test-xvasprintf.c: Likewise.
29810         * tests/unicase/test-locale-language.c: Likewise.
29811         * tests/unicase/test-mapping-part1.h: Likewise.
29812         * tests/unicase/test-predicate-part1.h: Likewise.
29813         * tests/unicase/test-u8-casecmp.c: Likewise.
29814         * tests/unicase/test-u8-casecoll.c: Likewise.
29815         * tests/unicase/test-u8-casefold.c: Likewise.
29816         * tests/unicase/test-u8-is-cased.c: Likewise.
29817         * tests/unicase/test-u8-is-casefolded.c: Likewise.
29818         * tests/unicase/test-u8-is-lowercase.c: Likewise.
29819         * tests/unicase/test-u8-is-titlecase.c: Likewise.
29820         * tests/unicase/test-u8-is-uppercase.c: Likewise.
29821         * tests/unicase/test-u8-tolower.c: Likewise.
29822         * tests/unicase/test-u8-totitle.c: Likewise.
29823         * tests/unicase/test-u8-toupper.c: Likewise.
29824         * tests/unicase/test-u16-casecmp.c: Likewise.
29825         * tests/unicase/test-u16-casecoll.c: Likewise.
29826         * tests/unicase/test-u16-casefold.c: Likewise.
29827         * tests/unicase/test-u16-is-cased.c: Likewise.
29828         * tests/unicase/test-u16-is-casefolded.c: Likewise.
29829         * tests/unicase/test-u16-is-lowercase.c: Likewise.
29830         * tests/unicase/test-u16-is-titlecase.c: Likewise.
29831         * tests/unicase/test-u16-is-uppercase.c: Likewise.
29832         * tests/unicase/test-u16-tolower.c: Likewise.
29833         * tests/unicase/test-u16-totitle.c: Likewise.
29834         * tests/unicase/test-u16-toupper.c: Likewise.
29835         * tests/unicase/test-u32-casecmp.c: Likewise.
29836         * tests/unicase/test-u32-casecoll.c: Likewise.
29837         * tests/unicase/test-u32-casefold.c: Likewise.
29838         * tests/unicase/test-u32-is-cased.c: Likewise.
29839         * tests/unicase/test-u32-is-casefolded.c: Likewise.
29840         * tests/unicase/test-u32-is-lowercase.c: Likewise.
29841         * tests/unicase/test-u32-is-titlecase.c: Likewise.
29842         * tests/unicase/test-u32-is-uppercase.c: Likewise.
29843         * tests/unicase/test-u32-tolower.c: Likewise.
29844         * tests/unicase/test-u32-totitle.c: Likewise.
29845         * tests/unicase/test-u32-toupper.c: Likewise.
29846         * tests/unicase/test-ulc-casecmp.c: Likewise.
29847         * tests/unicase/test-ulc-casecoll.c: Likewise.
29848         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
29849         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
29850         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
29851         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
29852         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
29853         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
29854         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
29855         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
29856         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
29857         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
29858         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
29859         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
29860         * tests/unictype/test-bidi_byname.c: Likewise.
29861         * tests/unictype/test-bidi_name.c: Likewise.
29862         * tests/unictype/test-bidi_of.c: Likewise.
29863         * tests/unictype/test-bidi_test.c: Likewise.
29864         * tests/unictype/test-block_list.c: Likewise.
29865         * tests/unictype/test-block_of.c: Likewise.
29866         * tests/unictype/test-block_test.c: Likewise.
29867         * tests/unictype/test-categ_and.c: Likewise.
29868         * tests/unictype/test-categ_and_not.c: Likewise.
29869         * tests/unictype/test-categ_byname.c: Likewise.
29870         * tests/unictype/test-categ_name.c: Likewise.
29871         * tests/unictype/test-categ_none.c: Likewise.
29872         * tests/unictype/test-categ_of.c: Likewise.
29873         * tests/unictype/test-categ_or.c: Likewise.
29874         * tests/unictype/test-categ_test_withtable.c: Likewise.
29875         * tests/unictype/test-combining.c: Likewise.
29876         * tests/unictype/test-decdigit.c: Likewise.
29877         * tests/unictype/test-digit.c: Likewise.
29878         * tests/unictype/test-mirror.c: Likewise.
29879         * tests/unictype/test-numeric.c: Likewise.
29880         * tests/unictype/test-pr_byname.c: Likewise.
29881         * tests/unictype/test-pr_test.c: Likewise.
29882         * tests/unictype/test-predicate-part1.h: Likewise.
29883         * tests/unictype/test-scripts.c: Likewise.
29884         * tests/unictype/test-sy_c_ident.c: Likewise.
29885         * tests/unictype/test-sy_java_ident.c: Likewise.
29886         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
29887         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
29888         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
29889         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
29890         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
29891         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
29892         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
29893         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
29894         * tests/uninorm/test-canonical-decomposition.c: Likewise.
29895         * tests/uninorm/test-compat-decomposition.c: Likewise.
29896         * tests/uninorm/test-composition.c: Likewise.
29897         * tests/uninorm/test-decomposing-form.c: Likewise.
29898         * tests/uninorm/test-decomposition.c: Likewise.
29899         * tests/uninorm/test-u8-nfc.c: Likewise.
29900         * tests/uninorm/test-u8-nfd.c: Likewise.
29901         * tests/uninorm/test-u8-nfkc.c: Likewise.
29902         * tests/uninorm/test-u8-nfkd.c: Likewise.
29903         * tests/uninorm/test-u8-normcmp.c: Likewise.
29904         * tests/uninorm/test-u8-normcoll.c: Likewise.
29905         * tests/uninorm/test-u16-nfc.c: Likewise.
29906         * tests/uninorm/test-u16-nfd.c: Likewise.
29907         * tests/uninorm/test-u16-nfkc.c: Likewise.
29908         * tests/uninorm/test-u16-nfkd.c: Likewise.
29909         * tests/uninorm/test-u16-normcmp.c: Likewise.
29910         * tests/uninorm/test-u16-normcoll.c: Likewise.
29911         * tests/uninorm/test-u32-nfc.c: Likewise.
29912         * tests/uninorm/test-u32-nfd.c: Likewise.
29913         * tests/uninorm/test-u32-nfkc.c: Likewise.
29914         * tests/uninorm/test-u32-nfkd.c: Likewise.
29915         * tests/uninorm/test-u32-normalize-big.c: Likewise.
29916         * tests/uninorm/test-u32-normcmp.c: Likewise.
29917         * tests/uninorm/test-u32-normcoll.c: Likewise.
29918         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
29919         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
29920         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
29921         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
29922         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
29923         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
29924         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
29925         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
29926         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
29927         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
29928         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
29929         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
29930         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
29931         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
29932         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
29933         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
29934         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
29935         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
29936         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
29937         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
29938         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
29939         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
29940         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
29941         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
29942         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
29943         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
29944         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
29945         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
29946         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
29947         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
29948         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
29949         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
29950         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
29951         * tests/uniwidth/test-u8-strwidth.c: Likewise.
29952         * tests/uniwidth/test-u8-width.c: Likewise.
29953         * tests/uniwidth/test-u16-strwidth.c: Likewise.
29954         * tests/uniwidth/test-u16-width.c: Likewise.
29955         * tests/uniwidth/test-u32-strwidth.c: Likewise.
29956         * tests/uniwidth/test-u32-width.c: Likewise.
29957         * tests/uniwidth/test-uc_width.c: Likewise.
29958         * tests/uniwidth/test-uc_width2.c: Likewise.
29959         * modules/acl-tests (Files): Add tests/macros.h.
29960         * modules/areadlink-tests (Files): Likewise.
29961         * modules/areadlink-with-size-tests (Files): Likewise.
29962         * modules/areadlinkat-tests (Files): Likewise.
29963         * modules/areadlinkat-with-size-tests (Files): Likewise.
29964         * modules/argmatch-tests (Files): Likewise.
29965         * modules/argv-iter-tests (Files): Likewise.
29966         * modules/array-list-tests (Files): Likewise.
29967         * modules/array-mergesort-tests (Files): Likewise.
29968         * modules/array-oset-tests (Files): Likewise.
29969         * modules/avltree-list-tests (Files): Likewise.
29970         * modules/avltree-oset-tests (Files): Likewise.
29971         * modules/avltreehash-list-tests (Files): Likewise.
29972         * modules/base64-tests (Files): Likewise.
29973         * modules/binary-io-tests (Files): Likewise.
29974         * modules/bitrotate-tests (Files): Likewise.
29975         * modules/btowc-tests (Files): Likewise.
29976         * modules/byteswap-tests (Files): Likewise.
29977         * modules/c-ctype-tests (Files): Likewise.
29978         * modules/c-stack-tests (Files): Likewise.
29979         * modules/c-strcase-tests (Files): Likewise.
29980         * modules/c-strcasestr-tests (Files): Likewise.
29981         * modules/c-strstr-tests (Files): Likewise.
29982         * modules/canonicalize-lgpl-tests (Files): Likewise.
29983         * modules/canonicalize-tests (Files): Likewise.
29984         * modules/carray-list-tests (Files): Likewise.
29985         * modules/ceilf-tests (Files): Likewise.
29986         * modules/ceill-tests (Files): Likewise.
29987         * modules/chown-tests (Files): Likewise.
29988         * modules/cloexec-tests (Files): Likewise.
29989         * modules/copy-file-tests (Files): Likewise.
29990         * modules/count-one-bits-tests (Files): Likewise.
29991         * modules/dprintf-posix-tests (Files): Likewise.
29992         * modules/dup2-tests (Files): Likewise.
29993         * modules/dup3-tests (Files): Likewise.
29994         * modules/duplocale-tests (Files): Likewise.
29995         * modules/fbufmode-tests (Files): Likewise.
29996         * modules/fchdir-tests (Files): Likewise.
29997         * modules/fcntl-safer-tests (Files): Likewise.
29998         * modules/fcntl-tests (Files): Likewise.
29999         * modules/fdopendir-tests (Files): Likewise.
30000         * modules/fdutimensat-tests (Files): Likewise.
30001         * modules/fflush-tests (Files): Likewise.
30002         * modules/filevercmp-tests (Files): Likewise.
30003         * modules/flock-tests (Files): Likewise.
30004         * modules/floorf-tests (Files): Likewise.
30005         * modules/floorl-tests (Files): Likewise.
30006         * modules/fnmatch-tests (Files): Likewise.
30007         * modules/fopen-safer-tests (Files): Likewise.
30008         * modules/fopen-tests (Files): Likewise.
30009         * modules/fpending-tests (Files): Likewise.
30010         * modules/fprintf-posix-tests (Files): Likewise.
30011         * modules/fpurge-tests (Files): Likewise.
30012         * modules/freadable-tests (Files): Likewise.
30013         * modules/freadahead-tests (Files): Likewise.
30014         * modules/freading-tests (Files): Likewise.
30015         * modules/freadptr-tests (Files): Likewise.
30016         * modules/freadseek-tests (Files): Likewise.
30017         * modules/freopen-tests (Files): Likewise.
30018         * modules/frexp-nolibm-tests (Files): Likewise.
30019         * modules/frexp-tests (Files): Likewise.
30020         * modules/frexpl-nolibm-tests (Files): Likewise.
30021         * modules/frexpl-tests (Files): Likewise.
30022         * modules/fseek-tests (Files): Likewise.
30023         * modules/fseeko-tests (Files): Likewise.
30024         * modules/fstrcmp-tests (Files): Likewise.
30025         * modules/fsync-tests (Files): Likewise.
30026         * modules/ftell-tests (Files): Likewise.
30027         * modules/ftello-tests (Files): Likewise.
30028         * modules/func-tests (Files): Likewise.
30029         * modules/futimens-tests (Files): Likewise.
30030         * modules/fwritable-tests (Files): Likewise.
30031         * modules/fwriting-tests (Files): Likewise.
30032         * modules/getcwd-tests (Files): Likewise.
30033         * modules/getdate-tests (Files): Likewise.
30034         * modules/getdelim-tests (Files): Likewise.
30035         * modules/getdtablesize-tests (Files): Likewise.
30036         * modules/getgroups-tests (Files): Likewise.
30037         * modules/getline-tests (Files): Likewise.
30038         * modules/getndelim2-tests (Files): Likewise.
30039         * modules/glob-tests (Files): Likewise.
30040         * modules/hash-tests (Files): Likewise.
30041         * modules/i-ring-tests (Files): Likewise.
30042         * modules/iconv-tests (Files): Likewise.
30043         * modules/iconv_open-utf-tests (Files): Likewise.
30044         * modules/idpriv-drop-tests (Files): Likewise.
30045         * modules/idpriv-droptemp-tests (Files): Likewise.
30046         * modules/inet_ntop-tests (Files): Likewise.
30047         * modules/inet_pton-tests (Files): Likewise.
30048         * modules/isblank-tests (Files): Likewise.
30049         * modules/isfinite-tests (Files): Likewise.
30050         * modules/isinf-tests (Files): Likewise.
30051         * modules/isnan-tests (Files): Likewise.
30052         * modules/isnand-nolibm-tests (Files): Likewise.
30053         * modules/isnand-tests (Files): Likewise.
30054         * modules/isnanf-nolibm-tests (Files): Likewise.
30055         * modules/isnanf-tests (Files): Likewise.
30056         * modules/isnanl-nolibm-tests (Files): Likewise.
30057         * modules/isnanl-tests (Files): Likewise.
30058         * modules/lchown-tests (Files): Likewise.
30059         * modules/ldexpl-tests (Files): Likewise.
30060         * modules/link-tests (Files): Likewise.
30061         * modules/linkat-tests (Files): Likewise.
30062         * modules/linked-list-tests (Files): Likewise.
30063         * modules/linkedhash-list-tests (Files): Likewise.
30064         * modules/localename-tests (Files): Likewise.
30065         * modules/lseek-tests (Files): Likewise.
30066         * modules/lstat-tests (Files): Likewise.
30067         * modules/mbmemcasecmp-tests (Files): Likewise.
30068         * modules/mbmemcasecoll-tests (Files): Likewise.
30069         * modules/mbrtowc-tests (Files): Likewise.
30070         * modules/mbscasecmp-tests (Files): Likewise.
30071         * modules/mbscasestr-tests (Files): Likewise.
30072         * modules/mbschr-tests (Files): Likewise.
30073         * modules/mbscspn-tests (Files): Likewise.
30074         * modules/mbsinit-tests (Files): Likewise.
30075         * modules/mbsncasecmp-tests (Files): Likewise.
30076         * modules/mbsnrtowcs-tests (Files): Likewise.
30077         * modules/mbspbrk-tests (Files): Likewise.
30078         * modules/mbspcasecmp-tests (Files): Likewise.
30079         * modules/mbsrchr-tests (Files): Likewise.
30080         * modules/mbsrtowcs-tests (Files): Likewise.
30081         * modules/mbsspn-tests (Files): Likewise.
30082         * modules/mbsstr-tests (Files): Likewise.
30083         * modules/memchr-tests (Files): Likewise.
30084         * modules/memchr2-tests (Files): Likewise.
30085         * modules/memcmp-tests (Files): Likewise.
30086         * modules/memmem-tests (Files): Likewise.
30087         * modules/memrchr-tests (Files): Likewise.
30088         * modules/mkdir-tests (Files): Likewise.
30089         * modules/mkfifo-tests (Files): Likewise.
30090         * modules/mkfifoat-tests (Files): Likewise.
30091         * modules/mknod-tests (Files): Likewise.
30092         * modules/nanosleep-tests (Files): Likewise.
30093         * modules/nl_langinfo-tests (Files): Likewise.
30094         * modules/obstack-printf-tests (Files): Likewise.
30095         * modules/open-tests (Files): Likewise.
30096         * modules/openat-tests (Files): Likewise.
30097         * modules/pipe-filter-gi-tests (Files): Likewise.
30098         * modules/pipe-filter-ii-tests (Files): Likewise.
30099         * modules/pipe2-tests (Files): Likewise.
30100         * modules/popen-safer-tests (Files): Likewise.
30101         * modules/popen-tests (Files): Likewise.
30102         * modules/posixtm-tests (Files): Likewise.
30103         * modules/pread-tests (Files): Likewise.
30104         * modules/printf-frexp-tests (Files): Likewise.
30105         * modules/printf-frexpl-tests (Files): Likewise.
30106         * modules/printf-posix-tests (Files): Likewise.
30107         * modules/priv-set-tests (Files): Likewise.
30108         * modules/quotearg-tests (Files): Likewise.
30109         * modules/random_r-tests (Files): Likewise.
30110         * modules/rawmemchr-tests (Files): Likewise.
30111         * modules/rbtree-list-tests (Files): Likewise.
30112         * modules/rbtree-oset-tests (Files): Likewise.
30113         * modules/rbtreehash-list-tests (Files): Likewise.
30114         * modules/readlink-tests (Files): Likewise.
30115         * modules/remove-tests (Files): Likewise.
30116         * modules/rename-tests (Files): Likewise.
30117         * modules/renameat-tests (Files): Likewise.
30118         * modules/rmdir-tests (Files): Likewise.
30119         * modules/round-tests (Files): Likewise.
30120         * modules/roundf-tests (Files): Likewise.
30121         * modules/roundl-tests (Files): Likewise.
30122         * modules/safe-alloc-tests (Files): Likewise.
30123         * modules/setenv-tests (Files): Likewise.
30124         * modules/sigaction-tests (Files): Likewise.
30125         * modules/signbit-tests (Files): Likewise.
30126         * modules/sleep-tests (Files): Likewise.
30127         * modules/snprintf-posix-tests (Files): Likewise.
30128         * modules/snprintf-tests (Files): Likewise.
30129         * modules/sprintf-posix-tests (Files): Likewise.
30130         * modules/stat-tests (Files): Likewise.
30131         * modules/stat-time-tests (Files): Likewise.
30132         * modules/strcasestr-tests (Files): Likewise.
30133         * modules/strchrnul-tests (Files): Likewise.
30134         * modules/strerror-tests (Files): Likewise.
30135         * modules/striconv-tests (Files): Likewise.
30136         * modules/striconveh-tests (Files): Likewise.
30137         * modules/striconveha-tests (Files): Likewise.
30138         * modules/strsignal-tests (Files): Likewise.
30139         * modules/strstr-tests (Files): Likewise.
30140         * modules/strtod-tests (Files): Likewise.
30141         * modules/strverscmp-tests (Files): Likewise.
30142         * modules/symlink-tests (Files): Likewise.
30143         * modules/symlinkat-tests (Files): Likewise.
30144         * modules/trunc-tests (Files): Likewise.
30145         * modules/truncf-tests (Files): Likewise.
30146         * modules/truncl-tests (Files): Likewise.
30147         * modules/uname-tests (Files): Likewise.
30148         * modules/unicase/cased-tests (Files): Likewise.
30149         * modules/unicase/ignorable-tests (Files): Likewise.
30150         * modules/unicase/locale-language-tests (Files): Likewise.
30151         * modules/unicase/tolower-tests (Files): Likewise.
30152         * modules/unicase/totitle-tests (Files): Likewise.
30153         * modules/unicase/toupper-tests (Files): Likewise.
30154         * modules/unicase/u8-casecmp-tests (Files): Likewise.
30155         * modules/unicase/u8-casecoll-tests (Files): Likewise.
30156         * modules/unicase/u8-casefold-tests (Files): Likewise.
30157         * modules/unicase/u8-is-cased-tests (Files): Likewise.
30158         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
30159         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
30160         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
30161         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
30162         * modules/unicase/u8-tolower-tests (Files): Likewise.
30163         * modules/unicase/u8-totitle-tests (Files): Likewise.
30164         * modules/unicase/u8-toupper-tests (Files): Likewise.
30165         * modules/unicase/u16-casecmp-tests (Files): Likewise.
30166         * modules/unicase/u16-casecoll-tests (Files): Likewise.
30167         * modules/unicase/u16-casefold-tests (Files): Likewise.
30168         * modules/unicase/u16-is-cased-tests (Files): Likewise.
30169         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
30170         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
30171         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
30172         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
30173         * modules/unicase/u16-tolower-tests (Files): Likewise.
30174         * modules/unicase/u16-totitle-tests (Files): Likewise.
30175         * modules/unicase/u16-toupper-tests (Files): Likewise.
30176         * modules/unicase/u32-casecmp-tests (Files): Likewise.
30177         * modules/unicase/u32-casecoll-tests (Files): Likewise.
30178         * modules/unicase/u32-casefold-tests (Files): Likewise.
30179         * modules/unicase/u32-is-cased-tests (Files): Likewise.
30180         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
30181         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
30182         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
30183         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
30184         * modules/unicase/u32-tolower-tests (Files): Likewise.
30185         * modules/unicase/u32-totitle-tests (Files): Likewise.
30186         * modules/unicase/u32-toupper-tests (Files): Likewise.
30187         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
30188         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
30189         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
30190         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
30191         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
30192         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
30193         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
30194         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
30195         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
30196         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
30197         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
30198         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
30199         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
30200         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
30201         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
30202         * modules/unictype/bidicategory-name-tests (Files): Likewise.
30203         * modules/unictype/bidicategory-of-tests (Files): Likewise.
30204         * modules/unictype/bidicategory-test-tests (Files): Likewise.
30205         * modules/unictype/block-list-tests (Files): Likewise.
30206         * modules/unictype/block-of-tests (Files): Likewise.
30207         * modules/unictype/block-test-tests (Files): Likewise.
30208         * modules/unictype/category-C-tests (Files): Likewise.
30209         * modules/unictype/category-Cc-tests (Files): Likewise.
30210         * modules/unictype/category-Cf-tests (Files): Likewise.
30211         * modules/unictype/category-Cn-tests (Files): Likewise.
30212         * modules/unictype/category-Co-tests (Files): Likewise.
30213         * modules/unictype/category-Cs-tests (Files): Likewise.
30214         * modules/unictype/category-L-tests (Files): Likewise.
30215         * modules/unictype/category-Ll-tests (Files): Likewise.
30216         * modules/unictype/category-Lm-tests (Files): Likewise.
30217         * modules/unictype/category-Lo-tests (Files): Likewise.
30218         * modules/unictype/category-Lt-tests (Files): Likewise.
30219         * modules/unictype/category-Lu-tests (Files): Likewise.
30220         * modules/unictype/category-M-tests (Files): Likewise.
30221         * modules/unictype/category-Mc-tests (Files): Likewise.
30222         * modules/unictype/category-Me-tests (Files): Likewise.
30223         * modules/unictype/category-Mn-tests (Files): Likewise.
30224         * modules/unictype/category-N-tests (Files): Likewise.
30225         * modules/unictype/category-Nd-tests (Files): Likewise.
30226         * modules/unictype/category-Nl-tests (Files): Likewise.
30227         * modules/unictype/category-No-tests (Files): Likewise.
30228         * modules/unictype/category-P-tests (Files): Likewise.
30229         * modules/unictype/category-Pc-tests (Files): Likewise.
30230         * modules/unictype/category-Pd-tests (Files): Likewise.
30231         * modules/unictype/category-Pe-tests (Files): Likewise.
30232         * modules/unictype/category-Pf-tests (Files): Likewise.
30233         * modules/unictype/category-Pi-tests (Files): Likewise.
30234         * modules/unictype/category-Po-tests (Files): Likewise.
30235         * modules/unictype/category-Ps-tests (Files): Likewise.
30236         * modules/unictype/category-S-tests (Files): Likewise.
30237         * modules/unictype/category-Sc-tests (Files): Likewise.
30238         * modules/unictype/category-Sk-tests (Files): Likewise.
30239         * modules/unictype/category-Sm-tests (Files): Likewise.
30240         * modules/unictype/category-So-tests (Files): Likewise.
30241         * modules/unictype/category-Z-tests (Files): Likewise.
30242         * modules/unictype/category-Zl-tests (Files): Likewise.
30243         * modules/unictype/category-Zp-tests (Files): Likewise.
30244         * modules/unictype/category-Zs-tests (Files): Likewise.
30245         * modules/unictype/category-and-not-tests (Files): Likewise.
30246         * modules/unictype/category-and-tests (Files): Likewise.
30247         * modules/unictype/category-byname-tests (Files): Likewise.
30248         * modules/unictype/category-name-tests (Files): Likewise.
30249         * modules/unictype/category-none-tests (Files): Likewise.
30250         * modules/unictype/category-of-tests (Files): Likewise.
30251         * modules/unictype/category-or-tests (Files): Likewise.
30252         * modules/unictype/category-test-withtable-tests (Files): Likewise.
30253         * modules/unictype/combining-class-tests (Files): Likewise.
30254         * modules/unictype/ctype-alnum-tests (Files): Likewise.
30255         * modules/unictype/ctype-alpha-tests (Files): Likewise.
30256         * modules/unictype/ctype-blank-tests (Files): Likewise.
30257         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
30258         * modules/unictype/ctype-digit-tests (Files): Likewise.
30259         * modules/unictype/ctype-graph-tests (Files): Likewise.
30260         * modules/unictype/ctype-lower-tests (Files): Likewise.
30261         * modules/unictype/ctype-print-tests (Files): Likewise.
30262         * modules/unictype/ctype-punct-tests (Files): Likewise.
30263         * modules/unictype/ctype-space-tests (Files): Likewise.
30264         * modules/unictype/ctype-upper-tests (Files): Likewise.
30265         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
30266         * modules/unictype/decimal-digit-tests (Files): Likewise.
30267         * modules/unictype/digit-tests (Files): Likewise.
30268         * modules/unictype/mirror-tests (Files): Likewise.
30269         * modules/unictype/numeric-tests (Files): Likewise.
30270         * modules/unictype/property-alphabetic-tests (Files): Likewise.
30271         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
30272         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
30273         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
30274         Likewise.
30275         * modules/unictype/property-bidi-block-separator-tests (Files):
30276         Likewise.
30277         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
30278         Likewise.
30279         * modules/unictype/property-bidi-common-separator-tests (Files):
30280         Likewise.
30281         * modules/unictype/property-bidi-control-tests (Files): Likewise.
30282         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
30283         Likewise.
30284         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
30285         Likewise.
30286         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
30287         Likewise.
30288         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
30289         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
30290         Likewise.
30291         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
30292         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
30293         Likewise.
30294         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
30295         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
30296         * modules/unictype/property-bidi-segment-separator-tests (Files):
30297         Likewise.
30298         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
30299         * modules/unictype/property-byname-tests (Files): Likewise.
30300         * modules/unictype/property-combining-tests (Files): Likewise.
30301         * modules/unictype/property-composite-tests (Files): Likewise.
30302         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
30303         * modules/unictype/property-dash-tests (Files): Likewise.
30304         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
30305         * modules/unictype/property-default-ignorable-code-point-tests (Files):
30306         Likewise.
30307         * modules/unictype/property-deprecated-tests (Files): Likewise.
30308         * modules/unictype/property-diacritic-tests (Files): Likewise.
30309         * modules/unictype/property-extender-tests (Files): Likewise.
30310         * modules/unictype/property-format-control-tests (Files): Likewise.
30311         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
30312         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
30313         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
30314         * modules/unictype/property-hex-digit-tests (Files): Likewise.
30315         * modules/unictype/property-hyphen-tests (Files): Likewise.
30316         * modules/unictype/property-id-continue-tests (Files): Likewise.
30317         * modules/unictype/property-id-start-tests (Files): Likewise.
30318         * modules/unictype/property-ideographic-tests (Files): Likewise.
30319         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
30320         * modules/unictype/property-ids-trinary-operator-tests (Files):
30321         Likewise.
30322         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
30323         * modules/unictype/property-iso-control-tests (Files): Likewise.
30324         * modules/unictype/property-join-control-tests (Files): Likewise.
30325         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
30326         * modules/unictype/property-line-separator-tests (Files): Likewise.
30327         * modules/unictype/property-logical-order-exception-tests (Files):
30328         Likewise.
30329         * modules/unictype/property-lowercase-tests (Files): Likewise.
30330         * modules/unictype/property-math-tests (Files): Likewise.
30331         * modules/unictype/property-non-break-tests (Files): Likewise.
30332         * modules/unictype/property-not-a-character-tests (Files): Likewise.
30333         * modules/unictype/property-numeric-tests (Files): Likewise.
30334         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
30335         * modules/unictype/property-other-default-ignorable-code-point-tests
30336         (Files): Likewise.
30337         * modules/unictype/property-other-grapheme-extend-tests (Files):
30338         Likewise.
30339         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
30340         * modules/unictype/property-other-id-start-tests (Files): Likewise.
30341         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
30342         * modules/unictype/property-other-math-tests (Files): Likewise.
30343         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
30344         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
30345         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
30346         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
30347         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
30348         * modules/unictype/property-private-use-tests (Files): Likewise.
30349         * modules/unictype/property-punctuation-tests (Files): Likewise.
30350         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
30351         * modules/unictype/property-radical-tests (Files): Likewise.
30352         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
30353         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
30354         * modules/unictype/property-space-tests (Files): Likewise.
30355         * modules/unictype/property-terminal-punctuation-tests (Files):
30356         Likewise.
30357         * modules/unictype/property-test-tests (Files): Likewise.
30358         * modules/unictype/property-titlecase-tests (Files): Likewise.
30359         * modules/unictype/property-unassigned-code-value-tests (Files):
30360         Likewise.
30361         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
30362         * modules/unictype/property-uppercase-tests (Files): Likewise.
30363         * modules/unictype/property-variation-selector-tests (Files): Likewise.
30364         * modules/unictype/property-white-space-tests (Files): Likewise.
30365         * modules/unictype/property-xid-continue-tests (Files): Likewise.
30366         * modules/unictype/property-xid-start-tests (Files): Likewise.
30367         * modules/unictype/property-zero-width-tests (Files): Likewise.
30368         * modules/unictype/scripts-tests (Files): Likewise.
30369         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
30370         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
30371         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
30372         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
30373         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
30374         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
30375         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
30376         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
30377         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
30378         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
30379         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
30380         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
30381         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
30382         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
30383         * modules/uninorm/composition-tests (Files): Likewise.
30384         * modules/uninorm/decomposing-form-tests (Files): Likewise.
30385         * modules/uninorm/decomposition-tests (Files): Likewise.
30386         * modules/uninorm/filter-tests (Files): Likewise.
30387         * modules/uninorm/nfc-tests (Files): Likewise.
30388         * modules/uninorm/nfd-tests (Files): Likewise.
30389         * modules/uninorm/nfkc-tests (Files): Likewise.
30390         * modules/uninorm/nfkd-tests (Files): Likewise.
30391         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
30392         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
30393         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
30394         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
30395         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
30396         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
30397         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
30398         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
30399         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
30400         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
30401         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
30402         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
30403         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
30404         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
30405         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
30406         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
30407         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
30408         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
30409         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
30410         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
30411         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
30412         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
30413         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
30414         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
30415         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
30416         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
30417         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
30418         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
30419         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
30420         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
30421         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
30422         * modules/uniwidth/u8-width-tests (Files): Likewise.
30423         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
30424         * modules/uniwidth/u16-width-tests (Files): Likewise.
30425         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
30426         * modules/uniwidth/u32-width-tests (Files): Likewise.
30427         * modules/uniwidth/width-tests (Files): Likewise.
30428         * modules/unlink-tests (Files): Likewise.
30429         * modules/unsetenv-tests (Files): Likewise.
30430         * modules/usleep-tests (Files): Likewise.
30431         * modules/utimens-tests (Files): Likewise.
30432         * modules/utimensat-tests (Files): Likewise.
30433         * modules/vasnprintf-posix-tests (Files): Likewise.
30434         * modules/vasnprintf-tests (Files): Likewise.
30435         * modules/vasprintf-posix-tests (Files): Likewise.
30436         * modules/vasprintf-tests (Files): Likewise.
30437         * modules/vdprintf-posix-tests (Files): Likewise.
30438         * modules/vfprintf-posix-tests (Files): Likewise.
30439         * modules/vprintf-posix-tests (Files): Likewise.
30440         * modules/vsnprintf-posix-tests (Files): Likewise.
30441         * modules/vsnprintf-tests (Files): Likewise.
30442         * modules/vsprintf-posix-tests (Files): Likewise.
30443         * modules/wcrtomb-tests (Files): Likewise.
30444         * modules/wcsnrtombs-tests (Files): Likewise.
30445         * modules/wcsrtombs-tests (Files): Likewise.
30446         * modules/wctype-tests (Files): Likewise.
30447         * modules/wcwidth-tests (Files): Likewise.
30448         * modules/xmemdup0-tests (Files): Likewise.
30449         * modules/xprintf-posix-tests (Files): Likewise.
30450         * modules/xvasprintf-tests (Files): Likewise.
30451
30452 2009-12-24  Eric Blake  <ebb9@byu.net>
30453
30454         test-nanosleep: fix typo
30455         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
30456         patch.
30457         Reported by Bruno Haible.
30458
30459 2009-12-24  Bruno Haible  <bruno@clisp.org>
30460
30461         Reduce namespace pollution on glibc systems.
30462         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
30463         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
30464         systems.
30465         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
30466         <getopt.h> on glibc systems.
30467         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
30468         systems.
30469         * lib/fcntl.c: Include <unistd.h> here instead.
30470
30471 2009-12-24  Bruno Haible  <bruno@clisp.org>
30472
30473         * lib/stdlib.in.h (includes): Fix typo in today's commit.
30474
30475 2009-12-24  Eric Blake  <ebb9@byu.net>
30476
30477         tests: add signature checks
30478         * tests/signature.h (SIGNATURE_CHECK): New file.
30479         * modules/atexit-tests (Files): Use it.
30480         * modules/btowc-tests (Files): Likewise.
30481         * modules/canonicalize-lgpl-tests (Files): Likewise.
30482         * modules/ceilf-tests (Files): Likewise.
30483         * modules/ceill-tests (Files): Likewise.
30484         * modules/chown-tests (Files): Likewise.
30485         * modules/dprintf-posix-tests (Files): Likewise.
30486         * modules/dup2-tests (Files): Likewise.
30487         * modules/dup3-tests (Files): Likewise.
30488         * modules/duplocale-tests (Files): Likewise.
30489         * modules/fchdir-tests (Files): Likewise.
30490         * modules/fcntl-tests (Files): Likewise.
30491         * modules/fdopendir-tests (Files): Likewise.
30492         * modules/fflush-tests (Files): Likewise.
30493         * modules/flock-tests (Files): Likewise.
30494         * modules/floorf-tests (Files): Likewise.
30495         * modules/floorl-tests (Files): Likewise.
30496         * modules/fnmatch-tests (Files): Likewise.
30497         * modules/fopen-tests (Files): Likewise.
30498         * modules/fprintf-posix-tests (Files): Likewise.
30499         * modules/freopen-tests (Files): Likewise.
30500         * modules/frexp-nolibm-tests (Files): Likewise.
30501         * modules/frexp-tests (Files): Likewise.
30502         * modules/frexpl-nolibm-tests (Files): Likewise.
30503         * modules/frexpl-tests (Files): Likewise.
30504         * modules/fseek-tests (Files): Likewise.
30505         * modules/fseeko-tests (Files): Likewise.
30506         * modules/fsync-tests (Files): Likewise.
30507         * modules/ftell-tests (Files): Likewise.
30508         * modules/ftello-tests (Files): Likewise.
30509         * modules/futimens-tests (Files): Likewise.
30510         * modules/getaddrinfo-tests (Files): Likewise.
30511         * modules/getcwd-tests (Files): Likewise.
30512         * modules/getdelim-tests (Files): Likewise.
30513         * modules/getdtablesize-tests (Files): Likewise.
30514         * modules/getgroups-tests (Files): Likewise.
30515         * modules/gethostname-tests (Files): Likewise.
30516         * modules/getline-tests (Files): Likewise.
30517         * modules/getopt-posix-tests (Files): Likewise.
30518         * modules/gettimeofday-tests (Files): Likewise.
30519         * modules/glob-tests (Files): Likewise.
30520         * modules/iconv-tests (Files): Likewise.
30521         * modules/inet_ntop-tests (Files): Likewise.
30522         * modules/inet_pton-tests (Files): Likewise.
30523         * modules/isblank-tests (Files): Likewise.
30524         * modules/lchown-tests (Files): Likewise.
30525         * modules/ldexpl-tests (Files): Likewise.
30526         * modules/link-tests (Files): Likewise.
30527         * modules/linkat-tests (Files): Likewise.
30528         * modules/lseek-tests (Files): Likewise.
30529         * modules/lstat-tests (Files): Likewise.
30530         * modules/mbrtowc-tests (Files): Likewise.
30531         * modules/mbsinit-tests (Files): Likewise.
30532         * modules/mbsnrtowcs-tests (Files): Likewise.
30533         * modules/mbsrtowcs-tests (Files): Likewise.
30534         * modules/memchr-tests (Files): Likewise.
30535         * modules/memcmp-tests (Files): Likewise.
30536         * modules/memmem-tests (Files): Likewise.
30537         * modules/memrchr-tests (Files): Likewise.
30538         * modules/mkdir-tests (Files): Likewise.
30539         * modules/mkfifo-tests (Files): Likewise.
30540         * modules/mkfifoat-tests (Files): Likewise.
30541         * modules/mknod-tests (Files): Likewise.
30542         * modules/nanosleep-tests (Files): Likewise.
30543         * modules/nl_langinfo-tests (Files): Likewise.
30544         * modules/obstack-printf-tests (Files): Likewise.
30545         * modules/open-tests (Files): Likewise.
30546         * modules/openat-tests (Files): Likewise.
30547         * modules/perror-tests (Files): Likewise.
30548         * modules/pipe2-tests (Files): Likewise.
30549         * modules/poll-tests (Files): Likewise.
30550         * modules/popen-tests (Files): Likewise.
30551         * modules/posix_spawn-tests (Files): Likewise.
30552         * modules/posix_spawnp-tests (Files): Likewise.
30553         * modules/pread-tests (Files): Likewise.
30554         * modules/printf-posix-tests (Files): Likewise.
30555         * modules/pty-tests (Files): Likewise.
30556         * modules/random_r-tests (Files): Likewise.
30557         * modules/rawmemchr-tests (Files): Likewise.
30558         * modules/readlink-tests (Files): Likewise.
30559         * modules/remove-tests (Files): Likewise.
30560         * modules/rename-tests (Files): Likewise.
30561         * modules/renameat-tests (Files): Likewise.
30562         * modules/rmdir-tests (Files): Likewise.
30563         * modules/round-tests (Files): Likewise.
30564         * modules/roundf-tests (Files): Likewise.
30565         * modules/roundl-tests (Files): Likewise.
30566         * modules/select-tests (Files): Likewise.
30567         * modules/setenv-tests (Files): Likewise.
30568         * modules/sigaction-tests (Files): Likewise.
30569         * modules/sleep-tests (Files): Likewise.
30570         * modules/snprintf-posix-tests (Files): Likewise.
30571         * modules/snprintf-tests (Files): Likewise.
30572         * modules/sprintf-posix-tests (Files): Likewise.
30573         * modules/stat-tests (Files): Likewise.
30574         * modules/strcasestr-tests (Files): Likewise.
30575         * modules/strchrnul-tests (Files): Likewise.
30576         * modules/strerror-tests (Files): Likewise.
30577         * modules/strsignal-tests (Files): Likewise.
30578         * modules/strstr-tests (Files): Likewise.
30579         * modules/strtod-tests (Files): Likewise.
30580         * modules/strverscmp-tests (Files): Likewise.
30581         * modules/symlink-tests (Files): Likewise.
30582         * modules/symlinkat-tests (Files): Likewise.
30583         * modules/times-tests (Files): Likewise.
30584         * modules/trunc-tests (Files): Likewise.
30585         * modules/truncf-tests (Files): Likewise.
30586         * modules/truncl-tests (Files): Likewise.
30587         * modules/tsearch-tests (Files): Likewise.
30588         * modules/uname-tests (Files): Likewise.
30589         * modules/unlink-tests (Files): Likewise.
30590         * modules/unsetenv-tests (Files): Likewise.
30591         * modules/usleep-tests (Files): Likewise.
30592         * modules/utimensat-tests (Files): Likewise.
30593         * modules/vasprintf-tests (Files): Likewise.
30594         * modules/vdprintf-posix-tests (Files): Likewise.
30595         * modules/vfprintf-posix-tests (Files): Likewise.
30596         * modules/vprintf-posix-tests (Files): Likewise.
30597         * modules/vsnprintf-posix-tests (Files): Likewise.
30598         * modules/vsnprintf-tests (Files): Likewise.
30599         * modules/vsprintf-posix-tests (Files): Likewise.
30600         * modules/wcrtomb-tests (Files): Likewise.
30601         * modules/wcsnrtombs-tests (Files): Likewise.
30602         * modules/wcsrtombs-tests (Files): Likewise.
30603         * modules/wcwidth-tests (Files): Likewise.
30604         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
30605         * tests/test-isinf.c (isinf): Likewise.
30606         * tests/test-isnan.c (isnan): Likewise.
30607         * tests/test-signbit.c (signbit): Likewise.
30608         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
30609         declaration, either as macro or with correct signature.
30610         (select): Ensure function under test is declared with correct
30611         signature in correct header.
30612         * tests/test-atexit.c (atexit): Likewise.
30613         * tests/test-btowc.c (btowc): Likewise.
30614         * tests/test-canonicalize-lgpl.c (realpath)
30615         (canonicalize_file_name): Likewise.
30616         * tests/test-ceilf1.c (ceilf): Likewise.
30617         * tests/test-ceill.c (ceill): Likewise.
30618         * tests/test-chown.c (chown): Likewise.
30619         * tests/test-dprintf-posix.c (dprintf): Likewise.
30620         * tests/test-dup2.c (dup2): Likewise.
30621         * tests/test-dup3.c (dup3): Likewise.
30622         * tests/test-duplocale.c (duplocale): Likewise.
30623         * tests/test-fchdir.c (fchdir): Likewise.
30624         * tests/test-fchownat.c (fchownat): Likewise.
30625         * tests/test-fcntl.c (fcntl): Likewise.
30626         * tests/test-fdopendir.c (fdopendir): Likewise.
30627         * tests/test-fflush.c (fflush): Likewise.
30628         * tests/test-flock.c (flock): Likewise.
30629         * tests/test-floorf1.c (floorf): Likewise.
30630         * tests/test-floorl.c (floorl): Likewise.
30631         * tests/test-fnmatch.c (fnmatch): Likewise.
30632         * tests/test-fopen.c (fopen): Likewise.
30633         * tests/test-fprintf-posix.c (fprintf): Likewise.
30634         * tests/test-freopen.c (freopen): Likewise.
30635         * tests/test-frexp.c (frexp): Likewise.
30636         * tests/test-frexpl.c (frexpl): Likewise.
30637         * tests/test-fseek.c (fseek): Likewise.
30638         * tests/test-fseeko.c (fseeko): Likewise.
30639         * tests/test-fstatat.c (fstatat): Likewise.
30640         * tests/test-fsync.c (fsync): Likewise.
30641         * tests/test-ftell.c (ftell): Likewise.
30642         * tests/test-ftello.c (ftello): Likewise.
30643         * tests/test-futimens.c (futimens): Likewise.
30644         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
30645         (gai_strerror): Likewise.
30646         * tests/test-getcwd.c (getcwd): Likewise.
30647         * tests/test-getdelim.c (getdelim): Likewise.
30648         * tests/test-getdtablesize.c (getdtablesize): Likewise.
30649         * tests/test-getgroups.c (getgroups): Likewise.
30650         * tests/test-gethostname.c (gethostname): Likewise.
30651         * tests/test-getline.c (getline): Likewise.
30652         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
30653         Likewise.
30654         * tests/test-gettimeofday.c (gettimeofday): Likewise.
30655         * tests/test-glob.c (glob, globfree): Likewise.
30656         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
30657         * tests/test-inet_ntop.c (inet_ntop): Likewise.
30658         * tests/test-inet_pton.c (inet_pton): Likewise.
30659         * tests/test-isblank.c (isblank): Likewise.
30660         * tests/test-lchown.c (lchown): Likewise.
30661         * tests/test-ldexpl.c (ldexpl): Likewise.
30662         * tests/test-link.c (link): Likewise.
30663         * tests/test-linkat.c (linkat): Likewise.
30664         * tests/test-lseek.c (lseek): Likewise.
30665         * tests/test-lstat.c (lstat): Likewise.
30666         * tests/test-mbrtowc.c (mbrtowc): Likewise.
30667         * tests/test-mbsinit.c (mbsinit): Likewise.
30668         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
30669         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
30670         * tests/test-memchr.c (memchr): Likewise.
30671         * tests/test-memcmp.c (memcmp): Likewise.
30672         * tests/test-memmem.c (memmem): Likewise.
30673         * tests/test-memrchr.c (memrchr): Likewise.
30674         * tests/test-mkdir.c (mkdir): Likewise.
30675         * tests/test-mkdirat.c (mkdirat): Likewise.
30676         * tests/test-mkfifo.c (mkfifo): Likewise.
30677         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
30678         * tests/test-mknod.c (mknod): Likewise.
30679         * tests/test-nanosleep.c (nanosleep): Likewise.
30680         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
30681         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
30682         Likewise.
30683         * tests/test-open.c (open): Likewise.
30684         * tests/test-openat.c (openat): Likewise.
30685         * tests/test-perror.c (perror): Likewise.
30686         * tests/test-pipe2.c (pipe2): Likewise.
30687         * tests/test-poll.c (poll): Likewise.
30688         * tests/test-popen.c (popen, pclose): Likewise.
30689         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
30690         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
30691         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
30692         (posix_spawn_file_actions_destroy)
30693         (posix_spawn_file_actions_addclose)
30694         (posix_spawn_file_actions_addopen)
30695         (posix_spawn_file_actions_adddup2): Likewise.
30696         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
30697         * tests/test-pread.c (pread): Likewise.
30698         * tests/test-printf-posix.c (printf): Likewise.
30699         * tests/test-pty.c (openpty, forkpty): Likewise.
30700         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
30701         (random_r): Likewise.
30702         * tests/test-rawmemchr.c (rawmemchr): Likewise.
30703         * tests/test-readlink.c (readlink): Likewise.
30704         * tests/test-remove.c (remove): Likewise.
30705         * tests/test-rename.c (rename): Likewise.
30706         * tests/test-renameat.c (renameat): Likewise.
30707         * tests/test-rmdir.c (rmdir): Likewise.
30708         * tests/test-round1.c (round): Likewise.
30709         * tests/test-roundf1.c (roundf): Likewise.
30710         * tests/test-roundl.c (roundl): Likewise.
30711         * tests/test-setenv.c (setenv): Likewise.
30712         * tests/test-sigaction.c (sigaction): Likewise.
30713         * tests/test-sleep.c (sleep): Likewise.
30714         * tests/test-snprintf.c (snprintf): Likewise.
30715         * tests/test-sprintf-posix.c (sprintf): Likewise.
30716         * tests/test-stat.c (stat): Likewise.
30717         * tests/test-stpncpy.c (stpncpy): Likewise.
30718         * tests/test-strcasestr.c (strcasestr): Likewise.
30719         * tests/test-strchrnul.c (strchrnul): Likewise.
30720         * tests/test-strerror.c (strerror): Likewise.
30721         * tests/test-strsignal.c (strsignal): Likewise.
30722         * tests/test-strstr.c (strstr): Likewise.
30723         * tests/test-strtod.c (strtod): Likewise.
30724         * tests/test-strverscmp.c (strverscmp): Likewise.
30725         * tests/test-symlink.c (symlink): Likewise.
30726         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
30727         * tests/test-times.c (times): Likewise.
30728         * tests/test-trunc1.c (trunc): Likewise.
30729         * tests/test-truncf1.c (truncf): Likewise.
30730         * tests/test-truncl.c (truncl): Likewise.
30731         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
30732         Likewise.
30733         * tests/test-uname.c (uname): Likewise.
30734         * tests/test-unlink.c (unlink): Likewise.
30735         * tests/test-unlinkat.c (unlinkat): Likewise.
30736         * tests/test-unsetenv.c (unsetenv): Likewise.
30737         * tests/test-usleep.c (usleep): Likewise.
30738         * tests/test-utimensat.c (utimensat): Likewise.
30739         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
30740         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
30741         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
30742         * tests/test-vprintf-posix.c (vprintf): Likewise.
30743         * tests/test-vsnprintf.c (vsnprintf): Likewise.
30744         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
30745         * tests/test-wcrtomb.c (wcrtomb): Likewise.
30746         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
30747         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
30748         * tests/test-wcwidth.c (wcwidth): Likewise.
30749
30750         build: pull in conditional headers during GNULIB_POSIXCHECK
30751         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
30752         definitions from any conditionally-included headers.
30753         * lib/stdlib.in.h (includes): Likewise.
30754         * lib/unistd.in.h (includes): Likewise.
30755
30756 2009-12-24  Bruno Haible  <bruno@clisp.org>
30757
30758         * tests/test-argv-iter.c: Include header file being tested immediately
30759         after config.h.
30760         * tests/test-base64.c: Likewise.
30761         * tests/test-flock.c: Likewise.
30762         * tests/test-fsync.c: Likewise.
30763         * tests/test-getdate.c: Likewise.
30764         * tests/test-getndelim2.c: Likewise.
30765         * tests/test-isfinite.c: Likewise.
30766         * tests/test-isinf.c: Likewise.
30767         * tests/test-strerror.c: Likewise.
30768         * tests/test-strsignal.c: Likewise.
30769
30770 2009-12-23  Eric Blake  <ebb9@byu.net>
30771
30772         unistd: work around cygwin bug
30773         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
30774         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
30775         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
30776
30777 2009-12-23  Bruno Haible  <bruno@clisp.org>
30778
30779         localename: More tests.
30780         * tests/test-localename.c (SIZEOF): New macro.
30781         (categories): New variable.
30782         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
30783         test_locale_name_default): Add test w.r.t. thread locale.
30784         (test_locale_name_thread): New function.
30785         (main): Invoke it.
30786
30787         localename: Make aware of thread locale.
30788         * lib/localename.h (gl_locale_name_thread): New declaration.
30789         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
30790         behaviour with respect to thread locale.
30791         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
30792         <langinfo.h>, glthread/lock.h.
30793         (SIZE_BITS): New macro.
30794         (string_hash): New function.
30795         (struct hash_node): New type.
30796         (HASH_TABLE_SIZE): New macro.
30797         (struniq_hash_table, struniq_lock): New variables.
30798         (struniq): New function.
30799         (gl_locale_name_thread): New function.
30800         (gl_locale_name): Invoke it.
30801         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
30802         * modules/localename (Depends-on): Add lock.
30803         Reported by Mike Gran <spk121@yahoo.com>.
30804
30805 2009-12-23  Eric Blake  <ebb9@byu.net>
30806
30807         va-args: new module
30808         * modules/va-args: New file.
30809         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
30810         * MODULES.html.sh (Core language properties): Mention it.
30811
30812         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
30813         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
30814         named alias for __attribute__((__unused__)).
30815         * lib/chown.c: Update client.
30816         * lib/fchmodat.c: Likewise.
30817         * lib/fts.c: Likewise.
30818         * lib/getdate.y: Likewise.
30819         * lib/getgroups.c: Likewise.
30820         * lib/getopt.c: Likewise.
30821         * lib/getugroups.c: Likewise.
30822         * lib/mkdir.c: Likewise.
30823         * lib/mkfifo.c: Likewise.
30824         * lib/mkfifoat.c: Likewise.
30825         * lib/mknod.c: Likewise.
30826         * lib/mknodat.c: Likewise.
30827         * lib/readlink.c: Likewise.
30828         * lib/se-context.in.h: Likewise.
30829         * lib/se-selinux.in.h: Likewise.
30830         * lib/sockets.c: Likewise.
30831         * lib/symlink.c: Likewise.
30832         * lib/symlinkat.c: Likewise.
30833         * lib/unicodeio.c: Likewise.
30834         * lib/unistr.h: Likewise.
30835         * tests/test-areadlink.c: Likewise.
30836         * tests/test-areadlinkat.c: Likewise.
30837         * tests/test-filenamecat.c: Likewise.
30838         * tests/test-fseeko.c: Likewise.
30839         * tests/test-ftello.c: Likewise.
30840         * tests/test-getdate.c: Likewise.
30841         * tests/test-getgroups.c: Likewise.
30842         * tests/test-gethostname.c: Likewise.
30843         * tests/test-quotearg.c: Likewise.
30844         * tests/test-version-etc.c: Likewise.
30845         * tests/test-xalloc-die.c: Likewise.
30846         * tests/test-xfprintf-posix.c: Likewise.
30847         * tests/test-xprintf-posix.c: Likewise.
30848         * tests/test-xvasprintf.c: Likewise.
30849
30850         tests: avoid compiler warnings
30851         * tests/test-fcntl.c (main): Delete unused parameters.
30852         * tests/test-freopen-safer.c (main): Likewise.
30853         * tests/test-xalloc-die.c (main): Mark unused parameters.
30854         * tests/test-fseeko.c (main): Likewise.
30855         * tests/test-ftello.c (main): Likewise.
30856         * tests/test-nanosleep.c (main): Avoid declaration warning.
30857         * tests/test-sleep.c (main): Likewise.
30858         * tests/test-unsetenv.c (main): Silence warning about string
30859         literal.
30860         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
30861
30862 2009-12-23  Bruno Haible  <bruno@clisp.org>
30863
30864         * tests/test-localename.c (test_locale_name): New function, extracted
30865         from main. Also test mixed situations.
30866         (test_locale_name_posix, test_locale_name_environ,
30867         test_locale_name_default): New functions.
30868         (main): Invoke them all.
30869         * modules/localename-tests (configure.ac): Test for newlocale.
30870
30871 2009-12-23  Bruno Haible  <bruno@clisp.org>
30872
30873         unistd: Ensure getcwd gets declared before being overridden.
30874         * lib/unistd.in.h: Conditionally include <io.h>.
30875
30876 2009-12-22  Bruno Haible  <bruno@clisp.org>
30877
30878         wchar: Diagnose broken combination of glibc and gcc versions and flags.
30879         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
30880         (gl_WCHAR_H): Invoke it.
30881         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
30882         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
30883         Reported by Karl Berry <karl@freefriends.org>.
30884
30885 2009-12-22  Eric Blake  <ebb9@byu.net>
30886
30887         math, unistd: avoid redundant includes
30888         * lib/math.in.h (isnan): No need to re-include <math.h>.
30889         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
30890
30891         getsubopt: work around cygwin bug
30892         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
30893         avoid conflicting with system getsubopt.
30894         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
30895         bug.
30896
30897         getopt: synchronize from glibc
30898         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
30899         parameter order.  Adjust all callers.
30900         (_getopt_internal_r, main): Adjust quoting in error messages.
30901         Drop considerations for outdated POSIX 1003.2 error message.
30902         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
30903         callers.
30904         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
30905
30906         test-getopt: test stderr behavior
30907         * modules/getopt-posix-tests (Depends-on): Add dup2.
30908         * tests/test-getopt.c (ASSERT): Avoid stderr.
30909         (main): Move stderr to a temporary file.
30910         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
30911         Instead, add parameter to inform caller if output occurred.
30912         (test_getopt): Adjust all existing tests to expect silence, and
30913         add new tests of leading ":".
30914         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
30915         glibc shortcomings with leading "-:" or "+:" in optstring.
30916         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
30917         Likewise.
30918         * doc/posix-functions/getopt.texi (getopt): Likewise.
30919
30920         test-getopt: enhance test
30921         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
30922         supports optind=0.
30923         * tests/test-getopt.c (OPTIND_MIN): Move...
30924         * tests/test-getopt.h (OPTIND_MIN): ...here.
30925         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
30926         Require that optind=0 works, since modern BSD supports it in
30927         addition to optreset, and since coreutils expects it.
30928         (test_getopt_long_only): New test.
30929         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
30930         glibc shortcomings with 'W;', and enforcement of optind=0.
30931         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
30932         Likewise.
30933
30934 2009-12-21  Bruno Haible  <bruno@clisp.org>
30935
30936         localename: Improvements for MacOS X and Cygwin.
30937         * lib/localename.h (gl_locale_name_environ): New declaration.
30938         * lib/localename.c (gl_locale_name_environ): New function, extracted from
30939         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
30940         (gl_locale_name_posix): Invoke it.
30941         (gl_locale_name_default): Add comments. Use Windows native API also on
30942         Cygwin.
30943
30944 2009-12-21  Bruno Haible  <bruno@clisp.org>
30945
30946         Update list of Win32 locale ids.
30947         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
30948         (LANG_SAMI): Renamed from LANG_SAAMI.
30949         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
30950         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
30951         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
30952         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
30953         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
30954         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
30955         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
30956         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
30957         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
30958         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
30959         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
30960         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
30961         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
30962         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
30963         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
30964         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
30965         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
30966         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
30967         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
30968         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
30969         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
30970         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
30971         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
30972         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
30973         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
30974         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
30975         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
30976         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
30977         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
30978         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
30979         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
30980         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
30981         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
30982         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
30983         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
30984         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
30985         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
30986         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
30987         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
30988         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
30989         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
30990         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
30991         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
30992         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
30993         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
30994         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
30995         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
30996         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
30997         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
30998         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
30999         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
31000         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
31001         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
31002         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
31003         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
31004         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
31005         Add more languages and countries for Sami, Sorbian. Add more countries
31006         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
31007         for Pashto. Change country for Syriac, Tswana.
31008
31009 2009-12-21  Eric Blake  <ebb9@byu.net>
31010
31011         test-utimens: avoid spurious failure
31012         * tests/test-chown.h (nap): Factor...
31013         * tests/nap.h: ...into new file.
31014         * tests/test-lchown.h (nap): Avoid duplication.
31015         * tests/test-utimens-common.h (nap): Use shared implementation,
31016         necessary on file systems with 1-second resolution.
31017         * modules/chown-tests (Files): Include new file.
31018         * modules/fdutimensat-tests (Files): Likewise.
31019         * modules/futimens-tests (Files): Likewise.
31020         * modules/lchown-tests (Files): Likewise.
31021         * modules/openat-tests (Files): Likewise.
31022         * modules/utimens-tests (Files): Likewise.
31023         * modules/utimensat-tests (Files): Likewise.
31024
31025 2009-12-19  Eric Blake  <ebb9@byu.net>
31026
31027         futimens, utimensat: work around Linux bug
31028         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
31029         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
31030         * lib/utimensat.c (rpl_utimensat): Work around it.
31031         * lib/futimens.c (rpl_futimens): Adjust comment.
31032
31033         utimens: work around Linux ctime bug
31034         * lib/utimens.c (detect_ctime_bug): New helper function.
31035         (update_timespec): Differentiate between workaround needed for
31036         this bug vs. what is needed for systems that lack utimensat.
31037         (fdutimens, lutimens): Work around bug.
31038
31039         utimens: check for ctime update
31040         * tests/test-utimens-common.h (check_ctime): Define.
31041         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
31042         * tests/test-futimens.h (test_futimens): Likewise.
31043         * tests/test-lutimens.h (test_lutimens): Likewise.
31044         * doc/posix-functions/futimens.texi (futimens): Document the bug.
31045         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
31046
31047 2009-12-19  Bruno Haible  <bruno@clisp.org>
31048
31049         dprintf-posix: Check against memory leak fixed on 2009-12-15.
31050         * tests/test-dprintf-posix2.sh: New file.
31051         * tests/test-dprintf-posix2.c: New file.
31052         * modules/dprintf-posix-tests (Files): Add them.
31053         (configure.ac): Check for getrlimit and setrlimit.
31054         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
31055
31056 2009-12-19  Bruno Haible  <bruno@clisp.org>
31057
31058         fprintf-posix: Check against memory leak fixed on 2009-12-15.
31059         * tests/test-fprintf-posix3.sh: New file.
31060         * tests/test-fprintf-posix3.c: New file.
31061         * modules/fprintf-posix-tests (Files): Add them.
31062         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
31063
31064 2009-12-19  Eric Blake  <ebb9@byu.net>
31065
31066         dirfd: fix prototype
31067         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
31068         * lib/dirfd.c (dirfd): Likewise.
31069
31070         canonicalize: reduce memory usage
31071         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
31072         allocation to size.
31073         Reported by Solar Designer <solar@openwall.com>.
31074
31075 2009-12-19  Bruno Haible  <bruno@clisp.org>
31076
31077         New module attribute 'Applicability'.
31078         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
31079         * gnulib-tool: New option --extract-applicability.
31080         (func_usage): Document it.
31081         (sed_extract_prog): Recognize it.
31082         (func_get_applicability): New function.
31083         (func_import): Generalize handling of 'link-warning' module.
31084         * modules/link-warning (Applicability): New section.
31085         * modules/arg-nonnull (Applicability): New section.
31086         Repoted by Simon Josefsson <simon@josefsson.org>.
31087
31088 2009-12-19  Bruno Haible  <bruno@clisp.org>
31089
31090         fflush: tweak
31091         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
31092         * lib/fseeko.c (rpl_fseeko): Likewise.
31093
31094 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
31095
31096         * lib/gl_list.h: Fix typo in comment.
31097
31098 2009-12-16  Eric Blake  <ebb9@byu.net>
31099
31100         fcntl: use to simplify other modules
31101         * modules/cloexec (Depends-on): Add fcntl.
31102         * modules/fchdir (Depends-on): Likewise.
31103         * modules/fd-safer-flag (Depends-on): Likewise.
31104         * modules/unistd-safer (Depends-on): Likewise.
31105         * modules/dup3 (configure.ac): Set module indicator.
31106         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
31107         missing.
31108         * lib/fchdir.c (_gl_register_dup): Fix comment.
31109         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
31110         * lib/dup-safer.c (dup_safer): Likewise.
31111         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
31112         * lib/dup3.c (dup3): Likewise.
31113         * tests/test-fchdir.c (main): Enhance test.
31114         Fixes a dup_cloexec bug reported by Ondřej Vašík.
31115
31116         fcntl: port portions of fcntl to mingw
31117         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
31118         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
31119         replacement for mingw.
31120         * modules/fcntl (Description): Update.
31121         (Depends-on): Add dup2.
31122         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
31123         * modules/fcntl-h (Makefile.am): Substitute it.
31124         * lib/fcntl.in.h (fcntl): Update declaration.
31125         (F_DUPFD, F_GETFD): New macros, when needed.
31126         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
31127         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
31128         * tests/test-fcntl.c (check_flags, main): Enhance test for items
31129         we now guarantee.
31130
31131         fcntl: work around cygwin bug in F_DUPFD
31132         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
31133         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
31134         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
31135         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
31136         * doc/posix-functions/fcntl.texi (fcntl): Document it.
31137
31138         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
31139         * modules/fcntl (Files): List new files.
31140         (configure.ac): Run a test.
31141         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
31142         * lib/fcntl.c (rpl_fcntl): Likewise.
31143         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
31144         (gl_FCNTL_H): Always replace fcntl.h.
31145         * modules/fcntl-h (Makefile.am): Substitute witnesses.
31146         * lib/fcntl.in.h (fcntl): Declare replacement.
31147         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
31148         needed, plus a witness.
31149         * doc/posix-functions/fcntl.texi (fcntl): Document this.
31150         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
31151         * tests/test-fcntl.c: New file.
31152         * modules/fcntl-tests: Likewise.
31153
31154         binary-io: avoid potential compilation warning
31155         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
31156         directives.
31157
31158         fflush: avoid compilation error on NetBSD
31159         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
31160         between off_t and fpos_t, since the latter is sometimes a struct.
31161         * lib/fseeko.c (rpl_fseeko): Likewise.
31162         Reported by Alexander Nasonov <alnsn@yandex.ru>.
31163
31164 2009-12-15  Eric Blake  <ebb9@byu.net>
31165
31166         fcntl-h, stdio, sys_ioctl: fix declarations
31167         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
31168         function must not take arguments.
31169         * lib/sys_ioctl.in.h (ioctl): Likewise.
31170         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
31171         (open): Add a link warning.
31172
31173 2009-12-15  Jim Meyering  <meyering@redhat.com>
31174
31175         areadlink, areadlink-with-size: relax license to LGPLv2+
31176         * modules/areadlink (License): Relax to LGPLv2+.
31177         * modules/areadlink-with-size (License): Likewise.
31178
31179 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
31180             Bruno Haible  <bruno@clisp.org>
31181
31182         *printf: Fix memory leak.
31183         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
31184         * lib/vfprintf.c (vfprintf): Likewise.
31185         * lib/dprintf.c (dprintf): Likewise.
31186         * lib/vdprintf.c (vdprintf): Likewise.
31187
31188 2009-12-14  Eric Blake  <ebb9@byu.net>
31189
31190         accept4: adjust module dependencies
31191         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
31192
31193         utimens: one more try at avoiding compiler warning
31194         * lib/utimens.c (lutimens): Lower scope of result.
31195
31196 2009-12-13  Bruno Haible  <bruno@clisp.org>
31197
31198         Move the malloc checking from module 'list' to new module 'xlist'.
31199         * modules/xlist: New file.
31200         * lib/gl_xlist.h: New file.
31201         * lib/gl_xlist.c: New file.
31202         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
31203         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
31204         gl_list_add_last, gl_list_add_before, gl_list_add_after,
31205         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
31206         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
31207         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
31208         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
31209         gl_sortedlist_nx_add): New declarations.
31210         (struct gl_list_implementation): Rename and change methods accordingly.
31211         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
31212         (gl_list_nx_create): Renamed from gl_list_create.
31213         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
31214         (gl_list_nx_set_at): Renamed from gl_list_set_at.
31215         (gl_list_nx_add_first): Renamed from gl_list_add_first.
31216         (gl_list_nx_add_last): Renamed from gl_list_add_last.
31217         (gl_list_nx_add_before): Renamed from gl_list_add_before.
31218         (gl_list_nx_add_after): Renamed from gl_list_add_after.
31219         (gl_list_nx_add_at): Renamed from gl_list_add_at.
31220         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
31221         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
31222         gl_list_create_empty.
31223         (gl_list_nx_create): Renamed from gl_list_create.
31224         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
31225         (gl_list_nx_set_at): Renamed from gl_list_set_at.
31226         (gl_list_nx_add_first): Renamed from gl_list_add_first.
31227         (gl_list_nx_add_last): Renamed from gl_list_add_last.
31228         (gl_list_nx_add_before): Renamed from gl_list_add_before.
31229         (gl_list_nx_add_after): Renamed from gl_list_add_after.
31230         (gl_list_nx_add_at): Renamed from gl_list_add_at.
31231         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
31232         * lib/gl_array_list.c: Don't include xalloc.h.
31233         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
31234         NULL upon out-of-memory.
31235         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
31236         out-of-memory.
31237         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
31238         Change return type to 'int'.
31239         (gl_array_nx_set_at): Renamed from gl_array_set_at.
31240         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
31241         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
31242         upon out-of-memory.
31243         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
31244         upon out-of-memory.
31245         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
31246         upon out-of-memory.
31247         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
31248         upon out-of-memory.
31249         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
31250         out-of-memory.
31251         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
31252         Update.
31253         (gl_array_list_implementation): Update.
31254         * lib/gl_carray_list.c: Don't include xalloc.h.
31255         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
31256         Return NULL upon out-of-memory.
31257         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
31258         out-of-memory.
31259         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
31260         Change return type to 'int'.
31261         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
31262         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
31263         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
31264         upon out-of-memory.
31265         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
31266         upon out-of-memory.
31267         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
31268         out-of-memory.
31269         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
31270         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
31271         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
31272         Update.
31273         (gl_carray_list_implementation): Update.
31274         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
31275         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
31276         gl_linked_create_empty. Return NULL upon out-of-memory.
31277         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
31278         out-of-memory.
31279         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
31280         Change return type to 'int'. Return -1 upon out-of-memory.
31281         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
31282         out-of-memory.
31283         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
31284         upon out-of-memory.
31285         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
31286         upon out-of-memory.
31287         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
31288         NULL upon out-of-memory.
31289         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
31290         upon out-of-memory.
31291         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
31292         out-of-memory.
31293         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
31294         Update.
31295         * lib/gl_linked_list.c: Don't include xalloc.h.
31296         (gl_linked_list_implementation): Update.
31297         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
31298         (add_to_bucket): Change return type to 'int'.
31299         (gl_linkedhash_list_implementation): Update.
31300         * lib/gl_anytree_list1.h (free_subtree): New function.
31301         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
31302         gl_tree_create_empty. Return NULL upon out-of-memory.
31303         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
31304         Change return type to 'int'. Return -1 upon out-of-memory.
31305         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
31306         out-of-memory.
31307         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
31308         (gl_tree_remove_node): New function, moved here from
31309         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
31310         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
31311         Update.
31312         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
31313         malloc, not xmalloc. Return NULL upon out-of-memory.
31314         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
31315         out-of-memory.
31316         (gl_tree_remove_node_from_tree): New function, extracted from
31317         gl_tree_remove_node.
31318         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
31319         upon out-of-memory.
31320         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
31321         out-of-memory.
31322         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
31323         upon out-of-memory.
31324         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
31325         upon out-of-memory.
31326         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
31327         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
31328         not xmalloc. Return NULL upon out-of-memory.
31329         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
31330         out-of-memory.
31331         (gl_tree_remove_node_from_tree): New function, extracted from
31332         gl_tree_remove_node.
31333         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
31334         upon out-of-memory.
31335         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
31336         out-of-memory.
31337         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
31338         upon out-of-memory.
31339         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
31340         upon out-of-memory.
31341         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
31342         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
31343         gl_anytree_list1.h before gl_anyavltree_list2.h.
31344         (gl_avltree_list_implementation): Update.
31345         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
31346         gl_anytree_list1.h before gl_anyavltree_list2.h.
31347         (gl_rbtree_list_implementation): Update.
31348         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
31349         Change return type to 'int'. Return -1 upon out-of-memory. Use
31350         __builtin_expect.
31351         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
31352         (gl_avltreehash_list_implementation): Update.
31353         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
31354         (gl_rbtreehash_list_implementation): Update.
31355         * modules/array-list (Depends-on): Remove xalloc.
31356         * modules/carray-list (Depends-on): Likewise.
31357         * modules/linked-list (Depends-on): Likewise.
31358         * modules/linkedhash-list (Depends-on): Likewise.
31359         * modules/avltree-list (Depends-on): Likewise.
31360         * modules/rbtree-list (Depends-on): Likewise.
31361         * modules/avltreehash-list (Depends-on): Likewise.
31362         * modules/rbtreehash-list (Depends-on): Likewise.
31363
31364         * modules/xsublist: New file.
31365         * lib/gl_xsublist.h: New file.
31366         * lib/gl_xsublist.c: New file.
31367         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
31368         (gl_sublist_nx_create): New declaration.
31369         * lib/gl_sublist.c: Don't include xalloc.h.
31370         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
31371         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
31372         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
31373         Change return type to 'int'. Return -1 upon out-of-memory.
31374         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
31375         upon out-of-memory.
31376         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
31377         NULL upon out-of-memory.
31378         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
31379         upon out-of-memory.
31380         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
31381         NULL upon out-of-memory.
31382         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
31383         NULL upon out-of-memory.
31384         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
31385         upon out-of-memory.
31386         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
31387         (gl_sublist_list_implementation): Update.
31388         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
31389         upon out-of-memory.
31390         * modules/sublist (Depends-on): Remove xalloc.
31391
31392         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
31393         * tests/test-carray_list.c: Likewise.
31394         * tests/test-linked_list.c: Likewise.
31395         * tests/test-linkedhash_list.c: Likewise.
31396         * tests/test-avltree_list.c: Likewise.
31397         * tests/test-rbtree_list.c: Likewise.
31398         * tests/test-avltreehash_list.c: Likewise.
31399         * tests/test-rbtreehash_list.c: Likewise.
31400         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
31401         * modules/carray-list-tests (Makefile.am): Likewise.
31402         * modules/linked-list-tests (Makefile.am): Likewise.
31403         * modules/linkedhash-list-tests (Makefile.am): Likewise.
31404         * modules/avltree-list-tests (Makefile.am): Likewise.
31405         * modules/rbtree-list-tests (Makefile.am): Likewise.
31406         * modules/avltreehash-list-tests (Makefile.am): Likewise.
31407         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
31408
31409         * NEWS: Mention the changes.
31410
31411         * lib/clean-temp.c: Include gl_xlist.h.
31412         * modules/clean-temp (Depends-on): Add xlist.
31413
31414         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
31415         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
31416
31417         * tests/test-array_oset.c: Include gl_xlist.h.
31418         * modules/array-oset-tests (Depends-on): Add xlist.
31419
31420         Reported by José E. Marchesi <jemarch@gnu.org>.
31421
31422 2009-12-13  Bruno Haible  <bruno@clisp.org>
31423
31424         Move the malloc checking from module 'oset' to new module 'xoset'.
31425         * modules/xoset: New file.
31426         * lib/gl_xoset.h: New file.
31427         * lib/gl_xoset.c: New file.
31428         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
31429         declarations.
31430         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
31431         (struct gl_oset_implementation): Rename and change methods accordingly.
31432         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
31433         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
31434         'int'. Mark as __warn_unused_result__.
31435         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
31436         gl_oset_create_empty.
31437         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
31438         'int'.
31439         * lib/gl_array_oset.c: Don't include xalloc.h.
31440         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
31441         malloc, not xmalloc.
31442         (grow): Change return type to 'int'. Don't call xalloc_die.
31443         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
31444         to 'int'.
31445         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
31446         'int'.
31447         (gl_array_oset_implementation): Update.
31448         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
31449         gl_tree_create_empty.
31450         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
31451         'int'.
31452         * lib/gl_avltree_oset.c: Don't include xalloc.h.
31453         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
31454         xmalloc.
31455         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
31456         not xmalloc.
31457         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
31458         xmalloc.
31459         (gl_avltree_oset_implementation): Update.
31460         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
31461         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
31462         xmalloc.
31463         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
31464         not xmalloc.
31465         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
31466         xmalloc.
31467         (gl_rbtree_oset_implementation): Update.
31468         * modules/array-oset (Depends-on): Remove xalloc.
31469         * modules/avltree-oset (Depends-on): Likewise.
31470         * modules/rbtree-oset (Depends-on): Likewise.
31471         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
31472         * tests/test-avltree_oset.c: Likewise.
31473         * tests/test-rbtree_oset.c: Likewise.
31474         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
31475         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
31476         * modules/rbtree-oset-tests (Makefile.am): Likewise.
31477         * NEWS: Mention the change.
31478
31479 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
31480
31481         maint.mk: allow a project to override release-prep commands
31482         * top/maint.mk (alpha, beta, stable): Move release-preparatory
31483         commands into a new rule.
31484         (release-prep): New rule.
31485         (release-prep-hook): New overridable variable.
31486
31487 2009-12-13  Bruno Haible  <bruno@clisp.org>
31488
31489         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
31490
31491 2009-12-13  Jim Meyering  <meyering@redhat.com>
31492
31493         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
31494         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
31495
31496 2009-12-12  Bruno Haible  <bruno@clisp.org>
31497
31498         duplocale: Tweak.
31499         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
31500
31501 2009-12-12  Karl Berry  <karl@gnu.org>
31502
31503         * config/srclist.txt (strtoll.c): tab changes, no more sync.
31504
31505 2009-12-12  Bruno Haible  <bruno@clisp.org>
31506
31507         * m4/po.m4: Undo incorrect untabification.
31508
31509 2009-12-12  Bruno Haible  <bruno@clisp.org>
31510
31511         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
31512         * modules/c-strtod (Depends-on): Add locale.
31513         * modules/c-strtold (Depends-on): Likewise.
31514
31515 2009-12-12  Bruno Haible  <bruno@clisp.org>
31516
31517         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
31518
31519 2009-12-11  Eric Blake  <ebb9@byu.net>
31520
31521         setenv: relax requirement in light of POSIX ruling
31522         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
31523         not NULL.
31524         * tests/test-setenv.c (main): Relax test.
31525         * tests/test-unsetenv.c (main): Likewise.
31526         * doc/posix-functions/setenv.texi (setenv): Document this.
31527         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
31528
31529 2009-12-11  Bruno Haible  <bruno@clisp.org>
31530
31531         New module 'fd-safer-flag'.
31532         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
31533         * lib/dup-safer.c (dup_safer_flag): Remove function.
31534         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
31535         * lib/fd-safer.c (fd_safer_flag): Remove function.
31536         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
31537         * modules/cloexec (configure.ac): Drop indicator macro.
31538         * modules/fd-safer-flag: New file.
31539         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
31540         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
31541         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
31542
31543 2009-12-11  Bruno Haible  <bruno@clisp.org>
31544
31545         Tests for module 'nl_langinfo'.
31546         * modules/nl_langinfo-tests: New file.
31547         * tests/test-nl_langinfo.sh: New file.
31548         * tests/test-nl_langinfo.c: New file.
31549
31550         New module 'nl_langinfo'.
31551         * lib/nl_langinfo.c: New file.
31552         * m4/nl_langinfo.m4: New file.
31553         * modules/nl_langinfo: New file.
31554         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
31555
31556 2009-12-11  Bruno Haible  <bruno@clisp.org>
31557
31558         Tests for module 'langinfo'.
31559         * modules/langinfo-tests: New file.
31560         * tests/test-langinfo.c: New file.
31561
31562         New module 'langinfo'.
31563         * lib/langinfo.in.h: New file.
31564         * m4/langinfo_h.m4: New file.
31565         * modules/langinfo: New file.
31566         * doc/posix-headers/langinfo.texi: Mention the new module.
31567
31568 2009-12-11  Bruno Haible  <bruno@clisp.org>
31569
31570         * lib/config.charset: Untabify.
31571
31572 2009-12-11  Bruno Haible  <bruno@clisp.org>
31573
31574         * modules/unistd-safer (configure.ac): Drop indicator macro.
31575
31576 2009-12-11  Bruno Haible  <bruno@clisp.org>
31577
31578         Move pipe2-safer code to its own file.
31579         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
31580         * lib/pipe-safer.c (pipe2_safer): Remove function.
31581         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
31582         (Makefile.am): Add it to lib_SOURCES.
31583
31584 2009-12-10  Bruno Haible  <bruno@clisp.org>
31585
31586         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
31587
31588 2009-12-10  Bruno Haible  <bruno@clisp.org>
31589
31590         Declare which arguments expect non-NULL values, for GCC and clang.
31591         * build-aux/arg-nonnull.h: New file.
31592         * modules/arg-nonnull: New file.
31593         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
31594         (inet_ntop, inet_pton): Use it.
31595         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
31596         (closedir, dirfd, opendir, scandir, alphasort): Use it.
31597         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
31598         (open, openat): Use it.
31599         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
31600         (fnmatch): Use it.
31601         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
31602         (getopt, getopt_long, getopt_long_only): Use it.
31603         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
31604         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
31605         Use it.
31606         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
31607         (iconv_open): Use it.
31608         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
31609         (strtoimax, strtoumax): Use it.
31610         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
31611         (duplocale): Use it.
31612         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
31613         (frexp, frexpl): Use it.
31614         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
31615         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
31616         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
31617         (tsearch, tfind, tdelete, twalk): Use it.
31618         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
31619         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
31620         sigpending): Use it.
31621         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
31622         (posix_spawn, posix_spawnp, posix_spawnattr_init,
31623         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
31624         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
31625         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
31626         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
31627         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
31628         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
31629         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
31630         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
31631         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
31632         Use it.
31633         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
31634         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
31635         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
31636         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
31637         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
31638         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
31639         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
31640         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
31641         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
31642         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
31643         strtoull, unsetenv): Use it.
31644         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
31645         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
31646         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
31647         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
31648         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
31649         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
31650         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
31651         (strcasecmp, strncasecmp): Use it.
31652         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
31653         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
31654         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
31655         rpl_setsockopt): Use it.
31656         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
31657         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
31658         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
31659         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
31660         (gettimeofday): Use it.
31661         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
31662         (times): Use it.
31663         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
31664         (uname): Use it.
31665         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
31666         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
31667         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
31668         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
31669         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
31670         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
31671         unlinkat, write): Use it.
31672         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
31673         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
31674         * lib/argv-iter.h: Include arg-nonnull.h.
31675         (_ATTRIBUTE_NONNULL_): Remove macro.
31676         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
31677         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
31678         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
31679         optimization.
31680         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
31681         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
31682         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
31683         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
31684         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
31685         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
31686         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
31687         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
31688         * modules/arpa_inet (Depends-on): Add arg-nonnull.
31689         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
31690         * modules/dirent (Depends-on): Add arg-nonnull.
31691         (Makefile.am): Insert arg-nonnull.h into dirent.h.
31692         * modules/fcntl-h (Depends-on): Add arg-nonnull.
31693         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
31694         * modules/fnmatch (Depends-on): Add arg-nonnull.
31695         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
31696         * modules/getopt-posix (Depends-on): Add arg-nonnull.
31697         (Makefile.am): Insert arg-nonnull.h into getopt.h.
31698         * modules/glob (Depends-on): Add arg-nonnull.
31699         (Makefile.am): Insert arg-nonnull.h into glob.h.
31700         * modules/iconv_open (Depends-on): Add arg-nonnull.
31701         (Makefile.am): Insert arg-nonnull.h into iconv.h.
31702         * modules/inttypes (Depends-on): Add arg-nonnull.
31703         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
31704         * modules/locale (Depends-on): Add arg-nonnull.
31705         (Makefile.am): Insert arg-nonnull.h into locale.h.
31706         * modules/math (Depends-on): Add arg-nonnull.
31707         (Makefile.am): Insert arg-nonnull.h into math.h.
31708         * modules/netdb (Depends-on): Add arg-nonnull.
31709         (Makefile.am): Insert arg-nonnull.h into netdb.h.
31710         * modules/search (Depends-on): Add arg-nonnull.
31711         (Makefile.am): Insert arg-nonnull.h into search.h.
31712         * modules/signal (Depends-on): Add arg-nonnull.
31713         (Makefile.am): Insert arg-nonnull.h into signal.h.
31714         * modules/spawn (Depends-on): Add arg-nonnull.
31715         (Makefile.am): Insert arg-nonnull.h into spawn.h.
31716         * modules/stdio (Depends-on): Add arg-nonnull.
31717         (Makefile.am): Insert arg-nonnull.h into stdio.h.
31718         * modules/stdlib (Depends-on): Add arg-nonnull.
31719         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
31720         * modules/string (Depends-on): Add arg-nonnull.
31721         (Makefile.am): Insert arg-nonnull.h into string.h.
31722         * modules/strings (Depends-on): Add arg-nonnull.
31723         (Makefile.am): Insert arg-nonnull.h into strings.h.
31724         * modules/sys_socket (Depends-on): Add arg-nonnull.
31725         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
31726         * modules/sys_stat (Depends-on): Add arg-nonnull.
31727         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
31728         * modules/sys_time (Depends-on): Add arg-nonnull.
31729         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
31730         * modules/sys_times (Depends-on): Add arg-nonnull.
31731         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
31732         * modules/sys_utsname (Depends-on): Add arg-nonnull.
31733         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
31734         * modules/time (Depends-on): Add arg-nonnull.
31735         (Makefile.am): Insert arg-nonnull.h into time.h.
31736         * modules/unistd (Depends-on): Add arg-nonnull.
31737         (Makefile.am): Insert arg-nonnull.h into unistd.h.
31738         * modules/wchar (Depends-on): Add arg-nonnull.
31739         (Makefile.am): Insert arg-nonnull.h into wchar.h.
31740         * modules/argv-iter (Depends-on): Add arg-nonnull.
31741         * tests/test-canonicalize.c (null_ptr): New function.
31742         (main): Use it.
31743         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
31744         (main): Use it.
31745         * tests/test-memmem.c (null_ptr): New function.
31746         (main): Use it.
31747         Reported by Jim Meyering.
31748
31749 2009-12-10  Bruno Haible  <bruno@clisp.org>
31750
31751         Use spaces for indentation, not tabs.
31752         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
31753         * m4/*.m4: Untabify.
31754         * build-aux/*.h: Untabify.
31755         * tests/**/*.[hc]: Untabify.
31756         * README: New section "Indent with spaces, not TABs", based on
31757         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
31758         * NEWS: Mention the change.
31759
31760 2009-12-10  Bruno Haible  <bruno@clisp.org>
31761
31762         pty test: Fix link error.
31763         * modules/pty-tests (Makefile.am): Add the default LDADD value to
31764         test_pty_LDADD.
31765
31766 2009-12-07  Simon Josefsson  <simon@josefsson.org>
31767
31768         * modules/pty: New file.
31769         * modules/pty-tests: New file.
31770         * m4/pty.m4: New file.
31771         * tests/test-pty.c: New file.
31772         * doc/glibc-headers/pty.texi: Modified.
31773         * doc/glibc-functions/forkpty.texi: Modified.
31774         * doc/glibc-functions/openpty.texi: Modified.
31775
31776 2009-12-10  Bruno Haible  <bruno@clisp.org>
31777
31778         Avoid syntax error in C++ mode.
31779         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
31780
31781 2009-12-10  Bruno Haible  <bruno@clisp.org>
31782
31783         Use sed with option -e.
31784         * gnulib-tool (func_version, func_emit_copyright_notice,
31785         func_emit_initmacro_end, func_import, func_create_testdir): Pass
31786         option -e to sed.
31787         * modules/link-warning (Makefile.am): Likewise.
31788
31789 2009-12-10  Jim Meyering  <meyering@redhat.com>
31790
31791         mgetgroups: do not write bytes beyond end of malloc'd buffer
31792         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
31793         username, we call getgroups with a one-element-shorter buffer,
31794         but still told it the length was original, max_n_groups.
31795
31796 2009-12-09  Eric Blake  <ebb9@byu.net>
31797
31798         cloexec: relax license
31799         * modules/cloexec (Maintainer): Add myself.
31800         (License): Use LGPL, not GPL.
31801
31802         link-warning: optimize generation
31803         * modules/link-warning (Makefile.am): Reduce process usage.
31804
31805 2009-12-09  Bruno Haible  <bruno@clisp.org>
31806
31807         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
31808         workaround was added on 2009-11-17.
31809
31810 2009-12-09  Jim Meyering  <meyering@redhat.com>
31811             Bruno Haible  <bruno@clisp.org>
31812
31813         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
31814         * modules/link-warning (Makefile.am): Make the comment-removing sed
31815         command more robust in the face of bootstrap-prepended comment lines.
31816
31817 2009-12-09  Bruno Haible  <bruno@clisp.org>
31818
31819         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
31820         most one group.
31821
31822 2009-12-09  Simon Josefsson <simon@josefsson.org>
31823             Bruno Haible  <bruno@clisp.org>
31824
31825         * build-aux/link-warning.h: Add copyright notice.
31826         * modules/link-warning (Makefile.am): Generate link-warning.h from
31827         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
31828         * NEWS: Mention change in link-warning module.
31829         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
31830         * modules/dirent (Makefile.am): Add dependency to dirent.h.
31831         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
31832         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
31833         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
31834         * modules/math (Makefile.am): Add dependency to math.h.
31835         * modules/search (Makefile.am): Add dependency to search.h.
31836         * modules/signal (Makefile.am): Add dependency to signal.h.
31837         * modules/spawn (Makefile.am): Add dependency to spawn.h.
31838         * modules/stdio (Makefile.am): Add dependency to stdio.h.
31839         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
31840         * modules/string (Makefile.am): Add dependency to string.h.
31841         * modules/strings (Makefile.am): Add dependency to strings.h.
31842         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
31843         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
31844         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
31845         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
31846         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
31847         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
31848         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
31849         * modules/unistd (Makefile.am): Add dependency to unistd.h.
31850         * modules/wchar (Makefile.am): Add dependency to wchar.h.
31851
31852 2009-12-09  Bruno Haible  <bruno@clisp.org>
31853
31854         fchdir: Optimize away rpl_fstat when possible.
31855         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
31856         REPLACE_OPEN_DIRECTORY.
31857         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
31858
31859 2009-12-09  Bruno Haible  <bruno@clisp.org>
31860
31861         * lib/fchdir.c: Update comment.
31862
31863 2009-12-09  Bruno Haible  <bruno@clisp.org>
31864
31865         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
31866
31867 2009-12-08  Eric Blake  <ebb9@byu.net>
31868
31869         fchdir: avoid memory leak on re-registration.
31870         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
31871
31872 2009-12-08  Jim Meyering  <meyering@redhat.com>
31873
31874         init.sh: avoid Solaris 10 /bin/sh portability problem
31875         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
31876         sourced script:
31877           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
31878           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
31879           bar
31880         tests/init.sh relied on that, accepting a --set-path=DIR argument,
31881         and two tests used that idiom.
31882         * tests/init.sh: Update suggested usage comments.
31883         (path_prepend_): New function, to be used in place
31884         of the --src-path=DIR option.
31885         (setup_): Move PATH-prepending code into path_prepend_.
31886         * tests/test-pread.sh: Adapt to new usage.
31887         * tests/test-xalloc-die.sh: Likewise.
31888
31889 2009-12-08  Simon Josefsson  <simon@josefsson.org>
31890
31891         * doc/gnulib.texi (Glibc pty.h): Add.
31892         * doc/glibc-functions/forkpty.texi: Add.
31893         * doc/glibc-functions/openpty.texi: Add.
31894         Suggested by Bruno Haible.
31895
31896 2009-12-08  Eric Blake  <ebb9@byu.net>
31897
31898         fchdir: fix logic bugs
31899         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
31900         * tests/test-fchdir.c (main): Enhance test.
31901         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
31902         is in use.
31903
31904         dup2: fix logic bugs
31905         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
31906         REPLACE_DUP2 to decide when rpl_dup2 is needed.
31907         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
31908         exists.
31909         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
31910
31911 2009-12-07  Eric Blake  <ebb9@byu.net>
31912
31913         unlink: fix m4 detection
31914         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
31915
31916         unistd-safer: add unit test
31917         * modules/unistd-safer-tests: New file.
31918         * tests/test-dup-safer.c: Likewise.
31919         * tests/test-cloexec.c (setmode): Avoid compiler warning.
31920         * tests/test-dup2.c (setmode): Likewise.
31921         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
31922
31923         cloexec: preserve text vs. binary across dup_cloexec
31924         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
31925         mode.
31926         * modules/dup2-tests (Depends-on): Add binary-io.
31927         * modules/cloexec-tests (Depends-on): Likewise.
31928         * tests/test-dup2.c (setmode, is_mode): New helpers.
31929         (main): Add tests that translation mode is preserved.
31930         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
31931         Reported by Bruno Haible.
31932
31933         mgetgroups: reduce duplicate listings
31934         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
31935         resulting array.
31936         * tests/test-chown.h (test_chown): Simplify client.
31937         * tests/test-lchown.h (test_lchown): Likewise.
31938
31939 2009-12-06  Bruno Haible  <bruno@clisp.org>
31940
31941         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
31942         value.
31943
31944 2009-12-06  Bruno Haible  <bruno@clisp.org>
31945
31946         * lib/progname.c: Include stdio.h, stdlib.h.
31947         (set_program_name): Reject a NULL argument.
31948
31949 2009-12-05  Eric Blake  <ebb9@byu.net>
31950
31951         pipe2-safer: new module
31952         * modules/pipe2-safer: New file.
31953         * lib/unistd-safer.h (pipe2_safer): New prototype.
31954         * lib/unistd--.h (pipe2): New wrapper.
31955         * lib/pipe-safer.c (pipe2_safer): New function.
31956         * modules/pipe (Depends-on): Add pipe2-safer.
31957         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
31958
31959         stdlib-safer: preserve cloexec flag for mkostemp[s]
31960         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
31961         fd_safer_flag.
31962
31963         unistd-safer: allow preservation of cloexec status via flag
31964         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
31965         prototypes.
31966         * lib/dup-safer.c (dup_safer_flag): New function.
31967         * lib/fd-safer.c (fd_safer_flag): Likewise.
31968         * modules/cloexec (configure.ac): Set witness.
31969
31970         test-dup2: enhance test
31971         * modules/dup2-tests (Depends-on): Add cloexec.
31972         * tests/test-dup2.c (main): Enhance test.
31973
31974         cloexec: add dup_cloexec
31975         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
31976         header and comments.
31977         * lib/cloexec.c (set_cloexec_flag): Add comments.
31978         (dup_cloexec): New function, with mingw implementation borrowed
31979         from...
31980         * lib/w32spawn.h (dup_noinherit): ...here.
31981         * modules/execute (Depends-on): Add cloexec.
31982         * modules/pipe (Depends-on): Likewise.
31983         * modules/cloexec (Depends-on): Add dup2.
31984         * modules/cloexec-tests (Files): New file.
31985         * tests/test-cloexec.c: Likewise.
31986
31987         test-xalloc-die: fix test for mingw
31988         * modules/xalloc-die-tests (Files): Add tests/init.sh.
31989         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
31990         directory and .exe suffix off argv[0] output.
31991
31992         test-fseeko: fix test for mingw
31993         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
31994         than undefining fseek, so test will pass on mingw.
31995
31996 2009-12-05  Bruno Haible  <bruno@clisp.org>
31997
31998         * lib/progname.h (set_program_name): Clarify specification.
31999         * lib/progname.c (set_program_name): Likewise.
32000         Reported by Jim Meyering.
32001
32002 2009-12-05  Jim Meyering  <meyering@redhat.com>
32003
32004         maint.mk: backslash-escape parens in default regexp
32005         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
32006         backslash-escape the literal parentheses.
32007
32008         maint.mk: news-date-check: use grep -E
32009         * top/maint.mk (today): Define a Make variable, not a...
32010         (news-date-check): ...shell variable.
32011         (news-date-regexp): Use the Make variable.
32012         Use grep's -E option.  Change the failing diagnostic to mention
32013         the variable, $(news-date-regexp).
32014
32015 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
32016
32017         maintainer-makefile: allow customization of NEWS entry format
32018         * top/maint.mk (news-date-regexp): New overridable variable.
32019         (news-date-check): Use it.
32020
32021 2009-12-04  Eric Blake  <ebb9@byu.net>
32022
32023         mgetgroups: add xgetgroups, and avoid ENOSYS failures
32024         * lib/mgetgroups.h (xgetgroups): New prototype.
32025         * lib/mgetgroups.c (xgetgroups): New wrapper.
32026         (mgetgroups): Handle ENOSYS.
32027         * modules/mgetgroups (Depends-on): Add realloc.
32028         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
32029
32030         mgetgroups: avoid argument promotion issues with -1
32031         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
32032         for invalid gid_t.
32033         * tests/test-chown.h (getegid, test_chown): Likewise.
32034         * tests/test-lchown.h (getegid, test_lchown): Likewise.
32035
32036 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
32037
32038         exclude: Fix header file problems.
32039         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
32040
32041 2009-12-01  Jim Meyering  <meyering@redhat.com>
32042
32043         fts: fts_open: do not let an empty string cause immediate failure
32044         This is required in support of GNU rm, for which the command
32045         "rm A '' B" must process and remove both A and B, in spite of
32046         the empty string argument.
32047         * lib/fts.c (fts_open): Do not let the presence of an empty string
32048         cause fts_open to fail immediately.  Most fts-using tools must be
32049         able to process all arguments, in order, and can be expected to
32050         diagnose such arguments themselves.
32051
32052 2009-11-30  Eric Blake  <ebb9@byu.net>
32053
32054         utimens: fix compilation error
32055         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
32056         Declare variable at right scope.
32057
32058 2009-11-29  Jim Meyering  <meyering@redhat.com>
32059
32060         bootstrap: handle perl-5.11's changed --version output
32061         * build-aux/bootstrap (get_version): Handle perl separately,
32062         since perl-5.11's --version output is different.
32063
32064 2009-11-28  Jim Meyering  <meyering@redhat.com>
32065
32066         userspec: depend on the inttostr module, too
32067         * modules/userspec (Depends-on): Add inttostr.
32068
32069         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
32070         * lib/userspec.c (parse_with_separator): Do not accept a user ID
32071         number of MAXUID when it evaluates to (uid_t) -1.
32072         Likewise for group ID.  Reported by Matt McCutchen in
32073         <http://savannah.gnu.org/bugs/?28113>
32074
32075         userspec: reformat to use spaces, not TABs
32076         * lib/userspec.c: Expand TABs to spaces.
32077         Add Emacs' "indent-tabs-mode: nil" hint.
32078
32079 2009-11-27  Eric Blake  <ebb9@byu.net>
32080
32081         getopt-gnu: flush out another BSD bug
32082         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
32083         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
32084         flush out BSD bug.
32085         * tests/test-getopt.h (test_getopt): End lists with NULL.
32086         * tests/test-getopt_long.h (test_getopt_long): Likewise.
32087         (test_getopt_long_posix): Enhance test.
32088         * modules/getopt-posix-tests (Depends-on): Add stdbool.
32089         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
32090         getopt-gnu.
32091         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
32092         Likewise.
32093
32094 2009-11-27  Simon Josefsson  <simon@josefsson.org>
32095
32096         * modules/idpriv-droptemp-tests (Notice): Fix text.
32097
32098 2009-11-27  Jim Meyering  <meyering@redhat.com>
32099
32100         test-xalloc-die: avoid spurious failure due to libtool argv difference
32101         In a libtool-enabled project, this test would fail due to a difference
32102         in the emitted program name, e.g.,
32103         -test-xalloc-die: memory exhausted
32104         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
32105         Use program to avoid that.
32106         * modules/xalloc-die-tests (Depends-on): Add progname.
32107         * tests/test-xalloc-die.c: Include progname.h".
32108         (program_name): Remove decl.
32109         (main): Call set_program_name.
32110         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
32111
32112 2009-11-26  Richard Jones  <rjones@redhat.com>
32113
32114         w32sock: leave win32 error in place.
32115         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
32116
32117 2009-11-26  Eric Blake  <ebb9@byu.net>
32118
32119         init.sh: suggest to use skip_ and fail_ functions in comments
32120         * tests/init.sh: Add a sentence.
32121
32122 2009-11-25  Bruno Haible  <bruno@clisp.org>
32123
32124         init.sh: add documentation in comments
32125         * tests/init.sh: Add some developer and user documentation.
32126
32127 2009-11-26  Jim Meyering  <meyering@redhat.com>
32128
32129         init.sh: accommodate even those who specify bogus srcdir manually
32130         * tests/init.sh: Normally, srcdir is guaranteed by automake and
32131         configure-time tests to be sanitized, so that there is no need to
32132         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
32133         (with no double quotes) suffices.  However, since tests may be
32134         invoked manually, and since you may explicitly set srcdir to the
32135         name of a directory containing spaces, do quote its uses here.
32136         * tests/test-pread.sh: Likewise.
32137         Suggested by Bruno Haible.
32138
32139         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
32140         * tests/test-pread.sh: Write no data into the pipe, because
32141         test-pread actually reads none.  This avoids a diagnostic,
32142         "bash: echo: write error: Broken pipe", that arises in the unusual
32143         event something is ignoring SIGPIPE, and might be interpreted
32144         as some sort of failure.  Reported by Bruno Haible.
32145
32146 2009-11-25  Jim Meyering  <meyering@redhat.com>
32147
32148         test-pread: cover failure with ESPIPE and EINVAL
32149         * tests/test-pread.c (main): Test for failure, too.
32150         * tests/test-pread.sh: Invoke with stdin on a pipe.
32151         Suggested by Eric Blake.
32152
32153         pread: improvement and fix
32154         * modules/pread (Depends-on): Depend on lseek, for portability to
32155         e.g., mingw.  Suggested by Eric Blake.
32156         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
32157
32158         unistd.in.h: correct declaration of pread
32159         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
32160         Reported by Richard W.M. Jones.
32161
32162         test-pread.sh: distribute the test script
32163         * modules/pread-tests (Files): Include test-pread.sh.
32164
32165         test-pread.sh: clean up
32166         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
32167         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
32168         That is unnecessary, since it's always ".".
32169         Suggestion from Eric Blake.
32170
32171         test-pread.sh: make executable
32172         * tests/test-pread.sh: Set executable bit.
32173         Reported by Eric Blake.
32174
32175         correct typo in test-pread.sh
32176         * tests/test-pread.sh: Add #! line.
32177
32178         test pread
32179         * tests/test-pread.c: New file.
32180         * tests/test-pread.sh: Likewise.
32181         * modules/pread-tests: Likewise.
32182
32183         pread: new module
32184         * modules/pread: New file.
32185         * lib/unistd.in.h (pread): Define/declare.
32186         * lib/pread.c (pread): New file.
32187         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
32188         * modules/unistd (Makefile.am): Substitute witnesses.
32189         * doc/posix-functions/pread.texi (pread): Update.
32190         * MODULES.html.sh: Add pread.
32191
32192 2009-11-25  Jim Meyering  <meyering@redhat.com>
32193
32194         tests/init.sh: new file to be used via most *.sh tests
32195         * tests/init.sh: New file.
32196
32197 2009-11-25  Eric Blake  <ebb9@byu.net>
32198
32199         utimens: work around older Linux failure with symlinks
32200         * lib/utimens.c (lutimensat_works_really): New variable.
32201         (fdutimens, lutimens): Use it to manage kernels that support
32202         nanosecond times on files, but not on symlinks.
32203         Reported by Ondřej Vašík.
32204
32205         utimes: fix configure grammar
32206         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
32207
32208 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
32209
32210         regex: Fix fastmap for multibyte character ranges.
32211         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
32212         characters when a multibyte character range is included.
32213
32214 2009-11-22  Andy Wingo  <wingo@pobox.com>
32215
32216         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
32217         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
32218
32219 2009-11-24  Bruno Haible  <bruno@clisp.org>
32220
32221         doc: Most *_l functions exist in MacOS X 10.5.
32222         * doc/posix-functions/duplocale.texi: Update platforms list.
32223         * doc/posix-functions/freelocale.texi: Likewise.
32224         * doc/posix-functions/newlocale.texi: Likewise.
32225         * doc/posix-functions/uselocale.texi: Likewise.
32226         * doc/posix-functions/isalnum_l.texi: Likewise.
32227         * doc/posix-functions/isalpha_l.texi: Likewise.
32228         * doc/posix-functions/isblank_l.texi: Likewise.
32229         * doc/posix-functions/iscntrl_l.texi: Likewise.
32230         * doc/posix-functions/isdigit_l.texi: Likewise.
32231         * doc/posix-functions/isgraph_l.texi: Likewise.
32232         * doc/posix-functions/islower_l.texi: Likewise.
32233         * doc/posix-functions/isprint_l.texi: Likewise.
32234         * doc/posix-functions/ispunct_l.texi: Likewise.
32235         * doc/posix-functions/isspace_l.texi: Likewise.
32236         * doc/posix-functions/isupper_l.texi: Likewise.
32237         * doc/posix-functions/iswalnum_l.texi: Likewise.
32238         * doc/posix-functions/iswalpha_l.texi: Likewise.
32239         * doc/posix-functions/iswblank_l.texi: Likewise.
32240         * doc/posix-functions/iswcntrl_l.texi: Likewise.
32241         * doc/posix-functions/iswctype_l.texi: Likewise.
32242         * doc/posix-functions/iswdigit_l.texi: Likewise.
32243         * doc/posix-functions/iswgraph_l.texi: Likewise.
32244         * doc/posix-functions/iswlower_l.texi: Likewise.
32245         * doc/posix-functions/iswprint_l.texi: Likewise.
32246         * doc/posix-functions/iswpunct_l.texi: Likewise.
32247         * doc/posix-functions/iswspace_l.texi: Likewise.
32248         * doc/posix-functions/iswupper_l.texi: Likewise.
32249         * doc/posix-functions/iswxdigit_l.texi: Likewise.
32250         * doc/posix-functions/isxdigit_l.texi: Likewise.
32251         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
32252         * doc/posix-functions/strcasecmp_l.texi: Likewise.
32253         * doc/posix-functions/strcoll_l.texi: Likewise.
32254         * doc/posix-functions/strfmon_l.texi: Likewise.
32255         * doc/posix-functions/strftime_l.texi: Likewise.
32256         * doc/posix-functions/strncasecmp_l.texi: Likewise.
32257         * doc/posix-functions/strxfrm_l.texi: Likewise.
32258         * doc/posix-functions/tolower_l.texi: Likewise.
32259         * doc/posix-functions/toupper_l.texi: Likewise.
32260         * doc/posix-functions/towctrans_l.texi: Likewise.
32261         * doc/posix-functions/towlower_l.texi: Likewise.
32262         * doc/posix-functions/towupper_l.texi: Likewise.
32263         * doc/posix-functions/wcscoll_l.texi: Likewise.
32264         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
32265         * doc/posix-functions/wctrans_l.texi: Likewise.
32266         * doc/posix-functions/wctype_l.texi: Likewise.
32267         * doc/glibc-functions/strptime_l.texi: Likewise.
32268         * doc/glibc-functions/strtod_l.texi: Likewise.
32269         * doc/glibc-functions/strtof_l.texi: Likewise.
32270         * doc/glibc-functions/strtol_l.texi: Likewise.
32271         * doc/glibc-functions/strtold_l.texi: Likewise.
32272         * doc/glibc-functions/strtoll_l.texi: Likewise.
32273         * doc/glibc-functions/strtoul_l.texi: Likewise.
32274         * doc/glibc-functions/strtoull_l.texi: Likewise.
32275         * doc/glibc-functions/wcsftime_l.texi: Likewise.
32276         * doc/glibc-functions/wcstod_l.texi: Likewise.
32277         * doc/glibc-functions/wcstof_l.texi: Likewise.
32278         * doc/glibc-functions/wcstol_l.texi: Likewise.
32279         * doc/glibc-functions/wcstold_l.texi: Likewise.
32280         * doc/glibc-functions/wcstoll_l.texi: Likewise.
32281         * doc/glibc-functions/wcstoul_l.texi: Likewise.
32282         * doc/glibc-functions/wcstoull_l.texi: Likewise.
32283
32284 2009-11-24  Bruno Haible  <bruno@clisp.org>
32285
32286         duplocale: Fix logic bug.
32287         * lib/duplocale.c: Don't include <langinfo.h>.
32288         (_NL_LOCALE_NAME): Remove macro.
32289         (rpl_duplocale): Use setlocale instead of nl_langinfo.
32290         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
32291
32292 2009-11-23  Jim Meyering  <meyering@redhat.com>
32293
32294         test-update-copyright: don't hard-code /usr/bin/perl
32295         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
32296         perl to print the current year.  Gilles Espinasse reported that
32297         the replaced use of perl was hard-coded as /usr/bin/perl.
32298
32299 2009-11-23  Bruno Haible  <bruno@clisp.org>
32300
32301         duplocale: Add support for glibc 2.3.x.
32302         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
32303
32304 2009-11-22  Bruno Haible  <bruno@clisp.org>
32305
32306         vasnprintf: Tiny optimization.
32307         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
32308         MacOS X.
32309
32310 2009-11-22  Bruno Haible  <bruno@clisp.org>
32311
32312         Tests for module 'duplocale'.
32313         * modules/duplocale-tests: New file.
32314         * tests/test-duplocale.c: New file.
32315
32316         New module 'duplocale'.
32317         * m4/duplocale.m4: New file.
32318         * lib/locale.in.h (duplocale): New declaration.
32319         * lib/duplocale.c: New file.
32320         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
32321         gl_LOCALE_H_DEFAULTS): New macros.
32322         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
32323         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
32324         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
32325         REPLACE_DUPLOCALE.
32326         * modules/duplocale: New file.
32327         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
32328
32329 2009-11-22  Bruno Haible  <bruno@clisp.org>
32330
32331         * modules/locale-tests (configure.ac): Test for newlocale function.
32332         * tests/test-locale.c: When the system has extended locale functions,
32333         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
32334
32335         locale: Make locale_t available when possible.
32336         * lib/locale.in.h: Include <xlocale.h> when it exists.
32337         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
32338         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
32339         * modules/locale (Depends-on): Add extensions.
32340         (Makefile.am): Also substitute HAVE_XLOCALE_H.
32341         * doc/posix-headers/locale.texi: Document the problem with locale_t.
32342
32343 2009-11-22  Bruno Haible  <bruno@clisp.org>
32344
32345         Add comments.
32346         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
32347         invocation.
32348         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
32349         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
32350         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
32351
32352 2009-11-22  Bruno Haible  <bruno@clisp.org>
32353
32354         error: account for the possibility of freopen (stdout).
32355         * lib/error.c: Include <unistd.h>.
32356         (flush_stdout): New function, extracted from error and error_at_line.
32357         Determine stdout's fd dynamically.
32358         (error, error_at_line): Invoke flush_stdout.
32359         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
32360         * modules/error (Depends-on): Add unistd.
32361
32362 2009-11-22  Bruno Haible  <bruno@clisp.org>
32363
32364         diffseq: Add comment.
32365         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
32366
32367 2009-11-22  Jim Meyering  <meyering@redhat.com>
32368
32369         c-stack: avoid defining an unused static function
32370         * lib/c-stack.c (find_stack_direction): Do not define this function
32371         when it will not be used.
32372
32373         diffseq: avoid spurious gcc warnings
32374         * lib/diffseq.h (IF_LINT2): Define.
32375         (compareseq): Use it to initialize two members of "part".
32376         This avoids two used-uninitialized warnings.
32377
32378 2009-11-21  Jim Meyering  <meyering@redhat.com>
32379
32380         c-stack: avoid "ignoring return value of `write'" warning
32381         * lib/c-stack.c: Include "ignore-value.h".
32382         (die): Explicitly ignore each write return value.
32383         * modules/c-stack (Depends-on): Add ignore-value.
32384
32385 2009-11-21  Bruno Haible  <bruno@clisp.org>
32386
32387         diffseq: reduce scope of variable 'best'.
32388         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
32389         variable, earlier used for two different purposes.
32390
32391 2009-11-21  Jim Meyering  <meyering@redhat.com>
32392
32393         diffseq: remove useless assignment to "best"
32394         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
32395         assignment.  At that point "best" is already guaranteed to be zero.
32396
32397 2009-11-20  Eric Blake  <ebb9@byu.net>
32398
32399         build: mention ftp redirector in release announcements
32400         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
32401         values that used to come from cfg.mk; mention FTP redirect URL.
32402         * build-aux/announce-gen: Mention the mirror list.
32403         Suggested by Karl Berry.
32404
32405         nanosleep: improve port to mingw
32406         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
32407         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
32408         LIB_NANOSLEEP, but only when needed.
32409         * modules/select (Link): Document LIBSOCKET.
32410         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
32411         enough.
32412
32413         nanosleep: work around cygwin bug
32414         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
32415         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
32416         bug.
32417         (getnow): Delete, not needed.
32418         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
32419         LIB_CLOCK_GETTIME.
32420         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
32421         clock-time, gettime.
32422         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
32423         bug.
32424         * modules/nanosleep-tests: New test.
32425         * tests/test-nanosleep.c: New file.
32426
32427         sleep: work around cygwin bug
32428         * lib/sleep.c (rpl_sleep): Work around the bug.
32429         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
32430         (gl_PREREQ_SLEEP): Delete unused macro.
32431         * modules/sleep (Depends-on): Add verify.
32432         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
32433         * modules/unistd (Makefile.am): Substitute witness.
32434         * lib/unistd.in.h (sleep): Update prototype.
32435         * doc/posix-functions/sleep.texi (sleep): Document the bug.
32436         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
32437         * modules/sleep-tests (Depends-on): Check for alarm.
32438
32439 2009-11-20  Jim Meyering  <meyering@redhat.com>
32440
32441         maint.mk: improve sc_prohibit_magic_number_exit
32442         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
32443         so it does not match uses like System.exit(1).
32444         Add comments showing how to correct all offenders.
32445
32446 2009-11-19  Eric Blake  <ebb9@byu.net>
32447
32448         xalloc-die-tests: add missing library
32449         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
32450
32451         test-xvasprintf: silence compiler warnings
32452         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
32453         empty string from gcc.
32454
32455 2009-11-19  Jim Meyering  <meyering@redhat.com>
32456
32457         xfreopen: new module, from coreutils
32458         * modules/xfreopen: New module.
32459         * lib/xfreopen.c: New file.
32460         * lib/xfreopen.h: New file.
32461         * MODULES.html.sh (File stream based Input/Output"): Add it.
32462
32463 2009-11-19  Eric Blake  <ebb9@byu.net>
32464
32465         manywarnings: depend on warnings
32466         * modules/manywarnings (Depends-on): Add warnings.
32467
32468         build: avoid compiler warnings
32469         * lib/select.c (rpl_select): Delete unused variable.
32470         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
32471
32472 2009-11-18  Eric Blake  <ebb9@byu.net>
32473
32474         tests: avoid false negative with --with-packager
32475         * tests/test-version-etc.sh: Discard packager information.
32476         * tests/test-argp-version-etc-1.sh: Likewise.
32477         Reported by Mike Frysinger.
32478
32479         utimens: fix regression on Solaris
32480         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
32481         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
32482         can only change fd timestamps via futimesat.  Instead, use an
32483         additional witness macro to avoid BSD bug.
32484         Reported by Jim Meyering.
32485
32486 2009-11-17  Eric Blake  <ebb9@byu.net>
32487
32488         usleep: use it to simplify tests
32489         * modules/stat-time-tests (Depends-on): Add usleep.
32490         (configure.ac): Drop usleep check.
32491         * modules/chown-tests (Depends-on, configure.ac): Likewise.
32492         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
32493         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
32494         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
32495         * modules/openat-tests (Depends-on, configure.ac): Likewise.
32496         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
32497         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
32498         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
32499         Likewise.
32500         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
32501         * tests/test-lchown.h (nap): Likewise.
32502         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
32503         * tests/test-stat-time.c (nap): Likewise.
32504         * tests/test-utimens-common.h (nap): Update comments.
32505
32506         usleep: new module
32507         * modules/usleep: New file.
32508         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
32509         * lib/usleep.c (usleep): Likewise.
32510         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
32511         * modules/unistd (Makefile.am): Substitute witnesses.
32512         * lib/unistd.in.h (usleep): Add declaration.
32513         * doc/pastposix-functions/usleep.texi (usleep): Document this.
32514         * MODULES.html.sh (Date and time): Likewise.
32515         * modules/usleep-tests (Depends-on): New test.
32516         * tests/test-usleep.c: New file.
32517
32518         chown: work around OpenBSD bug
32519         * lib/chown.c (rpl_chown): Work around the bug.
32520         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
32521         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
32522         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
32523         * modules/chown (Depends-on): Add stdbool.
32524         * modules/lchown (Depends-on): Likewise.
32525         * doc/posix-functions/chown.texi (chown): Document the bug.
32526         * doc/posix-functions/lchown.texi (lchown): Likewise.
32527         * tests/test-lchown.h (test_chown): Relax test.
32528
32529         mkstemp: avoid conflict with C++ keyword template
32530         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
32531         * lib/mkostemp.c (mkostemp): Likewise.
32532         * lib/mkostemps.c (mkostemps): Likewise.
32533         * lib/mkstemp.c (mkstemp): Likewise.
32534         * lib/mkstemps.c (mkstemps): Likewise.
32535
32536         xalloc-die-tests: optimize
32537         * tests/test-xalloc-die.sh: Reduce number of processes.
32538
32539 2009-11-17  Simon Josefsson  <simon@josefsson.org>
32540
32541         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
32542         patch from ludo@gnu.org (Ludovic Courtès).
32543
32544 2009-11-17  Jim Meyering  <meyering@redhat.com>
32545
32546         version-etc: use proper license string
32547         * modules/version-etc (License): Use LGPL, not LGPLv3+.
32548         * modules/version-etc-fsf: Likewise.
32549
32550 2009-11-17  Simon Josefsson  <simon@josefsson.org>
32551
32552         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
32553         printed to stdout.  Deal with EOL differences.
32554
32555 2009-11-17  Eric Blake  <ebb9@byu.net>
32556
32557         unsetenv: work around Solaris bug
32558         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
32559         * lib/unsetenv.c (rpl_unsetenv): Work around it.
32560         Reported by Jim Meyering.
32561
32562         vasnprintf: avoid compiler warnings
32563         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
32564         variables.
32565         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
32566
32567 2009-11-17  Simon Josefsson  <simon@josefsson.org>
32568
32569         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
32570         settings since xalloc-die is no longer the self test,
32571         xalloc-die.sh is.
32572
32573 2009-11-17  Jim Meyering  <meyering@redhat.com>
32574
32575         test-xalloc-die.sh: make the code agree with the commit log
32576         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
32577         at the end, just in case you happen to have a test-xalloc-die
32578         program in some other PATH directory.
32579
32580         test-xalloc-die.sh: fix a portability bug
32581         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
32582         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
32583         Otherwise, argv[0] (as often seen in diagnostics) would be too
32584         system-dependent, sometimes with, and sometimes without the leading "./".
32585
32586         version-etc-fsf: relax license to LGPLv3+
32587         * modules/version-etc-fsf (License): Relax license.
32588
32589 2009-11-16  Eric Blake  <ebb9@byu.net>
32590
32591         xalloc-die-tests: avoid printing null pointer
32592         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
32593         shell script.
32594         * tests/test-xalloc-die.c (program_name): Declare.
32595         * tests/test-xalloc-die.sh (tmpfiles): New file.
32596
32597         setenv, unsetenv: work around various bugs
32598         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
32599         (setenv) [HAVE_SETENV]: Work around bugs.
32600         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
32601         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
32602         for bugs.
32603         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
32604         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
32605         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
32606         * modules/stdlib (Makefile.am): Update substitutions.
32607         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
32608         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
32609         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
32610         * modules/setenv-tests: New test.
32611         * modules/unsetenv-tests: Likewise.
32612         * tests/test-setenv.c: New file.
32613         * tests/test-unsetenv.c: Likewise.
32614
32615 2009-11-16  Jim Meyering  <meyering@redhat.com>
32616
32617         version-etc: relax license to LGPLv3+
32618         * modules/version-etc (License): Relax license.
32619
32620         better AC_REQUIRE expanded-before-required-warning avoidance
32621         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
32622         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
32623         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
32624         which is no longer needed.
32625
32626 2009-11-16  Eric Blake  <ebb9@byu.net>
32627
32628         test-freading: clean up temporary file
32629         * tests/test-freading.c (main): Remove file on success, and use
32630         ASSERT more liberally.
32631         Reported by Jim Meyering.
32632
32633 2009-11-16  Jim Meyering  <meyering@redhat.com>
32634
32635         avoid new AC_REQUIRE expanded-before-required warnings
32636         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
32637         merely using it.
32638         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
32639         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
32640
32641 2009-11-15  Simon Josefsson  <simon@josefsson.org>
32642
32643         * tests/test-xalloc-die.c: New file.
32644         * modules/xalloc-die-tests: New file.
32645         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
32646         XFAIL_TESTS so it can be appended by modules.
32647
32648 2009-11-15  Simon Josefsson  <simon@josefsson.org>
32649
32650         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
32651         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
32652
32653 2009-11-14  Eric Blake  <ebb9@byu.net>
32654
32655         fnmatch: avoid compiler warning
32656         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
32657         to silence compiler warning about mismatch signedness in ?:.
32658         Reported by Robert Millan.
32659
32660         intprops: add double-inclusion guard
32661         * lib/intprops.h: Allow idempotent includes.
32662         Suggested by Bruce Korb.
32663
32664         openat: detect Solaris fchownat bug
32665         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
32666         penalizing glibc chownat when only lchownat is broken.
32667         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
32668         trailing slash bugs.
32669         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
32670         * modules/openat-tests (Files): Include more files.
32671         (Depends-on): Add mgetgroups, sleep, stat-time.
32672         (configure.ac): Add additional checks.
32673         (Makefile.am): Build new test.
32674         * tests/test-fchownat.c: New file.
32675
32676         lchown: detect Solaris and FreeBSD bug
32677         * lib/lchown.c (rpl_lchown): Work around bug.
32678         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
32679         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
32680         * modules/unistd (Makefile.am): Populate it.
32681         * lib/unistd.in.h (lchown): Update declaration.
32682         * doc/posix-functions/lchown.texi (lchown): Document the bug.
32683         * modules/lchown-tests: New file.
32684         * tests/test-lchown.h (test_lchown): Likewise.
32685         * tests/test-lchown.c (main): Likewise.
32686
32687         chown: detect Solaris and FreeBSD bug
32688         * lib/chown.c (rpl_chown): Work around bug.
32689         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
32690         (gl_PREREQ_CHOWN): Delete.
32691         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
32692         * modules/unistd (Makefile.am): Populate it.
32693         * lib/unistd.in.h (chown): Update declaration.
32694         * lib/lchown.c (chown): Update client.
32695         * modules/lchown (Depends-on): Add lstat.
32696         * doc/posix-functions/chown.texi (chown): Document the bug.
32697         * doc/posix-functions/getgroups.texi (getgroups): Document
32698         getgroups pitfall.
32699         * modules/chown-tests: New file.
32700         * tests/test-chown.h (test_chown): Likewise.
32701         * tests/test-chown.c (main): Likewise.
32702
32703 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
32704
32705         gnulib-tool: correctly detect absence of m4 directories
32706         * gnulib-tool: Avoid extra newline on data passed to wc -l.
32707
32708 2009-11-14  Jim Meyering  <meyering@redhat.com>
32709
32710         maint.mk: Prohibit inclusion of "xalloc.h" without use.
32711         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
32712
32713 2009-11-14  John W. Eaton  <jwe@gnu.org>
32714
32715         strftime.h: wrap funtion declaration in extern "C" block
32716         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
32717
32718 2009-11-13  Eric Blake  <ebb9@byu.net>
32719
32720         getgroups: avoid compiler warning
32721         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
32722
32723         getgroups: work around FreeBSD bug
32724         * lib/getgroups.c (rpl_getgroups): Work around the bug.
32725         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
32726         * doc/posix-functions/getgroups.texi (getgroups): Document it.
32727         * tests/test-getgroups.c (main): Fix buffer overrun.
32728
32729         getgroups: avoid compilation failure
32730         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
32731         * modules/getgroups (Depends-on): Add stdint.
32732
32733 2009-11-13  Jim Meyering  <meyering@redhat.com>
32734
32735         test-getgroups: avoid compilation failure
32736         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
32737
32738 2009-11-13  Eric Blake  <ebb9@byu.net>
32739
32740         mgetgroups: new module, taken from coreutils
32741         * modules/mgetgroups: New file.
32742         * lib/mgetgroups.h: Likewise.
32743         * lib/mgetgroups.c (mgetgroups): Likewise.
32744         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
32745         * MODULES.html.sh (Users and groups): Mention it.
32746
32747         getgroups: don't expose GETGROUPS_T to user
32748         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
32749         an element at a time if GETGROUPS_T is wrong size.
32750         * lib/getugroups.h (getugroups): Change signature.
32751         * lib/unistd.in.h (getgroups): Likewise.
32752         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
32753         signature needs fixing.
32754         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
32755         AC_TYPE_GETGROUPS.
32756         * modules/group-member (Depends-on): Add getgroups.
32757         * lib/group-member.c (group_info, get_group_info): Use gid_t.
32758         (group_member): Rely on getgroups replacement.
32759         * lib/getugroups.c (getugroups): Use gid_t.
32760         * tests/test-getgroups.c (main): Likewise.
32761         * NEWS: Mention the signature change.
32762         * doc/posix-functions/getgroups.texi (getgroups): Mention the
32763         problem with signature.
32764         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
32765         GETGROUPS_T is still useful for setgroups.
32766
32767         getgroups, getugroups: provide stubs for mingw
32768         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
32769         * lib/getugroups.c (getugroups): Likewise.
32770         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
32771         function.  Modernize replacement scheme.
32772         (gl_PREREQ_GETGROUPS): Delete.
32773         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
32774         * modules/getgroups (configure.ac): Declare witness.
32775         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
32776         * modules/unistd (Depends-on): Substitute witness.
32777         * lib/unistd.in.h (getgroups): Declare replacement.
32778
32779         getgroups: avoid calling exit
32780         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
32781         drop xalloc.
32782         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
32783         dependencies.
32784         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
32785         exiting, in the rare case of malloc failure.
32786
32787         getgroups: fix logic error
32788         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
32789         has more than 20 groups.
32790         * modules/getgroups-tests: New test.
32791         * tests/test-getgroups.c: New file.
32792
32793 2009-11-13  Simon Josefsson  <simon@josefsson.org>
32794
32795         * tests/test-base64.c: Improve.
32796
32797 2009-11-13  Simon Josefsson  <simon@josefsson.org>
32798
32799         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
32800         Blake <ebb9@byu.net>.
32801
32802 2009-11-13  Simon Josefsson  <simon@josefsson.org>
32803
32804         * tests/test-xvasprintf.c: Add %s%s related checks.
32805
32806 2009-11-12  Eric Blake  <ebb9@byu.net>
32807
32808         version-etc: match standards.texi style
32809         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
32810         and use <> only for URLs.
32811
32812 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
32813
32814         fts: do not fail on a submount during traversal
32815         * lib/fts.c (fts_build): Read the stat info again after opening
32816         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
32817         Original report at http://bugzilla.redhat.com/501848.
32818
32819 2009-11-12  Jim Meyering  <meyering@redhat.com>
32820
32821         bootstrap: sync from coreutils
32822         * build-aux/bootstrap (bootstrap_epilogue): New function.
32823         Use git_modules_config in one more place.  This make bootstrap's
32824         --gnulib-srcdir option more useful for testing.
32825
32826         bootstrap: generalize autoheader check
32827         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
32828         AC_CONFIG_HEADERS.
32829
32830 2009-11-11  Eric Blake  <ebb9@byu.net>
32831
32832         mkfifoat: use new modules for Solaris and BSD bugs
32833         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
32834         * lib/mkfifoat.c (mknodat): Split...
32835         * lib/mknodat.c (mknodat): ...into new file.
32836         * modules/mkfifoat (Files): Ship new file.
32837         (Depends-on): Add mkfifo, mknod.
32838         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
32839         (Depends-on): Add symlink.
32840         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
32841         redundant with test_mkfifo.h.
32842         (do_mkfifoat, do_mknodat): New helpers.
32843
32844         mknod: new module
32845         * modules/mknod: New file.
32846         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
32847         * lib/mknod.c (mknod): Likewise.
32848         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
32849         defaults.
32850         * modules/sys_stat (Makefile.am): Substitute them.
32851         * lib/sys_stat.in.h (mknod): Declare replacement.
32852         * MODULES.html.sh (Support for systems lacking POSIX:2008):
32853         Document it.
32854         * doc/posix-functions/mknod.texi (mknod): Likewise.
32855         * modules/mknod-tests: New test.
32856         * tests/test-mknod.c: Likewise.
32857
32858         mkfifo: new module
32859         * modules/mkfifo: New file.
32860         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
32861         * lib/mkfifo.c (mkfifo): Likewise.
32862         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
32863         defaults.
32864         * modules/sys_stat (Makefile.am): Substitute them.
32865         * lib/sys_stat.in.h (mkfifo): Declare replacement.
32866         * MODULES.html.sh (Support for systems lacking POSIX:2008):
32867         Document it.
32868         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
32869         * modules/mkfifo-tests: New test.
32870         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
32871         from test-mkfifoat.c.
32872         * tests/test-mkfifo.c: New file.
32873
32874         readlink: detect FreeBSD bug
32875         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
32876         slash on symlink.
32877         * doc/posix-functions/readlink.texi (readlink): Document the bug.
32878         * tests/test-readlink.h (test_readlink): Enhance test.
32879
32880         symlink: detect FreeBSD bug
32881         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
32882         slash on symlink.
32883         * doc/posix-functions/symlink.texi (symlink): Document the bug.
32884         * tests/test-symlink.h (test_symlink): Enhance test.
32885
32886 2009-11-10  Eric Blake  <ebb9@byu.net>
32887
32888         link: detect FreeBSD bug
32889         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
32890         symlink.
32891         * doc/posix-functions/link.texi (link): Document the bug.
32892         * tests/test-link.h (test_link): Enhance test.
32893         * tests/test-linkat.c (main): Update caller.
32894
32895         unlink, remove: detect FreeBSD bug
32896         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
32897         slash on symlink.
32898         * doc/posix-functions/unlink.texi (unlink): Document the bug.
32899         * doc/posix-functions/remove.texi (remove): Likewise.
32900         * tests/test-unlink.h (test_unlink): Enhance test.
32901         * tests/test-remove.c (main): Likewise.
32902
32903 2009-11-09  Eric Blake  <ebb9@byu.net>
32904
32905         rename: detect FreeBSD bug
32906         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
32907         slash on symlink.
32908         * modules/renameat-tests (Depends-on): Add filenamecat.
32909         * tests/test-rename.h (test_rename): Allow one more errno.
32910         * tests/test-renameat.c (main): Likewise.
32911         * doc/posix-functions/rename.texi (rename): Document the bug.
32912
32913         open: detect FreeBSD bug
32914         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
32915         symlink.
32916         * doc/posix-functions/open.texi (open): Document the bug.
32917         * doc/posix-functions/utimes.texi (utimes): Likewise.
32918         * tests/test-open.h (test_open): Add parameters, and test symlink
32919         handling.
32920         * tests/test-open.c (main): Adjust caller.
32921         * tests/test-fcntl-safer.c (main): Likewise.
32922         * modules/open-tests (Depends-on): Add stdbool, symlink.
32923         * modules/fcntl-safer-tests (Depends-on): Likewise.
32924         * tests/test-openat.c (main): Add test-open tests.
32925
32926         stat: detect FreeBSD bug
32927         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
32928         symlink.
32929         * doc/posix-functions/stat.texi (stat): Document the bug.
32930         * tests/test-stat.h (test_stat_func): Add argument.
32931         * tests/test-stat.c (main): Adjust caller.
32932         * tests/test-fstatat.c (main): Likewise.
32933         * modules/stat-tests (Depends-on): Add stdbool, symlink.
32934         Reported by Jim Meyering.
32935
32936 2009-11-09  James Youngman  <jay@gnu.org>
32937
32938         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
32939         * lib/strftime.c: Correct placement of #include "ignore-value.h".
32940
32941 2009-11-08  Jim Meyering  <meyering@redhat.com>
32942
32943         utimens: remove invalid futimesat call
32944         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
32945         It used the file descriptor of the target file as the DIR_FD
32946         parameter and NULL as the file name.  That caused failure with
32947         errno == EFAULT on FreeBSD-8.0-rc2
32948
32949 2009-11-07  Eric Blake  <ebb9@byu.net>
32950
32951         fflush, freadseek: use fseeko, not fseek
32952         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
32953         (clear_ungetc_buffer): Avoid potential problems on large files.
32954         * lib/freadseek.c (freadseek): Likewise.
32955         * modules/freadseek (Depends-on): Add fseeko.
32956         * modules/fseek (configure.ac): Set a witness.
32957         * tests/test-fflush.c (main): Use fseeko.
32958         * tests/test-fpurge.c (fseek): Disable link warning.
32959         * tests/test-freadable.c (fseek): Likewise.
32960         * tests/test-freading.c (fseek): Likewise.
32961         * tests/test-fseeko.c (fseek): Likewise.
32962         * tests/test-ftell.c (fseek): Likewise.
32963         * tests/test-ftello.c (fseek): Likewise.
32964         * tests/test-fwritable.c (fseek): Likewise.
32965         * tests/test-fwriting.c (fseek): Likewise.
32966
32967 2009-11-06  Simon Josefsson  <simon@josefsson.org>
32968
32969         * modules/memchr (Depends-on): Drop getpagesize dependency.
32970
32971 2009-11-06  Simon Josefsson  <simon@josefsson.org>
32972
32973         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
32974         Reported by Ludovic Courtès.
32975         * build-aux/pmccabe2html: Improve example usage.
32976         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
32977
32978 2009-11-06  Jim Meyering  <meyering@redhat.com>
32979
32980         do-release-commit-and-tag: New module.
32981         Automate the release-commit and tag process.
32982         * build-aux/do-release-commit-and-tag: New script, from coreutils.
32983         * modules/do-release-commit-and-tag: New file.
32984         * MODULES.html.sh (Support for maintaining and releasing): Add it.
32985
32986 2009-11-06  Simon Josefsson  <simon@josefsson.org>
32987
32988         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
32989         because test-select.c uses inet_pton.
32990
32991 2009-11-06  Simon Josefsson  <simon@josefsson.org>
32992
32993         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
32994         GETADDRINFO_LIB.  Bump serial number.
32995         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
32996         Suggested by Eric Blake <ebb9@byu.net>.
32997
32998 2009-11-05  Eric Blake  <ebb9@byu.net>
32999
33000         strtod: detect darwin bug
33001         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
33002         Reported by Leo Davis.
33003
33004         freopen-safer: new module
33005         * modules/freopen-safer: New module.
33006         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
33007         * lib/freopen-safer.c (freopen_safer): New file.
33008         * lib/stdio-safer.h (freopen_safer): New declaration.
33009         * lib/stdio--.h (freopen): New override.
33010         * MODULES.html.sh (File stream based Input/Output): Mention it.
33011         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
33012         freopen-safer module.
33013         * doc/posix-functions/stderr.texi (stderr): Likewise.
33014         * doc/posix-functions/stdin.texi (stdin): Likewise.
33015         * doc/posix-functions/stdout.texi (stdout): Likewise.
33016         * modules/freopen-safer-tests: New test.
33017         * tests/test-reopen-safer.c: New file.
33018
33019 2009-11-05  Jim Meyering  <meyering@redhat.com>
33020
33021         maint.mk: Prohibit inclusion of "close-stream.h" without use.
33022         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
33023
33024 2009-11-05  Simon Josefsson  <simon@josefsson.org>
33025
33026         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
33027
33028 2009-11-05  Simon Josefsson  <simon@josefsson.org>
33029
33030         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
33031
33032 2009-11-05  Simon Josefsson  <simon@josefsson.org>
33033
33034         Fix link error.
33035         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
33036         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
33037
33038 2009-11-05  Simon Josefsson  <simon@josefsson.org>
33039
33040         * tests/test-func.c: Also test value of __func__.
33041
33042 2009-11-05  Simon Josefsson  <simon@josefsson.org>
33043
33044         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
33045         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
33046
33047 2009-11-05  Bruno Haible  <bruno@clisp.org>
33048
33049         Fix link error.
33050         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
33051         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
33052         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
33053
33054 2009-11-05  Bruno Haible  <bruno@clisp.org>
33055
33056         Tests for module 'inet_pton'.
33057         * modules/inet_pton-tests: New file.
33058         * tests/test-inet_pton.c: New file.
33059
33060 2009-11-05  Bruno Haible  <bruno@clisp.org>
33061
33062         Tests for module 'inet_ntop'.
33063         * modules/inet_ntop-tests: New file.
33064         * tests/test-inet_ntop.c: New file.
33065
33066 2009-11-04  Eric Blake  <ebb9@byu.net>
33067
33068         stdlib-safer: wrap all mkstemp variants
33069         * modules/mkostemp (configure.ac): Set witness.
33070         * modules/mkostemps (configure.ac): Likewise.
33071         * modules/mkstemps (configure.ac): Likewise.
33072         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
33073         (mkstemps_safer): Wrap more functions.
33074         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
33075         wrapping.
33076         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
33077         (mkstemps_safer): Implement the wrappers.
33078
33079         mkstemps, mkostemps: new modules
33080         * modules/mkostemps: New module.
33081         * modules/mkstemps: Likewise.
33082         * lib/mkostemps.c (mkostemps): New file.
33083         * lib/mkstemps.c (mkstemps): Likewise.
33084         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
33085         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
33086         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
33087         * modules/stdlib (Makefile.am): Substitute them.
33088         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
33089         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
33090         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
33091         * doc/gnulib.texi (Glibc stdlib.h): Include them.
33092         * MODULES.html.sh (File system functions): Mention them.
33093
33094         tempname: resync from glibc
33095         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
33096         same values for __GT_FILE as glibc.  Abort even when assertions
33097         are disabled.
33098         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
33099         match its value otherwise.  Allow idempotent inclusion.
33100         * lib/mkdtemp.c (mkdtemp): Adjust caller.
33101         * lib/mkostemp.c (mkostemp): Likewise.
33102         * lib/mkstemp.c (mkstemp): Likewise.
33103         * lib/tmpfile.c (tmpfile): Likewise.
33104         * NEWS: Document this.
33105
33106         utimens: fix use of futimens on older Linux
33107         * lib/utimens.c (fdutimens): Use updated, rather than original,
33108         timespec to avoid bug in older Linux kernel.
33109         Reported by Simon Josefsson.
33110
33111 2009-11-04  Bruno Haible  <bruno@clisp.org>
33112
33113         Make num_processors more flexible and consistent.
33114         * lib/nproc.h (enum nproc_query): New type.
33115         (num_processors): Add a 'query' argument.
33116         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
33117         (num_processors): Add a 'query' argument. Test the value of the
33118         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
33119         mingw, count the number of CPUs available for the current process.
33120         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
33121         Check for sched_getaffinity and sched_getaffinity_np.
33122         * modules/nproc (Depends-on): Add c-ctype, extensions.
33123         * NEWS: Mention the change.
33124
33125 2009-11-03  Bruno Haible  <bruno@clisp.org>
33126
33127         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
33128
33129 2009-11-03  Jim Meyering  <meyering@redhat.com>
33130
33131         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
33132         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
33133         if it is defined.
33134
33135 2009-11-02  Eric Blake  <ebb9@byu.net>
33136
33137         mktime, timegm: share common declaration
33138         * lib/mktime-internal.h: New file.
33139         * lib/mktime.c: Use it rather than open-coding a declaration.
33140         * lib/timegm.c: Likewise.
33141         * modules/mktime (Files): Ship it.
33142         * modules/timegm (Files): Likewise.
33143         Suggested by Bruno Haible.
33144
33145         test-update-copyright: update test to match script changes
33146         * tests/test-update-copyright.sh: Avoid hard-coding perl
33147         location.  Don't update *.bak created by earlier runs.
33148
33149 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
33150             Simon Josefsson  <simon@josefsson.org>
33151             Bruno Haible  <bruno@clisp.org>
33152
33153         Fix link error on Solaris 8.
33154         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
33155         also in libnsl. Define also INET_PTON_LIB.
33156         * modules/inet_pton (Link): New section.
33157
33158 2009-11-02  Simon Josefsson  <simon@josefsson.org>
33159             Bruno Haible  <bruno@clisp.org>
33160
33161         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
33162         * modules/inet_ntop (Link): New section.
33163         Reported by Boyan Kasarov <bkasarov@gmail.com>.
33164
33165 2009-11-02  Eric Blake  <ebb9@byu.net>
33166
33167         maint: avoid compiler warnings in m4 macros
33168         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
33169         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
33170
33171 2009-11-02  Simon Josefsson  <simon@josefsson.org>
33172
33173         * m4/pmccabe2html.m4: Remove file.
33174         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
33175         function.  Change maintainer.
33176         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
33177         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
33178         Courtès).
33179
33180 2009-10-31  Eric Blake  <ebb9@byu.net>
33181
33182         fseeko: fix m4 regression
33183         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
33184         regression from 2009-10-27.
33185         Reported by Ralf Wildenhues.
33186
33187 2009-10-31  Jim Meyering  <meyering@redhat.com>
33188
33189         inttostr: aesthetics and improved (compile-time) safety
33190         Define inttype_is_signed rather than inttype_is_unsigned,
33191         since the sole use is via "#if inttype_is_signed".
33192         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
33193         inttype_is_unsigned.
33194         * lib/offtostr.c (inttype_is_signed): Likewise.
33195         * lib/uinttostr.c (inttype_is_signed): Likewise.
33196         * lib/umaxtostr.c (inttype_is_signed): Likewise.
33197         * lib/inttostr.c (inttostr): Use verify to cross-check the
33198         inttype_is_signed value and the signedness of the actual type.
33199         * modules/inttostr (Depends-on): Add verify.
33200
33201 2009-10-30  Eric Blake  <ebb9@byu.net>
33202
33203         build: avoid compiler warnings
33204         * lib/fchmodat.c (lchmod): Mark unused variables.
33205         * lib/getopt.c (_getopt_initialize): Likewise.
33206         * lib/mktime.c (__mktime_internal): Provide prototype.
33207         * lib/inttostr.c (inttostr): Avoid compiler warning even with
33208         older gcc that do not understand #pragma GCC diagnostic.
33209         * lib/uinttostr.c (inttype_is_unsigned): Define.
33210         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
33211
33212 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
33213
33214         stat: fix compilation on AIX
33215         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
33216         only see struct stat64.
33217
33218 2009-10-30  Eric Blake  <ebb9@byu.net>
33219
33220         exclude: make more robust
33221         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
33222         rather than masking a coding bug.
33223         Suggested by Bruno Haible.
33224
33225 2009-10-30  Jim Meyering  <meyering@redhat.com>
33226
33227         perl scripts: remove #!/usr/bin/perl in favor of more portable...
33228         Rather than putting #!/usr/bin/perl on the first line,
33229         start with a variant of what's recommended by "man perlrun" that
33230         invokes the first "perl" program from your shell's search path.
33231         * build-aux/gitlog-to-changelog: Replace #!... as above.
33232         Add a "Local Variables" perl mode setting.
33233         Prompted by a patch from Ludovic Courtès.
33234         Improved by Eric Blake.
33235         * build-aux/useless-if-before-free: Likewise.
33236         * build-aux/announce-gen: Likewise.
33237         * build-aux/update-copyright: Likewise.
33238
33239 2009-10-29  Eric Blake  <ebb9@byu.net>
33240
33241         filenamecat-lgpl: adjust clients
33242         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
33243         filenamecat.
33244         * modules/renameat (Depends-on): Likewise.
33245
33246         filenamecat: split into filenamecat-lgpl
33247         * modules/filenamecat-lgpl: New module.
33248         * modules/filenamecat (Files): Move library-safe files into
33249         filenamecat-lgpl.
33250         (Depends-on): Add filenamecat-lgpl.
33251         (configure.ac): Declare witness.
33252         * lib/filenamecat.h (file_name_concat): Only declare when using
33253         GPL module.
33254         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
33255         Move...
33256         * lib/filenamecat-lgpl.c: ...into new file.
33257         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
33258         (gl_FILE_NAME_CONCAT): Use it.
33259         * MODULES.html.sh (File system functions): Mention new module.
33260
33261         argp: avoid memory leak
33262         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
33263         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
33264         base_name, since the latter malloc()s and can call exit().
33265         Leak introduced 2006-07-03.
33266
33267         dirname-lgpl: adjust clients that don't need full dirname
33268         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
33269         * modules/filenamecat (Depends-on): Likewise.
33270         * modules/linkat (Depends-on): Likewise.
33271         * modules/mkancesdirs (Depends-on): Likewise.
33272         * modules/mkdir (Depends-on): Likewise.
33273         * modules/openat (Depends-on): Likewise.
33274         * modules/savewd (Depends-on): Likewise.
33275         * modules/rename (Depends-on): Likewise.
33276         (License): Relax license.
33277         * modules/mkdir-tests (Depends-on): Drop progname.
33278         (Makefile.am): Delete unneeded LDADD.
33279         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
33280
33281         dirname: split into dirname-lgpl
33282         * modules/dirname-lgpl: New module.
33283         * modules/dirname (Files): Move library-safe files into
33284         dirname-lgpl.
33285         (Depends-on): Add dirname-lgpl.
33286         (configure.ac): Declare witness.
33287         * modules/double-slash-root (License): Relax license.
33288         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
33289         module.
33290         * lib/dirname.c (dir_len, mdir_name): Move...
33291         * lib/dirname-lgpl.c: ...into new file.
33292         * lib/basename.c (last_component, base_len): Move...
33293         * lib/basename-lgpl.c: ...into new file.
33294         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
33295         (gl_DIRNAME): Use it.
33296         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
33297         Mention new module.
33298         * modules/dirname-tests (Depends-on): Add progname.
33299         * tests/test-dirname.c (program_name): Delete.
33300
33301         mkdir: make safe for libraries
33302         * modules/mkdir (Depends-on): Drop xalloc.
33303         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
33304         exit.
33305
33306         tests: avoid some compiler warnings
33307         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
33308         literals.
33309         * tests/test-memchr.c (main): Avoid type mismatch.
33310         * tests/test-arpa_inet.c (main): Avoid unused parameters.
33311         * tests/test-base64.c (main): Likewise.
33312         * tests/test-getdelim.c (main): Likewise.
33313         * tests/test-gethostname.c (main): Likewise.
33314         * tests/test-getline.c (main): Likewise.
33315         * tests/test-netinet_in.c (main): Likewise.
33316         * tests/test-select.c (open_server_socket, main): Likewise.
33317         * tests/test-select-stdin.c (main): Likewise.
33318         * tests/test-sockets.c (main): Likewise.
33319         * tests/test-strsignal.c (main): Likewise.
33320         * tests/test-sys_select.c (main): Likewise.
33321         * tests/test-sys_socket.c (main): Likewise.
33322         * tests/test-u64.c (main): Likewise.
33323         * tests/test-xfprintf-posix.c (main): Likewise.
33324         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
33325
33326         sockets: avoid compiler warning
33327         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
33328
33329         maint: detect usage(1) and other suspicious exits
33330         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
33331
33332 2009-10-29  Jim Meyering  <meyering@redhat.com>
33333
33334         timespec: long-to-int truncation could make timespec_cmp malfunction
33335         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
33336         a multiple of 2^32 nanoseconds as no difference.
33337
33338 2009-10-28  Jim Meyering  <meyering@redhat.com>
33339
33340         fprintftime: wrap macro code argument in "do {...} while(0)"
33341         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
33342         cpy macro must be a statement that can be followed by a semicolon.
33343         Now that the else clause contains a comment and is hence longer
33344         than one line, I require curly braces.  That in turn requires
33345         that we wrap this code block in the standard do...while(0).
33346
33347         fprintftime: remove stray semicolon from previous change
33348         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
33349
33350         fprintftime: avoid a warning about ignored fwrite return value
33351         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
33352         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
33353         that is unsafe.
33354         * modules/fprintftime (Depends-on): Add ignore-value.
33355
33356         exclude: avoid an unwarranted warning
33357         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
33358
33359 2009-10-27  Eric Blake  <ebb9@byu.net>
33360
33361         fseek: avoid compilation failure when fflush is replaced
33362         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
33363         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
33364         module is in use.
33365         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
33366         module is not in use; since REPLACE_FSEEK worked otherwise.
33367         (GNULIB_FTELLO): Likewise for ftell.
33368         Reported by Ian Beckwith and others.
33369
33370 2009-10-27  Bruno Haible  <bruno@clisp.org>
33371
33372         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
33373         Reported by Jim Meyering.
33374
33375 2009-10-27  Jim Meyering  <jim@meyering.net>
33376             Bruno Haible  <bruno@clisp.org>
33377
33378         Avoid warning despite dropping the return value of fwrite.
33379         * lib/unicodeio.c: Include ignore-value.h.
33380         (fwrite_success_callback): Explicitly ignore fwrite's return value.
33381         * modules/unicodeio (Depends-on): Add ignore-value.
33382
33383 2009-10-26  Eric Blake  <ebb9@byu.net>
33384
33385         areadlinkat: fix fallback path
33386         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
33387         pointer and zero.
33388
33389 2009-10-22  Pádraig Brady  <P@draigBrady.com>
33390
33391         Use a better IO block size for modern systems
33392         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
33393         * lib/md2.c: Likewise.
33394         * lib/md4.c: Likewise.
33395         * lib/md5.c: Likewise.
33396         * lib/sha1.c: Likewise.
33397         * lib/sha256.c: Likewise.
33398         * lib/sha512.c: Likewise.
33399
33400 2009-10-22  Eric Blake  <ebb9@byu.net>
33401
33402         tests: avoid several compiler warnings
33403         * tests/test-getcwd.c (main): Avoid buffer underflow.
33404         * tests/test-getdate.c (main): String literals are not safe with
33405         putenv, so use setenv.  Declare unused argument.
33406         * modules/getdate-tests (Depends-on): Add setenv.
33407         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
33408         problems with string literals in char *.
33409         * tests/test-hash.c (main): Avoid shadowing declaration.
33410         (insert_new): Treat string literals as char const *.
33411         * tests/test-getopt.h (test_getopt): Likewise.
33412         (getopt_loop): Alter types to minimize casting elsewhere.
33413         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
33414         (test_getopt_long_posix): Likewise.
33415         (do_getopt_long): Add wrapper to minimize casting.
33416         * tests/test-atexit.c (clear_temp_file): Use void.
33417         * tests/test-areadlink-with-size.c (main): Declare unused
33418         arguments.
33419         * tests/test-areadlink.c (main): Likewise.
33420         * tests/test-areadlinkat-with-size.c (main): Likewise.
33421         * tests/test-areadlinkat.c (main): Likewise.
33422         * tests/test-canonicalize-lgpl.c (main): Likewise.
33423         * tests/test-canonicalize.c (main): Likewise.
33424         * tests/test-dirent-safer.c (main): Likewise.
33425         * tests/test-dirname.c (main): Likewise.
33426         * tests/test-dup2.c (main): Likewise.
33427         * tests/test-fchdir.c (main): Likewise.
33428         * tests/test-fcntl-h.c (main): Likewise.
33429         * tests/test-fcntl-safer.c (main): Likewise.
33430         * tests/test-fdopendir.c (main): Likewise.
33431         * tests/test-fdutimensat.c (main): Likewise.
33432         * tests/test-fflush.c (main): Likewise.
33433         * tests/test-filenamecat.c (main): Likewise.
33434         * tests/test-filevercmp.c (main): Likewise.
33435         * tests/test-fopen-safer.c (main): Likewise.
33436         * tests/test-fopen.c (main): Likewise.
33437         * tests/test-fpending.c (main): Likewise.
33438         * tests/test-fpurge.c (main): Likewise.
33439         * tests/test-freading.c (main): Likewise.
33440         * tests/test-fstatat.c (main): Likewise.
33441         * tests/test-fsync.c (main): Likewise.
33442         * tests/test-futimens.c (main): Likewise.
33443         * tests/test-getndelim2.c (main): Likewise.
33444         * tests/test-gettimeofday.c (main): Likewise.
33445         * tests/test-getopt.c (main): Likewise.
33446         * tests/test-i-ring.c (main): Likewise.
33447         * tests/test-inttypes.c (main): Likewise.
33448         * tests/test-link.c (main): Likewise.
33449         * tests/test-lstat.c (main): Likewise.
33450         * tests/test-math.c (main): Likewise.
33451         * tests/test-md5.c (main): Likewise.
33452         * tests/test-memchr2.c (main): Likewise.
33453         * tests/test-memrchr.c (main): Likewise.
33454         * tests/test-mkdir.c (main): Likewise.
33455         * tests/test-mkdirat.c (main): Likewise.
33456         * tests/test-mkfifoat.c (main): Likewise.
33457         * tests/test-open.c (main): Likewise.
33458         * tests/test-openat-safer.c (main): Likewise.
33459         * tests/test-openat.c (main): Likewise.
33460         * tests/test-quotearg.c (main): Likewise.
33461         * tests/test-rawmemchr.c (main): Likewise.
33462         * tests/test-readlink.c (main): Likewise.
33463         * tests/test-remove.c (main): Likewise.
33464         * tests/test-rename.c (main): Likewise.
33465         * tests/test-renameat.c (main): Likewise.
33466         * tests/test-rmdir.c (main): Likewise.
33467         * tests/test-sha1.c (main): Likewise.
33468         * tests/test-signal.c (main): Likewise.
33469         * tests/test-sigaction.c (main): Likewise.
33470         * tests/test-stat.c (main): Likewise.
33471         * tests/test-stat-time.c (main): Likewise.
33472         * tests/test-stddef.c (main): Likewise.
33473         * tests/test-stdint.c (main): Likewise.
33474         * tests/test-stdio.c (main): Likewise.
33475         * tests/test-stdlib.c (main): Likewise.
33476         * tests/test-strchrnul.c (main): Likewise.
33477         * tests/test-strerror.c (main): Likewise.
33478         * tests/test-string.c (main): Likewise.
33479         * tests/test-strtod.c (main): Likewise.
33480         * tests/test-strverscmp.c (main): Likewise.
33481         * tests/test-symlink.c (main): Likewise.
33482         * tests/test-symlinkat.c (main): Likewise.
33483         * tests/test-sys_stat.c (main): Likewise.
33484         * tests/test-sys_time.c (main): Likewise.
33485         * tests/test-time.c (main): Likewise.
33486         * tests/test-unistd.c (main): Likewise.
33487         * tests/test-unlink.c (main): Likewise.
33488         * tests/test-unlinkat.c (main): Likewise.
33489         * tests/test-utimens.c (main): Likewise.
33490         * tests/test-utimensat.c (main): Likewise.
33491         * tests/test-version-etc.c (main): Likewise.
33492         * tests/test-wchar.c (main): Likewise.
33493         * tests/test-wctype.c (main): Likewise.
33494         * tests/test-xprintf-posix.c (main): Likewise.
33495         * tests/test-posixtm.c (main): Likewise.
33496         (STREQ): Delete unused macro.
33497         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
33498         shadowed variables.
33499         * tests/test-memchr.c (main): Likewise.
33500
33501 2009-10-21  Eric Blake  <ebb9@byu.net>
33502
33503         areadlinkat: avoid failure on older glibc
33504         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
33505         rather than mis-comparing 0 against FUNC_RESULT of char*.
33506
33507 2009-10-21  Bruno Haible  <bruno@clisp.org>
33508
33509         * modules/stpncpy (License): Relicense under LGPLv2+.
33510         Reported by David Lutterkort <lutter@redhat.com>.
33511
33512 2009-10-20  Eric Blake  <ebb9@byu.net>
33513
33514         utimensat: work around Solaris 9 bug
33515         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
33516         has trailing slash bugs.
33517         * tests/test-lutimens.h (test_lutimens): Enhance test.
33518         * tests/test-utimens.h (test_utimens): Likewise.
33519         * doc/posix-functions/utime.texi (utime): Enhance documentation.
33520         * doc/posix-functions/utimes.texi (utimes): Likewise.
33521         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
33522         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
33523         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
33524         * doc/posix-functions/futimens.texi (futimens): Likewise.
33525
33526         fdutimensat: new module
33527         * modules/fdutimensat: New file.
33528         * lib/fdutimensat.c (fdutimensat): Likewise.
33529         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
33530         * MODULES.html.sh (File system functions): Mention module.
33531         * modules/fdutimensat-tests: New test.
33532         * tests/test-fdutimensat.c: Likewise.
33533
33534         doc: regenerate INSTALL
33535         * doc/INSTALL: Reflect recent autoconf update.
33536         * doc/INSTALL.ISO: Likewise.
33537         * doc/INSTALL.UTF-8: Likewise.
33538
33539 2009-10-20  Pádraig Brady  <P@draigBrady.com>
33540
33541         acl: warn if ACL support is not detected
33542         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
33543
33544 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
33545
33546         * lib/nproc.h: Add extern "C" block for C++.
33547
33548 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
33549             Bruno Haible  <bruno@clisp.org>
33550
33551         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
33552         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
33553         * doc/posix-functions/isalpha.texi: Likewise.
33554         * doc/posix-functions/isblank.texi: Likewise.
33555         * doc/posix-functions/iscntrl.texi: Likewise.
33556         * doc/posix-functions/isdigit.texi: Likewise.
33557         * doc/posix-functions/isgraph.texi: Likewise.
33558         * doc/posix-functions/islower.texi: Likewise.
33559         * doc/posix-functions/isprint.texi: Likewise.
33560         * doc/posix-functions/ispunct.texi: Likewise.
33561         * doc/posix-functions/isspace.texi: Likewise.
33562         * doc/posix-functions/isupper.texi: Likewise.
33563         * doc/posix-functions/isxdigit.texi: Likewise.
33564
33565 2009-10-18  Bruno Haible  <bruno@clisp.org>
33566
33567         Tests for module 'isblank'.
33568         * modules/isblank-tests: New file.
33569         * tests/test-isblank.c: New file.
33570
33571         New module 'isblank'.
33572         * lib/isblank.c: New file.
33573         * m4/isblank.m4: New file.
33574         * modules/isblank: New file.
33575         * doc/posix-functions/isblank.texi: Mention the new module.
33576
33577 2009-10-18  Bruno Haible  <bruno@clisp.org>
33578
33579         New module 'ctype'.
33580         * lib/ctype.in.h: New file.
33581         * m4/ctype.m4: New file.
33582         * modules/ctype: New file.
33583         * doc/posix-headers/ctype.texi: Mention the new module.
33584
33585 2009-10-18  Jim Meyering  <meyering@redhat.com>
33586
33587         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
33588         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
33589         right after its initialization, rather than farther down.
33590         Keeping these in close proximity makes it easier to ensure
33591         that each such variable is initialized.  E.g.,
33592
33593             LIB_CLOCK_GETTIME=
33594             AC_SUBST([LIB_CLOCK_GETTIME])
33595
33596         This change also increments these serial numbers.
33597         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
33598         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
33599         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
33600
33601 2009-10-18  Bruno Haible  <bruno@clisp.org>
33602
33603         Don't let environment variables perturb build.
33604         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
33605         (gl_PREREQ_GETHRXTIME): ... not here.
33606
33607 2009-10-18  Bruno Haible  <bruno@clisp.org>
33608
33609         Avoid symlink attack in localcharset module.
33610         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
33611         (O_NOFOLLOW): Define fallback.
33612         (get_charset_aliases): Don't open the file if it is a symbolic link.
33613         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
33614         gl_FCNTL_H.
33615         (gl_FCNTL_H): Require it.
33616         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
33617         * modules/localcharset (Files): Add m4/fcntl_h.m4.
33618         Reported by Fergal Glynn <fglynn@veracode.com>.
33619
33620 2009-10-18  Bruno Haible  <bruno@clisp.org>
33621
33622         Implement nproc for mingw.
33623         * lib/nproc.c: Include <windows.h>
33624         (num_processors): On native Windows platforms, try GetSystemInfo.
33625
33626 2009-10-18  Bruno Haible  <bruno@clisp.org>
33627
33628         Implement nproc for IRIX.
33629         * lib/nproc.c: Include <sys/sysmp.h>.
33630         (num_processors): On IRIX systems, try sysmp.
33631         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
33632
33633 2009-10-18  Bruno Haible  <bruno@clisp.org>
33634
33635         Implement nproc for HP-UX.
33636         * lib/nproc.c: Include <sys/pstat.h>
33637         (num_processors): On HP-UX systems, try pstat_getdynamic.
33638         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
33639         pstat_getdynamic.
33640
33641 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
33642             Bruno Haible  <bruno@clisp.org>
33643
33644         Implement nproc for NetBSD, OpenBSD.
33645         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
33646         (ARRAY_SIZE): New macro.
33647         (num_processors): On BSD systems, try sysctl of HW_NCPU.
33648         * m4/nproc.m4: New file.
33649         * modules/nproc (Files): Add m4/nproc.m4.
33650         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
33651         (Makefile.am): Instead, augment lib_SOURCES.
33652
33653 2009-10-18  Bruno Haible  <bruno@clisp.org>
33654
33655         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
33656         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
33657         sys/param.h.
33658
33659 2009-10-16  Eric Blake  <ebb9@byu.net>
33660
33661         utimensat: new module
33662         * modules/utimensat: New file.
33663         * lib/utimensat.c (utimensat): Likewise.
33664         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
33665         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
33666         so we can work around Linux bugs.
33667         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
33668         * modules/sys_stat (Makefile.am): Substitute them.
33669         * lib/sys_stat.in.h (utimensat): Declare it.
33670         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
33671         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
33672         * modules/utimensat-tests: New test.
33673         * tests/test-utimensat.c: Likewise.
33674
33675         utimens: let lutimens work on non-symlinks
33676         * lib/utimens.c (lutimens): Fall back to utimens rather than
33677         failing with ENOSYS, when file is not a symlink.
33678         (utimens): Reduce redirection.
33679         * tests/test-lutimens.h (test_lutimens): Update test to cover
33680         non-symlinks.
33681         * tests/test-utimens.h (test_utimens): Update test to cover
33682         symlinks.
33683         * tests/test-utimens.c (main): Update caller.
33684
33685         utimens: cache whether utimensat syscall works
33686         * lib/utimens.c (utimensat_works_really): New cache variable.
33687         (fdutimens, lutimens): Use it to avoid failing syscall.
33688
33689         test-stat-time, test-utimens: improve portability
33690         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
33691         ext4 on alpha, and for cygwin.
33692         * tests/test-utimens-common.h: New file.
33693         (nap): Factor delays into single function.
33694         * tests/test-lutimens.h (test_lutimens): Use new header.
33695         * tests/test-futimens.h (test_futimens): Likewise.
33696         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
33697         timestamps to occur from same machine, as was done previously for
33698         test_utimens.
33699         * modules/utimens-tests (Files): Ship new file.
33700         * modules/futimens-tests (Files): Likewise.
33701         Reported in part by Jim Meyering.
33702
33703         sys_stat: sort replacement declarations
33704         * lib/sys_stat.in.h: Sort declarations.
33705         * lib/futimens.c (futimens): Fix typo.
33706
33707 2009-10-15  Jim Meyering  <meyering@redhat.com>
33708
33709         don't let environment settings perturb build
33710         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
33711         could cause a configure-time and/or build-time malfunction.
33712         Typically, a configure-time function-in-library test is performed
33713         via code like this:
33714
33715           LIB_VAR=
33716           AC_SUBST([LIB_VAR])
33717           prefix_saved_LIBS=$LIBS
33718             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
33719                        [test "$ac_cv_search_FUNC" = "none required" ||
33720                         LIB_VAR=$ac_cv_search_FUNC])
33721           LIBS=$prefix_saved_LIBS
33722
33723         However, in each of the files affected by this change, the LIB_VAR=
33724         initialization was omitted.  Thus, when set in the environment, its
33725         value would propagate into generated Makefiles when FUNC is not found
33726         in LIB_NAME.
33727         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
33728         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
33729         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
33730
33731 2009-10-14  Eric Blake  <ebb9@byu.net>
33732
33733         fchdir: avoid infinite recursion in mingw
33734         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
33735         recursing.
33736
33737         test-stat-time: port to mingw
33738         * tests/test-stat-time.c (force_unlink): Return a value.
33739         (test_ctime) [W32]: Fix compilation error.
33740         (nap): Don't call usleep with too large an argument.  Use
33741         force_unlink.
33742         * doc/pastposix-functions/usleep.texi (usleep): Document the
33743         portability issue.
33744
33745 2009-10-13  Jim Meyering  <meyering@redhat.com>
33746
33747         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
33748         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
33749         * modules/pipe-filter-ii: Likewise.
33750         * modules/sys_socket-tests: Likewise.
33751         * modules/tsearch-tests: Likewise.
33752         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
33753         (check): Depend on it.
33754
33755 2009-10-12  Eric Blake  <ebb9@byu.net>
33756
33757         utimens-tests: port to NFS file systems
33758         * tests/test-utimens.h (test_utimens): Refactor utimecmp
33759         comparisons to avoid spurious failures from timestamp drift
33760         between NFS machines.
33761
33762 2009-10-12  Eric Blake  <ebb9@byu.net>
33763
33764         stat-time-tests: minor cleanups
33765         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
33766         * tests/test-stat-time.c (nap): Separate assignment from call.
33767         Suggested by Paolo Bonzini and Bruno Haible.
33768
33769         sys_stat: guarantee struct timespec
33770         * lib/sys_stat.in.h (includes): Always include <time.h>
33771         * modules/sys_stat (Depends-on): Add time.
33772         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
33773         mode_t permission values.
33774         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
33775         get at subsecond timestamps.
33776
33777 2009-10-10  Eric Blake  <ebb9@byu.net>
33778
33779         futimens: new module
33780         * modules/futimens: New file.
33781         * lib/futimens.c (futimens): Likewise.
33782         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
33783         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
33784         we can work around Linux bugs.
33785         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
33786         * modules/sys_stat (Makefile.am): Substitute them.
33787         * lib/sys_stat.in.h (futimens): Declare it.
33788         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
33789         * doc/posix-functions/futimens.texi (futimens): Likewise.
33790         * modules/futimens-tests: New test.
33791         * tests/test-futimens.c: Likewise.
33792
33793         utimens: introduce fdutimens
33794         * lib/utimens.h (fdutimens): New prototype.
33795         * lib/utimens.c (gl_futimens): Move guts...
33796         (fdutimens): ...to new interface.
33797         * tests/test-utimens.c (do_fdutimens): Use it.
33798
33799         utimens: add UTIME_NOW and UTIME_OMIT support
33800         * lib/utimens.c (validate_timespec, update_timespec): New helper
33801         functions.
33802         (gl_futimens, lutimens): Use them.
33803         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
33804         stdbool, sys_stat.
33805         (Link): Mention resulting library dependency.
33806         * modules/utimecmp (Link): Likewise.
33807         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
33808         (Makefile.am): Pick up library dependency.
33809         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
33810         definition.
33811         * tests/test-sys_stat.c: Test the definitions.
33812         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
33813         * NEWS: Document library dependency.
33814
33815         utimecmp: support symlink timestamps
33816         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
33817         hashing when possible.  Use pathconf when available.
33818         (SYSCALL_RESOLUTION): Recognize tighter resolution.
33819         * modules/utimecmp (Depends-on): Add lstat.
33820
33821         utimens: add lutimens interface
33822         * lib/utimens.c (lutimens): New function.
33823         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
33824         * lib/utimens.h (lutimens): Declare new interface.
33825         * tests/test-utimens.c (main): Enhance test.
33826         * tests/test-lutimens.h (test_lutimens): New file.
33827         * modules/utimens-tests (Files): Distribute it.
33828         (Depends-on): Add symlink.
33829         (configure.ac): Check for usleep.
33830
33831         utimens: validate futimens usage
33832         * lib/utimens.c (gl_futimens): Require valid fd up front, using
33833         fewer syscalls on failure later on.  Avoid compiler warning on
33834         mingw.
33835         * modules/utimens (Depends-on): Add dup2.
33836
33837         utimens: add test
33838         * modules/utimens-tests: New test.
33839         * tests/test-utimens.h: New file.
33840         * tests/test-futimens.h: Likewise.
33841         * tests/test-utimens.c: Likewise.
33842
33843         doc: mention timestamp portability issues
33844         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
33845         instead.
33846         * doc/posix-functions/utime.texi (utime): Likewise.
33847         * doc/posix-functions/utimes.texi (utimes): Likewise.
33848         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
33849         instead.
33850         * doc/posix-functions/futimens.texi (futimens): Mention utimens
33851         module.
33852         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
33853         Mention weakness with symlink timestamps.
33854         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
33855         to utimensat/futimens instead.
33856         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
33857
33858         test-dup2: enhance test
33859         * tests/test-dup2.c (main): Also check AT_FDCWD.
33860
33861         test-stat-time: avoid more spurious failures
33862         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
33863         xfs; and avoid race if the two timestamps cross quantization edge.
33864
33865         relocatable: prefer 'file system' over 'filesystem'
33866         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
33867         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
33868         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
33869         * doc/relocatable.texi (Enabling Relocatability): Likewise.
33870         * lib/relocatable.c (compute_curr_prefix): Likewise.
33871
33872 2009-10-10  Jim Meyering  <meyering@redhat.com>
33873
33874         stat-time-tests: check for the usleep function
33875         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
33876
33877 2009-10-10  Bruno Haible  <bruno@clisp.org>
33878
33879         * modules/xnanosleep: Put the Link section after the Include section.
33880
33881 2009-10-09  Eric Blake  <ebb9@byu.net>
33882
33883         dup2: work around FreeBSD 6.1 bug
33884         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
33885         * doc/posix-functions/dup2.texi (dup2): Document it.
33886         Reported by Nelson H. F. Beebe and Jim Meyering.
33887
33888         test-stat-time: port to buggy NFS clients
33889         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
33890         (test_ctime): Also skip test if mtime and ctime are skewed.
33891
33892         maint: prefer 'file system' over 'filesystem'
33893         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
33894         * doc/posix-functions/lstat.texi (lstat): Likewise.
33895         * lib/file-has-acl.c (file_has_acl): Likewise.
33896         * lib/fwriteerror.c [TEST]: Likewise.
33897         * tests/test-areadlink.h (test_areadlink): Likewise.
33898         * tests/test-areadlinkat-with-size.c (main): Likewise.
33899         * tests/test-areadlinkat.c (main): Likewise.
33900         * tests/test-canonicalize-lgpl.c (main): Likewise.
33901         * tests/test-canonicalize.c (main): Likewise.
33902         * tests/test-fstatat.c (main): Likewise.
33903         * tests/test-linkat.c (main): Likewise.
33904         * tests/test-lstat.h (test_lstat_func): Likewise.
33905         * tests/test-mkdir.h (test_mkdir): Likewise.
33906         * tests/test-readlink.h (test_readlink): Likewise.
33907         * tests/test-remove.c (main): Likewise.
33908         * tests/test-rename.h (test_rename): Likewise.
33909         * tests/test-renameat.c (main): Likewise.
33910         * tests/test-rmdir.h (test_rmdir_func): Likewise.
33911         * tests/test-symlink.h (test_symlink): Likewise.
33912         * tests/test-symlinkat.c (main): Likewise.
33913         * tests/test-unlink.h (test_unlink_func): Likewise.
33914         * tests/test-unlinkat.c (main): Likewise.
33915
33916         maint: make realtime library usage explicit
33917         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
33918         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
33919         * modules/settime (Link): Likewise.
33920         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
33921
33922         test-stat-time: speed up execution
33923         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
33924         warning on mingw.
33925         (nap): New helper function.
33926         (prepare_test): Use it to reduce sleep time.
33927         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
33928         execution.
33929         * modules/stat-time-tests (configure.ac): Check for usleep.
33930
33931 2009-10-09  Jim Meyering  <meyering@redhat.com>
33932
33933         selinux-h: always use getfilecon wrappers
33934         * lib/getfilecon.c: New file.
33935         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
33936         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
33937         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
33938         (fgetfilecon): Provide a stub.
33939         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
33940         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
33941         file unconditionally.
33942         When <selinux/selinux.h> is found, arrange to use wrappers.
33943         * modules/selinux-h (Files): Add getfilecon.c.
33944         (Makefile.am): Substitute include-next-related bits
33945         into the now-always-generated selinux/selinux.h file.
33946         * doc/glibc-functions/lgetfilecon.texi: New file.
33947         * doc/glibc-functions/fgetfilecon.texi: New file.
33948         * doc/glibc-functions/getfilecon.texi: New file.
33949         * doc/glibc-functions/getfilecon-desc.texi: New file.
33950         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
33951         which to pull in the new files.
33952         * MODULES.html.sh (Misc): Add selinux-h.
33953
33954 2009-10-08  Jim Meyering  <meyering@redhat.com>
33955
33956         unistd: fix comment typo
33957         * lib/unistd.in.h (euidaccess): Fix a comment typo.
33958
33959 2009-10-08  Eric Blake  <ebb9@byu.net>
33960
33961         areadlink: use SIZE_MAX consistently
33962         * modules/areadlink (Depends-on): Add stdint.
33963         * modules/areadlink-with-size (Depends-on): Likewise.
33964         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
33965         gives NULL; drop sys/types, since unistd gives size_t; and add
33966         stdint for SIZE_MAX.
33967         (SIZE_MAX): Rely on headers.
33968         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
33969         and add stdint.
33970         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
33971         (SIZE_MAX): Likewise.
33972         (INITIAL_BUF_SIZE): Turn into enum.
33973         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
33974
33975 2009-10-08  Jim Meyering  <meyering@redhat.com>
33976
33977         areadlinkat: avoid compilation failure
33978         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
33979         Fix typo in comment.
33980
33981 2009-10-07  Eric Blake  <ebb9@byu.net>
33982
33983         areadlinkat-with-size: new module
33984         * modules/areadlinkat-with-size: New module.
33985         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
33986         * lib/areadlink.h (areadlinkat): Declare it.
33987         * MODULES.html.sh (File system functions): Mention it.
33988         * modules/areadlinkat-with-size-tests: New test.
33989         * tests/test-areadlinkat-with-size.c: New file.
33990
33991         xreadlinkat: new module
33992         * modules/xreadlinkat: New module.
33993         * lib/xreadlinkat.c (xreadlinkat): New file.
33994         * lib/xreadlink.h (xreadlinkat): Declare it.
33995         * MODULES.html.sh (File system functions): Mention it.
33996
33997         areadlinkat: new module
33998         * lib/at-func.c (FUNC_FAIL): New define.
33999         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
34000         * modules/areadlinkat: New module.
34001         * lib/linkat.c (areadlinkat): Move...
34002         * lib/areadlinkat.c (areadlinkat): ...to new file.
34003         * lib/areadlink.h (areadlinkat): Declare it.
34004         * modules/linkat (Depends-on): Add areadlinkat.
34005         * MODULES.html.sh (File system functions): Mention it.
34006         * modules/areadlinkat-tests: New test.
34007         * tests/test-areadlinkat.c: New file.
34008
34009         areadlink, areadlink-with-size: add tests
34010         * modules/areadlink-tests: New test.
34011         * modules/areadlink-with-size-tests: Likewise.
34012         * tests/test-areadlink.h: New file.
34013         * tests/test-areadlink.c: Likewise.
34014         * tests/test-areadlink-with-size.c: Likewise.
34015
34016         maint: minor cleanups
34017         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
34018         _UNUSED_PARAMETER_ instead.
34019         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
34020         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
34021         * modules/linkat-tests (Files): Distribute test-link.h.
34022
34023         openat, utimens: whitespace cleanup
34024         * lib/openat.c: Prefer space throughout, rather than mix of 8
34025         spaces vs. tabs.
34026         * lib/at-func.c: Likewise.
34027         * lib/utimens.c: Likewise.
34028
34029         openat: avoid using wrong fd
34030         * lib/openat.c (openat_permissive): Reject user's fd if saving the
34031         working directory chooses same fd.
34032         * lib/at-func.c (AT_FUNC_NAME): Likewise.
34033
34034         mkdir, mkdirat: fix cygwin 1.5.x bug
34035         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
34036         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
34037         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
34038         bug.
34039         (gl_PREREQ_MKDIR): Delete unused macro.
34040         * modules/mkdir (Files): Track file rename.
34041         (configure.ac): Update macro name.
34042         * modules/openat (Depends-on): Add mkdir.
34043         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
34044
34045         mkdir, mkdirat: add tests
34046         * modules/mkdir-tests: New test.
34047         * tests/test-mkdir.h: New file.
34048         * tests/test-mkdir.c: Likewise.
34049         * tests/test-mkdirat.c: Likewise.
34050         * modules/openat-tests (Files): Add new files.
34051         (Makefile.am): Run new test.
34052
34053 2009-10-06  Eric Blake  <ebb9@byu.net>
34054
34055         doc: tweak *at function documentation
34056         * doc/posix-functions/faccessat.texi (faccessat): Mention
34057         known issue with replacement.
34058         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
34059         * doc/posix-functions/linkat.texi (linkat): Likewise.
34060         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
34061         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
34062         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
34063         * doc/posix-functions/renameat.texi (renameat): Likewise.
34064         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
34065
34066         openat: fix GNU/Hurd bug in unlinkat
34067         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
34068         broken.
34069         * doc/posix-functions/unlink.texi (unlink): Document this.
34070         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
34071
34072         fdopendir: fix GNU/Hurd bug
34073         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
34074         allowing non-directory fds.
34075         * lib/fdopendir.c (rpl_fdopendir): Work around it.
34076         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
34077         * modules/dirent (Makefile.am): Substitute it.
34078         * lib/dirent.in.h (fdopendir): Declare replacement.
34079         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
34080         * tests/test-fdopendir.c (main): Test something other than
34081         /dev/null, since on Hurd that behaves like a directory.
34082
34083         test-symlink: port to GNU/Hurd
34084         * tests/test-symlink.h (test_symlink): Relax expected errno.
34085
34086         doc: tweak more cygwin information
34087         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
34088         now compatible with glibc.
34089         * doc/posix-functions/getopt.texi (getopt): Likewise.
34090
34091         getopt-gnu: add another test
34092         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
34093         guarantee behavior relied on by m4.
34094         * tests/test-getopt.c (main): Use it.
34095         * modules/getopt-posix-tests (Depends-on): Add setenv.
34096         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
34097
34098         getopt: fix compilation on darwin
34099         * lib/getopt.in.h (includes): Leave breadcrumbs during system
34100         include.
34101         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
34102         Reported by Ludovic Courtès.
34103
34104 2009-10-06  Bruno Haible  <bruno@clisp.org>
34105
34106         * modules/size_max (Description): Discourage its use.
34107         Reported by Simon Josefsson.
34108
34109 2009-10-06  Jim Meyering  <meyering@redhat.com>
34110
34111         linkat: avoid compilation failure
34112         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
34113
34114 2009-10-05  Eric Blake  <ebb9@byu.net>
34115
34116         linkat: support Linux 2.6.17
34117         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
34118         linkat on Linux, but allow cache variable override.
34119         * lib/linkat.c (rpl_linkat): Define override.
34120         * modules/linkat (Depends-on): Add symlinkat.
34121         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
34122         * modules/unistd (Makefile.am): Substitute it.
34123         * lib/unistd.in.h (linkat): Declare replacement.
34124         Reported by Pádraig Brady.
34125
34126         quotearg: port test to systems with C.UTF-8 locale
34127         * tests/test-quotearg.c (struct result_strings): Add another
34128         member, differentiating between C.ASCII and C.UTF-8 handling.
34129         (compare_strings): Add parameter.
34130         (main): Adjust all callers.
34131
34132         getopt: avoid clash with FreeBSD _getopt_internal
34133         * lib/getopt.in.h (_getopt_internal): Override the name.
34134         * lib/getopt_int.h (includes): Pick up any overrides.
34135         Reported by Reuben Thomas.
34136
34137         hash: allow C89 compilation
34138         * lib/hash.c (check_tuning): Move declaration before statement.
34139         Reported by Reuben Thomas.
34140
34141 2009-10-05  Karl Berry  <karl@gnu.org>
34142
34143         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
34144
34145 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
34146             Bruno Haible  <bruno@clisp.org>
34147
34148         * lib/uname.c (uname): Use a table-driven algorithm to compute
34149         Windows NT versions.
34150
34151 2009-10-04  Bruno Haible  <bruno@clisp.org>
34152
34153         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
34154         program_invocation_short_name.
34155         * modules/progname (configure.ac): Test for presence of
34156         program_invocation_short_name.
34157         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
34158
34159 2009-10-04  Bruno Haible  <bruno@clisp.org>
34160
34161         * lib/progname.c (set_program_name): Fix comment.
34162         Reported by Jim Meyering.
34163
34164 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
34165             Bruno Haible  <bruno@clisp.org>
34166
34167         * lib/uname.c: Include <string.h>.
34168         (uname): Do only one call to GetVersionEx in the common case.
34169
34170 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
34171             Bruno Haible  <bruno@clisp.org>
34172
34173         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
34174         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
34175         (uname): Add support for Windows CE and various non-x86 CPU types.
34176
34177 2009-10-03  Bruno Haible  <bruno@clisp.org>
34178
34179         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
34180         invocation to tests/configure.ac.
34181         Reported by Ian Beckwith <ianb@erislabs.net>.
34182
34183 2009-10-02  Eric Blake  <ebb9@byu.net>
34184
34185         fchdir: avoid compiler warning
34186         * lib/fchdir.c (canonicalize_file_name)
34187         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
34188
34189         test-open: support mingw errno values
34190         * tests/test-open.h (test_open): Relax test.
34191         * tests/test-fopen.h (test_fopen): Likewise.
34192         * tests/test-openat-safer.c (main): Likewise.
34193
34194         open: fix opening directory on mingw
34195         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
34196
34197         test-open: on GNU/Hurd, /dev/null is a directory
34198         * tests/test-fopen.h (main): Rename...
34199         (test_fopen): ...to this.  Use a guaranteed non-directory when
34200         confirming open behavior on trailing slash.
34201         * tests/test-openat-safer.c (main): Likewise.
34202         * tests/test-open.h (main): Likewise....
34203         (test_open): ...to this.
34204         * tests/test-fopen.c (main): Adjust caller.
34205         * tests/test-fopen-safer.c (main): Likewise.
34206         * tests/test-open.c (main): Likewise.
34207         * tests/test-fcntl-safer.c (main): Likewise.
34208         Reported by Samuel Thibault.
34209
34210         rename, fchdir: don't ignore chdir failure
34211         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
34212         * lib/rename.c (rpl_rename) [W32]: Likewise.
34213         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
34214         an empty destination directory if source cannot be renamed,
34215         although there is still possibility for failure.
34216         * doc/posix-functions/rename.texi (rename): Document the race.
34217         Reported by Jim Meyering.
34218
34219         maint: cleanup whitespace in recent commits
34220         * lib/rename.c (rpl_rename): Remove tabs.
34221         * tests/test-link.h (test_link): Likewise.
34222         * lib/fchdir.c (get_name): Likewise.
34223         Reported by Jim Meyering.
34224
34225 2009-10-02  Ben Pfaff  <blp@gnu.org>
34226
34227         relocatable-prog-wrapper: Add missing dependency on
34228         double-slash-root.
34229         * modules/relocatable-prog-wrapper: Add dependency.
34230         Reported by Ian Beckwith <ianb@erislabs.net>.
34231
34232 2009-10-02  Eric Blake  <ebb9@byu.net>
34233
34234         renameat: fix Solaris bugs
34235         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
34236         needed fixing.
34237         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
34238         * modules/stdio (Makefile.am): Substitute it.
34239         * lib/stdio.in.h (renameat): Declare replacement.
34240         * lib/renameat.c (rpl_renameat): Implement fix.
34241
34242         renameat: new module
34243         * modules/renameat: New file.
34244         * lib/renameat.c (renameat): Likewise.
34245         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
34246         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
34247         * modules/stdio (Makefile.am): Substitute them.
34248         * lib/stdio.in.h (renameat): Declare it.
34249         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
34250         * doc/posix-functions/renameat.texi (renameat): Likewise.
34251         * modules/renameat-tests: New test.
34252         * tests/test-renameat.c: Likewise.
34253
34254         rename: fix mingw bugs
34255         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
34256         directory overwrite bugs.
34257
34258         rename: fix another cygwin 1.5 bug
34259         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
34260         checks.
34261         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
34262         unnecessary cygwin workarounds.  Also work around bug with moving
34263         full directory onto an empty one.
34264         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
34265
34266         rename-dest-slash: merge into rename module
34267         * modules/rename-dest-slash (Status): Mark obsolete.
34268         (Depends-on): Add rename.
34269         (Files): Let rename do it all.
34270         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
34271         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
34272         * m4/rename-dest-slash.m4: ...so this file can be deleted.
34273         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
34274         * lib/rename.c (rpl_rename): Update comments.
34275
34276         rename: fix cygwin 1.5.x bugs
34277         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
34278         * lib/rename.c (rpl_rename): Work around them.
34279         * modules/rename (Depends-on): Add same-inode.
34280
34281         rename: fix Solaris 10 bug
34282         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
34283         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
34284         was the only bug.
34285
34286         rename: fix Solaris 9 bug
34287         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
34288         on non-directory.  Avoid calling exit.
34289         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
34290         strdup.
34291         * modules/rename-tests (Depends-on): Drop lstat.
34292         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
34293         (gl_PREREQ_RENAME): Delete unused macro.
34294
34295         rename-dest-slash: fix NetBSD bug
34296         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
34297         links.
34298         * modules/rename-dest-slash (Depends-on): Add same-inode.
34299
34300         rename-tests: new test, exposes several platform bugs
34301         * modules/rename-tests: New file.
34302         * tests/test-rename.h: Likewise.
34303         * tests/test-rename.c: Likewise.
34304         * doc/posix-functions/rename.texi (rename): Improve documentation,
34305         including bugs that will eventually be fixed in gnulib.
34306
34307 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
34308
34309         * lib/uname.c: Include <stdlib.h>
34310         (uname): Assume version info is available.
34311
34312 2009-10-02  Jim Meyering  <meyering@redhat.com>
34313
34314         gnu-web-doc-update: correct --help output
34315         * build-aux/gnu-web-doc-update: Make --help output relevant.
34316
34317         gnu-web-doc-update: add standard options
34318         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
34319
34320         gnu-web-doc-update: New module.
34321         Use this script to automatically update the on-line web documentation
34322         for your GNU project at http://www.gnu.org/software/$pkg/manual/
34323         * modules/gnu-web-doc-update: New file, from coreutils.
34324         * build-aux/gnu-web-doc-update: New script.
34325
34326 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
34327
34328         link: LoadLibrary is not needed.
34329         * lib/link.c: Use GetModuleHandle.
34330
34331 2009-10-01  Eric Blake  <ebb9@byu.net>
34332
34333         getopt: bump serial number
34334         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
34335         change.
34336
34337         tests: tighten link, rmdir, and remove tests
34338         * tests/test-link.h (includes): No need to use <config.h> here.
34339         Clean up if directory hard link was created, otherwise test for
34340         trailing '.'.
34341         * tests/test-linkat.c (main): Simplify.
34342         * tests/test-remove.c (main): Enhance test for trailing '.'.
34343         * tests/test-rmdir.h (test_rmdir_func): Likewise.
34344
34345 2009-10-01  Jim Meyering  <meyering@redhat.com>
34346
34347         maint.mk: requiring "make major" was annoying, for a "minor" release.
34348         What is intended is "stable", to contrast with alpha and beta,
34349         so require "make stable", not "make major".
34350         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
34351         (get_tool_versions): Likewise.
34352         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
34353
34354 2009-09-30  Ben Pfaff  <blp@gnu.org>
34355
34356         Fix broken build of replacement for Windows tmpfile().
34357         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
34358         flags argument added along with the 'mkostemp' module.
34359
34360 2009-09-28  Bruno Haible  <bruno@clisp.org>
34361
34362         Avoid identifier clash with POSIX function 'remove' defined as a macro.
34363         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
34364         to 'remove_elt'.
34365         (gl_list_remove): Update.
34366         * lib/gl_list.c (gl_list_remove): Update.
34367         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
34368         to 'remove_elt'.
34369         (gl_oset_remove): Update.
34370         * lib/gl_list.c (gl_oset_remove): Update.
34371         Reported by Eric Blake.
34372
34373 2009-09-28  Eric Blake  <ebb9@byu.net>
34374
34375         doc: mention yet more cygwin 1.7 status
34376         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
34377         cygwin.
34378         * doc/glibc-functions/execvpe.texi (execvpe): New file.
34379         * doc/gnulib.texi (Glibc unistd.h): Mention it.
34380
34381         argp: fix test failure
34382         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
34383         that are not upper-case.  Pass correct range to tolower.
34384
34385 2009-09-27  Jim Meyering  <meyering@redhat.com>
34386
34387         test-yesno: work around sparc-dash here-document infelicity
34388         Without this change, the literal \177 byte in a here document
34389         would make dash 0.5.5.1-3 access uninitialized memory.
34390         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
34391         Instead, use a marker, "@", and filter through tr to create the desired
34392         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
34393
34394 2009-09-27  Bruno Haible  <bruno@clisp.org>
34395
34396         Disable untested support for new flavours of ACLs on AIX.
34397         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
34398         progress.
34399         * lib/set-mode-acl.c (qset_acl): Likewise.
34400
34401 2008-12-07  Bruno Haible  <bruno@clisp.org>
34402
34403         Add support for new flavours of ACLs on AIX. (Untested.)
34404         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
34405         (file_has_acl): Add support for newer AIX.
34406         * lib/set-mode-acl.c (qset_acl): Likewise.
34407         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
34408         Rainer Tammer <tammer@tammer.net>.
34409
34410 2009-09-26  Eric Blake  <ebb9@byu.net>
34411
34412         argp: fix compilation of getopt
34413         * lib/getopt.in.h (includes): Use different guard than glibc.
34414         Reported by Sergey Poznyakoff.
34415
34416         doc: mention more cygwin 1.7 status
34417         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
34418         bug.
34419         * doc/posix-functions/execl.texi (execl): Likewise.
34420         * doc/posix-functions/execle.texi (execle): Likewise.
34421         * doc/posix-functions/execlp.texi (execlp): Likewise.
34422         * doc/posix-functions/execv.texi (execv): Likewise.
34423         * doc/posix-functions/execve.texi (execve): Likewise.
34424         * doc/posix-functions/execvp.texi (execvp): Likewise.
34425         * doc/glibc-functions/canonicalize_file_name.texi
34426         (canonicalize_file_name): Cygwin 1.7 now provides this.
34427         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
34428         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
34429         on AT_SYMLINK_NOFOLLOW.
34430
34431 2009-09-24  Eric Blake  <ebb9@byu.net>
34432
34433         test-linkat: make test more robust
34434         * tests/test-linkat.c (main): Avoid collision with EEXIST.
34435
34436         getopt: fix inclusion guards for cygwin
34437         * modules/getopt-posix (Depends-on): Add include-next.
34438         (Makefile.am): Substitute more items in replacement header.
34439         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
34440         <getopt.h>.
34441         * lib/getopt.in.h (includes): Use split inclusion guard, and
34442         prefer <getopt.h> over include <unistd.h> when one is present.
34443         (option): Also override name of 'struct option'.
34444
34445         same-inode: revert prior change; it is not yet ready
34446         * NEWS: Undo mention of this change.
34447         * lib/same-inode.h (same-inode.h): Undo tri-state change.
34448         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
34449         * lib/cycle-check.c (cycle_check): Likewise.
34450         * lib/same.c (same_name): Likewise.
34451         * lib/at-func2.c (at_func2): Likewise.
34452
34453 2009-09-23  Eric Blake  <ebb9@byu.net>
34454
34455         linkat: new module
34456         * modules/linkat: New file.
34457         * lib/at-func2.c (at_func2): Likewise.
34458         * lib/linkat.c (linkat): Likewise.
34459         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
34460         * lib/openat-priv.h (at_func2): Add declaration.
34461         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
34462         * modules/unistd (Makefile.am): Substitute them.
34463         * lib/unistd.in.h (linkat): Declare it.
34464         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
34465         * doc/posix-functions/linkat.texi (linkat): Likewise.
34466         * doc/posix-functions/link.texi (link): Tweak wording.
34467         * tests/test-link.c (main): Move guts...
34468         * tests/test-link.h (test_link): ...into new file.
34469         * modules/linkat-tests: New test.
34470         * tests/test-linkat.c: Likewise.
34471         * modules/link-tests (Files): Ship new file.
34472         (Depends-on): Add stdbool.
34473
34474         dirname: add library-safe mdir_name
34475         * lib/dirname.h (mdir_name): New prototype.
34476         * lib/dirname.c (dir_name): Move guts...
34477         (mdir_name): ...to new function that avoids xalloc_die.
34478
34479         fchdir: another mingw fix
34480         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
34481         * lib/fchdir.c (get_name): New helper method; skips canonicalize
34482         on mingw (where it has not yet been ported), and make it optional
34483         elsewhere.
34484         (_gl_register_fd): Use it.
34485
34486         same-inode: make SAME_INODE tri-state, to port to mingw
34487         * NEWS: Mention this change.
34488         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
34489         st_ino always being 0.
34490         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
34491         * lib/cycle-check.c (cycle_check): Likewise.
34492         * lib/same.c (same_name): Likewise.
34493
34494         lstat: avoid mingw compilation error
34495         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
34496         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
34497         lstat ourselves.
34498         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
34499         was adequate.
34500         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
34501         the checks for lstat.
34502         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
34503
34504         link: fix test failure on Solaris 9
34505         * lib/link.c (rpl_link): Don't assume link will catch bogus
34506         trailing slash on source.
34507
34508         test-symlinkat: enhance test
34509         * tests/test-readlink.c (main): Move guts...
34510         * tests/test-readlink.h (test_readlink): ...into new file.
34511         * tests/test-symlink.c (main): Move guts...
34512         * tests/test-symlink.h (test_symlink): ...into new file.
34513         * tests/test-symlinkat.c (main): Use new files for further
34514         coverage.
34515         (do_symlink, do_readlink): New helper functions.
34516         * modules/symlink-tests (Files): Ship new file.
34517         (Depends-on): Add stdbool.
34518         * modules/readlink-tests (Files): Ship new file.
34519         (Depends-on): Add stdbool.
34520         * modules/symlinkat-tests (Files): Use new files.
34521
34522 2009-09-23  Eric Blake  <ebb9@byu.net>
34523
34524         readlink: document portability issue with symlink length
34525         * doc/posix-functions/lstat.texi (lstat): Mention that some file
34526         systems have bogus st_size on symlinks, and mention the
34527         areadlink-with-size module.
34528         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
34529         * doc/posix-functions/readlink.texi (readlink): Mention the
34530         areadlink module, and ERANGE failure.
34531         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
34532         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
34533
34534         readlink: fix Solaris 9 bug with trailing slash
34535         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
34536         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
34537         * doc/posix-functions/readlink.texi (readlink): Document this.
34538         * modules/readlink-tests: New test.
34539         * tests/test-readlink.c: Likewise.
34540
34541         readlink: fix cygwin 1.5.x bug with return type
34542         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
34543         * lib/unistd.in.h (readlink): Use ssize_t.
34544         * lib/readlink.c (readlink): Likewise.
34545         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
34546         * modules/unistd (Makefile.am): Substitute it.
34547         * lib/unistd.in.h (readlink): Declare replacement.
34548         * doc/posix-functions/readlink.texi (readlink): Document this.
34549
34550         symlink: use throughout gnulib
34551         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
34552         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
34553         symlink is not used.
34554         * modules/symlinkat (Depends-on): Add symlink.
34555         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
34556         * modules/canonicalize-tests (Depends-on): Likewise.
34557         * modules/lstat-tests (Depends-on): Likewise.
34558         * modules/openat-tests (Depends-on): Likewise.
34559         * modules/remove-tests (Depends-on): Likewise.
34560         * modules/rmdir-tests (Depends-on): Likewise.
34561         * modules/unlink-tests (Depends-on): Likewise.
34562         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
34563         * tests/test-canonicalize.c (symlink): Likewise.
34564         * tests/test-fstatat.c (symlink): Likewise.
34565         * tests/test-lstat.c (symlink): Likewise.
34566         * tests/test-remove.c (symlink): Likewise.
34567         * tests/test-rmdir.c (symlink): Likewise.
34568         * tests/test-unlink.c (symlink): Likewise.
34569         * tests/test-unlinkat.c (symlink): Likewise.
34570
34571         symlink: new module, for Solaris 9 bug
34572         * modules/symlink: New file.
34573         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
34574         * lib/symlink.c: Likewise.
34575         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
34576         * modules/unistd (Makefile.am): Substitute them.
34577         * lib/unistd.in.h (symlink): Declare replacement.
34578         * MODULES.html.sh (File system functions): Mention it.
34579         * doc/posix-functions/symlink.texi (symlink): Likewise.
34580         * modules/symlink-tests: New test.
34581         * tests/test-symlink.c: Likewise.
34582
34583 2009-09-23  Bruno Haible  <bruno@clisp.org>
34584
34585         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
34586         when needed.
34587         Test case: gnulib-tool --import --with-tests atexit inttypes.
34588         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
34589
34590 2009-09-23  Bruno Haible  <bruno@clisp.org>
34591
34592         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
34593         subcommand, not in a subshell.
34594
34595 2009-09-22  Eric Blake  <ebb9@byu.net>
34596
34597         unistd: sort replacement declarations
34598         * lib/unistd.in.h: Sort declarations.
34599
34600         open, openat: minor optimization
34601         * lib/open.c (open): If open succeeded, len is non-zero.
34602         * lib/openat.c (rpl_openat): Likewise.
34603
34604         link-follow: ensure correct result
34605         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
34606         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
34607         distinguish between possible failures.
34608
34609 2009-09-21  Eric Blake  <ebb9@byu.net>
34610
34611         fts: avoid compiler warning
34612         * lib/fts.c (dirent_inode_sort_may_be_useful)
34613         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
34614
34615 2009-09-19  Bruno Haible  <bruno@clisp.org>
34616
34617         * lib/progreloc.c (canonicalize_file_name): New declaration.
34618
34619 2009-09-19  Eric Blake  <ebb9@byu.net>
34620
34621         link: fix quoting
34622         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
34623
34624         openat: fix openat bugs on Solaris 9
34625         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
34626         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
34627         * modules/openat (Depends-on): Add open.
34628         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
34629         * modules/fcntl-h (Makefile.am): Substitute it.
34630         * lib/fcntl.in.h (openat): Declare replacement.
34631         * doc/posix-functions/openat.texi (openat): Document this.
34632
34633         openat: move fstatat and unlinkat into correct files
34634         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
34635         compiled.
34636         * lib/openat.c (fstatat, unlinkat): Move...
34637         * lib/fstatat.c (fstatat): ...into correct files.
34638         * lib/unlinkat.c (unlinkat): Likewise.
34639
34640         openat: fix unlinkat bugs on Solaris 9
34641         * lib/unlinkat.c (unlinkat): New file.
34642         * modules/openat (Depends-on): Add unlink.
34643         (Files): Distribute it.
34644         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
34645         trailing slash behavior is broken.
34646         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
34647         * modules/unistd (Makefile.am): Substitute it.
34648         * lib/unistd.in.h (unlinkat): Declare replacement.
34649         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
34650
34651         openat: fix fstatat bugs on Solaris 9
34652         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
34653         stat.
34654         * doc/posix-functions/fstatat.texi (fstatat): Document this.
34655
34656         test-unlinkat: enhance test, to expose Solaris 9 bug
34657         * tests/test-unlink.c (main): Factor guts...
34658         * tests/test-unlink.h (test_rmdir_func): ...into new file.
34659         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
34660         * tests/test-rmdir.c (main): Adjust caller.
34661         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
34662         (unlinker): New helper function.
34663         (rmdirat): Enhance check.
34664         * modules/rmdir-tests (Depends-on): Add stdbool.
34665         * modules/unlink-tests (Depends-on): Likewise.
34666         (Files): Add test-unlink.h.
34667         * modules/openat-tests (Files): Likewise.
34668         (Depends-on): Add unlinkdir.
34669
34670         test-fstatat: new test, to expose Solaris 9 bugs
34671         * tests/test-stat.c (main): Factor guts...
34672         * tests/test-stat.h (test_stat_func): ...into new file.
34673         * tests/test-lstat.c (main): Factor guts...
34674         * tests/test-lstat.h (test_lstat_func): ...into new file.
34675         * tests/test-fstatat.c: New file.
34676         * modules/stat-tests (Files): Add test-stat.h.
34677         * modules/lstat-tests (Files): Add test-lstat.h.
34678         (Depends-on): Add stdbool.
34679         * modules/openat-tests (Depends-on): Add pathmax.
34680         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
34681         (Makefile.am): Run new test.
34682
34683         remove: new module, for mingw and Solaris 9 bugs
34684         * modules/remove: New file.
34685         * lib/remove.c: Likewise.
34686         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
34687         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
34688         * modules/stdio (Makefile.am): Use them.
34689         * lib/stdio.in.h (remove): Declare replacement.
34690         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
34691         * doc/posix-functions/remove.texi (remove): Likewise.
34692         * modules/remove-tests: New test.
34693         * tests/test-remove.c: Likewise.
34694
34695         unlink: new module, for Solaris 9 bug
34696         * modules/unlink: New file.
34697         * lib/unlink.c: Likewise.
34698         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
34699         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
34700         * modules/unistd (Makefile.am): Use them.
34701         * lib/unistd.in.h (stat): Declare replacement.
34702         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
34703         * doc/posix-functions/unlink.texi (unlink): Likewise.
34704         * modules/unlink-tests: New test.
34705         * tests/test-unlink.c: Likewise.
34706
34707         lstat: fix Solaris 9 bug
34708         * lib/lstat.c (lstat): Also check for trailing slash on
34709         non-symlink, non-directories.  Use stat module to simplify logic.
34710         * doc/posix-functions/lstat.texi (lstat): Document it.
34711         * modules/lstat-tests (Depends-on): Add errno, same-inode.
34712         (configure.ac): Check for symlink.
34713         * tests/test-lstat.c (main): Add more tests.
34714
34715         stat: add as dependency to other modules
34716         * modules/chown (Depends-on): Add stat.
34717         * modules/euidaccess (Depends-on): Likewise.
34718         * modules/fchdir (Depends-on): Likewise.
34719         * modules/isdir (Depends-on): Likewise.
34720         * modules/link (Depends-on): Likewise.
34721         * modules/lstat (Depends-on): Likewise.
34722         * modules/mkdir-p (Depends-on): Likewise.
34723         * modules/modechange (Depends-on): Likewise.
34724         * modules/open (Depends-on): Likewise.
34725         * modules/readlink (Depends-on): Likewise.
34726         * modules/same (Depends-on): Likewise.
34727
34728         stat: fix Solaris 9 bug
34729         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
34730         slash.
34731         * lib/stat.c (rpl_stat): Work around it.
34732         * doc/posix-functions/stat.texi (stat): Update documentation.
34733
34734         stat: new module, for mingw bug
34735         * modules/stat: New file.
34736         * lib/stat.c: Likewise.
34737         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
34738         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
34739         * modules/sys_stat (Makefile.am): Use them.
34740         * lib/sys_stat.in.h (stat): Declare replacement.
34741         * lib/openat.c (fstatat): Deal with lstat and stat being function
34742         macros.
34743         * modules/openat (Depends-on): Add inline.
34744         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
34745         * doc/posix-functions/stat.texi (stat): Likewise.
34746         * modules/stat-tests: New test.
34747         * tests/test-stat.c: Likewise.
34748
34749 2009-09-19  Jim Meyering  <meyering@redhat.com>
34750
34751         syntax-check: detect unnecessary inclusion of canonicalize.h
34752         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
34753
34754 2009-09-19  Eric Blake  <ebb9@byu.net>
34755
34756         canonicalize-lgpl: adjust clients to use correct header
34757         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
34758         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
34759         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
34760         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
34761         * lib/progreloc.c (includes): Likewise.
34762
34763 2009-09-19  Jim Meyering  <meyering@redhat.com>
34764
34765         test-posixtm.c: correct a comment
34766         * tests/test-posixtm.c: Correct first-line comment.
34767         Spotted by Eric Blake.
34768
34769 2009-09-16  Jim Meyering  <meyering@redhat.com>
34770
34771         posixtm-tests: make T const-correct; add a test case
34772         * tests/test-posixtm.c (T): Declare const.
34773         Add a test for -(2^31+1).
34774         Remove useless can-succeed-only-in-2002 test.
34775
34776         posixtm-tests: adjust the sole failing test
34777         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
34778         expected output matches what mktime now produces.  Cross-checked via
34779         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
34780
34781         posixtm: move #ifdef'd tests into a new module
34782         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
34783         * tests/test-posixtm.c: ... this new file.
34784         * modules/posixtm-tests: New module.
34785
34786 2009-09-19  Eric Blake  <ebb9@byu.net>
34787
34788         openat: simplify use of at-func.c
34789         * lib/at-func.c (includes): Include prerequisites here, to
34790         simplify requirements on client files.
34791         * lib/openat-priv.h: Add double-inclusion guard.
34792         * lib/faccessat.c (includes): Simplify.
34793         * lib/fchmodat.c (includes): Likewise.
34794         * lib/fchownat.c (includes): Likewise.
34795         * lib/mkdirat.c (includes): Likewise.
34796         * lib/mkfifoat.c (includes): Likewise.
34797         * lib/symlinkat.c (includes): Likewise.
34798
34799         openat: allow return of fd 0
34800         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
34801         * modules/save-cwd (Depends-on): Replace fcntl-safer with
34802         unistd-safer.
34803         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
34804         <fcntl.h>; this module does not leak fds.
34805         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
34806         must be allowed to return 0, leaving openat_safer to add the
34807         safety.
34808         (openat_permissive): Avoid writing to just-opened fd 2 if
34809         restoring the current directory fails.
34810         * lib/openat-die.c (openat_restore_fail): Add comment.
34811         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
34812         (save_cwd): Guarantee safe fd, but without use of open_safer.
34813         * tests/test-openat.c: New test.
34814         * modules/openat-tests (Files, Makefile.am): Distribute and build
34815         new file.
34816
34817         relocatable-prog-wrapper: fix build
34818         * modules/relocatable-prog-wrapper (Files): Update name of
34819         canonicalize m4 file, broken on 2009-09-17.
34820         Reported by emad hajjar <aleppos@hotmail.com>.
34821
34822 2009-09-19  Bruno Haible  <bruno@clisp.org>
34823
34824         * lib/safe-alloc.h: Use the standard header with GPL copyright.
34825         * lib/safe-alloc.c: Likewise.
34826         Reported by Ian Beckwith <ianb@erislabs.net>.
34827
34828 2009-09-18  Bruno Haible  <bruno@clisp.org>
34829
34830         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
34831         Reported by <erobles@sensacd.com.mx>.
34832
34833 2009-09-17  Eric Blake  <ebb9@byu.net>
34834
34835         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
34836         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
34837         slashes when checking if last component is missing.
34838         * tests/test-canonicalize.c (main): Test this.
34839
34840         canonicalize, canonicalize-lgpl: honor // if distinct from /
34841         * modules/canonicalize (Files): Add double-slash-root.m4.
34842         * modules/canonicalize-lgpl (Files): Likewise.
34843         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
34844         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
34845         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
34846         fallback definition.
34847         (canonicalize_filename_mode): Use it to protect //.
34848         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
34849         (__realpath): Likewise.
34850         * tests/test-canonicalize.c (main): Test this.
34851         * tests/test-canonicalize-lgpl.c (main): Likewise.
34852         * modules/canonicalize-tests (Depends-on): Add same-inode.
34853         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
34854
34855         canonicalize-lgpl: fix glibc bug with trailing slash
34856         * m4/canonicalize-lgpl.m4: Move contents...
34857         * m4/canonicalize.m4: ...here.
34858         (gl_CANONICALIZE_LGPL): Factor realpath check...
34859         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
34860         glibc 2.3.5 bug, fixed 2005-04-27.
34861         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
34862         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
34863         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
34864         * modules/canonicalize-lgpl (Files): Manage file rename.
34865         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
34866         * modules/stdlib (Makefile.am): Substitute witness.
34867         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
34868         is needed.
34869         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
34870         replacement is required.
34871         * lib/canonicalize.c (canonicalize_file_name): Likewise.
34872         * doc/glibc-functions/canonicalize_file_name.texi
34873         (canonicalize_file_name): Document this.
34874         * doc/posix-functions/realpath.texi (realpath): Likewise.
34875
34876         canonicalize-lgpl: reject non-directory with trailing slash
34877         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
34878         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
34879         catches failures in glibc 2.3.5.
34880         * tests/test-canonicalize.c (main): Likewise.
34881
34882         canonicalize-lgpl: use native realpath if it works
34883         * lib/canonicalize-lgpl.c (realpath): Guard with
34884         FUNC_REALPATH_WORKS.
34885         * lib/stdlib.in.h (realpath): Make declaration optional based on
34886         HAVE_REALPATH.
34887         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
34888         native realpath works.
34889         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
34890         * modules/stdlib (Makefile.am): Substitute witness.
34891
34892         canonicalize, canonicalize-lgpl: use <stdlib.h>
34893         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
34894         (Include): Mention <stdlib.h>.
34895         (configure.ac): Mention functions we provide.
34896         * modules/canonicalize (configure.ac): Likewise.
34897         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
34898         realpath if canonicalize_file_name is missing.
34899         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
34900         * modules/stdlib (Makefile.am): Substitute witnesses.
34901         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
34902         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
34903         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
34904         * NEWS: Document this.
34905         * doc/glibc-functions/canonicalize_file_name.texi
34906         (canonicalize_file_name): Likewise.
34907         * doc/posix-functions/realpath.texi (realpath): Likewise.
34908         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
34909
34910         test-canonicalize: consolidate into single C program
34911         * tests/test-canonicalize.sh: Delete; move setup into...
34912         * tests/test-canonicalize.c (main): ...the program, making it
34913         easier to run in debugger.  Add some tests.
34914         * modules/canonicalize-tests (Files): Remove unused file.
34915         (Depends-on): Add progname.
34916         (configure.ac, Makefile.am): Simplify.
34917
34918         test-canonicalize-lgpl: consolidate into single C program
34919         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
34920         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
34921         easier to run in debugger.  Add some tests.
34922         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
34923         (configure.ac, Makefile.am): Simplify.
34924
34925         canonicalize: avoid resolvepath
34926         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
34927         unnecessary checks.
34928         * lib/canonicalize.c (includes): Simplify.
34929         (canonicalize_file_name): Drop resolvepath implementation.
34930         * modules/canonicalize (Depends-on): Drop filenamecat.
34931
34932         canonicalize: don't lose errno
34933         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
34934         over calls to free.
34935
34936         canonicalize: simplify errno handling
34937         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
34938         assignment.
34939
34940         canonicalize, canonicalize-lgpl: update module dependencies
34941         * modules/canonicalize (Depends-on): Add extensions, lstat,
34942         pathmax, stdlib.
34943         (Files): Drop pathmax.h.
34944         (configure.ac): Adjust macro name.
34945         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
34946         lstat, stdlib, sys_stat.
34947         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
34948         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
34949         extensions.
34950         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
34951         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
34952         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
34953         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
34954         declaration, if available.
34955         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
34956         we can rely on the readlink module.
34957         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
34958         (includes): Use <unistd.h> unconditionally.
34959
34960 2009-09-17  Eric Blake  <ebb9@byu.net>
34961
34962         maint: make Include sections of modules consistent
34963         * modules/alloca: Use only header name; no need to list #include.
34964         * modules/alloca-opt: Likewise.
34965         * modules/arpa_inet: Likewise.
34966         * modules/canon-host: Likewise.
34967         * modules/configmake: Likewise.
34968         * modules/dirent: Likewise.
34969         * modules/eealloc: Likewise.
34970         * modules/environ: Likewise.
34971         * modules/fchdir: Likewise.
34972         * modules/fcntl: Likewise.
34973         * modules/fcntl-h: Likewise.
34974         * modules/gethrxtime: Likewise.
34975         * modules/gettime: Likewise.
34976         * modules/ignore-value: Likewise.
34977         * modules/inet_ntop: Likewise.
34978         * modules/inet_pton: Likewise.
34979         * modules/inttypes: Likewise.
34980         * modules/isnand-nolibm: Likewise.
34981         * modules/isnanf-nolibm: Likewise.
34982         * modules/mbchar: Likewise.
34983         * modules/mbfile: Likewise.
34984         * modules/mbiter: Likewise.
34985         * modules/mbuiter: Likewise.
34986         * modules/netdb: Likewise.
34987         * modules/netinet_in: Likewise.
34988         * modules/nproc: Likewise.
34989         * modules/pagealign_alloc: Likewise.
34990         * modules/poll: Likewise.
34991         * modules/printf-frexp: Likewise.
34992         * modules/pthread: Likewise.
34993         * modules/putenv: Likewise.
34994         * modules/random_r: Likewise.
34995         * modules/relocatable-prog: Likewise.
34996         * modules/search: Likewise.
34997         * modules/select: Likewise.
34998         * modules/selinux-h: Likewise.
34999         * modules/settime: Likewise.
35000         * modules/signal: Likewise.
35001         * modules/size_max: Likewise.
35002         * modules/socklen: Likewise.
35003         * modules/ssize_t: Likewise.
35004         * modules/stdarg: Likewise.
35005         * modules/stdbool: Likewise.
35006         * modules/stddef: Likewise.
35007         * modules/stdint: Likewise.
35008         * modules/stdio: Likewise.
35009         * modules/stdlib: Likewise.
35010         * modules/string: Likewise.
35011         * modules/strings: Likewise.
35012         * modules/sys_file: Likewise.
35013         * modules/sys_ioctl: Likewise.
35014         * modules/sys_select: Likewise.
35015         * modules/sys_socket: Likewise.
35016         * modules/sys_stat: Likewise.
35017         * modules/sys_time: Likewise.
35018         * modules/sys_times: Likewise.
35019         * modules/sys_utsname: Likewise.
35020         * modules/sys_wait: Likewise.
35021         * modules/sysexits: Likewise.
35022         * modules/time: Likewise.
35023         * modules/times: Likewise.
35024         * modules/tmpfile: Likewise.
35025         * modules/trim: Likewise.
35026         * modules/unistd: Likewise.
35027         * modules/wchar: Likewise.
35028         * modules/wctype: Likewise.
35029
35030 2009-09-17  Bruno Haible  <bruno@clisp.org>
35031
35032         Make getdate.y compile on QNX and NetBSD 5 / i386.
35033         * m4/getdate.m4 (gl_GETDATE): Conditionally define
35034         TIME_T_FITS_IN_LONG_INT.
35035         * lib/getdate.y (long_time_t): New type.
35036         (relative_time): Change type of 'seconds' field to long_time_t.
35037         (get_date): Update types of local variables. Check against overflow
35038         during conversion from long_time_t to time_t.
35039         Reported by Matt Kraai <kraai@ftbfs.org>
35040         and Hasso Tepper <hasso@netbsd.org>.
35041
35042 2009-09-17  Bruno Haible  <bruno@clisp.org>
35043
35044         * modules/COPYING: Update copyright years.
35045         * modules/README: Likeiwse.
35046         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
35047         Reported by Ian Beckwith <ianb@erislabs.net>.
35048
35049 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
35050
35051         * users.txt: Update references for gnuit package.
35052
35053 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
35054
35055         * m4/getdelim.m4: Fix typo in copyright line.
35056
35057 2009-09-17  Bruno Haible  <bruno@clisp.org>
35058
35059         * lib/atoll.c: Use the standard header with GPL copyright.
35060         * lib/argz.in.h: Likewise.
35061         * lib/glob.c: Likewise.
35062         * lib/glob-libc.h: Likewise.
35063         * lib/random_r.c: Likewise.
35064         * lib/siglist.h: Likewise.
35065         * lib/strsignal.c: Likewise.
35066         Reported by Ian Beckwith <ianb@erislabs.net>.
35067
35068 2009-09-17  Eric Blake  <ebb9@byu.net>
35069
35070         rmdir: ensure correct dependency order
35071         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
35072
35073 2009-09-17  Bruno Haible  <bruno@clisp.org>
35074
35075         Disable assertion that fails on NetBSD 5 / i386.
35076         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
35077         Reported by Sam Steingold <sds@gnu.org>
35078         and Hasso Tepper <hasso@netbsd.org>.
35079
35080 2009-09-16  Eric Blake  <ebb9@byu.net>
35081
35082         unlinkdir: port to mingw
35083         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
35084         on which no one can unlink a directory.
35085
35086         stdlib: sort witness names
35087         * modules/stdlib (Makefile.am): Sort replacements.
35088         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
35089         * lib/stdlib.in.h: Likewise.
35090
35091         parse-duration-tests: avoid link failure
35092         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
35093         LIBINTL.
35094         Reported by Tom G. Christensen.
35095
35096         openat-tests: ensure unlinkat behaves like rmdir
35097         * tests/test-rmdir.c (main): Factor guts...
35098         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
35099         * modules/rmdir-tests (Files): Ship new file.
35100         * modules/openat-tests: New test.
35101         * tests/test-unlinkat.c: Likewise.
35102
35103         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
35104         * modules/rmdir-errno (Status, Notice): Now obsolete.
35105
35106         rmdir: work around cygwin 1.5.x and mingw bugs
35107         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
35108         * lib/rmdir.c (rmdir): Work around it.
35109         * modules/rmdir (Status, Notice): No longer obsolete.
35110         (Files): Add dos.m4.
35111         (Depends-on): Add unistd.
35112         (configure.ac): Set witnesses.
35113         (License): Relax to LGPLv2+.
35114         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
35115         * modules/unistd (Makefile.am): Substitute witnesses.
35116         * lib/unistd.in.h (rmdir): Declare replacement.
35117         * doc/posix-functions/rmdir.texi (rmdir): Document this.
35118         * modules/rmdir-tests: New tests.
35119         * tests/test-rmdir.c: Likewise.
35120
35121 2009-09-15  Eric Blake  <ebb9@byu.net>
35122
35123         fchdir: improve use of replacement functions
35124         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
35125         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
35126         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
35127         REPLACE_CLOSEDIR.
35128         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
35129         * modules/sys_stat (Makefile.am): Substitute correct witness.
35130         * modules/dirent (Makefile.am): Likewise.
35131         * modules/unistd (Makefile.am): Likewise.
35132         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
35133         * lib/unistd.in.h (dup): Likewise.
35134         * lib/sys_stat.in.h (fstat): Likewise.
35135
35136         maint: ignore gnulib-tool temp files
35137         * .gitignore: Ignore files created during gnulib-tool --test.
35138
35139 2009-09-13  Jim Meyering  <meyering@redhat.com>
35140
35141         posixtm: don't reject a time that specify "60" as the number of seconds
35142         * lib/posixtm.c (posixtime): The code to reject invalid dates
35143         would also reject a time specified with the .60 suffix.
35144         But POSIX allows that, in order to accommodate leap seconds.
35145         So don't reject it.
35146         (main): Adjust tests accordingly.
35147         * modules/posixtm (Depends-on): Add stpcpy.
35148
35149 2009-09-11  Jim Meyering  <meyering@redhat.com>
35150
35151         announce-gen: include [$release_type] in emitted Subject:
35152         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
35153         e.g., [stable] in the emitted Subject: line.
35154
35155 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35156
35157         Remove obsolete macros from several modules.
35158         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
35159         obsolete Autoconf macros with their modern counterparts.
35160         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
35161         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
35162         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
35163         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
35164         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
35165         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
35166         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
35167         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
35168         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
35169         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
35170         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
35171         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
35172         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
35173         * m4/sockets.m4 (gl_SOCKETS): Likewise.
35174         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
35175         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
35176         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
35177         * m4/time_r.m4 (gl_TIME_R): Likewise.
35178         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
35179         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
35180         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
35181
35182         Fix copyright header in build-aux scripts.
35183         * build-aux/git-version-gen: Fix copyright header to match GPLv3
35184         recommendation.
35185         * build-aux/ncftpput-ftp: Likewise.
35186         * build-aux/update-copyright: Likewise.
35187
35188 2009-09-09  Eric Blake  <ebb9@byu.net>
35189
35190         test-link: allow Linux choice of errno
35191         * tests/test-link.c (main): Relax test for alternate error.
35192
35193         strndup: fix improper m4 caching
35194         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
35195         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
35196         (gl_PREREQ_STRNDUP): Delete.
35197         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
35198         * modules/string (Makefile.am): Substitute it.
35199         * lib/string.in.h (strndup): Modernize prototype.
35200
35201         getcwd: port to mingw
35202         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
35203         different from the POSIX assumptions made throughout the getcwd
35204         module; fortunately, the mingw getcwd does not need replacement.
35205         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
35206         * modules/getcwd-tests: New test.
35207         * tests/test-getcwd.c: Likewise.
35208
35209         link: fix platform bugs
35210         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
35211         * lib/link.c (link): Work around them.  Fix related mingw bug.
35212         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
35213         * modules/unistd (Makefile.am): Substitute it.
35214         * lib/unistd.in.h (link): Declare replacement.
35215         * doc/posix-functions/link.texi (link): Document this.
35216         * modules/link (Depends-on): Add strdup-posix, sys_stat.
35217
35218         test-link: consolidate into single C program, test more cases
35219         * tests/test-link.sh: Delete.
35220         * tests/test-link.c: Test more error conditions.  Exposes bugs on
35221         at least Cygwin and Solaris.
35222         * modules/link-tests (Files): Remove unused file.
35223         (Depends-on): Add errno, sys_stat.
35224         (Makefile.am): Simplify.
35225
35226 2009-09-08  Bruno Haible  <bruno@clisp.org>
35227
35228         Work around towlower, towupper bug on mingw.
35229         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
35230         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
35231         * doc/posix-functions/towlower.texi: Mention the mingw bug.
35232         * doc/posix-functions/towupper.texi: Likewise.
35233         Reported by Eric Blake.
35234
35235 2009-09-08  Jim Meyering  <meyering@redhat.com>
35236
35237         build: don't try to run autoheader if we don't use it
35238         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
35239         is not used in configure.ac.
35240
35241 2009-09-08  Eric Blake  <ebb9@byu.net>
35242
35243         euidaccess: fix compilation error
35244         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
35245
35246         rawmemchr: relax license
35247         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
35248         okay.
35249         Reported by Jim Meyering.
35250
35251         mkfifoat: new module
35252         * modules/mkfifoat: New file.
35253         * lib/mkfifoat.c: Likewise.
35254         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
35255         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
35256         * modules/sys_stat (Makefile.am): Use them.
35257         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
35258         * MODULES.html.sh (File system functions): Mention module.
35259         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
35260         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
35261         * modules/mkfifoat-tests: New test.
35262         * tests/test-mkfifoat.c: Likewise.
35263
35264         strchrnul: relax license
35265         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
35266         okay.
35267         Reported by Jim Meyering.
35268
35269 2009-09-08  Eric Blake  <ebb9@byu.net>
35270
35271         fstatat: fix compilation on Solaris
35272         * lib/fstatat.c (includes): Add fcntl.h.
35273         Reported by Pádraig Brady.
35274
35275 2009-09-07  Eric Blake  <ebb9@byu.net>
35276
35277         rename: modernize replacement
35278         * modules/rename (Depends-on): Add stdio.
35279         (configure.ac): Declare witness.
35280         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
35281         stdio take care of replacement.
35282         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
35283         * modules/stdio (Makefile.am): Substitute them.
35284         * lib/stdio.in.h (rename): Declare replacement.
35285         * lib/rename.c (includes): Allow cross-compilation to non-windows
35286         machines.
35287         * doc/posix-functions/rename.texi (rename): Improve
35288         documentation.
35289
35290         stdio: sort witness names
35291         * modules/stdio (Makefile.am): Sort replacements.
35292         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
35293         * lib/stdio.in.h: Likewise.
35294
35295         getcwd: minor cleanups
35296         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
35297         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
35298
35299         openat: provide more convenience names
35300         * modules/faccessat (configure.ac): Add C witness.
35301         * lib/unistd.in.h (readlinkat): Fix typo.
35302         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
35303         convenience wrappers.
35304         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
35305         wrappers in syntax checks.
35306
35307 2009-09-06  Eric Blake  <ebb9@byu.net>
35308
35309         doc: fix comments in recent patches
35310         * lib/faccessat.c: Mention correct function.
35311         * lib/fchmodat.c: Likewise.
35312         * lib/fchownat.c: Likewise.
35313         * lib/symlinkat.c: Likewise.
35314         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
35315         constants.
35316
35317         faccessat, symlinkat: continue cleanup of previous patch
35318         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
35319         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
35320         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
35321         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
35322         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
35323         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
35324         set.
35325
35326 2009-09-06  Bruno Haible  <bruno@clisp.org>
35327
35328         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
35329         (fstatat): Declare if GNULIB_FSTATAT is set.
35330         (mkdirat): Declare if GNULIB_MKDIRAT is set.
35331         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
35332         (unlinkat): Declare if GNULIB_UNLINKAT is set.
35333         * modules/fcntl-h (Files): Remove m4/openat.m4.
35334         * modules/sys_stat (Files): Remove m4/openat.m4.
35335         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
35336         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
35337         * modules/unistd (Files): Remove m4/openat.m4.
35338         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
35339         GNULIB_OPENAT.
35340         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
35341         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
35342         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
35343         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
35344         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
35345         gl_OPENAT_DEFAULTS.
35346         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
35347         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
35348         Don't require gl_OPENAT_DEFAULTS.
35349         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
35350         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
35351         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
35352         (gl_OPENAT_DEFAULTS): Remove macro.
35353
35354 2009-09-06  Bruno Haible  <bruno@clisp.org>
35355
35356         * modules/openat (configure.ac): Remove unneeded witness.
35357
35358 2009-09-06  Bruno Haible  <bruno@clisp.org>
35359
35360         Set errno to ENOSYS when a function is entirely unsupported.
35361         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
35362         EOPNOTSUPP.
35363         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
35364         * modules/chown (Depends-on): Remove errno.
35365
35366 2009-09-06  Bruno Haible  <bruno@clisp.org>
35367
35368         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
35369
35370 2009-09-06  Bruno Haible  <bruno@clisp.org>
35371
35372         * lib/sys_stat.in.h: Fix preprocessor command indentation.
35373
35374 2009-09-06  Ben Pfaff  <blp@gnu.org>
35375             Bruno Haible  <bruno@clisp.org>
35376
35377         Work around a glibc bug in strtok_r.
35378         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
35379         Undefine if UNDEFINE_STRTOK_R is set.
35380         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
35381         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
35382         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
35383         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
35384         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
35385         UNDEFINE_STRTOK_R.
35386         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
35387
35388 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
35389
35390         exclude: minor fix
35391         * lib/exclude.c: Include wctype.h
35392
35393 2009-09-06  Akim Demaille  <demaille@gostai.com>
35394
35395         bootstrap: improve error message
35396         * build-aux/bootstrap (find_tool): Upon failure, report the list
35397         of candidates.
35398         Honor the initial value of the envvar.
35399
35400 2009-09-05  Eric Blake  <ebb9@byu.net>
35401
35402         symlinkat: new module
35403         * modules/symlinkat: New file.
35404         * lib/symlinkat.c: Likewise.
35405         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
35406         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
35407         * modules/unistd (Makefile.am): Use them.
35408         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
35409         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
35410         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
35411         * MODULES.html.sh (File system functions): Mention module.
35412         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
35413         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
35414         * modules/symlinkat-tests: New test.
35415         * tests/test-symlinkat.c: Likewise.
35416
35417         test-openat-safer: add more checks
35418         * tests/test-openat-safer.c (main): Check more code paths.
35419
35420 2009-09-05  Jim Meyering  <meyering@redhat.com>
35421
35422         syntax-check: detect unnecessary inclusion of openat.h
35423         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
35424
35425 2009-09-05  Bruno Haible  <bruno@clisp.org>
35426
35427         Support towlower, towupper.
35428         * doc/posix-functions/towlower.texi: Mention module wctype.
35429         * doc/posix-functions/towupper.texi: Likewise.
35430         * lib/wctype.in.h (towlower, towupper): New functions.
35431         * tests/test-wctype.c: Include stdio.h, stdlib.h.
35432         (ASSERT): New macro.
35433         (e): New variable.
35434         (main): Test also towlower, towupper. Test WEOF argument.
35435         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
35436
35437 2009-09-05  Bruno Haible  <bruno@clisp.org>
35438
35439         Fix conversion behaviour when the input is invalid.
35440         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
35441         mark occurring in first pass of indirect conversion.
35442         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
35443         input.
35444         Found by clang's static analyzer.
35445
35446 2009-09-05  Bruno Haible  <bruno@clisp.org>
35447
35448         * tests/test-striconveh.c (main): Test indirect conversion on platforms
35449         where direct conversion is possible.
35450
35451 2009-09-04  Eric Blake  <ebb9@byu.net>
35452
35453         openat: fail with ENOENT on empty name
35454         * lib/openat-proc.c (openat_proc_name): Special-case the empty
35455         buffer.
35456
35457         link-follow: fix logic bug in prior patch
35458         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
35459         reversed sense of yes and no in prior patch.  Avoid confusing
35460         compilation failure with desired semantics.
35461
35462         link-follow: accomodate mingw and cross-compilation
35463         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
35464         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
35465         cross-compilation results to -1, to make linkat easier to
35466         implement when cross-compiling.  Trivially support mingw.
35467         * modules/link-follow (configure.ac): Call new name.
35468         * NEWS: Mention this.
35469
35470 2009-09-03  Eric Blake  <ebb9@byu.net>
35471
35472         faccessat: compile replacement
35473         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
35474         needed.
35475
35476         fts: fix compilation error
35477         * lib/fts.c (includes): Re-add "openat.h", for
35478         openat_needs_fchdir.
35479
35480         faccessat: new module
35481         * modules/faccessat: New file.
35482         * lib/faccessat.c: Likewise.
35483         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
35484         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
35485         * modules/unistd (Makefile.am): Use it.
35486         * lib/unistd.in.h (faccessat): Declare it.
35487         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
35488         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
35489         * MODULES.html.sh (File system functions): Mention it.
35490         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
35491         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
35492
35493         euidaccess: prefer POSIX over non-standard implementation
35494         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
35495         * lib/euidaccess.c (euidaccess): Use it if available.
35496
35497         openat: make template easier to use
35498         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
35499         AT_FUNC_F2 to be undefined.
35500         (VALIDATE_FLAG): New macro; use it to reject bad flags.
35501         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
35502         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
35503         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
35504         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
35505         Likewise.
35506         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
35507         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
35508         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
35509         Likewise.
35510
35511         openat: declare in POSIX headers
35512         * NEWS: Mention this.
35513         * modules/openat (configure.ac): Declare witnesses.
35514         (Depends-on): Add fcntl-h, sys_stat, unistd.
35515         (Include): Mention correct headers.
35516         * modules/fcntl-h (Depends-on): Add link-warning.
35517         (Files): Add openat.m4.
35518         (Makefile.am): Substitute witnesses.
35519         * modules/sys_stat (Files, Makefile.am): Likewise.
35520         * modules/unistd (Files, Makefile.am): Likewise.
35521         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
35522         (gl_OPENAT_DEFAULTS): New macro.
35523         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
35524         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
35525         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
35526         (SYS_STAT_H): Remove unused variable.
35527         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
35528         * lib/fcntl--.h (includes): Remove unneeded header.
35529         * lib/openat-safer.c (includes): Likewise.
35530         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
35531         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
35532         appropriate headers.
35533         (__OPENAT_PREFIX): Delete.
35534         * lib/fcntl.in.h (openat): Provide declaration.
35535         (AT_FDCWD): Fix Solaris bug.
35536         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
35537         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
35538         * lib/fchmodat.c (includes):  Adjust to find declaration.
35539         * lib/fchownat.c (includes): Likewise.
35540         * lib/mkdirat.c (includes): Likewise.
35541         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
35542         still visible.
35543
35544 2009-09-02  Eric Blake  <ebb9@byu.net>
35545
35546         errno: use consistently
35547         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
35548         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
35549         * lib/canonicalize.c (ELOOP): Likewise.
35550         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
35551         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
35552         * lib/lchown.c (EOPNOTSUPP): Likewise.
35553         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
35554         * lib/savewd.c (ESTALE): Likewise.
35555         * lib/settime.c (ENOSYS): Likewise.
35556         * lib/utimens.c (ENOSYS): Likewise.
35557         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
35558         * lib/chdir-safer.c (ELOOP): Likewise.
35559         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
35560         * modules/c-stack (Depends-on): Add errno.
35561         * modules/canonicalize (Depends-on): Likewise.
35562         * modules/chdir-safer (Depends-on): Likewise.
35563         * modules/fdopendir (Depends-on): Likewise.
35564         * modules/inet_ntop (Depends-on): Likewise.
35565         * modules/inet_pton (Depends-on): Likewise.
35566         * modules/lchown (Depends-on): Likewise.
35567         * modules/openat (Depends-on): Likewise.
35568         * modules/savewd (Depends-on): Likewise.
35569         * modules/settime (Depends-on): Likewise.
35570         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
35571
35572         fts: avoid leaking fds
35573         * modules/fts (Depends-on): Add cloexec.
35574         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
35575         flag.
35576
35577         fts: make directory fds more robust
35578         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
35579         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
35580
35581         backupfile, chdir-long, fts, savedir: make safer
35582         * lib/backupfile.c (includes): Use "dirent--.h", since
35583         numbered_backup can write to stderr during readdir.
35584         * lib/savedir.c (includes): Likewise.
35585         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
35586         emulation can write to stderr on failure.
35587         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
35588         * lib/getcwd.c: Document why opendir_safer is unused.
35589         * lib/glob.c: Likewise.
35590         * lib/scandir.c: Likewise.
35591         * lib/openat-proc.c: Likewise, for open_safer.
35592         * modules/backupfile (Depends-on): Add dirent-safer.
35593         * modules/savedir (Depends-on): Likewise.
35594         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
35595         * modules/chdir-long (Depends-on): Add openat-safer.
35596
35597         openat-safer: new module
35598         * modules/openat-safer: New file.
35599         * lib/openat-safer.c: Likewise.
35600         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
35601         * lib/fcntl-safer.h (openat_safer): Declare.
35602         * lib/fcntl--.h (openat): Override.
35603         * MODULES.html.sh (File descriptor based I/O): Mention it.
35604         * lib/openat.h: Add double-inclusion guards.
35605         * lib/openat.c (includes): Only include "fcntl-safer.h", not
35606         "fcntl--.h", so we can implement openat.
35607         * modules/openat-safer-tests: New test.
35608         * tests/test-openat-safer.c: New file.
35609
35610         dirent-safer: new module
35611         * modules/dirent-safer: New file.
35612         * lib/dirent--.h: Likewise.
35613         * lib/dirent-safer.h: Likewise.
35614         * lib/opendir-safer.c: Likewise.
35615         * m4/dirent-safer.m4: Likewise.
35616         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
35617         * modules/dirent-safer-tests: New test.
35618         * tests/test-dirent-safer.c: New file.
35619         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
35620
35621         fdopendir: optimize on mingw
35622         * lib/unistd.in.h (_gl_directory_name): New prototype.
35623         * lib/fchdir.c (_gl_directory_name): Implement it.
35624         (fchdir): Use it to simplify implementation.
35625         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
35626         fchdir, when available, to avoid calling [f]chdir().
35627
35628         fdopendir: split into its own module
35629         * lib/openat.c (fdopendir): Move...
35630         * lib/fdopendir.c: ...into new file.
35631         * modules/fdopendir: New module.
35632         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
35633         * modules/openat (Depends-on): Add fdopendir.
35634         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
35635         fdopendir here.
35636         * modules/savedir (Depends-on): Only need fdopendir, not full
35637         openat.
35638         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
35639         * lib/openat.h (fdopendir): Drop prototype.
35640         * lib/dirent.in.h (fdopendir): Provide prototype.
35641         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
35642         * modules/dirent (Makefile.am): Substitute them.
35643         * MODULES.html.sh (File system functions): Mention it.
35644         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
35645         * modules/fdopendir-tests: New file.
35646         * tests/test-fdopendir.c: Likewise.
35647
35648         fchdir: use more consistent macro convention
35649         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
35650         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
35651         REPLACE_FCHDIR, rather than relying on config.h macros.
35652         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
35653         inside a single make-time REPLACE_FCHDIR block, rather than using
35654         the config.h FCHDIR_REPLACEMENT.
35655         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
35656         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
35657         Manage fstat replacement.
35658         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
35659         REPLACE_FCHDIR.
35660         * modules/sys_stat (Files): Add m4/unistd_h.m4.
35661         (Makefile.am): Substitute REPLACE_FCHDIR.
35662         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
35663         FCHDIR_REPLACEMENT.
35664         * lib/dup-safer.c (dup_safer): Likewise.
35665         * lib/dup2.c (rpl_dup2): Likewise.
35666         * lib/dup3.c (rpl_dup3): Likewise.
35667         * lib/open.c (rpl_open): Likewise.
35668
35669         fchdir: simplify error handling, and support dup3
35670         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
35671         stdbool, malloc-posix, realloc-posix.
35672         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
35673         (ensure_dirs_slot): Return false on allocation failure.
35674         (rpl_dup2): Delete.
35675         (_gl_register_dup): New function.
35676         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
35677         (_gl_register_fd): Close fd on allocation failure.
35678         * lib/fcntl.in.h (_gl_register_fd): Update signature.
35679         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
35680         prototype.
35681         (rpl_dup2_fchdir): Delete prototype.
35682         * lib/open.c (open): Update caller.
35683         * lib/dup2.c (dup2): Track fchdir metadata.
35684         * lib/dup3.c (dup3): Likewise.
35685         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
35686         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
35687
35688 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35689
35690         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
35691         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
35692         don't pass arguments to AC_OUTPUT.
35693
35694 2009-09-02  Bruno Haible  <bruno@clisp.org>
35695
35696         * modules/mkdtemp (License): Relicense under LGPLv2+.
35697         Reported by Paolo Bonzini.
35698
35699 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35700
35701         Replace uses of obsolete autoconf macros in Jim's modules.
35702         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
35703         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
35704         can evoke a warning from autoconf when run with -Wobsolete
35705         enabled.  They were declared obsolete for good reasons (see
35706         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
35707         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
35708         should not continue using the deprecated macros.
35709         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
35710         obsolete Autoconf macros with modern counterparts.
35711         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
35712         * m4/dos.m4 (gl_AC_DOS): Likewise.
35713         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
35714         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
35715         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
35716         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
35717         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
35718         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
35719         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
35720         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
35721         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
35722         Likewise.
35723         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
35724         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
35725         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
35726         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
35727         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
35728         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
35729
35730 2009-09-01  Eric Blake  <ebb9@byu.net>
35731
35732         fchdir: fix off-by-one bug in previous patch
35733         * lib/fchdir.c (rpl_fstat): Use correct bounds.
35734         (_gl_unregister_fd): Delete useless if.
35735
35736 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
35737
35738         maint.mk: sort the list of syntax-check rules
35739         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
35740         easier to get a sense of progress when the rules are run sequentially
35741         and take a long time.
35742
35743 2009-09-01  Simon Josefsson  <simon@josefsson.org>
35744
35745         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
35746         * modules/netinet_in: Likewise.
35747         * modules/sys_file: Likewise.
35748         * modules/sys_ioctl: Likewise.
35749         * modules/sys_select: Likewise.
35750         * modules/sys_socket: Likewise.
35751         * modules/sys_stat: Likewise.
35752         * modules/sys_time: Likewise.
35753         * modules/sys_times: Likewise.
35754         * modules/sys_utsname: Likewise.
35755         * modules/sys_wait: Likewise.
35756
35757 2009-09-01  Jim Meyering  <meyering@redhat.com>
35758
35759         fts: help ensure that return values are not ignored
35760         * lib/fts_.h (__GNUC_PREREQ): Define.
35761         (__attribute_warn_unused_result__): Define.
35762         (fts_children, fts_close, fts_open, fts_read): Declare with
35763         __attribute_warn_unused_result__.
35764
35765         fts: fts_close now fails also when closing a dir file descriptor fails
35766         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
35767         and propagate to caller, along with errno.
35768
35769         announce-gen: correct formatting in --help output
35770         * build-aux/announce-gen (usage): Move the one-line description in
35771         --help output "up", to where it belongs, just after Usage:.
35772
35773 2009-08-31  Eric Blake  <ebb9@byu.net>
35774
35775         fchdir: port to mingw
35776         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
35777         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
35778         opened, then use a substitute.
35779         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
35780         replacement.
35781         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
35782         (_gl_register_fd): No need to check stat if open already filters
35783         all directories.
35784         (fchdir): Fix error condition to match POSIX.
35785         * modules/fchdir (Depends-on): Add sys_stat.
35786         * doc/posix-functions/open.texi (open): Document the limitation.
35787         * modules/fchdir-tests: New file.
35788         * tests/test-fchdir.c: Likewise.
35789
35790         canonicalize: allow cross-testing from cygwin to mingw
35791         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
35792         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
35793         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
35794         Likewise.
35795         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
35796         target does not support symlinks.
35797         * tests/test-canonicalize-lgpl.sh: Likewise.
35798
35799         chown: avoid compilation warning on mingw
35800         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
35801         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
35802         mingw.
35803         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
35804         * modules/chown (Depends-on): Add errno.
35805
35806 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
35807
35808         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
35809         command.
35810
35811 2009-08-31  Jim Meyering  <meyering@redhat.com>
35812
35813         canonicalize: remove useless initialization
35814         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
35815         initialization of local, "end".
35816
35817 2009-08-30  Bruno Haible  <bruno@clisp.org>
35818
35819         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
35820         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
35821         ENOSYS.
35822
35823 2009-08-30  Bruno Haible  <bruno@clisp.org>
35824
35825         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
35826         /usr/xpg4/bin/tr when it exists.
35827         * tests/test-pipe-filter-gi1.sh: Likewise.
35828
35829 2009-08-30  Bruno Haible  <bruno@clisp.org>
35830
35831         Work around deficient /usr/bin/id program on Solaris.
35832         * tests/test-file-has-acl.sh (ID): New variable.
35833         * tests/test-set-mode-acl.sh (ID): Likewise.
35834         * tests/test-copy-acl.sh (ID): Likewise.
35835         * tests/test-copy-file.sh (ID): Likewise.
35836
35837 2009-08-30  Bruno Haible  <bruno@clisp.org>
35838
35839         New module 'xstriconveh'.
35840         * lib/xstriconveh.h: New file.
35841         * lib/xstriconveh.c: New file.
35842         * modules/xstriconveh: New file.
35843
35844 2009-08-30  Bruno Haible  <bruno@clisp.org>
35845
35846         Make it easier to use mem_cd_iconveh.
35847         * lib/striconveh.h (iconveh_t): New type.
35848         (iconveh_open, iconveh_close): New declarations.
35849         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
35850         with a single 'const iconveh_t *' argument.
35851         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
35852         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
35853         with a single 'const iconveh_t *' argument.
35854         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
35855         * tests/test-striconveh.c (main): Update.
35856         * NEWS: Mention the change.
35857
35858 2009-08-30  Bruno Haible  <bruno@clisp.org>
35859
35860         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
35861         problem.
35862
35863 2009-08-30  Bruno Haible  <bruno@clisp.org>
35864
35865         Work around iconv_open problem on Solaris.
35866         * lib/iconv_open-solaris.gperf: New file.
35867         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
35868         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
35869         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
35870         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
35871         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
35872         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
35873
35874 2009-08-29  Jim Meyering  <meyering@redhat.com>
35875
35876         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
35877         * top/maint.mk (cvs-check): Remove target; it was just an alias
35878         to the better-named vc-diff-check.
35879         (maintainer-distcheck): Remove rule.  It was used only from
35880         the (alpha/beta/major) target, and all of its commands but one
35881         were coreutils-specific.
35882         (vc-dist): Remove rule.
35883         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
35884         Run vc-diff-check, not vc-dist.
35885         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
35886
35887 2009-08-27  Bruno Haible  <bruno@clisp.org>
35888
35889         * tests/test-bitrotate.c (main): Remove test that uses a shift count
35890         of 0.
35891
35892 2009-08-27  Bruno Haible  <bruno@clisp.org>
35893
35894         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
35895         compilers.
35896         * doc/func.texi: Document the SunPRO C bug.
35897
35898 2009-08-27  Bruno Haible  <bruno@clisp.org>
35899
35900         Fix link error on Solaris.
35901         * tests/test-parse-duration.c (xstrdup): Remove function.
35902
35903 2009-08-26  Pádraig Brady  <P@draigbrady.com>
35904
35905         ignore-value: handle pointer types, too
35906         * lib/ignore-value.h (__attribute__): Remove definition.
35907         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
35908         of a more concise and more-often effective "(void) i" statement.
35909         (ignore_ptr): New function to suppress warnings from functions that
35910         return pointers, and to make it explicit that one function doesn't
35911         handle all cases.
35912
35913 2009-08-25  Bruno Haible  <bruno@clisp.org>
35914
35915         dup2: work around a Linux bug.
35916         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
35917         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
35918         * doc/posix-functions/dup2.texi: Mention the Linux bug.
35919         Reported by Simon Josefsson.
35920
35921 2009-08-25  Jim Meyering  <meyering@redhat.com>
35922
35923         libguestfs uses gnulib
35924         * users.txt: Add libguestfs.
35925
35926 2009-08-24  Eric Blake  <ebb9@byu.net>
35927
35928         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
35929         * lib/pipe2.c (includes): Add binary-io.h.
35930         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
35931
35932 2009-08-24  Bruno Haible  <bruno@clisp.org>
35933
35934         Tolerate declared but missing accept4 syscall.
35935         * lib/accept4.c (accept4): Invoke original accept4 function first, if
35936         available.
35937         * lib/sys_socket.in.h (accept4): If the function is already present,
35938         override it.
35939         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
35940         * modules/accept4 (Makefile.am): Compile accept4.c always.
35941         Reported by Paolo Bonzini and Eric Blake.
35942
35943 2009-08-23  Bruno Haible  <bruno@clisp.org>
35944
35945         New module 'accept4'.
35946         * lib/sys_socket.in.h (accept4): New declaration.
35947         * lib/accept4.c: New file.
35948         * m4/accept4.m4: New file.
35949         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
35950         GNULIB_ACCEPT4, HAVE_ACCEPT4.
35951         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
35952         HAVE_ACCEPT4.
35953         * modules/accept4: New file.
35954         * doc/glibc-functions/accept4.texi: Mention the new module.
35955
35956 2009-08-24  Jim Meyering  <meyering@redhat.com>
35957
35958         progname: also set global program_invocation_name, when possible
35959         Before this change, a libtool-enabled program that calls glibc's
35960         error function would report the program name as
35961         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
35962         * modules/progname (configure.ac): Check for a declaration of
35963         program_invocation_name.
35964         * lib/progname.c:  Include <errno.h>.
35965         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
35966         Set program_invocation_name.
35967
35968 2009-08-23  Bruno Haible  <bruno@clisp.org>
35969
35970         * lib/dup3.c: Include <string.h>.
35971
35972 2009-08-23  Bruno Haible  <bruno@clisp.org>
35973
35974         * lib/dup3.c (dup3): Test only once whether the system actually exists.
35975         * lib/pipe2.c (pipe2): Likewise.
35976         Suggested by Eric Blake.
35977
35978 2009-08-23  Bruno Haible  <bruno@clisp.org>
35979
35980         Tolerate declared but missing dup3 syscall.
35981         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
35982         * lib/unistd.in.h (dup3): If the function is already present,
35983         override it.
35984         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
35985         * modules/dup3 (Makefile.am): Compile dup3.c always.
35986         Reported by Paolo Bonzini.
35987
35988 2009-08-23  Bruno Haible  <bruno@clisp.org>
35989
35990         Tolerate declared but missing pipe2 syscall.
35991         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
35992         available.
35993         * lib/unistd.in.h (pipe2): If the function is already present,
35994         override it.
35995         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
35996         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
35997         Reported by Paolo Bonzini.
35998
35999 2009-08-23  Bruno Haible  <bruno@clisp.org>
36000
36001         * lib/pipe2.c (pipe2): Move #ifs inside function.
36002
36003 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
36004
36005         quotearg: document limitations of quote_these_too
36006         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
36007         those limitations are created.
36008         * lib/quotearg.h (set_char_quoting): Document that digits and
36009         letters that are special after backslash are not permitted.
36010         (quotearg_char): Cross-reference set_char_quoting documentation.
36011
36012 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
36013
36014         quotearg: implement custom_quoting_style
36015         * lib/quotearg.c: (struct quoting_options): Add left_quote and
36016         right_quote fields.
36017         (set_custom_quoting): New public function.
36018         (quotearg_buffer_restyled): Add left_quote and right_quote
36019         arguments, handle them very much like locale quoting, and update
36020         all uses.
36021         (quotearg_n_custom): New public function.
36022         (quotearg_n_custom_mem): New public function.
36023         (quotearg_custom): New public function.
36024         (quotearg_custom_mem): New public function.
36025         * lib/quotearg.h: Prototype and document new public functions.
36026         (enum quoting_style): For escape_quoting_style and
36027         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
36028         ignored even though they're otherwise like c_quoting_style.
36029         Add custom_quoting_style member and document with comparison to
36030         clocale_quoting_style.
36031         * tests/test-quotearg.c (custom_quotes): New array.
36032         (custom_results): New array.
36033         (main): Extend to test custom quoting.
36034
36035 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
36036
36037         quotearg: fix right quote escaping when it's in quote_these_too
36038         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
36039         quote, be sure to prepend only one backslash.
36040         * tests/test-quotearg.c (use_quote_double_quotes): New function.
36041         (main): Test it.
36042
36043 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
36044
36045         quotearg-tests: test escaping of embedded locale quotes
36046         * tests/test-quotearg.c (struct result_strings): Add member for
36047         new input.
36048         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
36049         (inputs): Add new input.
36050         (results_g): Add expected results.
36051         (flag_results): Likewise.
36052         (locale_results): Likewise.
36053         (compare_strings): Check those.
36054
36055 2009-08-23  Bruno Haible  <bruno@clisp.org>
36056
36057         Tests for module 'dup3'.
36058         * modules/dup3-tests: New file.
36059         * tests/test-dup3.c: New file.
36060
36061         New module 'dup3'.
36062         * lib/unistd.in.h (dup3): New declaration.
36063         * lib/dup3.c: New file.
36064         * m4/dup3.m4: New file.
36065         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
36066         HAVE_DUP3.
36067         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
36068         * modules/dup3: New file.
36069         * doc/glibc-functions/dup3.texi: Mention the new module.
36070
36071 2009-08-23  Bruno Haible  <bruno@clisp.org>
36072
36073         Tweak the dup2 test.
36074         * tests/test-dup2.c (main): Create the test file empty. Verify that an
36075         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
36076         the test file is still empty. Fix argument order of lseek.
36077
36078 2009-08-23  Bruno Haible  <bruno@clisp.org>
36079
36080         Avoid test link errors when the modules getopt-gnu, gettext are used.
36081         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
36082         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
36083
36084 2009-08-23  Bruno Haible  <bruno@clisp.org>
36085
36086         Fix getdtablesize() on mingw.
36087         * lib/getdtablesize.c (getdtablesize): Implement differently.
36088         * lib/unistd.in.h (getdtablesize): Improve comment.
36089
36090 2009-08-23  Bruno Haible  <bruno@clisp.org>
36091
36092         New module 'mkostemp'.
36093         Based on Ulrich Drepper's 2007-08-10 change in glibc.
36094         * lib/stdlib.in.h (mksotemp): New declaration.
36095         * lib/mkostemp.c: New file, from glibc with modifications.
36096         * lib/tempname.h (GT_FILE): Remove outdated comment.
36097         (gen_tempname): Add flags argument.
36098         * lib/tempname.c (__GT_BIGFILE): Remove macro.
36099         (__GT_FILE): Map to 1.
36100         (small_open, large_open): Remove macros.
36101         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
36102         * lib/mkstemp.c (mkstemp): Update.
36103         * lib/mkdtemp.c (mkdtemp): Likewise.
36104         * m4/mkostemp.m4: New file.
36105         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
36106         HAVE_MKOSTEMP.
36107         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
36108         HAVE_MKOSTEMP.
36109         * modules/mkostemp: New file, based on modules/mkstemp.
36110         * doc/glibc-functions/mkostemp.texi: Mention the new module.
36111         * NEWS: Mention the change.
36112
36113 2009-08-23  Bruno Haible  <bruno@clisp.org>
36114
36115         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
36116         Reported by Eric Blake.
36117
36118 2009-08-23  Bruno Haible  <bruno@clisp.org>
36119
36120         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
36121         Reported by Eric Blake.
36122
36123 2009-08-23  Bruno Haible  <bruno@clisp.org>
36124
36125         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
36126         * modules/pipe2 (Depends-on): Likewise.
36127
36128 2009-08-23  Eric Blake  <ebb9@byu.net>
36129
36130         fcntl-h: add O_TTY_INIT support
36131         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
36132         * tests/test-fcntl-h.c (o): Test it.
36133         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
36134
36135         fcntl-h: rename from fcntl, in preparation for fcntl(2)
36136         * modules/fcntl: Move <fcntl.h> header replacement...
36137         * modules/fcntl-h: ...to new name, so as not to collide with
36138         like-named function.
36139         * tests/test-fcntl.c: Rename...
36140         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
36141         * modules/fcntl-tests: Rename...
36142         * modules/fcntl-h-tests: ...to this.  Update test file name.
36143         * modules/chdir-long (Depends-on): Update clients.
36144         * modules/chdir-safer (Depends-on): Likewise.
36145         * modules/fcntl-safer (Depends-on): Likewise.
36146         * modules/fts (Depends-on): Likewise.
36147         * modules/mkancesdirs (Depends-on): Likewise.
36148         * modules/mkdir-p (Depends-on): Likewise.
36149         * modules/open (Depends-on): Likewise.
36150         * modules/savewd (Depends-on): Likewise.
36151         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
36152         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
36153
36154 2009-08-22  Bruno Haible  <bruno@clisp.org>
36155
36156         * modules/binary-io (License): Relicense under LGPL.
36157         * modules/pipe2 (License): Likewise.
36158
36159 2009-08-22  Bruno Haible  <bruno@clisp.org>
36160
36161         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
36162         return value.
36163         * lib/pipe-filter-gi.c (filter_init): Likewise.
36164         Reported by Eric Blake.
36165
36166 2009-08-22  Bruno Haible  <bruno@clisp.org>
36167
36168         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
36169         * modules/pipe (Depends-on): Add pipe2.
36170
36171 2009-08-22  Bruno Haible  <bruno@clisp.org>
36172
36173         Tests for module 'pipe2'.
36174         * modules/pipe2-tests: New file.
36175         * tests/test-pipe2.c: New file.
36176
36177         New module 'pipe2'.
36178         * lib/unistd.in.h (pipe2): New declaration.
36179         * lib/pipe2.c: New file.
36180         * m4/pipe2.m4: New file.
36181         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
36182         HAVE_PIPE2.
36183         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
36184         * modules/pipe2: New file.
36185         * doc/glibc-functions/pipe2.texi: Mention the new module.
36186
36187 2009-08-22  Bruno Haible  <bruno@clisp.org>
36188
36189         Reference some new glibc functions.
36190         * doc/glibc-functions/accept4.texi: New file.
36191         * doc/glibc-functions/dup3.texi: New file.
36192         * doc/glibc-functions/mkostemp.texi: New file.
36193         * doc/glibc-functions/pipe2.texi: New file.
36194         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
36195         (Glibc sys/socket.h): Refer to accept4.
36196         (Glibc unistd.h): Refer to dup3, pipe2.
36197         Reported by Eric Blake.
36198
36199 2009-08-22  Jim Meyering  <meyering@redhat.com>
36200             Bruno Haible  <bruno@clisp.org>
36201
36202         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
36203         This makes it so packages using automake-1.11's silent-rules option
36204         can print e.g., a single "GEN    configmake.h" line, rather than
36205         the 30+ statements that perform the job.  If you want to see the
36206         actual commands, you can still run "make V=1".
36207         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
36208         so that make output is abbreviated when those variables are defined
36209         appropriately.
36210         * modules/argz: Likewise.
36211         * modules/arpa_inet: Likewise.
36212         * modules/byteswap: Likewise.
36213         * modules/configmake: Likewise.
36214         * modules/dirent: Likewise.
36215         * modules/errno: Likewise.
36216         * modules/fcntl: Likewise.
36217         * modules/float: Likewise.
36218         * modules/fnmatch: Likewise.
36219         * modules/getopt-posix: Likewise.
36220         * modules/glob: Likewise.
36221         * modules/iconv_open: Likewise.
36222         * modules/inttypes: Likewise.
36223         * modules/localcharset: Likewise.
36224         * modules/locale: Likewise.
36225         * modules/math: Likewise.
36226         * modules/netdb: Likewise.
36227         * modules/netinet_in: Likewise.
36228         * modules/poll: Likewise.
36229         * modules/posix_spawnp-tests: Likewise.
36230         * modules/sched: Likewise.
36231         * modules/search: Likewise.
36232         * modules/selinux-h: Likewise.
36233         * modules/signal: Likewise.
36234         * modules/spawn: Likewise.
36235         * modules/stdarg: Likewise.
36236         * modules/stdbool: Likewise.
36237         * modules/stddef: Likewise.
36238         * modules/stdint: Likewise.
36239         * modules/stdio: Likewise.
36240         * modules/stdlib: Likewise.
36241         * modules/string: Likewise.
36242         * modules/strings: Likewise.
36243         * modules/sys_file: Likewise.
36244         * modules/sys_ioctl: Likewise.
36245         * modules/sys_select: Likewise.
36246         * modules/sys_socket: Likewise.
36247         * modules/sys_stat: Likewise.
36248         * modules/sys_time: Likewise.
36249         * modules/sys_times: Likewise.
36250         * modules/sys_utsname: Likewise.
36251         * modules/sys_wait: Likewise.
36252         * modules/sysexits: Likewise.
36253         * modules/time: Likewise.
36254         * modules/unistd: Likewise.
36255         * modules/wchar: Likewise.
36256         * modules/wctype: Likewise.
36257
36258 2009-08-22  Jim Meyering  <meyering@redhat.com>
36259
36260         announce-gen: detect write failure
36261         * build-aux/announce-gen: Add Coda at end.
36262         Remove equivalent-but-more-verbose block at top.
36263
36264 2009-08-19  Akim Demaille  <demaille@gostai.com>
36265
36266         bootstrap: --help to stdout.
36267         * bootstrap (usage): Don't send --help to stderr.
36268         Use a here doc instead of a long string.
36269
36270 2009-08-21  Eric Blake  <ebb9@byu.net>
36271
36272         test-popen-safer: split from test-popen
36273         * tests/test-popen.c (main): Move...
36274         * tests/test-popen.h: ...into new file.
36275         * tests/test-popen-safer2.c: New file.
36276         * modules/popen-tests (Files): Add test-popen.h.
36277         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
36278         Suggested by Bruno Haible.
36279
36280         test-fcntl-safer: split from test-open
36281         * tests/test-open.c (main): Move...
36282         * tests/test-open.h: ...into new file.
36283         * tests/test-fcntl-safer.c: New file.
36284         * modules/open-tests (Files): Add test-open.h.
36285         * modules/fcntl-safer-tests: New file.
36286         Suggested by Bruno Haible.
36287
36288         test-fopen-safer: split from test-fopen
36289         * tests/test-fopen.c (main): Move...
36290         * tests/test-fopen.h: ...into new file.
36291         * tests/test-fopen-safer.c: New file.
36292         * modules/fopen-tests (Files): Add test-fopen.h.
36293         * modules/fopen-safer-tests: New file.
36294         Suggested by Bruno Haible.
36295
36296 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
36297
36298         popen-safer: test O_CLOEXEC at run-time.
36299         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
36300
36301 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
36302
36303         fcntl: move more flags to the header
36304         * lib/cloexec.c: Do not define FD_CLOEXEC here.
36305         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
36306         * lib/fcntl.in.h: Do both things here.
36307
36308 2009-08-21  Jim Meyering  <meyering@redhat.com>
36309
36310         consistently remove $@-t before redirecting to it
36311         * modules/argz: Remove $@-t and $@ before redirecting to the former.
36312         * modules/alloca-opt: Likewise.
36313         * modules/byteswap: Likewise.
36314         * modules/fnmatch: Likewise.
36315         * modules/getopt-posix: Likewise.
36316         * modules/glob: Likewise.
36317         * modules/poll: Likewise.
36318         * modules/posix_spawnp-tests: Likewise.
36319         * modules/sys_socket: Likewise.
36320         * modules/sysexits: Likewise.
36321
36322 2009-08-21  Eric Blake  <ebb9@byu.net>
36323
36324         popen: simplify access to original popen
36325         * lib/popen.c (rpl_popen): No need to worry about popen being a
36326         macro.
36327         Reported by Bruno Haible.
36328
36329 2009-08-20  Eric Blake  <ebb9@byu.net>
36330
36331         build: avoid some compiler warnings
36332         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
36333         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
36334         type.
36335         (new_exclude_segment, excluded_file_pattern_p)
36336         (excluded_file_name_p): Reduce scope.
36337         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
36338         old-style declaration.
36339
36340 2009-08-20  Simon Josefsson  <simon@josefsson.org>
36341
36342         * tests/test-exclude1.sh: Handle Windows EOL.
36343         * tests/test-exclude2.sh: Likewise.
36344         * tests/test-exclude3.sh: Likewise.
36345         * tests/test-exclude4.sh: Likewise.
36346         * tests/test-exclude5.sh: Likewise.
36347         * tests/test-exclude6.sh: Likewise.
36348         * tests/test-exclude7.sh: Likewise.
36349
36350 2009-08-19  Akim Demaille  <demaille@gostai.com>
36351
36352         bootstrap: find sha1sum when named gsha1sum.
36353         * bootstrap (find_tool): New.
36354         ($SHA1SUM): New.
36355         Use it.
36356
36357 2009-08-20  Jim Meyering  <meyering@redhat.com>
36358
36359         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
36360         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
36361         expression that converts "." in a file name to "\." in the resulting
36362         regexp.  Start with a dummy statement, so that prior shell variable
36363         definitions are expanded portably.  Reported by Simon Josefsson.
36364
36365 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
36366
36367         Fix polling for writeability of a screen buffer.
36368         * lib/poll.c: Distinguish input and screen buffers for the
36369         Win32 implementation.
36370         * lib/select.c: Likewise.
36371
36372 2009-08-19  Eric Blake  <ebb9@byu.net>
36373
36374         popen-safer: prevent popen from clobbering std descriptors
36375         * modules/popen-safer: New file.
36376         * lib/popen-safer.c: Likewise.
36377         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
36378         * lib/stdio--.h (popen): Provide override.
36379         * lib/stdio-safer.h (popen_safer): Provide declaration.
36380         * tests/test-popen.c (includes): Partially test this.
36381         * modules/popen-safer-tests: New file, for more tests.
36382         * tests/test-popen-safer.c: Likewise.
36383         * MODULES.html.sh (file stream based Input/Output): Mention it.
36384
36385         tests: test some of the *-safer modules
36386         * modules/fopen-safer (Depends-on): Add fopen.
36387         * modules/fcntl-safer (Depends-on): Add fcntl.
36388         * modules/stdlib-safer (Depends-on): Add stdlib.
36389         (configure.ac): Set indicator.
36390         * modules/unistd-safer (configure.ac): Likewise.
36391         * modules/tmpfile-safer (configure.ac): Likewise.
36392         (Depends-on): Add tmpfile.
36393         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
36394         active.
36395         * tests/test-fopen.c (includes): Test safer versions when they are
36396         in use.
36397         * tests/test-open.c (includes): Likewise.
36398
36399         popen: fix cygwin 1.5 bug when stdin closed
36400         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
36401         * modules/popen: New file.
36402         * modules/popen-tests: Likewise.
36403         * tests/test-popen.c: Likewise.
36404         * m4/popen.m4: Likewise.
36405         * lib/popen.c: Likewise.
36406         * lib/stdio.in.h (popen): New declaration.
36407         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
36408         * modules/stdio (Makefile.am): Likewise.
36409         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
36410
36411 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
36412
36413         maint.mk: give full control over update-copyright exclusions
36414         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
36415         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
36416         (update-copyright): Don't force inclusion of top-level
36417         ChangeLog.  Don't force exclusion of all COPYING files, but make
36418         them the default exclusion instead.
36419
36420 2009-08-16  Bruno Haible  <bruno@clisp.org>
36421
36422         Fix test failures on Solaris 10.
36423         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
36424         tests when Solaris iconv() is used.
36425         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
36426         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
36427         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
36428         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
36429         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
36430
36431 2009-08-16  Bruno Haible  <bruno@clisp.org>
36432
36433         Fix test failures on Solaris 10.
36434         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
36435         'tr' program and pass it as first argument.
36436         * tests/test-pipe-filter-gi1.sh: Likewise.
36437         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
36438         program as first argument.
36439         * tests/test-pipe-filter-gi1.c (main): Likewise.
36440
36441 2009-08-16  Eric Blake  <ebb9@byu.net>
36442
36443         fpurge: fix previous commits
36444         * modules/fpurge (Makefile.am): Make replacement conditional,
36445         partially reverting 2007-04-29 change; missed in previous
36446         attempt.
36447         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
36448         is missing.
36449
36450 2009-08-16  Bruno Haible  <bruno@clisp.org>
36451
36452         Clarify fpurge's effect on the file position.
36453         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
36454         * tests/test-fpurge.c (main): Make a second pass for checking the file
36455         position.
36456
36457 2009-08-16  Bruno Haible  <bruno@clisp.org>
36458
36459         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
36460         declaration of fpurge is missing.
36461         * tests/test-fpurge.c (main): Check that the file has not more contents
36462         than expected. Close the file before removing it.
36463
36464 2009-08-15  Eric Blake  <ebb9@byu.net>
36465
36466         fpurge: don't wrap working cygwin implementation
36467         * lib/fpurge.c (fpurge): Fix comment typo.
36468         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
36469         1.7 to avoid replacement.
36470         * tests/test-fpurge.c (main): Enhance test.
36471
36472 2009-08-15  Eric Blake  <ebb9@byu.net>
36473         and Jim Meyering  <meyering@redhat.com>
36474
36475         test-update-copyright: skip if perl is insufficient
36476         * tests/test-update-copyright.sh: Failure to run maintainer tool
36477         should not cause testsuite failure on cygwin 1.5.
36478
36479 2009-08-14  Eric Blake  <ebb9@byu.net>
36480
36481         doc: mention more functions added in cygwin 1.7.0
36482         * doc/posix-headers/limits.texi (limits.h): Update for recent
36483         cygwin additions.
36484         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
36485         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
36486         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
36487         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
36488         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
36489
36490 2009-08-14  Eric Blake  <ebb9@byu.net>
36491
36492         maint.mk: simplify update-copyright rule
36493         * top/maint.mk (update-copyright-local): Delete, and document how
36494         to do it in cfg.mk instead.
36495         (update-copyright-exclude-regexp): Delete, and document how to do
36496         it in .x-update-copyright instead.
36497         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
36498         exclude ChangeLog.
36499
36500 2009-08-14  Bruno Haible  <bruno@clisp.org>
36501
36502         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
36503
36504 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
36505
36506         maint.mk: support update-copyright-env
36507         * top/maint.mk (update-copyright-env): Define place-holder.
36508         (update-copyright): Expand $(update-copyright-env) before
36509         invoking update-copyright.
36510
36511 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
36512
36513         update-copyright: implement forced reformatting
36514         * build-aux/update-copyright: Implement and document
36515         UPDATE_COPYRIGHT_FORCE.
36516         * tests/test-update-copyright.sh: Test it.
36517
36518 2009-08-14  Eric Blake  <ebb9@byu.net>
36519         and Bruno Haible  <bruno@clisp.org>
36520
36521         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
36522         * tests/test-locale.c: Revert previous patch related to NULL.
36523         * tests/test-stdio.c: Likewise.
36524         * tests/test-stdlib.c: Likewise.
36525         * tests/test-string.c: Likewise.
36526         * tests/test-unistd.c: Likewise.
36527         * modules/time-tests (Depends-on): Add verify.
36528         * modules/wchar-tests (Depends-on): Likewise.
36529         * tests/test-time.c: Test for NULL compliance.
36530         * tests/test-wchar.c: Likewise.
36531         * modules/locale (Depends-on): Add stddef.
36532         * modules/stdio (Depends-on): Likewise.
36533         * modules/stdlib (Depends-on): Likewise.
36534         * modules/string (Depends-on): Likewise.
36535         * modules/time (Depends-on): Likewise.
36536         * modules/unistd (Depends-on): Likewise.
36537         * modules/wchar (Depends-on): Likewise.
36538         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
36539         * lib/stdlib.in.h (includes): Likewise.
36540         * lib/string.in.h (includes): Likewise.
36541         * lib/time.in.h (includes): Likewise.
36542         * lib/unistd.in.h (includes): Likewise.
36543         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
36544         replaced.
36545         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
36546         * m4/stddef_h.m4: New file.
36547         * modules/stddef: Likewise.
36548         * lib/stddef.in.h: Likewise.
36549         * modules/stddef-tests: Likewise.
36550         * tests/test-stddef.c: Likewise.
36551         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
36552         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
36553         * doc/posix-headers/locale.texi (locale.h): Likewise.
36554         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
36555         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
36556         * doc/posix-headers/string.texi (string.h): Likewise.
36557         * doc/posix-headers/time.texi (time.h): Likewise.
36558         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
36559         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
36560
36561 2009-08-14  Eric Blake  <ebb9@byu.net>
36562
36563         doc: improve git diff of texinfo files
36564         * .gitattributes: Add rule for *.texi files, with hint on how to
36565         use it.
36566         Copied from m4, and based on a report by Bruno Haible.
36567
36568 2009-08-14  Bruno Haible  <bruno@clisp.org>
36569
36570         Disable multithread support by default on Cygwin 1.5.x for real.
36571         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
36572
36573 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
36574
36575         update-copyright: much ado about intervals
36576         * build-aux/update-copyright: Implement and document
36577         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
36578         of copyright year intervals.
36579         Also, document UPDATE_COPYRIGHT_YEAR.
36580         * tests/test-update-copyright.sh: Test it.
36581
36582         update-copyright: convert 2-digit to 4-digit years
36583         * build-aux/update-copyright: Implement and document.
36584         * tests/test-update-copyright.sh: Update.
36585
36586 2009-08-14  Jim Meyering  <meyering@redhat.com>
36587
36588         test-exclude: avoid coreutils "make check" failure
36589         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
36590         just as in test-argmatch.c.
36591
36592 2009-08-13  Eric Blake  <ebb9@byu.net>
36593
36594         test-dup2: fix bad assumption
36595         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
36596         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
36597
36598         test-version-etc: fix CRLF portability issue
36599         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
36600         recognize \r.
36601         * tests/test-argp-version-etc-1.sh: Likewise.
36602
36603         getopt: update client modules
36604         * modules/argp (Depends-on): Use getopt-gnu.
36605         * modules/git-merge-changelog (Depends-on): Likewise.
36606         * modules/long-options (Depends-on): Likewise.
36607         * modules/xstrtol (Depends-on): Likewise.
36608
36609 2009-08-13  Simon Josefsson  <simon@josefsson.org>
36610
36611         * tests/test-version-etc.sh: Don't fail on different
36612         project/version.  Don't fail on CRLF differences.  Rewrite to use
36613         multiple -e instead of multiple sed forks, suggested by Eric Blake
36614         <ebb9@byu.net>.
36615         * tests/test-argp-version-etc-1.sh: Likewise.
36616
36617 2009-08-13  Simon Josefsson  <simon@josefsson.org>
36618
36619         * tests/test-version-etc.sh: Don't fail on different
36620         project/version.
36621
36622 2009-08-12  Bruno Haible  <bruno@clisp.org>
36623
36624         Tests for modules 'getopt-posix', 'getopt-gnu'.
36625         * modules/getopt-posix-tests: New file.
36626         * tests/test-getopt.c: New file.
36627         * tests/test-getopt.h: New file.
36628         * tests/test-getopt_long.h: New file.
36629
36630         New modules 'getopt-posix', 'getopt-gnu'.
36631         * modules/getopt-gnu: New file, renamed from modules/getopt.
36632         * modules/getopt-posix: New file.
36633         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
36634         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
36635         (gl_GETOPT): Remove macro.
36636         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
36637         Disable the test against BSD systems that declare optreset. Test
36638         against mingw bug. Test against lack of support of optional arguments
36639         on many platforms.
36640         * doc/glibc-headers/getopt.texi: Update module name and list of
36641         relevant platforms.
36642         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
36643         'getopt-gnu' and more portability problems.
36644         * NEWS: Mention the changes.
36645
36646 2009-08-12  Bruno Haible  <bruno@clisp.org>
36647
36648         Ensure that optarg etc. get declared by <unistd.h>.
36649         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
36650         AC_USE_SYSTEM_EXTENSIONS.
36651         * modules/getopt (Depends-on): Add 'extensions'.
36652
36653 2009-08-12  Bruno Haible  <bruno@clisp.org>
36654
36655         Avoid test link errors.
36656         * modules/pipe-filter-ii-tests (Makefile.am): Define
36657         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
36658         * modules/pipe-filter-gi-tests (Makefile.am): Define
36659         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
36660         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
36661
36662 2009-08-12  Bruno Haible  <bruno@clisp.org>
36663
36664         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
36665         gl_GETOPT_SUBSTITUTE before.
36666         (gl_GETOPT): Use it.
36667         * m4/argp.m4 (gl_ARGP): Update.
36668         Reported by Sergey Poznyakoff.
36669
36670         * m4/getopt.m4: Reorder macros.
36671         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
36672         (gl_GETOPT_SUBSTITUTE): Remove macro.
36673
36674 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
36675
36676         Minor improvement in gitlog-to-changelog
36677
36678         * build-aux/gitlog-to-changelog: New option `--format' makes
36679         output format string configurable.
36680
36681 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
36682
36683         Optimize exclude: use hash tables for non-wildcard patterns.
36684
36685         * lib/exclude.c: Include hash.h and mbuiter.h
36686         (struct exclude_pattern, exclude_segment): New data types.
36687         (struct exclude): Rewrite.
36688         (fnmatch_pattern_has_wildcards): New function.
36689         (new_exclude_segment, free_exclude_segment): New functions.
36690         (excluded_file_pattern_p, excluded_file_name_p): New functions.
36691         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
36692         * lib/exclude.h (is_fnmatch_pattern): New prototype.
36693         * modules/exclude: Depend on hash and mbuiter.
36694
36695         * modules/exclude-tests: New file.
36696         * tests/test-exclude.c: New file.
36697         * tests/test-exclude1.sh: New file.
36698         * tests/test-exclude2.sh: New file.
36699         * tests/test-exclude3.sh: New file.
36700         * tests/test-exclude4.sh: New file.
36701         * tests/test-exclude5.sh: New file.
36702         * tests/test-exclude6.sh: New file.
36703         * tests/test-exclude7.sh: New file.
36704
36705 2009-08-12  Bruno Haible  <bruno@clisp.org>
36706
36707         Ensure that getopt() gets declared by <unistd.h>.
36708         * lib/unistd.in.h: Conditionally include getopt.h.
36709         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
36710         Set GNULIB_UNISTD_H_GETOPT.
36711         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
36712         GNULIB_UNISTD_H_GETOPT.
36713         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
36714
36715 2009-08-12  Bruno Haible  <bruno@clisp.org>
36716
36717         Clarify logic.
36718         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
36719         gl_replace_getopt instead of GETOPT_H.
36720
36721 2009-08-12  Bruno Haible  <bruno@clisp.org>
36722
36723         * m4/getopt.m4: Add comments.
36724
36725 2009-08-12  Bruno Haible  <bruno@clisp.org>
36726
36727         Disable multithread support by default on Cygwin 1.5.x.
36728         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
36729         set gl_use_threads=no if not specified otherwise.
36730
36731 2009-08-11  Bruno Haible  <bruno@clisp.org>
36732
36733         Avoid compilation error on NetBSD 5.0.
36734         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
36735         * tests/test-stdio.c: Likewise.
36736         * tests/test-stdlib.c: Likewise.
36737         * tests/test-string.c: Likewise.
36738         * tests/test-unistd.c: Likewise.
36739         Reported by Greg Troxel <gdt@ir.bbn.com>
36740         at <https://savannah.gnu.org/support/?106973>.
36741
36742 2009-08-11  Bruno Haible  <bruno@clisp.org>
36743
36744         * modules/dup2-tests (Depends-on): Remove close.
36745
36746         Undo 2009-07-19 commit.
36747         * modules/acl-tests (Depends-on): Remove close.
36748         * modules/binary-io-tests (Depends-on): Likewise.
36749         * modules/closein-tests (Depends-on): Likewise.
36750         * modules/flock-tests (Depends-on): Likewise.
36751         * modules/fsync-tests (Depends-on): Likewise.
36752         * modules/lseek-tests (Depends-on): Likewise.
36753         * modules/pipe-tests (Depends-on): Likewise.
36754         * modules/posix_spawn-tests (Depends-on): Likewise.
36755         * modules/posix_spawnp-tests (Depends-on): Likewise.
36756         * modules/stat-time-tests (Depends-on): Likewise.
36757         * modules/yesno-tests (Depends-on): Likewise.
36758
36759 2009-08-10  Bruno Haible  <bruno@clisp.org>
36760
36761         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
36762
36763 2009-08-10  Bruno Haible  <bruno@clisp.org>
36764
36765         Fix a gcc warning.
36766         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
36767
36768 2009-08-10  Bruno Haible  <bruno@clisp.org>
36769
36770         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
36771         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
36772         not only the first time.
36773         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
36774         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
36775         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
36776         is 1, not only the the first time.
36777
36778 2009-08-10  Bruno Haible  <bruno@clisp.org>
36779
36780         Make it possible to use module 'gethostname' without module 'close'.
36781         * lib/unistd.in.h (close): Evoke a link error only if
36782         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
36783         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
36784         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
36785         * modules/unistd (Makefile.am): Substitute
36786         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
36787         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
36788         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
36789         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
36790         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
36791         * modules/sys_ioctl (Makefile.am): Substitute
36792         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
36793         * modules/socket (configure.ac): On native Windows, set
36794         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
36795         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
36796         Reported by Sam Steingold <sds@gnu.org>.
36797
36798 2009-08-10  Bruno Haible  <bruno@clisp.org>
36799
36800         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
36801         * modules/ioctl (configure.ac): Likewise.
36802
36803 2009-08-10  Bruno Haible  <bruno@clisp.org>
36804
36805         Avoid collision between gnulib wrapper and libintl wrapper.
36806         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
36807         already defined in intl/printf.c.
36808         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
36809         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
36810
36811 2009-08-09  Bruno Haible  <bruno@clisp.org>
36812
36813         Make <sys/select.h> really self-contained, also on Solaris 10.
36814         * lib/sys_select.in.h: Include <string.h>.
36815         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
36816         Solaris 10 problem.
36817         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
36818         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
36819         Reported by Jim Meyering.
36820
36821 2009-08-09  Bruno Haible  <bruno@clisp.org>
36822
36823         Avoid warnings from 'aclocal' that are due to a use of macro name
36824         AM_XGETTEXT_OPTION that is not defined in automake.
36825         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
36826         automake.
36827         * modules/error (configure.ac): Likewise.
36828         * modules/propername (configure.ac): Likewise.
36829         * modules/vasprintf (configure.ac): Likewise.
36830         * modules/verror (configure.ac): Likewise.
36831         * modules/xprintf (configure.ac): Likewise.
36832         * modules/xvasprintf (configure.ac): Likewise.
36833
36834 2009-08-08  Bruno Haible  <bruno@clisp.org>
36835
36836         Avoid compilation error in C++ mode.
36837         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
36838         Reported by Sam Steingold <sds@gnu.org>.
36839
36840 2009-08-08  Bruno Haible  <bruno@clisp.org>
36841
36842         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
36843         for the various Unix platforms.
36844         * doc/posix-headers/limits.texi: Update platforms list regarding
36845         HOST_NAME_MAX.
36846         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
36847
36848 2009-08-07  Jim Meyering  <meyering@redhat.com>
36849
36850         selinux-at: fix typo in a comment
36851         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
36852         Spotted by Paolo Bonzini.
36853
36854         selinux-at: remove redundant m4 code, add documentation
36855         * modules/selinux-at (configure.ac): Remove redundant code.
36856         LIB_SELINUX is already set via the dependent module, selinux-h.
36857         (Include): Add quotes around selinux-at.h.
36858         * lib/selinux-at.h: Add documentation.
36859         Reported by Bruno Haible in
36860         http://marc.info/?l=gnulib-bug&m=124958988300749
36861
36862 2009-08-07  Bruno Haible  <bruno@clisp.org>
36863
36864         Avoid link error on MacOS X 10.3 and 10.4.
36865         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
36866         on non-ELF systems.
36867         * lib/argp-pv.c (argp_program_version): Likewise.
36868         Reported by Simon Josefsson.
36869
36870 2009-08-07  Simon Josefsson  <simon@josefsson.org>
36871
36872         * tests/test-version-etc.sh: Use $EXEEXT.
36873
36874 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
36875
36876         update-copyright: update documentation to point to maint.mk
36877         * build-aux/update-copyright: Here.
36878
36879 2009-08-06  Jim Meyering  <meyering@redhat.com>
36880
36881         maint.mk: support update-copyright-local
36882         * top/maint.mk (update-copyright-local): Define place-holder.
36883         (update-copyright): Depend on $(update-copyright-local).
36884
36885 2009-08-06  Jim Meyering  <meyering@redhat.com>
36886
36887         selinux-at: new module
36888         Initially written for coreutils, this module will soon be
36889         used by findutils, too.
36890         * MODULES.html.sh [Misc]: Add selinux-at.
36891         * lib/selinux-at.h: New file, from coreutils.
36892         * lib/selinux-at.c: Likewise.
36893         * modules/selinux-at: Likewise.
36894         (License): Change from LGPL to GPL, since it depends
36895         on the GPL'd openat module.
36896
36897         doc: update README
36898         * README: Remove references to cogito.
36899         Remove cvs-repo-updating instructions from 2007.
36900         Don't imply that CVS is better if you have limited disk space.
36901
36902 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
36903
36904         update-copyright: support C-style comments
36905         * build-aux/update-copyright: Implement and document.
36906         * tests/test-update-copyright.sh: Test.
36907
36908 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
36909
36910         update-copyright: support omitted "(C)"
36911         * build-aux/update-copyright: Implement and document.  Also,
36912         allow variable whitespace before "(C)".
36913         * tests/test-update-copyright.sh: Test.
36914
36915 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
36916
36917         update-copyright: don't trip on non-FSF copyright statements
36918         * build-aux/update-copyright: Fix so that the first correctly
36919         formatted FSF copyright statement is recognized no matter what
36920         appears before it.  Update documentation.
36921         * tests/test-update-copyright.sh: Test that.
36922
36923 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
36924
36925         update-copyright: clean up code a little
36926         * build-aux/update-copyright: Append "_re" to the name of any
36927         variable holding a regular expression.
36928         Replace "old" and "new" with "stmt" in variable names.
36929         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
36930         handled correctly.
36931         Format code more consistently.
36932
36933 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
36934
36935         update-copyright-tests: improve portability
36936         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
36937         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
36938
36939 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
36940
36941         update-copyright: support @copyright{} and &copy;
36942         * build-aux/update-copyright: Implement and document.
36943         * tests/test-update-copyright.sh: Test.
36944
36945 2009-08-04  Jim Meyering  <meyering@redhat.com>
36946
36947         update-copyright-tests: correctly test EOL=\r\n handling
36948         * tests/test-update-copyright.sh: Put \r at the end of some lines
36949         for the dos-eol tests.  Based on a patch by Joel E. Denny.
36950
36951         maint.mk: make update-copyright exclusion list more configurable
36952         * top/maint.mk (update-copyright): Default to excluding COPYING,
36953         but allow an override, in case someone does want to update that file.
36954
36955         maint.mk: don't update copyright date in COPYING
36956         * top/maint.mk (update-copyright): Exclude COPYING.
36957
36958         maint.mk: add a copyright-updating rule
36959         * top/maint.mk (update-copyright): New rule.
36960         Derived from coreutils/Makefile.am.
36961
36962         update-copyright: rename some variables
36963         * build-aux/update-copyright: Rename a few variables for clarity.
36964         Tweak syntax.  List Joel E. Denny as coauthor.
36965
36966 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
36967
36968         update-copyright: fix bug for 2-digit last year and add tests
36969         * build-aux/update-copyright: Fix bug.
36970         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
36971         specified.
36972         * modules/update-copyright-tests: New
36973         * tests/test-update-copyright.sh: New.
36974
36975 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
36976
36977         update-copyright: handle leading tabs in line prefix
36978         * build-aux/update-copyright: Count leading tabs as 8 spaces
36979         when computing margin.  This helps with the formatting of
36980         ChangeLogs, for example.
36981         Fix documentation a little.
36982
36983 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
36984
36985         update-copyright: support EOL=\r\n
36986         * build-aux/update-copyright: Implement that.
36987
36988 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
36989
36990         update-copyright: automatically format copyright statements
36991         * build-aux/update-copyright: Implement that.
36992         Also, be a little more predictable and safer by always failing
36993         when the full copyright format is not perfectly recognized as an
36994         unbroken whole.  Discussed at
36995         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
36996         Rewrite documentation.
36997
36998 2009-08-03  Bruno Haible  <bruno@clisp.org>
36999
37000         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
37001
37002 2009-08-02  Bruno Haible  <bruno@clisp.org>
37003
37004         Tests for module 'uname'.
37005         * modules/uname-tests: New file.
37006         * tests/test-uname.c: New file.
37007
37008         New module 'uname'.
37009         * lib/uname.c: New file.
37010         * m4/uname.m4: New file.
37011         * modules/uname: New file.
37012         * doc/posix-functions/uname.texi: Mention the new module.
37013
37014 2009-08-02  Bruno Haible  <bruno@clisp.org>
37015
37016         Tests for module 'sys_utsname'.
37017         * modules/sys_utsname-tests: New file.
37018         * tests/test-sys_utsname.c: New file.
37019
37020         New module 'sys_utsname'.
37021         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
37022         * m4/sys_utsname_h.m4: New file.
37023         * modules/sys_utsname: New file.
37024         * doc/posix-headers/sys_utsname.texi: Mention the new module.
37025
37026 2009-08-02  Bruno Haible  <bruno@clisp.org>
37027
37028         Implicitly initialize the sockets library.
37029         * lib/gethostname.c: Include sockets.h.
37030         (rpl_gethostname): Invoke gl_sockets_startup.
37031         * lib/socket.c: Include sockets.h.
37032         (rpl_socket): Invoke gl_sockets_startup.
37033         * modules/gethostname (Depends-on): Add sockets.
37034         * modules/socket (Depends-on): Likewise.
37035         * tests/test-poll.c: Don't include sockets.h.
37036         (main): Don't invoke gl_sockets_startup.
37037         * tests/test-select.c: Don't include sockets.h.
37038         (main): Don't invoke gl_sockets_startup.
37039
37040 2009-08-02  Bruno Haible  <bruno@clisp.org>
37041
37042         Allow multiple calls to gl_sockets_startup.
37043         * lib/sockets.c (initialized_sockets_version): New variable.
37044         (gl_sockets_startup): Do nothing if already called for this or a higher
37045         version.
37046         (gl_sockets_cleanup): Reset initialized_sockets_version.
37047
37048 2009-08-03  Simon Josefsson  <simon@josefsson.org>
37049
37050         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
37051         different project/version.
37052
37053 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
37054             Bruno Haible  <bruno@clisp.org>
37055
37056         Tests for module 'pipe-filter-gi'.
37057         * modules/pipe-filter-gi-tests: New file.
37058         * tests/test-pipe-filter-gi1.sh: New file.
37059         * tests/test-pipe-filter-gi1.c: New file.
37060         * tests/test-pipe-filter-gi2.sh: New file.
37061         * tests/test-pipe-filter-gi2-main.c: New file.
37062         * tests/test-pipe-filter-gi2-child.c: New file.
37063
37064         New module 'pipe-filter-gi'.
37065         * lib/pipe-filter-gi.c: New file.
37066         * modules/pipe-filter-gi: New file.
37067
37068 2009-08-02  Bruno Haible  <bruno@clisp.org>
37069             Paolo Bonzini  <bonzini@gnu.org>
37070
37071         Tests for module 'pipe-filter-ii'.
37072         * modules/pipe-filter-ii-tests: New file.
37073         * tests/test-pipe-filter-ii1.sh: New file.
37074         * tests/test-pipe-filter-ii1.c: New file.
37075         * tests/test-pipe-filter-ii2.sh: New file.
37076         * tests/test-pipe-filter-ii2-main.c: New file.
37077         * tests/test-pipe-filter-ii2-child.c: New file.
37078
37079         New module 'pipe-filter-ii'.
37080         * lib/pipe-filter.h: New file.
37081         * lib/pipe-filter-ii.c: New file.
37082         * lib/pipe-filter-aux.h: New file.
37083         * modules/pipe-filter-ii: New file.
37084
37085 2009-08-02  Simon Josefsson  <simon@josefsson.org>
37086
37087         * lib/gc-libgcrypt.c: Change copyright to FSF.
37088         * lib/gc-gnulib.c: Likewise.
37089
37090 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
37091
37092         * lib/gethostname.c: Include limits.h.
37093
37094 2009-08-02  Simon Josefsson  <simon@josefsson.org>
37095             Bruno Haible  <bruno@clisp.org>
37096
37097         Ensure HOST_NAME_MAX as part of the gethostname module.
37098         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
37099         define also HOST_NAME_MAX.
37100         * tests/test-gethostname.c: Include <limits.h>.
37101         (main): Check also HOST_NAME_MAX.
37102         * doc/posix-headers/limits.texi: Document the mingw problem.
37103
37104 2009-08-02  Bruno Haible  <bruno@clisp.org>
37105
37106         * lib/gethostname.c (gethostname): Fix handling of large len argument.
37107         Add comments.
37108
37109 2009-03-31  Simon Josefsson  <simon@josefsson.org>
37110
37111         * lib/gethostname.c: Add Windows wrapper.
37112         * m4/gethostname.m4: Look for gethostname in -lws2_32.
37113         * modules/gethostname: Depend on sys_socket & errno, for also
37114         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
37115         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
37116
37117 2009-07-31  Jim Meyering  <meyering@redhat.com>
37118
37119         getloadavg: fix symbol name in comment
37120         * lib/getloadavg.c: Correct a typo I introduced when adding
37121         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
37122         Matt Kraai spotted the problem.
37123
37124 2009-07-29  Matt Kraai  <mkraai@beckman.com>
37125
37126         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
37127         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
37128         code also if ! defined N_NAME_POINTER.
37129         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
37130         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
37131         but the n_name member is a 12-byte array.
37132
37133 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
37134
37135         update-copyright: generalize comment handling
37136         * build-aux/update-copyright: Handle copyright statements
37137         within more comment styles.
37138         Document usage.
37139         Report any file with an external copyright holder or parse failure.
37140
37141 2009-07-29  Jim Meyering  <meyering@redhat.com>
37142
37143         mktime: correct setting of REPLACE_MKTIME
37144         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
37145
37146         update-copyright: new module
37147         * modules/update-copyright: New file.
37148         * build-aux/update-copyright: New file.
37149         * MODULES.html.sh (maint+release support): Add update-copyright.
37150
37151 2009-07-27  Bruno Haible  <bruno@clisp.org>
37152
37153         Fix compilation error when <ctime> is used and mktime is replaced.
37154         * lib/time.in.h (mktime): New declaration.
37155         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
37156         REPLACE_MKTIME instead of defining mktime in config.h.
37157         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
37158         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
37159         Reported by Ross McFarland <rwmcfa1@neces.com>.
37160
37161 2009-07-27  Bruno Haible  <bruno@clisp.org>
37162
37163         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
37164         Reported by Matt Kraai <mkraai@beckman.com>.
37165
37166 2009-07-25  Jim Meyering  <meyering@redhat.com>
37167
37168         maint.mk: avoid warnings about missing files
37169         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
37170         diagnostic when .prev-version does not exist.
37171         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
37172         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
37173         nonexistent cfg.mk.
37174         Suggestions from Simon Josefsson.
37175
37176 2009-07-25  Bruno Haible  <bruno@clisp.org>
37177
37178         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
37179         defined as macros. Needed on QNX 6.4.1.
37180         Reported by Matt Kraai <mkraai@beckman.com>.
37181
37182 2009-07-23  Jim Meyering  <meyering@redhat.com>
37183
37184         maint.mk: invoke "make dist" with a working value of XZ_OPT
37185         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
37186
37187 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
37188
37189         Make fseeko.c compile on QNX.
37190         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
37191
37192 2009-07-22  Peter Simons  <simons@cryp.to>
37193
37194         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
37195         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
37196         * lib/md4.h: Likewise.
37197         * lib/md5.h: Likewise.
37198         * lib/sha1.h: Likewise.
37199         * lib/sha256.h: Likewise.
37200         * lib/sha512.h: Likewise.
37201
37202         tests-sha1: don't assign literal string to 'char *' variable
37203         * tests/test-sha1.c (main): Declare locals with "const" to match
37204         attributes of the right hand side.
37205
37206 2009-07-21  Eric Blake  <ebb9@byu.net>
37207
37208         dup2: fix more mingw problems
37209         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
37210         fd to itself.
37211         * doc/posix-functions/dup2.texi (dup2): Document the bug.
37212         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
37213         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
37214         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
37215         care of mingw bugs.
37216
37217 2009-07-21  Jim Meyering  <meyering@redhat.com>
37218
37219         vc-list-files: avoid failure when /bin/sh is dash
37220         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
37221         On some Debian based systems, /bin/sh is a symlink to dash, and running
37222         this command would omit the "/" following each 'tests' prefix:
37223           dash -x build-aux/vc-list-files -C . tests
37224         That is because bash and dash work differently:
37225           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
37226           bash ok
37227           dash odd
37228
37229 2009-07-21  Eric Blake  <ebb9@byu.net>
37230
37231         dup2-tests: test previous patch
37232         * modules/dup2-tests: New file.
37233         * tests/test-dup2.c: Likewise.
37234         * tests/test-open.c (main): Avoid unspecified behavior.
37235         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
37236         test.
37237
37238         dup2: work around mingw and cygwin 1.5 bug
37239         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
37240         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
37241         * modules/unistd (Makefile.am): Substitute it.
37242         * lib/unistd.in.h (dup2): Declare the replacement.
37243         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
37244         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
37245         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
37246         * modules/execute (Depends-on): Add dup2.
37247         * modules/fseterr (Depends-on): Likewise.
37248         * modules/pipe (Depends-on): Likewise.
37249         * modules/posix_spawn-internal (Depends-on): Likewise.
37250
37251 2009-07-21  Bruno Haible  <bruno@clisp.org>
37252
37253         * modules/.gitattributes: New file.
37254
37255 2009-07-20  Bruno Haible  <bruno@clisp.org>
37256
37257         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
37258         (main): Use it.
37259
37260 2009-07-20  Eric Blake  <ebb9@byu.net>
37261
37262         test-pipe: make a bit more robust.
37263         * tests/test-pipe.c (myerr): Allow error messages regardless of
37264         what we do to stderr.
37265         (test_pipe): Rearrange to avoid deadlock.
37266         (child_main): Try a larger read, to ensure we avoided deadlock.
37267         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
37268         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
37269         if misused.
37270
37271 2009-07-19  Jim Meyering  <meyering@redhat.com>
37272
37273         fts: avoid false-positive cycle-detection
37274         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
37275         for each new command line argument.
37276
37277 2009-07-19  Bruno Haible  <bruno@clisp.org>
37278
37279         Fix build error on mingw with the modules sys_select and unistd.
37280         * modules/acl-tests (Depends-on): Add close.
37281         * modules/binary-io-tests (Depends-on): Likewise.
37282         * modules/closein-tests (Depends-on): Likewise.
37283         * modules/flock-tests (Depends-on): Likewise.
37284         * modules/fsync-tests (Depends-on): Likewise.
37285         * modules/lseek-tests (Depends-on): Likewise.
37286         * modules/pipe-tests (Depends-on): Likewise.
37287         * modules/posix_spawn-tests (Depends-on): Likewise.
37288         * modules/posix_spawnp-tests (Depends-on): Likewise.
37289         * modules/stat-time-tests (Depends-on): Likewise.
37290         * modules/yesno-tests (Depends-on): Likewise.
37291
37292 2009-07-19  Bruno Haible  <bruno@clisp.org>
37293
37294         Unify conditionals.
37295         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
37296         macros, not at the compiler macros.
37297         * lib/pipe.c: Likewise.
37298         * lib/execute.c: Likewise.
37299         * lib/spawni.c: Likewise.
37300
37301 2009-07-19  Bruno Haible  <bruno@clisp.org>
37302
37303         Fix handling of closed stdin/stdout/stderr on mingw.
37304         * lib/w32spawn.h: Include unistd.h.
37305         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
37306         file descriptor with O_NOINHERIT flag.
37307         (fd_safer_noinherit): New function, based on fd-safer.c.
37308         (dup_safer_noinherit): New function, based on dup-safer.c.
37309         (undup_safer_noinherit): New function.
37310         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
37311         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
37312         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
37313         instead of fd_safer.
37314         * tests/test-pipe.c: Include <windows.h>.
37315         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
37316         result.
37317
37318         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
37319         from main.
37320         (test_pipe): Pass an extra argument for disambiguation.
37321         (main): Invoke parent_main or child_main.
37322
37323         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
37324         consistently.
37325
37326 2009-07-18  Eric Blake  <ebb9@byu.net>
37327
37328         test-pipe: fix mingw build
37329         * tests/test-pipe.c (main): Avoid fcntl on mingw.
37330
37331 2009-07-18  Bruno Haible  <bruno@clisp.org>
37332
37333         * modules/pipe-tests (Makefile.am): Fix typo.
37334
37335 2009-07-18  Eric Blake  <ebb9@byu.net>
37336
37337         error: fix mingw build
37338         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
37339         Reported by Bruno Haible.
37340
37341         error: avoid undefined use of stdout
37342         * lib/error.c (error, error_at_line): Check that fd 1 is open
37343         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
37344         is handling faults and the close_stdout module wants to report the
37345         detection of closed stdout as an error.
37346
37347 2009-07-17  Eric Blake  <ebb9@byu.net>
37348
37349         pipe: be robust in face of closed fds
37350         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
37351         should cause child to misbehave.
37352         * modules/pipe-tests: New module.
37353         * tests/test-pipe.c: New file.
37354         * tests/test-pipe.sh: New file.
37355         Reported by Akim Demaille.
37356
37357 2009-07-14  Bruno Haible  <bruno@clisp.org>
37358
37359         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
37360         Reported by anonymous kc.
37361
37362 2009-07-07  Jim Meyering  <meyering@redhat.com>
37363
37364         maint.mk: don't look for translatable strings in *.m4 or *.mk
37365         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
37366         when searching for translatable strings.
37367
37368 2009-07-05  Jim Meyering  <meyering@redhat.com>
37369
37370         remove superfluous parentheses in STREQ definition
37371         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
37372         * lib/getugroups.c (STREQ): Likewise.
37373         * lib/fnmatch.c (STREQ): Likewise.
37374         Spotted by Bruno Haible.
37375
37376 2009-07-04  Jim Meyering  <meyering@redhat.com>
37377
37378         argv-iter: new module
37379         * MODULES.html.sh: Add argv-iter.
37380         * lib/argv-iter.c, lib/argv-iter.h: New files.
37381         * modules/argv-iter: New file.
37382         * modules/argv-iter-tests: New file.
37383         * tests/test-argv-iter.c: Test it.
37384
37385 2009-07-04  Bruno Haible  <bruno@clisp.org>
37386
37387         Fix assertion.
37388         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
37389         contains more exact copies of a given entry than file2, leave the extra
37390         copies unpaired rather than aborting.
37391         Reported by Eric Blake.
37392
37393 2009-07-02  Bruno Haible  <bruno@clisp.org>
37394
37395         Speedup git-merge-changelog for git cherry-pick.
37396         * lib/git-merge-changelog.c (struct entries_mapping): New type.
37397         (entries_mapping_get): New function, extracted from compute_mapping.
37398         (entries_mapping_reverse_get): New function.
37399         (compute_mapping): Add a 'full' argument. Return the result in a
37400         'struct entries_mapping'.
37401         (main): Update. Access the mappings through entries_mapping_get.
37402         Reported by Eric Blake.
37403
37404 2009-07-02  Bruno Haible  <bruno@clisp.org>
37405
37406         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
37407         best_i.
37408
37409 2009-07-02  Bruno Haible  <bruno@clisp.org>
37410
37411         Speed up approximate search for matching ChangeLog entries.
37412         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
37413         argument. Call fstrcmp_bounded instead of fstrcmp.
37414         (compute_mapping, try_split_merged_entry, main): Update callers.
37415
37416 2009-07-02  Bruno Haible  <bruno@clisp.org>
37417
37418         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
37419
37420 2009-06-30  Bruno Haible  <bruno@clisp.org>
37421
37422         Reduce the number of uc_is_cased calls.
37423         * lib/unicase.h (casing_suffix_context_t): Add
37424         'first_char_except_ignorable' field.
37425         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
37426         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
37427         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
37428         Update initializer.
37429         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
37430         case-ignorable characters.
37431         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
37432         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
37433         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
37434         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
37435         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
37436
37437 2009-06-30  Bruno Haible  <bruno@clisp.org>
37438
37439         Tests for module 'unicase/ignorable'.
37440         * modules/unicase/ignorable-tests: New file.
37441         * tests/unicase/test-ignorable.c: New file, generated by
37442         gen-uni-tables.
37443
37444         Tests for module 'unicase/cased'.
37445         * modules/unicase/cased-tests: New file.
37446         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
37447         * tests/unicase/test-predicate-part1.h: New file, derived from
37448         tests/unictype/test-predicate-part1.h.
37449         * tests/unicase/test-predicate-part2.h: New file, same as
37450         tests/unictype/test-predicate-part2.h.
37451
37452         Fix evaluation of "Before C" condition of FINAL_SIGMA.
37453         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
37454         (output_casing_properties): New function.
37455         (main): Call it.
37456         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
37457         * lib/unicase/cased.c: Include unictype/bitmap.h.
37458         (uc_is_cased): Define through a bitmap lookup.
37459         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
37460         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
37461         (uc_is_case_ignorable): Define through a bitmap lookup.
37462         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
37463         lib/unictype/bitmap.h.
37464         (Depends-on): Add inline. Clean up.
37465         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
37466         lib/unictype/bitmap.h.
37467         (Depends-on): Add inline. Clean up.
37468         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
37469         recognition.
37470         * tests/unicase/test-u16-tolower.c (main): Likewise.
37471         * tests/unicase/test-u32-tolower.c (main): Likewise.
37472
37473 2009-06-30  Bruno Haible  <bruno@clisp.org>
37474
37475         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
37476         * lib/unicase/u16-casemap.c: Likewise.
37477         * lib/unicase/u32-casemap.c: Likewise.
37478
37479 2009-06-29  Bruno Haible  <bruno@clisp.org>
37480
37481         Define u32_casefold as a wrapper around u32_ct_casefold.
37482         * lib/unicase/u32-casefold.c: Update.
37483         * modules/unicase/u32-casefold (Depends-on): Add
37484         unicase/u32-ct-casefold, unicase/empty-prefix-context,
37485         unicase/empty-suffix-context. Clean up.
37486
37487         Define u16_casefold as a wrapper around u16_ct_casefold.
37488         * lib/unicase/u16-casefold.c: Update.
37489         * modules/unicase/u16-casefold (Depends-on): Add
37490         unicase/u16-ct-casefold, unicase/empty-prefix-context,
37491         unicase/empty-suffix-context. Clean up.
37492
37493         Define u8_casefold as a wrapper around u8_ct_casefold.
37494         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
37495         * lib/unicase/u8-casefold.c: Update.
37496         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
37497         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
37498
37499         Define u32_totitle as a wrapper around u32_ct_totitle.
37500         * lib/unicase/u32-totitle.c: Update.
37501         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
37502         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
37503
37504         Define u16_totitle as a wrapper around u16_ct_totitle.
37505         * lib/unicase/u16-totitle.c: Update.
37506         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
37507         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
37508
37509         Define u8_totitle as a wrapper around u8_ct_totitle.
37510         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
37511         functions.
37512         (FUNC): Delegate to U_CT_TOTITLE.
37513         * lib/unicase/u8-totitle.c: Update.
37514         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
37515         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
37516
37517         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
37518         invocation.
37519         * modules/unicase/u32-tolower (Depends-on): Add
37520         unicase/empty-prefix-context, unicase/empty-suffix-context.
37521
37522         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
37523         invocation.
37524         * modules/unicase/u16-tolower (Depends-on): Add
37525         unicase/empty-prefix-context, unicase/empty-suffix-context.
37526
37527         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
37528         * modules/unicase/u8-tolower (Depends-on): Add
37529         unicase/empty-prefix-context, unicase/empty-suffix-context.
37530
37531         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
37532         invocation.
37533         * modules/unicase/u32-toupper (Depends-on): Add
37534         unicase/empty-prefix-context, unicase/empty-suffix-context.
37535
37536         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
37537         invocation.
37538         * modules/unicase/u16-toupper (Depends-on): Add
37539         unicase/empty-prefix-context, unicase/empty-suffix-context.
37540
37541         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
37542         * modules/unicase/u8-toupper (Depends-on): Add
37543         unicase/empty-prefix-context, unicase/empty-suffix-context.
37544
37545         New module 'unicase/u32-ct-casefold'.
37546         * lib/unicase/u32-ct-casefold.c: New file.
37547         * modules/unicase/u32-ct-casefold: New file.
37548
37549         New module 'unicase/u16-ct-casefold'.
37550         * lib/unicase/u16-ct-casefold.c: New file.
37551         * modules/unicase/u16-ct-casefold: New file.
37552
37553         New module 'unicase/u8-ct-casefold'.
37554         * lib/unicase/u8-ct-casefold.c: New file.
37555         * lib/unicase/u-ct-casefold.h: New file, derived from
37556         lib/unicase/u-casefold.h.
37557         * modules/unicase/u8-ct-casefold: New file.
37558
37559         New module 'unicase/u32-ct-totitle'.
37560         * lib/unicase/u32-ct-totitle.c: New file.
37561         * modules/unicase/u32-ct-totitle: New file.
37562
37563         New module 'unicase/u16-ct-totitle'.
37564         * lib/unicase/u16-ct-totitle.c: New file.
37565         * modules/unicase/u16-ct-totitle: New file.
37566
37567         New module 'unicase/u8-ct-totitle'.
37568         * lib/unicase/u8-ct-totitle.c: New file.
37569         * lib/unicase/u-ct-totitle.h: New file, derived from
37570         lib/unicase/u-totitle.h.
37571         * modules/unicase/u8-ct-totitle: New file.
37572
37573         New module 'unicase/u32-ct-tolower'.
37574         * lib/unicase/u32-ct-tolower.c: New file.
37575         * modules/unicase/u32-ct-tolower: New file.
37576
37577         New module 'unicase/u16-ct-tolower'.
37578         * lib/unicase/u16-ct-tolower.c: New file.
37579         * modules/unicase/u16-ct-tolower: New file.
37580
37581         New module 'unicase/u8-ct-tolower'.
37582         * lib/unicase/u8-ct-tolower.c: New file.
37583         * modules/unicase/u8-ct-tolower: New file.
37584
37585         New module 'unicase/u32-ct-toupper'.
37586         * lib/unicase/u32-ct-toupper.c: New file.
37587         * modules/unicase/u32-ct-toupper: New file.
37588
37589         New module 'unicase/u16-ct-toupper'.
37590         * lib/unicase/u16-ct-toupper.c: New file.
37591         * modules/unicase/u16-ct-toupper: New file.
37592
37593         New module 'unicase/u8-ct-toupper'.
37594         * lib/unicase/u8-ct-toupper.c: New file.
37595         * modules/unicase/u8-ct-toupper: New file.
37596
37597         Add context arguments to u*_casemap functions.
37598         * lib/unicase/unicasemap.h: Include unicase.h.
37599         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
37600         suffix_context arguments.
37601         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
37602         functions.
37603         (FUNC): Add prefix_context and suffix_context arguments. Use
37604         uc_is_cased and uc_is_case_ignorable.
37605         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
37606         * lib/unicase/u16-casemap.c: Likewise.
37607         * lib/unicase/u32-casemap.c: Likewise.
37608         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
37609         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
37610         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
37611         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
37612         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
37613         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
37614
37615         New module 'unicase/u32-suffix-context'.
37616         * lib/unicase/u32-suffix-context.c: New file.
37617         * modules/unicase/u32-suffix-context: New file.
37618
37619         New module 'unicase/u16-suffix-context'.
37620         * lib/unicase/u16-suffix-context.c: New file.
37621         * modules/unicase/u16-suffix-context: New file.
37622
37623         New module 'unicase/u8-suffix-context'.
37624         * lib/unicase/u8-suffix-context.c: New file.
37625         * lib/unicase/u-suffix-context.h: New file.
37626         * modules/unicase/u8-suffix-context: New file.
37627
37628         New module 'unicase/empty-suffix-context'.
37629         * lib/unicase/empty-suffix-context.c: New file.
37630         * modules/unicase/empty-suffix-context: New file.
37631
37632         New module 'unicase/u32-prefix-context'.
37633         * lib/unicase/u32-prefix-context.c: New file.
37634         * modules/unicase/u32-prefix-context: New file.
37635
37636         New module 'unicase/u16-prefix-context'.
37637         * lib/unicase/u16-prefix-context.c: New file.
37638         * modules/unicase/u16-prefix-context: New file.
37639
37640         New module 'unicase/u8-prefix-context'.
37641         * lib/unicase/u8-prefix-context.c: New file.
37642         * lib/unicase/u-prefix-context.h: New file.
37643         * lib/unicase/context.h: New file.
37644         * modules/unicase/u8-prefix-context: New file.
37645
37646         New module 'unicase/empty-prefix-context'.
37647         * lib/unicase/empty-prefix-context.c: New file.
37648         * modules/unicase/empty-prefix-context: New file.
37649
37650         New module 'unicase/ignorable'.
37651         * lib/unicase/ignorable.c: New file.
37652         * modules/unicase/ignorable: New file.
37653
37654         New module 'unicase/cased'.
37655         * lib/unicase/caseprop.h: New file.
37656         * lib/unicase/cased.c: New file.
37657         * modules/unicase/cased: New file.
37658
37659         New functions for case mapping of substrings.
37660         * lib/unicase.h (casing_prefix_context_t): New type.
37661         (unicase_empty_prefix_context): New variable.
37662         (u8_casing_prefix_context, u16_casing_prefix_context,
37663         u32_casing_prefix_context, u8_casing_prefixes_context,
37664         u16_casing_prefixes_context, u32_casing_prefixes_context): New
37665         declarations.
37666         (casing_suffix_context_t): New type.
37667         (unicase_empty_suffix_context): New variable.
37668         (u8_casing_suffix_context, u16_casing_suffix_context,
37669         u32_casing_suffix_context, u8_casing_suffixes_context,
37670         u16_casing_suffixes_context, u32_casing_suffixes_context,
37671         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
37672         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
37673         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
37674         declarations.
37675
37676 2009-06-28  Jim Meyering  <meyering@redhat.com>
37677
37678         boostrap: indent only with spaces
37679         * build-aux/bootstrap: Indent only with spaces, never TABs.
37680
37681         bootstrap: split long lines
37682         * build-aux/bootstrap: Keep line length < 80.
37683
37684         bootstrap: sync from coreutils
37685         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
37686         just as autoreconf does.  Verify a list of prerequisite
37687         package-name,version-number pairs if defined in bootstrap.conf.
37688         Refer to README-prereq, if prerequisites are not satisfied.
37689
37690 2009-06-27  Eric Blake  <ebb9@byu.net>
37691
37692         tests: add test for bogus NULL definition
37693         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
37694         * tests/test-stdlib.c: Likewise.
37695         * tests/test-string.c: Likewise.
37696         * tests/test-locale.c: Likewise.
37697         * tests/test-unistd.c: Likewise.
37698         * modules/stdio-tests (Depends-on): Add verify.
37699         * modules/stdlib-tests (Depends-on): Likewise.
37700         * modules/string-tests (Depends-on): Likewise.
37701         * modules/locale-tests (Depends-on): Likewise.
37702         * modules/unistd-tests (Depends-on): Likewise.
37703
37704 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
37705
37706         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
37707         self-explaining comment.
37708         * m4/selinux-selinux-h: Update serial.
37709         (gl_LIBSELINUX): New macro, adding a warning for missing development
37710         packages to code extracted from...
37711         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
37712         Add warning for missing development packages here, too.
37713
37714 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
37715
37716         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
37717
37718 2009-06-25  Eric Blake  <ebb9@byu.net>
37719
37720         version-etc: fix regression
37721         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
37722         gcc.
37723         (version_etc): Use it, to catch bugs with trailing NULL.
37724         * lib/version-etc.c (version_etc_arn): Delete unused argument.
37725         (version_etc_va): Fix logic bug.
37726         * modules/version-etc-tests: Add test.
37727         * tests/test-version-etc.c: New file.
37728         * tests/test-version-etc.sh: Likewise.
37729
37730 2009-06-25  Sam Steingold  <sds@gnu.org>
37731
37732         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
37733         mbtowc declaration.
37734
37735 2009-06-25  Eric Blake  <ebb9@byu.net>
37736
37737         fpurge: migrate into <stdio.h>
37738         * lib/fpurge.h: Delete...
37739         * lib/stdio.in.h (fpurge): ...and declare here, instead.
37740         * lib/fpurge.c (fpurge): Change declaring header.
37741         * modules/fpurge (Files): Drop deleted file.
37742         (Depends-on): Add stdio.
37743         (configure.ac): Set witness.
37744         * modules/stdio (Makefile.am): Support fpurge macros.
37745         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
37746         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
37747         * lib/fflush.c: Update client.
37748         * tests/test-fpurge.c: Likewise.
37749         * NEWS: Mention the change.
37750
37751 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
37752
37753         * lib/argp-version-etc.c (program_authors): Add const
37754         qualifier.
37755         * lib/version-etc.c: Fix typos in the comments.
37756         * modules/argp-version-etc: Depends on version-etc.
37757
37758 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
37759
37760         argp-version-etc: new module.
37761
37762         * lib/argp-version-etc.c: New file.
37763         * lib/argp-version-etc.h: New file.
37764         * modules/argp-version-etc: New file.
37765         * modules/argp-version-etc-tests: New file.
37766         * tests/test-argp-version-etc.c: New test.
37767         * tests/test-argp-version-etc-1.sh: New test.
37768
37769 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
37770
37771         Provide additional interfaces and documentation for version-etc
37772         module.
37773
37774         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
37775         interfaces.
37776         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
37777         prototypes.
37778
37779 2009-06-24  Bruno Haible  <bruno@clisp.org>
37780
37781         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
37782         HAVE_LIB${NAME} macro.
37783         Reported by Sam Steingold <sds@gnu.org>.
37784
37785 2009-06-23  Simon Josefsson  <simon@josefsson.org>
37786
37787         * modules/hash-tests (test_hash_LDADD): Link to libintl when
37788         needed.
37789
37790 2009-06-21  Bruno Haible  <bruno@clisp.org>
37791
37792         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
37793         work.
37794         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
37795         together with LIB${NAME}, LTLIB${NAME}.
37796         Reported by Sam Steingold <sds@gnu.org>.
37797
37798 2009-06-20  Jim Meyering  <meyering@redhat.com>
37799
37800         tests: make sc_require_test_exit_idiom more generic
37801         * top/maint.mk (Exit_witness_file): New overridable variable.
37802         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
37803         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
37804
37805 2009-06-19  Jim Meyering  <meyering@redhat.com>
37806
37807         hash: reverse order of src/dst parameters in an internal interface
37808         * lib/hash.c (transfer_entries): Reverse order of parameters to
37809         put DST before SRC.  Adjust callers.
37810
37811         tests: test-hash: avoid wholesale duplication
37812         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
37813         Instead, use a loop and add a single conditional.
37814
37815         tests: test-hash: allow seed selection via a command line argument
37816         * tests/test-hash.c (get_seed): New function.
37817         (main): Use it.
37818
37819 2009-06-19  Eric Blake  <ebb9@byu.net>
37820
37821         hash: avoid memory leak on allocation failure
37822         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
37823         failure.  Factor repeated algorithm...
37824         (transfer_entries): ...into new helper routine.
37825         (hash_delete): React to hash_rehash return value.
37826
37827         hash: reduce memory pressure in hash_rehash no-op case
37828         * lib/hash.c (next_prime): Avoid overflow.
37829         (hash_initialize): Factor bucket size computation...
37830         (compute_bucket_size): ...into new helper function.
37831         (hash_rehash): Use new function and open coding to reduce memory
37832         pressure, and avoid a memory leak in USE_OBSTACK code.
37833         Reported by Jim Meyering.
37834
37835 2009-06-18  Eric Blake  <ebb9@byu.net>
37836
37837         hash: make rotation more obvious
37838         * modules/hash (Depends-on): Add bitrotate and stdint.
37839         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
37840         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
37841         (SIZE_MAX): Rely on headers for definition.
37842         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
37843         (raw_hasher): Use rotr_sz.
37844         Suggested by Jim Meyering.
37845
37846         hash: fix memory leak in last patch
37847         * lib/hash.c (hash_rehash): Avoid memory leak.
37848
37849         hash: avoid no-op rehashing
37850         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
37851
37852         hash: provide default callback functions
37853         * lib/hash.c (raw_hasher, raw_comparator): New functions.
37854         (hash_initialize): Use them as defaults.
37855         * tests/test-hash.c (main): Test this.
37856
37857         hash: minor optimization
37858         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
37859         when possible.
37860         (hash_initialize): Document this promise.
37861         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
37862         * tests/test-hash.c (hash_compare_strings): Test this.
37863
37864 2009-06-18  Bruno Haible  <bruno@clisp.org>
37865
37866         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
37867         going to be replaced anyway.
37868
37869 2009-06-18  Bruno Haible  <bruno@clisp.org>
37870
37871         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
37872         in one place.
37873         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
37874         be replaced anyway.
37875
37876 2009-06-18  Eric Blake  <ebb9@byu.net>
37877
37878         hash: check for resize before insertion
37879         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
37880         threshold before insertion, so that a pathological hash_rehash
37881         that fills every bucket can still trigger another rehash.
37882
37883 2009-06-18  Jim Meyering  <meyering@redhat.com>
37884
37885         hash-tests: add a loop around the small tests
37886         * tests/test-hash.c (main): Repeat small tests with selected
37887         small initial table sizes.
37888
37889 2009-06-17  Eric Blake  <ebb9@byu.net>
37890
37891         hash: minor cleanups
37892         * lib/hash.h (hash_entry): Make opaque, by moving...
37893         * lib/hash.c (hash_entry): ...here.
37894         (hash_insert): Clarify restrictions on what can be inserted.
37895         (hash_get_next): Clarify when it is safe to remove an element
37896         during traversal.
37897         (check_tuning): Skip verification when tuning is known safe.
37898         (hash_initialize): Clarify restrictions on tuning.
37899
37900 2009-06-17  Jim Meyering  <jim@meyering.net>
37901         and Eric Blake  <ebb9@byu.net>
37902
37903         hash-tests: new module
37904         * modules/hash-tests: New file.
37905         * tests/test-hash.c: New file.
37906
37907 2009-06-17  Eric Blake  <ebb9@byu.net>
37908
37909         strstr-simple: document new module
37910         * MODULES.html.sh: Document new module.
37911
37912         strstr, strcasestr: replace on platforms with broken memchr
37913         * modules/strstr: Split into...
37914         * modules/strstr-simple: ...new module that does not care about
37915         performance, but does care about glibc bug.
37916         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
37917         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
37918         if platform memchr is broken, per Debian bug 521737.
37919         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
37920         memchr.
37921         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
37922         * doc/posix-functions/strstr.texi (strstr): Document the fix.
37923         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
37924         * modules/mountlist (Depends-on): Add strstr-simple.
37925         * modules/gen-uni-tables (Depends-on): Likewise.
37926         * modules/argz (Depends-on): Add strstr.
37927
37928 2009-06-17  Bruno Haible  <bruno@clisp.org>
37929
37930         * modules/posix_spawn-internal (Depends-on): Add errno.
37931
37932 2009-06-17  Bruno Haible  <bruno@clisp.org>
37933
37934         Define missing ESTALE on Interix 3.5.
37935         * lib/errno.in.h (ESTALE): Assign a value if missing.
37936         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
37937         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
37938         missing.
37939         * doc/posix-headers/errno.texi: Mention the Interix bug.
37940         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
37941
37942 2009-06-15  Eric Blake  <ebb9@byu.net>
37943
37944         memchr, memchr2: add valgrind exception
37945         * lib/memchr.valgrind: New file.
37946         * lib/memchr2.valgrind: New file.
37947         * modules/memchr (Files): Distribute valgrind file.
37948         * modules/memchr2 (Files): Likewise.
37949
37950         docs: memchr is no longer obsolete
37951         * MODULES.html.sh: Move memchr from obsolete to string.h section.
37952         * lib/string.in.h (memchr): Simplify logic.
37953
37954 2009-06-14  Jim Meyering  <meyering@redhat.com>
37955
37956         link-follow: fix the "checking..." message to not mention trailing slash
37957         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
37958         never considered trailing slashes.
37959
37960 2009-06-14  Bruno Haible  <bruno@clisp.org>
37961
37962         * m4/memchr.m4: Mention also the bug on IA-64.
37963         * doc/posix-functions/memchr.texi: Likewise.
37964
37965 2009-06-12  Eric Blake  <ebb9@byu.net>
37966
37967         memchr: detect broken x86_64 and alpha implementations
37968         * modules/memchr-tests (Depends-on): Move mmap detection...
37969         * modules/memchr (Depends-on): ...here.
37970         (configure.ac): Set indicator.
37971         * lib/string.in.h (memchr): Declare replacement.
37972         * modules/string (Makefile.am): Trigger replacement.
37973         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
37974         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
37975         bugs.
37976         * doc/posix-functions/memchr.texi (memchr): Document the bug.
37977         * modules/getpagesize (License): Relax license.
37978
37979 2009-06-11  Bruno Haible  <bruno@clisp.org>
37980
37981         * lib/idpriv.h: Add more references.
37982
37983 2009-06-08  Bruno Haible  <bruno@clisp.org>
37984
37985         Tests for module 'idpriv-droptemp'.
37986         * modules/idpriv-droptemp-tests: New file.
37987         * tests/test-idpriv-droptemp.sh: New file.
37988         * tests/test-idpriv-droptemp.su.sh: New file.
37989         * tests/test-idpriv-droptemp.c: New file.
37990
37991         New module 'idpriv-droptemp'.
37992         * lib/idpriv-droptemp.c: New file.
37993         * modules/idpriv-droptemp: New file.
37994
37995 2009-06-08  Bruno Haible  <bruno@clisp.org>
37996
37997         Tests for module 'idpriv-drop'.
37998         * modules/idpriv-drop-tests: New file.
37999         * tests/test-idpriv-drop.sh: New file.
38000         * tests/test-idpriv-drop.su.sh: New file.
38001         * tests/test-idpriv-drop.c: New file.
38002
38003         New module 'idpriv-drop'.
38004         * lib/idpriv.h: New file.
38005         * lib-idpriv-drop.c: New file.
38006         * m4/idpriv.m4: New file.
38007         * modules/idpriv-drop: New file.
38008
38009 2009-06-08  Bruno Haible  <bruno@clisp.org>
38010
38011         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
38012         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
38013         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
38014         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
38015         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
38016         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
38017         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
38018
38019 2009-06-08  Eric Blake  <ebb9@byu.net>
38020
38021         test-strstr: use memory fence, when possible
38022         * tests/test-strstr.c (main): Use memory fence, in order to be
38023         more likely to trigger Debian bug 521737.
38024         * modules/strstr-tests (Files): Pull in additional files.
38025
38026         memchr: no longer obsolete, for wider field testing
38027         * modules/memchr (Status, Notice): Delete, this module is no
38028         longer obsolete.
38029         * modules/vasnprintf (Depends-on): Add memchr.
38030
38031 2009-06-07  Jim Meyering  <meyering@redhat.com>
38032
38033         hash: declare some functions with the warn_unused_result attribute
38034         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
38035
38036 2009-06-07  Bruno Haible  <bruno@clisp.org>
38037
38038         * tests/test-alignof.c: Don't test int64_t if it does not exist.
38039         Reported by Eric Blake.
38040
38041 2009-06-06  Eric Blake  <ebb9@byu.net>
38042
38043         test-alignof: fix typo with long double
38044         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
38045         compiler error.
38046
38047 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
38048
38049         Escape non-texinfo { and }s.
38050         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
38051         markup error.
38052
38053 2009-06-04  Jim Meyering  <meyering@redhat.com>
38054
38055         gitlog-to-changelog: don't infloop on an empty commit log
38056         * build-aux/gitlog-to-changelog: Warn about an empty log message.
38057         Reported by Boris Petersen <transacid@centerim.org>.
38058
38059 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
38060
38061         version-etc: extend for packagers
38062         Add three new configure options, intended for packagers:
38063           --with-packager="packager name"
38064           --with-packager-version="packager-specific version"
38065           --with-packager-bug-reports="packager bug reporting"
38066         An example with coreutils:
38067           $ ./configure \
38068             --with-packager=Gentoo \
38069             --with-packager-bug-report=http://bugs.gentoo.org/ \
38070             --with-packager-version="patchset 1.6"
38071           $ ./src/ls --version | head -n2
38072           ls (GNU coreutils) 7.1-dirty
38073           Packaged by Gentoo (patchset 1.6)
38074         Note that the bug reporting info via --help doesn't show up because
38075         coreutils uses its own custom emit_bug_reporting_address() implementation
38076         in src/system.h.  If it didn't, it'd look like:
38077           $ ./src/ls --help | tail -n4
38078           Report bugs to <bug-coreutils@gnu.org>.
38079           Report Gentoo bugs to <http://bugs.gentoo.org/>.
38080           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
38081           General help using GNU software: <http://www.gnu.org/gethelp/>.
38082         * lib/version-etc.c: Print new information, if provided.
38083         * m4/version-etc.m4: New file.
38084         * modules/version-etc (Files): Add m4/version-etc.m4.
38085         (configure.ac): Add gl_VERSION_ETC.
38086
38087 2009-05-31  Bruno Haible  <bruno@clisp.org>
38088
38089         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
38090         and 'int64_t'.
38091         * modules/alignof-tests (Dependencies): Add stdint.
38092         Reported by Eric Blake.
38093
38094 2009-05-31  Bruno Haible  <bruno@clisp.org>
38095
38096         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
38097         restriction due to compiler bugs.
38098         Reported by Eric Blake.
38099
38100 2009-05-31  Simon Josefsson  <simon@josefsson.org>
38101             Bruno Haible  <bruno@clisp.org>
38102
38103         Fix test-alignof failure.
38104         * lib/alignof.h (alignof_slot): New macro.
38105         (alignof_type): New macro, with the same semantics as the previous
38106         'alignof'.
38107         (alignof): Alias to alignof_slot.
38108         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
38109         check that the results are usable as constant expressions.
38110
38111 2009-05-31  Bruno Haible  <bruno@clisp.org>
38112
38113         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
38114         * tests/test-memchr.c (main): Check that memchr does not read past the
38115         first occurrence of the byte.
38116         * tests/test-strstr.c (main): Update comment.
38117         Suggested by Eric Blake.
38118
38119 2009-05-30  Bruno Haible  <bruno@clisp.org>
38120
38121         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
38122         detail how to use dumpbin.
38123         Reported by David Byron <dbyron@dbyron.com>.
38124
38125 2009-06-02  Simon Josefsson  <simon@josefsson.org>
38126
38127         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
38128
38129 2009-06-02  Simon Josefsson  <simon@josefsson.org>
38130
38131         * m4/manywarnings.m4: Add GCC 4.4 warnings.
38132
38133 2009-05-28  Bruno Haible  <bruno@clisp.org>
38134
38135         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
38136         build-aux/ files.
38137
38138 2009-05-28  Simon Josefsson  <simon@josefsson.org>
38139
38140         * gnulib-tool (func_import): Transform license on build-aux/ files too.
38141
38142 2009-05-27  Simon Josefsson  <simon@josefsson.org>
38143
38144         * gnulib-tool (sed_transform_main_lib_file)
38145         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
38146         regexps.
38147
38148 2009-05-26  Simon Josefsson  <simon@josefsson.org>
38149
38150         * tests/test-strstr.c: Add another self-test.
38151         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
38152         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
38153
38154 2009-05-23  Bruno Haible  <bruno@clisp.org>
38155
38156         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
38157         change.
38158
38159 2009-05-21  Bruno Haible  <bruno@clisp.org>
38160
38161         Simplify use of mode_t varargs.
38162         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
38163         uses 'mode_t' or 'int'.
38164         * lib/openat.c (openat): Likewise.
38165         * lib/open-safer.c (open_safer): Likewise.
38166         * m4/mode_t.m4: New file.
38167         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
38168         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
38169         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
38170         * modules/open (Files): Add m4/mode_t.m4.
38171         * modules/openat (Files): Likewise.
38172         * modules/fcntl-safer (Files): Likewise.
38173         Suggested by Eric Blake.
38174
38175 2009-05-21  Pádraig Brady  <P@draigbrady.com>
38176
38177         * doc/glibc-functions/fallocate.texi: New file.
38178         * doc/gnulib.texi: Include it.
38179
38180 2009-05-21  Eric Blake  <ebb9@byu.net>
38181             Bruno Haible  <bruno@clisp.org>
38182
38183         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
38184         invocations.
38185         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
38186
38187 2009-05-21  Eric Blake  <ebb9@byu.net>
38188             Bruno Haible  <bruno@clisp.org>
38189
38190         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
38191         include_next. Fix of 2008-11-20 commit.
38192         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
38193         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
38194         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
38195         NEXT_MATH_H.
38196         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
38197         instead of NEXT_MATH_H.
38198
38199 2009-05-21  Bruno Haible  <bruno@clisp.org>
38200
38201         Avoid redefinition warnings for SIZE_MAX.
38202         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
38203         Reported by Simon Josefsson.
38204
38205 2009-05-21  Bruno Haible  <bruno@clisp.org>
38206
38207         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
38208         AC_CACHE_VAL.
38209
38210 2009-05-20  Bruno Haible  <bruno@clisp.org>
38211
38212         Make zeroptr.h work on mingw.
38213         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
38214         mprotect.
38215         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
38216         * modules/memchr2-tests (configure.ac): Likewise.
38217         * modules/memcmp-tests (configure.ac): Likewise.
38218         * modules/memmem-tests (configure.ac): Likewise.
38219         * modules/memrchr-tests (configure.ac): Likewise.
38220         Reported by Simon Josefsson.
38221
38222 2009-05-20  Simon Josefsson  <simon@josefsson.org>
38223
38224         * tests/test-glob.c: Include string.h for strcmp prototype.
38225
38226 2009-05-20  Simon Josefsson  <simon@josefsson.org>
38227
38228         * modules/getdelim (Depends-on): Add explicit stdint, although it
38229         was implicitly already pulled in via realloc-posix.
38230         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
38231
38232 2009-05-20  Simon Josefsson  <simon@josefsson.org>
38233
38234         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
38235         G. Christensen" <tgc@jupiterrise.com>.
38236         * m4/sys_socket_h.m4: Check for sa_family_t.
38237         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
38238         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
38239         * tests/test-sys_socket.c: Check that sa_family_t works.
38240
38241 2009-05-18  Eric Blake  <ebb9@byu.net>
38242
38243         maint.mk: allow gnulib_dir in VPATH build
38244         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
38245
38246 2009-05-15  Jim Meyering  <meyering@redhat.com>
38247
38248         maint.mk: Give gnulib_dir a default definition.
38249         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
38250         Thus, most packages no longer need to specify this variable in cfg.mk
38251
38252 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
38253
38254         rename.m4: fix typos that would make non-mingw cross-configure fail
38255         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
38256
38257 2009-05-13  Eric Blake  <ebb9@byu.net>
38258
38259         mmap-anon: avoid out-of-order autoconf expansion
38260         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
38261         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
38262         * modules/memchr-tests (Depends-on): Add extensions.
38263         * modules/memchr2-tests (Depends-on): Add extensions.
38264         * modules/memcmp-tests (Depends-on): Add extensions.
38265         * modules/memmem-tests (Depends-on): Add extensions.
38266         * modules/memrchr-tests (Depends-on): Add extensions.
38267
38268 2009-05-13  Bruno Haible  <bruno@clisp.org>
38269
38270         Make some tests ISO C 99 compliant.
38271         * tests/zerosize-ptr.h: New file.
38272         * tests/test-memchr.c: Include zerosize-ptr.h.
38273         (main): Use a zero-size object pointer instead of NULL.
38274         * tests/test-memchr2.c: Include zerosize-ptr.h.
38275         (main): Use a zero-size object pointer instead of NULL.
38276         * tests/test-memcmp.c: Include zerosize-ptr.h.
38277         (main): Use a zero-size object pointer instead of NULL.
38278         * tests/test-memmem.c: Include zerosize-ptr.h.
38279         (main): Use a zero-size object pointer instead of NULL.
38280         * tests/test-memrchr.c: Include zerosize-ptr.h.
38281         (main): Use a zero-size object pointer instead of NULL.
38282         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
38283         m4/mmap-anon.m4.
38284         (Depends-on): Add getpagesize.
38285         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
38286         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
38287         m4/mmap-anon.m4.
38288         (Depends-on): Add getpagesize.
38289         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
38290         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
38291         m4/mmap-anon.m4.
38292         (Depends-on): Add getpagesize.
38293         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
38294         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
38295         m4/mmap-anon.m4.
38296         (Depends-on): Add getpagesize.
38297         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
38298         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
38299         m4/mmap-anon.m4.
38300         (Depends-on): Add getpagesize.
38301         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
38302
38303 2009-05-12  Bruno Haible  <bruno@clisp.org>
38304
38305         Tests for module 'alignof'.
38306         * modules/alignof-tests: New file.
38307         * tests/test-alignof.c: New file.
38308
38309 2009-05-12  Bruno Haible  <bruno@clisp.org>
38310
38311         Fix alignof macro.
38312         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
38313         vendor compilers that are always correct.
38314
38315 2009-05-12  Bruno Haible  <bruno@clisp.org>
38316
38317         Make the MAP_ANONYMOUS detection work on HP-UX 11.
38318         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
38319         not whether its fully works.
38320
38321 2009-05-12  Bruno Haible  <bruno@clisp.org>
38322
38323         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
38324
38325 2009-05-12  Jim Meyering  <meyering@redhat.com>
38326
38327         * top/maint.mk: Adjust backslash alignment.
38328
38329 2009-05-11  Simon Josefsson  <simon@josefsson.org>
38330
38331         * top/maint.mk: Make $(srcdir)/build-aux configurable.
38332
38333 2009-05-11  Eric Blake  <ebb9@byu.net>
38334
38335         argp: avoid undefined behavior
38336         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
38337         macros.
38338
38339 2009-05-08  Simon Josefsson  <simon@josefsson.org>
38340
38341         * tests/test-vc-list-files-git.sh: Do git config of user.email and
38342         user.name to prevent git commit from complaining.
38343
38344 2009-05-10  Bruno Haible  <bruno@clisp.org>
38345
38346         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
38347         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
38348         it rewrites every file name only once.
38349         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
38350
38351 2009-05-08  Bruno Haible  <bruno@clisp.org>
38352
38353         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
38354         instead of 'max'.
38355
38356 2009-05-08  Simon Josefsson  <simon@josefsson.org>
38357
38358         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
38359         sockaddr_storage test.
38360
38361 2009-05-07  Simon Josefsson  <simon@josefsson.org>
38362
38363         * modules/sys_socket (Makefile.am): Substitute
38364         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
38365         * m4/sys_socket_h.m4: Check for sockaddr_storage.
38366         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
38367         * tests/test-sys_socket.c: Check sockaddr_storage.
38368
38369 2009-05-08  Bruno Haible  <bruno@clisp.org>
38370
38371         New module 'alignof'.
38372         * lib/alignof.h: New file.
38373         * modules/alignof: New file.
38374
38375 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
38376             Bruno Haible  <bruno@clisp.org>
38377
38378         Fix test-file-has-acl on FreeBSD.
38379         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
38380         mask is implicitly added.
38381         * tests/test-file-has-acl.c: Include <signal.h>.
38382         (main): Terminate the test after 5 seconds.
38383         * modules/acl-tests (configure.ac): Check for alarm function.
38384
38385 2009-05-04  Bruno Haible  <bruno@clisp.org>
38386
38387         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
38388         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
38389         * modules/errno (configure.ac): Drop AC_REQUIRE.
38390         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
38391         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
38392
38393 2009-05-04  Simon Josefsson  <simon@josefsson.org>
38394
38395         * modules/glob-tests: New module.
38396         * tests/test-glob.c: Add.
38397
38398 2009-05-04  Simon Josefsson  <simon@josefsson.org>
38399
38400         * modules/fnmatch-tests: New module.
38401         * tests/test-fnmatch.c: Add.
38402
38403 2009-05-04  Eric Blake  <ebb9@byu.net>
38404
38405         maint: make the new no-submodule-changes rule VPATH-safe
38406         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
38407
38408 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
38409             Bruno Haible  <bruno@clisp.org>
38410
38411         acl: Fix infinite loop on FreeBSD.
38412         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
38413         of return value from acl_get_entry.
38414         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
38415         Likewise.
38416
38417 2009-05-03  Bruno Haible  <bruno@clisp.org>
38418
38419         * lib/acl-internal.h (acl_entries): Clarify return value.
38420         * lib/acl_entries.c (acl_entries): Likewise.
38421
38422 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
38423
38424         Bug fix in acl module.
38425         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
38426
38427 2009-05-03  Bruno Haible  <bruno@clisp.org>
38428
38429         Create gperf-generated file in the source dir, not in the build dir.
38430         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
38431         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
38432         * modules/unicase/locale-language (unicase/locale-languages.h):
38433         Likewise.
38434         * modules/unicase/special-casing (unicase/special-casing-table.h):
38435         Likewise.
38436         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
38437         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
38438         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
38439         Reported by Ralf Wildenhues.
38440
38441 2009-05-03  Bruno Haible  <bruno@clisp.org>
38442
38443         * modules/fnmatch (Description, configure.ac): Taken from
38444         fnmatch-posix.
38445         * modules/fnmatch-posix: Turn into a symbolic reference to the
38446         'fnmatch' module, and deprecate.
38447         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
38448
38449 2009-05-03  Bruno Haible  <bruno@clisp.org>
38450
38451         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
38452         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
38453         Reported by Ralf Wildenhues.
38454
38455 2009-05-04  Simon Josefsson  <simon@josefsson.org>
38456
38457         * m4/fnmatch.m4: Fix fnmatch re-define.
38458
38459 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
38460
38461         priv-set: new module and tests; adapt write-any-file
38462         * lib/priv-set.c: New file.
38463         * lib/priv-set.h: New file.
38464         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
38465         * lib/write-any-file.c: Simplify by using priv-set module.
38466         * m4/priv-set.m4: New file.
38467         * modules/priv-set: New file.
38468         * modules/unlinkdir: Add dependency on priv-set module.
38469         * modules/write-any-file: Likewise.
38470
38471         Tests for module 'priv-set'.
38472         * modules/priv-set-tests: New file.
38473         * tests/test-priv-set.c: New file.
38474
38475 2009-05-03  Jim Meyering  <meyering@redhat.com>
38476             Bruno Haible  <bruno@clisp.org>
38477
38478         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
38479         use the converted UTF-8 variant of the name instead.
38480
38481 2009-05-03  Jim Meyering  <meyering@redhat.com>
38482
38483         tests: tighten some getdate tests
38484         * tests/test-getdate.c (main): Tighten tests: require equality,
38485         not just greater than.  Set TZ envvar to UTC0.
38486
38487 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
38488
38489         getdate: correctly interpret "next monday" when run on a Monday
38490         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
38491         that e.g., "next tues" (when run on a tuesday) results in a date
38492         that is one week in the future, and not today's date.
38493         I.e., add a week when the wday is the same as the current one.
38494         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
38495         and earlier by Martin Bernreuther and Jan Minář.
38496         * tests/test-getdate.c (main): Check that "next DAY" is always in
38497         the future and that "last DAY" is always in the past.
38498
38499 2009-05-02  Jim Meyering  <meyering@redhat.com>
38500
38501         build: ensure that a release build fails when a submodule is unclean
38502         * top/maint.mk (no-submodule-changes): New rule.
38503         (alpha beta major): Depend on it.
38504
38505 2009-05-02  Bruno Haible  <bruno@clisp.org>
38506
38507         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
38508         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
38509         shell variable gl_fnmatch_required to detect which variant is
38510         requested.
38511         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
38512         gl_FUNC_FNMATCH_POSIX.
38513         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
38514         exclude fnmatch-posix.
38515
38516 2009-05-02  Bruno Haible  <bruno@clisp.org>
38517
38518         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
38519         * modules/mbsrtowcs (License): Change to LGPLv2+.
38520         * modules/strnlen1 (License): Likewise.
38521         Reported by Simon Josefsson.
38522
38523 2009-05-02  Bruno Haible  <bruno@clisp.org>
38524
38525         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
38526         "cross".
38527         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
38528         gnulib-tool was called with option --source-base=lib.
38529
38530 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38531
38532         Use automake *-local hooks without commands, for extensibility.
38533         * modules/localcharset (Makefile.am): Rename install-exec-local
38534         rule to install-exec-localcharset, and make it a prerequisite of
38535         install-exec-local.  Likewise, rename the uninstall-local rule to
38536         uninstall-localcharset, and make it a prerequisite of the former.
38537
38538 2009-05-01  Bruno Haible  <bruno@clisp.org>
38539
38540         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
38541         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
38542         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
38543         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
38544         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
38545         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
38546         m4/locale-zh.m4, m4/codeset.m4.
38547
38548         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
38549         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
38550         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
38551         m4/locale-zh.m4.
38552
38553         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
38554         REPLACE_WCRTOMB if mbstate_t must be replaced.
38555         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
38556         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
38557
38558 2009-05-01  Bruno Haible  <bruno@clisp.org>
38559
38560         Avoid compiler warnings when redefining macros defined by <libintl.h>.
38561         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
38562         dngettext, dcngettext, textdomain, bindtextdomain,
38563         bind_textdomain_codeset): Undefine before redefining.
38564
38565 2009-04-30  Bruno Haible  <bruno@clisp.org>
38566
38567         Fix bug introduced on 2009-04-25.
38568         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
38569         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
38570         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
38571         is defined.
38572         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
38573         is defined.
38574         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
38575         is defined.
38576         Reported by Elbert_Pol <elbert.pol@gmail.com>.
38577
38578 2009-04-28  Bruno Haible  <bruno@clisp.org>
38579
38580         Comment tweaks.
38581         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
38582         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
38583         * lib/unicase.h (u*_casexfrm): Likewise.
38584         Reported by Paolo Bonzini.
38585
38586 2009-04-28  Bruno Haible  <bruno@clisp.org>
38587
38588         Fix a compilation error.
38589         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
38590         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
38591         Reported by Jim Meyering.
38592
38593 2009-04-27  Bruno Haible  <bruno@clisp.org>
38594
38595         New module 'libunistring'.
38596         * modules/libunistring: New file.
38597         * m4/libunistring.m4: New file.
38598         * MODULES.html.sh (Unicode string functions): Add it.
38599
38600 2009-04-27  Eric Blake  <ebb9@byu.net>
38601
38602         maint.mk: allow package-specific header to provide <config.h>
38603         * top/maint.mk (sc_require_config_h): New variable.
38604         (sc_require_config_h, sc_require_config_h_first): Use it.
38605
38606 2009-04-27  Simon Josefsson  <simon@josefsson.org>
38607
38608         * top/maint.mk (sc_avoid_if_before_free): Except
38609         useless-if-before-free script.
38610
38611 2009-04-27  Eric Blake  <ebb9@byu.net>
38612
38613         maintainer-makefile: depend on all required helper scripts
38614         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
38615         useless-if-before-free.
38616         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
38617         version, rather than assuming gnulib checkout is available.
38618         Reported by Simen Josefsson.
38619
38620 2009-04-26  Bruno Haible  <bruno@clisp.org>
38621
38622         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
38623         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
38624         "../" or "..".
38625
38626 2009-04-26  Bruno Haible  <bruno@clisp.org>
38627
38628         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
38629         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
38630         AC_LIB_HAVE_LINKFLAGS.
38631
38632 2009-04-26  Bruno Haible  <bruno@clisp.org>
38633
38634         Simplify calling convention of u*_conv_from_encoding.
38635         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
38636         u32_conv_from_encoding): Expect a resultbuf argument and return the
38637         result directly as a pointer.
38638         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
38639         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
38640         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
38641         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
38642         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
38643         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
38644         Update.
38645         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
38646         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
38647         * lib/vasnprintf.c (VASNPRINTF): Update.
38648         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
38649         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
38650         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
38651         * NEWS: Mention the change.
38652
38653 2009-04-26  Bruno Haible  <bruno@clisp.org>
38654
38655         Simplify calling convention of u*_conv_to_encoding.
38656         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
38657         u32_conv_to_encoding): Expect a resultbuf argument and return the
38658         result directly as a pointer.
38659         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
38660         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
38661         freeing scaled_offsets if mem_iconveha failed.
38662         * lib/unicase/u-casexfrm.h (FUNC): Update.
38663         * lib/uninorm/u-normxfrm.h (FUNC): Update.
38664         * lib/vasnprintf.c (VASNPRINTF): Update.
38665         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
38666         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
38667         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
38668         * NEWS: Mention the change.
38669
38670 2009-04-26  Bruno Haible  <bruno@clisp.org>
38671
38672         Avoid test failures on AIX and OSF/1.
38673         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
38674         malloc(0).
38675         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
38676         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
38677         Likewise.
38678         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
38679         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
38680         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
38681         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
38682         * doc/posix-functions/malloc.texi: Document the portability problem
38683         related to malloc(0).
38684
38685 2009-04-26  Bruno Haible  <bruno@clisp.org>
38686
38687         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
38688         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
38689         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
38690
38691 2009-04-25  Bruno Haible  <bruno@clisp.org>
38692
38693         Avoid link error when creating a namespace clean library.
38694         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
38695         as macro with arguments if already defined as an alias.
38696         * lib/signbitf.c (gl_signbitf): Don't undefine.
38697         * lib/signbitd.c (gl_signbitd): Don't undefine.
38698         * lib/signbitl.c (gl_signbitl): Don't undefine.
38699
38700 2009-04-25  Jim Meyering  <meyering@redhat.com>
38701
38702         vc-list-files: fix another quoting bug
38703         * build-aux/vc-list-files: Avoid sed backslash expansion
38704         of pathological directory names.
38705
38706 2009-04-25  Eric Blake  <ebb9@byu.net>
38707
38708         vc-list-files: fix shell quoting error
38709         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
38710         timestamp.
38711
38712 2009-04-25  Jim Meyering  <meyering@redhat.com>
38713
38714         vc-list-files: restore lost functionality with subdir argument
38715         * build-aux/vc-list-files: When given a non-"." sub-directory
38716         argument, substitute the $dir/ prefix back onto each resulting name.
38717         Otherwise, coreutils' root_tests check would fail.
38718
38719 2009-04-24  Eric Blake  <ebb9@byu.net>
38720
38721         vc-list-files: ignore git symlinks
38722         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
38723         than ls-files, to ignore git symlinks.
38724
38725         maint.mk: import improvements from m4
38726         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
38727         (move_if_change): Delete unused macro.
38728         (news-date-check, vc-diff-check): Support VPATH builds.
38729         (announcement): Likewise.  Split --bootstrap-tools list...
38730         (boostrap-tools): ...into separate list, which can be overridden
38731         in cfg.mk.
38732         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
38733         requiring dependency on useless-if-before-free module.
38734         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
38735         Support VPATH builds.
38736
38737 2009-04-24  Jim Meyering  <meyering@redhat.com>
38738
38739         maint.mk: remove coreutils-specific rules and variables
38740         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
38741         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
38742         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
38743
38744         maint.mk: remove obsolete rule
38745         * top/maint.mk (rel-check): Remove rule.
38746         (WGET, WGETFLAGS): Remove now-unused variables.
38747
38748 2009-04-24  Simon Josefsson  <simon@josefsson.org>
38749
38750         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
38751         consistency.
38752
38753         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
38754         '$(PATH_SEPARATOR)' instead of ':'.
38755
38756 2009-04-24  Simon Josefsson  <simon@josefsson.org>
38757
38758         * lib/getopt1.c (main): Use 'const' for static array.
38759
38760 2009-04-24  Simon Josefsson  <simon@josefsson.org>
38761
38762         * top/maint.mk: Sync with coreutils.
38763         * NEWS: Explain incompatibilities.
38764
38765 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
38766             Bruno Haible  <bruno@clisp.org>
38767
38768         Fix cross-compilation results.
38769         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
38770         statement, as third argument of AC_TRY_RUN.
38771         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
38772         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
38773         Likewise.
38774         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
38775         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
38776         Likewise.
38777         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
38778         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
38779         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
38780
38781 2009-04-20  Bruno Haible  <bruno@clisp.org>
38782
38783         Avoid test failure on mingw.
38784         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
38785
38786 2009-04-20  Bruno Haible  <bruno@clisp.org>
38787
38788         Avoid compilation error on mingw.
38789         * modules/localename-tests (Depends-on): Add locale.
38790
38791 2009-04-19  Bruno Haible  <bruno@clisp.org>
38792
38793         Support for building a shared library on Windows platforms.
38794         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
38795         (main): Test the presence of UNINORM_NFC here.
38796         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
38797         (main): Test the presence of UNINORM_NFD here.
38798         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
38799         (main): Test the presence of UNINORM_NFKC here.
38800         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
38801         (main): Test the presence of UNINORM_NFKD here.
38802
38803 2009-04-19  Bruno Haible  <bruno@clisp.org>
38804
38805         Avoid a compiler warning.
38806         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
38807         Change type of variable 'sequence'.
38808
38809 2009-04-19  Bruno Haible  <bruno@clisp.org>
38810
38811         * modules/configmake (Makefile.am): When the contents of configmake.h
38812         does not change, arrange to preserve its modification time.
38813
38814 2009-04-17  Simon Josefsson  <simon@josefsson.org>
38815
38816         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
38817         gettext domain.
38818
38819 2009-04-16  Jim Meyering  <meyering@redhat.com>
38820
38821         useless-if-before-free: improve conversion code
38822         * build-aux/useless-if-before-free: Adjust code-in-comment to match
38823         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
38824
38825 2009-04-14  Bruno Haible  <bruno@clisp.org>
38826
38827         * modules/fcntl (Depends-on): Add extensions.
38828         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
38829
38830 2009-04-12  Ben Pfaff  <blp@gnu.org>
38831
38832         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
38833         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
38834
38835 2009-03-20  Ben Pfaff  <blp@gnu.org>
38836
38837         Make rename replace existing destinations on Windows.
38838         * m4/rename.m4: Add test for Mingw.
38839         * lib/rename.c: Add rename replacement that uses MoveFileEx with
38840         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
38841         * doc/posix-functions/rename.texi: Document.
38842
38843 2009-04-10  Bruno Haible  <bruno@clisp.org>
38844
38845         New include file "iconveh.h".
38846         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
38847         * lib/striconveh.h: Include it.
38848         (enum iconv_ilseq_handler): Remove definition.
38849         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
38850         striconveh.h.
38851         * lib/striconveha.c: Include striconveh.h.
38852         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
38853         * modules/striconveh (Files): Add lib/iconveh.h.
38854         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
38855         lib/striconveh.h.
38856
38857 2009-04-10  Bruno Haible  <bruno@clisp.org>
38858
38859         * lib/uniconv.h: Update comment.
38860
38861 2009-04-10  Bruno Haible  <bruno@clisp.org>
38862
38863         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
38864         always.
38865         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
38866         * lib/unistr/u16-mbtouc-aux.c: Likewise.
38867         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
38868         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
38869         "unistring-notinline.h", so that the function gets defined always.
38870         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
38871         * lib/unistr/u8-uctomb.c: Likewise.
38872         * lib/unistr/u16-mbtouc.c: Likewise.
38873         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
38874         * lib/unistr/u16-uctomb.c: Likewise.
38875         * lib/unistr/u32-mbtouc.c: Likewise.
38876         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
38877         * lib/unistr/u32-uctomb.c: Likewise.
38878
38879 2009-04-10  Bruno Haible  <bruno@clisp.org>
38880
38881         Mark 'utime' obsolete.
38882         * modules/utime (Status, Notice): New sections.
38883         Suggested by Jim Meyering.
38884
38885         Fix cross-compile guess for utime test.
38886         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
38887         autoconf.
38888         * doc/posix-functions/utime.texi: Give more precisions.
38889         Reported by Jan <ipif@ymail.com>.
38890
38891 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
38892
38893         filevercmp: correct today's change
38894         * lib/filevercmp.c: Also handle coreutils' test inputs.
38895         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
38896
38897         Fix regression in 'filevercmp' module. Thanks Sven Joachim
38898         for reporting it.
38899         * lib/filevercmp.c: Special handle for "", "." and "..".
38900         * tests/test-filevercmp.c: Enlarge the set suite.
38901
38902 2009-04-07  Jim Meyering  <meyering@redhat.com>
38903
38904         useless-if-before-free: show how to remove braced useless free, too
38905         * build-aux/useless-if-before-free: still only in a comment, though.
38906
38907 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
38908
38909         maint.mk: import changes to syntax-check macros from coreutils
38910         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
38911         Use them in the relevant macros.
38912
38913 2009-04-06  Bruno Haible  <bruno@clisp.org>
38914
38915         Fix unportable use of bit-fields.
38916         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
38917         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
38918         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
38919
38920 2009-04-06  Bruno Haible  <bruno@clisp.org>
38921
38922         Avoid test failures on AIX and OSF/1.
38923         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
38924         that malloc(0) = NULL.
38925         * tests/unicase/test-u8-tolower.c (check): Likewise.
38926         * tests/unicase/test-u8-totitle.c (check): Likewise.
38927         * tests/unicase/test-u8-toupper.c (check): Likewise.
38928         * tests/unicase/test-u16-casefold.c (check): Likewise.
38929         * tests/unicase/test-u16-tolower.c (check): Likewise.
38930         * tests/unicase/test-u16-totitle.c (check): Likewise.
38931         * tests/unicase/test-u16-toupper.c (check): Likewise.
38932         * tests/unicase/test-u32-casefold.c (check): Likewise.
38933         * tests/unicase/test-u32-tolower.c (check): Likewise.
38934         * tests/unicase/test-u32-totitle.c (check): Likewise.
38935         * tests/unicase/test-u32-toupper.c (check): Likewise.
38936         * tests/uninorm/test-u8-nfc.c (check): Likewise.
38937         * tests/uninorm/test-u8-nfd.c (check): Likewise.
38938         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
38939         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
38940         * tests/uninorm/test-u16-nfc.c (check): Likewise.
38941         * tests/uninorm/test-u16-nfd.c (check): Likewise.
38942         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
38943         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
38944         * tests/uninorm/test-u32-nfc.c (check): Likewise.
38945         * tests/uninorm/test-u32-nfd.c (check): Likewise.
38946         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
38947         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
38948
38949 2009-04-05  Bruno Haible  <bruno@clisp.org>
38950
38951         Work around an autoconf limitation.
38952         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
38953         comment line if it would be longer than 3 KB.
38954
38955 2009-04-05  Bruno Haible  <bruno@clisp.org>
38956
38957         Avoid test failure with libiconv-1.13.
38958         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
38959         of the expected test results.
38960
38961 2009-04-05  Bruno Haible  <bruno@clisp.org>
38962
38963         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
38964         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
38965         that it should be installed.
38966
38967 2009-04-05  Bruno Haible  <bruno@clisp.org>
38968
38969         * gnulib-tool: New option --copy-file.
38970         (func_usage): Document it.
38971         (func_dest_tmpfilename): Moved out of func_import.
38972         (func_add_file, func_update_file): New functions, extracted from
38973         func_import.
38974         (func_import): Update.
38975
38976 2009-04-05  Karl Berry  <karl@gnu.org>
38977
38978         * README: prominently mention gnulib-tool.
38979         Rearrange sections so getting the code is near the top.
38980
38981 2009-04-05  Bruno Haible  <bruno@clisp.org>
38982
38983         * lib/unicase.h: Mention u*_cmp2.
38984         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
38985         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
38986         * lib/unicase/ulc-casecmp.c: Likewise.
38987         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
38988         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
38989         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
38990         unistr/u8-cmp.
38991         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
38992         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
38993         unistr/u16-cmp.
38994         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
38995         unistr/u32-cmp.
38996
38997         * lib/uninorm.h: Mention u*_cmp2.
38998         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
38999         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
39000         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
39001         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
39002         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
39003         unistr/u8-cmp.
39004         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
39005         unistr/u16-cmp.
39006         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
39007         unistr/u32-cmp.
39008
39009         New module 'unistr/u32-cmp2'.
39010         * lib/unistr/u32-cmp2.c: New file.
39011         * modules/unistr/u32-cmp2: New file.
39012
39013         New module 'unistr/u16-cmp2'.
39014         * lib/unistr/u16-cmp2.c: New file.
39015         * modules/unistr/u16-cmp2: New file.
39016
39017         New module 'unistr/u8-cmp2'.
39018         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
39019         * lib/unistr/u8-cmp2.c: New file.
39020         * lib/unistr/u-cmp2.h: New file.
39021         * modules/unistr/u8-cmp2: New file.
39022
39023 2009-04-05  Bruno Haible  <bruno@clisp.org>
39024
39025         * lib/unictype.h (uc_property_is_valid): New macro.
39026         * tests/unictype/test-pr_byname.c (main): Use it.
39027
39028         * lib/unistr.h: Doc fixes.
39029         * lib/uniconv.h: Doc fixes.
39030         * lib/unictype.h: Doc fixes.
39031
39032 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
39033
39034         Port coreutils 7.2 to Solaris 8.
39035
39036         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
39037         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
39038         for Solaris 8.  This is a bit of a hack, as it means it's the
39039         caller's responsibility to add -lnsl if needed, but most likely it
39040         won't be needed since only getaddrinfo uses this and getaddrinfo
39041         isn't needed on Solaris 8.
39042
39043         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
39044         problem to Solaris 8 encountered with coreutils 7.2, which
39045         resulted in a message "fnmatch.c:292: warning: passing argument 4
39046         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
39047         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
39048
39049 2009-04-03  Simon Josefsson  <simon@josefsson.org>
39050
39051         * m4/ld-version-script.m4: Add FIXME comment.
39052
39053 2009-04-02  Simon Josefsson  <simon@josefsson.org>
39054
39055         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
39056         SOVERSION variable.
39057
39058 2009-04-02  Bruno Haible  <bruno@clisp.org>
39059
39060         * Makefile (info, html, dvi, pdf): Combine the rules.
39061         Suggested by Jim Meyering.
39062
39063 2009-04-01  Bruno Haible  <bruno@clisp.org>
39064
39065         * Makefile (info, html, dvi, pdf): New targets.
39066         Reported by Reuben Thomas <rrt@sc3d.org>.
39067
39068 2009-04-01  Bruno Haible  <bruno@clisp.org>
39069
39070         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
39071         can be put into PATH.
39072         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
39073
39074 2009-04-01  Bruno Haible  <bruno@clisp.org>
39075
39076         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
39077
39078 2009-04-01  Bruno Haible  <bruno@clisp.org>
39079
39080         Rename module 'visibility'.
39081         * modules/lib-symbol-visibility: Renamed from modules/visibility.
39082         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
39083         * doc/gnulib.texi: Update.
39084         * MODULES.html.sh (Misc): Update.
39085         * NEWS: Mention the change.
39086
39087 2009-04-01  Simon Josefsson  <simon@josefsson.org>
39088
39089         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
39090         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
39091         Eric Blake <ebb9@byu.net> for review.
39092         * MODULES.html.sh: Add lib-msvc-compat.
39093         * doc/gnulib.texi: Link to new section.
39094         * m4/ld-output-def.m4: New file.
39095         * doc/ld-output-def.texi: New file.
39096
39097 2009-04-01  Simon Josefsson  <simon@josefsson.org>
39098
39099         Rename ld-version-script to lib-symbol-versions.  Suggested by
39100         Bruno Haible <bruno@clisp.org>.
39101         * modules/ld-version-script: Renamed to lib-symbol-versions.
39102         * doc/ld-version-script.texi: Fix module name.
39103         * MODULES.html.sh: Add lib-symbol-versions.
39104
39105 2009-03-31  Simon Josefsson  <simon@josefsson.org>
39106
39107         * modules/u64-tests: New file.
39108         * tests/test-u64.c: New file.
39109
39110 2009-03-04  Simon Josefsson  <simon@josefsson.org>
39111
39112         * MODULES.html.sh: Mention u64.
39113         * modules/u64: New module.
39114         * modules/crypto/sha512: Depend on u64 module instead of providing
39115         u64.h.
39116
39117 2009-03-27  Eric Blake  <ebb9@byu.net>
39118
39119         test-strerror: make debugging EAI_SYSTEM easier
39120         * modules/getaddrinfo-tests (Depends-on): Add strerror.
39121         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
39122         failure was EAI_SYSTEM.
39123
39124 2009-03-25  Bruno Haible  <bruno@clisp.org>
39125
39126         Fix a problem with --enable-relocatable on Solaris 7.
39127         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
39128         since 2008-02-24.
39129
39130 2009-03-25  Eric Blake  <ebb9@byu.net>
39131
39132         test-sockets: avoid gcc warning
39133         * tests/test-sockets.c (main): Silence compiler warning.
39134
39135 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
39136
39137         New modules nproc, pthread, contributed by Glen Lenker.
39138
39139         * MODULES.html.sh: Add pthread, nproc.
39140         * lib/nproc.c: New file.
39141         * lib/nproc.h: New file.
39142         * lib/pthread.in.h: New file.
39143         * m4/pthread.m4: New file.
39144         * modules/nproc: New file.
39145         * modules/pthread: New file.
39146
39147 2009-03-24  Simon Josefsson  <simon@josefsson.org>
39148
39149         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
39150         New variable.
39151
39152 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
39153
39154         filevercmp: handle simple~ and numbered.~3~ backup suffixes
39155         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
39156         * tests/test-filevercmp.c: Add tests for backup suffixes.
39157
39158 2009-03-24  Simon Josefsson  <simon@josefsson.org>
39159
39160         * modules/stdlib (Depends-on): Add stdint, needed when defining
39161         struct random_data on, for example, HP-UX 10.20.  Reported by
39162         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
39163
39164 2009-03-24  Simon Josefsson  <simon@josefsson.org>
39165
39166         * lib/readline.c (readline): Call fflush on stdout after printing
39167         prompt.
39168
39169 2009-03-20  Bruno Haible  <bruno@clisp.org>
39170
39171         Remove dependency from 'close' module to -lws2_32 on native Windows.
39172         * lib/close-hook.h: New file.
39173         * lib/close-hook.c: New file.
39174         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
39175         w32sock.h.
39176         (_gl_close_fd_maybe_socket): Remove function.
39177         (rpl_close): Invoke execute_all_close_hooks instead of
39178         _gl_close_fd_maybe_socket.
39179         * lib/sockets.c: Include close-hook.h, w32sock.h.
39180         (close_fd_maybe_socket): New function, essentially from lib/close.c.
39181         (close_sockets_hook): New variable.
39182         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
39183         (gl_sockets_cleanup): Unregister it.
39184         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
39185         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
39186         * modules/close-hook: New file.
39187         * modules/close (Files): Remove lib/w32sock.h.
39188         (Depends-on): Add close-hook.
39189         (Link): Remove section.
39190         * modules/sockets (Files): Add lib/w32sock.h.
39191         (Depends-on): Add close-hook.
39192         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
39193         invocation.
39194         * NEWS: Mention that LIB_CLOSE is gone.
39195
39196 2009-03-23  Eric Blake  <ebb9@byu.net>
39197
39198         signal-tests: test previous patch
39199         * tests/test-signal.c: New file.
39200         * modules/signal-tests: Likewise.
39201
39202         signal.h: always support 'volatile sig_atomic_t'
39203         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
39204         (gl_SIGNAL_H_DEFAULTS): Add a default.
39205         * modules/signal (Makefile.am): Substitute if needed.
39206         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
39207         users can blindly add volatile.
39208         * doc/posix-headers/signal.texi (signal.h): Document it.
39209         Reported by Matthew Woehlke.
39210
39211 2009-03-23  Jim Meyering  <meyering@redhat.com>
39212
39213         pathmax: PATH_MAX: use pathconf only when available
39214         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
39215         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
39216         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
39217         This avoids a link failure in a PSP cross-compilation environment
39218         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
39219
39220         * lib/vasnprintf.c (divide): Fix typo in comment.
39221
39222 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39223
39224         * gnulib-tool (func_filter_filelist): Fix comment.
39225
39226 2009-03-20  Bruno Haible  <bruno@clisp.org>
39227
39228         Make sockets.h self-contained.
39229         * lib/sockets.c: Include sockets.h first.
39230         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
39231
39232 2009-03-19  Eric Blake  <ebb9@byu.net>
39233
39234         doc: mention more functions added in cygwin 1.7.0
39235         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
39236         addition.
39237         * doc/posix-functions/log2f.texi: Likewise.
39238
39239 2009-03-19  Jim Meyering  <meyering@redhat.com>
39240
39241         fsusage: avoid syntax error due to statement-before-declaration
39242         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
39243         after all declarations.  Reported by Matthew Woehlke in
39244         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
39245
39246 2009-03-18  Eric Blake  <ebb9@byu.net>
39247
39248         build-aux/compile: sync from automake
39249         * build-aux/compile: New file, from automake.
39250         * config/srclist.txt: Mention build-aux/compile.
39251
39252 2009-03-17  Bruno Haible  <bruno@clisp.org>
39253
39254         * lib/git-merge-changelog.c: Fix typo in comment.
39255         Reported by Reuben Thomas <rrt@sc3d.org>.
39256
39257 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
39258
39259         * m4/regex.m4: update and improve help for
39260         --without-included-regex.
39261
39262 2009-03-17  Simon Josefsson  <simon@josefsson.org>
39263
39264         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
39265         failure on missing include files.
39266
39267 2009-03-17  Eric Blake  <ebb9@byu.net>
39268
39269         doc: mention more functions added in cygwin 1.7.0
39270         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
39271         addition.
39272         * doc/posix-functions/fwscanf.texi: Likewise.
39273         * doc/posix-functions/swprintf.texi: Likewise.
39274         * doc/posix-functions/swscanf.texi: Likewise.
39275         * doc/posix-functions/vfwprintf.texi: Likewise.
39276         * doc/posix-functions/vfwscanf.texi: Likewise.
39277         * doc/posix-functions/vswprintf.texi: Likewise.
39278         * doc/posix-functions/vswscanf.texi: Likewise.
39279         * doc/posix-functions/vwprintf.texi: Likewise.
39280         * doc/posix-functions/vwscanf.texi: Likewise.
39281         * doc/posix-functions/wcscasecmp.texi: Likewise.
39282         * doc/posix-functions/wcsdup.texi: Likewise.
39283         * doc/posix-functions/wcsftime.texi: Likewise.
39284         * doc/posix-functions/wcsncasecmp.texi: Likewise.
39285         * doc/posix-functions/wprintf.texi: Likewise.
39286         * doc/posix-functions/wscanf.texi: Likewise.
39287         * doc/glibc-functions/gethostbyname2.texi: Likewise.
39288
39289 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39290
39291         maint.mk: really add $(AM_MAKEFLAGS)
39292         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
39293         was inadvertently omitted in the last commit.
39294         Spotted by Bruno Haible.
39295
39296         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
39297         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
39298         $(AM_MAKEFLAGS)' rather than plain `make'.
39299
39300         gnulib-tool: execute $MAKE not make
39301         * gnulib-tool: Default $MAKE to 'make'.
39302         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
39303         than make.  Initialize $MAKE in the do-autobuild script.
39304
39305         gnulib-tool: use $MAKE not make in generated files
39306         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
39307         make, in generated files.  Initialize $MAKE in the do-autobuild
39308         script.
39309
39310         * top/GNUmakefile (_have-git-version-gen): Fix typo.
39311
39312         GNUmakefile: disable parallelism only for multiple, recursive targets
39313         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
39314         additions in the Makefile.
39315         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
39316         by Automake.
39317         (.NOTPARALLEL): Only disable parallel builds if multiple targets
39318         are listed on the command line and at least one of them is
39319         listed in $(ALL_RECURSIVE_TARGETS).
39320
39321 2009-03-14  Bruno Haible  <bruno@clisp.org>
39322
39323         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
39324         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
39325         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
39326         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
39327         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
39328         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
39329         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
39330         unistr/u8-uctomb.
39331         * modules/unistr/u8-strchr (Depends-on): Likewise.
39332         * modules/unistr/u8-strrchr (Depends-on): Likewise.
39333         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
39334         unistr/u16-uctomb.
39335         * modules/unistr/u16-strchr (Depends-on): Likewise.
39336         * modules/unistr/u16-strrchr (Depends-on): Likewise.
39337
39338 2009-03-12  Bruno Haible  <bruno@clisp.org>
39339
39340         Work around select() bug on Interix 3.5.
39341         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
39342         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
39343         * m4/select.m4: New file.
39344         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
39345         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
39346         * modules/select (Files): Add m4/select.m4.
39347         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
39348         * modules/nanosleep (Depends-on): Add select.
39349         * modules/poll (Depends-on): Likewise.
39350         * doc/posix-functions/select.texi: Mention the Interix bug.
39351         Reported by Markus Duft <mduft@gentoo.org>.
39352
39353         * lib/select.c: Renamed from lib/winsock-select.c.
39354         * modules/select (Files): Add lib/select.c, remove
39355         lib/winsock-select.c.
39356         (configure.ac): Update.
39357
39358 2009-03-12  Jim Meyering  <meyering@redhat.com>
39359
39360         avoid gcc warnings about unused macro definitions
39361         * lib/readtokens.c (STREQ): Remove unused definition.
39362         * lib/xmalloc.c (SIZE_MAX): Likewise.
39363         * lib/openat-die.c (N_): Likewise.
39364         * lib/mountlist.c (SIZE_MAX): Remove definition.
39365         Instead, include <stdint.h>.
39366         * lib/readutmp.c: Likewise.
39367         * modules/readutmp (Depends-on): Add stdint.
39368         * modules/mountlist (Depends-on): Add stdint.
39369         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
39370
39371 2009-03-10  Bruno Haible  <bruno@clisp.org>
39372
39373         Tests for module 'mbmemcasecoll'.
39374         * modules/mbmemcasecoll-tests: New file.
39375         * tests/test-mbmemcasecoll1.sh: New file.
39376         * tests/test-mbmemcasecoll2.sh: New file.
39377         * tests/test-mbmemcasecoll3.sh: New file.
39378         * tests/test-mbmemcasecoll.c: New file.
39379
39380         New module 'mbmemcasecoll'.
39381         * lib/mbmemcasecoll.h: New file.
39382         * lib/mbmemcasecoll.c: New file.
39383         * modules/mbmemcasecoll: New file.
39384
39385         * tests/test-mbmemcasecmp.h: New file, extracted from
39386         tests/test-mbmemcasecmp.c.
39387         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
39388         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
39389         (main): Update.
39390         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
39391
39392 2009-03-09  Bruno Haible  <bruno@clisp.org>
39393
39394         Tests for module 'mbmemcasecmp'.
39395         * modules/mbmemcasecmp-tests: New file.
39396         * tests/test-mbmemcasecmp1.sh: New file.
39397         * tests/test-mbmemcasecmp2.sh: New file.
39398         * tests/test-mbmemcasecmp3.sh: New file.
39399         * tests/test-mbmemcasecmp.c: New file.
39400
39401         New module 'mbmemcasecmp'.
39402         * lib/mbmemcasecmp.h: New file.
39403         * lib/mbmemcasecmp.c: New file.
39404         * modules/mbmemcasecmp: New file.
39405
39406 2009-03-09  Bruno Haible  <bruno@clisp.org>
39407
39408         Tests for module 'unicase/ulc-casecoll'.
39409         * modules/unicase/ulc-casecoll-tests: New file.
39410         * tests/unicase/test-ulc-casecoll1.sh: New file.
39411         * tests/unicase/test-ulc-casecoll2.sh: New file.
39412         * tests/unicase/test-ulc-casecoll.c: New file.
39413
39414         New module 'unicase/ulc-casecoll'.
39415         * lib/unicase.h (ulc_casecoll): New declaration.
39416         * lib/unicase/ulc-casecoll.c: New file.
39417         * modules/unicase/ulc-casecoll: New file.
39418
39419         New module 'unicase/ulc-casexfrm'.
39420         * lib/unicase.h (ulc_casexfrm): New declaration.
39421         * lib/unicase/ulc-casexfrm.c: New file.
39422         * modules/unicase/ulc-casexfrm: New file.
39423
39424 2009-03-09  Bruno Haible  <bruno@clisp.org>
39425
39426         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
39427         invocations.
39428
39429         * m4/mbscasecmp.m4: Remove file.
39430         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
39431         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
39432
39433         * m4/mbscasestr.m4: Remove file.
39434         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
39435         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
39436
39437         * m4/mbschr.m4: Remove file.
39438         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
39439         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
39440
39441         * m4/mbscspn.m4: Remove file.
39442         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
39443         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
39444
39445         * m4/mbslen.m4: Remove file.
39446         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
39447         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
39448
39449         * m4/mbsncasecmp.m4: Remove file.
39450         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
39451         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
39452
39453         * m4/mbsnlen.m4: Remove file.
39454         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
39455         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
39456
39457         * m4/mbspbrk.m4: Remove file.
39458         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
39459         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
39460
39461         * m4/mbspcasecmp.m4: Remove file.
39462         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
39463         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
39464
39465         * m4/mbsrchr.m4: Remove file.
39466         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
39467         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
39468
39469         * m4/mbssep.m4: Remove file.
39470         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
39471         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
39472
39473         * m4/mbsspn.m4: Remove file.
39474         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
39475         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
39476
39477         * m4/mbsstr.m4: Remove file.
39478         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
39479         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
39480
39481         * m4/mbstok_r.m4: Remove file.
39482         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
39483         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
39484
39485         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
39486
39487         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
39488         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
39489
39490         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
39491
39492 2009-03-08  Bruno Haible  <bruno@clisp.org>
39493
39494         Tests for module 'unicase/ulc-casecmp'.
39495         * modules/unicase/ulc-casecmp-tests: New file.
39496         * tests/unicase/test-ulc-casecmp1.sh: New file.
39497         * tests/unicase/test-ulc-casecmp2.sh: New file.
39498         * tests/unicase/test-ulc-casecmp.c: New file.
39499
39500         New module 'unicase/ulc-casecmp'.
39501         * lib/unicase.h (ulc_casecmp): New declaration.
39502         * lib/unicase/ulc-casecmp.c: New file.
39503         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
39504         'const SRC_UNIT *'.
39505         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
39506         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
39507         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
39508         * modules/unicase/ulc-casecmp: New file.
39509
39510         Tests for module 'unicase/u32-is-cased'.
39511         * modules/unicase/u32-is-cased-tests: New file.
39512         * tests/unicase/test-u32-is-cased.c: New file.
39513
39514         Tests for module 'unicase/u16-is-cased'.
39515         * modules/unicase/u16-is-cased-tests: New file.
39516         * tests/unicase/test-u16-is-cased.c: New file.
39517
39518         Tests for module 'unicase/u8-is-cased'.
39519         * modules/unicase/u8-is-cased-tests: New file.
39520         * tests/unicase/test-u8-is-cased.c: New file.
39521         * tests/unicase/test-is-cased.h: New file.
39522
39523         New module 'unicase/u32-is-cased'.
39524         * lib/unicase/u32-is-cased.c: New file.
39525         * modules/unicase/u32-is-cased: New file.
39526
39527         New module 'unicase/u16-is-cased'.
39528         * lib/unicase/u16-is-cased.c: New file.
39529         * modules/unicase/u16-is-cased: New file.
39530
39531         New module 'unicase/u8-is-cased'.
39532         * lib/unicase/u8-is-cased.c: New file.
39533         * lib/unicase/u-is-cased.h: New file.
39534         * modules/unicase/u8-is-cased: New file.
39535
39536         Tests for module 'unicase/u32-is-casefolded'.
39537         * modules/unicase/u32-is-casefolded-tests: New file.
39538         * tests/unicase/test-u32-is-casefolded.c: New file.
39539
39540         Tests for module 'unicase/u16-is-casefolded'.
39541         * modules/unicase/u16-is-casefolded-tests: New file.
39542         * tests/unicase/test-u16-is-casefolded.c: New file.
39543
39544         Tests for module 'unicase/u8-is-casefolded'.
39545         * modules/unicase/u8-is-casefolded-tests: New file.
39546         * tests/unicase/test-u8-is-casefolded.c: New file.
39547         * tests/unicase/test-is-casefolded.h: New file.
39548
39549         New module 'unicase/u32-is-casefolded'.
39550         * lib/unicase/u32-is-casefolded.c: New file.
39551         * modules/unicase/u32-is-casefolded: New file.
39552
39553         New module 'unicase/u16-is-casefolded'.
39554         * lib/unicase/u16-is-casefolded.c: New file.
39555         * modules/unicase/u16-is-casefolded: New file.
39556
39557         New module 'unicase/u8-is-casefolded'.
39558         * lib/unicase/u8-is-casefolded.c: New file.
39559         * modules/unicase/u8-is-casefolded: New file.
39560
39561         Tests for module 'unicase/u32-is-titlecase'.
39562         * modules/unicase/u32-is-titlecase-tests: New file.
39563         * tests/unicase/test-u32-is-titlecase.c: New file.
39564
39565         Tests for module 'unicase/u16-is-titlecase'.
39566         * modules/unicase/u16-is-titlecase-tests: New file.
39567         * tests/unicase/test-u16-is-titlecase.c: New file.
39568
39569         Tests for module 'unicase/u8-is-titlecase'.
39570         * modules/unicase/u8-is-titlecase-tests: New file.
39571         * tests/unicase/test-u8-is-titlecase.c: New file.
39572         * tests/unicase/test-is-titlecase.h: New file.
39573
39574         New module 'unicase/u32-is-titlecase'.
39575         * lib/unicase/u32-is-titlecase.c: New file.
39576         * modules/unicase/u32-is-titlecase: New file.
39577
39578         New module 'unicase/u16-is-titlecase'.
39579         * lib/unicase/u16-is-titlecase.c: New file.
39580         * modules/unicase/u16-is-titlecase: New file.
39581
39582         New module 'unicase/u8-is-titlecase'.
39583         * lib/unicase/u8-is-titlecase.c: New file.
39584         * modules/unicase/u8-is-titlecase: New file.
39585
39586         Tests for module 'unicase/u32-is-lowercase'.
39587         * modules/unicase/u32-is-lowercase-tests: New file.
39588         * tests/unicase/test-u32-is-lowercase.c: New file.
39589
39590         Tests for module 'unicase/u16-is-lowercase'.
39591         * modules/unicase/u16-is-lowercase-tests: New file.
39592         * tests/unicase/test-u16-is-lowercase.c: New file.
39593
39594         Tests for module 'unicase/u8-is-lowercase'.
39595         * modules/unicase/u8-is-lowercase-tests: New file.
39596         * tests/unicase/test-u8-is-lowercase.c: New file.
39597         * tests/unicase/test-is-lowercase.h: New file.
39598
39599         New module 'unicase/u32-is-lowercase'.
39600         * lib/unicase/u32-is-lowercase.c: New file.
39601         * modules/unicase/u32-is-lowercase: New file.
39602
39603         New module 'unicase/u16-is-lowercase'.
39604         * lib/unicase/u16-is-lowercase.c: New file.
39605         * modules/unicase/u16-is-lowercase: New file.
39606
39607         New module 'unicase/u8-is-lowercase'.
39608         * lib/unicase/u8-is-lowercase.c: New file.
39609         * modules/unicase/u8-is-lowercase: New file.
39610
39611         Tests for module 'unicase/u32-is-uppercase'.
39612         * modules/unicase/u32-is-uppercase-tests: New file.
39613         * tests/unicase/test-u32-is-uppercase.c: New file.
39614
39615         Tests for module 'unicase/u16-is-uppercase'.
39616         * modules/unicase/u16-is-uppercase-tests: New file.
39617         * tests/unicase/test-u16-is-uppercase.c: New file.
39618
39619         Tests for module 'unicase/u8-is-uppercase'.
39620         * modules/unicase/u8-is-uppercase-tests: New file.
39621         * tests/unicase/test-u8-is-uppercase.c: New file.
39622         * tests/unicase/test-is-uppercase.h: New file.
39623
39624         New module 'unicase/u32-is-uppercase'.
39625         * lib/unicase/u32-is-uppercase.c: New file.
39626         * modules/unicase/u32-is-uppercase: New file.
39627
39628         New module 'unicase/u16-is-uppercase'.
39629         * lib/unicase/u16-is-uppercase.c: New file.
39630         * modules/unicase/u16-is-uppercase: New file.
39631
39632         New module 'unicase/u8-is-uppercase'.
39633         * lib/unicase/u8-is-uppercase.c: New file.
39634         * modules/unicase/u8-is-uppercase: New file.
39635
39636         New module 'unicase/u32-is-invariant'.
39637         * lib/unicase/u32-is-invariant.c: New file.
39638         * modules/unicase/u32-is-invariant: New file.
39639
39640         New module 'unicase/u16-is-invariant'.
39641         * lib/unicase/u16-is-invariant.c: New file.
39642         * modules/unicase/u16-is-invariant: New file.
39643
39644         New module 'unicase/u8-is-invariant'.
39645         * lib/unicase/u8-is-invariant.c: New file.
39646         * lib/unicase/invariant.h: New file.
39647         * lib/unicase/u-is-invariant.h: New file.
39648         * modules/unicase/u8-is-invariant: New file.
39649
39650         Tests for module 'unicase/u32-casecoll'.
39651         * modules/unicase/u32-casecoll-tests: New file.
39652         * tests/unicase/test-u32-casecoll.c: New file.
39653
39654         Tests for module 'unicase/u16-casecoll'.
39655         * modules/unicase/u16-casecoll-tests: New file.
39656         * tests/unicase/test-u16-casecoll.c: New file.
39657
39658         Tests for module 'unicase/u8-casecoll'.
39659         * modules/unicase/u8-casecoll-tests: New file.
39660         * tests/unicase/test-u8-casecoll.c: New file.
39661
39662         New module 'unicase/u32-casecoll'.
39663         * lib/unicase/u32-casecoll.c: New file.
39664         * modules/unicase/u32-casecoll: New file.
39665
39666         New module 'unicase/u16-casecoll'.
39667         * lib/unicase/u16-casecoll.c: New file.
39668         * modules/unicase/u16-casecoll: New file.
39669
39670         New module 'unicase/u8-casecoll'.
39671         * lib/unicase/u8-casecoll.c: New file.
39672         * lib/unicase/u-casecoll.h: New file.
39673         * modules/unicase/u8-casecoll: New file.
39674
39675         New module 'unicase/u32-casexfrm'.
39676         * lib/unicase/u32-casexfrm.c: New file.
39677         * modules/unicase/u32-casexfrm: New file.
39678
39679         New module 'unicase/u16-casexfrm'.
39680         * lib/unicase/u16-casexfrm.c: New file.
39681         * modules/unicase/u16-casexfrm: New file.
39682
39683         New module 'unicase/u8-casexfrm'.
39684         * lib/unicase/u8-casexfrm.c: New file.
39685         * lib/unicase/u-casexfrm.h: New file.
39686         * modules/unicase/u8-casexfrm: New file.
39687
39688         Tests for module 'unicase/u32-casecmp'.
39689         * modules/unicase/u32-casecmp-tests: New file.
39690         * tests/unicase/test-u32-casecmp.c: New file.
39691
39692         Tests for module 'unicase/u16-casecmp'.
39693         * modules/unicase/u16-casecmp-tests: New file.
39694         * tests/unicase/test-u16-casecmp.c: New file.
39695
39696         Tests for module 'unicase/u8-casecmp'.
39697         * modules/unicase/u8-casecmp-tests: New file.
39698         * tests/unicase/test-u8-casecmp.c: New file.
39699         * tests/unicase/test-casecmp.h: New file.
39700
39701         New module 'unicase/u32-casecmp'.
39702         * lib/unicase/u32-casecmp.c: New file.
39703         * modules/unicase/u32-casecmp: New file.
39704
39705         New module 'unicase/u16-casecmp'.
39706         * lib/unicase/u16-casecmp.c: New file.
39707         * modules/unicase/u16-casecmp: New file.
39708
39709         New module 'unicase/u8-casecmp'.
39710         * lib/unicase/u8-casecmp.c: New file.
39711         * lib/unicase/u-casecmp.h: New file.
39712         * modules/unicase/u8-casecmp: New file.
39713
39714         Tests for module 'unicase/u32-casefold'.
39715         * modules/unicase/u32-casefold-tests: New file.
39716         * tests/unicase/test-u32-casefold.c: New file.
39717
39718         Tests for module 'unicase/u16-casefold'.
39719         * modules/unicase/u16-casefold-tests: New file.
39720         * tests/unicase/test-u16-casefold.c: New file.
39721
39722         Tests for module 'unicase/u8-casefold'.
39723         * modules/unicase/u8-casefold-tests: New file.
39724         * tests/unicase/test-u8-casefold.c: New file.
39725
39726         New module 'unicase/u32-casefold'.
39727         * lib/unicase/u32-casefold.c: New file.
39728         * modules/unicase/u32-casefold: New file.
39729
39730         New module 'unicase/u16-casefold'.
39731         * lib/unicase/u16-casefold.c: New file.
39732         * modules/unicase/u16-casefold: New file.
39733
39734         New module 'unicase/u8-casefold'.
39735         * lib/unicase/u8-casefold.c: New file.
39736         * lib/unicase/u-casefold.h: New file.
39737         * modules/unicase/u8-casefold: New file.
39738
39739         New module 'unicase/tocasefold'.
39740         * lib/unicase/casefold.h: New file.
39741         * lib/unicase/tocasefold.c: New file.
39742         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
39743         * modules/unicase/tocasefold: New file.
39744
39745         Tests for module 'unicase/u32-totitle'.
39746         * modules/unicase/u32-totitle-tests: New file.
39747         * tests/unicase/test-u32-totitle.c: New file.
39748
39749         Tests for module 'unicase/u16-totitle'.
39750         * modules/unicase/u16-totitle-tests: New file.
39751         * tests/unicase/test-u16-totitle.c: New file.
39752
39753         Tests for module 'unicase/u8-totitle'.
39754         * modules/unicase/u8-totitle-tests: New file.
39755         * tests/unicase/test-u8-totitle.c: New file.
39756
39757         New module 'unicase/u32-totitle'.
39758         * lib/unicase/u32-totitle.c: New file.
39759         * modules/unicase/u32-totitle: New file.
39760
39761         New module 'unicase/u16-totitle'.
39762         * lib/unicase/u16-totitle.c: New file.
39763         * modules/unicase/u16-totitle: New file.
39764
39765         New module 'unicase/u8-totitle'.
39766         * lib/unicase/u8-totitle.c: New file.
39767         * lib/unicase/u-totitle.h: New file.
39768         * modules/unicase/u8-totitle: New file.
39769
39770         Tests for module 'unicase/u32-tolower'.
39771         * modules/unicase/u32-tolower-tests: New file.
39772         * tests/unicase/test-u32-tolower.c: New file.
39773
39774         Tests for module 'unicase/u16-tolower'.
39775         * modules/unicase/u16-tolower-tests: New file.
39776         * tests/unicase/test-u16-tolower.c: New file.
39777
39778         Tests for module 'unicase/u8-tolower'.
39779         * modules/unicase/u8-tolower-tests: New file.
39780         * tests/unicase/test-u8-tolower.c: New file.
39781
39782         New module 'unicase/u32-tolower'.
39783         * lib/unicase/u32-tolower.c: New file.
39784         * modules/unicase/u32-tolower: New file.
39785
39786         New module 'unicase/u16-tolower'.
39787         * lib/unicase/u16-tolower.c: New file.
39788         * modules/unicase/u16-tolower: New file.
39789
39790         New module 'unicase/u8-tolower'.
39791         * lib/unicase/u8-tolower.c: New file.
39792         * modules/unicase/u8-tolower: New file.
39793
39794         Tests for module 'unicase/u32-toupper'.
39795         * modules/unicase/u32-toupper-tests: New file.
39796         * tests/unicase/test-u32-toupper.c: New file.
39797
39798         Tests for module 'unicase/u16-toupper'.
39799         * modules/unicase/u16-toupper-tests: New file.
39800         * tests/unicase/test-u16-toupper.c: New file.
39801
39802         Tests for module 'unicase/u8-toupper'.
39803         * modules/unicase/u8-toupper-tests: New file.
39804         * tests/unicase/test-u8-toupper.c: New file.
39805
39806         New module 'unicase/u32-toupper'.
39807         * lib/unicase/u32-toupper.c: New file.
39808         * modules/unicase/u32-toupper: New file.
39809
39810         New module 'unicase/u16-toupper'.
39811         * lib/unicase/u16-toupper.c: New file.
39812         * modules/unicase/u16-toupper: New file.
39813
39814         New module 'unicase/u8-toupper'.
39815         * lib/unicase/u8-toupper.c: New file.
39816         * modules/unicase/u8-toupper: New file.
39817
39818         New module 'unicase/u32-casemap'.
39819         * lib/unicase/u32-casemap.c: New file.
39820         * modules/unicase/u32-casemap: New file.
39821
39822         New module 'unicase/u16-casemap'.
39823         * lib/unicase/u16-casemap.c: New file.
39824         * modules/unicase/u16-casemap: New file.
39825
39826         New module 'unicase/u8-casemap'.
39827         * lib/unicase/unicasemap.h: New file.
39828         * lib/unicase/u8-casemap.c: New file.
39829         * lib/unicase/u-casemap.h: New file.
39830         * modules/unicase/u8-casemap: New file.
39831
39832         New module 'unicase/special-casing'.
39833         * lib/unicase/special-casing.h: New file.
39834         * lib/unicase/special-casing.c: New file.
39835         * lib/unicase/special-casing-table.gperf: New file, generated by
39836         gen-uni-tables.c.
39837         * modules/unicase/special-casing: New file.
39838
39839         Tests for module 'unicase/locale-language'.
39840         * modules/unicase/locale-language-tests: New file.
39841         * tests/unicase/test-locale-language.sh: New file.
39842         * tests/unicase/test-locale-language.c: New file.
39843
39844         New module 'unicase/locale-language'.
39845         * lib/unicase/locale-language.c: New file.
39846         * lib/unicase/locale-languages.gperf: New file.
39847         * modules/unicase/locale-language: New file.
39848
39849         Generate more tables for case conversion and case folding.
39850         * lib/gen-uni-tables.c (SCC_*): New enum items.
39851         (struct special_casing_rule): New type.
39852         (casing_rules, num_casing_rules, allocated_casing_rules): New
39853         variables.
39854         (add_casing_rule, fill_casing_rules): New functions.
39855         (struct casefold_rule): New type.
39856         (casefolding_rules, num_casefolding_rules,
39857         allocated_casefolding_rules): New variables.
39858         (fill_casefolding_rules): New function.
39859         (unicode_casefold): New variable.
39860         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
39861         sort_casing_rules, output_casing_rules): New functions.
39862         (main): Accept to more arguments: SpecialCasing.txt and
39863         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
39864         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
39865         Output mapping for casefolding.
39866
39867         * lib/unicase.h: Include stdbool.h, uninorm.h.
39868         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
39869         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
39870         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
39871         arguments.
39872         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
39873         resultp arguments.
39874         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
39875         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
39876         resultp arguments.
39877         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
39878         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
39879         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
39880         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
39881         declarations.
39882         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
39883
39884 2009-03-08  Bruno Haible  <bruno@clisp.org>
39885
39886         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
39887         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
39888         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
39889         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
39890
39891 2009-03-07  Bruno Haible  <bruno@clisp.org>
39892
39893         Adjust u*_normcmp, u*_normcoll API.
39894         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
39895         u16_normcoll, u32_normcoll): Change failure conventions.
39896         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
39897         errno and return -1.
39898         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
39899
39900 2009-03-07  Bruno Haible  <bruno@clisp.org>
39901
39902         Tests for module 'uninorm/u32-normcoll'.
39903         * modules/uninorm/u32-normcoll-tests: New file.
39904         * tests/uninorm/test-u32-normcoll.c: New file.
39905
39906         Tests for module 'uninorm/u16-normcoll'.
39907         * modules/uninorm/u16-normcoll-tests: New file.
39908         * tests/uninorm/test-u16-normcoll.c: New file.
39909
39910         Tests for module 'uninorm/u8-normcoll'.
39911         * modules/uninorm/u8-normcoll-tests: New file.
39912         * tests/uninorm/test-u8-normcoll.c: New file.
39913
39914 2009-03-07  Bruno Haible  <bruno@clisp.org>
39915
39916         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
39917         tests/uninorm/test-u32-normcmp.c.
39918         * tests/uninorm/test-u32-normcmp.c: Include it.
39919         (test_nonascii): New function, extracted from main. Add some more
39920         tests.
39921         (main): Invoke test_ascii and test_nonascii.
39922         * modules/uninorm/u32-normcmp-tests (Files): Add
39923         tests/uninorm/test-u32-normcmp.h.
39924         (Depends-on): Remove uninorm/u32-normcmp.
39925
39926         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
39927         tests/uninorm/test-u16-normcmp.c.
39928         * tests/uninorm/test-u16-normcmp.c: Include it.
39929         (test_nonascii): New function, extracted from main. Add some more
39930         tests.
39931         (main): Invoke test_ascii and test_nonascii.
39932         * modules/uninorm/u16-normcmp-tests (Files): Add
39933         tests/uninorm/test-u16-normcmp.h.
39934         (Depends-on): Remove uninorm/u16-normcmp.
39935
39936         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
39937         tests/uninorm/test-u8-normcmp.c.
39938         * tests/uninorm/test-u8-normcmp.c: Include it.
39939         (test_nonascii): New function, extracted from main. Add some more
39940         tests.
39941         (main): Invoke test_ascii and test_nonascii.
39942         * modules/uninorm/u8-normcmp-tests (Files): Add
39943         tests/uninorm/test-u8-normcmp.h.
39944         (Depends-on): Remove uninorm/u8-normcmp.
39945
39946 2009-03-07  Bruno Haible  <bruno@clisp.org>
39947
39948         New module 'uninorm/u32-normcoll'.
39949         * lib/uninorm/u32-normcoll.c: New file.
39950         * modules/uninorm/u32-normcoll: New file.
39951
39952         New module 'uninorm/u16-normcoll'.
39953         * lib/uninorm/u16-normcoll.c: New file.
39954         * modules/uninorm/u16-normcoll: New file.
39955
39956         New module 'uninorm/u8-normcoll'.
39957         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
39958         declarations.
39959         * lib/uninorm/u8-normcoll.c: New file.
39960         * lib/uninorm/u-normcoll.h: New file.
39961         * modules/uninorm/u8-normcoll: New file.
39962
39963         New module 'uninorm/u32-normxfrm'.
39964         * lib/uninorm/u32-normxfrm.c: New file.
39965         * modules/uninorm/u32-normxfrm: New file.
39966
39967         New module 'uninorm/u16-normxfrm'.
39968         * lib/uninorm/u16-normxfrm.c: New file.
39969         * modules/uninorm/u16-normxfrm: New file.
39970
39971         New module 'uninorm/u8-normxfrm'.
39972         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
39973         declarations.
39974         * lib/uninorm/u8-normxfrm.c: New file.
39975         * lib/uninorm/u-normxfrm.h: New file.
39976         * modules/uninorm/u8-normxfrm: New file.
39977
39978 2009-03-07  Bruno Haible  <bruno@clisp.org>
39979
39980         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
39981         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
39982         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
39983
39984 2009-03-07  Bruno Haible  <bruno@clisp.org>
39985
39986         New module 'memxfrm'.
39987         * lib/memxfrm.h: New file.
39988         * lib/memxfrm.c: New file.
39989         * modules/memxfrm: New file.
39990
39991 2009-03-07  Bruno Haible  <bruno@clisp.org>
39992
39993         New module 'memcmp2'.
39994         * lib/memcmp2.h: New file.
39995         * lib/memcmp2.c: New file.
39996         * modules/memcmp2: New file.
39997
39998 2009-03-07  Bruno Haible  <bruno@clisp.org>
39999
40000         Tests for module 'uninorm/decomposing-form'.
40001         * modules/uninorm/decomposing-form-tests: New file.
40002         * tests/uninorm/test-decomposing-form.c: New file.
40003
40004         New module 'uninorm/decomposing-form'.
40005         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
40006         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
40007         Add 'decomposing_variant' field.
40008         * lib/uninorm/decomposing-form.c: New file.
40009         * lib/uninorm/nfc.c (uninorm_nfc): Update.
40010         * lib/uninorm/nfd.c (uninorm_nfd): Update.
40011         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
40012         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
40013         * modules/uninorm/decomposing-form: New file.
40014         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
40015         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
40016
40017 2009-03-07  Bruno Haible  <bruno@clisp.org>
40018
40019         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
40020         strings.
40021
40022 2009-03-06  Bruno Haible  <bruno@clisp.org>
40023
40024         Tests for module 'uninorm/u32-normcmp'.
40025         * tests/uninorm/test-u32-normcmp.c: New file.
40026         * modules/uninorm/u32-normcmp-tests: New file.
40027
40028         Tests for module 'uninorm/u16-normcmp'.
40029         * tests/uninorm/test-u16-normcmp.c: New file.
40030         * modules/uninorm/u16-normcmp-tests: New file.
40031
40032         Tests for module 'uninorm/u8-normcmp'.
40033         * tests/uninorm/test-u8-normcmp.c: New file.
40034         * modules/uninorm/u8-normcmp-tests: New file.
40035
40036         New module 'uninorm/u32-normcmp'.
40037         * lib/uninorm/u32-normcmp.c: New file.
40038         * modules/uninorm/u32-normcmp: New file.
40039
40040         New module 'uninorm/u16-normcmp'.
40041         * lib/uninorm/u16-normcmp.c: New file.
40042         * modules/uninorm/u16-normcmp: New file.
40043
40044         New module 'uninorm/u8-normcmp'.
40045         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
40046         declarations.
40047         * lib/uninorm/u8-normcmp.c: New file.
40048         * lib/uninorm/u-normcmp.h: New file.
40049         * modules/uninorm/u8-normcmp: New file.
40050
40051 2009-03-06  Bruno Haible  <bruno@clisp.org>
40052
40053         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
40054         Reported by Eric Blake.
40055
40056 2009-03-06  Eric Blake  <ebb9@byu.net>
40057             Bruno Haible  <bruno@clisp.org>
40058
40059         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
40060         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
40061         condition.
40062         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
40063         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
40064         condition.
40065         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
40066
40067 2009-03-06  Eric Blake  <ebb9@byu.net>
40068
40069         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
40070         to avoid compiler warnings.
40071         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
40072
40073 2009-03-05  Bruno Haible  <bruno@clisp.org>
40074
40075         * tests/test-ftell.c (main): Disable test beyond end of file on
40076         FreeMiNT.
40077         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
40078
40079 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
40080
40081         * lib/filevercmp.c: Move hidden files up in ordering.
40082         * tests/test-filevercmp.c: Add tests for hidden files.
40083
40084 2009-03-04  Bruno Haible  <bruno@clisp.org>
40085
40086         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
40087         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
40088         AM_CFLAGS.
40089         Reported by Simon Josefsson.
40090
40091 2009-03-03  Bruno Haible  <bruno@clisp.org>
40092
40093         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
40094         Reported by Simon Josefsson.
40095
40096         * doc/ld-version-script.texi: Update node reference.
40097
40098 2009-03-03  Bruno Haible  <bruno@clisp.org>
40099
40100         * modules/visibility (License): Change to 'unlimited'.
40101         Suggested by Simon Josefsson.
40102
40103 2009-03-03  Jim Meyering  <meyering@redhat.com>
40104
40105         unlinkdir: cannot_unlink_dir may modify process state
40106         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
40107         it's neither thread-safe nor appropriate for use in a library.
40108
40109 2009-03-03  Eric Blake  <ebb9@byu.net>
40110
40111         test-closein: silence test under Darwin
40112         * tests/test-closein.sh: Ignore stderr from cat, since we don't
40113         care if it dies from EPIPE or EBADF.
40114
40115 2009-03-03  Bruno Haible  <bruno@clisp.org>
40116
40117         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
40118         earlier.
40119         * doc/visibility.texi: Fix @node and @section.
40120
40121 2009-03-03  Simon Josefsson  <simon@josefsson.org>
40122
40123         * doc/gnulib.texi: Link to sections for ld version script and
40124         visibility.
40125         * doc/visibility.texi: Add @node and @section.
40126         * modules/ld-version-script: New module.
40127         * m4/ld-version-script.m4: New file.
40128         * doc/ld-version-script.texi: New file.
40129
40130 2009-03-02  David Lutterkort  <lutter@redhat.com>
40131
40132         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
40133         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
40134
40135 2009-03-02  Bruno Haible  <bruno@clisp.org>
40136
40137         * doc/visibility.texi: Mention libtool's -export-symbols option.
40138
40139 2009-03-02  Jim Meyering  <meyering@redhat.com>
40140
40141         announce-gen: new option: --no-print-checksums
40142         * build-aux/announce-gen (usage): Describe it.
40143         (print_checksums): Print a newline here, not in the [*] footnote.
40144         (main): Honor it.
40145
40146 2009-03-01  Bruno Haible  <bruno@clisp.org>
40147
40148         Use socklen_t in the native Windows replacements prototypes.
40149         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
40150         instead of 'int'.
40151         * lib/getsockopt.c (rpl_getsockopt): Likewise.
40152         * lib/setsockopt.c (rpl_setsockopt): Likewise.
40153         * modules/getsockopt (Depends-on): Add socklen.
40154         * modules/setsockopt (Depends-on): Add socklen.
40155
40156 2009-03-01  Bruno Haible  <bruno@clisp.org>
40157
40158         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
40159         least 4.2.
40160
40161 2009-03-01  Eric Blake  <ebb9@byu.net>
40162             Bruno Haible  <bruno@clisp.org>
40163
40164         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
40165         error messages.
40166         * lib/wait-process.c (wait_subprocess): Omit error message about
40167         deadly signal sent to the child of termsigp != NULL.
40168
40169 2009-03-01  Eric Blake  <ebb9@byu.net>
40170
40171         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
40172
40173 2009-03-01  Bruno Haible  <bruno@clisp.org>
40174
40175         Avoid a gcc warning.
40176         * tests/test-sched.c (b): Make global.
40177         Reported by Eric Blake.
40178
40179 2009-01-19  Martin Lambers  <marlam@marlam.de>
40180
40181         Provide POSIX semantics for socket timeout options on W32.
40182         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
40183         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
40184         * modules/setsockopt: Depend on sys_time module for struct timeval.
40185         * modules/getsockopt: Depend on sys_time module for struct timeval.
40186
40187 2009-03-01  Simon Josefsson  <simon@josefsson.org>
40188
40189         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
40190         __USE_GNU, for consistency with netdb.in.h.
40191         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
40192
40193 2009-03-01  Bruno Haible  <bruno@clisp.org>
40194
40195         More support for FreeMiNT.
40196         * lib/fseeko.c (rpl_fseeko): Complete last commit.
40197         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
40198
40199 2009-03-01  Bruno Haible  <bruno@clisp.org>
40200
40201         More support for FreeMiNT.
40202         * lib/fpurge.c (fpurge): Correct last commit.
40203         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
40204
40205 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40206
40207         Fix unportable awk script in vc-list-files.
40208         * build-aux/vc-list-files: In the replacement awk script, use
40209         substr with a second argument of 1, not zero.
40210         Report by Simon Josefsson.
40211
40212 2009-02-28  Bruno Haible  <bruno@clisp.org>
40213
40214         More support for FreeMiNT.
40215         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
40216         to FreeMiNT today.
40217         * lib/fwriting.c (fwriting): Likewise.
40218         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
40219
40220 2009-02-28  Bruno Haible  <bruno@clisp.org>
40221
40222         * tests/test-freadseek.c (main): Disable test beyond end of file on
40223         FreeMiNT.
40224         * tests/test-ftello.c (main): Likewise.
40225         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
40226
40227 2009-02-28  Bruno Haible  <bruno@clisp.org>
40228
40229         Add tentative support for FreeMiNT.
40230         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
40231         * lib/fpurge.c (fpurge): Likewise.
40232         * lib/freadable.c (freadable): Likewise.
40233         * lib/freading.c (freading): Likewise.
40234         * lib/freadptr.c (freadptr): Likewise.
40235         * lib/freadseek.c (freadptrinc): Likewise.
40236         * lib/fseeko.c (rpl_fseeko): Likewise.
40237         * lib/fseterr.c (fseterr): Likewise.
40238         * lib/fwritable.c (fwritable): Likewise.
40239         * lib/fwriting.c (fwriting): Likewise.
40240         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
40241         Hourihane.
40242         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
40243
40244 2009-02-28  Bruno Haible  <bruno@clisp.org>
40245
40246         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
40247         SIGCHLD.
40248         Reported by Jim Meyering.
40249
40250 2009-02-28  Bruno Haible  <bruno@clisp.org>
40251
40252         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
40253         Mention the results of these tests on various platforms.
40254         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
40255         order.
40256         * doc/posix-functions/printf.texi: Likewise.
40257         * doc/posix-functions/snprintf.texi: Likewise.
40258         * doc/posix-functions/sprintf.texi: Likewise.
40259         * doc/posix-functions/vfprintf.texi: Likewise.
40260         * doc/posix-functions/vprintf.texi: Likewise.
40261         * doc/posix-functions/vsnprintf.texi: Likewise.
40262         * doc/posix-functions/vsprintf.texi: Likewise.
40263         * doc/glibc-functions/obstack_printf.texi: Likewise.
40264         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
40265
40266 2009-02-28  Bruno Haible  <bruno@clisp.org>
40267
40268         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
40269         Reported by Loïc Minier <lool@dooz.org>.
40270
40271 2009-02-27  Bruno Haible  <bruno@clisp.org>
40272
40273         * gnulib-tool (func_import): Make the sed expression used to create the
40274         sed script for updating the .gitignore file POSIX compliant.
40275         Reported by Eric Blake.
40276
40277 2009-02-27  Bruno Haible  <bruno@clisp.org>
40278
40279         * gnulib-tool (sed): Don't alias as "sed --posix".
40280         Reported by Eric Blake.
40281
40282 2009-02-27  Bruno Haible  <bruno@clisp.org>
40283
40284         Avoid test link errors.
40285         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
40286         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
40287         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
40288         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
40289         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
40290
40291 2009-02-27  Bruno Haible  <bruno@clisp.org>
40292
40293         Avoid spurious "(cached)" in configure output.
40294         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
40295         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
40296         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
40297         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
40298         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
40299         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
40300         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
40301         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
40302         Reported by Eric Blake.
40303
40304 2009-02-27  Eric Blake  <ebb9@byu.net>
40305
40306         printf: fix regression in previous patch
40307         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
40308
40309 2009-02-27  Bruno Haible  <bruno@clisp.org>
40310
40311         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
40312         value.
40313         * lib/stdint.in.h: Likewise.
40314         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
40315
40316 2009-02-27  Eric Blake  <ebb9@byu.net>
40317
40318         doc: mention more functions added in cygwin 1.7.0
40319         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
40320         addition.
40321         * doc/posix-functions/open_wmemstream.texi: Likewise.
40322         * doc/posix-functions/wcsnlen.texi: Likewise.
40323         * doc/posix-functions/wcsnrtombs.texi: Likewise.
40324         * doc/posix-functions/wcstod.texi: Likewise.
40325         * doc/posix-functions/wcstof.texi: Likewise.
40326         * doc/posix-functions/wcstoimax.texi: Likewise.
40327         * doc/posix-functions/wcstok.texi: Likewise.
40328         * doc/posix-functions/wcstoumax.texi: Likewise.
40329
40330         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
40331         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
40332         * doc/posix-functions/fprintf.texi: Update.
40333         * doc/posix-functions/printf.texi: Update.
40334         * doc/posix-functions/snprintf.texi: Update.
40335         * doc/posix-functions/sprintf.texi: Update.
40336         * doc/posix-functions/vfprintf.texi: Update.
40337         * doc/posix-functions/vprintf.texi: Update.
40338         * doc/posix-functions/vsnprintf.texi: Update.
40339         * doc/posix-functions/vsprintf.texi: Update.
40340         * doc/glibc-functions/obstack_printf.texi: Update.
40341         * doc/glibc-functions/obstack_vprintf.texi: Update.
40342
40343 2009-02-26  Eric Blake  <ebb9@byu.net>
40344
40345         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
40346         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
40347         compilation bug by using runtime conversion.
40348         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
40349         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
40350         * modules/ceill-tests (Files): Use nan.h.
40351         * modules/floorl-tests (Files): Likewise.
40352         * modules/frexpl-tests (Files): Likewise.
40353         * modules/isnanl-tests (Files): Likewise.
40354         * modules/ldexpl-tests (Files): Likewise.
40355         * modules/roundl-tests (Files): Likewise.
40356         * modules/truncl-tests (Files): Likewise.
40357         * tests/test-ceill.c (main): Use a working NaN.
40358         * tests/test-floorl.c (main): Likewise.
40359         * tests/test-frexpl.c (main): Likewise.
40360         * tests/test-isnan.c (test_long_double): Likewise.
40361         * tests/test-isnanl.h (main): Likewise.
40362         * tests/test-ldexpl.h (main): Likewise.
40363         * tests/test-roundl.h (main): Likewise.
40364         * tests/test-truncl.h (main): Likewise.
40365         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
40366
40367 2009-02-26  Eric Blake  <ebb9@byu.net>
40368             Bruno Haible  <bruno@clisp.org>
40369
40370         Work around a *printf bug with %ls on Solaris.
40371         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
40372         precision is specified, sprintf stops converting the wide string
40373         argument when the number of bytes that have been produced by this
40374         conversion equals or exceeds the precision.
40375         * doc/posix-functions/fprintf.texi: Update.
40376         * doc/posix-functions/printf.texi: Update.
40377         * doc/posix-functions/snprintf.texi: Update.
40378         * doc/posix-functions/sprintf.texi: Update.
40379         * doc/posix-functions/vfprintf.texi: Update.
40380         * doc/posix-functions/vprintf.texi: Update.
40381         * doc/posix-functions/vsnprintf.texi: Update.
40382         * doc/posix-functions/vsprintf.texi: Update.
40383         * doc/glibc-functions/obstack_printf.texi: Update.
40384         * doc/glibc-functions/obstack_vprintf.texi: Update.
40385
40386 2009-02-26  Eric Blake  <ebb9@byu.net>
40387
40388         stdlib: favor compiler check of random.h
40389         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
40390         to avoid an ObjC random.h installed by Swarm.
40391
40392 2009-02-26  Bruno Haible  <bruno@clisp.org>
40393
40394         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
40395         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
40396         Reported by Gary V. Vaughan <gary@gnu.org>.
40397
40398 2009-02-26  Bruno Haible  <bruno@clisp.org>
40399
40400         Fix *printf behaviour regarding the %ls directive.
40401         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
40402         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
40403         NEED_PRINTF_DIRECTIVE_LS.
40404         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
40405         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
40406         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
40407         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
40408         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
40409         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
40410         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
40411         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
40412         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
40413         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
40414         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
40415         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
40416         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
40417         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
40418         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
40419         * doc/posix-functions/fprintf.texi: Update.
40420         * doc/posix-functions/printf.texi: Update.
40421         * doc/posix-functions/snprintf.texi: Update.
40422         * doc/posix-functions/sprintf.texi: Update.
40423         * doc/posix-functions/vfprintf.texi: Update.
40424         * doc/posix-functions/vprintf.texi: Update.
40425         * doc/posix-functions/vsnprintf.texi: Update.
40426         * doc/posix-functions/vsprintf.texi: Update.
40427         * doc/glibc-functions/obstack_printf.texi: Update.
40428         * doc/glibc-functions/obstack_vprintf.texi: Update.
40429         Reported by Eric Blake.
40430
40431 2009-02-25  Bruno Haible  <bruno@clisp.org>
40432
40433         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
40434         with known value.
40435         Reported by Gary V. Vaughan <gary@gnu.org>.
40436
40437 2009-02-25  Bruno Haible  <bruno@clisp.org>
40438
40439         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
40440         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
40441         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
40442         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
40443         Reported by Gary V. Vaughan <gary@gnu.org>.
40444
40445 2009-02-25  Bruno Haible  <bruno@clisp.org>
40446
40447         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
40448         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
40449         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
40450         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
40451         Reported by Gary V. Vaughan <gary@gnu.org>.
40452
40453 2009-02-25  Eric Blake  <ebb9@byu.net>
40454
40455         tests: skip fseek/ftell tests if ungetc is broken
40456         * m4/ungetc.m4: New file.
40457         * modules/fseek-tests: Split test, so ungetc dependency is
40458         separate from rest of test.
40459         * modules/fseeko-tests: Likewise.
40460         * modules/ftell-tests: Likewise.
40461         * modules/ftello-tests: Likewise.
40462         * tests/test-fseek.c (main): Isolate ungetc dependency.
40463         * tests/test-fseeko.c (main): Likewise.
40464         * tests/test-ftell.c (main): Likewise.
40465         * tests/test-ftello.c (main): Likewise.
40466         * tests/test-fseek2.sh: New file.
40467         * tests/test-fseeko2.sh: Likewise.
40468         * tests/test-ftell2.sh: Likewise.
40469         * tests/test-ftello2.sh: Likewise.
40470
40471 2009-02-25  Ondřej Vašík  <ovasik@redhat.com>
40472
40473         test-getaddrinfo: fix usage of skip return code 77
40474         * tests/test-gettaddrinfo.c: Return skip code 77 only
40475         for first occurance of skip (4x77 is not 77)
40476
40477 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
40478
40479         strtod: avoid C99 decl-after-statement
40480         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
40481
40482 2009-02-24  Eric Blake  <ebb9@byu.net>
40483
40484         strtod: detect HP-UX 11.31 bug
40485         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
40486         Reported by Gary V. Vaughan.
40487
40488 2009-02-23  Bruno Haible  <bruno@clisp.org>
40489
40490         Fix invalid read past end of memory block.
40491         * lib/vasnprintf.c (DCHAR_SET): Define.
40492         (local_wcslen): Define only when needed.
40493         (local_strnlen, local_wcsnlen): New functions.
40494         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
40495         directives that involve a conversion ourselves.
40496         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
40497         wcsnlen, mbrtowc, wcrtomb.
40498         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
40499         * tests/test-vasprintf-posix.c (test_function): Likewise.
40500         * tests/test-snprintf-posix.h (test_function): Likewise.
40501         * tests/test-sprintf-posix.h (test_function): Likewise.
40502         Reported by Ben Pfaff <blp@cs.stanford.edu>.
40503
40504 2009-02-22  Bruno Haible  <bruno@clisp.org>
40505
40506         Implement new clarified decomposition of Hangul syllables.
40507         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
40508         of type LTV, return only a pairwise decomposition.
40509         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
40510         Likewise.
40511         * tests/uninorm/test-decomposition.c (main): Updated expected result.
40512         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
40513         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
40514
40515 2009-02-22  Bruno Haible  <bruno@clisp.org>
40516
40517         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
40518         zero-length results and shrink excess allocated memory.
40519         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
40520         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
40521         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
40522         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
40523         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
40524         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
40525         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
40526         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
40527         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
40528         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
40529         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
40530         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
40531
40532 2009-02-21  Bruno Haible  <bruno@clisp.org>
40533
40534         * doc/gnulib.texi: Include safe-alloc.texi earlier.
40535         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
40536         spaces after a period. Put a space between a macro name and its
40537         argument list. Trivial rewordings.
40538         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
40539         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
40540         (main): Return 0 explicitly.
40541
40542 2009-02-21  Bruno Haible  <bruno@clisp.org>
40543
40544         Tests for module 'uninorm/filter'.
40545         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
40546         * modules/uninorm/filter-tests: New file.
40547
40548         New module 'uninorm/filter'.
40549         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
40550         uninorm_filter_flush, uninorm_filter_free): New declarations.
40551         * lib/uninorm/uninorm-filter.c: New file.
40552         * modules/uninorm/filter: New file.
40553
40554 2009-02-21  Bruno Haible  <bruno@clisp.org>
40555
40556         Tests for module 'uninorm/nfkc'.
40557         * tests/uninorm/test-nfkc.c: New file.
40558         * tests/uninorm/test-u8-nfkc.c: New file.
40559         * tests/uninorm/test-u16-nfkc.c: New file.
40560         * tests/uninorm/test-u32-nfkc.c: New file.
40561         * tests/uninorm/test-u32-nfkc-big.sh: New file.
40562         * tests/uninorm/test-u32-nfkc-big.c: New file.
40563         * modules/uninorm/nfkc-tests: New file.
40564
40565         New module 'uninorm/nfkc'.
40566         * lib/uninorm/nfkc.c: New file.
40567         * modules/uninorm/nfkc: New file.
40568
40569         Tests for module 'uninorm/nfkd'.
40570         * tests/uninorm/test-nfkd.c: New file.
40571         * tests/uninorm/test-u8-nfkd.c: New file.
40572         * tests/uninorm/test-u16-nfkd.c: New file.
40573         * tests/uninorm/test-u32-nfkd.c: New file.
40574         * tests/uninorm/test-u32-nfkd-big.sh: New file.
40575         * tests/uninorm/test-u32-nfkd-big.c: New file.
40576         * modules/uninorm/nfkd-tests: New file.
40577
40578         New module 'uninorm/nfkd'.
40579         * lib/uninorm/nfkd.c: New file.
40580         * modules/uninorm/nfkd: New file.
40581
40582         Tests for module 'uninorm/nfc'.
40583         * tests/uninorm/test-nfc.c: New file.
40584         * tests/uninorm/test-u8-nfc.c: New file.
40585         * tests/uninorm/test-u16-nfc.c: New file.
40586         * tests/uninorm/test-u32-nfc.c: New file.
40587         * tests/uninorm/test-u32-nfc-big.sh: New file.
40588         * tests/uninorm/test-u32-nfc-big.c: New file.
40589         * modules/uninorm/nfc-tests: New file.
40590
40591         New module 'uninorm/nfc'.
40592         * lib/uninorm/nfc.c: New file.
40593         * modules/uninorm/nfc: New file.
40594
40595         Tests for module 'uninorm/nfd'.
40596         * tests/uninorm/test-nfd.c: New file.
40597         * tests/uninorm/test-u8-nfd.c: New file.
40598         * tests/uninorm/test-u16-nfd.c: New file.
40599         * tests/uninorm/test-u32-nfd.c: New file.
40600         * tests/uninorm/test-u32-nfd-big.sh: New file.
40601         * tests/uninorm/test-u32-nfd-big.c: New file.
40602         * tests/uninorm/test-u32-normalize-big.h: New file.
40603         * tests/uninorm/test-u32-normalize-big.c: New file.
40604         * tests/uninorm/NormalizationTest.txt: New file, created from
40605         Unicode 5.1.0 NormalizationTest.txt.
40606         * modules/uninorm/nfd-tests: New file.
40607
40608         New module 'uninorm/nfd'.
40609         * lib/uninorm/nfd.c: New file.
40610         * modules/uninorm/nfd: New file.
40611
40612         New module 'uninorm/u32-normalize'.
40613         * lib/uninorm/u32-normalize.c: New file.
40614         * modules/uninorm/u32-normalize: New file.
40615
40616         New module 'uninorm/u16-normalize'.
40617         * lib/uninorm/u16-normalize.c: New file.
40618         * modules/uninorm/u16-normalize: New file.
40619
40620         New module 'uninorm/u8-normalize'.
40621         * lib/uninorm/u8-normalize.c: New file.
40622         * lib/uninorm/normalize-internal.h: New file.
40623         * lib/uninorm/u-normalize-internal.h: New file.
40624         * modules/uninorm/u8-normalize: New file.
40625
40626         New module 'uninorm/decompose-internal'.
40627         * lib/uninorm/decompose-internal.c: New file.
40628         * modules/uninorm/decompose-internal: New file.
40629
40630         Tests for module 'uninorm/composition'.
40631         * tests/uninorm/test-composition.c: New file.
40632         * modules/uninorm/composition-tests: New file.
40633
40634         New module 'uninorm/composition'.
40635         * lib/uninorm/composition.c: New file.
40636         * lib/uninorm/composition-table.gperf: New file, generated by
40637         gen-uni-tables.
40638         * modules/uninorm/composition: New file.
40639
40640         Tests for module 'uninorm/compat-decomposition'.
40641         * tests/uninorm/test-compat-decomposition.c: New file.
40642         * modules/uninorm/compat-decomposition-tests: New file.
40643
40644         New module 'uninorm/compat-decomposition'.
40645         * lib/uninorm/decompose-internal.h: New file.
40646         * lib/uninorm/compat-decomposition.c: New file.
40647         * modules/uninorm/compat-decomposition: New file.
40648
40649         Tests for module 'uninorm/canonical-decomposition'.
40650         * tests/uninorm/test-canonical-decomposition.c: New file.
40651         * modules/uninorm/canonical-decomposition-tests: New file.
40652
40653         New module 'uninorm/canonical-decomposition'.
40654         * lib/uninorm/canonical-decomposition.c: New file.
40655         * modules/uninorm/canonical-decomposition: New file.
40656
40657         Tests for module 'uninorm/decomposition'.
40658         * tests/uninorm/test-decomposition.c: New file.
40659         * modules/uninorm/decomposition-tests: New file.
40660
40661         New module 'uninorm/decomposition'.
40662         * lib/uninorm/decomposition.c: New file.
40663         * modules/uninorm/decomposition: New file.
40664
40665         New module 'uninorm/decomposition-table'.
40666         * lib/uninorm/decomposition-table.h: New file.
40667         * lib/uninorm/decomposition-table.c: New file.
40668         * lib/uninorm/decomposition-table1.h: New file, generated by
40669         gen-uni-tables.
40670         * lib/uninorm/decomposition-table2.h: New file, generated by
40671         gen-uni-tables.
40672         * modules/uninorm/decomposition-table: New file.
40673
40674         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
40675         (UC_DECOMP_*): New enumeration items.
40676         (get_decomposition): New function.
40677         (struct decomp_table): New type.
40678         (output_decomposition, output_decomposition_tables): New functions.
40679         (unicode_composition_exclusions): New variable.
40680         (fill_composition_exclusions, debug_output_composition_tables): New
40681         functions.
40682         (main): Accept one more argument. Invoke fill_composition_exclusions.
40683         Output decomposition and composition tables.
40684
40685         New module 'uninorm/base'.
40686         * lib/uninorm.h: New file.
40687         * lib/unictype.h: Update comment.
40688         * modules/uninorm/base: New file.
40689
40690 2009-02-21  David Lutterkort  <lutter@redhat.com>
40691
40692         Tests for module 'safe-alloc'.
40693         * tests/test-safe-alloc.c: New file.
40694         * modules/safe-alloc-tests: New file.
40695
40696         New module 'safe-alloc'.
40697         * lib/safe-alloc.h: New file.
40698         * lib/safe-alloc.c: New file.
40699         * m4/safe-alloc.m4: New file.
40700         * modules/safe-alloc: New file.
40701         * doc/safe-alloc.texi: New file.
40702         * doc/gnulib.texi: Include it.
40703         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
40704         safe-alloc.
40705
40706 2009-02-18  Bruno Haible  <bruno@clisp.org>
40707
40708         Fix link error on non-glibc systems.
40709         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
40710         variable.
40711         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
40712
40713 2009-02-18  Jim Meyering  <meyering@redhat.com>
40714
40715         fts: avoid used-uninitialized error due to recent change
40716         * lib/fts.c (fts_read): Guard uses of the new member,
40717         parent->fts_n_dirs_remaining, since it's not relevant for
40718         the parent of a directory specified on the command-line.
40719
40720 2009-02-17  James Youngman  <jay@gnu.org>
40721             Bruno Haible  <bruno@clisp.org>
40722
40723         * m4/include_next.m4: Reformulate comment.
40724
40725 2009-02-16  Jim Meyering  <meyering@redhat.com>
40726
40727         fts: add #if guards so that the fts_lgpl module still builds
40728         * lib/fts.c: Guard just-added hash-table-using parts with
40729         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
40730         Reported by Simon Josefsson.
40731
40732 2009-02-15  Bruno Haible  <bruno@clisp.org>
40733
40734         * modules/array-mergesort-tests: New file.
40735         * tests/test-array-mergesort.c: New file.
40736
40737         New module 'array-mergesort'.
40738         * modules/array-mergesort: New file.
40739         * lib/array-mergesort.h: New file.
40740
40741 2009-02-15  Bruno Haible  <bruno@clisp.org>
40742
40743         Fix 2009-02-07 commit.
40744         * lib/gen-uni-tables.c (output_predicate, output_category,
40745         output_combclass, output_bidi_category, output_decimal_digit,
40746         output_digit, output_numeric, output_mirror, output_scripts,
40747         output_ident_category, output_simple_mapping): Fix format directives.
40748         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
40749
40750 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
40751
40752         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
40753         fixes are available from IBM.
40754
40755 2009-02-13  Jim Meyering  <meyering@redhat.com>
40756
40757         fts: arrange not to stat non-directories in more cases
40758         This makes GNU find (when it doesn't need to stat each file)
40759         *much* more efficient at traversing reiserfs file systems.
40760         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
40761         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
40762         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
40763         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
40764         (leaf_optimization_applies): New function.
40765         (LCO_hash, LCO_compare): New helper functions.
40766         (link_count_optimize_ok): New function.
40767         (fts_stat): Initialize new member (if dir).
40768         (fts_read): Decrement parent's fts_n_dirs_remaining count if
40769         we've just stat'ed a directory.  Skip the stat call when possible.
40770         ---
40771         Note this AFS-related exchange:
40772         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
40773         and note find's pioctl call in find/fstype.c.
40774         But that is necessary only if you want to enable the
40775         optimization for AFS, and for now, I don't.
40776
40777         fts: move a function definition "up" (no semantic change)
40778         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
40779         "up" to precede upcoming use of a related function.
40780
40781 2009-02-11  Jim Meyering  <meyering@redhat.com>
40782
40783         fts: correct internal computation of nlinks (optimization-related)
40784         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
40785         whether the current entry is a directory, so don't test it.
40786
40787 2009-02-10  Bruno Haible  <bruno@clisp.org>
40788
40789         Tests for module 'uniwbrk/ulc-wordbreaks'.
40790         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
40791         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
40792         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
40793
40794         Tests for module 'uniwbrk/u32-wordbreaks'.
40795         * modules/uniwbrk/u32-wordbreaks-tests: New file.
40796         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
40797
40798         Tests for module 'uniwbrk/u16-wordbreaks'.
40799         * modules/uniwbrk/u16-wordbreaks-tests: New file.
40800         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
40801
40802         Tests for module 'uniwbrk/u8-wordbreaks'.
40803         * modules/uniwbrk/u8-wordbreaks-tests: New file.
40804         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
40805
40806 2009-02-10  Bruno Haible  <bruno@clisp.org>
40807
40808         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
40809         property.
40810         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
40811         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
40812         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
40813
40814 2009-02-10  Simon Josefsson  <simon@josefsson.org>
40815
40816         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
40817         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
40818
40819 2009-02-10  Bruno Haible  <bruno@clisp.org>
40820
40821         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
40822         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
40823         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
40824         * lib/unilbrk/u8-possible-linebreaks.c: Update.
40825         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
40826         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
40827
40828 2009-02-09  Simon Josefsson  <simon@josefsson.org>
40829
40830         * lib/sockets.h (gl_fd_to_handle): New function.
40831
40832         * tests/test-sockets.c: Call gl_fd_to_handle.
40833
40834 2009-02-09  Bruno Haible  <bruno@clisp.org>
40835
40836         * doc/havelib.texi: Document the conventions on bi-arch systems.
40837
40838 2009-02-08  Bruno Haible  <bruno@clisp.org>
40839
40840         Document the AC_LIB_LINKFLAGS macro.
40841         * doc/havelib.texi: New file, mostly written on 2005-05-24.
40842         * doc/gnulib.texi: Include it.
40843
40844 2009-02-08  Bruno Haible  <bruno@clisp.org>
40845
40846         Fix wrong order of sections, compared to TOC.
40847         * doc/gnulib.texi: Include relocatable-maint.texi after the
40848         "Regular expressions" node, not before.
40849
40850 2009-02-08  Bruno Haible  <bruno@clisp.org>
40851
40852         Tests for module 'unicase/totitle'.
40853         * modules/unicase/totitle-tests: New file.
40854
40855         Tests for module 'unicase/tolower'.
40856         * modules/unicase/tolower-tests: New file.
40857
40858         Tests for module 'unicase/toupper'.
40859         * modules/unicase/toupper-tests: New file.
40860         * tests/unicase/test-mapping-part1.h: New file.
40861         * tests/unicase/test-mapping-part2.h: New file.
40862
40863         New module 'unicase/totitle'.
40864         * modules/unicase/totitle: New file.
40865         * lib/unicase/totitle.c: New file.
40866
40867         New module 'unicase/tolower'.
40868         * modules/unicase/tolower: New file.
40869         * lib/unicase/tolower.c: New file.
40870
40871         New module 'unicase/toupper'.
40872         * modules/unicase/toupper: New file.
40873         * lib/unicase/toupper.c: New file.
40874         * lib/unicase/simple-mapping.h: New file.
40875
40876         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
40877         (mapping_table): New structure.
40878         (output_simple_mapping): New function.
40879         (main): Invoke output_simple_mapping_test and output_simple_mapping.
40880         * modules/gen-uni-tables (Description): Update.
40881         * lib/unicase/toupper.h: New file, automatically generated by
40882         gen-uni-tables.
40883         * lib/unicase/tolower.h: New file, automatically generated by
40884         gen-uni-tables.
40885         * lib/unicase/totitle.h: New file, automatically generated by
40886         gen-uni-tables.
40887         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
40888         gen-uni-tables.
40889         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
40890         gen-uni-tables.
40891         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
40892         gen-uni-tables.
40893
40894         New module 'unicase/base'.
40895         * modules/unicase/base: New file.
40896         * lib/unicase.h: New file.
40897
40898 2009-02-08  Bruno Haible  <bruno@clisp.org>
40899
40900         New module 'uniwbrk/ulc-wordbreaks'.
40901         * modules/uniwbrk/ulc-wordbreaks: New file.
40902         * lib/uniwbrk/ulc-wordbreaks.c: New file.
40903
40904         New module 'uniwbrk/u32-wordbreaks'.
40905         * modules/uniwbrk/u32-wordbreaks: New file.
40906         * lib/uniwbrk/u32-wordbreaks.c: New file.
40907
40908         New module 'uniwbrk/u16-wordbreaks'.
40909         * modules/uniwbrk/u16-wordbreaks: New file.
40910         * lib/uniwbrk/u16-wordbreaks.c: New file.
40911
40912         New module 'uniwbrk/u8-wordbreaks'.
40913         * modules/uniwbrk/u8-wordbreaks: New file.
40914         * lib/uniwbrk/u8-wordbreaks.c: New file.
40915         * lib/uniwbrk/u-wordbreaks.h: New file.
40916
40917         New module 'uniwbrk/table'.
40918         * modules/uniwbrk/table: New file.
40919         * lib/uniwbrk/wbrktable.h: New file.
40920         * lib/uniwbrk/wbrktable.c: New file.
40921
40922         New module 'uniwbrk/wordbreak-property'.
40923         * modules/uniwbrk/wordbreak-property: New file.
40924         * lib/uniwbrk/wordbreak-property.c: New file.
40925
40926         * lib/gen-uni-tables.c (WBP_*): New enum items.
40927         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
40928         (unicode_org_wbp): New variable.
40929         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
40930         New functions.
40931         (wbp_table): New structure.
40932         (output_wbp, output_wbrk_tables): New functions.
40933         (main): Accept additional argument. Invoke fill_org_wbp,
40934         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
40935         output_wbrk_tables.
40936         * modules/gen-uni-tables (Description): Update.
40937         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
40938         gen-uni-tables.
40939
40940         New module 'uniwbrk/base'.
40941         * modules/uniwbrk/base: New file.
40942         * lib/uniwbrk.h: New file.
40943
40944 2009-02-08  Bruno Haible  <bruno@clisp.org>
40945
40946         Update to Unicode 5.1.0.
40947         * lib/gen-uni-tables.c (is_property_alphabetic): Include
40948         U+2185..U+2188.
40949         (is_property_default_ignorable_code_point): Don't include characters
40950         of category Cc or Cs and not-a-characters.
40951         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
40952         U+0D79, U+109E, U+109F, U+A60C.
40953         * lib/unictype/bidi_of.h: Regenerated.
40954         * lib/unictype/blocks.h: Regenerated.
40955         * lib/unictype/categ_C.h: Regenerated.
40956         * lib/unictype/categ_Cf.h: Regenerated.
40957         * lib/unictype/categ_Cn.h: Regenerated.
40958         * lib/unictype/categ_L.h: Regenerated.
40959         * lib/unictype/categ_Ll.h: Regenerated.
40960         * lib/unictype/categ_Lm.h: Regenerated.
40961         * lib/unictype/categ_Lo.h: Regenerated.
40962         * lib/unictype/categ_Lu.h: Regenerated.
40963         * lib/unictype/categ_M.h: Regenerated.
40964         * lib/unictype/categ_Mc.h: Regenerated.
40965         * lib/unictype/categ_Me.h: Regenerated.
40966         * lib/unictype/categ_Mn.h: Regenerated.
40967         * lib/unictype/categ_N.h: Regenerated.
40968         * lib/unictype/categ_Nd.h: Regenerated.
40969         * lib/unictype/categ_Nl.h: Regenerated.
40970         * lib/unictype/categ_No.h: Regenerated.
40971         * lib/unictype/categ_P.h: Regenerated.
40972         * lib/unictype/categ_Pd.h: Regenerated.
40973         * lib/unictype/categ_Pe.h: Regenerated.
40974         * lib/unictype/categ_Pf.h: Regenerated.
40975         * lib/unictype/categ_Pi.h: Regenerated.
40976         * lib/unictype/categ_Po.h: Regenerated.
40977         * lib/unictype/categ_Ps.h: Regenerated.
40978         * lib/unictype/categ_S.h: Regenerated.
40979         * lib/unictype/categ_Sk.h: Regenerated.
40980         * lib/unictype/categ_Sm.h: Regenerated.
40981         * lib/unictype/categ_So.h: Regenerated.
40982         * lib/unictype/categ_of.h: Regenerated.
40983         * lib/unictype/combining.h: Regenerated.
40984         * lib/unictype/ctype_alnum.h: Regenerated.
40985         * lib/unictype/ctype_alpha.h: Regenerated.
40986         * lib/unictype/ctype_graph.h: Regenerated.
40987         * lib/unictype/ctype_lower.h: Regenerated.
40988         * lib/unictype/ctype_print.h: Regenerated.
40989         * lib/unictype/ctype_punct.h: Regenerated.
40990         * lib/unictype/ctype_upper.h: Regenerated.
40991         * lib/unictype/decdigit.h: Regenerated.
40992         * lib/unictype/digit.h: Regenerated.
40993         * lib/unictype/mirror.h: Regenerated.
40994         * lib/unictype/numeric.h: Regenerated.
40995         * lib/unictype/pr_alphabetic.h: Regenerated.
40996         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
40997         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
40998         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
40999         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
41000         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
41001         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
41002         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
41003         * lib/unictype/pr_combining.h: Regenerated.
41004         * lib/unictype/pr_dash.h: Regenerated.
41005         * lib/unictype/pr_decimal_digit.h: Regenerated.
41006         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
41007         * lib/unictype/pr_deprecated.h: Regenerated.
41008         * lib/unictype/pr_diacritic.h: Regenerated.
41009         * lib/unictype/pr_extender.h: Regenerated.
41010         * lib/unictype/pr_format_control.h: Regenerated.
41011         * lib/unictype/pr_grapheme_base.h: Regenerated.
41012         * lib/unictype/pr_grapheme_extend.h: Regenerated.
41013         * lib/unictype/pr_grapheme_link.h: Regenerated.
41014         * lib/unictype/pr_id_continue.h: Regenerated.
41015         * lib/unictype/pr_id_start.h: Regenerated.
41016         * lib/unictype/pr_ideographic.h: Regenerated.
41017         * lib/unictype/pr_ignorable_control.h: Regenerated.
41018         * lib/unictype/pr_lowercase.h: Regenerated.
41019         * lib/unictype/pr_math.h: Regenerated.
41020         * lib/unictype/pr_numeric.h: Regenerated.
41021         * lib/unictype/pr_other_alphabetic.h: Regenerated.
41022         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
41023         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
41024         * lib/unictype/pr_other_id_continue.h: Regenerated.
41025         * lib/unictype/pr_other_lowercase.h: Regenerated.
41026         * lib/unictype/pr_other_math.h: Regenerated.
41027         * lib/unictype/pr_punctuation.h: Regenerated.
41028         * lib/unictype/pr_sentence_terminal.h: Regenerated.
41029         * lib/unictype/pr_soft_dotted.h: Regenerated.
41030         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
41031         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
41032         * lib/unictype/pr_unified_ideograph.h: Regenerated.
41033         * lib/unictype/pr_uppercase.h: Regenerated.
41034         * lib/unictype/pr_xid_continue.h: Regenerated.
41035         * lib/unictype/pr_xid_start.h: Regenerated.
41036         * lib/unictype/pr_zero_width.h: Regenerated.
41037         * lib/unictype/scripts.h: Regenerated.
41038         * lib/unictype/scripts_byname.gperf: Regenerated.
41039         * lib/unictype/sy_java_ident.h: Regenerated.
41040         * lib/unilbrk/lbrkprop1.h: Regenerated.
41041         * lib/unilbrk/lbrkprop2.h: Regenerated.
41042         * tests/unictype/test-categ_C.c: Regenerated.
41043         * tests/unictype/test-categ_Cf.c: Regenerated.
41044         * tests/unictype/test-categ_Cn.c: Regenerated.
41045         * tests/unictype/test-categ_L.c: Regenerated.
41046         * tests/unictype/test-categ_Ll.c: Regenerated.
41047         * tests/unictype/test-categ_Lm.c: Regenerated.
41048         * tests/unictype/test-categ_Lo.c: Regenerated.
41049         * tests/unictype/test-categ_Lu.c: Regenerated.
41050         * tests/unictype/test-categ_M.c: Regenerated.
41051         * tests/unictype/test-categ_Mc.c: Regenerated.
41052         * tests/unictype/test-categ_Me.c: Regenerated.
41053         * tests/unictype/test-categ_Mn.c: Regenerated.
41054         * tests/unictype/test-categ_N.c: Regenerated.
41055         * tests/unictype/test-categ_Nd.c: Regenerated.
41056         * tests/unictype/test-categ_Nl.c: Regenerated.
41057         * tests/unictype/test-categ_No.c: Regenerated.
41058         * tests/unictype/test-categ_P.c: Regenerated.
41059         * tests/unictype/test-categ_Pd.c: Regenerated.
41060         * tests/unictype/test-categ_Pe.c: Regenerated.
41061         * tests/unictype/test-categ_Pf.c: Regenerated.
41062         * tests/unictype/test-categ_Pi.c: Regenerated.
41063         * tests/unictype/test-categ_Po.c: Regenerated.
41064         * tests/unictype/test-categ_Ps.c: Regenerated.
41065         * tests/unictype/test-categ_S.c: Regenerated.
41066         * tests/unictype/test-categ_Sk.c: Regenerated.
41067         * tests/unictype/test-categ_Sm.c: Regenerated.
41068         * tests/unictype/test-categ_So.c: Regenerated.
41069         * tests/unictype/test-ctype_alnum.c: Regenerated.
41070         * tests/unictype/test-ctype_alpha.c: Regenerated.
41071         * tests/unictype/test-ctype_graph.c: Regenerated.
41072         * tests/unictype/test-ctype_lower.c: Regenerated.
41073         * tests/unictype/test-ctype_print.c: Regenerated.
41074         * tests/unictype/test-ctype_punct.c: Regenerated.
41075         * tests/unictype/test-ctype_upper.c: Regenerated.
41076         * tests/unictype/test-decdigit.h: Regenerated.
41077         * tests/unictype/test-digit.h: Regenerated.
41078         * tests/unictype/test-numeric.h: Regenerated.
41079         * tests/unictype/test-pr_alphabetic.c: Regenerated.
41080         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
41081         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
41082         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
41083         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
41084         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
41085         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
41086         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
41087         * tests/unictype/test-pr_combining.c: Regenerated.
41088         * tests/unictype/test-pr_dash.c: Regenerated.
41089         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
41090         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
41091         * tests/unictype/test-pr_deprecated.c: Regenerated.
41092         * tests/unictype/test-pr_diacritic.c: Regenerated.
41093         * tests/unictype/test-pr_extender.c: Regenerated.
41094         * tests/unictype/test-pr_format_control.c: Regenerated.
41095         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
41096         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
41097         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
41098         * tests/unictype/test-pr_id_continue.c: Regenerated.
41099         * tests/unictype/test-pr_id_start.c: Regenerated.
41100         * tests/unictype/test-pr_ideographic.c: Regenerated.
41101         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
41102         * tests/unictype/test-pr_lowercase.c: Regenerated.
41103         * tests/unictype/test-pr_math.c: Regenerated.
41104         * tests/unictype/test-pr_numeric.c: Regenerated.
41105         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
41106         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
41107         Regenerated.
41108         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
41109         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
41110         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
41111         * tests/unictype/test-pr_other_math.c: Regenerated.
41112         * tests/unictype/test-pr_punctuation.c: Regenerated.
41113         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
41114         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
41115         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
41116         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
41117         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
41118         * tests/unictype/test-pr_uppercase.c: Regenerated.
41119         * tests/unictype/test-pr_xid_continue.c: Regenerated.
41120         * tests/unictype/test-pr_xid_start.c: Regenerated.
41121         * tests/unictype/test-pr_zero_width.c: Regenerated.
41122
41123         Update to Unicode 5.1.0.
41124         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
41125         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
41126         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
41127         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
41128         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
41129         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
41130         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
41131         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
41132         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
41133         (nonspacing_table_ind): Update.
41134         * tests/uniwidth/test-uc_width2.sh: Update expected result.
41135
41136         Update to Unicode 5.1.0.
41137         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
41138         code transform.
41139         * lib/uniname/uniname.c (unicode_character_name,
41140         unicode_name_character): Add the range 0x1Fxxx to the code transform.
41141         * lib/uniname/uninames.h: Regenerated.
41142         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
41143
41144 2009-02-07  Bruno Haible  <bruno@clisp.org>
41145
41146         Merge gen-ctype and gen-lbrk into a single program.
41147         * lib/gen-uni-tables.c: New file, incorporating
41148         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
41149         Add directory prefixes to the names of the generated files.
41150         * lib/unictype/gen-ctype.c: Remove file.
41151         * lib/unilbrk/gen-lbrk.c: Remove file.
41152         * modules/gen-uni-tables: New file.
41153         * modules/unictype/gen-ctype: Remove file.
41154         * modules/unilbrk/gen-lbrk: Remove file.
41155
41156 2009-02-07  Bruno Haible  <bruno@clisp.org>
41157
41158         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
41159
41160         New module 'unistr/u32-strcoll'.
41161         * modules/unistr/u32-strcoll: New file.
41162         * lib/unistr/u32-strcoll.c: New file.
41163
41164         New module 'unistr/u16-strcoll'.
41165         * modules/unistr/u16-strcoll: New file.
41166         * lib/unistr/u16-strcoll.c: New file.
41167
41168         New module 'unistr/u8-strcoll'.
41169         * modules/unistr/u8-strcoll: New file.
41170         * lib/unistr/u8-strcoll.c: New file.
41171         * lib/unistr/u-strcoll.h: New file.
41172
41173 2009-02-07  Bruno Haible  <bruno@clisp.org>
41174
41175         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
41176         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
41177         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
41178         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
41179         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
41180         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
41181
41182 2009-02-07  Bruno Haible  <bruno@clisp.org>
41183
41184         Make 64-bit clean.
41185         * lib/unictype/gen-ctype.c (output_predicate, output_category,
41186         output_combclass, output_bidi_category, output_decimal_digit,
41187         output_digit, output_numeric, output_mirror, output_scripts,
41188         output_ident_category): Use proper width specifier in format strings.
41189
41190 2009-02-07  Bruno Haible  <bruno@clisp.org>
41191
41192         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
41193         failure behaviour.
41194
41195 2009-02-07  Jim Meyering  <meyering@redhat.com>
41196
41197         regex: avoid compilation failure with upcoming gcc-4.4
41198         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
41199         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
41200         "... error: integer overflow in preprocessor expression".
41201
41202 2009-02-05  Ben Pfaff  <blp@gnu.org>
41203
41204         Fix link errors on Windows when close module is used.
41205         * modules/close: Add $(LIB_CLOSE) to Link section.
41206         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
41207         $(LIB_CLOSE) on Windows.
41208
41209 2009-02-05  Jim Meyering  <meyering@redhat.com>
41210
41211         still avoid unused-parameter warnings, but do it cleanly
41212         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
41213         (get_fs_usage): Cast to void instead.
41214         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
41215         (dev_from_mount_options, read_file_system_list): Cast to void.
41216         Prompted by Bruno Haible.
41217
41218 2009-02-04  Jim Meyering  <meyering@redhat.com>
41219
41220         fsusage.c: correct copyright year
41221         * lib/fsusage.c: Reflect year in which the change is pushed into
41222
41223         avoid misc. warnings
41224         * lib/fsusage.c (UNUSED_PARAM): Define.
41225         (get_fs_usage): Mark parameter "disk" as unused.
41226         * lib/getugroups.c (getgrent): Use "void" in prototype.
41227         * lib/mountlist.c: Mark unused parameters.
41228         (read_file_system_list): Declare a local with "const".
41229         * lib/nanosleep.c (getnow): Declare static.
41230         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
41231
41232         dirfd: set errno upon failure
41233         * lib/dirfd.c: Include <errno.h>.
41234         Set errno to ENOTSUP when returning -1.
41235         * modules/dirfd (Depends-on): Add errno.
41236         Suggested by John Kodis <kodis@comcast.net>.
41237
41238 2009-02-01  Bruno Haible  <bruno@clisp.org>
41239
41240         Don't assume sizeof (long) >= sizeof (void *).
41241         * lib/memcmp.c: Include stdint.h.
41242         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
41243         srcp2 to 'const byte *'.
41244         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
41245         types to uintptr_t.
41246         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
41247         * modules/memcmp (Depends-on): Add stdint.
41248         Reported by Ozkan Sezer <sezeroz@gmail.com>.
41249
41250 2009-01-30  Eric Blake  <ebb9@byu.net>
41251
41252         fix more require-before-expand issues
41253         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
41254         expand, AC_PROG_AWK.
41255         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
41256
41257 2009-01-28  Eric Blake  <ebb9@byu.net>
41258
41259         version-etc: use consistent URL formatting
41260         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
41261         Improve formatting.  Use fputs for string without %.
41262
41263 2009-01-28  Jim Meyering  <meyering@redhat.com>
41264
41265         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
41266         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
41267         "underquoted definition of NAME" from autoconf-2.59.
41268
41269 2009-01-28  Bruno Haible  <bruno@clisp.org>
41270
41271         * doc/gnulib.texi: Add "Obsolete modules" to index.
41272
41273 2009-01-28  Jim Meyering  <meyering@redhat.com>
41274
41275         useless-if-before-free: recognize more variants
41276         * build-aux/useless-if-before-free: Also recognize e.g.,
41277         if (NULL != p) free (p);
41278
41279 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
41280
41281         test-getaddrinfo: skip (don't fail) this test when there's no network
41282         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
41283         on the presumption that it means you lack network access.
41284
41285 2009-01-26  Jim Meyering  <meyering@redhat.com>
41286
41287         fflush: avoid warnings on modern systems
41288         * lib/fflush.c (rpl_fflush): Move declarations of locals,
41289         pos and result, into scopes where they're used.
41290
41291 2009-01-26  Eric Blake  <ebb9@byu.net>
41292
41293         Silence warning reintroduced by recent extensions patch.
41294         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
41295         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
41296         autoconf.
41297
41298         Backport improved autoconf semantics of AC_DEFUN_ONCE.
41299         * m4/00gnulib.m4: New file.
41300         * gnulib-tool (func_get_filelist): Always use it.
41301         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
41302         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
41303
41304 2009-01-25  Bruno Haible  <bruno@clisp.org>
41305
41306         Make test-quotearg work on MacOS X and AIX.
41307         * tests/test-quotearg.sh: New file.
41308         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
41309         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
41310         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
41311         include <libintl.h>.
41312         (fake_locale): Remove variable.
41313         (gettext, dgettext, dcgettext): Remove functions.
41314         (main): Instead of setting a fake locale, set a real locale. Call
41315         textdomain and bindtextdomain.
41316         * modules/quotearg-tests (Files): Add the new files.
41317         (Depends-on): Add gettext, setenv, unsetenv.
41318         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
41319         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
41320         Augment TESTS_ENVIRONMENT.
41321
41322 2009-01-25  Bruno Haible  <bruno@clisp.org>
41323
41324         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
41325         fr_FR.ISO8859-1 locale on MacOS X.
41326         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
41327         ja_JP.eucJP locale on MacOS X.
41328         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
41329         zh_CN.GB18030 locale on MacOS X.
41330
41331 2009-01-25  Bruno Haible  <bruno@clisp.org>
41332
41333         Avoid link errors on MacOS X 10.3.
41334         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
41335         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
41336
41337 2009-01-25  Bruno Haible  <bruno@clisp.org>
41338
41339         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
41340         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
41341         * modules/pipe (Files): Remove m4/posix_spawn.m4.
41342         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
41343         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
41344         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
41345         posix_spawnattr_init, posix_spawnattr_setsigmask,
41346         posix_spawnattr_setflags, posix_spawnattr_destroy.
41347
41348         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
41349         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
41350         * modules/execute (Files): Remove m4/posix_spawn.m4.
41351         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
41352         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
41353         posix_spawnattr_init, posix_spawnattr_setsigmask,
41354         posix_spawnattr_setflags, posix_spawnattr_destroy.
41355
41356 2009-01-25  Bruno Haible  <bruno@clisp.org>
41357
41358         * lib/glthread/threadlib.c: Include <stdlib.h>.
41359
41360 2009-01-25  Bruno Haible  <bruno@clisp.org>
41361
41362         * lib/glthread/threadlib.c (dummy): New declaration.
41363
41364 2009-01-25  Bruno Haible  <bruno@clisp.org>
41365
41366         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
41367         multibyte characters also for the GB18030 encoding. Don't crash when
41368         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
41369
41370 2009-01-25  Bruno Haible  <bruno@clisp.org>
41371
41372         Avoid redefining 'struct random_data' on OSF/1 5.1.
41373         * lib/stdlib.in.h: Include <random.h> if it exists.
41374         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
41375         HAVE_RANDOM_H. Include <random.h> when testing whether
41376         'struct random_data' exists.
41377         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
41378
41379 2009-01-25  Bruno Haible  <bruno@clisp.org>
41380
41381         Don't install charset.alias on MacOS X >= 10.3.
41382         * lib/localcharset.c (DARWIN7): New macro.
41383         (get_charset_aliases): Hardcode the result for Darwin7.
41384         * modules/localcharset (install-exec-local): Don't install
41385         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
41386
41387 2009-01-25  Bruno Haible  <bruno@clisp.org>
41388
41389         Don't install charset.alias on mingw and Cygwin.
41390         * modules/localcharset (install-exec-local): Don't install
41391         charset.alias on mingw and Cygwin, if the file does not yet exist.
41392         The result for these platforms is hardcoded in localcharset.c.
41393
41394 2009-01-25  Bruno Haible  <bruno@clisp.org>
41395
41396         Make it possible again to use AC_GNU_SOURCE together with gnulib.
41397         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
41398         before requiring AC_USE_SYSTEM_EXTENSIONS.
41399
41400 2009-01-25  Jim Meyering  <meyering@redhat.com>
41401
41402         c-strtod: avoid warnings
41403         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
41404         "assignment discards qualifiers from pointer target type" warnings.
41405
41406 2009-01-24  Bruno Haible  <bruno@clisp.org>
41407
41408         Add support for non-UTF-8 locales on MacOS X.
41409         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
41410         canonical encodings. For Darwin 7 and newer, don't map traditional
41411         encodings to UTF-8.
41412         Reported by Vincent Lefevre <vincent@vinc17.org>
41413         at <http://savannah.gnu.org/bugs/?25235>.
41414
41415 2009-01-24  Bruno Haible  <bruno@clisp.org>
41416
41417         * doc/gnulib.texi (Obsolete modules): New section.
41418         Reported by Mike Frysinger <vapier@gentoo.org>.
41419
41420 2009-01-24  Bruno Haible  <bruno@clisp.org>
41421
41422         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
41423         (%.dvi): New rule.
41424
41425 2009-01-24  Bruno Haible  <bruno@clisp.org>
41426
41427         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
41428         Reported by Eric Blake.
41429
41430 2009-01-24  Bruno Haible  <bruno@clisp.org>
41431
41432         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
41433         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
41434         Reported by Gary V. Vaughan <gary@gnu.org>.
41435
41436 2009-01-24  Bruno Haible  <bruno@clisp.org>
41437
41438         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
41439
41440 2009-01-23  Bruno Haible  <bruno@clisp.org>
41441
41442         Make c-strtod, c-strtold usable in libraries.
41443         * lib/c-strtod.c: Include string.h instead of xalloc.h.
41444         (C_STRTOD): Call strdup instead of xstrdup.
41445         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
41446         * modules/c-strtold (Depends-on): Likewise.
41447         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
41448         * NEWS: Mention the change.
41449         Reported by Michael Gold <mgold@ncf.ca>.
41450
41451 2009-01-23  Jim Meyering  <meyering@redhat.com>
41452
41453         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
41454         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
41455         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
41456
41457 2009-01-23  Simon Josefsson  <simon@josefsson.org>
41458
41459         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
41460         GNU CoreUtils.
41461         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
41462         * modules/version-etc (Description): Update.
41463
41464 2009-01-22  Bruno Haible  <bruno@clisp.org>
41465
41466         Cache the C locale object.
41467         * lib/c-strtod.c (c_locale_cache): New variable.
41468         (c_locale): New function.
41469         (C_STRTOD): Use it, and don't call freelocale.
41470         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
41471         Suggested by Paolo Bonzini.
41472
41473 2009-01-21  Bruno Haible  <bruno@clisp.org>
41474
41475         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
41476         conditions other than overflow.
41477
41478 2009-01-21  Bruno Haible  <bruno@clisp.org>
41479
41480         * lib/c-strtod.c: Include errno.h.
41481         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
41482         value from STRTOD_L and STRTOD.
41483
41484 2009-01-21  Bruno Haible  <bruno@clisp.org>
41485         and Jim Meyering  <meyering@redhat.com>
41486
41487         nanosleep: skip configure test (fail it) for apple universal builds
41488         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
41489         universal builds, assume that nanosleep does not work.
41490         * modules/nanosleep (Depends-on): Add multiarch.
41491
41492         mktime: skip configure test (fail it) for apple universal builds
41493         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
41494         universal builds, assume that mktime does not work.
41495         * modules/mktime (Depends-on): Add multiarch.
41496
41497 2009-01-21  Eric Blake  <ebb9@byu.net>
41498
41499         multiarch: avoid expand-before-require warning
41500         * modules/multiarch (configure.ac): Require, rather than expand,
41501         gl_MULTIARCH.
41502         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
41503         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
41504         enforce that all clients require it.  Partial reversion of
41505         2008-12-29 patch.
41506
41507         error: avoid expand-before-require warning
41508         * modules/errno (configure.ac): Require, rather than expand,
41509         gl_HEADER_ERRNO_H.
41510         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
41511         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
41512         enforce that all clients require it.
41513
41514         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
41515         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
41516         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
41517         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
41518
41519 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
41520
41521         Revert:
41522         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
41523
41524         regex: do not depend on obsolete modules.
41525         * modules/regex: Remove memcmp and memmove.
41526
41527 2009-01-20  Bruno Haible  <bruno@clisp.org>
41528
41529         Make the 'link' module link on Windows NT 4.
41530         * lib/link.c (_WIN32_WINNT): Don't define.
41531         (CreateHardLinkFuncType): New type.
41532         (CreateHardLinkFunc, initialized): New variables.
41533         (initialize): New function.
41534         (link): Invoke CreateHardLink indirectly through the function pointer.
41535
41536 2009-01-20  Bruno Haible  <bruno@clisp.org>
41537
41538         Fix compilation failure on mingw.
41539         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
41540
41541 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
41542
41543         * doc/c-strtod.texi: Mention a couple of restrictions.
41544
41545 2009-01-20  Jim Meyering  <meyering@redhat.com>
41546
41547         gettimeofday: move more declarations out of functions
41548         * lib/gettimeofday.c: Move extern declarations of tzset and
41549         gmtime out of containing functions.  Prompted by Bruno Haible.
41550
41551 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
41552
41553         regex: do not depend on obsolete modules.
41554         * modules/regex: Remove memcmp and memmove.
41555
41556 2009-01-19  Bruno Haible  <bruno@clisp.org>
41557
41558         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
41559         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
41560         gl_BIGENDIAN, not AC_C_BIGENDIAN.
41561         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
41562         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
41563
41564 2009-01-19  Bruno Haible  <bruno@clisp.org>
41565
41566         * tests/test-link.c: Include <errno.h>.
41567         (main): Exit with code 77 when a hard link cannot be created due to
41568         the file system.
41569         * tests/test-link.sh: Skip test when a hard link cannot be created due
41570         to the file system.
41571         Suggested by Eric Blake.
41572
41573 2009-01-19  Martin Lambers  <marlam@marlam.de>
41574
41575         * modules/link-tests: New file.
41576         * tests/test-link.sh: New file.
41577         * tests/test-link.c: New file.
41578
41579 2009-01-19  Eric Blake  <ebb9@byu.net>
41580
41581         doc: mention another function added in cygwin 1.7.0
41582         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
41583         Another new function in cygwin 1.7.
41584
41585 2009-01-19  Bruno Haible  <bruno@clisp.org>
41586
41587         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
41588         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
41589         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
41590         gl_BIGENDIAN, not AC_C_BIGENDIAN.
41591         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
41592         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
41593         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
41594         * m4/md4.m4 (gl_MD4): Likewise.
41595         * m4/md5.m4 (gl_MD5): Likewise.
41596         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
41597         * m4/sha1.m4 (gl_SHA1): Likewise.
41598         * m4/sha256.m4 (gl_SHA256): Likewise.
41599         * m4/sha512.m4 (gl_SHA512): Likewise.
41600
41601 2009-01-19  Bruno Haible  <bruno@clisp.org>
41602
41603         * modules/uniname/uniname-tests (Depends-on): Add progname.
41604         * tests/uniname/test-uninames.c: Include progname.h.
41605         (main): Call set_program_name.
41606
41607         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
41608         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
41609         (main): Call set_program_name.
41610
41611         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
41612         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
41613         (main): Call set_program_name.
41614
41615         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
41616         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
41617         (main): Call set_program_name.
41618
41619         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
41620         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
41621         (main): Call set_program_name.
41622
41623         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
41624         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
41625         (main): Call set_program_name.
41626
41627         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
41628         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
41629         (main): Call set_program_name.
41630
41631         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
41632         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
41633         (main): Call set_program_name.
41634
41635         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
41636         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
41637         (main): Call set_program_name.
41638
41639 2009-01-19  Eric Blake  <ebb9@byu.net>
41640
41641         test-unistd: test previous patch
41642         * tests/test-unistd.c: Test *_FILENO macros.
41643
41644         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
41645         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
41646         Guarantee a definition.
41647         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
41648         * modules/unistd-safer (Depends-on): Add dependency on unistd.
41649         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
41650         * lib/dup-safer.c (STDERR_FILENO): Likewise.
41651         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
41652         Likewise.
41653         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
41654         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
41655         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
41656         Likewise.
41657         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
41658         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
41659         (STDERR_FILENO): Likewise.
41660         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
41661         (STDERR_FILENO): Likewise.
41662         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
41663         (STDERR_FILENO): Likewise.
41664         Reported by Elbert Pol.
41665
41666 2009-01-19  Eric Blake  <ebb9@byu.net>
41667
41668         doc: mention more functions added in cygwin 1.7.0
41669         * doc/posix-functions/abort.texi (abort): Update wording related
41670         to cygwin.
41671         * doc/posix-functions/daylight.texi (daylight): Likewise.
41672         * doc/posix-functions/optarg.texi (optarg): Likewise.
41673         * doc/posix-functions/optarg.texi (opterr): Likewise.
41674         * doc/posix-functions/optarg.texi (optind): Likewise.
41675         * doc/posix-functions/optarg.texi (optopt): Likewise.
41676         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
41677         worked in 1.5.x, and was withdrawn in 1.7.
41678         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
41679         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
41680         cygwin versions.
41681         * doc/posix-functions/perror.texi (perror): Likewise.
41682         * doc/posix-functions/printf.texi (printf): Likewise.
41683         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
41684         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
41685         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
41686         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
41687         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
41688         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
41689         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
41690         Likewise.
41691         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
41692         Likewise.
41693         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
41694         this function.
41695         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
41696         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
41697         Likewise.
41698         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
41699         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
41700         * doc/posix-functions/confstr.texi (confstr): Likewise.
41701         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
41702         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
41703         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
41704         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
41705         * doc/posix-functions/fputws.texi (fputws): Likewise.
41706         * doc/posix-functions/fwide.texi (fwide): Likewise.
41707         * doc/posix-functions/getwc.texi (getwc): Likewise.
41708         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
41709         * doc/posix-functions/putwc.texi (putwc): Likewise.
41710         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
41711         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
41712         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
41713         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
41714         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
41715         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
41716         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
41717         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
41718         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
41719         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
41720         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
41721
41722 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
41723
41724         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
41725         * lib/ioctl.c: Include <sys/ioctl.h>.
41726
41727 2009-01-19  Simon Josefsson  <simon@josefsson.org>
41728
41729         * modules/getdate-tests (Depends-on): Add progname.
41730         * tests/test-getdate.c: Use progname module, to avoid link errors
41731         on non-glibc systems.
41732
41733 2009-01-18  Simon Josefsson  <simon@josefsson.org>
41734
41735         * modules/filenamecat-tests (Depends-on): Add progname.
41736         * modules/fstrcmp-tests (Depends-on): Likewise.
41737
41738         * tests/test-filenamecat.c: Use progname module, to avoid link
41739         errors on non-glibc systems.
41740         * tests/test-fstrcmp.c: Likewise.
41741
41742 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
41743
41744         gettimeofday: avoid warning: nested extern declaration of 'localtime'
41745         * lib/gettimeofday.c: Move extern declaration out of function.
41746
41747 2009-01-18  Bruno Haible  <bruno@clisp.org>
41748
41749         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
41750         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
41751         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
41752
41753 2009-01-18  Bruno Haible  <bruno@clisp.org>
41754
41755         * lib/strftime.c (MEMPCPY): Remove unused macro.
41756         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
41757
41758 2009-01-18  Martin Lambers  <marlam@marlam.de>
41759
41760         New module 'link'.
41761         * lib/unistd.in.h (link): New declaration.
41762         * lib/link.c: New file.
41763         * m4/link.m4: New file.
41764         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
41765         HAVE_LINK.
41766         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
41767         * modules/link: New file.
41768         * doc/posix-functions/link.texi: Mention the new module.
41769
41770 2009-01-18  Bruno Haible  <bruno@clisp.org>
41771
41772         * tests/test-avltree_list.c (main): Call set_program_name.
41773         * tests/test-avltree_oset.c (main): Likewise.
41774         * tests/test-obstack-printf.c: Include progname.h.
41775         (main): Call set_program_name.
41776         * tests/test-quotearg.c: Include progname.h.
41777         (main): Call set_program_name.
41778         * tests/test-xmemdup0.c: Include progname.h.
41779         (main): Call set_program_name.
41780
41781 2009-01-18  Bruno Haible  <bruno@clisp.org>
41782
41783         New module 'alphasort'.
41784         * lib/dirent.in.h (alphasort): New declaration.
41785         * lib/alphasort.c: New file, from glibc with modifications.
41786         * m4/alphasort.m4: New file.
41787         * modules/alphasort: New file.
41788         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
41789         HAVE_ALPHASORT.
41790         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
41791         HAVE_ALPHASORT.
41792         * doc/posix-functions/alphasort.texi: Mention the new module and the
41793         portability problems.
41794
41795 2009-01-18  Bruno Haible  <bruno@clisp.org>
41796
41797         New module 'scandir'.
41798         * lib/dirent.in.h (scandir): New declaration.
41799         * lib/scandir.c: New file, from glibc with modifications.
41800         * m4/scandir.m4: New file.
41801         * modules/scandir: New file.
41802         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
41803         HAVE_SCANDIR.
41804         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
41805         HAVE_SCANDIR.
41806         * doc/posix-functions/scandir.texi: Mention the new module and the
41807         portability problems.
41808
41809 2009-01-17  Bruno Haible  <bruno@clisp.org>
41810
41811         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
41812         Update documentation.
41813         (func_remove_suffix): Escape all dots in the suffix. Update
41814         documentation.
41815         (func_filter_filelist): Update documentation.
41816         Reported by Ralf Wildenhues.
41817
41818 2009-01-17  Bruno Haible  <bruno@clisp.org>
41819
41820         * modules/dprintf-posix-tests: New file.
41821         * tests/test-dprintf-posix.sh: New file.
41822         * tests/test-dprintf-posix.c: New file.
41823
41824         New modules 'dprintf', 'dprintf-posix'.
41825         * lib/stdio.in.h (dprintf): New declaration.
41826         * lib/dprintf.c: New file.
41827         * m4/dprintf.m4: New file.
41828         * m4/dprintf-posix.m4: New file.
41829         * modules/dprintf: New file.
41830         * modules/dprintf-posix: New file.
41831         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
41832         HAVE_DPRINTF, REPLACE_DPRINTF.
41833         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
41834         HAVE_DPRINTF, REPLACE_DPRINTF.
41835         * doc/posix-functions/dprintf.texi: Mention the new modules.
41836
41837 2009-01-17  Bruno Haible  <bruno@clisp.org>
41838
41839         * modules/vdprintf-posix-tests: New file.
41840         * tests/test-vdprintf-posix.sh: New file.
41841         * tests/test-vdprintf-posix.c: New file.
41842
41843         New modules 'vdprintf', 'vdprintf-posix'.
41844         * lib/stdio.in.h (vdprintf): New declaration.
41845         * lib/vdprintf.c: New file.
41846         * m4/vdprintf.m4: New file.
41847         * m4/vdprintf-posix.m4: New file.
41848         * modules/vdprintf: New file.
41849         * modules/vdprintf-posix: New file.
41850         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
41851         HAVE_VDPRINTF, REPLACE_VDPRINTF.
41852         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
41853         HAVE_VDPRINTF, REPLACE_VDPRINTF.
41854         * doc/posix-functions/vdprintf.texi: Mention the new modules.
41855
41856 2009-01-17  Bruno Haible  <bruno@clisp.org>
41857
41858         Fix replacement of fopen on mingw.
41859         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
41860         mingw.
41861
41862 2009-01-17  Bruno Haible  <bruno@clisp.org>
41863
41864         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
41865         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
41866
41867 2009-01-17  Bruno Haible  <bruno@clisp.org>
41868
41869         Avoid test-fflush2.sh failure on mingw.
41870         * tests/test-fflush2.c: Include binary-io.h.
41871         (main): Put standard input into binary mode.
41872         * modules/fflush-tests (Depends-on): Add binary-io.
41873
41874 2009-01-17  Bruno Haible  <bruno@clisp.org>
41875
41876         * lib/wchar.in.h: In another particular situation, include only the
41877         system's <wchar.h> file.
41878         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
41879         Reported by Albert Chin-A-Young <china@thewrittenword.com>
41880         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
41881
41882 2009-01-17  Bruno Haible  <bruno@clisp.org>
41883
41884         Support for stripping executables in --enable-relocatable.
41885         * build-aux/install-reloc: Expect one more argument, or an environment
41886         variable RELOC_STRIP_PROG. If set, strip the destination program and
41887         its wrapper.
41888         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
41889         RELOC_STRIP_PROG.
41890         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
41891         to set RELOCATABLE_STRIP.
41892         * NEWS: Mention the new Makefile requirement.
41893
41894 2009-01-17  Bruno Haible  <bruno@clisp.org>
41895
41896         * build-aux/install-reloc: Remove debugging information left over by
41897         C compiler on MacOS X.
41898
41899 2009-01-17  Bruno Haible  <bruno@clisp.org>
41900
41901         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
41902         * lib/progreloc.c (find_executable): Fix type of pointer passed to
41903         _NSGetExecutablePath.
41904
41905 2009-01-16  Jim Meyering  <meyering@redhat.com>
41906
41907         strerror: avoid warnings about discarding "const"
41908         * lib/strerror.c (rpl_strerror): Instead of returning a const
41909         string from each and every "case", use a variable, and add a single
41910         cast after the switch.
41911
41912 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
41913
41914         * lib/arpa_inet.in.h: Add extern "C" block for C++.
41915
41916 2009-01-16  Bruno Haible  <bruno@clisp.org>
41917
41918         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
41919         array initializer syntax that also works in C++ mode.
41920         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
41921
41922 2009-01-16  Jim Meyering  <meyering@redhat.com>
41923
41924         poll: suppress a warning
41925         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
41926         to ignore "...unsigned expression < 0 is always false" warnings.
41927
41928 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
41929
41930         poll: remove declarations of unused variables
41931         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
41932         sockbuf and optlen.
41933
41934 2009-01-15  Bruno Haible  <bruno@clisp.org>
41935
41936         Make fflush-after-ungetc POSIX compliant on BSD systems.
41937         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
41938         (clear_ungetc_buffer): Implement also for other systems.
41939         (rpl_fflush): On glibc systems, invoke
41940         clear_ungetc_buffer_preserving_position. Otherwise, invoke
41941         clear_ungetc_buffer after fetching the stream's position, not before.
41942
41943 2009-01-15  Bruno Haible  <bruno@clisp.org>
41944
41945         Make fflush-after-ungetc POSIX compliant on glibc systems.
41946         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
41947         after ungetc.
41948         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
41949         (rpl_fflush): On glibc systems, simply call the system's fflush
41950         function after clearing the ungetc buffer.
41951         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
41952         Instead, lseek only to the end of file, then use the system's fseeko
41953         for the rest. On glibc systems, reset the EOF indicator bit.
41954
41955 2009-01-15  Jim Meyering  <meyering@redhat.com>
41956
41957         openmp.m4: revert quote-adding change, for portability to older autoconf
41958         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
41959         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
41960         Simon Josefsson noticed the problem when using autoconf-2.61.
41961
41962 2009-01-15  Bruno Haible  <bruno@clisp.org>
41963
41964         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
41965         * tests/test-fflush2.c (ASSERT): Always fail.
41966         (main): Add two tests for fflush() after ungetc(), taking into account
41967         the Austin Group's clarification.
41968         Suggested by Eric Blake.
41969
41970 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
41971
41972         mktime.m4: remove K&R-style function prototypes
41973         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
41974         for the Sun C++ compiler.
41975
41976 2009-01-14  Bruno Haible  <bruno@clisp.org>
41977
41978         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
41979         while including <wchar.h>.
41980         * lib/wchar.in.h: In two particular situations on HP-UX, include only
41981         the system's <wchar.h> file.
41982         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
41983
41984 2009-01-14  Bruno Haible  <bruno@clisp.org>
41985
41986         * m4/csharp.m4: Don't mention gettext on the serial number line.
41987         * m4/csharpexec.m4: Likewise.
41988         * m4/eaccess.m4: Likewise.
41989         * m4/javaexec.m4: Likewise.
41990         * m4/sig_atomic_t.m4: Likewise.
41991         * m4/tmpdir.m4: Likewise.
41992         * m4/intldir.m4: Bump gettext version.
41993         * m4/lib-ld.m4: Likewise.
41994
41995 2009-01-14  Bruno Haible  <bruno@clisp.org>
41996
41997         * lib/progname.c (set_program_name): Add more comments.
41998         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
41999
42000 2009-01-14  Simon Josefsson  <simon@josefsson.org>
42001
42002         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
42003         were sys/stat.h does not define it.
42004
42005 2009-01-14  Jim Meyering  <meyering@redhat.com>
42006
42007         many *.m4 files: improve m4 quoting
42008         99% of this change was performed by running the following commands:
42009         git ls-files | grep '\.m4$' | xargs perl -pi \
42010           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
42011           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
42012           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
42013           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
42014         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
42015         The remainder were to add Copyright dates, increment serial numbers,
42016         undo some changes in comments, exclude m4/intl.m4, and add quotes
42017         around the "1" in ",1" where the unusual spacing prohibited the
42018         above regexps from doing the job.  For more details, see
42019         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
42020         * m4/acl.m4: Modified.
42021         * m4/afs.m4: Likewise.
42022         * m4/alloca.m4: Likewise.
42023         * m4/argp.m4: Likewise.
42024         * m4/argz.m4: Likewise.
42025         * m4/atexit.m4: Likewise.
42026         * m4/bison-i18n.m4: Likewise.
42027         * m4/bison.m4: Likewise.
42028         * m4/byteswap.m4: Likewise.
42029         * m4/c-stack.m4: Likewise.
42030         * m4/c-strtod.m4: Likewise.
42031         * m4/calloc.m4: Likewise.
42032         * m4/canonicalize-lgpl.m4: Likewise.
42033         * m4/chown.m4: Likewise.
42034         * m4/clock_time.m4: Likewise.
42035         * m4/codeset.m4: Likewise.
42036         * m4/copy-file.m4: Likewise.
42037         * m4/csharp.m4: Likewise.
42038         * m4/csharpcomp.m4: Likewise.
42039         * m4/csharpexec.m4: Likewise.
42040         * m4/d-ino.m4: Likewise.
42041         * m4/d-type.m4: Likewise.
42042         * m4/dirfd.m4: Likewise.
42043         * m4/double-slash-root.m4: Likewise.
42044         * m4/eaccess.m4: Likewise.
42045         * m4/eealloc.m4: Likewise.
42046         * m4/environ.m4: Likewise.
42047         * m4/errno_h.m4: Likewise.
42048         * m4/euidaccess.m4: Likewise.
42049         * m4/execute.m4: Likewise.
42050         * m4/fatal-signal.m4: Likewise.
42051         * m4/fchdir.m4: Likewise.
42052         * m4/fcntl_h.m4: Likewise.
42053         * m4/fileblocks.m4: Likewise.
42054         * m4/filenamecat.m4: Likewise.
42055         * m4/findprog.m4: Likewise.
42056         * m4/flexmember.m4: Likewise.
42057         * m4/fnmatch.m4: Likewise.
42058         * m4/fopen.m4: Likewise.
42059         * m4/fpending.m4: Likewise.
42060         * m4/fprintf-posix.m4: Likewise.
42061         * m4/free.m4: Likewise.
42062         * m4/frexp.m4: Likewise.
42063         * m4/frexpl.m4: Likewise.
42064         * m4/fsusage.m4: Likewise.
42065         * m4/ftruncate.m4: Likewise.
42066         * m4/gc-camellia.m4: Likewise.
42067         * m4/gc-random.m4: Likewise.
42068         * m4/gc.m4: Likewise.
42069         * m4/getaddrinfo.m4: Likewise.
42070         * m4/getcwd-abort-bug.m4: Likewise.
42071         * m4/getcwd-path-max.m4: Likewise.
42072         * m4/getdate.m4: Likewise.
42073         * m4/getdomainname.m4: Likewise.
42074         * m4/getgroups.m4: Likewise.
42075         * m4/gethostname.m4: Likewise.
42076         * m4/gethrxtime.m4: Likewise.
42077         * m4/getline.m4: Likewise.
42078         * m4/getloadavg.m4: Likewise.
42079         * m4/getndelim2.m4: Likewise.
42080         * m4/getpass.m4: Likewise.
42081         * m4/gettext.m4: Likewise.
42082         * m4/gettime.m4: Likewise.
42083         * m4/gettimeofday.m4: Likewise.
42084         * m4/gnulib-common.m4: Likewise.
42085         * m4/group-member.m4: Likewise.
42086         * m4/host-os.m4: Likewise.
42087         * m4/iconv.m4: Likewise.
42088         * m4/iconv_open.m4: Likewise.
42089         * m4/inet_ntop.m4: Likewise.
42090         * m4/inet_pton.m4: Likewise.
42091         * m4/inline.m4: Likewise.
42092         * m4/intldir.m4: Likewise.
42093         * m4/intlmacosx.m4: Likewise.
42094         * m4/intmax.m4: Likewise.
42095         * m4/intmax_t.m4: Likewise.
42096         * m4/inttypes.m4: Likewise.
42097         * m4/inttypes_h.m4: Likewise.
42098         * m4/inttypes-pri.m4: Likewise.
42099         * m4/isapipe.m4: Likewise.
42100         * m4/isnand.m4: Likewise.
42101         * m4/isnanf.m4: Likewise.
42102         * m4/isnanl.m4: Likewise.
42103         * m4/javacomp.m4: Likewise.
42104         * m4/javaexec.m4: Likewise.
42105         * m4/jm-winsz1.m4: Likewise.
42106         * m4/jm-winsz2.m4: Likewise.
42107         * m4/lchown.m4: Likewise.
42108         * m4/lcmessage.m4: Likewise.
42109         * m4/ldexpl.m4: Likewise.
42110         * m4/lib-ld.m4: Likewise.
42111         * m4/lib-link.m4: Likewise.
42112         * m4/libsigsegv.m4: Likewise.
42113         * m4/link-follow.m4: Likewise.
42114         * m4/localcharset.m4: Likewise.
42115         * m4/locale-fr.m4: Likewise.
42116         * m4/locale-ja.m4: Likewise.
42117         * m4/locale-tr.m4: Likewise.
42118         * m4/locale-zh.m4: Likewise.
42119         * m4/lock.m4: Likewise.
42120         * m4/longlong.m4: Likewise.
42121         * m4/ls-mntd-fs.m4: Likewise.
42122         * m4/lstat.m4: Likewise.
42123         * m4/malloc.m4: Likewise.
42124         * m4/mathl.m4: Likewise.
42125         * m4/mbrtowc.m4: Likewise.
42126         * m4/mbstate_t.m4: Likewise.
42127         * m4/mbswidth.m4: Likewise.
42128         * m4/memchr.m4: Likewise.
42129         * m4/memcmp.m4: Likewise.
42130         * m4/memcpy.m4: Likewise.
42131         * m4/memmem.m4: Likewise.
42132         * m4/memmove.m4: Likewise.
42133         * m4/mempcpy.m4: Likewise.
42134         * m4/memrchr.m4: Likewise.
42135         * m4/memset.m4: Likewise.
42136         * m4/minmax.m4: Likewise.
42137         * m4/mkdir-slash.m4: Likewise.
42138         * m4/mkdtemp.m4: Likewise.
42139         * m4/mktime.m4: Likewise.
42140         * m4/mmap-anon.m4: Likewise.
42141         * m4/mountlist.m4: Likewise.
42142         * m4/nanosleep.m4: Likewise.
42143         * m4/nls.m4: Likewise.
42144         * m4/nocrash.m4: Likewise.
42145         * m4/open.m4: Likewise.
42146         * m4/openat.m4: Likewise.
42147         * m4/openmp.m4: Likewise.
42148         * m4/pathmax.m4: Likewise.
42149         * m4/perl.m4: Likewise.
42150         * m4/physmem.m4: Likewise.
42151         * m4/pipe.m4: Likewise.
42152         * m4/po.m4: Likewise.
42153         * m4/poll.m4: Likewise.
42154         * m4/posixtm.m4: Likewise.
42155         * m4/posixver.m4: Likewise.
42156         * m4/printf-frexp.m4: Likewise.
42157         * m4/printf-frexpl.m4: Likewise.
42158         * m4/printf-posix.m4: Likewise.
42159         * m4/printf-posix-rpl.m4: Likewise.
42160         * m4/printf.m4: Likewise.
42161         * m4/progtest.m4: Likewise.
42162         * m4/putenv.m4: Likewise.
42163         * m4/readline.m4: Likewise.
42164         * m4/readlink.m4: Likewise.
42165         * m4/readutmp.m4: Likewise.
42166         * m4/realloc.m4: Likewise.
42167         * m4/regex.m4: Likewise.
42168         * m4/relocatable.m4: Likewise.
42169         * m4/relocatable-lib.m4: Likewise.
42170         * m4/rename-dest-slash.m4: Likewise.
42171         * m4/rename.m4: Likewise.
42172         * m4/rmdir-errno.m4: Likewise.
42173         * m4/rmdir.m4: Likewise.
42174         * m4/roundf.m4: Likewise.
42175         * m4/roundl.m4: Likewise.
42176         * m4/rpmatch.m4: Likewise.
42177         * m4/save-cwd.m4: Likewise.
42178         * m4/selinux-selinux-h.m4: Likewise.
42179         * m4/setenv.m4: Likewise.
42180         * m4/settime.m4: Likewise.
42181         * m4/sig2str.m4: Likewise.
42182         * m4/sig_atomic_t.m4: Likewise.
42183         * m4/signalblocking.m4: Likewise.
42184         * m4/signbit.m4: Likewise.
42185         * m4/sigpipe.m4: Likewise.
42186         * m4/sockets.m4: Likewise.
42187         * m4/sockpfaf.m4: Likewise.
42188         * m4/st_dm_mode.m4: Likewise.
42189         * m4/stat-time.m4: Likewise.
42190         * m4/stdbool.m4: Likewise.
42191         * m4/stdint.m4: Likewise.
42192         * m4/stdint_h.m4: Likewise.
42193         * m4/stpcpy.m4: Likewise.
42194         * m4/stpncpy.m4: Likewise.
42195         * m4/strcase.m4: Likewise.
42196         * m4/strchrnul.m4: Likewise.
42197         * m4/strcspn.m4: Likewise.
42198         * m4/strdup.m4: Likewise.
42199         * m4/strftime.m4: Likewise.
42200         * m4/strndup.m4: Likewise.
42201         * m4/strnlen.m4: Likewise.
42202         * m4/strpbrk.m4: Likewise.
42203         * m4/strptime.m4: Likewise.
42204         * m4/strsep.m4: Likewise.
42205         * m4/strtod.m4: Likewise.
42206         * m4/strtoimax.m4: Likewise.
42207         * m4/strtok_r.m4: Likewise.
42208         * m4/strtol.m4: Likewise.
42209         * m4/strtoll.m4: Likewise.
42210         * m4/strtoul.m4: Likewise.
42211         * m4/strtoull.m4: Likewise.
42212         * m4/strtoumax.m4: Likewise.
42213         * m4/strverscmp.m4: Likewise.
42214         * m4/threadlib.m4: Likewise.
42215         * m4/timegm.m4: Likewise.
42216         * m4/tm_gmtoff.m4: Likewise.
42217         * m4/tmpdir.m4: Likewise.
42218         * m4/tmpfile.m4: Likewise.
42219         * m4/tzset.m4: Likewise.
42220         * m4/uintmax_t.m4: Likewise.
42221         * m4/unlinkdir.m4: Likewise.
42222         * m4/unlocked-io.m4: Likewise.
42223         * m4/uptime.m4: Likewise.
42224         * m4/userspec.m4: Likewise.
42225         * m4/utimbuf.m4: Likewise.
42226         * m4/utime.m4: Likewise.
42227         * m4/utimes-null.m4: Likewise.
42228         * m4/utimes.m4: Likewise.
42229         * m4/vararrays.m4: Likewise.
42230         * m4/vasnprintf.m4: Likewise.
42231         * m4/vfprintf-posix.m4: Likewise.
42232         * m4/vprintf-posix.m4: Likewise.
42233         * m4/wait-process.m4: Likewise.
42234         * m4/wchar_t.m4: Likewise.
42235         * m4/wint_t.m4: Likewise.
42236         * m4/write-any-file.m4: Likewise.
42237         * m4/yield.m4: Likewise.
42238
42239 2009-01-13  Bruno Haible  <bruno@clisp.org>
42240
42241         Avoid test-copy-file.sh failures when ACL support insufficient.
42242         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
42243         TESTS_ENVIRONMENT.
42244         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
42245         Reported by Jim Meyering.
42246
42247 2009-01-13  Bruno Haible  <bruno@clisp.org>
42248
42249         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
42250         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
42251         * modules/unistdio/u8-printf-parse (Files): Likewise.
42252         * modules/unistdio/u32-printf-parse (Files): Likewise.
42253         * modules/unistdio/ulc-printf-parse (Files): Likewise.
42254
42255 2009-01-13  Simon Josefsson  <simon@josefsson.org>
42256
42257         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
42258         and m4/inttypes_h.m4 too.
42259
42260 2009-01-12  Eric Blake  <ebb9@byu.net>
42261
42262         tests: IRIX 6.2 cc can't compile -0.0 into .data
42263         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
42264         rather than at compile-time.
42265         * tests/test-floorl.c (minus_zero): Likewise.
42266         * tests/test-frexpl.c (minus_zero): Likewise.
42267         * tests/test-isnan.c (minus_zerol): Likewise.
42268         * tests/test-isnanl.h (minus_zero): Likewise.
42269         * tests/test-ldexpl.c (minus_zero): Likewise.
42270         * tests/test-roundl.c (minus_zero): Likewise.
42271         * tests/test-signbit.c (minus_zerol): Likewise.
42272         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
42273         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
42274         * tests/test-truncl.c (minus_zero): Likewise.
42275         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
42276         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
42277         Reported by Tom G. Christensen and Nelson H. F. Beebe.
42278
42279 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
42280
42281         regex: fix glibc bug 9697
42282         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
42283         handling.
42284
42285 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
42286
42287         regex: fix glibc bug 697
42288         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
42289         being NULL also if there are no backreferences.
42290
42291 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
42292
42293         regex: merge glibc changes
42294         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
42295         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
42296         re_string_skip_chars, re_string_reconstruct): Likewise.
42297         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
42298
42299 2009-01-07  Jim Meyering  <meyering@redhat.com>
42300
42301         poll: filter through cppi
42302         * lib/poll.c: Indent cpp directives to reflect nesting.
42303
42304 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
42305
42306         poll: don't return uninitialized
42307         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
42308
42309 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
42310
42311         avoid compile failure on AIX 6.1
42312         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
42313         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
42314
42315 2009-01-04  Jim Meyering  <meyering@redhat.com>
42316
42317         remove duplicate inclusion of <stdio.h>
42318         * tests/test-fprintf-posix.c: Likewise.
42319         * tests/test-printf-posix.c: Likewise.
42320         * tests/test-snprintf-posix.c: Likewise.
42321         * tests/test-sprintf-posix.c: Likewise.
42322         * tests/test-vasprintf-posix.c: Likewise.
42323         * tests/test-vfprintf-posix.c: Likewise.
42324         * tests/test-vprintf-posix.c: Likewise.
42325         * tests/test-vsnprintf-posix.c: Likewise.
42326         * tests/test-vsprintf-posix.c: Likewise.
42327
42328 2009-01-03  Jim Meyering  <meyering@redhat.com>
42329
42330         gnulib-tool: fix sed-based filtering
42331         * gnulib-tool (func_filter_filelist): Remove extra backslash
42332         in sed_fff_filter definition.
42333
42334 2009-01-02  Jim Meyering  <meyering@redhat.com>
42335
42336         strftime: avoid compilation failure on Solaris 2.6
42337         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
42338         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
42339         Don't #define mbrlen or mbsinit, since now they're guaranteed to
42340         be available.  Reported by Tom G. Christensen.  Details in
42341         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
42342
42343 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42344             Bruno Haible  <bruno@clisp.org>
42345
42346         Speed up gnulib-tool by doing more string processing through shell
42347         built-ins.
42348         * gnulib-tool (fast_func_append): New variable.
42349         (func_remove_prefix, func_remove_suffix): New functions.
42350         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
42351         (func_filter_filelist): New function.
42352         (func_get_dependencies): Use func_remove_suffix instead of sed.
42353         (func_get_automake_snippet): Use func_filter_filelist instead of a
42354         subshell and sed invocation.
42355
42356 2009-01-01  Bruno Haible  <bruno@clisp.org>
42357
42358         Fix a security bug.
42359         * gnulib-tool (func_import, import, update): Don't allow the characters
42360         '"', '$', '`', '\' in macro arguments that become part of commands that
42361         are evaluated.
42362
42363 2009-01-01  Bruno Haible  <bruno@clisp.org>
42364
42365         * gnulib-tool (func_reset_sigpipe): Add more comments.
42366
42367 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42368
42369         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
42370         func_emit_tests_Makefile_am, func_import): Abort loops early if we
42371         already know the answer.
42372
42373 2009-01-01  Jim Meyering  <meyering@redhat.com>
42374
42375         * lib/version-etc.c (version_etc_va): Update copyright year.
42376
42377 2008-12-30  Bruno Haible  <bruno@clisp.org>
42378
42379         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
42380         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
42381         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
42382
42383 2008-12-29  Eric Blake  <ebb9@byu.net>
42384
42385         multiarch: avoid autoconf AC_REQUIRE bug
42386         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
42387         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
42388         2.63 and older.
42389         Reported by Bruno Haible, and analyzed in
42390         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
42391
42392 2008-12-29  Bruno Haible  <bruno@clisp.org>
42393
42394         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
42395         files in subdirectories correctly.
42396         Reported by Ralf Wildenhues.
42397
42398 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42399
42400         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
42401         rather than 'join FILE -', for Solaris join.
42402
42403 2008-12-29  Bruno Haible  <bruno@clisp.org>
42404
42405         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
42406         quoting.
42407         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
42408         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
42409         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
42410         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
42411         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
42412         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
42413         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
42414         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
42415         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
42416         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
42417         * m4/nls.m4 (AM_NLS): Likewise.
42418         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
42419         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
42420         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
42421         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
42422         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
42423         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
42424         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
42425         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
42426         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
42427         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
42428         * m4/xsize.m4 (gl_XSIZE): Likewise.
42429         Suggested by Jim Meyering.
42430
42431 2008-11-17  Bruce Korb  <bkorb@gnu.org>
42432
42433         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
42434         * lib/parse-duration.c: use a switch instead of cascading if's.
42435
42436 2008-12-29  Eric Blake  <ebb9@byu.net>
42437
42438         wchar.h: supply WEOF on Irix 5.3
42439         * lib/wchar.in.h (wint_t): Also supply WEOF.
42440         * lib/wctype.in.h (wint_t): Likewise.
42441         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
42442         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
42443         Reported by Tom G. Christensen.
42444
42445 2008-12-26  Bruno Haible  <bruno@clisp.org>
42446
42447         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
42448         i486, i586, i686.
42449
42450 2008-12-26  Bruno Haible  <bruno@clisp.org>
42451
42452         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
42453
42454 2008-12-26  Bruno Haible  <bruno@clisp.org>
42455
42456         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
42457         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
42458         not __STDC_CONSTANT_MACROS.
42459         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
42460
42461 2008-12-25  Bruno Haible  <bruno@clisp.org>
42462
42463         Add support for universal builds to vasnprintf.
42464         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
42465         universal builds, guess no.
42466         * modules/vasnprintf-posix (Depends-on): Add multiarch.
42467         * modules/vasprintf-posix (Depends-on): Likewise.
42468         * modules/fprintf-posix (Depends-on): Likewise.
42469         * modules/vfprintf-posix (Depends-on): Likewise.
42470         * modules/snprintf-posix (Depends-on): Likewise.
42471         * modules/vsnprintf-posix (Depends-on): Likewise.
42472         * modules/sprintf-posix (Depends-on): Likewise.
42473         * modules/vsprintf-posix (Depends-on): Likewise.
42474         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
42475         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
42476         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
42477         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
42478         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
42479         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
42480         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
42481
42482         Add support for universal builds to <inttypes.h>.
42483         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
42484         _SCNu64_PREFIX): In Apple
42485         universal builds, define directly, using _LP64.
42486         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
42487         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
42488         * modules/inttypes (Depends-on): Add multiarch.
42489         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
42490
42491         Add support for universal builds to <stdint.h>.
42492         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
42493         universal builds, define directly, using _LP64.
42494         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
42495         Apple universal builds, don't test for the size and suffix of ptrdiff_t
42496         and size_t.
42497         * modules/stdint (Depends-on): Add multiarch.
42498         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
42499
42500         New module 'multiarch'.
42501         * modules/multiarch: New file.
42502         * m4/multiarch.m4: New file.
42503
42504 2008-12-25  Bruno Haible  <bruno@clisp.org>
42505
42506         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
42507
42508 2008-12-25  Bruno Haible  <bruno@clisp.org>
42509
42510         * modules/btowc (License): Relicense under LGPLv2+.
42511         * modules/mbsinit (License): Likewise.
42512         * modules/mbrtowc (License): Likewise.
42513         * modules/wcrtomb (License): Likewise.
42514         * modules/streq (License): Likewise.
42515         Reported by David Lutterkort <lutter@redhat.com>.
42516
42517 2008-12-23  Bruno Haible  <bruno@clisp.org>
42518
42519         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
42520
42521 2008-12-23  Bruno Haible  <bruno@clisp.org>
42522
42523         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
42524         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
42525         GETADDRINFO_LIB, not in LIBS.
42526         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
42527         * modules/canon-host (Link): Likewise.
42528         * NEWS: Mention the change.
42529         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
42530         GETADDRINFO_LIB.
42531
42532 2008-12-22  Bruno Haible  <bruno@clisp.org>
42533
42534         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
42535         * doc/posix-functions/iswalpha_l.texi: Likewise.
42536         * doc/posix-functions/iswblank_l.texi: Likewise.
42537         * doc/posix-functions/iswcntrl_l.texi: Likewise.
42538         * doc/posix-functions/iswctype_l.texi: Likewise.
42539         * doc/posix-functions/iswdigit_l.texi: Likewise.
42540         * doc/posix-functions/iswgraph_l.texi: Likewise.
42541         * doc/posix-functions/iswlower_l.texi: Likewise.
42542         * doc/posix-functions/iswprint_l.texi: Likewise.
42543         * doc/posix-functions/iswpunct_l.texi: Likewise.
42544         * doc/posix-functions/iswspace_l.texi: Likewise.
42545         * doc/posix-functions/iswupper_l.texi: Likewise.
42546         * doc/posix-functions/iswxdigit_l.texi: Likewise.
42547         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
42548         * doc/posix-functions/open_wmemstream.texi: Likewise.
42549         * doc/posix-functions/swscanf.texi: Likewise.
42550         * doc/posix-functions/towctrans_l.texi: Likewise.
42551         * doc/posix-functions/towlower.texi: Likewise.
42552         * doc/posix-functions/towlower_l.texi: Likewise.
42553         * doc/posix-functions/towupper.texi: Likewise.
42554         * doc/posix-functions/towupper_l.texi: Likewise.
42555         * doc/posix-functions/vfwprintf.texi: Likewise.
42556         * doc/posix-functions/vfwscanf.texi: Likewise.
42557         * doc/posix-functions/vswscanf.texi: Likewise.
42558         * doc/posix-functions/vwprintf.texi: Likewise.
42559         * doc/posix-functions/vwscanf.texi: Likewise.
42560         * doc/posix-functions/wcpcpy.texi: Likewise.
42561         * doc/posix-functions/wcpncpy.texi: Likewise.
42562         * doc/posix-functions/wcscasecmp.texi: Likewise.
42563         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
42564         * doc/posix-functions/wcscoll_l.texi: Likewise.
42565         * doc/posix-functions/wcsdup.texi: Likewise.
42566         * doc/posix-functions/wcsncasecmp.texi: Likewise.
42567         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
42568         * doc/posix-functions/wcsnlen.texi: Likewise.
42569         * doc/posix-functions/wcsnrtombs.texi: Likewise.
42570         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
42571         * doc/posix-functions/wctrans_l.texi: Likewise.
42572         * doc/posix-functions/wctype_l.texi: Likewise.
42573         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
42574         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
42575         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
42576         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
42577         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
42578         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
42579         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
42580         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
42581         * doc/glibc-functions/wcschrnul.texi: Likewise.
42582         * doc/glibc-functions/wcsftime_l.texi: Likewise.
42583         * doc/glibc-functions/wcstod_l.texi: Likewise.
42584         * doc/glibc-functions/wcstof_l.texi: Likewise.
42585         * doc/glibc-functions/wcstol_l.texi: Likewise.
42586         * doc/glibc-functions/wcstold_l.texi: Likewise.
42587         * doc/glibc-functions/wcstoll_l.texi: Likewise.
42588         * doc/glibc-functions/wcstoq.texi: Likewise.
42589         * doc/glibc-functions/wcstoul_l.texi: Likewise.
42590         * doc/glibc-functions/wcstoull_l.texi: Likewise.
42591         * doc/glibc-functions/wcstouq.texi: Likewise.
42592         * doc/glibc-functions/wmempcpy.texi: Likewise.
42593
42594 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
42595             Eric Blake  <ebb9@byu.net>
42596             Paolo Bonzini  <bonzini@gnu.org>
42597             Bruno Haible  <bruno@clisp.org>
42598
42599         Make c-stack work on Haiku.
42600         * lib/c-stack.c (SA_ONSTACK): Define fallback.
42601         (c_stack_action): Use SA_ONSTACK flag.
42602
42603 2008-12-22  Bruno Haible  <bruno@clisp.org>
42604
42605         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
42606
42607 2008-12-22  Bruno Haible  <bruno@clisp.org>
42608
42609         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
42610         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
42611         being overridden.
42612         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
42613         New macros.
42614         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
42615         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
42616         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
42617         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
42618
42619 2008-12-22  Bruno Haible  <bruno@clisp.org>
42620
42621         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
42622         from test code.
42623
42624 2008-12-22  Eric Blake  <ebb9@byu.net>
42625
42626         Avoid gcc warnings on cygwin.
42627         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
42628         Avoid unused variable.
42629         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
42630         Likewise.
42631
42632 2008-12-22  Bruno Haible  <bruno@clisp.org>
42633
42634         Remove HAVE_MBRTOWC conditionals.
42635         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
42636         (mbscasecmp): Assume mbrtowc function.
42637         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
42638         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
42639         * lib/mbschr.c: Include mbuiter.h unconditionally.
42640         (mbschr): Assume mbrtowc function.
42641         * lib/mbscspn.c: Include mbuiter.h unconditionally.
42642         (mbscspn): Assume mbrtowc function.
42643         * lib/mbslen.c: Include mbuiter.h unconditionally.
42644         (mbslen): Assume mbrtowc function.
42645         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
42646         (mbsncasecmp): Assume mbrtowc function.
42647         * lib/mbsnlen.c: Include mbiter.h unconditionally.
42648         (mbsnlen): Assume mbrtowc function.
42649         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
42650         (mbspbrk): Assume mbrtowc function.
42651         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
42652         (mbspcasecmp): Assume mbrtowc function.
42653         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
42654         (mbsrchr): Assume mbrtowc function.
42655         * lib/mbssep.c: Include mbuiter.h unconditionally.
42656         (mbssep): Assume mbrtowc function.
42657         * lib/mbsspn.c: Include mbuiter.h unconditionally.
42658         (mbsspn): Assume mbrtowc function.
42659         * lib/mbsstr.c: Include mbuiter.h unconditionally.
42660         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
42661         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
42662         (mbstok_r): Assume mbrtowc function.
42663         * lib/propername.c: Include mbuiter.h unconditionally.
42664         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
42665         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
42666         (trim2): Assume mbrtowc function.
42667         * lib/mbswidth.c (mbsinit): Remove fallback definition.
42668         (mbsnwidth): Assume mbrtowc function.
42669         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
42670         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
42671         fallback definitions.
42672         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
42673
42674 2008-12-22  Bruno Haible  <bruno@clisp.org>
42675
42676         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
42677
42678 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
42679
42680         * modules/regex: Request emulations for the mb*/wc* functions we need.
42681         * m4/regex.m4: Don't look for those functions here.
42682         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
42683
42684 2008-12-22  Bruno Haible  <bruno@clisp.org>
42685
42686         * modules/fnmatch (Depends-on): Remove duplicated dependency.
42687
42688 2008-12-21  Bruno Haible  <bruno@clisp.org>
42689
42690         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
42691         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
42692         (Include): Remove conditionalization.
42693         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
42694         (Include): Remove conditionalization.
42695         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
42696         (Include): Remove conditionalization.
42697         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
42698         * m4/mbfile.m4 (gl_MBFILE): Likewise.
42699         * NEWS: Mention the change.
42700         Reported by Alan Hourihane <alanh@fairlite.co.uk>
42701         via Sergey Poznyakoff <gray@gnu.org.ua>.
42702
42703 2008-12-21  Bruno Haible  <bruno@clisp.org>
42704
42705         * MODULES.html.sh (Extended multibyte and wide character utilities
42706         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
42707         wcrtomb, wcsrtombs.
42708         (Support for systems lacking POSIX:2008): Add accept, bind, close,
42709         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
42710         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
42711         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
42712
42713 2008-12-21  Bruno Haible  <bruno@clisp.org>
42714
42715         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
42716
42717 2008-12-21  Bruno Haible  <bruno@clisp.org>
42718
42719         * modules/wcsnrtombs-tests: New file.
42720         * tests/test-wcsnrtombs1.sh: New file.
42721         * tests/test-wcsnrtombs2.sh: New file.
42722         * tests/test-wcsnrtombs3.sh: New file.
42723         * tests/test-wcsnrtombs4.sh: New file.
42724         * tests/test-wcsnrtombs.c: New file.
42725
42726         New module 'wcsnrtombs'.
42727         * lib/wchar.in.h (wcsnrtombs): New declaration.
42728         * lib/wcsnrtombs.c: New file.
42729         * lib/wcsrtombs-state.c: New file.
42730         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
42731         (internal_state): Remove variable.
42732         * m4/wcsnrtombs.m4: New file.
42733         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
42734         compilation units.
42735         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
42736         HAVE_WCSNRTOMBS.
42737         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
42738         HAVE_WCSNRTOMBS.
42739         * modules/wcsnrtombs: New file.
42740         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
42741         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
42742
42743 2008-12-21  Bruno Haible  <bruno@clisp.org>
42744
42745         * modules/wcsrtombs-tests: New file.
42746         * tests/test-wcsrtombs1.sh: New file.
42747         * tests/test-wcsrtombs2.sh: New file.
42748         * tests/test-wcsrtombs3.sh: New file.
42749         * tests/test-wcsrtombs4.sh: New file.
42750         * tests/test-wcsrtombs.c: New file.
42751
42752         New module 'wcsrtombs'.
42753         * lib/wchar.in.h (wcsrtombs): New declaration.
42754         * lib/wcsrtombs.c: New file.
42755         * m4/wcsrtombs.m4: New file.
42756         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
42757         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
42758         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
42759         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
42760         * modules/wcsrtombs: New file.
42761         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
42762         bugs.
42763
42764 2008-12-21  Bruno Haible  <bruno@clisp.org>
42765
42766         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
42767         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
42768         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
42769         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
42770         if not correct.
42771         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
42772         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
42773         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
42774         m4/locale-zh.m4, m4/codeset.m4.
42775         * doc/posix-functions/wcrtomb.texi: Document the bug.
42776
42777 2008-12-21  Bruno Haible  <bruno@clisp.org>
42778
42779         Work around a btowc() bug on IRIX 6.5.
42780         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
42781         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
42782         REPLACE_WTOBC if not.
42783         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
42784         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
42785         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
42786
42787 2008-12-21  Bruno Haible  <bruno@clisp.org>
42788
42789         * modules/wcrtomb-tests: New file.
42790         * tests/test-wcrtomb.sh: New file.
42791         * tests/test-wcrtomb.c: New file.
42792
42793         New module 'wcrtomb'.
42794         * lib/wchar.in.h (wcrtomb): New declaration.
42795         * lib/wcrtomb.c: New file.
42796         * m4/wcrtomb.m4: New file.
42797         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
42798         HAVE_WCRTOMB.
42799         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
42800         HAVE_WCRTOMB.
42801         * modules/wcrtomb: New file.
42802         * doc/posix-functions/wcrtomb.texi: Mention the new module.
42803
42804 2008-12-21  Bruno Haible  <bruno@clisp.org>
42805
42806         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
42807         * modules/mbsrtowcs (Files): Likewise.
42808         * modules/wctob (Files): Likewise.
42809         * modules/c-strcase-tests (Files): Likewise.
42810         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
42811         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
42812         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
42813         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
42814         * modules/vasnprintf-posix-tests (Files): Likewise.
42815
42816 2008-12-21  William Pursell  <bill.pursell@gmail.com>
42817
42818         gitlog-to-changelog: pass all command-line arguments to git-log
42819         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
42820         it is sometimes convenient to filter the commits in various ways.
42821         gitlog-to-changelog only allows --since to specify a start date,
42822         but git-log itself supports many other filtering mechanisms.
42823         At the moment, I want to filter by branch name.  Rather than
42824         adding a --branch option to gitlog-to-changelog, it seems more
42825         flexible to simply pass all options directly to git-log and let
42826         git do the work.  Notice that this effectively makes --since a
42827         redundant option for gitlog-to-changelog, but removing it would
42828         require current usage to change since calls would then require
42829         an additional '--'.
42830
42831 2008-12-21  Bruno Haible  <bruno@clisp.org>
42832
42833         * modules/mbsnrtowcs-tests: New file.
42834         * tests/test-mbsnrtowcs1.sh: New file.
42835         * tests/test-mbsnrtowcs2.sh: New file.
42836         * tests/test-mbsnrtowcs3.sh: New file.
42837         * tests/test-mbsnrtowcs4.sh: New file.
42838         * tests/test-mbsnrtowcs.c: New file.
42839
42840         New module 'mbsnrtowcs'.
42841         * lib/wchar.in.h (mbsnrtowcs): New declaration.
42842         * lib/mbsnrtowcs.c: New file.
42843         * lib/mbsrtowcs-state.c: New file.
42844         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
42845         (internal_state): Remove variable.
42846         * m4/mbsnrtowcs.m4: New file.
42847         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
42848         compilation units.
42849         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
42850         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
42851         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
42852         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
42853         * modules/mbsnrtowcs: New file.
42854         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
42855         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
42856         portability problem.
42857
42858 2008-12-21  Bruno Haible  <bruno@clisp.org>
42859
42860         Work around mbsrtowcs bug.
42861         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
42862         (gl_FUNC_MBSRTOWCS): Invoke it.
42863         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
42864         m4/locale-zh.m4.
42865         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
42866
42867 2008-12-21  Bruno Haible  <bruno@clisp.org>
42868
42869         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
42870
42871 2008-12-21  Bruno Haible  <bruno@clisp.org>
42872
42873         Update doc for AIX.
42874         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
42875         16-bit wchar_t type.
42876         * doc/posix-functions/btowc.texi: Likewise.
42877         * doc/posix-functions/fgetwc.texi: Likewise.
42878         * doc/posix-functions/fgetws.texi: Likewise.
42879         * doc/posix-functions/fputwc.texi: Likewise.
42880         * doc/posix-functions/fputws.texi: Likewise.
42881         * doc/posix-functions/fwide.texi: Likewise.
42882         * doc/posix-functions/fwprintf.texi: Likewise.
42883         * doc/posix-functions/fwscanf.texi: Likewise.
42884         * doc/posix-functions/getwchar.texi: Likewise.
42885         * doc/posix-functions/getwc.texi: Likewise.
42886         * doc/posix-functions/iswalnum.texi: Likewise.
42887         * doc/posix-functions/iswalpha.texi: Likewise.
42888         * doc/posix-functions/iswblank.texi: Likewise.
42889         * doc/posix-functions/iswcntrl.texi: Likewise.
42890         * doc/posix-functions/iswctype.texi: Likewise.
42891         * doc/posix-functions/iswdigit.texi: Likewise.
42892         * doc/posix-functions/iswgraph.texi: Likewise.
42893         * doc/posix-functions/iswlower.texi: Likewise.
42894         * doc/posix-functions/iswprint.texi: Likewise.
42895         * doc/posix-functions/iswpunct.texi: Likewise.
42896         * doc/posix-functions/iswspace.texi: Likewise.
42897         * doc/posix-functions/iswupper.texi: Likewise.
42898         * doc/posix-functions/iswxdigit.texi: Likewise.
42899         * doc/posix-functions/mbrtowc.texi: Likewise.
42900         * doc/posix-functions/mbsrtowcs.texi: Likewise.
42901         * doc/posix-functions/mbstowcs.texi: Likewise.
42902         * doc/posix-functions/mbtowc.texi: Likewise.
42903         * doc/posix-functions/putwchar.texi: Likewise.
42904         * doc/posix-functions/putwc.texi: Likewise.
42905         * doc/posix-functions/swprintf.texi: Likewise.
42906         * doc/posix-functions/tolower.texi: Likewise.
42907         * doc/posix-functions/toupper.texi: Likewise.
42908         * doc/posix-functions/towctrans.texi: Likewise.
42909         * doc/posix-functions/ungetwc.texi: Likewise.
42910         * doc/posix-functions/vswprintf.texi: Likewise.
42911         * doc/posix-functions/wcrtomb.texi: Likewise.
42912         * doc/posix-functions/wcscat.texi: Likewise.
42913         * doc/posix-functions/wcschr.texi: Likewise.
42914         * doc/posix-functions/wcscmp.texi: Likewise.
42915         * doc/posix-functions/wcscoll.texi: Likewise.
42916         * doc/posix-functions/wcscpy.texi: Likewise.
42917         * doc/posix-functions/wcscspn.texi: Likewise.
42918         * doc/posix-functions/wcsftime.texi: Likewise.
42919         * doc/posix-functions/wcslen.texi: Likewise.
42920         * doc/posix-functions/wcsncat.texi: Likewise.
42921         * doc/posix-functions/wcsncmp.texi: Likewise.
42922         * doc/posix-functions/wcsncpy.texi: Likewise.
42923         * doc/posix-functions/wcspbrk.texi: Likewise.
42924         * doc/posix-functions/wcsrchr.texi: Likewise.
42925         * doc/posix-functions/wcsrtombs.texi: Likewise.
42926         * doc/posix-functions/wcsspn.texi: Likewise.
42927         * doc/posix-functions/wcsstr.texi: Likewise.
42928         * doc/posix-functions/wcstod.texi: Likewise.
42929         * doc/posix-functions/wcstof.texi: Likewise.
42930         * doc/posix-functions/wcstoimax.texi: Likewise.
42931         * doc/posix-functions/wcstok.texi: Likewise.
42932         * doc/posix-functions/wcstold.texi: Likewise.
42933         * doc/posix-functions/wcstoll.texi: Likewise.
42934         * doc/posix-functions/wcstol.texi: Likewise.
42935         * doc/posix-functions/wcstombs.texi: Likewise.
42936         * doc/posix-functions/wcstoull.texi: Likewise.
42937         * doc/posix-functions/wcstoul.texi: Likewise.
42938         * doc/posix-functions/wcstoumax.texi: Likewise.
42939         * doc/posix-functions/wcswidth.texi: Likewise.
42940         * doc/posix-functions/wcsxfrm.texi: Likewise.
42941         * doc/posix-functions/wctob.texi: Likewise.
42942         * doc/posix-functions/wctomb.texi: Likewise.
42943         * doc/posix-functions/wctrans.texi: Likewise.
42944         * doc/posix-functions/wctype.texi: Likewise.
42945         * doc/posix-functions/wcwidth.texi: Likewise.
42946         * doc/posix-functions/wmemchr.texi: Likewise.
42947         * doc/posix-functions/wmemcmp.texi: Likewise.
42948         * doc/posix-functions/wmemcpy.texi: Likewise.
42949         * doc/posix-functions/wmemmove.texi: Likewise.
42950         * doc/posix-functions/wmemset.texi: Likewise.
42951         * doc/posix-functions/wprintf.texi: Likewise.
42952         * doc/posix-functions/wscanf.texi: Likewise.
42953
42954 2008-12-21  Bruno Haible  <bruno@clisp.org>
42955
42956         Update doc for HP-UX 11.11.
42957         * doc/posix-functions/btowc.texi: Clarify that the function is missing
42958         in HP-UX version 11.00, not in all versions of HP-UX 11.
42959         * doc/posix-functions/fwide.texi: Likewise.
42960         * doc/posix-functions/fwprintf.texi: Likewise.
42961         * doc/posix-functions/fwscanf.texi: Likewise.
42962         * doc/posix-functions/inet_ntop.texi: Likewise.
42963         * doc/posix-functions/inet_pton.texi: Likewise.
42964         * doc/posix-functions/mbrlen.texi: Likewise.
42965         * doc/posix-functions/mbrtowc.texi: Likewise.
42966         * doc/posix-functions/mbsinit.texi: Likewise.
42967         * doc/posix-functions/mbsrtowcs.texi: Likewise.
42968         * doc/posix-functions/swprintf.texi: Likewise.
42969         * doc/posix-functions/swscanf.texi: Likewise.
42970         * doc/posix-functions/towctrans.texi: Likewise.
42971         * doc/posix-functions/vfwprintf.texi: Likewise.
42972         * doc/posix-functions/vswprintf.texi: Likewise.
42973         * doc/posix-functions/vwprintf.texi: Likewise.
42974         * doc/posix-functions/wcrtomb.texi: Likewise.
42975         * doc/posix-functions/wcsrtombs.texi: Likewise.
42976         * doc/posix-functions/wcsstr.texi: Likewise.
42977         * doc/posix-functions/wctob.texi: Likewise.
42978         * doc/posix-functions/wctrans.texi: Likewise.
42979         * doc/posix-functions/wmemchr.texi: Likewise.
42980         * doc/posix-functions/wmemcmp.texi: Likewise.
42981         * doc/posix-functions/wmemcpy.texi: Likewise.
42982         * doc/posix-functions/wmemmove.texi: Likewise.
42983         * doc/posix-functions/wmemset.texi: Likewise.
42984         * doc/posix-functions/wprintf.texi: Likewise.
42985         * doc/posix-functions/wscanf.texi: Likewise.
42986
42987 2008-12-21  Bruno Haible  <bruno@clisp.org>
42988
42989         Work around a portability problem.
42990         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
42991         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
42992
42993 2008-12-20  Bruno Haible  <bruno@clisp.org>
42994
42995         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
42996         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
42997         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
42998         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
42999         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
43000
43001         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
43002         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
43003         set.
43004         (GNULIB_defined_mbstate_t): New macro.
43005         (mbsinit): Redefine if REPLACE_MBSINIT is set.
43006         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
43007         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
43008         reuses the system's mbrtowc function but works around the bugs.
43009         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
43010         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
43011         macros.
43012         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
43013         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
43014         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
43015         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
43016         REPLACE_MBSINIT if mbsinit needs to be overridden.
43017         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
43018         REPLACE_MBSINIT, REPLACE_MBRTOWC.
43019         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
43020         REPLACE_MBSINIT, REPLACE_MBRTOWC.
43021         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
43022         m4/locale-zh.m4.
43023         (Depends): Add mbsinit.
43024         * modules/mbsinit (Depends): Add mbrtowc.
43025         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
43026
43027 2008-12-20  Bruno Haible  <bruno@clisp.org>
43028
43029         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
43030         so that there are no conversion errors on AIX.
43031         * tests/test-mbsrtowcs.c (main): LIkewise.
43032
43033 2008-12-20  Bruno Haible  <bruno@clisp.org>
43034
43035         Work around wctob bug on Solaris <= 9.
43036         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
43037         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
43038         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
43039         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
43040         * modules/wctob (Files): Add m4/locale-fr.m4.
43041         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
43042
43043 2008-12-20  Bruno Haible  <bruno@clisp.org>
43044
43045         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
43046         /dev/null.
43047         * tests/test-select-in.sh: Likewise.
43048         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
43049
43050 2008-12-20  Bruno Haible  <bruno@clisp.org>
43051
43052         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
43053         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
43054         Cygwin 1.5.x.
43055
43056 2008-12-20  Bruno Haible  <bruno@clisp.org>
43057
43058         Ensure mbstate_t is defined on HP-UX 11.11.
43059         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
43060         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
43061         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
43062         AC_USE_SYSTEM_EXTENSIONS.
43063         * modules/fnmatch (Depends-on): Add extensions.
43064         * modules/mbrlen (Depends-on): Likewise.
43065         * modules/mbrtowc (Depends-on): Likewise.
43066         * modules/mbsinit (Depends-on): Likewise.
43067         * modules/mbsrtowcs (Depends-on): Likewise.
43068         * modules/mbswidth (Depends-on): Likewise.
43069         * modules/quotearg (Depends-on): Likewise.
43070         * modules/strftime (Depends-on): Likewise.
43071
43072 2008-12-20  Bruno Haible  <bruno@clisp.org>
43073
43074         Ensure wctob is declared on IRIX 6.5.
43075         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
43076         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
43077         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
43078         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
43079         of HAVE_WCTOB.
43080         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
43081         HAVE_WCTOB.
43082         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
43083
43084 2008-12-19  Bruno Haible  <bruno@clisp.org>
43085
43086         * modules/mbsrtowcs-tests: New file.
43087         * tests/test-mbsrtowcs1.sh: New file.
43088         * tests/test-mbsrtowcs2.sh: New file.
43089         * tests/test-mbsrtowcs3.sh: New file.
43090         * tests/test-mbsrtowcs4.sh: New file.
43091         * tests/test-mbsrtowcs.c: New file.
43092
43093         New module 'mbsrtowcs'.
43094         * lib/wchar.in.h (mbsrtowcs): New declaration.
43095         * lib/mbsrtowcs.c: New file.
43096         * m4/mbsrtowcs.m4: New file.
43097         * modules/mbsrtowcs: New file.
43098         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
43099         HAVE_MBSRTOWCS.
43100         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
43101         HAVE_MBSRTOWCS.
43102         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
43103
43104 2008-12-19  Bruno Haible  <bruno@clisp.org>
43105
43106         New module 'mbrlen'.
43107         * lib/wchar.in.h (mbrlen): New declaration.
43108         * lib/mbrlen.c: New file.
43109         * m4/mbrlen.m4: New file.
43110         * modules/mbrlen: New file.
43111         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
43112         HAVE_MBRLEN.
43113         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
43114         HAVE_MBRLEN.
43115         * doc/posix-functions/mbrlen.texi: Document the new module.
43116
43117 2008-12-19  Bruno Haible  <bruno@clisp.org>
43118
43119         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
43120         * modules/mbrtowc (Depends-on): Add verify.
43121         Suggested by Paul Eggert.
43122
43123 2008-12-18  Bruno Haible  <bruno@clisp.org>
43124
43125         * modules/mbsinit-tests: New file.
43126         * tests/test-mbsinit.sh: New file.
43127         * tests/test-mbsinit.c: New file.
43128
43129 2008-12-18  Bruno Haible  <bruno@clisp.org>
43130
43131         * modules/mbrtowc-tests: New file.
43132         * tests/test-mbrtowc1.sh: New file.
43133         * tests/test-mbrtowc2.sh: New file.
43134         * tests/test-mbrtowc3.sh: New file.
43135         * tests/test-mbrtowc4.sh: New file.
43136         * tests/test-mbrtowc.c: New file.
43137
43138         New module 'mbrtowc'.
43139         * lib/wchar.in.h (mbstate_t): Override when the system does not have
43140         mbsinit and mbrtowc.
43141         (mbrtowc): New declaration.
43142         * lib/mbrtowc.c: New file.
43143         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
43144         * modules/mbrtowc: New file.
43145         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
43146         HAVE_MBRTOWC.
43147         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
43148         HAVE_MBRTOWC.
43149         * doc/posix-functions/mbrtowc.texi: Document the new module.
43150
43151 2008-12-18  Bruno Haible  <bruno@clisp.org>
43152
43153         New module 'wctob'.
43154         * lib/wchar.in.h (wctob): New declaration.
43155         * lib/wctob.c: New file.
43156         * m4/wctob.m4: New file.
43157         * modules/wctob: New file.
43158         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
43159         HAVE_WCTOB.
43160         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
43161         * doc/posix-functions/wctob.texi: Document the new module.
43162
43163 2008-12-18  Bruno Haible  <bruno@clisp.org>
43164
43165         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
43166         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
43167
43168 2008-12-18  Simon Josefsson  <simon@josefsson.org>
43169
43170         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
43171         G. Christensen" <tgc@jupiterrise.com>.
43172
43173         * lib/flock.c: Need to include errno.h.  Reported by "Tom
43174         G. Christensen" <tgc@jupiterrise.com>.
43175
43176         * lib/flock.c: Need to include string.h.  Reported by "Tom
43177         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
43178         <ebb9@byu.net>.
43179
43180 2008-12-18  Bruno Haible  <bruno@clisp.org>
43181
43182         * m4/locale-ja.m4: New file, from GNU gettext.
43183
43184 2008-12-17  Bruno Haible  <bruno@clisp.org>
43185
43186         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
43187         Suggested by Eric Blake.
43188
43189 2008-12-17  Bruno Haible  <bruno@clisp.org>
43190
43191         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
43192
43193 2008-12-17  Bruno Haible  <bruno@clisp.org>
43194
43195         * lib/mbsinit.c: Include verify.h. Verify an assumption.
43196         * modules/mbsinit (Depends-on): Add verify.
43197         Suggested by Paul Eggert.
43198
43199 2008-12-17  Bruno Haible  <bruno@clisp.org>
43200
43201         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
43202         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
43203         gl_FUNC_MBRTOWC.
43204         * m4/mbiter.m4 (gl_MBITER): LIkewise.
43205         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
43206         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
43207         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
43208         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
43209         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
43210         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
43211         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
43212         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
43213         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
43214         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
43215         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
43216         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
43217         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
43218         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
43219         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
43220         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
43221         * modules/trim (configure.ac): Likewise.
43222
43223 2008-12-17  Bruno Haible  <bruno@clisp.org>
43224
43225         * modules/btowc-tests: New file.
43226         * tests/test-btowc1.sh: New file.
43227         * tests/test-btowc2.sh: New file.
43228         * tests/test-btowc.c: New file.
43229
43230         New module 'btowc'.
43231         * lib/wchar.in.h (btowc): New declaration.
43232         * lib/btowc.c: New file.
43233         * m4/btowc.m4: New file.
43234         * modules/btowc: New file.
43235         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
43236         HAVE_BTOWC.
43237         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
43238         * doc/posix-functions/btowc.texi: Document the new module.
43239
43240 2008-12-17  Bruno Haible  <bruno@clisp.org>
43241
43242         New module 'mbsinit'.
43243         * lib/wchar.in.h (mbsinit): New declaration.
43244         * lib/mbsinit.c: New file.
43245         * m4/mbsinit.m4: New file.
43246         * modules/mbsinit: New file.
43247         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
43248         HAVE_MBSINIT.
43249         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
43250         HAVE_MBSINIT.
43251         * doc/posix-functions/mbsinit.texi: Document the new module.
43252
43253 2008-12-16  Bruno Haible  <bruno@clisp.org>
43254
43255         * lib/unistd.in.h: Add comment.
43256         * tests/test-environ.c: Don't include <stdlib.h>.
43257
43258 2008-12-16  Bruno Haible  <bruno@clisp.org>
43259
43260         * lib/parse-duration.h (parse_duration): Document return value
43261         convention.
43262         * lib/parse-duration.c: Include specification header first. Add
43263         comments.
43264         (_): Remove macro.
43265         (parse_year_month_day, parse_hour_minute_second): Move side effects
43266         outside of strchr call.
43267         (parse_non_iso8601): Move side effects outside of isspace call.
43268         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
43269         call.
43270
43271 2008-12-16  Bruno Haible  <bruno@clisp.org>
43272
43273         * tests/test-parse-duration.sh: Produce no output when the test
43274         succeeds.
43275
43276 2008-12-16  Bruno Haible  <bruno@clisp.org>
43277
43278         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
43279         expressions.
43280
43281 2008-12-15  Bruno Haible  <bruno@clisp.org>
43282
43283         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
43284         * doc/glibc-functions/flistxattr.texi: Likewise.
43285         * doc/glibc-functions/fopencookie.texi: Likewise.
43286         * doc/glibc-functions/fremovexattr.texi: Likewise.
43287         * doc/glibc-functions/fsetxattr.texi: Likewise.
43288         * doc/glibc-functions/getxattr.texi: Likewise.
43289         * doc/glibc-functions/lgetxattr.texi: Likewise.
43290         * doc/glibc-functions/listxattr.texi: Likewise.
43291         * doc/glibc-functions/llistxattr.texi: Likewise.
43292         * doc/glibc-functions/lremovexattr.texi: Likewise.
43293         * doc/glibc-functions/lsetxattr.texi: Likewise.
43294         * doc/glibc-functions/removexattr.texi: Likewise.
43295         * doc/glibc-functions/setxattr.texi: Likewise.
43296         * doc/posix-functions/open_memstream.texi: Likewise.
43297
43298 2008-12-15  Eric Blake  <ebb9@byu.net>
43299
43300         Update doc for cygwin 1.7.
43301         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
43302         functions.
43303         * doc/posix-functions/fchmodat.texi: Likewise.
43304         * doc/posix-functions/fchownat.texi: Likewise.
43305         * doc/posix-functions/fdopendir.texi: Likewise.
43306         * doc/posix-functions/fmemopen.texi: Likewise.
43307         * doc/posix-functions/freeaddrinfo.texi: Likewise.
43308         * doc/posix-functions/fstatat.texi: Likewise.
43309         * doc/posix-functions/futimens.texi: Likewise.
43310         * doc/posix-functions/gai_strerror.texi: Likewise.
43311         * doc/posix-functions/getaddrinfo.texi: Likewise.
43312         * doc/posix-functions/getnameinfo.texi: Likewise.
43313         * doc/posix-functions/if_freenameindex.texi: Likewise.
43314         * doc/posix-functions/if_indextoname.texi: Likewise.
43315         * doc/posix-functions/if_nameindex.texi: Likewise.
43316         * doc/posix-functions/if_nametoindex.texi: Likewise.
43317         * doc/posix-functions/insque.texi: Likewise.
43318         * doc/posix-functions/linkat.texi: Likewise.
43319         * doc/posix-functions/llrint.texi: Likewise.
43320         * doc/posix-functions/llrintf.texi: Likewise.
43321         * doc/posix-functions/llrintl.texi: Likewise.
43322         * doc/posix-functions/lockf.texi: Likewise.
43323         * doc/posix-functions/lrintl.texi: Likewise.
43324         * doc/posix-functions/mkdirat.texi: Likewise.
43325         * doc/posix-functions/mkfifoat.texi: Likewise.
43326         * doc/posix-functions/mknodat.texi: Likewise.
43327         * doc/posix-functions/mq_close.texi: Likewise.
43328         * doc/posix-functions/mq_getattr.texi: Likewise.
43329         * doc/posix-functions/mq_notify.texi: Likewise.
43330         * doc/posix-functions/mq_open.texi: Likewise.
43331         * doc/posix-functions/mq_receive.texi: Likewise.
43332         * doc/posix-functions/mq_send.texi: Likewise.
43333         * doc/posix-functions/mq_setattr.texi: Likewise.
43334         * doc/posix-functions/mq_timedreceive.texi: Likewise.
43335         * doc/posix-functions/mq_timedsend.texi: Likewise.
43336         * doc/posix-functions/mq_unlink.texi: Likewise.
43337         * doc/posix-functions/open_memstream.texi: Likewise.
43338         * doc/posix-functions/openat.texi: Likewise.
43339         * doc/posix-functions/posix_fadvise.texi: Likewise.
43340         * doc/posix-functions/posix_fallocate.texi: Likewise.
43341         * doc/posix-functions/posix_madvise.texi: Likewise.
43342         * doc/posix-functions/posix_memalign.texi: Likewise.
43343         * doc/posix-functions/posix_openpt.texi: Likewise.
43344         * doc/posix-functions/readlinkat.texi: Likewise.
43345         * doc/posix-functions/remque.texi: Likewise.
43346         * doc/posix-functions/renameat.texi: Likewise.
43347         * doc/posix-functions/rintl.texi: Likewise.
43348         * doc/posix-functions/sem_unlink.texi: Likewise.
43349         * doc/posix-functions/shm_open.texi: Likewise.
43350         * doc/posix-functions/shm_unlink.texi: Likewise.
43351         * doc/posix-functions/signgam.texi: Likewise.
43352         * doc/posix-functions/sigset.texi: Likewise.
43353         * doc/posix-functions/stpcpy.texi: Likewise.
43354         * doc/posix-functions/stpncpy.texi: Likewise.
43355         * doc/posix-functions/strerror.texi: Likewise.
43356         * doc/posix-functions/strtod.texi: Likewise.
43357         * doc/posix-functions/symlinkat.texi: Likewise.
43358         * doc/posix-functions/unlinkat.texi: Likewise.
43359         * doc/posix-functions/utimensat.texi: Likewise.
43360         * doc/glibc-functions/bindresvport.texi: Likewise.
43361         * doc/glibc-functions/dn_expand.texi: Likewise.
43362         * doc/glibc-functions/exp10.texi: Likewise.
43363         * doc/glibc-functions/exp10f.texi: Likewise.
43364         * doc/glibc-functions/fgetxattr.texi: Likewise.
43365         * doc/glibc-functions/flistxattr.texi: Likewise.
43366         * doc/glibc-functions/fopencookie.texi: Likewise.
43367         * doc/glibc-functions/freeifaddrs.texi: Likewise.
43368         * doc/glibc-functions/fremovexattr.texi: Likewise.
43369         * doc/glibc-functions/fsetxattr.texi: Likewise.
43370         * doc/glibc-functions/getifaddrs.texi: Likewise.
43371         * doc/glibc-functions/getxattr.texi: Likewise.
43372         * doc/glibc-functions/lgetxattr.texi: Likewise.
43373         * doc/glibc-functions/listxattr.texi: Likewise.
43374         * doc/glibc-functions/llistxattr.texi: Likewise.
43375         * doc/glibc-functions/lremovexattr.texi: Likewise.
43376         * doc/glibc-functions/lsetxattr.texi: Likewise.
43377         * doc/glibc-functions/pow10.texi: Likewise.
43378         * doc/glibc-functions/pow10f.texi: Likewise.
43379         * doc/glibc-functions/rcmd_af.texi: Likewise.
43380         * doc/glibc-functions/removexattr.texi: Likewise.
43381         * doc/glibc-functions/res_init.texi: Likewise.
43382         * doc/glibc-functions/res_mkquery.texi: Likewise.
43383         * doc/glibc-functions/res_query.texi: Likewise.
43384         * doc/glibc-functions/res_querydomain.texi: Likewise.
43385         * doc/glibc-functions/res_send.texi: Likewise.
43386         * doc/glibc-functions/rresvport_af.texi: Likewise.
43387         * doc/glibc-functions/setxattr.texi: Likewise.
43388         * doc/glibc-functions/strcasestr.texi: Likewise.
43389
43390 2008-12-15  Bruno Haible  <bruno@clisp.org>
43391
43392         Fix compilation error on OSF/1 4.0.
43393         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
43394         <sys/time.h>, simply delegate to the system header.
43395         Reported by Daniel Richard G. <oss@teragram.com>.
43396
43397 2008-12-15  Bruno Haible  <bruno@clisp.org>
43398
43399         * doc/posix-functions/openat.texi: Mention the 'openat' module.
43400         * doc/posix-functions/fchmodat.texi: Likewise.
43401         * doc/posix-functions/fchownat.texi: Likewise.
43402         * doc/posix-functions/fdopendir.texi: Likewise.
43403         * doc/posix-functions/fstatat.texi: Likewise.
43404         * doc/posix-functions/mkdirat.texi: Likewise.
43405         * doc/posix-functions/unlinkat.texi: Likewise.
43406
43407 2008-12-14  Bruno Haible  <bruno@clisp.org>
43408
43409         Update doc for POSIX:2008.
43410         * doc/posix-functions/faccessat.texi: New file.
43411         * doc/posix-functions/fchmodat.texi: New file.
43412         * doc/posix-functions/fchownat.texi: New file.
43413         * doc/posix-functions/fdopendir.texi: New file.
43414         * doc/posix-functions/fstatat.texi: New file.
43415         * doc/posix-functions/futimens.texi: New file.
43416         * doc/posix-functions/linkat.texi: New file.
43417         * doc/posix-functions/mkdirat.texi: New file.
43418         * doc/posix-functions/mkfifoat.texi: New file.
43419         * doc/posix-functions/mknodat.texi: New file.
43420         * doc/posix-functions/open_wmemstream.texi: New file.
43421         * doc/posix-functions/openat.texi: New file.
43422         * doc/posix-functions/psiginfo.texi: New file.
43423         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
43424         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
43425         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
43426         * doc/posix-functions/readlinkat.texi: New file.
43427         * doc/posix-functions/renameat.texi: New file.
43428         * doc/posix-functions/strerror_l.texi: New file.
43429         * doc/posix-functions/symlinkat.texi: New file.
43430         * doc/posix-functions/unlinkat.texi: New file.
43431         * doc/posix-functions/utimensat.texi: New file.
43432         * doc/gnulib.texi (Function Substitutes): Add these subsections.
43433
43434 2008-12-14  Bruno Haible  <bruno@clisp.org>
43435
43436         Update doc for POSIX:2008.
43437         * doc/posix-functions/alphasort.texi: Renamed from
43438         doc/glibc-functions/alphasort.texi.
43439         * doc/posix-functions/dirfd.texi: Renamed from
43440         doc/glibc-functions/dirfd.texi.
43441         * doc/posix-functions/dprintf.texi: Renamed from
43442         doc/glibc-functions/dprintf.texi.
43443         * doc/posix-functions/duplocale.texi: Renamed from
43444         doc/glibc-functions/duplocale.texi.
43445         * doc/posix-functions/fexecve.texi: Renamed from
43446         doc/glibc-functions/fexecve.texi.
43447         * doc/posix-functions/fmemopen.texi: Renamed from
43448         doc/glibc-functions/fmemopen.texi.
43449         * doc/posix-functions/freelocale.texi: Renamed from
43450         doc/glibc-functions/freelocale.texi.
43451         * doc/posix-functions/getdate_err.texi: Renamed from
43452         doc/glibc-functions/getdate_err.texi.
43453         * doc/posix-functions/isalnum_l.texi: Renamed from
43454         doc/glibc-functions/isalnum_l.texi.
43455         * doc/posix-functions/isalpha_l.texi: Renamed from
43456         doc/glibc-functions/isalpha_l.texi.
43457         * doc/posix-functions/isblank_l.texi: Renamed from
43458         doc/glibc-functions/isblank_l.texi.
43459         * doc/posix-functions/iscntrl_l.texi: Renamed from
43460         doc/glibc-functions/iscntrl_l.texi.
43461         * doc/posix-functions/isdigit_l.texi: Renamed from
43462         doc/glibc-functions/isdigit_l.texi.
43463         * doc/posix-functions/isgraph_l.texi: Renamed from
43464         doc/glibc-functions/isgraph_l.texi.
43465         * doc/posix-functions/islower_l.texi: Renamed from
43466         doc/glibc-functions/islower_l.texi.
43467         * doc/posix-functions/isprint_l.texi: Renamed from
43468         doc/glibc-functions/isprint_l.texi.
43469         * doc/posix-functions/ispunct_l.texi: Renamed from
43470         doc/glibc-functions/ispunct_l.texi.
43471         * doc/posix-functions/isspace_l.texi: Renamed from
43472         doc/glibc-functions/isspace_l.texi.
43473         * doc/posix-functions/isupper_l.texi: Renamed from
43474         doc/glibc-functions/isupper_l.texi.
43475         * doc/posix-functions/iswalnum_l.texi: Renamed from
43476         doc/glibc-functions/iswalnum_l.texi.
43477         * doc/posix-functions/iswalpha_l.texi: Renamed from
43478         doc/glibc-functions/iswalpha_l.texi.
43479         * doc/posix-functions/iswblank_l.texi: Renamed from
43480         doc/glibc-functions/iswblank_l.texi.
43481         * doc/posix-functions/iswcntrl_l.texi: Renamed from
43482         doc/glibc-functions/iswcntrl_l.texi.
43483         * doc/posix-functions/iswctype_l.texi: Renamed from
43484         doc/glibc-functions/iswctype_l.texi.
43485         * doc/posix-functions/iswdigit_l.texi: Renamed from
43486         doc/glibc-functions/iswdigit_l.texi.
43487         * doc/posix-functions/iswgraph_l.texi: Renamed from
43488         doc/glibc-functions/iswgraph_l.texi.
43489         * doc/posix-functions/iswlower_l.texi: Renamed from
43490         doc/glibc-functions/iswlower_l.texi.
43491         * doc/posix-functions/iswprint_l.texi: Renamed from
43492         doc/glibc-functions/iswprint_l.texi.
43493         * doc/posix-functions/iswpunct_l.texi: Renamed from
43494         doc/glibc-functions/iswpunct_l.texi.
43495         * doc/posix-functions/iswspace_l.texi: Renamed from
43496         doc/glibc-functions/iswspace_l.texi.
43497         * doc/posix-functions/iswupper_l.texi: Renamed from
43498         doc/glibc-functions/iswupper_l.texi.
43499         * doc/posix-functions/iswxdigit_l.texi: Renamed from
43500         doc/glibc-functions/iswxdigit_l.texi.
43501         * doc/posix-functions/isxdigit_l.texi: Renamed from
43502         doc/glibc-functions/isxdigit_l.texi.
43503         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
43504         doc/glibc-functions/mbsnrtowcs.texi.
43505         * doc/posix-functions/mkdtemp.texi: Renamed from
43506         doc/glibc-functions/mkdtemp.texi.
43507         * doc/posix-functions/newlocale.texi: Renamed from
43508         doc/glibc-functions/newlocale.texi.
43509         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
43510         doc/glibc-functions/nl_langinfo_l.texi.
43511         * doc/posix-functions/open_memstream.texi: Renamed from
43512         doc/glibc-functions/open_memstream.texi.
43513         * doc/posix-functions/opterr.texi: Renamed from
43514         doc/glibc-functions/opterr.texi.
43515         * doc/posix-functions/optind.texi: Renamed from
43516         doc/glibc-functions/optind.texi.
43517         * doc/posix-functions/optopt.texi: Renamed from
43518         doc/glibc-functions/optopt.texi.
43519         * doc/posix-functions/psignal.texi: Renamed from
43520         doc/glibc-functions/psignal.texi.
43521         * doc/posix-functions/scandir.texi: Renamed from
43522         doc/glibc-functions/scandir.texi.
43523         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
43524         doc/glibc-functions/sched_get_priority_min.texi.
43525         * doc/posix-functions/signgam.texi: Renamed from
43526         doc/glibc-functions/signgam.texi.
43527         * doc/posix-functions/stpcpy.texi: Renamed from
43528         doc/glibc-functions/stpcpy.texi.
43529         * doc/posix-functions/stpncpy.texi: Renamed from
43530         doc/glibc-functions/stpncpy.texi.
43531         * doc/posix-functions/strcasecmp_l.texi: Renamed from
43532         doc/glibc-functions/strcasecmp_l.texi.
43533         * doc/posix-functions/strcoll_l.texi: Renamed from
43534         doc/glibc-functions/strcoll_l.texi.
43535         * doc/posix-functions/strfmon_l.texi: Renamed from
43536         doc/glibc-functions/strfmon_l.texi.
43537         * doc/posix-functions/strftime_l.texi: Renamed from
43538         doc/glibc-functions/strftime_l.texi.
43539         * doc/posix-functions/strncasecmp_l.texi: Renamed from
43540         doc/glibc-functions/strncasecmp_l.texi.
43541         * doc/posix-functions/strndup.texi: Renamed from
43542         doc/glibc-functions/strndup.texi.
43543         * doc/posix-functions/strnlen.texi: Renamed from
43544         doc/glibc-functions/strnlen.texi.
43545         * doc/posix-functions/strsignal.texi: Renamed from
43546         doc/glibc-functions/strsignal.texi.
43547         * doc/posix-functions/strxfrm_l.texi: Renamed from
43548         doc/glibc-functions/strxfrm_l.texi.
43549         * doc/posix-functions/timer_gettime.texi: Renamed from
43550         doc/glibc-functions/timer_gettime.texi.
43551         * doc/posix-functions/tolower_l.texi: Renamed from
43552         doc/glibc-functions/tolower_l.texi.
43553         * doc/posix-functions/toupper_l.texi: Renamed from
43554         doc/glibc-functions/toupper_l.texi.
43555         * doc/posix-functions/towctrans_l.texi: Renamed from
43556         doc/glibc-functions/towctrans_l.texi.
43557         * doc/posix-functions/towlower_l.texi: Renamed from
43558         doc/glibc-functions/towlower_l.texi.
43559         * doc/posix-functions/towupper_l.texi: Renamed from
43560         doc/glibc-functions/towupper_l.texi.
43561         * doc/posix-functions/uselocale.texi: Renamed from
43562         doc/glibc-functions/uselocale.texi.
43563         * doc/posix-functions/vdprintf.texi: Renamed from
43564         doc/glibc-functions/vdprintf.texi.
43565         * doc/posix-functions/wcpcpy.texi:
43566         Renamed from doc/glibc-functions/wcpcpy.texi.
43567         * doc/posix-functions/wcpncpy.texi: Renamed from
43568         doc/glibc-functions/wcpncpy.texi.
43569         * doc/posix-functions/wcscasecmp.texi: Renamed from
43570         doc/glibc-functions/wcscasecmp.texi.
43571         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
43572         doc/glibc-functions/wcscasecmp_l.texi.
43573         * doc/posix-functions/wcscoll_l.texi: Renamed from
43574         doc/glibc-functions/wcscoll_l.texi.
43575         * doc/posix-functions/wcsdup.texi: Renamed from
43576         doc/glibc-functions/wcsdup.texi.
43577         * doc/posix-functions/wcsncasecmp.texi: Renamed from
43578         doc/glibc-functions/wcsncasecmp.texi.
43579         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
43580         doc/glibc-functions/wcsncasecmp_l.texi.
43581         * doc/posix-functions/wcsnlen.texi: Renamed from
43582         doc/glibc-functions/wcsnlen.texi.
43583         * doc/posix-functions/wcsnrtombs.texi: Renamed from
43584         doc/glibc-functions/wcsnrtombs.texi.
43585         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
43586         doc/glibc-functions/wcsxfrm_l.texi.
43587         * doc/posix-functions/wctrans_l.texi: Renamed from
43588         doc/glibc-functions/wctrans_l.texi.
43589         * doc/posix-functions/wctype_l.texi: Renamed from
43590         doc/glibc-functions/wctype_l.texi.
43591         * doc/gnulib.texi (Function Substitutes): Add these subsections.
43592         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
43593         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
43594         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
43595         these subsections.
43596         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
43597         Remove sections.
43598
43599 2008-12-14  Bruno Haible  <bruno@clisp.org>
43600
43601         Update doc for POSIX:2008.
43602         * doc/posix-functions/*.texi: Update URL of POSIX specification.
43603
43604 2008-12-14  Bruno Haible  <bruno@clisp.org>
43605
43606         Update doc for POSIX:2008.
43607         * doc/pastposix-functions/bcmp.texi: Renamed from
43608         doc/posix-functions/bcmp.texi.
43609         * doc/pastposix-functions/bcopy.texi: Renamed from
43610         doc/posix-functions/bcopy.texi.
43611         * doc/pastposix-functions/bsd_signal.texi: Renamed from
43612         doc/posix-functions/bsd_signal.texi.
43613         * doc/pastposix-functions/bzero.texi: Renamed from
43614         doc/posix-functions/bzero.texi.
43615         * doc/pastposix-functions/ecvt.texi: Renamed from
43616         doc/posix-functions/ecvt.texi.
43617         * doc/pastposix-functions/fcvt.texi: Renamed from
43618         doc/posix-functions/fcvt.texi.
43619         * doc/pastposix-functions/ftime.texi: Renamed from
43620         doc/posix-functions/ftime.texi.
43621         * doc/pastposix-functions/gcvt.texi: Renamed from
43622         doc/posix-functions/gcvt.texi.
43623         * doc/pastposix-functions/getcontext.texi: Renamed from
43624         doc/posix-functions/getcontext.texi.
43625         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
43626         doc/posix-functions/gethostbyaddr.texi.
43627         * doc/pastposix-functions/gethostbyname.texi: Renamed from
43628         doc/posix-functions/gethostbyname.texi.
43629         * doc/pastposix-functions/getwd.texi: Renamed from
43630         doc/posix-functions/getwd.texi.
43631         * doc/pastposix-functions/h_errno.texi: Renamed from
43632         doc/posix-functions/h_errno.texi.
43633         * doc/pastposix-functions/index.texi: Renamed from
43634         doc/posix-functions/index.texi.
43635         * doc/pastposix-functions/makecontext.texi: Renamed from
43636         doc/posix-functions/makecontext.texi.
43637         * doc/pastposix-functions/mktemp.texi: Renamed from
43638         doc/posix-functions/mktemp.texi.
43639         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
43640         doc/posix-functions/pthread_attr_getstackaddr.texi.
43641         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
43642         doc/posix-functions/pthread_attr_setstackaddr.texi.
43643         * doc/pastposix-functions/rindex.texi: Renamed from
43644         doc/posix-functions/rindex.texi.
43645         * doc/pastposix-functions/scalb.texi: Renamed from
43646         doc/posix-functions/scalb.texi.
43647         * doc/pastposix-functions/setcontext.texi: Renamed from
43648         doc/posix-functions/setcontext.texi.
43649         * doc/pastposix-functions/swapcontext.texi: Renamed from
43650         doc/posix-functions/swapcontext.texi.
43651         * doc/pastposix-functions/ualarm.texi: Renamed from
43652         doc/posix-functions/ualarm.texi.
43653         * doc/pastposix-functions/usleep.texi: Renamed from
43654         doc/posix-functions/usleep.texi.
43655         * doc/pastposix-functions/vfork.texi: Renamed from
43656         doc/posix-functions/vfork.texi.
43657         * doc/pastposix-functions/wcswcs.texi: Renamed from
43658         doc/posix-functions/wcswcs.texi.
43659         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
43660         (Function Substitutes): Update.
43661
43662 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43663
43664         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
43665         m4/strerror.m4.
43666
43667 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43668             Bruno Haible  <bruno@clisp.org>
43669
43670         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
43671
43672 2008-12-13  Bruno Haible  <bruno@clisp.org>
43673
43674         * modules/strtoull (Depends-on): Remove unistd.
43675
43676 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43677
43678         * modules/strtoull (Depends-on): Add stdlib.
43679
43680 2008-12-11  Simon Josefsson  <simon@josefsson.org>
43681
43682         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
43683
43684 2008-12-10  Jim Meyering  <meyering@redhat.com>
43685
43686         gl_ASSERT: don't say assertions are disabled when they're not
43687         * m4/assert.m4 (gl_ASSERT): Do not make configure report
43688         "checking whether to enable assertions... no", when they are in
43689         fact enabled.  This is solely a bug in the output of configure.
43690         In spite of saying "no", NDEBUG was not defined in that case.
43691         Also, as noted by Eric Blake, leave assertions enabled upon
43692         --enable-assert=INVALID.
43693
43694 2008-12-10  Bruno Haible  <bruno@clisp.org>
43695
43696         Change MODULES.html to refer to POSIX:2008 where possible.
43697         * MODULES.html.sh (POSIX2008_URL): New variable.
43698         (posix_headers): Remove sys/timeb, ucontext.
43699         (posix2001_headers): New variable.
43700         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
43701         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
43702         index, makecontext, mktemp, pthread_attr_getstackaddr,
43703         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
43704         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
43705         (posix2001_functions): New variable.
43706         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
43707         otherwise.
43708
43709 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43710
43711         add missing include to parse-duration.c
43712         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
43713         * modules/parse-duration (Depends-on): Add xalloc.
43714
43715         fix sed script reading maint.mk
43716         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
43717         (syntax-check-rules): Use it.
43718
43719 2008-12-09  Bruno Haible  <bruno@clisp.org>
43720
43721         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
43722         MacOS X 10.4/PowerPC.
43723         Reported by Simon Josefsson.
43724
43725 2008-12-08  Jim Meyering  <meyering@redhat.com>
43726
43727         work around mingw's lack of some S_IF definitions
43728         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
43729         Reported by Simon Josefsson.
43730
43731 2008-12-08  Bruno Haible  <bruno@clisp.org>
43732
43733         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
43734         applied to variables. Needed on MacOS X 10.4/PowerPC.
43735         Reported by Simon Josefsson.
43736
43737 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
43738         and Eric Blake  <ebb9@byu.net>
43739
43740         assert: honor --enable-assert
43741         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
43742         order to honor --enable-assert, rather than treating it as a
43743         synonym for --disable-assert.
43744
43745 2008-12-08  Jim Meyering  <meyering@redhat.com>
43746
43747         * lib/posixtm.c: Remove now-useless declaration of mktime.
43748
43749         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
43750
43751 2008-12-07  Bruno Haible  <bruno@clisp.org>
43752
43753         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
43754         test_once): Mark functions as static.
43755         * tests/test-tls.c (test_tls): Likewise.
43756
43757 2008-12-07  Bruno Haible  <bruno@clisp.org>
43758
43759         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
43760         iconv_register_autodetect.
43761
43762 2008-12-07  Jim Meyering  <meyering@redhat.com>
43763
43764         posixtm.c: avoid a warning
43765         * lib/posixtm.c (posixtime): Don't initialize tm0.
43766         It's no longer needed to placate gcc4's -Wuninitialized,
43767         and the attempt to placate would elicit a new warning.
43768
43769         unicodeio.c: mark unused parameters
43770         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
43771         (fallback_failure_callback): Likewise.
43772
43773 2008-12-07  Bruno Haible  <bruno@clisp.org>
43774
43775         * gnulib-tool (func_create_testdir): When building the tests
43776         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
43777         Reported by Simon Josefsson.
43778
43779 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43780
43781         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
43782
43783 2008-12-06  Bruno Haible  <bruno@clisp.org>
43784
43785         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
43786         Suggested by Eric Blake.
43787
43788 2008-12-06  Bruno Haible  <bruno@clisp.org>
43789
43790         Fix a c-stack test failure on MacOS X.
43791         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
43792         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
43793         handler for SIGBUS as well.
43794         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
43795         install a signal handler for SIGBUS as well.
43796         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
43797
43798 2008-12-06  Bruno Haible  <bruno@clisp.org>
43799
43800         Advocacy documentation.
43801         * doc/gnulib-intro.texi (Benefits): New section.
43802         * doc/gnulib.texi: Update.
43803
43804 2008-12-06  Bruno Haible  <bruno@clisp.org>
43805
43806         Document the 'manywarnings' module.
43807         * doc/manywarnings.texi: New file.
43808         * doc/gnulib.texi: Include it.
43809
43810 2008-12-05  Eric Blake  <ebb9@byu.net>
43811
43812         tests: silence some gcc warnings
43813         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
43814         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
43815         type mismatches.
43816
43817 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43818             Bruno Haible  <bruno@clisp.org>
43819
43820         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
43821
43822 2008-11-29  Jim Meyering  <meyering@redhat.com>
43823
43824         unicodeio.c: mark unused parameters
43825         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
43826         (fallback_failure_callback): Likewise.
43827
43828         fts: fix a thinko
43829         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
43830         (set_stat_type): Return S_IF*-valued "type" directly.
43831         Prompted by James Youngman's spotting a related bug.
43832         Confirmed by further testing through find.
43833
43834         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
43835         * lib/fts.c (D_TYPE): Define.
43836         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
43837         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
43838         (s_ifmt_shift_bits): New function.
43839         (set_stat_type): New function.
43840         (fts_build): When not calling fts_stat, call set_stat_type
43841         to propagate dirent.d_type info to fts_read caller.
43842         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
43843         fts_statp->st_mode type information may be valid.
43844
43845 2008-11-28  Simon Josefsson  <simon@josefsson.org>
43846
43847         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
43848         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
43849         <sds@gnu.org>.
43850
43851 2008-11-20  Bruno Haible  <bruno@clisp.org>
43852
43853         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
43854         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
43855         INCLUDE_NEXT.
43856         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
43857         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
43858         * modules/math (Makefile.am): Substitute
43859         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
43860         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
43861
43862 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
43863             Bruno Haible  <bruno@clisp.org>
43864
43865         * lib/stdint.in.h: Define all type macros so that their expansion is
43866         a single typedef'ed token. Fixes a compilation failure in Boost which
43867         does "using ::int8_t;".
43868
43869 2008-11-18  Simon Josefsson  <simon@josefsson.org>
43870
43871         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
43872         gl_MANYWARN_ALL_GCC.
43873         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
43874         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
43875         * modules/manywarnings: New file.
43876         * MODULES.html.sh: Mention manywarnings module.
43877
43878 2008-11-18  Bruno Haible  <bruno@clisp.org>
43879
43880         * doc/gnulib-tool.texi (Unit tests): New section.
43881
43882 2008-11-18  Simon Josefsson  <simon@josefsson.org>
43883
43884         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
43885         paths like 'lib/po/foo.po'.
43886
43887 2008-11-17  Simon Josefsson  <simon@josefsson.org>
43888
43889         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
43890         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
43891
43892 2008-11-17  Simon Josefsson  <simon@josefsson.org>
43893
43894         * m4/warnings.m4: Use CPPFLAGS to really check whether the
43895         parameter works.
43896
43897 2008-11-17  Simon Josefsson  <simon@josefsson.org>
43898
43899         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
43900
43901 2008-11-17  Bruce Korb  <bkorb@gnu.org>
43902
43903         * modules/parse-duration-tests: New file.
43904         * tests/test-parse-duration.sh: New file.
43905         * tests/test-parse-duration.c: New file.
43906
43907         New module 'parse-duration'.
43908         * lib/parse-duration.h: New file.
43909         * lib/parse-duration.c: New file.
43910         * modules/parse-duration: New file.
43911
43912 2008-11-17  Bruno Haible  <bruno@clisp.org>
43913
43914         * tests/test-select-out.sh: Comment out the first pipe test.
43915         Reported by Simon Josefsson.
43916
43917 2008-11-17  Bruno Haible  <bruno@clisp.org>
43918
43919         * modules/getaddrinfo (Depends-on): Add servent, hostent.
43920         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
43921         gl_HOSTENT.
43922
43923 2008-11-17  Bruno Haible  <bruno@clisp.org>
43924
43925         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
43926         -lnetwork and -lnet. Needed for Haiku and BeOS.
43927
43928 2008-11-16  Bruno Haible  <bruno@clisp.org>
43929
43930         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
43931
43932 2008-11-16  Bruno Haible  <bruno@clisp.org>
43933
43934         Avoid test failure on Haiku.
43935         * tests/test-fsync.c: Include <errno.h>.
43936         (main): Don't require that fsync (0) fails.
43937
43938 2008-11-15  Bruno Haible  <bruno@clisp.org>
43939
43940         New module 'hostent'.
43941         * modules/hostent: New file.
43942         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
43943
43944 2008-11-15  Bruno Haible  <bruno@clisp.org>
43945
43946         New module 'servent'.
43947         * modules/servent: New file.
43948         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
43949
43950 2008-11-15  Bruno Haible  <bruno@clisp.org>
43951
43952         Avoid generating same test program with two different rules.
43953         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
43954         test-frexp to test-frexp-nolibm.
43955         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
43956         test-frexpl to test-frexpl-nolibm.
43957
43958 2008-11-15  Bruno Haible  <bruno@clisp.org>
43959
43960         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
43961         $(FREXPL_LIBM).
43962
43963 2008-11-15  Bruno Haible  <bruno@clisp.org>
43964
43965         * lib/netdb.in.h: Activate the definitions also when the system's
43966         <netdb.h> has 'struct addrinfo'.
43967         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
43968         EAI_OVERFLOW or AI_NUMERICSERV.
43969         * doc/posix-headers/netdb.texi: Document the problem.
43970
43971 2008-11-15  Bruno Haible  <bruno@clisp.org>
43972
43973         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
43974
43975         Make the 'sched' module work on platforms where <sched.h> exists but
43976         is incomplete (such as Haiku).
43977         * lib/sched.in.h; Include the system's <sched.h> if it exists.
43978         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
43979         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
43980         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
43981         HAVE_STRUCT_SCHED_PARAM.
43982         * modules/sched (Depends-on): Add include_next.
43983         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
43984         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
43985         * doc/posix-headers/sched.texi: Document the issue.
43986
43987 2008-11-13  Jim Meyering  <meyering@redhat.com>
43988
43989         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
43990         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
43991         test would fail due to the difference in the Report bugs to ...
43992         line.  The expected address is empty, "<>", while the actual
43993         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
43994
43995 2008-11-12  Bruno Haible  <bruno@clisp.org>
43996
43997         lstat: don't compile lstat.c on systems lacking lstat
43998         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
43999         which don't have lstat; this is handled by lib/sys_stat.in.h already.
44000         Reported by Daniel P. Berrange via Jim Meyering.
44001
44002 2008-11-12  Jim Meyering  <meyering@redhat.com>
44003
44004         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
44005
44006 2008-11-12  Simon Josefsson  <simon@josefsson.org>
44007
44008         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
44009         instead.
44010
44011 2008-11-12  Bruno Haible  <bruno@clisp.org>
44012
44013         * lib/unicodeio.c: Include unistr.h.
44014         (utf8_wctomb): Remove function.
44015         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
44016
44017 2008-11-12  Simon Josefsson  <simon@josefsson.org>
44018
44019         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
44020         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
44021         <bruno@clisp.org>.
44022         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
44023
44024 2008-11-12  Simon Josefsson  <simon@josefsson.org>
44025
44026         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
44027         * doc/gnulib.texi: Add section for warnings.
44028
44029 2008-11-11  Bruno Haible  <bruno@clisp.org>
44030
44031         * lib/sockets.h: Add a comment.
44032
44033 2008-11-11  Karl Berry  <karl@gnu.org>
44034
44035         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
44036
44037 2008-11-11  Eric Blake  <ebb9@byu.net>
44038
44039         fdl.texi: avoid git symlinks
44040         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
44041
44042 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
44043
44044         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
44045
44046 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
44047
44048         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
44049         (gl_WARN_ADD): Substitute $2 if literal.
44050
44051 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
44052
44053         * m4/warning.m4: Remove.
44054
44055 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
44056
44057         * m4/warnings.m4: Almost complete rewrite. :-)
44058
44059 2008-11-10  Simon Josefsson  <simon@josefsson.org>
44060
44061         * modules/warnings: New module.
44062         * m4/warnings.m4: New file.
44063         * MODULES.html.sh: Mention warnings module.
44064         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
44065         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
44066
44067 2008-11-10  Eric Blake  <ebb9@byu.net>
44068
44069         fdl.texi: make a symlink to the latest version
44070         * doc/standards.texi: Revert today's earlier change.
44071         * doc/fdl-1.2.texi: Rename from old fdl.texi...
44072         * doc/fdl.texi: ...and replace this with a symlink to the newer
44073         fdl-1.3.texi.
44074
44075 2008-11-10  Bruno Haible  <bruno@clisp.org>
44076
44077         * tests/test-select-fd.c (main): Accept the result file name as fourth
44078         argument.
44079         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
44080         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
44081
44082 2008-11-10  Bruno Haible  <bruno@clisp.org>
44083
44084         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
44085         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
44086         as autoconf-substituted macros.
44087         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
44088         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
44089         gl_NETDB_H_DEFAULTS. Set these variables.
44090         * modules/netdb (Makefile.am): Substitute these variables.
44091
44092 2008-11-10  Eric Blake  <ebb9@byu.net>
44093
44094         standards.texi: include correct file for FDL 1.3
44095         * doc/standards.texi (GNU Free Documentation License): Change
44096         include file to pull in FDL 1.3, not 1.2.
44097
44098         fdl.texi: revert accidental change to license
44099         * doc/fdl.texi: This is FDL 1.2, not 1.3.
44100
44101 2008-11-10  Bruno Haible  <bruno@clisp.org>
44102
44103         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
44104         cross-compiling guesses also when the native compile gives no result.
44105
44106 2008-11-10  Bruno Haible  <bruno@clisp.org>
44107
44108         * lib/spawni.c (__spawni): Force variable into the stack.
44109
44110 2008-11-10  Bruno Haible  <bruno@clisp.org>
44111
44112         Add support for Haiku.
44113         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
44114         glibc and BeOS, but also on Haiku.
44115         * lib/fpurge.c (fpurge): Likewise.
44116         * lib/freadable.c (freadable): Likewise.
44117         * lib/freadahead.c (freadahead): Likewise.
44118         * lib/freading.c (freading): Likewise.
44119         * lib/freadptr.c (freadptr): Likewise.
44120         * lib/freadseek.c (freadptrinc): Likewise.
44121         * lib/fseeko.c (rpl_fseeko): Likewise.
44122         * lib/fseterr.c (fseterr): Likewise.
44123         * lib/fwritable.c (fwritable): Likewise.
44124         * lib/fwriting.c (fwriting): Likewise.
44125         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
44126
44127 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
44128
44129         * lib/config.charset: Treat Haiku like BeOS.
44130
44131 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
44132
44133         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
44134         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
44135
44136 2008-11-08  Bruno Haible  <bruno@clisp.org>
44137
44138         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
44139         AC_CACHE_CHECK.
44140
44141 2008-11-08  Bruno Haible  <bruno@clisp.org>
44142
44143         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
44144
44145 2008-11-08  Bruno Haible  <bruno@clisp.org>
44146
44147         * tests/test-select-fd.c: New file.
44148         * tests/test-select-in.sh: New file.
44149         * tests/test-select-out.sh: New file.
44150         * tests/test-select-stdin.c: New file.
44151         * modules/select-tests (Files): Add the new files.
44152         (Depends-on): Add gettimeofday.
44153         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
44154         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
44155         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
44156
44157 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
44158             Bruno Haible  <bruno@clisp.org>
44159
44160         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
44161
44162 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
44163
44164         * build-aux/pmccabe2html: Added support for C++ source files.
44165
44166 2008-11-05  Ben Pfaff  <blp@gnu.org>
44167
44168         Fix lib/close.c build on Windows.
44169         * modules/close (Files): Add lib/w32sock.h.
44170
44171 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
44172
44173         Accept Bison's NEWS format.
44174         * build-aux/announce-gen (print_news_deltas): Tweak
44175         $re_prefix.
44176
44177 2008-11-04  Bruno Haible  <bruno@clisp.org>
44178
44179         * modules/random_r (Maintainer): Add glibc.
44180
44181 2008-11-04  Simon Josefsson  <simon@josefsson.org>
44182
44183         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
44184         by karl@freefriends.org (Karl Berry).
44185         * doc/alloca.texi: Likewise.
44186         * doc/c-ctype.texi: Likewise.
44187         * doc/c-strcase.texi: Likewise.
44188         * doc/c-strcaseeq.texi: Likewise.
44189         * doc/c-strcasestr.texi: Likewise.
44190         * doc/c-strstr.texi: Likewise.
44191         * doc/c-strtod.texi: Likewise.
44192         * doc/c-strtold.texi: Likewise.
44193         * doc/ctime.texi: Likewise.
44194         * doc/error.texi: Likewise.
44195         * doc/fdl.texi: Likewise.
44196         * doc/gcd.texi: Likewise.
44197         * doc/getdate.texi: Likewise.
44198         * doc/gnulib-intro.texi: Likewise.
44199         * doc/gnulib-tool.texi: Likewise.
44200         * doc/gnulib.texi: Likewise.
44201         * doc/inet_ntoa.texi: Likewise.
44202         * doc/maintain.texi: Likewise.
44203         * doc/make-stds.texi: Likewise.
44204         * doc/quote.texi: Likewise.
44205         * doc/regexprops-generic.texi: Likewise.
44206         * doc/standards.texi: Likewise.
44207         * doc/verify.texi: Likewise.
44208         * doc/visibility.texi: Likewise.
44209         * doc/gnulib.texi (GNU Free Documentation License): Include
44210         fdl-1.3.texi instead of fdl.texi.
44211
44212 2008-11-04  Simon Josefsson  <simon@josefsson.org>
44213
44214         * doc/fdl-1.3.texi: New file, from
44215         <http://www.gnu.org/licenses/fdl-1.3.texi>.
44216         * modules/fdl-1.3: Add.
44217         * MODULES.html.sh: Add fdl-1.3.
44218
44219 2008-11-03  Bruno Haible  <bruno@clisp.org>
44220
44221         Make determination of absolute name of header file work with AIX xlc.
44222         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
44223         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
44224         preprocessing.
44225         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
44226         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
44227
44228 2008-11-03  Simon Josefsson  <simon@josefsson.org>
44229
44230         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
44231         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
44232         <ludo@gnu.org>.
44233
44234 2008-11-02  Bruno Haible  <bruno@clisp.org>
44235
44236         Mark 'strpbrk' obsolete.
44237         * modules/strpbrk (Status, Notice): New sections.
44238         * modules/strtok_r (Depends-on): Add strpbrk.
44239
44240 2008-11-02  Bruno Haible  <bruno@clisp.org>
44241
44242         Mark 'strdup' obsolete.
44243         * modules/strdup (Status, Notice): New sections.
44244         * modules/findprog (Depends-on): Add strdup.
44245         * modules/getaddrinfo (Depends-on): Likewise.
44246         * modules/localename (Depends-on): Likewise.
44247         * modules/relocatable-lib (Depends-on): Likewise.
44248         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
44249         * modules/relocatable-prog (Depends-on): Likewise.
44250         * modules/trim (Depends-on): Likewise.
44251         * modules/unictype/gen-ctype (Depends-on): Likewise.
44252         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
44253
44254 2008-11-02  Bruno Haible  <bruno@clisp.org>
44255
44256         Mark 'strcspn' obsolete.
44257         * modules/strcspn (Status, Notice): New sections.
44258
44259 2008-11-02  Bruno Haible  <bruno@clisp.org>
44260
44261         Mark 'rmdir' obsolete.
44262         * modules/rmdir (Status, Notice): New sections.
44263         * modules/clean-temp (Depends-on): Add rmdir.
44264         * modules/openat (Depends-on): Likewise.
44265
44266 2008-11-02  Bruno Haible  <bruno@clisp.org>
44267
44268         Mark 'raise' obsolete.
44269         * modules/raise (Status, Notice): New sections.
44270         (Include): Specify <signal.h>.
44271         * modules/stdio (Depends-on): Add raise.
44272         * modules/write (Depends-on): Likewise.
44273
44274 2008-11-02  Bruno Haible  <bruno@clisp.org>
44275
44276         Mark 'memset' obsolete.
44277         * modules/memset (Status, Notice): New sections.
44278
44279 2008-11-02  Bruno Haible  <bruno@clisp.org>
44280
44281         Mark 'memmove' obsolete.
44282         * modules/memmove (Status, Notice): New sections.
44283         * modules/argp (Depends-on): Add memmove.
44284         * modules/argz (Depends-on): Likewise.
44285         * modules/canonicalize (Depends-on): Likewise.
44286         * modules/canonicalize-lgpl (Depends-on): Likewise.
44287         * modules/fts (Depends-on): Likewise.
44288         * modules/getcwd (Depends-on): Likewise.
44289         * modules/human (Depends-on): Likewise.
44290         * modules/regex (Depends-on): Likewise.
44291         * modules/striconveh (Depends-on): Likewise.
44292         * modules/trim (Depends-on): Likewise.
44293         * modules/unistr/u8-move (Depends-on): Likewise.
44294         * modules/unistr/u16-move (Depends-on): Likewise.
44295         * modules/unistr/u32-move (Depends-on): Likewise.
44296
44297 2008-11-02  Bruno Haible  <bruno@clisp.org>
44298
44299         Mark 'memcpy' obsolete.
44300         * modules/memcpy (Status, Notice): New sections.
44301
44302 2008-11-02  Bruno Haible  <bruno@clisp.org>
44303
44304         Mark 'memcmp' obsolete.
44305         * modules/memcmp (Status, Notice): New sections.
44306         * modules/argmatch (Depends-on): Add memchr.
44307         * modules/backupfile (Depends-on): Likewise.
44308         * modules/c-strcasestr (Depends-on): Likewise.
44309         * modules/crypto/des (Depends-on): Likewise.
44310         * modules/csharpcomp (Depends-on): Likewise.
44311         * modules/fnmatch (Depends-on): Likewise.
44312         * modules/git-merge-changelog (Depends-on): Likewise.
44313         * modules/isnand (Depends-on): Likewise.
44314         * modules/isnand-nolibm (Depends-on): Likewise.
44315         * modules/isnanf (Depends-on): Likewise.
44316         * modules/isnanf-nolibm (Depends-on): Likewise.
44317         * modules/isnanl (Depends-on): Likewise.
44318         * modules/isnanl-nolibm (Depends-on): Likewise.
44319         * modules/mbchar (Depends-on): Likewise.
44320         * modules/memcoll (Depends-on): Likewise.
44321         * modules/quotearg (Depends-on): Likewise.
44322         * modules/regex (Depends-on): Likewise.
44323         * modules/relocatable-prog (Depends-on): Likewise.
44324         * modules/same (Depends-on): Likewise.
44325         * modules/signbit (Depends-on): Likewise.
44326         * modules/strcasestr-simple (Depends-on): Likewise.
44327         * modules/unictype/gen-ctype (Depends-on): Likewise.
44328         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
44329         * modules/uniname/uniname (Depends-on): Likewise.
44330         * modules/unistr/u8-cmp (Depends-on): Likewise.
44331
44332 2008-11-02  Bruno Haible  <bruno@clisp.org>
44333
44334         Mark 'memchr' obsolete.
44335         * modules/memchr (Status, Notice): New sections.
44336         * modules/argp (Depends-on): Add memchr.
44337         * modules/base64 (Depends-on): Likewise.
44338         * modules/c-strcasestr (Depends-on): Likewise.
44339         * modules/chdir-long (Depends-on): Likewise.
44340         * modules/fnmatch (Depends-on): Likewise.
44341         * modules/getsubopt (Depends-on): Likewise.
44342         * modules/git-merge-changelog (Depends-on): Likewise.
44343         * modules/glob (Depends-on): Likewise.
44344         * modules/strcasestr-simple (Depends-on): Likewise.
44345         * modules/strnlen (Depends-on): Likewise.
44346
44347 2008-11-02  Bruno Haible  <bruno@clisp.org>
44348
44349         Mark 'atexit' obsolete.
44350         * modules/atexit (Status, Notice): New sections.
44351         * modules/chdir-long (Depends-on): Add atexit.
44352         * modules/wait-process (Depends-on): Likewise.
44353
44354 2008-11-02  Bruno Haible  <bruno@clisp.org>
44355
44356         * gnulib-tool: New option --with-obsolete.
44357         (func_usage): Document it.
44358         (func_modules_transitive_closure): Drop obsolete dependencies if
44359         incobsolete is not true.
44360         (func_import): Read and save the incobsolete variable to the cache.
44361
44362 2008-11-02  Bruno Haible  <bruno@clisp.org>
44363
44364         * modules/TEMPLATE-EXTENDED: New field 'Status'.
44365         * gnulib-tool: New option --extract-status.
44366         (func_usage): Document it.
44367         (sed_extract_prog): Recognize it.
44368         (func_get_status): New function.
44369
44370 2008-10-30  Simon Josefsson  <simon@josefsson.org>
44371
44372         * modules/sockets (License): Change from LGPL to LGPLv2+.
44373
44374 2008-10-28  Simon Josefsson  <simon@josefsson.org>
44375
44376         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
44377
44378 2008-10-28  Simon Josefsson  <simon@josefsson.org>
44379
44380         * MODULES.html.sh (Support for systems lacking POSIX:2001):
44381         Mention times and sys_times.
44382         * modules/sys_times, modules/sys_times-tests: New modules.
44383         * modules/times, modules/times-tests: Likewise
44384         * m4/sys_times_h.m4: New file.
44385         * lib/sys_times.in.h: Likewise
44386         * lib/times.c: Likewise.
44387         * tests/test-sys_times.c: Likewise.
44388         * tests/test-times.c: Likewise.
44389         * doc/posix-headers/sys_times.texi: Update.
44390         * doc/posix-functions/times.texi: Update.
44391
44392 2008-10-28  Jim Meyering  <meyering@redhat.com>
44393
44394         * modules/tempname (Depends-on): Add lstat.
44395
44396         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
44397
44398 2008-10-28  Simon Josefsson  <simon@josefsson.org>
44399
44400         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
44401         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
44402         using idiom used elsewhere in gnulib.
44403
44404 2008-10-27  Jim Meyering  <meyering@redhat.com>
44405
44406         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
44407
44408 2008-10-27  Simon Josefsson  <simon@josefsson.org>
44409
44410         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
44411         TESTS_ENVIRONMENT, for shell scripts that needs to call built
44412         programs.
44413         * tests/test-argp-2.sh: Use $EXEEXT when needed.
44414
44415 2008-10-27  Simon Josefsson  <simon@josefsson.org>
44416
44417         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
44418
44419 2008-10-27  Bruno Haible  <bruno@clisp.org>
44420
44421         * tests/test-lstat.c: Include <stdio.h>.
44422
44423 2008-10-27  Simon Josefsson  <simon@josefsson.org>
44424
44425         * modules/lstat-tests: New module.
44426         * tests/test-lstat.c: New file.
44427
44428 2008-10-26  Jim Meyering  <meyering@redhat.com>
44429
44430         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
44431
44432 2008-10-26  Simon Josefsson  <simon@josefsson.org>
44433             Bruno Haible  <bruno@clisp.org>
44434
44435         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
44436         * modules/configmake (Include): Add a note that the include must come
44437         after all system headers.
44438         * lib/javaversion.c: Include configmake.h after all other includes.
44439
44440 2008-10-26  Bruno Haible  <bruno@clisp.org>
44441
44442         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
44443         HAVE_STRUCT_RANDOM_DATA to 1.
44444         (gl_STDLIB_H): Simplify.
44445
44446 2008-10-26  Simon Josefsson  <simon@josefsson.org>
44447
44448         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
44449         substitute HAVE_STRUCT_RANDOM_DATA.
44450         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
44451         random_data.
44452         * modules/stdlib (Makefile.am): Substitute
44453         HAVE_STRUCT_RANDOM_DATA.
44454
44455 2008-10-26  Simon Josefsson  <simon@josefsson.org>
44456
44457         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
44458         * doc/gnulib-intro.texi (Copyright): Likewise.
44459
44460 2008-10-26  Simon Josefsson  <simon@josefsson.org>
44461
44462         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
44463         findings.
44464
44465 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
44466             Bruno Haible  <bruno@clisp.org>
44467
44468         * lib/unistd.in.h: Include <winsock2.h>.
44469         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
44470         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
44471         Provide dummy declarations.
44472         (gethostname): Override.
44473         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
44474         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
44475         gl_PREREQ_SYS_H_WINSOCK2.
44476         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
44477         * doc/posix-functions/gethostname.texi: More details.
44478
44479 2008-10-25  Bruno Haible  <bruno@clisp.org>
44480
44481         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
44482         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
44483         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
44484
44485         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
44486         here ...
44487         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
44488         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
44489         gl_UNISTD_H_DEFAULTS.
44490
44491 2008-10-25  Eric Blake  <ebb9@byu.net>
44492
44493         signbit: avoid spurious compiler failure
44494         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
44495         declarations inside function.
44496
44497 2008-10-24  Simon Josefsson  <simon@josefsson.org>
44498             Bruno Haible  <bruno@clisp.org>
44499
44500         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
44501         * modules/random_r (Depends-on): Add stdint.
44502
44503 2008-10-24  Bruno Haible  <bruno@clisp.org>
44504
44505         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
44506         Eggert.
44507         * modules/strerror (License): Likewise.
44508
44509 2008-10-24  Jim Meyering  <meyering@redhat.com>
44510
44511         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
44512         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
44513
44514 2008-10-24  Eric Blake  <ebb9@byu.net>
44515
44516         getgroups: fix compilation when getgroups is available
44517         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
44518         but with <config.h> override of getgroups disabled.
44519
44520 2008-10-24  Simon Josefsson  <simon@josefsson.org>
44521
44522         * doc/gnulib.texi (Header files): Add note about C++ problems.
44523         Explained by Bruno Haible <bruno@clisp.org>.
44524
44525 2008-10-23  Bruno Haible  <bruno@clisp.org>
44526
44527         Define a dummy SA_NODEFER macro on Interix.
44528         * lib/signal.in.h (SA_NODEFER): Define fallback.
44529         Reported by Aleksey Cheusov <cheusov@tut.by> via
44530         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
44531
44532 2008-10-23  Bruno Haible  <bruno@clisp.org>
44533
44534         * modules/freadahead (License): Change to LGPLv2+.
44535         Suggested by Simon Josefsson.
44536
44537 2008-10-23  Jim Meyering  <meyering@redhat.com>
44538
44539         random_r: new module
44540         * modules/random_r: New file.
44541         * m4/random_r.m4: New file.
44542         * lib/random_r.c: New file, from glibc.
44543         * modules/random_r-tests: New file.
44544         * tests/test-random_r.c: New file.
44545         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
44546          Declare.
44547         (RAND_MAX): Define.
44548         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
44549         * modules/stdlib: Substitute them, too.
44550         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
44551         * doc/glibc-functions/initstate_r.texi: Mention the new module.
44552         * doc/glibc-functions/random_r.texi: Likewise.
44553         * doc/glibc-functions/setstate_r.texi: Likewise.
44554         * doc/glibc-functions/srandom_r.texi: Likewise.
44555         * config/srclist.txt: Mention it.
44556
44557 2008-10-23  David Lutterkort  <lutter@redhat.com>
44558
44559         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
44560         link requirement
44561
44562 2008-10-23  Jim Meyering  <meyering@redhat.com>
44563
44564         selinux-h: mark parameters of stub functions as intentionally unused
44565         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
44566         * lib/se-context.in.h: Likewise.
44567
44568 2008-10-22  Simon Josefsson  <simon@josefsson.org>
44569
44570         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
44571
44572 2008-10-22  Simon Josefsson  <simon@josefsson.org>
44573
44574         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
44575
44576 2008-10-22  Eric Blake  <ebb9@byu.net>
44577
44578         glthread/thread: avoid compiler warning
44579         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
44580         Add unreachable abort to silence compiler.
44581
44582 2008-10-22  Eric Blake  <ebb9@byu.net>
44583
44584         netdb: also supply struct addrinfo for cygwin 1.5.x
44585         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
44586         older cygwin.
44587         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
44588         cygwin.
44589         * doc/posix-headers/netdb.texi (netdb.h): Document this.
44590
44591 2008-10-22  Bruno Haible  <bruno@clisp.org>
44592
44593         * users.txt: Update entry about pspp.
44594
44595 2008-10-21  Bruno Haible  <bruno@clisp.org>
44596
44597         Simplification.
44598         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
44599         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
44600
44601         Simplification.
44602         * lib/ioctl.c (ioctl): Don't undefine.
44603         * lib/socket.c (socket): Don't undefine.
44604
44605         Remove unused module indicator macros.
44606         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
44607         GNULIB_$1 as a C macro.
44608
44609         * doc/posix-functions/close.texi: Undo last change.
44610         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
44611         Windows platforms.
44612
44613 2008-10-21  Bruno Haible  <bruno@clisp.org>
44614
44615         Add gethostname() declaration to <unistd.h>.
44616         * lib/unistd.in.h (gethostname): New declaration.
44617         * lib/gethostname.c: Include <unistd.h>.
44618         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
44619         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
44620         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
44621         and HAVE_GETHOSTNAME.
44622         * modules/gethostname (Depends-on): Add unistd.
44623         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
44624         (Include): Specify <unistd.h>.
44625         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
44626         HAVE_GETHOSTNAME.
44627         * tests/test-gethostname.c: Include <unistd.h> first.
44628
44629 2008-10-21  Bruno Haible  <bruno@clisp.org>
44630
44631         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
44632         * modules/select-tests (Depends-on): Likewise.
44633         Reported by Simon Josefsson.
44634
44635 2008-10-21  Simon Josefsson  <simon@josefsson.org>
44636
44637         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
44638         * lib/accept.c: New file, based on winsock.c.
44639         * lib/bind.c: New file, based on winsock.c.
44640         * lib/connect.c: New file, based on winsock.c.
44641         * lib/getpeername.c: New file, based on winsock.c.
44642         * lib/getsockname.c: New file, based on winsock.c.
44643         * lib/getsockopt.c: New file, based on winsock.c.
44644         * lib/ioctl.c: New file, based on winsock.c.
44645         * lib/listen.c: New file, based on winsock.c.
44646         * lib/recv.c: New file, based on winsock.c.
44647         * lib/recvfrom.c: New file, based on winsock.c.
44648         * lib/send.c: New file, based on winsock.c.
44649         * lib/sendto.c: New file, based on winsock.c.
44650         * lib/setsockopt.c: New file, based on winsock.c.
44651         * lib/shutdown.c: New file, based on winsock.c.
44652         * lib/socket.c: New file, based on winsock.c.
44653         * lib/w32sock.h: New file, based on winsock.c.
44654         * lib/winsock.c: Remove file.
44655         * modules/accept: Likewise.
44656         * modules/bind: Likewise.
44657         * modules/connect: Likewise.
44658         * modules/getpeername: Likewise.
44659         * modules/getsockname: Likewise.
44660         * modules/getsockopt: Likewise.
44661         * modules/ioctl: Likewise.
44662         * modules/listen: Likewise.
44663         * modules/recv: Likewise.
44664         * modules/recvfrom: Likewise.
44665         * modules/send: Likewise.
44666         * modules/sendto: Likewise.
44667         * modules/setsockopt: Likewise.
44668         * modules/shutdown: Likewise.
44669         * modules/socket: Use socket.c instead of winsock.c.
44670         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
44671         * doc/posix-functions/accept.texi: Doc fix.
44672         * doc/posix-functions/bind.texi: Doc fix.
44673         * doc/posix-functions/close.texi: Doc fix.
44674         * doc/posix-functions/connect.texi: Doc fix.
44675         * doc/posix-functions/getpeername.texi: Doc fix.
44676         * doc/posix-functions/getsockname.texi: Doc fix.
44677         * doc/posix-functions/getsockopt.texi: Doc fix.
44678         * doc/posix-functions/ioctl.texi: Doc fix.
44679         * doc/posix-functions/listen.texi: Doc fix.
44680         * doc/posix-functions/recv.texi: Doc fix.
44681         * doc/posix-functions/recvfrom.texi: Doc fix.
44682         * doc/posix-functions/send.texi: Doc fix.
44683         * doc/posix-functions/sendto.texi: Doc fix.
44684         * doc/posix-functions/setsockopt.texi: Doc fix.
44685         * doc/posix-functions/shutdown.texi: Doc fix.
44686         * doc/posix-functions/socket.texi: Doc fix.
44687
44688 2008-10-20  Bruno Haible  <bruno@clisp.org>
44689
44690         Take into account the role of SIGABRT_COMPAT on Windows 2008.
44691         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
44692         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
44693         as an alias for SIGABRT.
44694         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
44695         (sigaction): Map it to SIGABRT.
44696         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
44697
44698 2008-10-20  Bruno Haible  <bruno@clisp.org>
44699
44700         * lib/fts.c: Don't include lstat.h.
44701         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
44702
44703         Move the lstat() declaration to <sys/stat.h>.
44704         * lib/lstat.h: Remove file.
44705         * lib/sys_stat.in.h: Add special invocation convention.
44706         (lstat): New declaration.
44707         * lib/lstat.c (orig_lstat): New function.
44708         (rpl_lstat): Use orig_lstat instead of lstat.
44709         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
44710         AC_C_INLINE. Set REPLACE_LSTAT.
44711         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
44712         and REPLACE_LSTAT.
44713         * modules/lstat (Files): Remove lib/lstat.h.
44714         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
44715         (Include): Specify <sys/stat.h> instead of lstat.h.
44716         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
44717         REPLACE_LSTAT.
44718         * NEWS: Mention the change.
44719
44720 2008-10-20  Bruno Haible  <bruno@clisp.org>
44721
44722         * modules/posix_spawn-tests: New file.
44723         * tests/test-posix_spawn3.c: New file.
44724
44725 2008-10-20  Bruno Haible  <bruno@clisp.org>
44726
44727         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
44728         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
44729         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
44730         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
44731         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
44732
44733 2008-10-20  Bruno Haible  <bruno@clisp.org>
44734
44735         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
44736         of posix_spawn on AIX 5.3.
44737
44738 2008-10-20  Bruno Haible  <bruno@clisp.org>
44739
44740         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
44741
44742 2008-10-20  Bruno Haible  <bruno@clisp.org>
44743
44744         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
44745         of AC_LANG_PROGRAM.
44746
44747 2008-10-20  Simon Josefsson  <simon@josefsson.org>
44748
44749         * lib/netdb.in.h: Don't define GNU specific constants until they
44750         are supported or needed.  Reported by Bruno Haible
44751         <bruno@clisp.org>.
44752
44753 2008-10-20  Simon Josefsson  <simon@josefsson.org>
44754
44755         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
44756
44757 2008-10-20  Simon Josefsson  <simon@josefsson.org>
44758
44759         * lib/getaddrinfo.h: Remove file.
44760         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
44761         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
44762         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
44763         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
44764         * modules/netdb: Substitute GNULIB_GETADDRINFO.
44765         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
44766         * tests/test-getaddrinfo.c: Likewise.
44767         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
44768         * NEWS: Mention change.
44769
44770 2008-10-19  Bruno Haible  <bruno@clisp.org>
44771
44772         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
44773
44774 2008-10-19  Bruno Haible  <bruno@clisp.org>
44775
44776         * lib/wait-process.c: Include simply <sys/wait.h>.
44777         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
44778         WIFSTOPPED): Remove fallback definitions.
44779         * modules/wait-process (Depends-on): Add sys_wait.
44780
44781         New module 'sys_wait'.
44782         * modules/sys_wait: New file.
44783         * lib/sys_wait.in.h: New file, partially copied from
44784         lib/wait-process.c.
44785         * m4/sys_wait_h.m4: New file.
44786         * doc/posix-headers/sys_wait.texi: Mention the new module.
44787
44788 2008-10-19  Bruno Haible  <bruno@clisp.org>
44789
44790         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
44791
44792 2008-10-19  Bruno Haible  <bruno@clisp.org>
44793
44794         Assume that waitpid() fills an 'int' status, not a 'union wait'.
44795         * lib/wait-process.c (WAIT_T): Remove type.
44796         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
44797         (wait_subprocess): Update.
44798
44799 2008-10-19  Bruno Haible  <bruno@clisp.org>
44800
44801         New module 'atoll'.
44802         * modules/atoll: New file.
44803         * lib/stdlib.in.h (atoll): New declaration.
44804         * lib/atoll.c: New file, from glibc with modifications.
44805         * m4/atoll.m4: New file.
44806         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
44807         HAVE_ATOLL.
44808         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
44809         * doc/posix-functions/atoll.texi: Mention the new module.
44810
44811 2008-10-19  Bruno Haible  <bruno@clisp.org>
44812
44813         Add strtoull() declaration to <stdlib.h>.
44814         * lib/stdlib.in.h (strtoull): New declaration.
44815         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
44816         Set HAVE_STRTOULL.
44817         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
44818         HAVE_STRTOULL.
44819         * modules/strtoull (Depends-on): Add stdlib.
44820         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
44821         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
44822         HAVE_STRTOULL.
44823
44824 2008-10-19  Bruno Haible  <bruno@clisp.org>
44825
44826         Add strtoll() declaration to <stdlib.h>.
44827         * lib/stdlib.in.h (strtoll): New declaration.
44828         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
44829         Set HAVE_STRTOLL.
44830         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
44831         HAVE_STRTOLL.
44832         * modules/strtoll (Depends-on): Add stdlib.
44833         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
44834         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
44835
44836 2008-10-19  Bruno Haible  <bruno@clisp.org>
44837
44838         * modules/bcopy (Depends-on): Add strings.
44839         (Include): Specify <strings.h>.
44840
44841 2008-10-19  Bruno Haible  <bruno@clisp.org>
44842
44843         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
44844
44845 2008-10-19  Bruno Haible  <bruno@clisp.org>
44846
44847         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
44848         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
44849         mingw.
44850
44851 2008-10-19  Bruno Haible  <bruno@clisp.org>
44852
44853         * lib/atanl.c: Don't include isnanl.h.
44854         * lib/cosl.c: Likewise.
44855         * lib/ldexpl.c: Likewise.
44856         * lib/logl.c: Likewise.
44857         * lib/sinl.c: Likewise.
44858         * lib/sqrtl.c: Likewise.
44859         * lib/tanl.c: Likewise.
44860
44861         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
44862         * lib/isnanf.h: Remove file.
44863         * lib/isnand.h: Remove file.
44864         * lib/isnanl.h: Remove file.
44865         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
44866         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
44867         macros.
44868         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
44869         HAVE_ISNANF, don't define it as a C macro.
44870         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
44871         HAVE_ISNAND, don't define it as a C macro.
44872         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
44873         HAVE_ISNANL, don't define it as a C macro.
44874         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
44875         HAVE_ISNAN[FDL].
44876         * modules/isnanf (Files): Remove lib/isnanf.h.
44877         (Depends-on): Add math.
44878         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
44879         (Include): Specify <math.h> instead of isnanf.h.
44880         * modules/isnand (Files): Remove lib/isnand.h.
44881         (Depends-on): Add math.
44882         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
44883         (Include): Specify <math.h> instead of isnand.h.
44884         * modules/isnanl (Files): Remove lib/isnanl.h.
44885         (Depends-on): Add math.
44886         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
44887         (Include): Specify <math.h> instead of isnanl.h.
44888         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
44889         HAVE_ISNAN[FDL].
44890         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
44891         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
44892         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
44893         * NEWS: Mention the change.
44894
44895 2008-10-18  Bruno Haible  <bruno@clisp.org>
44896
44897         Add getusershell(), setusershell(), endusershell() declarations to
44898         <unistd.h>.
44899         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
44900         declarations.
44901         * lib/getusershell.c: Include unistd.h.
44902         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
44903         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
44904         HAVE_GETUSERSHELL.
44905         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
44906         and HAVE_GETUSERSHELL.
44907         * modules/getusershell (Depends-on): Add unistd, extensions.
44908         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
44909         (Include): Specify <unistd.h>.
44910         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
44911         HAVE_GETUSERSHELL.
44912
44913 2008-10-18  Bruno Haible  <bruno@clisp.org>
44914
44915         Add a getloadavg() declaration to <stdlib.h>.
44916         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
44917         getloadavg declaration.
44918         (getloadavg): New declaration.
44919         * lib/getloadavg.c: Include <stdlib.h> first.
44920         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
44921         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
44922         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
44923         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
44924         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
44925         * modules/getloadavg (Depends-on): Add stdlib, extensions.
44926         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
44927         (Include): Specify <stdlib.h>.
44928         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
44929         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
44930
44931 2008-10-18  Bruno Haible  <bruno@clisp.org>
44932
44933         * lib/dirchownmod.c: Don't include lchmod.h.
44934
44935         Move the lchmod() declaration to <sys/stat.h>.
44936         * lib/lchmod.h: Remove file.
44937         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
44938         (lchmod): New declaration, moved here from lib/lchown.h.
44939         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
44940         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
44941         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
44942         and HAVE_LCHMOD.
44943         * modules/lchmod (Files): Remove lib/lchmod.h.
44944         (Depends-on): Add sys_stat, extensions.
44945         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
44946         (Include): Specify <sys/stat.h> instead of lchmod.h.
44947         * modules/sys_stat (Depends-on): Add link-warning.
44948         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
44949         definition of GL_LINK_WARNING.
44950         * NEWS: Mention the change.
44951
44952 2008-10-18  Bruno Haible  <bruno@clisp.org>
44953
44954         * lib/fchdir.c: Don't include dirfd.h.
44955         * lib/fts.c: Likewise.
44956         * lib/getcwd.c: Likewise.
44957         * lib/glob.c: Likewise.
44958
44959         Move the dirfd() declaration to <dirent.h>.
44960         * lib/dirfd.h: Remove file.
44961         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
44962         (dirfd): New declaration.
44963         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
44964         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
44965         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
44966         HAVE_DECL_DIRFD.
44967         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
44968         HAVE_DECL_DIRFD.
44969         * modules/dirfd (Files): Remove lib/dirfd.h.
44970         (Depends-on): Add dirent, extensions.
44971         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
44972         (Include): Specify <dirent.h> instead of dirfd.h.
44973         * modules/dirent (Depends-on): Add link-warning.
44974         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
44975         definition of GL_LINK_WARNING.
44976         * NEWS: Mention the change.
44977
44978 2008-10-18  Bruno Haible  <bruno@clisp.org>
44979
44980         Move the euidaccess() declaration to <unistd.h>.
44981         * lib/euidaccess.h: Remove file.
44982         * lib/unistd.in.h (euidaccess): New declaration.
44983         * lib/euidaccess.c: Don't include euidaccess.h.
44984         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
44985         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
44986         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
44987         and HAVE_EUIDACCESS.
44988         * modules/euidaccess (Files): Remove lib/euidaccess.h.
44989         (Depends-on): Add unistd.
44990         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
44991         (Include): Specify <unistd.h> instead of euidaccess.h.
44992         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
44993         HAVE_EUIDACCESS.
44994         * NEWS: Mention the change.
44995
44996 2008-10-18  Bruno Haible  <bruno@clisp.org>
44997
44998         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
44999
45000         Move the getdomainname() declaration to <unistd.h>.
45001         * lib/getdomainname.h: Remove file.
45002         * lib/unistd.in.h (getdomainname): New declaration.
45003         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
45004         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
45005         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
45006         HAVE_GETDOMAINNAME.
45007         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
45008         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
45009         * modules/getdomainname (Files): Remove lib/getdomainname.h.
45010         (Depends-on): Add unistd, extensions.
45011         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
45012         (Includes): Specify <unistd.h> instead of getdomainname.h.
45013         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
45014         HAVE_GETDOMAINNAME.
45015         * NEWS: Mention the change.
45016
45017 2008-10-18  Bruno Haible  <bruno@clisp.org>
45018
45019         * modules/dirent: New file.
45020         * m4/dirent_h.m4: New file.
45021         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
45022         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
45023         * modules/fchdir (Files): Remove lib/dirent.in.h.
45024         (Depends-on): Add dirent.
45025         (Makefile.am): Move rules to modules/dirent.
45026         * doc/posix-headers/dirent.texi: Mention the new module.
45027
45028 2008-10-18  Bruno Haible  <bruno@clisp.org>
45029
45030         Avoid -Wunused-parameter warnings in public gnulib header files.
45031         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
45032         macro.
45033         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
45034
45035 2008-10-18  Bruno Haible  <bruno@clisp.org>
45036
45037         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
45038         * doc/glibc-functions/error.texi: Mention the module 'error'.
45039         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
45040         * doc/glibc-functions/getdomainname.texi: Mention the module
45041         'getdomainname'.
45042         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
45043         * doc/glibc-functions/getpagesize.texi: Mention the module
45044         'getpagesize'.
45045         * doc/glibc-functions/getusershell.texi: Mention the module
45046         'getusershell'.
45047         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
45048         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
45049         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
45050         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
45051         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
45052         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
45053         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
45054         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
45055         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
45056         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
45057         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
45058         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
45059         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
45060         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
45061
45062 2008-10-17  Bruno Haible  <bruno@clisp.org>
45063
45064         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
45065         HP-UX and IRIX, use -0.0L.
45066         * tests/test-ceill.c (minus_zero): Likewise.
45067         * tests/test-floorl.c (minus_zero): Likewise.
45068         * tests/test-frexpl.c (minus_zero): Likewise.
45069         * tests/test-isnan.c (minus_zerol): Likewise.
45070         * tests/test-isnanl.h (minus_zero): Likewise.
45071         * tests/test-ldexpl.c (minus_zero): Likewise.
45072         * tests/test-roundl.c (minus_zero): Likewise.
45073         * tests/test-signbit.c (minus_zerol): Likewise.
45074         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
45075         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
45076         * tests/test-truncl.c (minus_zero): Likewise.
45077         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
45078         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
45079         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
45080         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
45081
45082 2008-10-17  Bruno Haible  <bruno@clisp.org>
45083
45084         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
45085         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
45086         that it gets activated only for gcc >= 3.0.
45087         * lib/dirent.in.h: Likewise.
45088         * lib/errno.in.h: Likewise.
45089         * lib/fcntl.in.h: Likewise.
45090         * lib/float.in.h: Likewise.
45091         * lib/iconv.in.h: Likewise.
45092         * lib/inttypes.in.h: Likewise.
45093         * lib/locale.in.h: Likewise.
45094         * lib/math.in.h: Likewise.
45095         * lib/netdb.in.h: Likewise.
45096         * lib/netinet_in.in.h: Likewise.
45097         * lib/search.in.h: Likewise.
45098         * lib/signal.in.h: Likewise.
45099         * lib/spawn.in.h: Likewise.
45100         * lib/stdarg.in.h: Likewise.
45101         * lib/stdint.in.h: Likewise.
45102         * lib/stdio.in.h: Likewise.
45103         * lib/stdlib.in.h: Likewise.
45104         * lib/string.in.h: Likewise.
45105         * lib/strings.in.h: Likewise.
45106         * lib/sys_file.in.h: Likewise.
45107         * lib/sys_ioctl.in.h: Likewise.
45108         * lib/sys_select.in.h: Likewise.
45109         * lib/sys_socket.in.h: Likewise.
45110         * lib/sys_stat.in.h: Likewise.
45111         * lib/sys_time.in.h: Likewise.
45112         * lib/sysexits.in.h: Likewise.
45113         * lib/time.in.h: Likewise.
45114         * lib/unistd.in.h: Likewise.
45115         * lib/wchar.in.h: Likewise.
45116         * lib/wctype.in.h: Likewise.
45117         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
45118
45119 2008-10-17  Jim Meyering  <meyering@redhat.com>
45120
45121         ignore-value: don't depend on inline module
45122         * modules/ignore-value (Depends-on): Remove 'inline'.
45123         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
45124         Suggestion from Bruno Haible.
45125
45126 2008-10-17  Bruno Haible  <bruno@clisp.org>
45127
45128         New implementation of condition variables for Win32.
45129         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
45130         (gl_linked_waitqueue_t): New type.
45131         (gl_cond_t): Use it.
45132         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
45133         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
45134         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
45135         (glthread_cond_init_func, glthread_cond_wait_func,
45136         glthread_cond_timedwait_func, glthread_cond_signal_func,
45137         glthread_cond_broadcast_func, glthread_cond_destroy_func):
45138         Reimplemented on the basis of gl_linked_waitqueue_t.
45139         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
45140         gl_waitqueue_t.
45141         (gl_rwlock_t): Update.
45142         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
45143
45144 2008-10-17  Simon Josefsson  <simon@josefsson.org>
45145
45146         * modules/recvfrom (Depends-on): Add dependency on getpeername.
45147         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
45148
45149 2008-10-17  Jim Meyering  <meyering@redhat.com>
45150
45151         ignore-value: new module
45152         * modules/ignore-value: New file.
45153         * lib/ignore-value.h: New file.
45154         * MODULES.html.sh (Compiler warning management): New section,
45155         just for this module.  More to come.
45156
45157 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
45158
45159         open-safer.c: avoid 'signed and unsigned in conditional...' warning
45160         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
45161         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
45162
45163 2008-10-16  Jim Meyering  <meyering@redhat.com>
45164
45165         openat-die.c: avoid 'no previous prototype' warning
45166         * lib/openat-die.c: Include "openat.h".
45167         Reported by Reuben Thomas <rrt@sc3d.org>.
45168
45169 2008-10-16  Simon Josefsson  <simon@josefsson.org>
45170
45171         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
45172         * lib/netdb.in.h: Fix typo.
45173         Reported by Bruno Haible  <bruno@clisp.org>
45174
45175         * lib/netdb.in.h: Include sys/socket.h for platforms without
45176         netdb.h, to get structures like hostent on MinGW.
45177         * modules/netdb (Depends-on): Add sys_socket.
45178
45179 2008-10-15  Simon Josefsson  <simon@josefsson.org>
45180
45181         * modules/netdb, modules/netdb-tests: New file.
45182         * m4/netdb_h.m4: New file.
45183         * lib/netdb.in.h: Add, currently just an empty file pending
45184         definitions.
45185         * tests/test-netdb.c: New file.
45186         * doc/posix-headers/netdb.texi: Mention that we replace it if
45187         needed.
45188         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
45189         netdb.
45190
45191 2008-10-15  Simon Josefsson  <simon@josefsson.org>
45192
45193         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
45194         with code.
45195
45196 2008-10-13  Bruno Haible  <bruno@clisp.org>
45197
45198         * lib/glthread/cond.c (glthread_cond_wait_func,
45199         glthread_cond_timedwait_func): Add a comment.
45200
45201 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
45202
45203         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
45204         * tests/test-select.c: Likewise,
45205
45206 2008-10-13  Bruno Haible  <bruno@clisp.org>
45207
45208         * lib/glthread/cond.c (glthread_cond_wait_func,
45209         glthread_cond_timedwait_func): Fix variable name.
45210         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
45211
45212 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
45213
45214         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
45215         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
45216         struct sockaddr.sa_len.
45217         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
45218
45219 2008-10-13  Simon Josefsson  <simon@josefsson.org>
45220
45221         * build-aux/pmccabe2html: Add css and css_url parameters.
45222
45223 2008-10-12  Bruno Haible  <bruno@clisp.org>
45224
45225         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
45226         calling aclx_get.
45227         Reported by Rainer Tammer <tammer@tammer.net>.
45228
45229 2008-10-12  Bruno Haible  <bruno@clisp.org>
45230
45231         Use msvcrt aware primitives for creation/termination of Win32 threads.
45232         * lib/glthread/thread.c: Include <process.h>.
45233         (glthread_create_func): Use _beginthreadex instead of CreateThread.
45234         (wrapper_func): Update signature.
45235         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
45236
45237 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
45238             Bruno Haible  <bruno@clisp.org>
45239
45240         Provide a Win32 implementation of the 'cond' module.
45241         * lib/glthread/cond.h [USE_WIN32]: New implementation.
45242         * lib/glthread/cond.c (glthread_cond_init_func,
45243         glthread_cond_wait_func, glthread_cond_timedwait_func,
45244         glthread_cond_signal_func, glthread_cond_broadcast_func,
45245         glthread_cond_destroy_func) [USE_WIN32]: New functions.
45246         * modules/cond (Dependencies): Add gettimeofday.
45247
45248 2008-10-11  Bruno Haible  <bruno@clisp.org>
45249
45250         Make sleep work on older versions of mingw.
45251         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
45252         only whether it exists.
45253         * doc/posix-functions/sleep.texi: Mention the problem with older
45254         versions of mingw.
45255
45256 2008-10-11  Bruno Haible  <bruno@clisp.org>
45257
45258         New module 'shutdown'.
45259         * modules/shutdown: New file.
45260         * lib/sys_socket.in.h (shutdown): New declaration.
45261         * lib/winsock.c (shutdown): New function.
45262         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
45263         GNULIB_SHUTDOWN.
45264         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
45265         * doc/posix-functions/shutdown.texi: Document the new module.
45266
45267 2008-10-11  Jim Meyering  <meyering@redhat.com>
45268
45269         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
45270
45271 2008-10-11  Bruno Haible  <bruno@clisp.org>
45272
45273         New module 'fclose'.
45274         * modules/fclose: New file.
45275         * lib/stdio.in.h (fclose): New declaration.
45276         * lib/fclose.c: New file.
45277         * m4/fclose.m4: New file.
45278         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
45279         REPLACE_FCLOSE.
45280         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
45281         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
45282         REPLACE_FCLOSE.
45283         * modules/close (Depends-on): fclose.
45284         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
45285
45286 2008-10-11  Bruno Haible  <bruno@clisp.org>
45287
45288         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
45289         set errno and don't call _close.
45290
45291 2008-10-10  Bruno Haible  <bruno@clisp.org>
45292
45293         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
45294         ACL, not afterwards. Fixes test failure on Cygwin.
45295
45296 2008-10-09  Ben Pfaff  <blp@gnu.org>
45297
45298         * build-aux/announce-gen: Fix gnulib version related part of usage
45299         message.  Die with a useful error message if no tarballs are
45300         found.
45301
45302 2008-10-10  Jim Meyering  <meyering@redhat.com>
45303
45304         bootstrap: use git's --depth=N option only if it's supported
45305         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
45306         recognize the --depth option.  Reported by Pádraig Brady.
45307
45308 2008-10-09  Bruno Haible  <bruno@clisp.org>
45309
45310         New module 'ioctl'.
45311         * modules/ioctl: New file.
45312         * lib/sys_socket.in.h (ioctl): Remove declaration.
45313         * lib/winsock.c: Include <sys/ioctl.h>.
45314         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
45315         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
45316         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
45317         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
45318         * doc/posix-functions/ioctl.texi: Mention the new module.
45319
45320 2008-10-09  Bruno Haible  <bruno@clisp.org>
45321
45322         New module 'sys_ioctl'.
45323         * lib/sys_ioctl.in.h: New file.
45324         * m4/sys_ioctl_h.m4: New file.
45325         * modules/sys_ioctl: New file.
45326         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
45327
45328 2008-10-09  Bruno Haible  <bruno@clisp.org>
45329
45330         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
45331         * lib/winsock.c: Include <stdarg.h>.
45332         (rpl_ioctl): Change to second argument 'int' and then varargs.
45333
45334 2008-10-09  Bruno Haible  <bruno@clisp.org>
45335
45336         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
45337         when the sys_socket module is present and the system has <winsock2.h>.
45338
45339 2008-10-09  Bruno Haible  <bruno@clisp.org>
45340
45341         * doc/posix-functions/close.texi: Mention module 'close' instead of
45342         module 'sys_socket'.
45343
45344 2008-10-09  Bruno Haible  <bruno@clisp.org>
45345
45346         * doc/glibc-headers/sys_ioctl.texi: New file.
45347         * doc/gnulib.texi: Include it.
45348
45349 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
45350             Bruno Haible  <bruno@clisp.org>
45351
45352         Combine the two replacements of 'close'.
45353         * lib/sys_socket.in.h (close): Define to a reminder to include
45354         <unistd.h>.
45355         (_gl_close_fd_maybe_socket): New declaration.
45356         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
45357         * lib/winsock.c (close): Remove undefinition.
45358         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
45359         needed for the gnulib module 'close'.
45360         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
45361         define to an error symbol or to a warning, if suitable.
45362         * lib/close.c: Include <sys/socket.h>.
45363         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
45364         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
45365         UNISTD_H_HAVE_WINSOCK2_H.
45366         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
45367         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
45368         UNISTD_H_HAVE_WINSOCK2_H.
45369         * modules/sys_socket (Files): Add m4/unistd_h.m4.
45370         (configure.ac): Set a module indicator.
45371         (Makefile.am): Substitute GNULIB_CLOSE.
45372         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
45373         * modules/poll-tests (Depends-on): Add close.
45374         * modules/select-tests (Depends-on): Likewise.
45375
45376 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
45377             Bruno Haible  <bruno@clisp.org>
45378
45379         New module 'close'.
45380         * modules/close: New file.
45381         * lib/unistd.in.h (close): Move declaration out of the
45382         FCHDIR_REPLACEMENT scope.
45383         (_gl_unregister_fd): New declaration.
45384         * lib/close.c: New file.
45385         * lib/fchdir.c (rpl_close): Remove function.
45386         * m4/close.m4: New file.
45387         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
45388         close.
45389         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
45390         REPLACE_CLOSE.
45391         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
45392         REPLACE_CLOSE.
45393         * modules/fchdir (Depends-on): Add close.
45394
45395 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
45396             Bruno Haible  <bruno@clisp.org>
45397
45398         * lib/fcntl.in.h (open): Simplify conditionals.
45399         (_gl_register_fd): New declaration.
45400         * lib/fchdir.c (rpl_open): Remove function.
45401         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
45402         also.
45403         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
45404         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
45405         open.
45406
45407 2008-10-09  Jim Meyering  <meyering@redhat.com>
45408
45409         GNUmakefile: use the more name-space-friendly "_version"
45410         * top/GNUmakefile (_dummy): Update.
45411         (_version): Rename from "version".
45412
45413 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
45414             Bruno Haible  <bruno@clisp.org>
45415
45416         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
45417         rpl_close.
45418         (_gl_register_fd): New function, extracted from rpl_open.
45419         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
45420         (rpl_open, rpl_opendir): Use _gl_register_fd.
45421
45422 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
45423
45424         Fix organization of 'open' replacement.
45425         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
45426         (gl_FUNC_OPEN): Use it.
45427         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
45428
45429 2008-10-08  Bruno Haible  <bruno@clisp.org>
45430
45431         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
45432
45433 2008-10-08  Simon Josefsson  <simon@josefsson.org>
45434
45435         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
45436         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
45437         listen).
45438
45439 2008-10-08  Eric Blake  <ebb9@byu.net>
45440
45441         GNUmakefile: add 'make version' target
45442         * top/GNUmakefile (_curr-ver): Split version update rules...
45443         (version): ...into a target.
45444
45445 2008-10-07  Bruno Haible  <bruno@clisp.org>
45446
45447         Use a more portable replacement expression for -0.0L.
45448         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
45449         instead of -0.0L. Fix m4 quotation.
45450
45451         * tests/test-signbit.c: Include <float.h>.
45452         (minus_zero): New variable.
45453         (test_signbitl): Use minus_zero instead of -zero.
45454         * modules/signbit-tests (Depends-on): Add float.
45455
45456         * tests/test-ceill.c: Include <float.h>.
45457         (zero): Remove variable.
45458         (minus_zero): New variable.
45459         (main): Use minus_zero instead of -zero.
45460         * modules/ceill-tests (Depends-on): Add float.
45461
45462         * tests/test-floorl.c: Include <float.h>.
45463         (zero): Remove variable.
45464         (minus_zero): New variable.
45465         (main): Use minus_zero instead of -zero.
45466         * modules/floorl-tests (Depends-on): Add float.
45467
45468         * tests/test-roundl.c: Include <float.h>.
45469         (zero): Remove variable.
45470         (minus_zero): New variable.
45471         (main): Use minus_zero instead of -zero.
45472         * modules/roundl-tests (Depends-on): Add float.
45473
45474         * tests/test-truncl.c: Include <float.h>.
45475         (zero): Remove variable.
45476         (minus_zero): New variable.
45477         (main): Use minus_zero instead of -zero.
45478         * modules/truncl-tests (Depends-on): Add float.
45479
45480         * tests/test-frexpl.c (zero): Remove variable.
45481         (minus_zero): New variable.
45482         (main): Use minus_zero instead of -zero.
45483         * modules/frexpl-tests (Depends-on): Add float.
45484
45485         * tests/test-isnan.c (zerol): Remove variable.
45486         (minus_zerol): New variable.
45487         (test_long_double): Use minus_zerol instead of -zerol.
45488         * modules/isnan-tests (Depends-on): Add float.
45489
45490         * tests/test-isnanl.h (zero): Remove variable.
45491         (minus_zero): New variable.
45492         (main): Use minus_zero instead of -zero.
45493         * modules/isnanl-nolibm-tests (Depends-on): Add float.
45494         * modules/isnanl-tests (Depends-on): Add float.
45495
45496         * tests/test-ldexpl.c (zero): Remove variable.
45497         (minus_zero): New variable.
45498         (main): Use minus_zero instead of -zero.
45499         * modules/ldexpl-tests (Depends-on): Add float.
45500
45501         * tests/test-snprintf-posix.h (zerol): Remove variable.
45502         (minus_zerol): New variable.
45503         (test_function): Use minus_zerol instead of -zerol.
45504         * modules/snprintf-posix-tests (Depends-on): Add float.
45505         * modules/vsnprintf-posix-tests (Depends-on): Add float.
45506
45507         * tests/test-sprintf-posix.h (zerol): Remove variable.
45508         (minus_zerol): New variable.
45509         (test_function): Use minus_zerol instead of -zerol.
45510         * modules/sprintf-posix-tests (Depends-on): Add float.
45511         * modules/vsprintf-posix-tests (Depends-on): Add float.
45512
45513         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
45514         (minus_zerol): New variable.
45515         (test_function): Use minus_zerol instead of -zerol.
45516         * modules/vasnprintf-posix-tests (Depends-on): Add float.
45517
45518         * tests/test-vasprintf-posix.c (zerol): Remove variable.
45519         (minus_zerol): New variable.
45520         (test_function): Use minus_zerol instead of -zerol.
45521         * modules/vasprintf-posix-tests (Depends-on): Add float.
45522
45523 2008-10-07  Simon Josefsson  <simon@josefsson.org>
45524
45525         * MODULES.html.sh (Support for building documentation): Mention
45526         pmccabe2html.  Sort entries.
45527
45528         Add pmccabe2html module, from gnupdf.
45529         * build-aux/pmccabe.css: New file.
45530         * build-aux/pmccabe2html: New file.
45531         * m4/pmccabe2html.m4: New file.
45532         * modules/pmccabe2html: New file.
45533
45534 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
45535
45536         flock: new module
45537         * MODULES.html.sh: Add to list of modules.
45538         * lib/flock.c: flock implementation for Windows and Unix systems
45539         which have fcntl.
45540         * doc/glibc-functions/flock.texi: Update documentation.
45541         * lib/sys_file.in.h: <sys/file.h> header file.
45542         * m4/flock.m4: M4 macros.
45543         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
45544         * modules/flock: flock module.
45545         * modules/flock-tests: flock tests module.
45546         * modules/sys_file: sys/file.h module.
45547         * tests/test-flock.c: test suite for flock.
45548
45549 2008-10-06  Jim Meyering  <meyering@redhat.com>
45550
45551         bootstrap: check for LT_INIT more portably still ;-)
45552         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
45553         Spotted by Bruno Haible.
45554
45555 2008-10-06  Eric Blake  <ebb9@byu.net>
45556
45557         test-signbit: avoid tripping Irix cc bug on -0.0L
45558         * tests/test-signbit.c (minus_zerol): Delete, and replace with
45559         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
45560         entire testsuite consistent and avoids an Irix 6.2 bug.
45561
45562 2008-10-05  Bruno Haible  <bruno@clisp.org>
45563             Jim Meyering  <jim@meyering.net>
45564
45565         Add an option for ignoring EPIPE during close_stdout.
45566         * lib/closeout.h: Include <stdbool.h>.
45567         (close_stdout_set_ignore_EPIPE): New declaration.
45568         * lib/closeout.c: Include <stdbool.h>.
45569         (ignore_EPIPE): New variable.
45570         (close_stdout_set_ignore_EPIPE): New function.
45571         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
45572         * lib/close-stream.c (close_stream): Mention the possible EPIPE
45573         failure.
45574         * modules/closeout (Depends-on): Add stdbool.
45575
45576 2008-10-05  Bruno Haible  <bruno@clisp.org>
45577
45578         * modules/accept: New file.
45579         * modules/bind: New file.
45580         * modules/connect: New file.
45581         * modules/getpeername: New file.
45582         * modules/getsockname: New file.
45583         * modules/getsockopt: New file.
45584         * modules/listen: New file.
45585         * modules/recv: New file.
45586         * modules/recvfrom: New file.
45587         * modules/send: New file.
45588         * modules/sendto: New file.
45589         * modules/setsockopt: New file.
45590         * modules/socket: New file.
45591         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
45592         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
45593         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
45594         the particular module is requested. Add a link warning when the
45595         particular module is not requested.
45596         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
45597         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
45598         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
45599         the particular module is requested.
45600         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
45601         gl_SYS_SOCKET_H_DEFAULTS): New macros.
45602         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
45603         * modules/sys_socket (Depends-on): Add link-warning.
45604         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
45605         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
45606         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
45607         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
45608         GL_LINK_WARNING.
45609         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
45610         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
45611         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
45612         * doc/posix-functions/getpeername.texi: Mention the new module
45613         'getpeername'.
45614         * doc/posix-functions/getsockname.texi: Mention the new module
45615         'getsockname'.
45616         * doc/posix-functions/getsockopt.texi: Mention the new module
45617         'getsockopt'.
45618         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
45619         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
45620         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
45621         * doc/posix-functions/send.texi: Mention the new module 'send'.
45622         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
45623         * doc/posix-functions/setsockopt.texi: Mention the new module
45624         'setsockopt'.
45625         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
45626         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
45627         listen, connect, accept.
45628         * modules/select-tests (Depends-on): Likewise.
45629
45630 2008-10-05  Bruno Haible  <bruno@clisp.org>
45631
45632         * lib/winsock.c (strerror): Remove unused #undef.
45633         (rpl_close): Remove unused local variable.
45634
45635         * modules/sys_socket (Depends-on); Add errno.
45636
45637 2008-10-05  Bruno Haible  <bruno@clisp.org>
45638
45639         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
45640         (select): Add a link warning when the 'select' module is not used.
45641         * modules/sys_select (Depends-on): Add link-warning.
45642         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
45643         Suggested by Paolo Bonzini.
45644
45645 2008-10-05  Jim Meyering  <meyering@redhat.com>
45646
45647         bootstrap: check for LT_INIT more portably
45648         * build-aux/bootstrap: Avoid using grep -E, since it's not
45649         portable enough.  Suggestion from Bruno Haible.
45650
45651 2008-10-05  Bruno Haible  <bruno@clisp.org>
45652
45653         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
45654         as being fixed by gnulib.
45655
45656 2008-10-05  Bruno Haible  <bruno@clisp.org>
45657
45658         * modules/select-tests: New file, mostly copied from
45659         modules/sys_select-tests.
45660         * tests/test-select.c: New file, mostly copied from
45661         tests/test-sys_select.c.
45662         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
45663         * modules/sys_select-tests (Depends-on): Remove all dependencies.
45664         (Makefile.am): Remove test_sys_select_LDADD.
45665
45666         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
45667         to an undefined symbol, for an error message.
45668         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
45669         (gl_SYS_SELECT_H_DEFAULTS): New macro.
45670         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
45671         winsock-select.c here.
45672         * modules/sys_select (Files): Remove lib/winsock-select.c.
45673         (Depends-on): Remove alloca.
45674         (Makefile.am): Substitute GNULIB_SELECT.
45675         * modules/select: New file.
45676         * doc/posix-functions/select.texi: Update.
45677
45678 2008-10-05  Bruno Haible  <bruno@clisp.org>
45679
45680         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
45681         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
45682         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
45683         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
45684         getdtablesize.
45685         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
45686         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
45687
45688 2008-10-05  Bruno Haible  <bruno@clisp.org>
45689
45690         * modules/getdtablesize-tests: New file.
45691         * tests/test-getdtablesize.c: New file.
45692
45693         New module 'getdtablesize'.
45694         * lib/unistd.in.h (getdtablesize): New declaration.
45695         * lib/getdtablesize.c: New file.
45696         * m4/getdtablesize.m4: New file.
45697         * modules/getdtablesize: New file.
45698         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
45699         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
45700         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
45701         HAVE_GETDTABLESIZE.
45702         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
45703
45704 2008-10-05  Bruno Haible  <bruno@clisp.org>
45705
45706         * modules/sched (Makefile.am): Fix typo.
45707         Reported by Simon Josefsson.
45708
45709 2008-10-05  Jim Meyering  <meyering@redhat.com>
45710
45711         bootstrap: check for LT_INIT, too
45712         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
45713         are deprecated.  Suggestion from Ralf Wildenhues.
45714
45715 2008-10-05  Bruno Haible  <bruno@clisp.org>
45716
45717         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
45718         overriding them by ours.
45719         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
45720
45721 2008-10-05  Jim Meyering  <meyering@redhat.com>
45722
45723         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
45724         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
45725         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
45726
45727 2008-10-04  Bruno Haible  <bruno@clisp.org>
45728
45729         * modules/dup2 (License): Change to LGPLv2+.
45730         * modules/sleep (License): Likewise.
45731         * modules/perror (License): Likewise.
45732         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
45733         Blake.
45734         * modules/signal (License): Likewise.
45735         * modules/sigprocmask (License): Likewise.
45736         * modules/raise (License): Change to LGPLv2+, with approval by Jim
45737         Meyering.
45738
45739 2008-10-04  Bruno Haible  <bruno@clisp.org>
45740
45741         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
45742         Reported by Rainer Tammer <tammer@tammer.net>.
45743
45744 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
45745             Bruno Haible  <bruno@clisp.org>
45746
45747         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
45748         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
45749         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
45750
45751 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
45752
45753         filevercmp: new module
45754         * lib/filevercmp.h: New function filevercmp comparing version strings.
45755         * lib/filevercmp.c: Implementation of filevercmp function.
45756         * modules/filevercmp: Module metadata.
45757         * tests/test-filevercmp.c: Unit test for new module.
45758         * modules/filevercmp-tests: Unit test metadata.
45759         * MODULES.html.sh: Add filevercmp module.
45760
45761 2008-10-03  Bruno Haible  <bruno@clisp.org>
45762
45763         * lib/c-ctype.h: Add comment.
45764         Reported by Jim Meyering.
45765
45766 2008-10-02  Bruno Haible  <bruno@clisp.org>
45767
45768         * modules/posix_spawn-internal (Depends-on): Add 'open'.
45769
45770 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
45771
45772         * build-aux/bootstrap: Allow renaming bootstrap, and change the
45773         name of bootstrap.conf accordingly.
45774
45775 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
45776
45777         * build-aux/bootstrap: Install git-merge-changelog configuration
45778         items into .gitconfig if needed.
45779
45780 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
45781
45782         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
45783         git repository, and initialize/update it accordingly.
45784
45785 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
45786
45787         * modules/fsync-tests: New file.
45788         * tests/test-fsync.c: New file.
45789
45790         New module 'fsync'.
45791         * lib/fsync.c: New file.
45792         * m4/fsync.m4: New file.
45793         * modules/fsync: New file.
45794         * lib/unistd.in.h (fsync): New declaration.
45795         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
45796         GNULIB_FSYNC and HAVE_FSYNC.
45797         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
45798         * MODULES.html.sh (posix_functions): Add fsync.
45799         * doc/posix-functions/fsync.texi: Mention the new module.
45800
45801 2008-10-02  Jim Meyering  <meyering@redhat.com>
45802
45803         fts.c: sync with similar code from coreutils' remove.c
45804         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
45805         Guard also with "#if defined __linux__", since for now at least,
45806         this code is Linux-kernel-specific.
45807
45808 2008-10-02  Jim Meyering  <meyering@redhat.com>
45809
45810         fts: bug fixes
45811         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
45812         Include <sys/vfs.h>, not <sys/statfs.h>.
45813
45814         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
45815         Include <sys/vfs.h>, not <sys/statfs.h>.
45816
45817 2008-10-01  Bruno Haible  <bruno@clisp.org>
45818
45819         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
45820         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
45821         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
45822         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
45823         * doc/posix-functions/posix_spawnp.texi: Likewise.
45824         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
45825         whether posix_spawn actually works.
45826         * m4/pipe.m4 (gl_PIPE): Likewise.
45827         * modules/execute (Files): Add m4/posix_spawn.m4.
45828         * modules/pipe (Files): Add m4/posix_spawn.m4.
45829         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
45830
45831 2008-10-01  Jim Meyering  <meyering@redhat.com>
45832
45833         remove trailing spaces
45834         * NEWS: Likewise.
45835         * lib/poll.c (poll): Likewise.
45836         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
45837         * lib/winsock.c (rpl_close): Likewise.
45838         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
45839         * modules/yield: Likewise.
45840         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
45841         * tests/test-sys_select.c (connect_to_socket): Likewise.
45842
45843         fts.c: adjust a new interface to be more generally useful
45844         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
45845         (fts_build): Adjust caller.
45846
45847 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
45848
45849         * modules/cond-tests: New file.
45850         * tests/test-cond.c: New file.
45851
45852 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
45853             Bruno Haible  <bruno@clisp.org>
45854
45855         * modules/cond (Dependencies): Add errno, time.
45856         * lib/glthread/cond.h: Include <time.h>.
45857         (gl_cond_define, gl_cond_define_initialized): Use the same definition
45858         across platforms.
45859
45860 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
45861             Bruno Haible  <bruno@clisp.org>
45862
45863         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
45864
45865 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
45866             Bruno Haible  <bruno@clisp.org>
45867
45868         * modules/tls-tests (Depends-on): Add thread, yield.
45869         (configure.ac): Remove all checks.
45870         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
45871         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
45872         gl_thread_self): Remove definitions. Include glthread/thread.h and
45873         glthread/yield.h instead.
45874         (test_tls): Pass an additional NULL argument to gl_thread_join.
45875
45876 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
45877             Bruno Haible  <bruno@clisp.org>
45878
45879         * modules/lock-tests (Depends-on): Add thread, yield.
45880         (configure.ac): Remove all checks.
45881         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
45882         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
45883         gl_thread_self): Remove definitions. Include glthread/thread.h and
45884         glthread/yield.h instead.
45885         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
45886         additional NULL argument to gl_thread_join.
45887
45888 2008-09-30  Bruno Haible  <bruno@clisp.org>
45889
45890         Fix the Win32 implementation of the 'thread' module.
45891         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
45892         pointer type.
45893         (gl_thread_self): Invoke gl_thread_self_func.
45894         (gl_thread_self_func): New declaration.
45895         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
45896         (do_init_self_key, init_self_key): New functions.
45897         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
45898         Remove some fields.
45899         (running_threads, running_lock): Remove variables.
45900         (get_current_thread_handle): New function.
45901         (gl_thread_self_func, wrapper_func, glthread_create_func,
45902         glthread_join_func, gl_thread_exit_func): Largely rewritten and
45903         simplified.
45904
45905 2008-09-30  Bruno Haible  <bruno@clisp.org>
45906
45907         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
45908         files.
45909
45910 2008-09-30  Jim Meyering  <meyering@redhat.com>
45911
45912         fts.m4: correct the test for statfs.f_type
45913         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
45914         when checking for statfs.f_type.
45915
45916 2008-09-15  Simon Josefsson  <simon@josefsson.org>
45917
45918         tests: avoid some compiler warnings
45919         * tests/test-memchr.c (main): Pass NULL indirectly.
45920         * tests/test-getdate.c (main): Remove unused variable 'ret'.
45921
45922 2008-09-29  Ondřej Vašík  <ovasik@redhat.com>
45923
45924         getdate.y: disallow countable dayshifts like "4 yesterday ago"
45925         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
45926         exactly specified dayshifts.
45927         (dayshift): New rule.
45928         (rel): Add dayshift.
45929         (relative_time_table) [tomorrow, yesterday, today, now]:
45930         Use tDAY_SHIFT in place of tDAY_UNIT.
45931         * tests/test-getdate.c: Add tests for now-disallowed countable
45932         dayshifts, e.g., "4 yesterday ago".
45933
45934 2008-09-29  Bruno Haible  <bruno@clisp.org>
45935
45936         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
45937         * tests/test-posix_spawn1.in.sh: Renamed from
45938         tests/test-posix_spawn.in.sh.
45939         * tests/test-posix_spawn2.c: New file.
45940         * tests/test-posix_spawn2.in.sh: New file.
45941         * modules/posix_spawnp-tests (Files): Update.
45942         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
45943
45944 2008-09-29  Bruno Haible  <bruno@clisp.org>
45945
45946         Propagate effects of putenv/setenv/unsetenv to child processes.
45947         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
45948         * lib/pipe.c (create_pipe): Likewise.
45949
45950 2008-09-29  Bruno Haible  <bruno@clisp.org>
45951
45952         Enable use of shell scripts as executables in mingw.
45953         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
45954         run the program as a shell script.
45955         * lib/pipe.c (create_pipe): Likewise.
45956         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
45957         resulting array.
45958
45959 2008-09-29  Eric Blake  <ebb9@byu.net>
45960
45961         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
45962
45963 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
45964
45965         * doc/posix-functions/accept.texi: Update mingw problems.
45966         * doc/posix-functions/bind.texi: Update mingw problems.
45967         * doc/posix-functions/close.texi: Update mingw problems.
45968         * doc/posix-functions/connect.texi: Update mingw problems.
45969         * doc/posix-functions/getpeername.texi: Update mingw problems.
45970         * doc/posix-functions/getsockname.texi: Update mingw problems.
45971         * doc/posix-functions/getsockopt.texi: Update mingw problems.
45972         * doc/posix-functions/ioctl.texi: Update mingw problems.
45973         * doc/posix-functions/listen.texi: Update mingw problems.
45974         * doc/posix-functions/recv.texi: Update mingw problems.
45975         * doc/posix-functions/recvfrom.texi: Update mingw problems.
45976         * doc/posix-functions/select.texi: Update mingw problems.
45977         * doc/posix-functions/send.texi: Update mingw problems.
45978         * doc/posix-functions/sendto.texi: Update mingw problems.
45979         * doc/posix-functions/setsockopt.texi: Update mingw problems.
45980         * doc/posix-functions/socket.texi: Update mingw problems.
45981
45982 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
45983             Bruno Haible  <bruno@clisp.org>
45984
45985         * lib/sys_select.in.h: Include sys/time.h.
45986         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
45987         * modules/sys_select: Depend on sys_time.
45988         * tests/test-sys_select.c: Test that sys/select.h defines struct
45989         timeval fully.
45990
45991 2008-09-29  Bruno Haible  <bruno@clisp.org>
45992
45993         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
45994         * lib/sys_select.in.h: Likewise.
45995
45996 2008-09-29  Bruno Haible  <bruno@clisp.org>
45997
45998         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
45999
46000 2008-09-29  Bruno Haible  <bruno@clisp.org>
46001
46002         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
46003         Set LIBSOCKET instead of augmenting LIBS.
46004         * modules/sockets (Link): New section.
46005         * modules/sockets-tests (test_sockets_LDADD): New variable.
46006         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
46007         * modules/poll-tests (test_poll_LDADD): New variable.
46008         * NEWS: Document the change.
46009
46010 2008-09-29  Bruno Haible  <bruno@clisp.org>
46011
46012         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
46013         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
46014         ARPA_INET_H directly.
46015         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
46016
46017 2008-09-28  Bruno Haible  <bruno@clisp.org>
46018
46019         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
46020         from gl_HEADER_SYS_SOCKET.
46021         (gl_HEADER_SYS_SOCKET): Invoke it.
46022         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
46023
46024 2008-09-28  Bruno Haible  <bruno@clisp.org>
46025
46026         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
46027         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
46028         Needed on OSF/1 4.0.
46029
46030 2008-09-28  Bruno Haible  <bruno@clisp.org>
46031
46032         Override open more carefully.
46033         * lib/open.c (orig_open): New function.
46034         (rpl_open): Use orig_open instead of open.
46035         * lib/fcntl.in.h: Add special invocation convention.
46036         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
46037         (gl_FUNC_OPEN): Invoke it.
46038
46039         Override freopen more carefully.
46040         * lib/freopen.c (orig_freopen): New function.
46041         (rpl_freopen): Use orig_freopen instead of freopen.
46042         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
46043         (gl_FUNC_FREOPEN): Invoke it.
46044
46045         Override fopen more carefully.
46046         * lib/fopen.c (orig_fopen): New function.
46047         (rpl_fopen): Use orig_fopen instead of fopen.
46048         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
46049         (gl_FUNC_FOPEN): Invoke it.
46050         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
46051
46052 2008-09-28  Bruno Haible  <bruno@clisp.org>
46053
46054         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
46055         SIGPIPE.
46056
46057 2008-09-28  Bruno Haible  <bruno@clisp.org>
46058
46059         * tests/test-sigaction.c (handler, main): Disable the check whether
46060         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
46061         glibc systems with LinuxThreads.
46062
46063 2008-09-28  Bruno Haible  <bruno@clisp.org>
46064
46065         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
46066
46067         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
46068         with AIX xlc.
46069         * lib/fcntl.in.h (open): Likewise.
46070         Reported by Rainer Tammer <tammer@tammer.net>.
46071
46072 2008-09-28  Bruno Haible  <bruno@clisp.org>
46073
46074         * modules/posix_spawnp-tests: New file.
46075         * tests/test-posix_spawn.c: New file.
46076         * tests/test-posix_spawn.in.sh: New file.
46077
46078         New module 'posix_spawnp'.
46079         * modules/posix_spawnp: New file.
46080         * lib/spawnp.c: New file, from GNU libc with modifications.
46081         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
46082
46083         New module 'posix_spawn'.
46084         * modules/posix_spawn: New file.
46085         * lib/spawn.c: New file, from GNU libc with modifications.
46086         * doc/posix-functions/posix_spawn.texi: Mention the new module.
46087
46088         New module 'posix_spawnattr_destroy'.
46089         * modules/posix_spawnattr_destroy: New file.
46090         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
46091         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
46092         module.
46093
46094         New module 'posix_spawnattr_setsigmask'.
46095         * modules/posix_spawnattr_setsigmask: New file.
46096         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
46097         modifications.
46098         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
46099         new module.
46100
46101         New module 'posix_spawnattr_getsigmask'.
46102         * modules/posix_spawnattr_getsigmask: New file.
46103         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
46104         modifications.
46105         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
46106         new module.
46107
46108         New module 'posix_spawnattr_setsigdefault'.
46109         * modules/posix_spawnattr_setsigdefault: New file.
46110         * lib/spawnattr_setdefault.c: New file, from GNU libc with
46111         modifications.
46112         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
46113         new module.
46114
46115         New module 'posix_spawnattr_getsigdefault'.
46116         * modules/posix_spawnattr_getsigdefault: New file.
46117         * lib/spawnattr_getdefault.c: New file, from GNU libc with
46118         modifications.
46119         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
46120         new module.
46121
46122         New module 'posix_spawnattr_setschedpolicy'.
46123         * modules/posix_spawnattr_setschedpolicy: New file.
46124         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
46125         modifications.
46126         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
46127         new module.
46128
46129         New module 'posix_spawnattr_getschedpolicy'.
46130         * modules/posix_spawnattr_getschedpolicy: New file.
46131         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
46132         modifications.
46133         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
46134         new module.
46135
46136         New module 'posix_spawnattr_setschedparam'.
46137         * modules/posix_spawnattr_setschedparam: New file.
46138         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
46139         modifications.
46140         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
46141         new module.
46142
46143         New module 'posix_spawnattr_getschedparam'.
46144         * modules/posix_spawnattr_getschedparam: New file.
46145         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
46146         modifications.
46147         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
46148         new module.
46149
46150         New module 'posix_spawnattr_setpgroup'.
46151         * modules/posix_spawnattr_setpgroup: New file.
46152         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
46153         modifications.
46154         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
46155         module.
46156
46157         New module 'posix_spawnattr_getpgroup'.
46158         * modules/posix_spawnattr_getpgroup: New file.
46159         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
46160         modifications.
46161         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
46162         module.
46163
46164         New module 'posix_spawnattr_setflags'.
46165         * modules/posix_spawnattr_setflags: New file.
46166         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
46167         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
46168         module.
46169
46170         New module 'posix_spawnattr_getflags'.
46171         * modules/posix_spawnattr_getflags: New file.
46172         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
46173         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
46174         module.
46175
46176         New module 'posix_spawnattr_init'.
46177         * modules/posix_spawnattr_init: New file.
46178         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
46179         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
46180         module.
46181
46182         New module 'posix_spawn_file_actions_destroy'.
46183         * modules/posix_spawn_file_actions_destroy: New file.
46184         * lib/spawn_faction_destroy.c: New file, from GNU libc with
46185         modifications.
46186         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
46187         the new module.
46188
46189         New module 'posix_spawn_file_actions_addopen'.
46190         * modules/posix_spawn_file_actions_addopen: New file.
46191         * lib/spawn_faction_addopen.c: New file, from GNU libc with
46192         modifications.
46193         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
46194         the new module.
46195
46196         New module 'posix_spawn_file_actions_adddup2'.
46197         * modules/posix_spawn_file_actions_adddup2: New file.
46198         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
46199         modifications.
46200         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
46201         the new module.
46202
46203         New module 'posix_spawn_file_actions_addclose'.
46204         * modules/posix_spawn_file_actions_addclose: New file.
46205         * lib/spawn_faction_addclose.c: New file, from GNU libc with
46206         modifications.
46207         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
46208         the new module.
46209
46210         New module 'posix_spawn_file_actions_init'.
46211         * modules/posix_spawn_file_actions_init: New file.
46212         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
46213         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
46214         new module.
46215
46216         New module 'posix_spawn-internal'.
46217         * modules/posix_spawn-internal: New file.
46218         * lib/spawn_int.h: New file, from GNU libc with modifications.
46219         * lib/spawni.c: New file, from GNU libc with modifications.
46220         * m4/posix_spawn.m4: New file.
46221
46222         New module 'spawn'.
46223         * modules/spawn: New file.
46224         * lib/spawn.in.h: New file, from GNU libc with modifications.
46225         * m4/spawn_h.m4: New file.
46226         * doc/posix-headers/spawn.texi: Mention the new module.
46227
46228 2008-09-28  Bruno Haible  <bruno@clisp.org>
46229
46230         * modules/sched-tests: New file.
46231         * tests/test-sched.c: New file.
46232
46233         New module 'sched'.
46234         * modules/sched: New file.
46235         * lib/sched.in.h: New file.
46236         * m4/sched_h.m4: New file.
46237         * doc/posix-headers/sched.texi: Mention the new module.
46238
46239 2008-09-27  Eric Blake  <ebb9@byu.net>
46240
46241         Fix previous patch, and tweak references to $0.
46242         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
46243         (func_version, func_gnulib_dir): Don't call this program
46244         gnulib-tool.
46245         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
46246         with using $0 in function.
46247         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
46248         (func_fatal_error): Reuse the name the user invoked us with.
46249
46250 2008-09-27  Bruno Haible  <bruno@clisp.org>
46251
46252         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
46253         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
46254         (gl_ICONV_H): Not here.
46255         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
46256         instead of assigning ICONV_H directly.
46257
46258         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
46259         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
46260         WCHAR_H directly.
46261
46262 2008-09-27  Bruno Haible  <bruno@clisp.org>
46263
46264         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
46265         * modules/arpa_inet (Depends-on): Add link-warning.
46266         (Makefile.am): Insert the definition of GL_LINK-WARNING.
46267         * modules/unistd (Makefile.am): Likewise.
46268
46269 2008-09-26  Bruno Haible  <bruno@clisp.org>
46270
46271         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
46272         variables.
46273         (func_version): Essentially copied from gnulib-tool.
46274         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
46275         func_readlink): Copied from gnulib-tool.
46276
46277 2008-09-26  Bruno Haible  <bruno@clisp.org>
46278
46279         * gnulib-tool (func_version): Change directory to $gnulib_dir before
46280         invoking git-version-gen.
46281
46282 2008-09-26  Bruno Haible  <bruno@clisp.org>
46283
46284         * posix-modules: Update to directory names changed on 2008-01-19.
46285         Remove commas in output before splitting into words. No more need to
46286         avoid 'ftruncate' since 2007-02-19.
46287
46288 2008-09-26  Bruno Haible  <bruno@clisp.org>
46289
46290         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
46291
46292 2008-09-26  Bruno Haible  <bruno@clisp.org>
46293
46294         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
46295         * modules/fwriteerror (Depends-on): Add errno.
46296
46297 2008-09-26  Bruno Haible  <bruno@clisp.org>
46298
46299         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
46300         * tests/test-vc-list-files-cvs.sh: Likewise.
46301
46302 2008-09-26  Bruno Haible  <bruno@clisp.org>
46303
46304         * doc/posix-headers/sys_resource.texi: Reorder items.
46305
46306 2008-09-26  Jim Meyering  <meyering@redhat.com>
46307
46308         fts: tweak inode comparison function
46309         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
46310         inode numbers, as documented.
46311
46312         fts: sort dirent entries on inode number before traversing
46313         This avoids a quadratic, seek-related performance penalty when
46314         operating on a directory containing many entries (measurable at 10k;
46315         3.5 hours at 2 million entries with a cold cache) on certain types
46316         of file systems, including ext3 and ext4, but not tmpfs.
46317         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
46318         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
46319         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
46320         (fs_handles_readdir_ordered_dirents_efficiently): New function.
46321         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
46322         (fts_build): Set the stat.st_ino member from D_INO.
46323         If it is likely to be useful, sort dirent entries on inode number.
46324
46325         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
46326         and the struct statfs.f_type member.
46327         * modules/fts (Depends-on): Add d-ino.
46328
46329 2008-09-26  Bruno Haible  <bruno@clisp.org>
46330
46331         * modules/sigpipe-die (Depends-on): Add sigpipe.
46332
46333         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
46334         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
46335         and GNULIB_STDIO_H_SIGPIPE are set.
46336         * lib/stdio-write.c: New file.
46337         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
46338         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
46339         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
46340         REPLACE_STDIO_WRITE_FUNCS.
46341         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
46342         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
46343         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
46344         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
46345         * modules/stdio (Files): Add lib/stdio-write.c.
46346         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
46347         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
46348         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
46349         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
46350         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
46351         REPLACE_FPRINTF_POSIX.
46352         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
46353         REPLACE_PRINTF_POSIX.
46354         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
46355         REPLACE_VFPRINTF_POSIX.
46356         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
46357         REPLACE_VPRINTF_POSIX.
46358         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
46359         SIGPIPE issue.
46360         * doc/posix-functions/fputc.texi: Likewise.
46361         * doc/posix-functions/fputs.texi: Likewise.
46362         * doc/posix-functions/fwrite.texi: Likewise.
46363         * doc/posix-functions/printf.texi: Likewise.
46364         * doc/posix-functions/putc.texi: Likewise.
46365         * doc/posix-functions/putchar.texi: Likewise.
46366         * doc/posix-functions/puts.texi: Likewise.
46367         * doc/posix-functions/vfprintf.texi: Likewise.
46368         * doc/posix-functions/vprintf.texi: Likewise.
46369
46370         * modules/safe-write (Depends-on): Add write.
46371
46372         * modules/sigpipe-tests: New file.
46373         * tests/test-sigpipe.c: New file.
46374         * tests/test-sigpipe.sh: New file.
46375
46376         * modules/write: New file.
46377         * lib/unistd.in.h: Include <sys/types.h>.
46378         (write): New declaration.
46379         * lib/write.c: New file.
46380         * m4/write.m4: New file.
46381         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
46382         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
46383         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
46384         GNULIB_WRITE, REPLACE_WRITE.
46385         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
46386         and the SIGPIPE issue.
46387
46388         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
46389         (raise): New declaration.
46390         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
46391         (ext_signal): New function.
46392         (rpl_raise): New function.
46393         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
46394         GNULIB_SIGNAL_H_SIGPIPE.
46395         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
46396         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
46397
46398         * modules/sigpipe: New file.
46399         * m4/sigpipe.m4: New file.
46400
46401 2008-09-25  Derek Price  <derek@ximbiot.com>
46402             Bruno Haible  <bruno@clisp.org>
46403
46404         * gnulib-tool (func_import): Report all license incompatibilities, not
46405         just the first one.
46406
46407 2008-09-25  Bruno Haible  <bruno@clisp.org>
46408
46409         * gnulib-tool (func_import): When computing the edits, consider not
46410         only the Makefile.ams that exist but also those that will be generated.
46411
46412 2008-09-25  Simon Josefsson  <simon@josefsson.org>
46413
46414         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
46415         fixes gnulib-tool --test warning about duplicate dependency.
46416
46417 2008-09-25  Bruno Haible  <bruno@clisp.org>
46418
46419         * gnulib-tool: Don't ask the user to perform edits in the generated
46420         Makefile.ams.
46421         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
46422         apply to the Makefile.am being generated.
46423         (func_emit_tests_Makefile_am): Execute edits that apply to the
46424         Makefile.am being generated.
46425         (func_import): Setup list of Makefile.am edits before emitting the
46426         Makefile.ams, not at the end.
46427         (func_create_testdir): Update.
46428         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
46429
46430 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46431
46432         * gnulib-tool (func_import): Store the --tests-base option in the
46433         comment in gnulib-cache.m4.
46434
46435 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
46436
46437         * NEWS: Document increased portability that sys_select now provides.
46438
46439         * lib/sys_select.in.h: Install select wrapper.
46440         * lib/sys_socket.in.h: Use more descriptive name when there is no
46441         select wrapper.
46442         * lib/winsock-select.c: New.
46443         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
46444         Require gl_HEADER_SYS_SOCKET.
46445         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
46446         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
46447         * tests/test-sys_select.c: Add functional tests.
46448
46449 2008-09-24  Eric Blake  <ebb9@byu.net>
46450
46451         open, fopen: close fd leak in last patch
46452         * lib/open.c (rpl_open): Close fd before returning error.
46453         * lib/fopen.c (rpl_fopen): Close fd before returning error.
46454         * doc/posix-functions/open.texi (open): Document that Irix also
46455         has the bug.
46456         * doc/posix-functions/fopen.texi (fopen): Likewise.
46457         Reported by Paolo Bonzini.
46458
46459 2008-09-24  Bruno Haible  <bruno@clisp.org>
46460
46461         Ensure that a filename ending in a slash cannot be used to access a
46462         non-directory.
46463         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
46464         to check whether it's really a directory.
46465         * lib/fopen.c: Include fcntl.h, unistd.h.
46466         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
46467         and fdopen().
46468         * modules/fopen (Depends-on): Add unistd.
46469         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
46470         * tests/test-fopen.c (main): Likewise.
46471         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
46472         * doc/posix-functions/fopen.texi: Likewise.
46473         Reported by Eric Blake.
46474
46475 2008-09-23  Eric Blake  <ebb9@byu.net>
46476
46477         c-stack: avoid compiler optimizations when provoking overflow
46478         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
46479         recursion harder to optimize, to ensure a stack overflow occurs.
46480         * tests/test-c-stack.c (recurse): Likewise.
46481         Borrowed from libsigsegv.
46482
46483         c-stack: work around Irix sigaltstack bug
46484         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
46485         whether sigaltstack uses wrong end of stack_t (copied in part from
46486         libsigsegv).
46487         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
46488         Irix bug, without requiring an over-allocation.
46489         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
46490         bug.
46491
46492         fopen: document mingw bug on directories
46493         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
46494         not allowing a stream visiting a directory, even though reading
46495         from such a stream is not portable.
46496
46497 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
46498
46499         * lib/poll.c: Rewrite.
46500         * modules/poll: Depend on alloca.
46501
46502 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
46503
46504         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
46505         instead define prototypes for a full set of wrappers.  Ensure
46506         that Cygwin does not use the compatibility code, which is only
46507         for MinGW.
46508         * lib/winsock.c: New.
46509         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
46510         * modules/sys_socket: Add lib/winsock.c.
46511
46512         * modules/poll-tests: Add errno and perror.
46513         * tests/test-poll.c: Use ioctl, not ioctlsocket.
46514
46515 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
46516
46517         * tests/test-poll.c: Downgrade minimum needed Winsock version.
46518
46519 2008-09-23  Bruno Haible  <bruno@clisp.org>
46520
46521         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
46522         * doc/glibc-functions/*: Likewise.
46523
46524 2008-09-23  Simon Josefsson  <simon@josefsson.org>
46525
46526         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
46527         success.
46528
46529 2008-09-22  Eric Blake  <ebb9@byu.net>
46530             Bruno Haible  <bruno@clisp.org>
46531
46532         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
46533         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
46534         supply %A but mishandle pseudo-NaN.
46535         Reported by Simon Josefsson.
46536
46537 2008-09-21  Bruno Haible  <bruno@clisp.org>
46538
46539         * tests/test-lock.c (main): Tweak skip message.
46540         * tests/test-tls.c (main): Likewise.
46541
46542 2008-09-21  Bruno Haible  <bruno@clisp.org>
46543
46544         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
46545         whether 'struct sigaction' has sa_sigaction here...
46546         (gl_PREREQ_SIG_HANDLER_H): ... not here.
46547         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
46548
46549 2008-09-21  Bruno Haible  <bruno@clisp.org>
46550
46551         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
46552         section.
46553         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
46554         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
46555         the new section.
46556         (Support for obsolete systems lacking POSIX:2001): New section.
46557         (String handling <string.h>): Move strdup to the new section.
46558         Suggested by Simon Josefsson and Paolo Bonzini.
46559
46560 2008-09-21  Bruno Haible  <bruno@clisp.org>
46561
46562         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
46563         exponents in %e and %g results on 'long double'. Needed for mingw's
46564         improved *printf functions.
46565         * tests/test-vasprintf-posix.c (test_function): Likewise.
46566         * tests/test-snprintf-posix.h (test_function): Likewise.
46567         * tests/test-sprintf-posix.h (test_function): Likewise.
46568         Reported by Eric Blake.
46569
46570 2008-09-21  Bruno Haible  <bruno@clisp.org>
46571
46572         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
46573         * tests/test-sprintf-posix.h (test_function): Likewise.
46574
46575 2008-09-21  Bruno Haible  <bruno@clisp.org>
46576
46577         * modules/getpass (Depends-on): Add strdup-posix.
46578
46579         New module 'strdup-posix'.
46580         * modules/strdup-posix: New file.
46581         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
46582         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
46583         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
46584         REPLACE_STRDUP.
46585         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
46586         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
46587         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
46588         strdup-posix.
46589
46590         * modules/strdup (Depends-on): Remove malloc-posix.
46591
46592 2008-09-20  Bruno Haible  <bruno@clisp.org>
46593
46594         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
46595         Wildenhues.
46596
46597 2008-09-20  Bruno Haible  <bruno@clisp.org>
46598
46599         Ensure that wint_t gets defined on IRIX 5.3.
46600         * lib/wchar.in.h (wint_t): Define if not defined by the system.
46601         * lib/wctype.in.h (wint_t): Likewise.
46602         (__wctype_wint_t): Remove type.
46603         (isw*): Use wint_t instead of __wctype_wint_t.
46604         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
46605         * modules/wchar (Files): Add m4/wint_t.m4.
46606         (Makefile.am): Substitute HAVE_WINT_T.
46607         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
46608         * tests/test-wctype.c: Check that wint_t is defined.
46609         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
46610         * doc/posix-headers/wctype.texi: Likewise.
46611         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
46612
46613 2008-09-18  Bruno Haible  <bruno@clisp.org>
46614
46615         * gnulib-tool (func_exit): Update comment.
46616
46617 2008-09-18  Simon Josefsson  <simon@josefsson.org>
46618
46619         * modules/getaddrinfo (Depends-on): Remove strdup, this module
46620         assumes strdup exists and does not depend on strdup to return
46621         ENOMEM on out of memory conditions.
46622
46623 2008-09-18  Bruno Haible  <bruno@clisp.org>
46624
46625         * lib/vasnprintf.c (VASNPRINTF): When printing ±0.0L in
46626         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
46627         digits for the exponent.
46628
46629 2008-09-18  Jim Meyering  <meyering@redhat.com>
46630             Bruno Haible  <bruno@clisp.org>
46631
46632         * lib/vasnprintf.c (decimal_point_char): Define also if
46633         NEED_PRINTF_INFINITE_LONG_DOUBLE.
46634
46635 2008-09-16  Bruno Haible  <bruno@clisp.org>
46636         and Eric Blake  <ebb9@byu.net>
46637
46638         vasnprintf: support Irix 5.3
46639         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
46640         that mishandle long double infinity.
46641         Reported by Tom G. Christensen.
46642
46643 2008-09-16  Bruno Haible  <bruno@clisp.org>
46644
46645         * doc/glibc-functions/scandir.texi: Mention the function is missing on
46646         Solaris 9.
46647         * doc/glibc-functions/alphasort.texi: Likewise.
46648         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
46649
46650 2008-09-16  Jim Meyering  <meyering@redhat.com>
46651
46652         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
46653         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
46654         a umask modification leak out of a subshell.  Otherwise, the
46655         opensolaris /bin/sh would be accepted and thus cause unwarranted
46656         failures in the coreutils test suite.
46657
46658 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
46659
46660         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
46661         to succeed.
46662
46663 2008-09-16  Jim Meyering  <meyering@redhat.com>
46664
46665         avoid spurious test failure when library is built without ACL support
46666         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
46667         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
46668         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
46669         * tests/test-copy-acl.sh: Likewise.
46670
46671 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46672
46673         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
46674         based on character occurrence counts.
46675
46676 2008-09-15  Eric Blake  <ebb9@byu.net>
46677
46678         tests: avoid some compiler warnings
46679         * tests/test-memchr.c (main): Pass NULL indirectly.
46680         * tests/test-closein.c (main): Avoid unused variable.
46681
46682 2008-09-15  Bruno Haible  <bruno@clisp.org>
46683
46684         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
46685         are missing on OpenBSD 4.0 individually.
46686         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
46687
46688 2008-09-15  Bruno Haible  <bruno@clisp.org>
46689
46690         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
46691         * doc/posix-functions/strerror.texi: Mention also Cygwin.
46692         * doc/posix-functions/perror.texi: Likewise.
46693         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
46694         is missing.
46695         Reported by Eric Blake.
46696
46697         * lib/errno.in.h: Use replacement values >= 2000.
46698         Reported by Eric Blake.
46699
46700 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46701
46702         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
46703         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
46704         limit.
46705         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
46706         compareseq was aborted.
46707
46708 2008-09-14  Bruno Haible  <bruno@clisp.org>
46709
46710         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
46711         yvec_edit_count.
46712         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
46713         (fstrcmp_bounded): Simplify result computation accordingly.
46714
46715 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46716
46717         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
46718         (fstrcmp): Define in terms of fstrcmp_bounded.
46719         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
46720         lower_bound argument.
46721         Return quickly if the result is certainly < lower_bound.
46722         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
46723
46724 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46725
46726         * lib/diffseq.h (EARLY_ABORT): New macro.
46727         (compareseq): Change return type to bool. Return true when EARLY_ABORT
46728         evaluates to true.
46729
46730 2008-09-14  Bruno Haible  <bruno@clisp.org>
46731
46732         * modules/perror-tests: New file.
46733         * tests/test-perror.sh: New file.
46734         * tests/test-perror.c: New file.
46735
46736         New module 'perror'.
46737         * lib/stdio.in.h (perror): New declaration.
46738         * lib/perror.c: New file.
46739         * m4/perror.m4: New file.
46740         * modules/perror: New file.
46741         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
46742         * doc/posix-functions/perror.texi: Mention the perror module.
46743         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
46744         REPLACE_PERROR.
46745         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
46746         REPLACE_PERROR.
46747
46748 2008-09-14  Bruno Haible  <bruno@clisp.org>
46749
46750         * modules/stdio (Makefile.am): Reorder to match the order in
46751         lib/stdio.in.h.
46752         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
46753
46754 2008-09-13  Bruno Haible  <bruno@clisp.org>
46755
46756         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
46757
46758 2008-09-13  Bruno Haible  <bruno@clisp.org>
46759
46760         Extend strerror to cover the added errno values.
46761         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
46762         (rpl_strerror): Provide error messages for the added errno values and
46763         for the WSA* values.
46764         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
46765         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
46766         strerror.
46767         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
46768         * modules/strerror (Depends-on): Add errno.
46769         * doc/posix-functions/strerror.texi: Document the change.
46770         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
46771         and EOVERFLOW.
46772
46773 2008-09-13  Bruno Haible  <bruno@clisp.org>
46774
46775         * modules/EOVERFLOW: Remove file.
46776         * m4/eoverflow.m4: Remove file.
46777         * modules/EOVERFLOW-tests: Remove file.
46778         * tests/test-EOVERFLOW.c: Remove file.
46779         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
46780         * modules/ftell (Depends-on): Likewise.
46781         * modules/getdelim (Depends-on): Likewise.
46782         * modules/getugroups (Depends-on): Likewise.
46783         * modules/poll (Depends-on): Likewise.
46784         * modules/snprintf (Depends-on): Likewise.
46785         * modules/sprintf-posix (Depends-on): Likewise.
46786         * modules/vasnprintf (Depends-on): Likewise.
46787         * modules/vasprintf (Depends-on): Likewise.
46788         * modules/vfprintf-posix (Depends-on): Likewise.
46789         * modules/vsnprintf (Depends-on): Likewise.
46790         * modules/vsprintf-posix (Depends-on): Likewise.
46791         * modules/xvasprintf (Depends-on): Likewise.
46792         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
46793         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
46794         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
46795         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
46796         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
46797         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
46798         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
46799         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
46800         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
46801         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
46802         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
46803         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
46804         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
46805         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
46806         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
46807         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
46808         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
46809         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
46810         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
46811         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
46812         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
46813         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
46814         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
46815         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
46816         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
46817         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
46818         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
46819         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
46820         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
46821         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
46822         * MODULES.html.sh: Remove EOVERFLOW.
46823         * NEWS: Mention the change.
46824
46825 2008-09-13  Bruno Haible  <bruno@clisp.org>
46826
46827         * modules/errno-tests: New file.
46828         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
46829
46830         * lib/errno.in.h: New file.
46831         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
46832         * modules/errno: New file.
46833         * doc/posix-headers/errno.texi: Update documentation.
46834         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
46835
46836 2008-09-13  Bruno Haible  <bruno@clisp.org>
46837
46838         * tests/test-poll.c: Use #if for native Windows, rather than testing
46839         __MSVCRT__.
46840
46841 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46842             Bruno Haible  <bruno@clisp.org>
46843
46844         * lib/glob.c: Don't include <pwd.h> on native Windows.
46845         (WINDOWS32): New macro.
46846         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
46847
46848 2008-09-13  Bruno Haible  <bruno@clisp.org>
46849
46850         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
46851         (ETIMEDOUT): Remove macro.
46852         (glthread_cond_timedwait_multithreaded): New declaration.
46853         (glthread_cond_timedwait): Use it.
46854         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
46855         (glthread_cond_timedwait_multithreaded): New function.
46856
46857 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
46858
46859         * modules/poll-tests: Do not check for io.h.
46860         * tests/test-poll.c: Check for __MSVCRT__ instead.
46861
46862 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
46863
46864         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
46865         * modules/poll-tests: Add inet_pton, stdbool, sockets.
46866         * tests/test-poll.c: Use them.  Use _pipe on Windows.
46867
46868 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
46869
46870         * modules/poll-tests: New.
46871         * tests/test-poll.c: New.
46872
46873 2008-09-12  Eric Blake  <ebb9@byu.net>
46874
46875         frexp: test for NetBSD failure on -0.0
46876         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
46877         not all, bugs from NetBSD 3.0 have been fixed.
46878         * doc/posix-functions/frexp.texi (frexp): Document bug.
46879         Reported by Thomas Klausner.
46880
46881         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
46882         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
46883         literal -0.0.
46884         Reported by Jonathan C. Patschke <jp@centtech.com>.
46885
46886 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46887
46888         * lib/glthread/cond.h: Use dummy implementation also if
46889         USE_WIN32_THREADS.
46890
46891 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46892
46893         * modules/fnmatch-posix (License): Change to LGPLv2+.
46894         * modules/fnmatch-gnu (License): Likewise.
46895
46896 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46897
46898         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
46899
46900 2008-09-11  Jim Meyering  <meyering@redhat.com>
46901
46902         * users.txt: Add gtk-vnc.
46903
46904 2008-09-08  Simon Josefsson  <simon@josefsson.org>
46905
46906         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
46907         rotate amounts.
46908
46909         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
46910         required for 16-bit and 8-bit rotates.
46911         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
46912         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
46913         UINT8_MAX instead of hard-coded constants.
46914         Suggested by Paul Eggert.
46915
46916 2008-09-07  Bruno Haible  <bruno@clisp.org>
46917
46918         * tests/test-striconveh.c (main): Check behaviour when converting from
46919         UTF-7.
46920
46921         Make striconveh work better with stateful encodings.
46922         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
46923         that iconv does not increment the inptr when returning -1/EINVAL.
46924
46925 2008-09-07  Bruno Haible  <bruno@clisp.org>
46926
46927         * build-aux/config.rpath: Update according to libtool-2.2.6.
46928         * build-aux/config.libpath: Likewise.
46929
46930 2008-09-06  Bruno Haible  <bruno@clisp.org>
46931
46932         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
46933         * lib/freadptr.c (freadptr): Likewise.
46934         * lib/freadseek.c (freadptrinc): Likewise.
46935         Reported by Simon Josefsson.
46936
46937 2008-09-06  Bruno Haible  <bruno@clisp.org>
46938
46939         * modules/freadptr (License): Change to LGPLv2+.
46940         * modules/freadseek (License): Likewise.
46941         Suggested by Eric Blake.
46942
46943         * modules/memchr2 (License): Change to LGPLv2+.
46944         Approved by Eric Blake.
46945
46946 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46947             Bruno Haible  <bruno@clisp.org>
46948
46949         Make gnulib-tool work with native 'sed' on AIX.
46950         * gnulib-tool (sed_noop): New variable.
46951         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
46952         func_add_or_update, func_create_testdir): Use it to initialize sed
46953         script variables.
46954         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
46955
46956 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
46957             Bruno Haible  <bruno@clisp.org>
46958
46959         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
46960         also works after #include directives.
46961
46962 2008-09-04  Ondřej Vašík  <ovasik@redhat.com>
46963
46964         getdate.y: reject an out-of-range timezone value
46965         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
46966         the range [-24...+24].  When specified with only one or two digits,
46967         * tests/test-getdate.c: Tests for the fix.
46968         * doc/getdate.texi: Document this change.
46969
46970 2008-09-03  Bruno Haible  <bruno@clisp.org>
46971
46972         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
46973
46974 2008-09-02  Simon Josefsson  <simon@josefsson.org>
46975
46976         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
46977         <bruce.korb@gmail.com> with ideas from Ben Pfaff
46978         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
46979         Blake <ebb9@byu.net>.
46980
46981         * tests/test-bitrotate.c: Add more test vectors.
46982
46983 2008-09-02  Eric Blake  <ebb9@byu.net>
46984
46985         vasnprintf-posix: handle large precision via %.*d
46986         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
46987         when handling it ourselves.
46988         * tests/test-vasnprintf-posix.c (test_function): Add test.
46989         * tests/test-snprintf-posix.h (test_function): Likewise.
46990         * tests/test-sprintf-posix.h (test_function): Likewise.
46991         * tests/test-vasprintf-posix.c (test_function): Likewise.
46992         Reported by Alain Guibert.
46993
46994 2008-09-01  Eric Blake  <ebb9@byu.net>
46995
46996         c-stack: make configure-time check more robust
46997         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
46998         successful sigaction call.
46999         Reported by Tom G. Christensen.
47000
47001 2008-09-01  Bruno Haible  <bruno@clisp.org>
47002
47003         New module 'findprog-lgpl'.
47004         * modules/findprog-lgpl: New file.
47005         * lib/findprog-lgpl.c: New file.
47006         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
47007         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
47008         to decide whether to use strdup or xstrdup, concatenated_filename or
47009         xconcatenated_filename.
47010
47011 2008-09-01  Bruno Haible  <bruno@clisp.org>
47012
47013         Split module 'concat-filename' into 'concat-filename' (LGPL) and
47014         'xconcat-filename' (GPL).
47015         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
47016         (License): Change to LGPLv2+.
47017         * modules/xconcat-filename: New file.
47018         * lib/concat-filename.h (concatenated_filename): Change specification.
47019         (xconcatenated_filename): New declaration.
47020         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
47021         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
47022         memory situations.
47023         * lib/xconcat-filename.c: New file.
47024         * NEWS: Mention the change.
47025         * lib/findprog.c: Include concat-filename.h, not filename.h.
47026         (find_in_path): Use xconcatenated_filename instead of
47027         concatenated_filename.
47028         * lib/javacomp.c: Include concat-filename.h, not filename.h.
47029         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
47030         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
47031         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
47032         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
47033         instead of concatenated_filename.
47034         * lib/javaexec.c: Include concat-filename.h, not filename.h.
47035         (execute_java_class): Use xconcatenated_filename instead of
47036         concatenated_filename.
47037         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
47038         * modules/javacomp (Depends-on): Likewise.
47039         * modules/javaexec (Depends-on): Likewise.
47040
47041 2008-09-01  Bruno Haible  <bruno@clisp.org>
47042
47043         Split module 'filename' into 'filename' and 'concat-filename'.
47044         * modules/filename: Keep only lib/filename.h.
47045         (License): Change to LGPLv2+.
47046         * modules/concat-filename: New file, extracted from modules/filename.
47047         * lib/filename.h (concatenated_filename): Remove declaration.
47048         * lib/concat-filename.h: New file, extracted from lib/filename.h.
47049         * lib/concat-filename.c: Include concat-filename.h.
47050         * NEWS: Mention the change.
47051
47052 2008-09-01  Simon Josefsson  <simon@josefsson.org>
47053
47054         * lib/bitrotate.h (rotl8, rotr8): Add.
47055
47056         * modules/bitrotate (configure.ac): Need
47057         AC_REQUIRE([AC_C_INLINE]).
47058         (Description): Mention stdint.h.  Reported by Bruno Haible
47059         <bruno@clisp.org>.
47060
47061         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
47062         Paolo Bonzini <bonzini@gnu.org>.
47063
47064 2008-08-31  Bruno Haible  <bruno@clisp.org>
47065
47066         Assume Solaris specific bi-arch conventions on Solaris systems.
47067         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
47068         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
47069         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
47070         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
47071         like acl_libdirstem.
47072         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
47073         acl_libdirstem.
47074         * NEWS: Mention the change.
47075         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
47076
47077 2008-08-31  Jim Meyering  <meyering@redhat.com>
47078
47079         * lib/strftime.h: Add comments describing the two added arguments.
47080
47081         remove duplicate #include directives
47082         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
47083         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
47084
47085 2008-08-31  Bruno Haible  <bruno@clisp.org>
47086
47087         New module 'sigpipe-die'.
47088         * modules/sigpipe-die: New file.
47089         * lib/sigpipe-die.h: New file.
47090         * lib/sigpipe-die.c: New file.
47091         * MODULES.html.sh (Signal handling): Add sigpipe-die.
47092
47093 2008-08-31  Bruno Haible  <bruno@clisp.org>
47094
47095         Don't override previously installed signal handlers.
47096         * lib/fatal-signal.c (saved_sigactions): New variable.
47097         (uninstall_handlers): Reset the signal to the saved handler, not
47098         to SIG_DFL (except when ignored).
47099         (install_handlers): Save the previous handlers.
47100
47101 2008-08-30  Bruno Haible  <bruno@clisp.org>
47102
47103         * gnulib-tool (func_reset_sigpipe): New function.
47104         (func_get_automake_snippet, func_modules_transitive_closure,
47105         func_import): Invoke it before a join command that reads from stdin,
47106         to avoid "echo: write error: Broken pipe" error messages on stderr.
47107         Reported by Sam Steingold <sds@gnu.org>.
47108
47109 2008-08-30  Bruno Haible  <bruno@clisp.org>
47110
47111         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
47112         Code copied from m4/open.m4.
47113         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
47114         access and the filename ends in a slash. Code copied from lib/open.c.
47115         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
47116         * tests/test-fopen.c (main): Check against bug with trailing slash.
47117
47118 2008-08-29  Bruno Haible  <bruno@clisp.org>
47119
47120         Avoid some "gcc -pedantic" warnings.
47121         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
47122         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
47123         * lib/dirent.in.h: Likewise.
47124         * lib/fcntl.in.h: Likewise.
47125         * lib/float.in.h: Likewise.
47126         * lib/iconv.in.h: Likewise.
47127         * lib/inttypes.in.h: Likewise.
47128         * lib/locale.in.h: Likewise.
47129         * lib/math.in.h: Likewise.
47130         * lib/netinet_in.in.h: Likewise.
47131         * lib/search.in.h: Likewise.
47132         * lib/signal.in.h: Likewise.
47133         * lib/stdarg.in.h: Likewise.
47134         * lib/stdint.in.h: Likewise.
47135         * lib/stdio.in.h: Likewise.
47136         * lib/stdlib.in.h: Likewise.
47137         * lib/string.in.h: Likewise.
47138         * lib/strings.in.h: Likewise.
47139         * lib/sys_select.in.h: Likewise.
47140         * lib/sys_socket.in.h: Likewise.
47141         * lib/sys_stat.in.h: Likewise.
47142         * lib/sys_time.in.h: Likewise.
47143         * lib/sysexits.in.h: Likewise.
47144         * lib/time.in.h: Likewise.
47145         * lib/unistd.in.h: Likewise.
47146         * lib/wchar.in.h: Likewise.
47147         * lib/wctype.in.h: Likewise.
47148         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
47149         * modules/fchdir (Makefile.am): Likewise.
47150         * modules/fcntl (Makefile.am): Likewise.
47151         * modules/float (Makefile.am): Likewise.
47152         * modules/iconv_open (Makefile.am): Likewise.
47153         * modules/inttypes (Makefile.am): Likewise.
47154         * modules/locale (Makefile.am): Likewise.
47155         * modules/math (Makefile.am): Likewise.
47156         * modules/netinet_in (Makefile.am): Likewise.
47157         * modules/search (Makefile.am): Likewise.
47158         * modules/signal (Makefile.am): Likewise.
47159         * modules/stdarg (Makefile.am): Likewise.
47160         * modules/stdint (Makefile.am): Likewise.
47161         * modules/stdio (Makefile.am): Likewise.
47162         * modules/stdlib (Makefile.am): Likewise.
47163         * modules/string (Makefile.am): Likewise.
47164         * modules/strings (Makefile.am): Likewise.
47165         * modules/sys_select (Makefile.am): Likewise.
47166         * modules/sys_socket (Makefile.am): Likewise.
47167         * modules/sys_stat (Makefile.am): Likewise.
47168         * modules/sys_time (Makefile.am): Likewise.
47169         * modules/sysexits (Makefile.am): Likewise.
47170         * modules/time (Makefile.am): Likewise.
47171         * modules/unistd (Makefile.am): Likewise.
47172         * modules/wchar (Makefile.am): Likewise.
47173         * modules/wctype (Makefile.am): Likewise.
47174         Reported by Reuben Thomas <rrt@sc3d.org>.
47175
47176 2008-08-29  Bruno Haible  <bruno@clisp.org>
47177
47178         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
47179         any more.
47180
47181 2008-08-29  Simon Josefsson  <simon@josefsson.org>
47182
47183         * MODULES.html.sh (Misc): Add bitrotate.
47184
47185         * modules/bitrotate: New file.
47186
47187         * lib/bitrotate.h: New file.
47188
47189         * modules/bitrotate-tests: New file.
47190
47191         * tests/test-bitrotate.c: New file.
47192
47193         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
47194         on the bitrotate module.
47195
47196         * lib/arctwo.c: Use new bitrotate module.
47197
47198 2008-08-29  Jim Meyering  <meyering@redhat.com>
47199
47200         bootstrap: merge changes from coreutils
47201         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
47202         of copied files.  Remove a kludge, now that this is fixed.
47203         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
47204         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
47205         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
47206
47207 2008-08-29  Bruno Haible  <bruno@clisp.org>
47208
47209         * MODULES.html.sh: Remove --cvs-urls option.
47210
47211 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
47212
47213         maint.mk: adjust to file name change
47214         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
47215
47216 2008-08-28  Jim Meyering  <meyering@redhat.com>
47217
47218         * modules/getndelim2 (License): Relicense to LGPLv2+.
47219         Approved by Richard Stallman for the version of 1995, and by
47220         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
47221
47222 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
47223
47224         * lib/getdelim.c (flockfile, funlockfile): Make all of them
47225         dummy if one is not available.  Do not touch them if
47226         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
47227         (getc_maybe_unlocked): New.
47228         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
47229
47230 2008-08-26  Eric Blake  <ebb9@byu.net>
47231
47232         doc/INSTALL: resync from autoconf
47233         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
47234         (INSTALL_PRELUDE): Delete; this is done more efficiently by
47235         moving...
47236         * install.texi [!autoconf]: ...here.  Resync from autoconf.
47237         * INSTALL: Regenerate.
47238         * INSTALL.ISO: New file.
47239         * INSTALL.UTF-8: Likewise.
47240
47241 2008-08-26  Jim Meyering  <meyering@redhat.com>
47242
47243         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
47244         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
47245         these definitions conditional, so that they may be overridden, too.
47246
47247 2008-08-26  Bruno Haible  <bruno@clisp.org>
47248
47249         Generate INSTALL file variants with prettier quotes.
47250         * doc/Makefile (INSTALL_PRELUDE): New macro.
47251         (INSTALL): Use it.
47252         (INSTALL.ISO, INSTALL.UTF-8): New rules.
47253
47254 2008-08-26  Bruno Haible  <bruno@clisp.org>
47255
47256         Run makeinfo in an English locale.
47257         * doc/Makefile (MAKEINFO): New variable.
47258
47259 2008-08-26  Bruno Haible  <bruno@clisp.org>
47260
47261         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
47262         Suggested by Eric Blake.
47263
47264 2008-08-25  Bruno Haible  <bruno@clisp.org>
47265
47266         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
47267
47268 2008-08-25  Eric Blake  <ebb9@byu.net>
47269
47270         c-stack: test that stack overflow can be caught
47271         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
47272         that platform allows handling stack overflow; at least OS/2 EMX
47273         has sigaltstack, but crashes before transferring control to
47274         handler on stack overflow.
47275         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
47276         check for HAVE_STACK_OVERFLOW_HANDLING.
47277         Reported by Elbert Pol.
47278
47279 2008-08-25  Bruno Haible  <bruno@clisp.org>
47280
47281         * doc/posix-functions/strftime.texi: Fix description of strftime
47282         module.
47283
47284 2008-08-24  Bruno Haible  <bruno@clisp.org>
47285
47286         * tests/uniwidth/test-uc_width2.c: New file.
47287         * tests/uniwidth/test-uc_width2.sh: New file.
47288         * modules/uniwidth/width-tests (Files): Add the new files.
47289         (TESTS): Add uniwidth/test-uc_width2.sh.
47290         (TESTS_ENVIRONMENT): New variable.
47291         (check_PROGRAMS): Add test-uc_width2.
47292         (test_uc_width2_SOURCES): New variable.
47293
47294         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
47295         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
47296         not 0x00AB.
47297         Reported by Alexander V. Lukyanov <lav@netis.ru>.
47298
47299 2008-08-22  Eric Blake  <ebb9@byu.net>
47300
47301         test-lock, test-tls: mention why a test is skipped
47302         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
47303         skipped.
47304         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
47305
47306         count-one-bits: relax license
47307         * modules/count-one-bits (License): Relicense to LGPLv2+.
47308         Suggested by Ludovic Courtès, approved by Ben Pfaff.
47309
47310 2008-08-22  Andreas Schwab  <schwab@suse.de>
47311
47312         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
47313         Remove spurious space in assignment.
47314
47315 2008-08-21  Simon Josefsson  <simon@josefsson.org>
47316
47317         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
47318         Paul Eggert <eggert@CS.UCLA.EDU>.
47319
47320 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
47321
47322         * modules/gettext: Add m4/threadlib.m4.
47323
47324 2008-08-19  Eric Blake  <ebb9@byu.net>
47325
47326         test-c-stack: fix compilation failure on FreeBSD 5.0
47327         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
47328         headers before <sys/resource.h>.
47329         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
47330         the bug.
47331         Reported by Nelson H. F. Beebe.
47332
47333         strverscmp: migrate from "strverscmp.h" to <string.h>
47334         * modules/string (Makefile.am): Add new hooks.
47335         * modules/strverscmp (Files): Remove strverscmp.h.
47336         (Depends-on): Add string.
47337         (configure.ac): Add indicator.
47338         (Include): Mention new header.
47339         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
47340         defaults.
47341         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
47342         results.
47343         * lib/strverscmp.h: Delete.
47344         * lib/string.in.h (strverscmp): Provide declaration, when needed.
47345         * tests/test-strverscmp.c (includes): Adjust client.
47346         * lib/check-version.c (includes): Likewise.
47347         * NEWS: Document the change.
47348
47349         strverscmp: add unit test
47350         * modules/strverscmp-tests: New file.
47351         * tests/test-strverscmp.c: Likewise.
47352
47353 2008-08-19  Simon Josefsson  <simon@josefsson.org>
47354
47355         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
47356         regarding Windows crypto stuff, from Mono.
47357
47358 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
47359
47360         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
47361         if present, for intel RND.  Return error on failures.
47362
47363 2008-08-18  Ben Pfaff  <blp@gnu.org>
47364
47365         gitlog-to-changelog: give better diagnostic for failed pipe-open
47366         * build-aux/gitlog-to-changelog: Improve error message: suggest
47367         that the version of Git may be too old.
47368
47369 2008-08-18  Simon Josefsson  <simon@josefsson.org>
47370
47371         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
47372         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
47373
47374 2008-08-18  Bruno Haible  <bruno@clisp.org>
47375
47376         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
47377         pthread_in_use().
47378
47379 2008-08-18  Bruno Haible  <bruno@clisp.org>
47380
47381         * lib/glthread/threadlib.c: Include <pthread.h>.
47382
47383 2008-08-18  Bruno Haible  <bruno@clisp.org>
47384
47385         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
47386         glthread_recursive_lock_* macros.
47387         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
47388         Fix syntax error.
47389
47390 2008-08-18  Bruno Haible  <bruno@clisp.org>
47391
47392         * lib/glthread/thread.c: Avoid forcing a context switch right after
47393         thread creation.
47394
47395 2008-08-17  Bruno Haible  <bruno@clisp.org>
47396
47397         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
47398         * lib/glthread/thread.h: Provide Win32 specific implementation.
47399         * modules/thread (Files): Add lib/glthread/thread.c.
47400         (Depends-on): Add lock.
47401         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
47402
47403 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47404
47405         New module 'yield'.
47406         * modules/yield: New file.
47407         * lib/glthread/yield.h: New file.
47408         * m4/yield.m4: New file.
47409         * MODULES.html.sh (Multithreading): Add yield.
47410
47411 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47412
47413         New module 'thread'.
47414         * modules/thread: New file.
47415         * lib/glthread/thread.h: New file.
47416         * m4/thread.m4: New file.
47417         * MODULES.html.sh (Multithreading): Add thread.
47418
47419 2008-08-17  Bruno Haible  <bruno@clisp.org>
47420
47421         * lib/glthread/lock.h: Include <stdlib.h> always.
47422         * lib/glthread/tls.h: Likewise.
47423         * lib/glthread/cond.h: Likewise.
47424
47425 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47426
47427         New module 'cond'.
47428         * modules/cond: New file.
47429         * lib/glthread/cond.h: New file.
47430         * lib/glthread/cond.c: New file.
47431         * m4/cond.m4: New file.
47432         * MODULES.html.sh (Multithreading): Add cond.
47433
47434 2008-08-16  Eric Blake  <ebb9@byu.net>
47435
47436         c-stack: fix regression on Irix 5.3 from 2008-06-21
47437         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
47438         sa_sigaction...
47439         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
47440         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
47441         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
47442         * modules/signal (Makefile.am): Use the value.
47443         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
47444         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
47445         * doc/posix-headers/signal.texi (signal.h): Document this
47446         portability issue.
47447         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
47448         Reported by Tom G. Christensen.
47449
47450 2008-08-17  Bruno Haible  <bruno@clisp.org>
47451
47452         New module 'threadlib'.
47453         * modules/threadlib: New file.
47454         * lib/glthread/threadlib.c: New file, extracted from
47455         lib/glthread/lock.c.
47456         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
47457         functions.
47458         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
47459         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
47460         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
47461         macros.
47462         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
47463         (gl_DISABLE_THREADS): Remove macro.
47464         * modules/lock (Files): Remove build-aux/config.rpath.
47465         (Depends-on): Remove havelib. Add threadlib.
47466         (configure.ac-early): Remove section.
47467         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
47468         * modules/tls (Depends-on): Remove lock. Add threadlib.
47469         (Link): New section, copied from threadlib.
47470         * MODULES.html.sh (Multithreading): Add threadlib.
47471
47472 2008-08-14  Bruno Haible  <bruno@clisp.org>
47473
47474         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
47475         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
47476         glthread_rwlock_unlock, glthread_rwlock_destroy,
47477         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
47478         glthread_recursive_lock_destroy): Define as macros always.
47479         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
47480         glthread_lock_lock.
47481         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
47482         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
47483         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
47484         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
47485         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
47486         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
47487         (glthread_recursive_lock_lock_func): Renamed from
47488         glthread_recursive_lock_lock.
47489         (glthread_recursive_lock_unlock_func): Renamed from
47490         glthread_recursive_lock_unlock.
47491         (glthread_recursive_lock_destroy_func): Renamed from
47492         glthread_recursive_lock_destroy.
47493
47494 2008-08-14  Bruno Haible  <bruno@clisp.org>
47495
47496         * lib/glthread/lock.h: Renamed from lib/lock.h.
47497         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
47498         * lib/glthread/tls.h: Renamed from lib/tls.h.
47499         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
47500         * lib/fstrcmp.c: Update includes.
47501         * lib/strsignal.c: Update includes.
47502         * modules/lock (Files, Makefile.am): Update.
47503         (Include): Change to "glthread/lock.h".
47504         * modules/tls (Files, Makefile.am): Update.
47505         (Include): Change to "glthread/tls.h".
47506         * tests/test-lock.c: Update includes.
47507         * tests/test-tls.c: Update includes.
47508         * NEWS: Mention the renamed header files.
47509
47510 2008-08-11  Jim Meyering  <meyering@redhat.com>
47511
47512         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
47513
47514 2008-08-11  Eric Blake  <ebb9@byu.net>
47515
47516         test-c-stack: avoid C99-ism
47517         * tests/test-c-stack.c (main): Fix whitespace, move declaration
47518         before statement.
47519         Reported by Alain Guibert.
47520
47521 2008-08-10  Jim Meyering  <meyering@redhat.com>
47522
47523         ensure that return value of uinttostr et al are not ignored
47524         * lib/inttostr.h (__GNUC_PREREQ): Define.
47525         (__attribute_warn_unused_result__): Define.
47526         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
47527
47528 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
47529
47530         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
47531         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
47532
47533 2008-08-07  Jim Meyering  <meyering@redhat.com>
47534
47535         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
47536
47537         * modules/mkstemp (License): Relicense under LGPLv2+.
47538         * modules/tempname (License): Likewise.
47539
47540 2008-08-06  Bruno Haible  <bruno@clisp.org>
47541
47542         * lib/poll.c (poll): Further micro-optimization.
47543
47544 2008-08-06  Jim Meyering  <meyering@redhat.com>
47545
47546         inet_pton.c: use locale-independent tolower
47547         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
47548         (inet_pton6): Use c_tolower rather than tolower.
47549         * modules/inet_pton (Depends-on): Add c-ctype.
47550
47551 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
47552
47553         * lib/poll.c (poll): Avoid division when timeout is 0, cache
47554         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
47555
47556 2008-08-06  Jim Meyering  <meyering@redhat.com>
47557
47558         * modules/inet_pton (License): Relicense under LGPLv2+.
47559
47560 2008-08-03  Bruno Haible  <bruno@clisp.org>
47561
47562         Additional non-aborting API for lock and tls.
47563         * lib/lock.h: Include <errno.h>.
47564         (glthread_lock_init): New macro/function.
47565         (gl_lock_init): Define as wrapper around glthread_lock_init.
47566         (glthread_lock_lock): New macro/function.
47567         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
47568         (glthread_lock_unlock): New macro/function.
47569         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
47570         (glthread_lock_destroy): New macro/function.
47571         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
47572         (glthread_rwlock_init): New macro/function.
47573         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
47574         (glthread_rwlock_rdlock): New macro/function.
47575         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
47576         (glthread_rwlock_wrlock): New macro/function.
47577         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
47578         (glthread_rwlock_unlock): New macro/function.
47579         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
47580         (glthread_rwlock_destroy): New macro/function.
47581         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
47582         (glthread_recursive_lock_init): New macro/function.
47583         (gl_recursive_lock_init): Define as wrapper around
47584         glthread_recursive_lock_init.
47585         (glthread_recursive_lock_lock): New macro/function.
47586         (gl_recursive_lock_lock): Define as wrapper around
47587         glthread_recursive_lock_lock.
47588         (glthread_recursive_lock_unlock): New macro/function.
47589         (gl_recursive_lock_unlock): Define as wrapper around
47590         glthread_recursive_lock_unlock.
47591         (glthread_recursive_lock_destroy): New macro/function.
47592         (gl_recursive_lock_destroy): Define as wrapper around
47593         glthread_recursive_lock_destroy.
47594         (glthread_once): New macro/function.
47595         (gl_once): Define as wrapper around glthread_once.
47596         Update function declarations.
47597         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
47598         glthread_rwlock_init. Return error code.
47599         (glthread_rwlock_rdlock_multithreaded): Renamed from
47600         glthread_rwlock_rdlock. Return error code.
47601         (glthread_rwlock_wrlock_multithreaded): Renamed from
47602         glthread_rwlock_wrlock. Return error code.
47603         (glthread_rwlock_unlock_multithreaded): Renamed from
47604         glthread_rwlock_unlock. Return error code.
47605         (glthread_rwlock_destroy_multithreaded): Renamed from
47606         glthread_rwlock_destroy. Return error code.
47607         (glthread_recursive_lock_init_multithreaded): Renamed from
47608         glthread_recursive_lock_init. Return error code.
47609         (glthread_recursive_lock_lock_multithreaded): Renamed from
47610         glthread_recursive_lock_lock. Return error code.
47611         (glthread_recursive_lock_unlock_multithreaded): Renamed from
47612         glthread_recursive_lock_unlock. Return error code.
47613         (glthread_recursive_lock_destroy_multithreaded): Renamed from
47614         glthread_recursive_lock_destroy. Return error code.
47615         (glthread_once_call): Make static.
47616         (glthread_once_multithreaded): Renamed from glthread_once.
47617         * lib/tls.h: Include <errno.h>.
47618         (glthread_tls_key_init): New macro/function.
47619         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
47620         (glthread_tls_set): New macro/function.
47621         (gl_tls_set): Define as wrapper around glthread_tls_set.
47622         (glthread_tls_key_destroy): New macro/function.
47623         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
47624         Update function declarations.
47625         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
47626         glthread_tls_get.
47627         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
47628
47629 2008-08-04  Eric Blake  <ebb9@byu.net>
47630
47631         gnumakefile: use space, not TAB, outside of targets
47632         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
47633
47634 2008-08-02  Jim Meyering  <meyering@redhat.com>
47635
47636         getdate.y: avoid locale-dependent date parsing failure
47637         In Turkish locales, getdate would fail to recognize keywords
47638         containing a lowercase "i".  The solution is not to rely on
47639         locale-sensitive case-conversion.
47640         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
47641         (lookup_word): Use c_toupper in place of toupper.
47642         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
47643         Reported by Vefa Bicakci <bicave@superonline.com> in
47644         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
47645         * modules/getdate (Depends-on): Add c-ctype.
47646
47647 2008-08-02  Bruno Haible  <bruno@clisp.org>
47648
47649         * gnulib-tool (func_import): When updating or creating a .gitignore
47650         file, prepend each added line with a slash, and ignore leading slashes
47651         from the existing lines.
47652         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
47653
47654 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47655
47656         Portability fix for GNU make 3.79.1.
47657         * top/GNUmakefile: Avoid 'else COND', which older GNU make
47658         versions do not understand.
47659
47660 2008-08-01  Bruno Haible  <bruno@clisp.org>
47661
47662         Work around bug of HP-UX 10.20 cc with -0.0 literal.
47663         * tests/test-isnanf.h (zero): New variable.
47664         (main): Avoid literal -0.0f.
47665         * tests/test-isnand.h (zero): New variable.
47666         (main): Avoid literal -0.0.
47667         * tests/test-isnanl.h (zero): New variable.
47668         (main): Avoid literal -0.0L.
47669         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
47670         (test_float, test_double, test_long_double): Avoid literals -0.0f,
47671         -0.0, -0.0L.
47672         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
47673         (test_signbitd): Avoid literal -0.0.
47674         (test_signbitl): Avoid literal -0.0L.
47675         * tests/test-ceilf1.c (zero): New variable.
47676         (main): Avoid literal -0.0f.
47677         * tests/test-ceill.c (zero): New variable.
47678         (main): Avoid literal -0.0L.
47679         * tests/test-floorf1.c (zero): New variable.
47680         (main): Avoid literal -0.0f.
47681         * tests/test-floorl.c (zero): New variable.
47682         (main): Avoid literal -0.0L.
47683         * tests/test-roundf1.c (zero): New variable.
47684         (main): Avoid literal -0.0f.
47685         * tests/test-round1.c (zero): New variable.
47686         (main): Avoid literal -0.0.
47687         * tests/test-roundl.c (zero): New variable.
47688         (main): Avoid literal -0.0L.
47689         * tests/test-truncf1.c (zero): New variable.
47690         (main): Avoid literal -0.0f.
47691         * tests/test-trunc1.c (zero): New variable.
47692         (main): Avoid literal -0.0.
47693         * tests/test-truncl.c (zero): New variable.
47694         (main): Avoid literal -0.0L.
47695         * tests/test-frexp.c (zero): New variable.
47696         (main): Avoid literal -0.0.
47697         * tests/test-frexpl.c (zero): New variable.
47698         (main): Avoid literal -0.0L.
47699         * tests/test-ldexpl.c (zero): New variable.
47700         (main): Avoid literal -0.0L.
47701         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
47702         (zerod, zerol): New variables.
47703         (test_function): Avoid literals -0.0, -0.0L.
47704         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
47705         (zerod, zerol): New variables.
47706         (test_function): Avoid literals -0.0, -0.0L.
47707         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
47708         (zerod, zerol): New variables.
47709         (test_function): Avoid literals -0.0, -0.0L.
47710         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
47711         (zerod, zerol): New variables.
47712         (test_function): Avoid literals -0.0, -0.0L.
47713         * tests/test-strtod.c (zero): New variable.
47714         (main): Avoid literal -0.0.
47715         Reported by Jonathan C. Patschke <jp@centtech.com>.
47716
47717 2008-07-31  Jim Meyering  <meyering@redhat.com>
47718
47719         sha256.h: correct definition of SHA224_DIGEST_SIZE
47720         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
47721         Reported by Paulie Pena IV <paulie4@gmail.com>.
47722         Define as 224 / 8, rather than as a literal.
47723         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
47724         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
47725         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
47726
47727 2008-07-31  Bruno Haible  <bruno@clisp.org>
47728
47729         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
47730         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
47731         Reported by Jonathan Patschke <jp@centtech.com>.
47732
47733 2008-07-31  Bruno Haible  <bruno@clisp.org>
47734
47735         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
47736         Reported by Paolo Bonzini <bonzini@gnu.org>.
47737
47738 2008-07-30  Eric Blake  <ebb9@byu.net>
47739
47740         test-strtod: allow compilation without -lm
47741         * tests/test-strtod.c (main): Avoid link dependence on fabs.
47742         Reported by Dennis Clarke <blastwave@gmail.com>.
47743
47744 2008-07-28  Jim Meyering  <meyering@redhat.com>
47745
47746         bootstrap: work also when there are no .po files in po/
47747         * build-aux/bootstrap (update_po_files): Complete the change
47748         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
47749
47750 2008-07-27  Jim Meyering  <meyering@redhat.com>
47751
47752         * users.txt: Add zile.
47753
47754 2008-07-26  Ben Pfaff  <blp@gnu.org>
47755
47756         Add missing dependencies on new m4/exponent[fdl].m4 files.
47757         * modules/isnanf-nolibm: Add m4/exponentf.m4.
47758         * modules/isnand-nolibm: Add m4/exponentd.m4.
47759         * modules/isnanl-nolibm: Add m4/exponentl.m4.
47760         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
47761         m4/isnan[fdl].m4, because the macros actually used moved.
47762         Reported by Jim Meyering.
47763
47764 2008-07-14  Ben Pfaff  <blp@gnu.org>
47765
47766         Add isinf module.
47767         * lib/isinf.c: New file.
47768         * lib/math.in.h: Define isinf macro if we have decided to replace
47769         it.
47770         * m4/isinf.m4: New file.
47771         * m4/math_h.m4: Initialize and substitute variables for isinf
47772         module.
47773         * modules/isinf: New file.
47774         * modules/isinf-tests: New file.
47775         * modules/math: Add substitutions for new module.
47776         * tests/test-isinf.c: New file.
47777         * doc/posix-functions/isinf.texi: Mention new module.
47778         * MODULES.html.sh: Mention new module.
47779
47780 2008-07-14  Ben Pfaff  <blp@gnu.org>
47781
47782         Factor out some macros for use by additional modules.
47783         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
47784         exponentf.m4.
47785         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
47786         exponentd.m4.
47787         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
47788         file exponentl.m4.
47789         * m4/exponentf.m4: New file.
47790         * m4/exponentd.m4: New file.
47791         * m4/exponentl.m4: New file.
47792         * modules/isnanf: Use new file m4/exponentf.m4.
47793         * modules/isnand: Use new file m4/exponentd.m4.
47794         * modules/isnanl: Use new file m4/exponentl.m4.
47795
47796 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
47797
47798         mktime.c: normalize tp->tm_isdst value to -1/0/1.
47799         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
47800         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
47801         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
47802
47803         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
47804         readlink on platforms without PATH_MAX.
47805
47806 2008-07-21  Eric Blake  <ebb9@byu.net>
47807
47808         Warn, not fail, on stale version.
47809         * top/GNUmakefile (_curr-ver): Tone down previous patch.
47810
47811         Don't allow installation with stale devel version number.
47812         * top/GNUmakefile (_is-install-target): New macro.
47813         (_curr-ver): Forbid installation with stale version number.
47814
47815 2008-07-20  Bruno Haible  <bruno@clisp.org>
47816
47817         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
47818         TESTS_ENVIRONMENT.
47819         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
47820
47821 2008-07-20  Bruno Haible  <bruno@clisp.org>
47822
47823         * lib/c-stack.h (c_stack_action): Add documentation.
47824         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
47825
47826 2008-07-20  Bruno Haible  <bruno@clisp.org>
47827
47828         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
47829         * modules/readlink (License): Likewise.
47830
47831 2008-07-17  Eric Blake  <ebb9@byu.net>
47832
47833         * modules/c-stack (Link): Fix typo.
47834
47835         Make c-stack use libsigsegv, when available.
47836         * modules/c-stack (Depends-on): Add libsigsegv.
47837         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
47838         needed.
47839         * lib/c-stack.c (SIGSTKSZ): Define fallback.
47840         (segv_handler, overflow_handler, c_stack_action)
47841         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
47842         implementation when libsigsegv is available, but only when using
47843         the library is necessary.
47844         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
47845         comment, explaining why XSI check fails on Linux.
47846         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
47847         * tests/test-c-stack2.sh: Tweak skip message.
47848         * NEWS: Document new link-time requirements.
47849
47850 2008-07-16  Eric Blake  <ebb9@byu.net>
47851
47852         c-stack: Expose false positives when not using libsigsegv.
47853         * modules/c-stack-tests (Files): Expand test.
47854         * tests/test-c-stack.c (main): Add means to conditionally trigger
47855         non-overflow SIGSEGV.
47856         * tests/test-c-stack2.sh: New file.
47857
47858 2008-07-14  Bruno Haible  <bruno@clisp.org>
47859
47860         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
47861         Reported by Eric Blake.
47862
47863 2008-07-14  Sam Steingold  <sds@gnu.org>
47864             Bruno Haible  <bruno@clisp.org>
47865
47866         New module libsigsegv.
47867         * modules/libsigsegv: New file.
47868         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
47869         modifications.
47870         * MODULES.html.sh (Signal handling): New section.
47871
47872 2008-07-14  Bruno Haible  <bruno@clisp.org>
47873
47874         * modules/unictype/ctype-* (Description): Add the word "function".
47875         Improves the resulting doc in MODULES.html.
47876
47877 2008-07-12  Ben Pfaff  <blp@gnu.org>
47878
47879         Add longlong module.
47880         * modules/longlong: New file.
47881
47882 2008-07-12  Bruno Haible  <bruno@clisp.org>
47883
47884         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
47885         to empty.
47886
47887 2008-07-10  Ben Pfaff  <blp@gnu.org>
47888
47889         Add isnan module.
47890         * doc/posix-functions/isnan.texi: Mention new module.
47891         * lib/math.in.h: Define isnan macro if we have decided to replace
47892         it.
47893         * m4/isnan.m4: New file.
47894         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
47895         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
47896         also.
47897         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
47898         redundancy.
47899         * m4/math_h.m4: Initialize and substitute variables for isnan
47900         module.
47901         * modules/isnan: New file.
47902         * modules/isnan-tests: New file.
47903         * modules/math: Add substitutions for new module.
47904         * tests/test-isnan.c: New file.
47905         * MODULES.html.sh: Mention new module.
47906
47907 2008-07-10  Ben Pfaff  <blp@gnu.org>
47908
47909         Add isnanf module.
47910         * lib/isnanf.m4: New file.
47911         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
47912         (gl_HAVE_ISNANF_IN_LIBM): New macro.
47913         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
47914         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
47915         * modules/isnanf: New file.
47916         * modules/isnanf-tests: New file.
47917         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
47918         files.
47919         * tests/test-isnanf-nolibm.c: factored most of its contents into
47920         new file tests/test-isnanf.h.
47921         * tests/test-isnanf.h: New file.
47922         * tests/test-isnanf.c: New file.
47923         * MODULES.html.sh: Mention new module.
47924         * doc/glibc-functions/isnanf.texi: Mention new module.
47925
47926 2008-07-10  Ben Pfaff  <blp@gnu.org>
47927
47928         Add isnand module.
47929         * lib/isnand.h: New file.
47930         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
47931         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
47932         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
47933         functionality also.
47934         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
47935         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
47936         (gl_HAVE_ISNAND_IN_LIBM): New macro.
47937         * modules/isnand: New file.
47938         * modules/isnand-tests: New file.
47939         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
47940         files.
47941         * tests/test-isnand-nolibm.c: factored most of its contents into
47942         new file tests/test-isnand.h.
47943         * tests/test-isnand.h: New file.
47944         * tests/test-isnand.c: New file.
47945         * MODULES.html.sh: Mention new module.
47946
47947 2008-07-10  Ben Pfaff  <blp@gnu.org>
47948
47949         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
47950         * lib/isnand.h: Rename lib/isnand-nolibm.h.
47951         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
47952         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
47953         * modules/isnanf-nolibm: Update references to renamed files.
47954         * modules/isnand-nolibm: Likewise.
47955         * modules/isnanf-nolibm-tests: Likewise.
47956         * modules/isnand-nolibm-tests: Likewise.
47957         * lib/frexp.c: Likewise.
47958         * lib/isfinite.c: Likewise.
47959         * lib/signbitd.c: Likewise.
47960         * lib/signbitf.c: Likewise.
47961         * lib/vasnprintf.c: Likewise.
47962         * tests/test-ceilf1.c: Likewise.
47963         * tests/test-ceilf2.c: Likewise.
47964         * tests/test-floorf1.c: Likewise.
47965         * tests/test-floorf2.c: Likewise.
47966         * tests/test-frexp.c: Likewise.
47967         * tests/test-round1.c: Likewise.
47968         * tests/test-round2.c: Likewise.
47969         * tests/test-roundf1.c: Likewise.
47970         * tests/test-strtod.c: Likewise.
47971         * tests/test-trunc1.c: Likewise.
47972         * tests/test-trunc2.c: Likewise.
47973         * tests/test-truncf1.c: Likewise.
47974         * tests/test-truncf2.c: Likewise.
47975         * NEWS: Mention the renamed header files.
47976
47977 2008-07-11  Jim Meyering  <meyering@redhat.com>
47978
47979         vc-list-files: make the last-resort awk code more portable
47980         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
47981         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
47982         does not support it.
47983
47984 2008-07-10  Eric Blake  <ebb9@byu.net>
47985
47986         Work with tar's bootstrap.
47987         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
47988         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
47989         an m4 comment.
47990
47991 2008-07-09  Jim Meyering  <meyering@redhat.com>
47992
47993         posix-shell.m4: fix typo that made this test malfunction
47994         * m4/posix-shell.m4: Remove capitalization in variable name.
47995
47996 2008-07-08  Bruno Haible  <bruno@clisp.org>
47997
47998         * m4/onceonly.m4: Update comments.
47999         Reported by Ben Pfaff <blp@cs.stanford.edu>.
48000
48001 2008-07-04  Jim Meyering  <meyering@redhat.com>
48002
48003         * users.txt: Add vc-dwim.
48004         (bison, coreutils): Use the gitweb URL.
48005
48006 2008-07-03  Jim Meyering  <meyering@redhat.com>
48007
48008         * users.txt: Add libffcall.  From Sam Steingold.
48009
48010 2008-07-03  Ondřej Vašík  <ovasik@redhat.com>
48011
48012         getdate.y: do not ignore TZ with relative day, month or year offset
48013         * lib/getdate.y (get_date): Move the tz-handling block to follow the
48014         relative-date-handling, since otherwise, the latter would clobber the
48015         sole output (an updated Start value) of the tz-handling block.
48016         * tests/test-getdate.c: Tests for the fix
48017
48018 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48019
48020         Recognize 'foo_LIBRARIES += libgnu.a'.
48021         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
48022         makefile snippet has already specified an installation location,
48023         also using '+='.
48024
48025 2008-07-02  Ondřej Vašík  <ovasik@redhat.com>
48026
48027         getdate.y: factor out common actions
48028         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
48029         Use them in place of open-coded actions.
48030
48031 2008-07-01  Simon Josefsson  <simon@josefsson.org>
48032
48033         Add self-test for getdate module.
48034         * modules/getdate-tests: New file.
48035         * tests/test-getdate.c: New file.
48036
48037 2008-06-29  Bruno Haible  <bruno@clisp.org>
48038
48039         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
48040         .gitignore.
48041         Reported by Sylvain Beucler <beuc@beuc.net>.
48042
48043 2008-06-29  Bruno Haible  <bruno@clisp.org>
48044
48045         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
48046         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
48047
48048 2008-06-29  Bruno Haible  <bruno@clisp.org>
48049
48050         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
48051         EXTRA_DIST.
48052         Reported by Sylvain Beucler <beuc@beuc.net>.
48053
48054 2008-06-26  Jim Meyering  <meyering@redhat.com>
48055
48056         make several modules depend on the "open" module
48057         This provides slightly increased consistency when opening-for-write
48058         the name of a non-directory spelled with a trailing slash.
48059         * modules/chdir-safer: Likewise.
48060         * modules/chown: Likewise.
48061         * modules/clean-temp: Likewise.
48062         * modules/copy-file: Likewise.
48063         * modules/fchdir: Likewise.
48064         * modules/fcntl-safer: Likewise.
48065         * modules/pipe: Likewise.
48066         * modules/utime: Likewise.
48067         Prompted by Eric Blake and Bruno Haible.
48068
48069 2008-06-24  Andreas Schwab  <schwab@suse.de>
48070
48071         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
48072         literals can be used as initializers for global variables.
48073
48074 2008-06-23  Eric Blake  <ebb9@byu.net>
48075
48076         Make gnulib-cache.m4 easier to diff.
48077         * gnulib-tool (func_import): Allow newlines when reading cached
48078         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
48079
48080 2008-06-23  Bruno Haible  <bruno@clisp.org>
48081
48082         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
48083         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
48084         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
48085         m4/signalblocking.m4.
48086         (gl_PREREQ_SIGACTION): Don't invoke it.
48087         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
48088         gl_PREREQ_SIG_HANDLER_H.
48089         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
48090         Don't check for sigaction here.
48091
48092 2008-06-23  Bruno Haible  <bruno@clisp.org>
48093
48094         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
48095         (install_handlers): Don't set the SA_RESETHAND flag.
48096
48097 2008-06-23  Bruno Haible  <bruno@clisp.org>
48098
48099         * m4/sigaction.m4: Comment fixes.
48100         * lib/signal.in.h: Likewise.
48101
48102 2008-06-23  Eric Blake  <ebb9@byu.net>
48103
48104         Fix typo.
48105         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
48106
48107         Avoid SA_ namespace.
48108         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
48109         Reported by Ralf Wildenhues.
48110
48111         Avoid test failure due to SA_RESTORER.
48112         * tests/test-sigaction.c (SA_MASK): New macro.
48113         (main): Avoid failing due to extension flags being set.
48114         Reported by Jim Meyering.
48115
48116         Revert use of sig-handler.h in sigprocmask.c.
48117         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
48118         it requires the existence of struct sigaction.
48119         * lib/sigprocmask.c (handler_t): Restore typedef.
48120         (rpl_signal, old_handlers): Use local type.
48121
48122 2008-06-22  Bruno Haible  <bruno@clisp.org>
48123
48124         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
48125         conditionally.
48126         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
48127
48128 2008-06-22  Bruno Haible  <bruno@clisp.org>
48129
48130         * doc/posix-functions/siginterrupt.texi: Move note.
48131
48132         * lib/signal.in.h (SA_RESTART): New macro.
48133         * lib/sigaction.c: Update comment.
48134
48135         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
48136
48137         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
48138         (gl_PREREQ_SIGPROCMASK): Invoke it.
48139         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
48140
48141         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
48142
48143         * lib/sigprocmask.c: Update a comment.
48144
48145 2008-06-21  Eric Blake  <ebb9@byu.net>
48146
48147         Use sigaction module rather than signal().
48148         * modules/c-stack (Depends-on): Add sigaction.
48149         * modules/fatal-signal (Depends-on): Likewise.
48150         * modules/nanosleep (Depends-on): Likewise.
48151         * modules/sigprocmask (Files): Add sig-handler.h.
48152         * modules/sigaction (Files): Likewise.
48153         * lib/sig-handler.h (get_handler): New file, suggested by Paul
48154         Eggert.
48155         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
48156         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
48157         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
48158         (init_fatal_signals): Likewise.
48159         * lib/nanosleep.c (rpl_nanosleep): Likewise.
48160         (siginterrupt): Delete fallback.
48161         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
48162         instead.
48163         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
48164         siginterrupt.
48165
48166         New module sigaction, for mingw.
48167         * modules/sigaction: New module...
48168         * modules/sigaction-tests: ...and its test.
48169         * m4/sigaction.m4: New file.
48170         * lib/sigaction.c: Likewise.
48171         * tests/test-sigaction.c: Likewise.
48172         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
48173         * modules/signal (Makefile.am): Likewise.
48174         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
48175         needed.
48176         * doc/posix-headers/signal.texi (signal.h): Mention provided
48177         types.
48178         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
48179         that sigaction is preferable.
48180         * doc/posix-functions/sigaction.texi (sigaction): Mention new
48181         module.
48182         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
48183         sigaction.
48184
48185         Improve robustness of sigprocmask by overriding signal.
48186         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
48187         is in use.
48188         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
48189         (SIGKILL, SIGSTOP): Provide fallbacks.
48190         (rpl_signal): Implement.
48191         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
48192         signal can be called inside handlers.
48193
48194         Fix nanosleep module on mingw.
48195         * modules/nanosleep (Depends-on): Add sys_select.
48196         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
48197
48198         Fix licensing of sigprocmask.
48199         * modules/raise (License): Relicense as LGPL.
48200
48201 2008-06-21  Bruno Haible  <bruno@clisp.org>
48202
48203         * lib/propername.c (proper_name_utf8): Don't use the transliterated
48204         result if it contains question marks.
48205         Reported by Michael Geng <linux@michaelgeng.de>.
48206
48207 2008-06-19  Bruno Haible  <bruno@clisp.org>
48208
48209         Fix CVS-ism.
48210         * doc/gnulib.texi: Include updated-stamp.texi.
48211         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
48212         (updated-stamp.texi): New rule.
48213         (gnulib.info): Depend on it.
48214         * doc/.gitignore: Add updated-stamp.texi.
48215         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
48216
48217 2008-06-19  Bruno Haible  <bruno@clisp.org>
48218
48219         * doc/Makefile (gnulib.info): Update and simplify dependencies.
48220         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
48221
48222 2008-06-19  Eric Blake  <ebb9@byu.net>
48223
48224         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
48225         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
48226         Reported by Stepan Kasal.
48227
48228 2008-06-18  Bruno Haible  <bruno@clisp.org>
48229
48230         * lib/fatal-signal.c (init_fatal_signals): Add comment.
48231         Reported by Eric Blake.
48232
48233 2008-06-18  Eric Blake  <ebb9@byu.net>
48234
48235         Work around cygwin 1.5.25 strsignal bug.
48236         * tests/test-strsignal.c: Allow for const char *.
48237         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
48238
48239 2008-06-18  Simon Josefsson  <simon@josefsson.org>
48240
48241         * users.txt: Update URL to article and add author/date
48242         information.
48243
48244 2008-06-17  Bruno Haible  <bruno@clisp.org>
48245
48246         New macro gl_DISABLE_THREADS.
48247         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
48248         if the user did not pass --enable-threads or --disable-threads option.
48249         (gl_DISABLE_THREADS): New macro.
48250         Reported by Eric Blake <ebb9@byu.net>.
48251
48252 2008-06-17  Bruno Haible  <bruno@clisp.org>
48253
48254         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
48255         when the macro ignores it.
48256         Based on a patch by Eric Blake <ebb9@byu.net>.
48257
48258 2008-06-17  Bruno Haible  <bruno@clisp.org>
48259
48260         * modules/tls (License): Change to LGPLv2+.
48261         Reported by Eric Blake.
48262
48263 2008-06-17  Eric Blake  <ebb9@byu.net>
48264
48265         Simplify c-stack prerequisites.
48266         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
48267         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
48268         no longer requires <ucontext.h> to exist.  Optimize setrlimit
48269         check.
48270         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
48271         <sys/resource.h>.
48272
48273         Move c-stack test into testsuite.
48274         * modules/c-stack-tests: New file.
48275         * lib/c-stack.c [DEBUG]: Move test program...
48276         * tests/test-c-stack.c: ...into this new file.  Skip rather than
48277         fail test if sigaltstack is lacking.
48278         * tests/test-c-stack.sh: New driver file.
48279
48280 2008-06-16  Eric Blake  <ebb9@byu.net>
48281
48282         Use raise module consistently.
48283         * modules/fatal-signal (Depends-on): Add raise.
48284         * modules/sigprocmask (Depends-on): Likewise.
48285         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
48286         * lib/sigprocmask.c (sigprocmask): Likewise.
48287         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
48288         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
48289
48290         Fix compliance bug in sigpending.
48291         * lib/sigprocmask.c (sigpending): Return pending array via
48292         parameter, not return value.
48293
48294 2008-06-14  Eric Blake  <ebb9@byu.net>
48295
48296         Improve obstack-printf test code.
48297         * tests/test-obstack-printf.c (test_function): Fix comment, and
48298         simplify usage of obstack_* in macros.  Add a test for coverage.
48299         Reported by Bruno Haible.
48300
48301 2008-06-14  Bruno Haible  <bruno@clisp.org>
48302
48303         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
48304         array size as a constant, not as a const variable.
48305         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
48306         AC_USE_SYSTEM_EXTENSIONS.
48307         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
48308         Test whether the obstack_printf function actually exists.
48309         * modules/obstack-printf (Depends-on): Add extensions.
48310         (Include): Remove obstack.h.
48311         * modules/obstack-printf-posix (Depends-on): Add extensions.
48312         (Include): Remove obstack.h.
48313
48314 2008-06-13  Eric Blake  <ebb9@byu.net>
48315
48316         Add obstack-printf and obstack-printf-posix modules.
48317         * modules/obstack-printf: New file.
48318         * modules/obstack-printf-posix: Likewise.
48319         * MODULES.html.sh (Misc): Mention them.
48320         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
48321         Likewise.
48322         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
48323         Likewise.
48324         * modules/stdio (Makefile.am): Accomodate new modules.
48325         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
48326         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
48327         Declare.
48328         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
48329         functions.
48330         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
48331         (gl_REPLACE_OBSTACK_PRINTF): New macros
48332         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
48333         * tests/test-obstack-printf.c: New file.
48334         * modules/obstack-printf-tests: Likewise.
48335         * modules/obstack-printf-posix-tests: Likewise.
48336
48337 2008-06-11  Bruno Haible  <bruno@clisp.org>
48338
48339         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
48340         * lib/open.c: Include errno.h.
48341         (open): Fail when attempting to write to a file that has a trailing
48342         slash.
48343         * tests/test-open.c (main): Test against trailing slash bug.
48344         * doc/posix-functions/open.texi: Mention the trailing slash bug.
48345
48346 2008-06-10  Bruno Haible  <bruno@clisp.org>
48347
48348         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
48349         for $? to work inside the trap command, with various /bin/sh-s.
48350         * tests/test-vc-list-files-cvs.sh: Likewise.
48351
48352 2008-06-10  Bruno Haible  <bruno@clisp.org>
48353
48354         * lib/acl-internal.h: Don't include gettext.h here.
48355         * lib/set-mode-acl.c: Include gettext.h here.
48356         * lib/copy-acl.c: Likewise.
48357
48358 2008-06-10  Bruno Haible  <bruno@clisp.org>
48359
48360         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
48361         * lib/wait-process.c (wait_subprocess): Likewise.
48362         * lib/execute.h (execute): Add termsigp argument.
48363         * lib/execute.c (execute): Likewise.
48364         * lib/csharpcomp.c (compile_csharp_using_pnet,
48365         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
48366         * lib/csharpexec.c (execute_csharp_using_pnet,
48367         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
48368         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
48369         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
48370         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
48371         is_jikes_present): Update.
48372         * lib/javaexec.c (execute_java_class): Update.
48373         * lib/javaversion.c (execute_and_read_line): Update.
48374         * NEWS: Document the changes.
48375         Reported by Eric Blake.
48376
48377 2008-06-10  Eric Blake  <ebb9@byu.net>
48378
48379         Add missing include.
48380         * tests/test-strstr.c (includes): Add <signal.h>.
48381         * tests/test-strcasestr.c (includes): Likewise.
48382         * tests/test-memmem.c (includes): Likewise.
48383
48384 2008-06-10  Bruno Haible  <bruno@clisp.org>
48385
48386         * lib/wait-process.c (wait_subprocess): Add an assertion.
48387
48388 2008-06-10  Bruno Haible  <bruno@clisp.org>
48389
48390         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
48391
48392 2008-06-10  Bruno Haible  <bruno@clisp.org>
48393
48394         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
48395         using alarm().
48396         * tests/test-strcasestr.c (main): Likewise.
48397         * tests/test-strstr.c (main): Likewise.
48398
48399 2008-06-09  Bruno Haible  <bruno@clisp.org>
48400
48401         Work around the Solaris 10 ACE ACLs ABI change.
48402         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
48403         declare if ACL_NO_TRIVIAL is present.
48404         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
48405         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
48406         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
48407         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
48408         define if ACL_NO_TRIVIAL is present.
48409         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
48410         and use the current ABI.
48411         (file_has_acl): Use same #if condition as elsewhere.
48412         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
48413         in use, and use the current ABI.
48414         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
48415         Reported by Jim Meyering.
48416
48417 2008-06-09  Eric Blake  <ebb9@byu.net>
48418
48419         Work around environments that (stupidly) ignore SIGALRM.
48420         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
48421         before using alarm().
48422         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
48423         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
48424         Reported by Ian Beckwith <ianb@erislabs.net>.
48425
48426         Produce autobuild blurb earlier in log.
48427         * modules/autobuild (configure.ac-early): Move AB_INIT here.
48428
48429 2008-06-09  Jim Meyering  <meyering@redhat.com>
48430         and Ondřej Vašík  <ovasik@redhat.com>
48431
48432         utimens.c: correct kernel bug work-around
48433         Ondřej Vašík found that the invalid return value of 280 indicates
48434         failure, not success, and the kernel bug we're trying to work
48435         around affects not just the utimensat call, but also the fallback
48436         futimens call.
48437         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
48438         not success.
48439         [HAVE_FUTIMENS]: Use the same work-around, here.
48440
48441 2008-06-09  Jim Meyering  <meyering@redhat.com>
48442
48443         add more guards around definition of ACE_-related code
48444         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
48445         ALLOW and ACE_OWNER are also defined.
48446
48447 2008-06-08  Bruno Haible  <bruno@clisp.org>
48448
48449         * lib/acl-internal.h: Add me as co-author.
48450         * lib/file-has-acl.c: Likewise.
48451         * lib/set-mode-acl.c: Likewise.
48452         * lib/copy-acl.c: Likewise.
48453
48454 2008-06-08  Bruno Haible  <bruno@clisp.org>
48455
48456         Add support for AIX ACLs.
48457         * lib/acl-internal.h (acl_nontrivial): New declaration.
48458         * lib/file-has-acl.c (acl_nontrivial): New function.
48459         (file_has_acl): Add implementation using AIX 4 ACL API.
48460         * lib/set-mode-acl.c (qset_acl): Likewise.
48461         * lib/copy-acl.c (qcopy_acl): Likewise.
48462
48463 2008-06-08  Bruno Haible  <bruno@clisp.org>
48464
48465         Add support for HP-UX ACLs.
48466         * lib/acl-internal.h (acl_nontrivial): New declaration.
48467         * lib/file-has-acl.c (acl_nontrivial): New function.
48468         (file_has_acl): Add implementation using HP-UX 11 ACL API.
48469         * lib/set-mode-acl.c (qset_acl): Likewise.
48470         * lib/copy-acl.c (qcopy_acl): Likewise.
48471
48472 2008-06-08  Bruno Haible  <bruno@clisp.org>
48473
48474         Add support for Cygwin ACLs.
48475         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
48476         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
48477         the chmod_or_fchmod call.
48478         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
48479
48480 2008-06-08  Bruno Haible  <bruno@clisp.org>
48481
48482         Fix bug with setuid modes in Solaris 10+ code.
48483         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
48484         succeeded, when the mode contains some special bits.
48485
48486 2008-06-08  Bruno Haible  <bruno@clisp.org>
48487
48488         Add support for Solaris 7..10 ACLs.
48489         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
48490         declarations.
48491         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
48492         functions.
48493         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
48494         * lib/set-mode-acl.c (qset_acl): Likewise.
48495         * lib/copy-acl.c (qcopy_acl): Likewise.
48496
48497 2008-06-08  Bruno Haible  <bruno@clisp.org>
48498
48499         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
48500         declaration.
48501         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
48502         (acl_access_nontrivial): Remove MacOS X case.
48503         (file_has_acl): Use acl_extended_nontrivial.
48504         * lib/copy-acl.c (qcopy_acl): Likewise.
48505
48506 2008-06-08  Bruno Haible  <bruno@clisp.org>
48507
48508         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
48509
48510 2008-06-08  Jim Meyering  <meyering@redhat.com>
48511
48512         * modules/acl (Maintainer): Add Bruno Haible.
48513
48514 2008-06-07  Bruno Haible  <bruno@clisp.org>
48515
48516         Improve support for Tru64 ACLs.
48517         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
48518         ACL on OSF/1.
48519
48520 2008-06-07  Bruno Haible  <bruno@clisp.org>
48521
48522         Add support for MacOS X ACLs.
48523         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
48524         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
48525         * lib/set-mode-acl.c (qset_acl): Likewise.
48526         * lib/copy-acl.c (qcopy_acl): Likewise.
48527
48528 2008-06-07  Bruno Haible  <bruno@clisp.org>
48529
48530         Fix memory leak introduced on 2008-05-22.
48531         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
48532         use.
48533
48534 2008-06-07  Bruno Haible  <bruno@clisp.org>
48535
48536         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
48537         to construct an empty ACL.
48538
48539 2008-06-07  Bruno Haible  <bruno@clisp.org>
48540
48541         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
48542         precisely.
48543         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
48544
48545 2008-06-07  Bruno Haible  <bruno@clisp.org>
48546
48547         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
48548         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
48549
48550 2008-06-07  Bruno Haible  <bruno@clisp.org>
48551
48552         * doc/posix-functions/_setjmp.texi: Explain the use of this function
48553         regardless of POSIX.
48554         * doc/posix-functions/_longjmp.texi: Likewise.
48555         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
48556         SystemV platform in this case.
48557
48558 2008-06-06  Eric Blake  <ebb9@byu.net>
48559
48560         Document abort() bugs.
48561         * doc/posix-functions/abort.texi (abort): Mention anomalies.
48562
48563         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
48564         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
48565         sigsetjmp.
48566         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
48567         siglongjmp, but only as a macro.
48568         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
48569         is obsolete.
48570         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
48571
48572         Tweak documentation to cover cygwin argz bugs.
48573         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
48574         argz bug fix; no code change needed since no cygwin releases
48575         occurred between the last fix and the bug being tested.
48576         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
48577         module and recently fixed cygwin bugs.
48578         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
48579         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
48580         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
48581         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
48582         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
48583         Likewise.
48584         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
48585         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
48586         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
48587         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
48588         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
48589         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
48590         Likewise.
48591
48592         Avoid gcc warning on cygwin.
48593         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
48594         !ACL_NO_TRIVIAL]: Avoid unused variable.
48595
48596 2008-06-05  Eric Blake  <ebb9@byu.net>
48597
48598         Be tolerant of UNKNOWN version in gnulib-tool test dir.
48599         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
48600         git-version-gen fails to come up with a version.
48601         Reported by Simon Josefsson.
48602
48603 2008-06-05  Jim Meyering  <meyering@redhat.com>
48604             Paul Eggert  <eggert@cs.ucla.edu>
48605
48606         utimens.c: work around a probable Linux kernel bug
48607         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
48608         appears to be a kernel bug that causes utimensat to return 280
48609         instead of 0, indicating success.
48610
48611 2008-06-04  Bruno Haible  <bruno@clisp.org>
48612
48613         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
48614         2008-06-01 commit.
48615
48616 2008-06-04  Bruno Haible  <bruno@clisp.org>
48617
48618         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
48619         * lib/file-has-acl.c (acl_access_nontrivial): New function.
48620         (file_has_acl): Use it. Save errno afterwards.
48621         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
48622
48623 2008-06-03  Bruno Haible  <bruno@clisp.org>
48624
48625         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
48626         draft code. Simplify #ifs.
48627         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
48628         Put Solaris code after POSIX-draft code. Fix comments regarding
48629         Solaris 10, HP-UX. Mention Cygwin.
48630         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
48631
48632 2008-06-03  Eric Blake  <ebb9@byu.net>
48633
48634         Provide fallback for older kernels.
48635         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
48636         Provide runtime fallback if kernel lacks support.
48637         Reported by Mike Frysinger.
48638
48639 2008-06-02  Bruno Haible  <bruno@clisp.org>
48640
48641         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
48642         it exists.
48643
48644 2008-06-02  Bruno Haible  <bruno@clisp.org>
48645
48646         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
48647         * lib/copy-acl.c (qcopy_acl): Update comment.
48648
48649 2008-06-02  Bruno Haible  <bruno@clisp.org>
48650
48651         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
48652         like ACL APIs.
48653
48654 2008-06-02  Bruno Haible  <bruno@clisp.org>
48655
48656         * tests/test-file-has-acl.sh: Use different code for Cygwin.
48657         * tests/test-set-mode-acl.sh: Likewise.
48658         * tests/test-copy-acl.sh: Likewise.
48659         * tests/test-copy-file.sh: Likewise.
48660
48661 2008-06-02  Bruno Haible  <bruno@clisp.org>
48662
48663         * tests/test-file-has-acl.sh: Remove unused code.
48664
48665 2008-06-01  Bruno Haible  <bruno@clisp.org>
48666
48667         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
48668         (copy_acl): Just a wrapper around qcopy_acl that emits the error
48669         messages.
48670         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
48671
48672 2008-06-01  Bruno Haible  <bruno@clisp.org>
48673
48674         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
48675         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
48676         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
48677         APIs.
48678         * modules/acl-tests (configure.ac): Remove tests now contained in
48679         m4/acl.m4.
48680
48681 2008-06-02  Jim Meyering  <meyering@redhat.com>
48682
48683         announce-gen: use a better key-server host name
48684         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
48685         it may be more consistently reliable.  Suggested by Werner Koch
48686         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
48687
48688 2008-06-01  Bruno Haible  <bruno@clisp.org>
48689
48690         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
48691         Reported by Voroskoi Andras <voroskoi@gmail.com>.
48692
48693 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
48694
48695         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
48696
48697 2008-06-01  Bruno Haible  <bruno@clisp.org>
48698
48699         New ACL tests.
48700         * tests/test-file-has-acl.sh: New file.
48701         * tests/test-file-has-acl.c: New file.
48702         * tests/test-set-mode-acl.sh: New file.
48703         * tests/test-set-mode-acl.c: New file.
48704         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
48705         * tests/test-copy-acl.c: New file.
48706         * modules/acl-tests: New file, based on modules/copy-file-tests.
48707         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
48708         (Depends-on): Add acl-tests.
48709         (configure.ac): Remove checks.
48710         (Makefile.am): Don't create test-sameacls program here any more.
48711
48712 2008-06-01  Bruno Haible  <bruno@clisp.org>
48713
48714         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
48715         * tests/test-sameacls.c: Include progname.h.
48716         (main): Invoke set_program_name. Portability fixes for MacOS X,
48717         Solaris, HP-UX.
48718
48719 2008-06-01  Bruno Haible  <bruno@clisp.org>
48720
48721         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
48722         function.
48723         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
48724
48725 2008-06-01  Bruno Haible  <bruno@clisp.org>
48726
48727         * modules/rpmatch (Depends-on): Add strdup.
48728
48729 2008-06-01  Bruno Haible  <bruno@clisp.org>
48730
48731         * lib/pipe.c: Include unistd-safer.h.
48732         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
48733         * modules/pipe (Depends-on): Add unistd-safer.
48734
48735 2008-05-30  Simon Josefsson  <simon@josefsson.org>
48736
48737         * modules/autobuild (configure.ac): Call AB_INIT.
48738
48739 2008-05-30  Simon Josefsson  <simon@josefsson.org>
48740
48741         * tests/test-getaddrinfo.c: Don't print debug messages by default.
48742         Suggested by Bruno Haible <bruno@clisp.org>.
48743
48744 2008-05-30  Simon Josefsson  <simon@josefsson.org>
48745
48746         * tests/test-base64.c: Cast size_t to unsigned long when invoking
48747         printf.  Use %lu instead of %d.  Reported by Bruno Haible
48748         <bruno@clisp.org>.
48749
48750 2008-05-29  Eric Blake  <ebb9@byu.net>
48751
48752         Prefer new POSIX 200x interfaces over futimesat.
48753         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
48754         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
48755         when available.
48756         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
48757
48758 2008-05-28  Bruno Haible  <bruno@clisp.org>
48759
48760         * modules/stpcpy (License): Change to LGPLv2+.
48761         Requested by David Lutterkort <dlutter@redhat.com>.
48762
48763 2008-05-27  Bruno Haible  <bruno@clisp.org>
48764
48765         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
48766         current mingw.
48767         Reported by Jose E. Marchesi <jemarch@gnu.org>.
48768
48769 2008-05-27  Bruno Haible  <bruno@clisp.org>
48770
48771         * modules/iconv_open (Link): New section, from module 'iconv'.
48772         * modules/striconv (Link): Likewise.
48773         * modules/striconveh (Link): Likewise.
48774         * modules/xstriconv (Link): Likewise.
48775         * modules/unicodeio (Link): Likewise.
48776         * modules/propername (Link): Likewise.
48777         Reported by Jim Meyering.
48778
48779 2008-05-26  Jim Meyering  <meyering@redhat.com>
48780
48781         sha256: do not artificially restrict buffer length to be < 2^32
48782         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
48783         uint32_t to size_t.
48784         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
48785         to match.
48786
48787         avoid unaligned access errors, e.g., on sparc
48788         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
48789         direct access through a possibly-unaligned uint64* pointer.
48790         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
48791         direct access through a possibly-unaligned uint32* pointer.
48792         Prompted by this patch from Tom "spot" Callaway:
48793         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
48794
48795         sha512.c: fix typo in comment
48796         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
48797
48798 2008-05-25  Bruno Haible  <bruno@clisp.org>
48799
48800         * lib/set-mode-acl.c: Renamed from lib/acl.c.
48801         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
48802         (Makefile.am): Update lib_SOURCES.
48803
48804 2008-05-25  Bruno Haible  <bruno@clisp.org>
48805
48806         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
48807
48808 2008-05-25  Jim Meyering  <meyering@redhat.com>
48809
48810         useless-if-before-free: freed expr may have white-space differences
48811         * build-aux/useless-if-before-free: Recognize cases in which the
48812         freed expression differs from the tested one in embedded white
48813         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
48814         $1 was used, so we can't make any regexp shy.  Improved tests now
48815         detect this.
48816
48817         useless-if-before-free: accept white space in the expression.
48818         * build-aux/useless-if-before-free: For now, any white space
48819         in the expression must be identical in the free argument.
48820
48821         useless-if-before-free: efficiency tweak
48822         * build-aux/useless-if-before-free: Make the expression-matching
48823         regexp "shy".
48824         Make the *outer* regexp shy, not the expr-matching one.
48825
48826         update code-in-comment to accept cast of free arg
48827         * build-aux/useless-if-before-free: Update regexp.
48828
48829 2008-05-25  Bruno Haible  <bruno@clisp.org>
48830
48831         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
48832         * modules/copy-file-tests (Files, Makefile.am): Update.
48833         * tests/test-copy-file.c (func_test_copy): Update.
48834
48835 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
48836
48837         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
48838
48839 2008-05-23  Bruno Haible  <bruno@clisp.org>
48840
48841         Improve support for ACLs on OSF/1.
48842         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
48843         Remove fallback for unknown flavors of ACLs.
48844
48845 2008-05-22  Bruno Haible  <bruno@clisp.org>
48846
48847         Add support for ACLs on OSF/1.
48848         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
48849         replacements.
48850         (acl_free_text): New macro fallback.
48851         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
48852         acl_free.
48853         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
48854         acl_free_text function. Require AC_C_INLINE.
48855
48856 2008-05-22  Bruno Haible  <bruno@clisp.org>
48857
48858         Make copy_acl work on MacOS X 10.5.
48859         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
48860         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
48861         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
48862         If MODE_INSIDE_ACL, don't assume that every system has the same text
48863         representation for ACLs as FreeBSD.
48864         * lib/copy-acl.c (copy_acl): Add support for platforms with
48865         !MODE_INSIDE_ACL.
48866         * lib/file-has-acl.c (file_has_acl): Likewise.
48867         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
48868         FreeBSD, MacOS X, or IRIX, respectively.
48869
48870 2008-05-22  Bruno Haible  <bruno@clisp.org>
48871
48872         * lib/acl.h: Don't include <sys/acl.h>.
48873         (GETACLCNT): Move fallback to lib/acl-internal.h.
48874         * lib/acl-internal.h: Include <sys/acl.h> here.
48875         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
48876
48877 2008-05-22  Bruno Haible  <bruno@clisp.org>
48878
48879         Split off copy_acl function to separate file.
48880         * lib/copy-acl.c: New file, extracted from lib/acl.c.
48881         * lib/acl.c (copy_acl): Moved function to separate file.
48882         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
48883         * modules/acl (Files): Add lib/copy-acl.c.
48884         (Makefiles.am): Augment lib_SOURCES.
48885
48886 2008-05-22  Bruno Haible  <bruno@clisp.org>
48887
48888         * modules/copy-file-tests: New file.
48889         * tests/test-copy-file.sh: New file.
48890         * tests/test-copy-file.c: New file.
48891         * tests/test-copy-file-sameacls.c: New file.
48892
48893 2008-05-22  Eric Blake  <ebb9@byu.net>
48894
48895         Avoid gcc warning.
48896         * tests/test-memcmp.c (main): Pass NULL indirectly.
48897
48898 2008-05-21  Bruno Haible  <bruno@clisp.org>
48899
48900         Add reference doc about ACLs.
48901         * doc/acl-resources.txt: New file.
48902         * doc/acl-cygwin.txt: New file.
48903
48904 2008-05-21  Bruno Haible  <bruno@clisp.org>
48905
48906         Avoid one more warning from gcc.
48907         * lib/vasnprintf.c (IF_LINT): Update comments.
48908         (VASNPRINTF): Use it also for the 'prefix' array initializer.
48909
48910 2008-05-21  Jim Meyering  <meyering@redhat.com>
48911
48912         avoid a warning from gcc
48913         * lib/vasnprintf.c (IF_LINT): Define.
48914         (scale10_round_decimal_long_double):
48915         Use it to avoid a "may be used uninitialized" warning.
48916         (scale10_round_decimal_double): Likewise.
48917
48918 2008-05-21  Simon Josefsson  <simon@josefsson.org>
48919
48920         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
48921         declared.
48922
48923 2008-05-20  Bruno Haible  <bruno@clisp.org>
48924
48925         * tests/test-memcmp.c (main): Test also the sign of the result. Test
48926         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
48927
48928 2008-05-20  Simon Josefsson  <simon@josefsson.org>
48929
48930         * modules/memcmp-tests: New file.
48931         * tests/test-memcmp.c: New file.
48932
48933 2008-05-19  Bruno Haible  <bruno@clisp.org>
48934
48935         * modules/propername (Notice, configure.ac): Put quoted "..." into
48936         --keyword option.
48937         * lib/propername.h: Update comments accordingly.
48938         Reported by Eric Blake.
48939
48940 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
48941
48942         * modules/getpass-gnu (Depends-on): Add fseeko.
48943
48944 2008-05-19  Simon Josefsson  <simon@josefsson.org>
48945
48946         * modules/base64-tests: New file.
48947
48948 2008-05-19  Bo Borgerson <gigabo@gmail.com>
48949
48950         * lib/base64.c (base64_decode_ctx): If a decode context structure
48951         was passed in use it to ignore newlines.  If a context structure
48952         was _not_ passed in, continue to treat newlines as garbage (this
48953         is the historical behavior).  Formerly base64_decode.
48954         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
48955         takes a decode context structure.
48956         * lib/base64.h (base64_decode): Macro for four-argument calls.
48957         (base64_decode_alloc): Likewise.
48958         * lib/base64.c (base64_decode_ctx): If a decode context structure
48959         was passed in use it to ignore newlines.  If a context structure
48960         was _not_ passed in, continue to treat newlines as garbage (this
48961         is the historical behavior).  Formerly base64_decode.
48962         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
48963         takes a decode context structure.
48964         * lib/base64.h (base64_decode): Macro for four-argument calls.
48965         (base64_decode_alloc): Likewise.
48966
48967 2008-05-19  Jim Meyering  <meyering@redhat.com>
48968
48969         avoid a warning from gcc
48970         * lib/trim.c (IF_LINT): Define.
48971         (trim2): Use it to avoid a "may be used uninitialized" warning.
48972
48973         Fix doc typo.
48974         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
48975
48976 2008-05-19  Bruno Haible  <bruno@clisp.org>
48977
48978         * doc/glibc-functions/getpass.texi: Document limits of other
48979         implementations.
48980
48981 2008-05-19  Simon Josefsson  <simon@josefsson.org>
48982             Bruno Haible <bruno@clisp.org>
48983
48984         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
48985
48986 2008-05-18  Bruno Haible  <bruno@clisp.org>
48987
48988         * modules/propername: New file, from GNU gettext.
48989         * lib/propername.h: New file, from GNU gettext.
48990         * lib/propername.c: New file, from GNU gettext.
48991         * MODULES.html.sh (Internationalization functions): Add propername.
48992
48993 2008-05-16  Jim Meyering  <meyering@redhat.com>
48994             Bruno Haible  <bruno@clisp.org>
48995
48996         Avoid some warnings from "gcc -Wshadow".
48997         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
48998
48999 2008-05-15  Eric Blake  <ebb9@byu.net>
49000
49001         Extend previous patch to cygwin 1.7.0.
49002         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
49003         fast implementation in cygwin >= 1.7.0.
49004         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
49005         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
49006
49007 2008-05-15  Bruno Haible  <bruno@clisp.org>
49008
49009         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
49010         implementation in glibc >= 2.9.
49011         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
49012         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
49013
49014 2008-05-15  Bruno Haible  <bruno@clisp.org>
49015
49016         * MODULES.html.sh (Internationalization functions): Remove linebreak.
49017         (Unicode string functions): Add unilbrk/*.
49018         Reported by Karl Berry.
49019
49020 2008-05-15  Eric Blake  <ebb9@byu.net>
49021
49022         Fix violation of <stdbool.h> replacement in regex.
49023         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
49024         * lib/regexec.c (re_search_internal): Likewise.
49025         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
49026
49027 2008-05-15  Jim Meyering  <meyering@redhat.com>
49028
49029         avoid distracting test output when git or cvs is not found
49030         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
49031         * tests/test-vc-list-files-git.sh: Likewise.
49032
49033 2008-05-15  Eric Blake  <ebb9@byu.net>
49034
49035         Glibc finally accepted the memmem speedup code, bugzilla #5514.
49036         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
49037         glibc version.
49038         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
49039         * doc/posix-functions/strstr.texi (strstr): Likewise.
49040         * lib/str-two-way.h (MAX): Sychronize with glibc.
49041
49042 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
49043
49044         * lib/regcomp.c (optimize_utf8): Add a note on why we test
49045         opr.ctx_type.
49046         (calc_first): Initialize constraint field.
49047         (duplicate_node_closure): Use it instead of special casing ANCHORS.
49048         Fix grammar.
49049         (duplicate_node): Merge constraint field for all node types.
49050         (calc_eclosure_iter): Look at constraint field for all node types.
49051         * lib/regex_internal.c (create_cd_newstate): Don't look at
49052         opr.ctx_type.
49053
49054 2008-05-14  Bruno Haible  <bruno@clisp.org>
49055
49056         Help GCC to do better code generation.
49057         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
49058         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
49059         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
49060         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
49061         Declare with attribute 'malloc' if supported.
49062
49063 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
49064
49065         use "echo STR|wc -c" rather than unportable "expr length STR"
49066         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
49067         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
49068
49069 2008-05-14  Jim Meyering  <meyering@redhat.com>
49070
49071         use dd ibs=$n count=1 ... rather than less-portable head -c$n
49072         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
49073         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
49074         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
49075         via Collin Lasse.
49076
49077 2008-05-14  Eric Blake  <ebb9@byu.net>
49078
49079         Avoid quadratic growth in gl_LIBSOURCES.
49080         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
49081         Suggested by Bruno Haible.
49082
49083         Test xmemdup0.
49084         * modules/xmemdup0-tests: New file.
49085         * tests/test-xmemdup0.c: Likewise.
49086
49087 2008-05-13  Eric Blake  <ebb9@byu.net>
49088
49089         Split xmemdup0 into its own module.
49090         * modules/xmemdup0: New file.
49091         * lib/xmemdup0.h: Likewise.
49092         * lib/xmemdup0.c: Likewise.
49093         * MODULES.html.sh (Memory management functions): Add xmemdup0.
49094         * lib/xalloc.h (xmemdup0): Remove.
49095         * lib/xmalloc.c (xmemdup0): Likewise.
49096
49097 2008-05-13  Eric Blake  <ebb9@byu.net>
49098             Bruno Haible  <bruno@clisp.org>
49099
49100         Reduce number of forks required during autoconf.
49101         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
49102         and gl_LIBSOURCES_DIR.
49103         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
49104         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
49105         m4_syscmd per file.
49106         <m4_foreach_w>: Move...
49107         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
49108
49109 2008-05-13  Eric Blake  <ebb9@byu.net>
49110
49111         * gnulib-tool: Fix various comment typos.
49112
49113 2008-05-12  Bruno Haible  <bruno@clisp.org>
49114
49115         Tailor the linebreaking algorithm.
49116         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
49117
49118 2008-05-12  Bruno Haible  <bruno@clisp.org>
49119
49120         Update to Unicode 5.0.0.
49121         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
49122         LBP_JV, LBP_JT. Redistribute values.
49123         (unilbrk_table): Change size.
49124         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
49125         Unicode TR#14 rev. 22.
49126         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
49127         LBP_JV, LBP_JT. Redistribute values.
49128         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
49129         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
49130         Update.
49131         * lib/unilbrk/lbrkprop1.h: Regenerated.
49132         * lib/unilbrk/lbrkprop2.h: Regenerated.
49133         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
49134         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
49135         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
49136         Likewise.
49137         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
49138         Likewise.
49139         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
49140         result.
49141         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
49142         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
49143         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
49144         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
49145         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
49146         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
49147
49148 2008-05-11  Bruno Haible  <bruno@clisp.org>
49149
49150         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
49151
49152 2008-05-11  Bruno Haible  <bruno@clisp.org>
49153
49154         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
49155         * modules/unilbrk/gen-lbrk: New file.
49156
49157 2008-05-11  Bruno Haible  <bruno@clisp.org>
49158
49159         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
49160         * m4/sha512.m4 (gl_SHA512): Likewise.
49161
49162 2008-05-11  Jim Meyering  <meyering@redhat.com>
49163
49164         New modules: crypto/sha256, crypto/sha512 (from coreutils)
49165         * modules/crypto/sha256: New file.
49166         * modules/crypto/sha512: Likewise.
49167         * lib/sha256.c: Likewise.
49168         * lib/sha256.h: Likewise.
49169         * lib/sha512.c: Likewise.
49170         * lib/sha512.h: Likewise.
49171         * lib/u64.h: Likewise.
49172         * m4/sha256.m4: Likewise.
49173         * m4/sha512.m4: Likewise.
49174         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
49175
49176 2008-05-10  Bruno Haible  <bruno@clisp.org>
49177
49178         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
49179         (Input/Output <stdio.h>): Add xprintf.
49180         (Signal handling <signal.h>): Add strsignal.
49181         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
49182         (Core language properties): Add func.
49183         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
49184         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
49185         strings.
49186         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
49187         (Input/output): New section.
49188         (File system functions): Add openat-die, stat-macros.
49189         (Networking functions): Add sockets.
49190         (Unicode string functions): Add unictype/*.
49191         (Support for building libraries and executables): Add gperf.
49192         (Support for building documentation): Add agpl-3.0.
49193         (Misc): Add nocrash.
49194
49195 2008-05-10  Bruno Haible  <bruno@clisp.org>
49196
49197         * modules/unictype/gen-ctype: New file.
49198
49199 2008-05-10  Jim Meyering  <meyering@redhat.com>
49200
49201         Make chdir-safer.c more efficient on a system with no symlinks.
49202         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
49203         also if ELOOP is zero.  Suggested by Bruno Haible.
49204
49205         Make chdir-safer.c slightly safer.
49206         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
49207         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
49208
49209         Avoid compile failure on systems without ELOOP (like mingw).
49210         * lib/chdir-safer.c (ELOOP): Define if not already defined.
49211         Reported by Bruno Haible.
49212
49213 2008-05-10  Bruno Haible  <bruno@clisp.org>
49214
49215         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
49216         (is_utf8_encoding): Use a case-insensitive comparison.
49217         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
49218         streq.
49219
49220 2008-05-10  Bruno Haible  <bruno@clisp.org>
49221
49222         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
49223         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
49224         * lib/unilbrk/ulc-common.h (iconv_string_length,
49225         iconv_string_keeping_offsets): Remove declarations.
49226         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
49227         Don't include <iconv.h>, streq.h, xsize.h.
49228         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
49229         conversion.
49230         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
49231         <iconv.h>, streq.h, xsize.h.
49232         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
49233         conversion.
49234         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
49235         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
49236         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
49237         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
49238
49239 2008-05-10  Bruno Haible  <bruno@clisp.org>
49240
49241         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
49242         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
49243
49244         * modules/unilbrk/u32-width-linebreaks-tests: New file.
49245         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
49246
49247         * modules/unilbrk/u16-width-linebreaks-tests: New file.
49248         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
49249
49250         * modules/unilbrk/u8-width-linebreaks-tests: New file.
49251         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
49252
49253         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
49254         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
49255
49256         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
49257         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
49258
49259         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
49260         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
49261
49262         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
49263         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
49264
49265 2008-05-10  Bruno Haible  <bruno@clisp.org>
49266
49267         Split up 'linebreak' module.
49268         * lib/unilbrk.h: New file, based on lib/linebreak.h.
49269         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
49270         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
49271         modifications.
49272         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
49273         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
49274         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
49275         lib/linebreak.c.
49276         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
49277         lib/linebreak.c.
49278         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
49279         lib/linebreak.c.
49280         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
49281         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
49282         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
49283         lib/linebreak.c.
49284         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
49285         lib/linebreak.c.
49286         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
49287         lib/linebreak.c.
49288         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
49289         lib/linebreak.c.
49290         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
49291         lib/linebreak.c.
49292         * modules/unilbrk/base: New file.
49293         * modules/unilbrk/tables: New file.
49294         * modules/unilbrk/u8-possible-linebreaks: New file.
49295         * modules/unilbrk/u16-possible-linebreaks: New file.
49296         * modules/unilbrk/u32-possible-linebreaks: New file.
49297         * modules/unilbrk/ulc-common: New file.
49298         * modules/unilbrk/ulc-possible-linebreaks: New file.
49299         * modules/unilbrk/u8-width-linebreaks: New file.
49300         * modules/unilbrk/u16-width-linebreaks: New file.
49301         * modules/unilbrk/u32-width-linebreaks: New file.
49302         * modules/unilbrk/ulc-width-linebreaks: New file.
49303         * lib/linebreak.h: Remove file.
49304         * lib/linebreak.c: Remove file.
49305         * m4/linebreak.m4: Remove file.
49306         * modules/linebreak: Remove file.
49307         * NEWS: Mention the changes.
49308
49309 2008-05-09  Eric Blake  <ebb9@byu.net>
49310
49311         Add xmemdup0.
49312         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
49313         implementation.
49314         * lib/xmalloc.c (xmemdup0): New C implementation.
49315
49316 2008-05-08  Bruno Haible  <bruno@clisp.org>
49317
49318         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
49319
49320 2008-05-07  Eric Blake  <ebb9@byu.net>
49321
49322         Support cross-compilation of <wctype.h>.
49323         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
49324         AC_CACHE_CHECK.
49325
49326 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
49327
49328         * build-aux/vc-list-files: Add support for bzr.
49329
49330 2008-05-03  Jim Meyering  <meyering@redhat.com>
49331
49332         avoid failed assertion with tight malloc
49333         * tests/test-getndelim2.c: Correct an off-by-one assertion.
49334
49335 2008-05-03  Simon Josefsson  <simon@josefsson.org>
49336
49337         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
49338         are needed from arpa/inet.h.
49339         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
49340         Reported by Bruno Haible.
49341
49342 2008-05-02  Jim Meyering  <meyering@redhat.com>
49343
49344         avoid compilation error on FreeBSD 6
49345         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
49346
49347 2008-05-01  Jim Meyering  <meyering@redhat.com>
49348
49349         useless-if-before-free: correct --help's exit status description
49350         * build-aux/useless-if-before-free (usage): Like grep, exit 0
49351         for one or more matches, etc.  Reported by Bruno Haible.
49352
49353         vc-list-files: make the stand-alone gnulib test work
49354         * modules/vc-list-files-tests (configure.ac):
49355         Define and AC_SUBST abs_aux_dir.
49356         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
49357         $(abs_top_srcdir) to each script and having each of them
49358         duplicate the work of setting PATH, set PATH here, using
49359         the new variable, abs_aux_dir instead.
49360         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
49361         * tests/test-vc-list-files-git.sh: Likewise.
49362         Reported by Bruno Haible.
49363
49364 2008-05-01  Bruno Haible  <bruno@clisp.org>
49365
49366         * lib/getndelim2.c (getndelim2): Fix newsize computation during
49367         reallocation. Rename 'done' to 'found_delimiter'.
49368
49369 2008-05-01  Jim Meyering  <meyering@redhat.com>
49370
49371         vc-list-files: accommodate /bin/sh like the one from Solaris 10
49372         * build-aux/vc-list-files: Use `...`, not $(...).
49373
49374 2008-04-30  Jim Meyering  <meyering@redhat.com>
49375
49376         add tests for vc-list-files
49377         * modules/vc-list-files-tests: New module.
49378         * tests/test-vc-list-files-cvs.sh: New file.
49379         * tests/test-vc-list-files-git.sh: New file.
49380
49381         avoid a warning from gcc
49382         * lib/getndelim2.c (IF_LINT): Define.
49383         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
49384
49385         vc-list-files: work properly with build-aux/cvsu, too
49386         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
49387         to all cvs-based clauses.
49388
49389         vc-list-files: work properly in the CVS+awk case, too
49390         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
49391
49392         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
49393         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
49394         take more than one file argument, so .  Add quotes, just in case $dir
49395         ever contains a shell meta-character.  Prompted by Soren Hansen in
49396         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
49397
49398 2008-04-29  Eric Blake  <ebb9@byu.net>
49399
49400         Optimize getndelim2 to use block operations when possible.
49401         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
49402         freadseek, and memchr2.
49403         * lib/getndelim2.c (getndelim2): Use them for block reads.
49404
49405 2008-04-29  Bruno Haible  <bruno@clisp.org>
49406
49407         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
49408         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
49409         * modules/inet_ntop (Depends-on): Add extensions.
49410         * modules/inet_pton (Depends-on): Likewise.
49411         Reported by Simon Josefsson.
49412
49413 2008-04-29  Jim Meyering  <meyering@redhat.com>
49414
49415         When the is more than one match in a block, match all of them.
49416         * build-aux/useless-if-before-free: Iterate through each block
49417         until there are no more matches.
49418
49419         Fix broken useless-if-before-free script.
49420         * build-aux/useless-if-before-free: Fix typo: missing "?" after
49421         the expression to match cast of argument to free-like function.
49422
49423 2008-04-29  Eric Blake  <ebb9@byu.net>
49424
49425         Use new header.
49426         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
49427
49428 2008-04-29  Jim Meyering  <meyering@redhat.com>
49429
49430         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
49431         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
49432         by gnulib to exist and to declare e.g., inet_ntop.
49433         Don't include "inet_ntop.h", now removed.
49434
49435         * m4/arpa_inet_h.m4: Remove trailing blanks.
49436
49437 2008-04-29  Eric Blake  <ebb9@byu.net>
49438
49439         Silence valgrind on safe reads beyond potential array bounds.
49440         * lib/rawmemchr.valgrind: New file.
49441         * lib/strchrnul.valgrind: Likewise.
49442         * modules/rawmemchr (Files): Distribute new file.
49443         * modules/strchrnul (Files): Likewise.
49444         Suggested by Bruno Haible.
49445
49446 2008-04-29  Bruno Haible  <bruno@clisp.org>
49447
49448         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
49449         (inet_ntop, inet_pton): Change portability warning's wording.
49450         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
49451         Invoke gl_CHECK_NEXT_HEADERS.
49452         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
49453         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
49454         set ARPA_INET_H.
49455         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
49456         * modules/arpa_inet (Description): No longer only for systems that
49457         lack it.
49458         (Depends-on): Add include_next.
49459         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
49460         HAVE_ARPA_INET_H.
49461
49462 2008-04-29  Jim Meyering  <meyering@redhat.com>
49463
49464         * modules/mkdir (License): Re-license as LGPLv2+.
49465
49466 2008-04-29  Bruno Haible  <bruno@clisp.org>
49467
49468         * modules/rawmemchr (Maintainer): Set to Eric.
49469         * modules/strchrnul (Maintainer): Likewise.
49470
49471 2008-04-29  Simon Josefsson  <simon@josefsson.org>
49472
49473         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
49474         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
49475
49476         * modules/arpa_inet (arpa/inet.h): Use them.
49477
49478 2008-04-28  Eric Blake  <ebb9@byu.net>
49479
49480         Test getndelim2.
49481         * modules/getndelim2-tests: New file.
49482         * tests/test-getndelim2.c: Likewise.
49483         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
49484         stream.
49485         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
49486
49487         * MODULES.html.sh: Document new module.
49488
49489 2008-04-20  Bruno Haible  <bruno@clisp.org>
49490
49491         * lib/c-stack.c (die): Use raise.
49492         * modules/c-stack (Depends-on): Add raise.
49493
49494 2008-04-28  Bruno Haible  <bruno@clisp.org>
49495
49496         Expect rpmatch to be declared.
49497         * lib/yesno.c (rpmatch): Remove declaration.
49498
49499         Declare rpmatch.
49500         * lib/stdlib.in.h (rpmatch): New declaration.
49501         * lib/rpmatch.c: Include <stdlib.h> first.
49502         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
49503         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
49504         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
49505         HAVE_RPMATCH.
49506         * modules/rpmatch (Depends-on): Add stdlib, extensions.
49507         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
49508         (Include): Set to <stdlib.h>.
49509         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
49510         HAVE_RPMATCH.
49511         * NEWS: Document the change.
49512
49513 2008-04-28  Bruno Haible  <bruno@clisp.org>
49514
49515         Change rpmatch to use nl_langinfo when appropriate.
49516         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
49517         (N_): New macro.
49518         (localized_pattern): New function/macro.
49519         (try): Remove match, nomatch arguments. Copy the pattern into safe
49520         memory before caching it.
49521         (rpmatch): Use localized_pattern. Add translator comments.
49522         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
49523         Suggested by Eric Blake.
49524         * modules/rpmatch (Depends-on): Add stdbool.
49525
49526 2008-04-28  Eric Blake  <ebb9@byu.net>
49527
49528         Add rawmemchr module, matching glibc.
49529         * modules/string (Makefile.am): New indicator.
49530         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
49531         * lib/string.in.h (rawmemchr): Declare when appropriate.
49532         * modules/rawmemchr: New file.
49533         * m4/rawmemchr.m4: Likewise.
49534         * lib/rawmemchr.c: Likewise.
49535         * modules/rawmemchr-tests: Likewise.
49536         * tests/test-rawmemchr.c: Likewise.
49537         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
49538         module.
49539         * modules/strchrnul (Depends-on): Add rawmemchr.
49540         * lib/strchrnul.c (strchrnul): Optimize a corner case.
49541
49542         Whitespace cleanup.
49543         * tests/test-strchrnul.c: Reindent.
49544         * lib/strchrnul.c: Likewise.
49545
49546         Optimize and test strchrnul.
49547         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
49548         * modules/strchrnul-tests: New file.
49549         * tests/test-strchrnul.c: Likewise.
49550
49551         Remove intprops dependency.
49552         * modules/memchr (Depends-on): Remove intprops.
49553         * modules/memrchr (Depends-on): Likewise.
49554         * modules/memchr2 (Depends-on): Likewise.
49555         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
49556         * lib/memrchr.c (__memrchr): Likewise.
49557         * lib/memrchr2.c (memchr2): Likewise.
49558         Reported by Simon Josefsson.
49559
49560 2008-04-28  Simon Josefsson  <simon@josefsson.org>
49561
49562         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
49563         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
49564
49565 2008-04-28  Simon Josefsson  <simon@josefsson.org>
49566
49567         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
49568
49569         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
49570
49571         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
49572
49573         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
49574         declarations.
49575         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
49576
49577         * m4/inet_pton.m4: Don't check for header files.
49578
49579         * m4/inet_ntop.m4: Don't check for header files.
49580
49581 2008-04-28  Simon Josefsson  <simon@josefsson.org>
49582
49583         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
49584         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
49585         trigger for cygwin).
49586         Reported by Bruno Haible  <bruno@clisp.org>.
49587
49588 2008-04-28  Bruno Haible  <bruno@clisp.org>
49589
49590         * doc/posix-functions/strdup.texi: Mention mingw problem.
49591
49592 2008-04-27  Bruno Haible  <bruno@clisp.org>
49593
49594         * modules/stat-time-tests (Depends-on): Add sleep.
49595         * tests/test-stat-time.c (force_unlink): New function.
49596         (cleanup): Use it.
49597         (test_mtime): Remove the ctime related tests.
49598         (test_ctime): New function, containing the ctime related tests.
49599         (main): Call test_ctime, except on native Windows platforms.
49600
49601 2008-04-27  Bruno Haible  <bruno@clisp.org>
49602
49603         * lib/rpmatch.c (rpmatch): Add some comments.
49604         Reported by James Youngman <jay@gnu.org>.
49605
49606 2008-04-27  Bruno Haible  <bruno@clisp.org>
49607
49608         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
49609         quiet NaNs.
49610
49611 2008-04-27  Bruno Haible  <bruno@clisp.org>
49612
49613         Make test-yesno.sh work on mingw.
49614         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
49615         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
49616         (main): Set stdin to binary mode.
49617         * modules/yesno-tests (Depends-on): Add binary-io.
49618
49619 2008-04-27  Bruno Haible  <bruno@clisp.org>
49620
49621         Fix 'isfinite' on x86, x86_64, ia64 platforms.
49622         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
49623         argument that lie outside the IEEE 854 domain.
49624         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
49625         (gl_ISFINITE): Use it.
49626         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
49627
49628 2008-04-27  Bruno Haible  <bruno@clisp.org>
49629
49630         Allow local renaming in config.h.
49631         * lib/memrchr.c (memrchr): Don't undefine outside libc.
49632
49633 2008-04-27  Bruno Haible  <bruno@clisp.org>
49634
49635         * lib/memchr.c (__memchr): Change type of 'i'.
49636         * lib/memchr2.c (memchr2): Likewise.
49637
49638 2008-04-26  Eric Blake  <ebb9@byu.net>
49639         and Bruno Haible  <bruno@clisp.org>
49640
49641         Optimize and test memrchr.
49642         * modules/memrchr (Depends-on): Add intprops.
49643         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
49644         * modules/memrchr-tests: New file.
49645         * tests/test-memrchr.c: New file.
49646
49647 2008-04-26  Bruno Haible  <bruno@clisp.org>
49648
49649         Add tentative support for DragonFly BSD.
49650         * lib/stdio-impl.h: Add macros for DragonFly BSD.
49651         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
49652         fp.
49653         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
49654         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
49655         * lib/fpurge.c (fpurge): Likewise.
49656         * lib/freadable.c (freaadable): Likewise.
49657         * lib/freadahead.c (freadahead): Likewise.
49658         * lib/freading.c (freading): Likewise.
49659         * lib/freadptr.c (freadptr): Likewise.
49660         * lib/freadseek.c (freadptrinc): Likewise.
49661         * lib/fseeko.c (fseeko): Likewise.
49662         * lib/fseterr.c (fseterr): Likewise.
49663         * lib/fwritable.c (fwritable): Likewise.
49664         * lib/fwriting.c (fwriting): Likewise.
49665
49666 2008-04-26  Bruno Haible  <bruno@clisp.org>
49667
49668         * lib/stdio-impl.h: New file.
49669         * lib/fbufmode.c: Include stdio-impl.h.
49670         (fbufmode): Use fp_, remove redundant #defines.
49671         * lib/fflush.c: Include stdio-impl.h.
49672         (clear_ungetc_buffer): Remove redundant #defines.
49673         * lib/fpurge.c: Include stdio-impl.h.
49674         (fpurge): Remove redundant #defines.
49675         * lib/freadable.c: Include stdio-impl.h.
49676         (freadable): Remove redundant #defines.
49677         * lib/freadahead.c: Include stdio-impl.h.
49678         (freadahead): Remove redundant #defines.
49679         * lib/freading.c: Include stdio-impl.h.
49680         (freading): Remove redundant #defines.
49681         * lib/freadptr.c: Include stdio-impl.h.
49682         (freadptr): Remove redundant #defines.
49683         * lib/freadseek.c: Include stdio-impl.h.
49684         (freadptrinc): Remove redundant #defines.
49685         * lib/fseeko.c: Include stdio-impl.h.
49686         (rpl_fseeko): Remove redundant #defines.
49687         * lib/fseterr.c: Include stdio-impl.h.
49688         (fseterr): Remove redundant #defines.
49689         * lib/fwritable.c: Include stdio-impl.h.
49690         (fwritable: Remove redundant #defines.
49691         * lib/fwriting.c: Include stdio-impl.h.
49692         (fwriting): Remove redundant #defines.
49693         * modules/fbufmode (Files): Add lib/stdio-impl.h.
49694         * modules/fflush (Files): Likewise.
49695         * modules/fpurge (Files): Likewise.
49696         * modules/freadable (Files): Likewise.
49697         * modules/freadahead (Files): Likewise.
49698         * modules/freading (Files): Likewise.
49699         * modules/freadptr (Files): Likewise.
49700         * modules/freadseek (Files): Likewise.
49701         * modules/fseeko (Files): Likewise.
49702         * modules/fseterr (Files): Likewise.
49703         * modules/fwritable (Files): Likewise.
49704         * modules/fwriting (Files): Likewise.
49705
49706 2008-04-26  Bruno Haible  <bruno@clisp.org>
49707
49708         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
49709         restore_seek_optimization, update_fpos_cache): New functions, extracted
49710         from rpl_fflush.
49711         (rpl_fflush): Use them.
49712         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
49713         (gl_REPLACE_FFLUSH): Use it.
49714
49715 2008-04-26  Bruno Haible  <bruno@clisp.org>
49716
49717         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
49718         on Solaris.
49719         * tests/test-xstrtoimax.sh: Likewise.
49720         * tests/test-xstrtoumax.sh: Likewise.
49721         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
49722
49723 2008-04-26  Bruno Haible  <bruno@clisp.org>
49724
49725         * modules/memchr-tests: New file.
49726         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
49727
49728 2008-04-26  Eric Blake  <ebb9@byu.net>
49729             Bruno Haible  <bruno@clisp.org>
49730
49731         * lib/memchr.c: Include intprops.h.
49732         (__memchr): Optimize parallel detection of matching bytes. Rename local
49733         variables. Add explanatory comments.
49734
49735 2008-04-26  Bruno Haible  <bruno@clisp.org>
49736
49737         Fix module 'memchr', broken since 2000-10-28.
49738         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
49739
49740 2008-04-26  Bruno Haible  <bruno@clisp.org>
49741
49742         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
49743         comments.
49744
49745 2008-04-25  Eric Blake  <ebb9@byu.net>
49746
49747         Use native fstatat on cygwin 1.7.0.
49748         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
49749         first.
49750
49751 2008-04-23  Eric Blake  <ebb9@byu.net>
49752
49753         Improve memchr2 performance.
49754         * lib/memchr2.c (memchr2): Further optimize parallel detection of
49755         NUL bytes.
49756         * modules/memchr2 (Depends-on): Use intprops.h.
49757
49758 2008-04-23  Simon Josefsson  <simon@josefsson.org>
49759
49760         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
49761         an inline function instead of a CPP macro.  Patch by Ben Pfaff
49762         <blp@cs.stanford.edu>.
49763
49764 2008-04-23  Simon Josefsson  <simon@josefsson.org>
49765
49766         * lib/arpa_inet.in.h: New file.
49767
49768         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
49769         (Makefile.am): Sed in substitute header file.
49770
49771         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
49772         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
49773
49774         * modules/inet_ntop (configure.ac): Use
49775         gl_ARPA_INET_MODULE_INDICATOR.
49776
49777         * modules/inet_pton (configure.ac): Use
49778         gl_ARPA_INET_MODULE_INDICATOR.
49779
49780 2008-04-22  Jim Meyering  <meyering@redhat.com>
49781
49782         * modules/verify (License): Re-license as LGPLv2+.
49783
49784 2008-04-22  Simon Josefsson  <simon@josefsson.org>
49785
49786         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
49787         parameter to void* as per POSIX standard (MinGW uses char*).
49788
49789 2008-04-21  Bruno Haible  <bruno@clisp.org>
49790
49791         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
49792         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
49793         Define to replacements if REPLACE_ISWCNTRL is 1.
49794         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
49795         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
49796         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
49797         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
49798         what it fixes.
49799         * doc/posix-functions/iswalpha.texi: Likewise.
49800         * doc/posix-functions/iswblank.texi: Likewise.
49801         * doc/posix-functions/iswcntrl.texi: Likewise.
49802         * doc/posix-functions/iswdigit.texi: Likewise.
49803         * doc/posix-functions/iswgraph.texi: Likewise.
49804         * doc/posix-functions/iswlower.texi: Likewise.
49805         * doc/posix-functions/iswprint.texi: Likewise.
49806         * doc/posix-functions/iswpunct.texi: Likewise.
49807         * doc/posix-functions/iswspace.texi: Likewise.
49808         * doc/posix-functions/iswupper.texi: Likewise.
49809         * doc/posix-functions/iswxdigit.texi: Likewise.
49810         Reported by Alain Guibert.
49811
49812 2008-04-21  Bruno Haible  <bruno@clisp.org>
49813
49814         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
49815         Patch by Alain Guibert.
49816
49817 2008-04-21  Bruno Haible  <bruno@clisp.org>
49818
49819         Fix test failures on mingw.
49820         * tests/test-xstrtol.c (print_no_progname): New function.
49821         (main): Install it in error_print_progname hook.
49822         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
49823         * tests/test-xstrtoimax.sh: Likewise.
49824         * tests/test-xstrtoumax.sh: Likewise.
49825
49826 2008-04-21  Bruno Haible  <bruno@clisp.org>
49827
49828         Fix test failure on mingw.
49829         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
49830
49831 2008-04-21  Bruno Haible  <bruno@clisp.org>
49832
49833         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
49834         Actually assign a value.
49835
49836 2008-04-20  Bruno Haible  <bruno@clisp.org>
49837
49838         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
49839         take 2.
49840         * lib/canonicalize.c (canonicalize_file_name): Elide if the
49841         'canonicalize-lgpl' module is also used.
49842         * lib/canonicalize-lgpl.c: Undo last change.
49843         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
49844
49845 2008-04-20  Bruno Haible  <bruno@clisp.org>
49846
49847         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
49848         config.h. Provide _mkdir based fallback for mingw.
49849         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
49850         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
49851         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
49852         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
49853         rather than defining mkdir in config.h.
49854         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
49855         (gl_SYS_STAT_H_DEFAULTS): New macro.
49856         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
49857         HAVE_IO_H any more.
49858         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
49859         HAVE_DECL_MKDIR and HAVE_IO_H.
49860
49861 2008-04-20  Bruno Haible  <bruno@clisp.org>
49862
49863         * lib/isapipe.c: Port to native Windows platforms.
49864
49865 2008-04-20  Bruno Haible  <bruno@clisp.org>
49866
49867         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
49868
49869 2008-04-21  Eric Blake  <ebb9@byu.net>
49870
49871         Work around preprocessors that don't handle UINTMAX_MAX.
49872         * lib/memchr2.c (memchr2): Avoid embedded #if.
49873         Reported by Alain Guibert, fix suggested by Bruno Haible.
49874
49875 2008-04-21  Simon Josefsson  <simon@josefsson.org>
49876
49877         * doc/posix-functions/strftime.texi (strftime): Explain better
49878         Windows incompatibility.  Suggested by Micah Cowan
49879         <micah@cowan.name>.
49880
49881 2008-04-20  Bruno Haible  <bruno@clisp.org>
49882
49883         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
49884         unistr/u8-mblen.
49885
49886 2008-04-20  Bruno Haible  <bruno@clisp.org>
49887
49888         Fix test failure on platforms with non-GNU iconv.
49889         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
49890         (U_TO_U8): Use it, rather than u16_to_u8.
49891         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
49892         units at the end of the input string.
49893         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
49894
49895 2008-04-20  Bruno Haible  <bruno@clisp.org>
49896
49897         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
49898         when the resulting length is 0.
49899         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
49900
49901 2008-04-20  Bruno Haible  <bruno@clisp.org>
49902
49903         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
49904         works.
49905         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
49906
49907 2008-04-20  Bruno Haible  <bruno@clisp.org>
49908
49909         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
49910         * modules/tsearch-tests (configure.ac): Test for initstate function.
49911
49912 2008-04-20  Bruno Haible  <bruno@clisp.org>
49913
49914         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
49915         for nlink_t if missing.
49916         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
49917
49918 2008-04-19  Bruno Haible  <bruno@clisp.org>
49919
49920         Work around snprintf bug on Linux libc5.
49921         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
49922         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
49923         gl_SNPRINTF_SIZE1.
49924         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
49925         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
49926         that test failed.
49927         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
49928         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
49929         * modules/snprintf (Files): Add m4/printf.m4.
49930         * modules/vsnprintf (Files): Likewise.
49931         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
49932         * doc/posix-functions/vsnprintf.texi: Likewise.
49933
49934 2008-04-19  Bruno Haible  <bruno@clisp.org>
49935
49936         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
49937         from 0.0058 to less than 10^-7.
49938
49939 2008-04-19  Bruno Haible  <bruno@clisp.org>
49940
49941         Fix rounding when a precision is given.
49942         * lib/vasnprintf.c (is_borderline): New function.
49943         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
49944         9...9x.
49945         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
49946         %e, %g.
49947         * tests/test-vasprintf-posix.c (test_function): Likewise.
49948         * tests/test-snprintf-posix.h (test_function): Likewise.
49949         * tests/test-sprintf-posix.h (test_function): Likewise.
49950         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
49951         * tests/test-printf-posix.h (test_function): Likewise.
49952         * tests/test-printf-posix.output: Update.
49953         Reported by John Darrington <john@darrington.wattle.id.au> via
49954         Ben Pfaff <blp@cs.stanford.edu>.
49955
49956 2008-04-18  Simon Josefsson  <simon@josefsson.org>
49957
49958         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
49959         Suggested by Bruno Haible <bruno@clisp.org>.
49960
49961 2008-04-17  Bruno Haible  <bruno@clisp.org>
49962
49963         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
49964         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
49965         implementation.
49966         Patch by Bruce Merry <bmerry@gmail.com>.
49967
49968 2008-04-17  Simon Josefsson  <simon@josefsson.org>
49969
49970         * doc/posix-functions/strftime.texi (strftime): Mention that %e
49971         doesn't work under Windows.
49972
49973 2008-04-16  Bruno Haible  <bruno@clisp.org>
49974
49975         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
49976         New macros.
49977         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
49978         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
49979         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
49980         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
49981         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
49982         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
49983         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
49984         macros.
49985         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
49986         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
49987         Northern Sotho, Uighur.
49988
49989 2008-04-16  Bruno Haible  <bruno@clisp.org>
49990
49991         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
49992         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
49993         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
49994         Reported by Daniel Bergström <daniel@octocode.com>.
49995
49996 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
49997             Bruno Haible  <bruno@clisp.org>
49998
49999         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
50000         function.
50001         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
50002         New functions, mostly extracted from gl_locale_name_default.
50003         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
50004
50005 2008-04-16  Eric Blake  <ebb9@byu.net>
50006
50007         Adjust strtod detection to catch glibc 2.7 bug.
50008         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
50009         Reported by John Gatewood Ham.
50010
50011 2008-04-16  Bruno Haible  <bruno@clisp.org>
50012
50013         Add tentative support for Linux libc5.
50014         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
50015         * lib/fpurge.c (fpurge): Likewise.
50016         * lib/freadable.c (freadable): Likewise.
50017         * lib/freadahead.c (freadahead): Likewise.
50018         * lib/freading.c (freading): Likewise.
50019         * lib/freadptr.c (freadptr): Likewise.
50020         * lib/freadseek.c (freadptrinc): Likewise.
50021         * lib/fseeko.c (rpl_fseeko): Likewise.
50022         * lib/fseterr.c (fseterr): Likewise.
50023         * lib/fwritable.c (fwritable): Likewise.
50024         * lib/fwriting.c (fwriting): Likewise.
50025         Reported by Alain Guibert <alguibert+bts@free.fr>.
50026
50027 2008-04-15  Bruno Haible  <bruno@clisp.org>
50028
50029         * modules/mathl (configure.ac): Define module indicator.
50030
50031 2008-04-15  Bruno Haible  <bruno@clisp.org>
50032
50033         * lib/logl.c (logl): Remove unused variables.
50034
50035 2008-04-15  Bruno Haible  <bruno@clisp.org>
50036
50037         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
50038         fails.
50039
50040 2008-04-15  Bruno Haible  <bruno@clisp.org>
50041
50042         * lib/trim.c (trim2): Fix argument of isspace() macro.
50043
50044 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
50045
50046         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
50047         to 0.
50048         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
50049
50050 2008-04-14  Bruno Haible  <bruno@clisp.org>
50051
50052         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
50053         AC_LANG_PROGRAM argument.
50054         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
50055         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
50056         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
50057         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
50058         * m4/math_h.m4 (gl_MATH_H): Likewise.
50059         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
50060         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
50061         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
50062         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
50063         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
50064         * m4/regex.m4 (gl_REGEX): Likewise.
50065         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
50066         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
50067         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
50068         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
50069         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
50070         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
50071         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
50072         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
50073
50074 2008-04-14  Jim Meyering  <meyering@redhat.com>
50075
50076         test-strtod: fix typos: s/abs/fabs/
50077         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
50078
50079 2008-04-13  Bruno Haible  <bruno@clisp.org>
50080
50081         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
50082         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
50083         module is also used and while not building the reloc-wrapper.
50084
50085 2008-04-13  Bruno Haible  <bruno@clisp.org>
50086
50087         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
50088
50089 2008-04-13  Bruno Haible  <bruno@clisp.org>
50090
50091         Fix AIX compilation failure introduced on 2008-04-02.
50092         * tests/test-frexp.c (exp): Undefine before redefining.
50093         * tests/test-frexpl.c (exp): Likewise.
50094
50095 2008-04-13  Bruno Haible  <bruno@clisp.org>
50096
50097         Work around a HP-UX stdio bug.
50098         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
50099         * tests/test-ftello.c (main): Likewise.
50100         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
50101         * doc/posix-functions/ftello.texi: Likewise.
50102
50103 2008-04-13  Bruno Haible  <bruno@clisp.org>
50104
50105         Make test-signbit pass on HP-UX/hppa.
50106         * tests/test-signbit.c (minus_zerol): New variable.
50107         (test_signbitl): Use it.
50108
50109 2008-04-13  Bruno Haible  <bruno@clisp.org>
50110
50111         Make truncl work on OSF/1 4.0.
50112         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
50113         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
50114         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
50115         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
50116         HAVE_DECL_TRUNCL.
50117         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
50118         HAVE_DECL_TRUNCL.
50119         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
50120
50121 2008-04-13  Bruno Haible  <bruno@clisp.org>
50122
50123         * lib/unictype.h: Remove trailing comma from enumeration definitions.
50124
50125 2008-04-13  Bruno Haible  <bruno@clisp.org>
50126
50127         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
50128         expression, so as to avoid HP-UX 11 cc compiler bug.
50129
50130 2008-04-13  Bruno Haible  <bruno@clisp.org>
50131
50132         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
50133
50134 2008-04-13  Bruno Haible  <bruno@clisp.org>
50135
50136         * lib/git-merge-changelog.c: Remove empty declaration outside of
50137         functions.
50138
50139 2008-04-13  Bruno Haible  <bruno@clisp.org>
50140
50141         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
50142
50143 2008-04-13  Bruno Haible  <bruno@clisp.org>
50144
50145         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
50146         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
50147         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
50148         also if it exists but lacks definitions of the SHUT_* macros.
50149         * modules/sys_socket (Description): Update.
50150         Reported by Elbert Pol <e.pol@chello.nl>.
50151
50152 2008-04-13  Bruno Haible  <bruno@clisp.org>
50153
50154         * lib/localcharset.c (OS2): Don't redefine if already defined.
50155         Reported by Elbert Pol <e.pol@chello.nl>.
50156
50157 2008-04-13  Bruno Haible  <bruno@clisp.org>
50158
50159         * lib/binary-io.h [__EMX__]: Include <io.h>.
50160         Reported by Elbert Pol <e.pol@chello.nl>.
50161
50162 2008-04-12  Bruno Haible  <bruno@clisp.org>
50163
50164         * lib/fpucw.h: Enable the definitions also for x86_64.
50165         Needed for NetBSD/x86_64.
50166         Reported by Thomas Klausner <tk@giga.or.at>.
50167
50168 2008-04-12  Bruno Haible  <bruno@clisp.org>
50169
50170         * tests/test-strtod.c: Include isnand.h.
50171         (main): Use isnand instead of isnan.
50172         Reported by Jim Meyering.
50173
50174 2008-04-12  Bruno Haible  <bruno@clisp.org>
50175
50176         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
50177         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
50178
50179 2008-04-12  Jim Meyering  <meyering@redhat.com>
50180
50181         * m4/math_h.m4 (gl_MATH_H): Fix typos.
50182
50183 2008-04-12  Bruno Haible  <bruno@clisp.org>
50184
50185         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
50186         Reported by Elbert Pol <e.pol@chello.nl>.
50187
50188 2008-04-12  Eric Blake  <ebb9@byu.net>
50189
50190         Work around Solaris 10 math.h bug.
50191         * m4/math_h.m4 (gl_MATH_H): Check for bug.
50192         (gl_MATH_H_DEFAULTS): Set up default.
50193         * modules/math (Makefile.am): Replace new indicators.
50194         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
50195         * tests/test-math.c (main): Test this.
50196         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
50197         * doc/posix-headers/math.texi (math.h): Mention bug.
50198         Reported by Nelson H. F. Beebe and Jim Meyering.
50199
50200 2008-04-11  Bruno Haible  <bruno@clisp.org>
50201
50202         Adapt to future versions of Apple GCC.
50203         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
50204         Reported by Peter O'Gorman <peter@pogma.com>.
50205
50206 2008-04-11  Bruno Haible  <bruno@clisp.org>
50207
50208         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
50209
50210 2008-04-11  Bruno Haible  <bruno@clisp.org>
50211
50212         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
50213
50214         * modules/getaddrinfo-tests (Makefile.am): Define
50215         test_getaddrinfo_LDADD.
50216
50217 2008-04-11  Bruno Haible  <bruno@clisp.org>
50218
50219         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
50220         (init): Fix syntax error.
50221         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
50222         is declared.
50223
50224 2008-04-11  Bruno Haible  <bruno@clisp.org>
50225
50226         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
50227         * modules/glob (Depends-on): Add stdbool.
50228
50229 2008-04-11  Bruno Haible  <bruno@clisp.org>
50230
50231         * lib/trim.c: Include <string.h>.
50232
50233 2008-04-11  Eric Blake  <ebb9@byu.net>
50234
50235         Avoid compile failure on OS/2.
50236         * lib/regex_internal.h (internal_function): Disable optimization
50237         on OS/2 (__EMX__), where it caused compiler error.
50238         Reported by Elbert Pol.
50239
50240 2008-04-11  Bruno Haible  <bruno@clisp.org>
50241
50242         Flush the standard error stream before aborting. Needed on mingw.
50243         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
50244         * tests/test-array_list.c (ASSERT): Likewise.
50245         * tests/test-array_oset.c (ASSERT): Likewise.
50246         * tests/test-avltree_list.c (ASSERT): Likewise.
50247         * tests/test-avltree_oset.c (ASSERT): Likewise.
50248         * tests/test-avltreehash_list.c (ASSERT): Likewise.
50249         * tests/test-binary-io.c (ASSERT): Likewise.
50250         * tests/test-byteswap.c (ASSERT): Likewise.
50251         * tests/test-c-ctype.c (ASSERT): Likewise.
50252         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
50253         * tests/test-c-strcasestr.c (ASSERT): Likewise.
50254         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
50255         * tests/test-c-strstr.c (ASSERT): Likewise.
50256         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
50257         * tests/test-canonicalize.c (ASSERT): Likewise.
50258         * tests/test-carray_list.c (ASSERT): Likewise.
50259         * tests/test-ceilf1.c (ASSERT): Likewise.
50260         * tests/test-ceilf2.c (ASSERT): Likewise.
50261         * tests/test-ceill.c (ASSERT): Likewise.
50262         * tests/test-count-one-bits.c (ASSERT): Likewise.
50263         * tests/test-fbufmode.c (ASSERT): Likewise.
50264         * tests/test-fflush2.c (ASSERT): Likewise.
50265         * tests/test-floorf1.c (ASSERT): Likewise.
50266         * tests/test-floorf2.c (ASSERT): Likewise.
50267         * tests/test-floorl.c (ASSERT): Likewise.
50268         * tests/test-fopen.c (ASSERT): Likewise.
50269         * tests/test-fpending.c (ASSERT): Likewise.
50270         * tests/test-fprintf-posix.c (ASSERT): Likewise.
50271         * tests/test-fpurge.c (ASSERT): Likewise.
50272         * tests/test-freadable.c (ASSERT): Likewise.
50273         * tests/test-freadahead.c (ASSERT): Likewise.
50274         * tests/test-freading.c (ASSERT): Likewise.
50275         * tests/test-freadptr.c (ASSERT): Likewise.
50276         * tests/test-freadptr2.c (ASSERT): Likewise.
50277         * tests/test-freadseek.c (ASSERT): Likewise.
50278         * tests/test-freopen.c (ASSERT): Likewise.
50279         * tests/test-frexp.c (ASSERT): Likewise.
50280         * tests/test-frexpl.c (ASSERT): Likewise.
50281         * tests/test-fseek.c (ASSERT): Likewise.
50282         * tests/test-fseeko.c (ASSERT): Likewise.
50283         * tests/test-fstrcmp.c (ASSERT): Likewise.
50284         * tests/test-ftell.c (ASSERT): Likewise.
50285         * tests/test-ftello.c (ASSERT): Likewise.
50286         * tests/test-func.c (ASSERT): Likewise.
50287         * tests/test-fwritable.c (ASSERT): Likewise.
50288         * tests/test-fwriting.c (ASSERT): Likewise.
50289         * tests/test-getdelim.c (ASSERT): Likewise.
50290         * tests/test-getline.c (ASSERT): Likewise.
50291         * tests/test-i-ring.c (ASSERT): Likewise.
50292         * tests/test-iconv-utf.c (ASSERT): Likewise.
50293         * tests/test-iconv.c (ASSERT): Likewise.
50294         * tests/test-isfinite.c (ASSERT): Likewise.
50295         * tests/test-isnand.c (ASSERT): Likewise.
50296         * tests/test-isnanf.c (ASSERT): Likewise.
50297         * tests/test-isnanl.h (ASSERT): Likewise.
50298         * tests/test-ldexpl.c (ASSERT): Likewise.
50299         * tests/test-linked_list.c (ASSERT): Likewise.
50300         * tests/test-linkedhash_list.c (ASSERT): Likewise.
50301         * tests/test-localename.c (ASSERT): Likewise.
50302         * tests/test-lseek.c (ASSERT): Likewise.
50303         * tests/test-mbscasecmp.c (ASSERT): Likewise.
50304         * tests/test-mbscasestr1.c (ASSERT): Likewise.
50305         * tests/test-mbscasestr2.c (ASSERT): Likewise.
50306         * tests/test-mbscasestr3.c (ASSERT): Likewise.
50307         * tests/test-mbscasestr4.c (ASSERT): Likewise.
50308         * tests/test-mbschr.c (ASSERT): Likewise.
50309         * tests/test-mbscspn.c (ASSERT): Likewise.
50310         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
50311         * tests/test-mbspbrk.c (ASSERT): Likewise.
50312         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
50313         * tests/test-mbsrchr.c (ASSERT): Likewise.
50314         * tests/test-mbsspn.c (ASSERT): Likewise.
50315         * tests/test-mbsstr1.c (ASSERT): Likewise.
50316         * tests/test-mbsstr2.c (ASSERT): Likewise.
50317         * tests/test-mbsstr3.c (ASSERT): Likewise.
50318         * tests/test-memchr2.c (ASSERT): Likewise.
50319         * tests/test-memmem.c (ASSERT): Likewise.
50320         * tests/test-open.c (ASSERT): Likewise.
50321         * tests/test-printf-frexp.c (ASSERT): Likewise.
50322         * tests/test-printf-frexpl.c (ASSERT): Likewise.
50323         * tests/test-printf-posix.c (ASSERT): Likewise.
50324         * tests/test-quotearg.c (ASSERT): Likewise.
50325         * tests/test-rbtree_list.c (ASSERT): Likewise.
50326         * tests/test-rbtree_oset.c (ASSERT): Likewise.
50327         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
50328         * tests/test-round1.c (ASSERT): Likewise.
50329         * tests/test-roundf1.c (ASSERT): Likewise.
50330         * tests/test-roundl.c (ASSERT): Likewise.
50331         * tests/test-signbit.c (ASSERT): Likewise.
50332         * tests/test-sleep.c (ASSERT): Likewise.
50333         * tests/test-snprintf-posix.c (ASSERT): Likewise.
50334         * tests/test-snprintf.c (ASSERT): Likewise.
50335         * tests/test-sprintf-posix.c (ASSERT): Likewise.
50336         * tests/test-stat-time.c (ASSERT): Likewise.
50337         * tests/test-strcasestr.c (ASSERT): Likewise.
50338         * tests/test-strerror.c (ASSERT): Likewise.
50339         * tests/test-striconv.c (ASSERT): Likewise.
50340         * tests/test-striconveh.c (ASSERT): Likewise.
50341         * tests/test-striconveha.c (ASSERT): Likewise.
50342         * tests/test-strsignal.c (ASSERT): Likewise.
50343         * tests/test-strstr.c (ASSERT): Likewise.
50344         * tests/test-strtod.c (ASSERT): Likewise.
50345         * tests/test-trunc1.c (ASSERT): Likewise.
50346         * tests/test-trunc2.c (ASSERT): Likewise.
50347         * tests/test-truncf1.c (ASSERT): Likewise.
50348         * tests/test-truncf2.c (ASSERT): Likewise.
50349         * tests/test-truncl.c (ASSERT): Likewise.
50350         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
50351         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
50352         * tests/test-vasnprintf.c (ASSERT): Likewise.
50353         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
50354         * tests/test-vasprintf.c (ASSERT): Likewise.
50355         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
50356         * tests/test-vprintf-posix.c (ASSERT): Likewise.
50357         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
50358         * tests/test-vsnprintf.c (ASSERT): Likewise.
50359         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
50360         * tests/test-wcwidth.c (ASSERT): Likewise.
50361         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
50362         * tests/test-xprintf-posix.c (ASSERT): Likewise.
50363         * tests/test-xvasprintf.c (ASSERT): Likewise.
50364         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
50365         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
50366         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
50367         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
50368         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
50369         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
50370         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
50371         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
50372         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
50373         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
50374         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
50375         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
50376         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
50377         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
50378         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
50379         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
50380         * tests/unictype/test-block_list.c (ASSERT): Likewise.
50381         * tests/unictype/test-block_of.c (ASSERT): Likewise.
50382         * tests/unictype/test-block_test.c (ASSERT): Likewise.
50383         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
50384         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
50385         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
50386         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
50387         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
50388         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
50389         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
50390         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
50391         * tests/unictype/test-combining.c (ASSERT): Likewise.
50392         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
50393         * tests/unictype/test-digit.c (ASSERT): Likewise.
50394         * tests/unictype/test-mirror.c (ASSERT): Likewise.
50395         * tests/unictype/test-numeric.c (ASSERT): Likewise.
50396         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
50397         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
50398         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
50399         * tests/unictype/test-scripts.c (ASSERT): Likewise.
50400         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
50401         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
50402         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
50403         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
50404         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
50405         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
50406         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
50407         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
50408         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
50409         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
50410         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
50411         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
50412         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
50413         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
50414         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
50415         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
50416         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
50417         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
50418         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
50419         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
50420         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
50421         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
50422         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
50423         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
50424         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
50425         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
50426         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
50427         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
50428         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
50429         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
50430         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
50431         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
50432         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
50433         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
50434         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
50435         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
50436         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
50437         Reported by Eric Blake.
50438
50439 2008-04-11  Bruno Haible  <bruno@clisp.org>
50440
50441         * lib/wchar.in.h: Tweak comment.
50442
50443 2008-04-11  Bruno Haible  <bruno@clisp.org>
50444
50445         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
50446         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
50447         gl_COMMON.
50448         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
50449
50450 2008-04-11  Bruno Haible  <bruno@clisp.org>
50451
50452         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
50453
50454 2008-04-11  Simon Josefsson  <simon@josefsson.org>
50455
50456         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
50457         of attempting to use non-existing /dev/*random.  Based on patch
50458         from Adam Strzelecki <ono@java.pl> in
50459         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
50460
50461 2008-04-08  Bruno Haible  <bruno@clisp.org>
50462
50463         Add tentative support for emx+gcc.
50464         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
50465         * lib/fpurge.c (fpurge): Likewise.
50466         * lib/freadable.c (freadable): Likewise.
50467         * lib/freadahead.c (freadahead): Likewise.
50468         * lib/freading.c (freading): Likewise.
50469         * lib/freadptr.c (freadptr): Likewise.
50470         * lib/freadseek.c (freadptrinc): Likewise.
50471         * lib/fseeko.c (rpl_fseeko): Likewise.
50472         * lib/fseterr.c (fseterr): Likewise.
50473         * lib/fwritable.c (fwritable): Likewise.
50474         * lib/fwriting.c (fwriting): Likewise.
50475         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
50476
50477 2008-04-09  Eric Blake  <ebb9@byu.net>
50478
50479         Avoid some autoconf warnings.
50480         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
50481         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
50482         * m4/afs.m4 (gl_AFS): Likewise.
50483         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
50484         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
50485         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
50486         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
50487         (gl_INTEGER_TYPE_SUFFIX): Likewise.
50488         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
50489         (AC_CHECK_DECLS_ONCE): Likewise.
50490         Rename file...
50491         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
50492         gnulib-tool requires autoconf 2.59 or better.
50493         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
50494
50495 2008-04-08  Eric Blake  <ebb9@byu.net>
50496
50497         Use 'git describe --match' if present (added in git 1.5.5).
50498         * build-aux/git-version-gen: Limit result to tags that match 'v*'
50499         if possible.
50500
50501 2008-04-08  Bruno Haible  <bruno@clisp.org>
50502
50503         Add tentative support for OpenServer.
50504         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
50505         _ptr, _cnt.
50506         * lib/fpurge.c (fpurge): Likewise.
50507         * lib/freadable.c (freadable): Likewise.
50508         * lib/freadahead.c (freadahead): Likewise.
50509         * lib/freading.c (freading): Likewise.
50510         * lib/freadptr.c (freadptr): Likewise.
50511         * lib/freadseek.c (freadptrinc): Likewise.
50512         * lib/fseeko.c (rpl_fseeko): Likewise.
50513         * lib/fseterr.c (fseterr): Likewise.
50514         * lib/fwritable.c (fwritable): Likewise.
50515         * lib/fwriting.c (fwriting): Likewise.
50516         Reported by Roger Cornelius <rac@tenzing.org> and
50517         Brian K. White <brian@aljex.com>.
50518
50519 2008-04-06  Jim Meyering  <meyering@redhat.com>
50520
50521         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
50522
50523 2008-04-06  Bruno Haible  <bruno@clisp.org>
50524
50525         Avoid possible error with non-ASCII bytes in UTF-8 locales.
50526         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
50527         * tests/test-printf-posix.sh: Likewise.
50528         * tests/test-vfprintf-posix.sh: Likewise.
50529         * tests/test-vprintf-posix.sh: Likewise.
50530         * tests/test-xprintf-posix.sh: Likewise.
50531
50532 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50533
50534         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
50535         hide error from 'ls', needed on OS/2.
50536         Report by Elbert Pol <elbert.pol@gmail.com>.
50537
50538 2008-04-04  Eric Blake  <ebb9@byu.net>
50539
50540         Make test-fseeko.c failures meaningful.
50541         * tests/test-fseeko.c: Print line number on failure.
50542         * tests/test-fseek.c: Likewise.
50543         Reported by Nelson H. F. Beebe.
50544
50545         Improve strtod bug detection check.
50546         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
50547         required for Solaris 10.
50548         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
50549
50550 2008-04-04  Bruno Haible  <bruno@clisp.org>
50551
50552         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
50553         by m4/setenv.m4.
50554
50555 2008-04-03  Eric Blake  <ebb9@byu.net>
50556
50557         Ensure sane .version contents.
50558         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
50559         version string.
50560         * build-aux/git-version-gen: Improve documentation.
50561
50562         Make GNU make output nicer.
50563         * top/GNUmakefile [!_have-Makefile]: Add dependency on
50564         MAKECMDGOALS to enforce message for all command line targets.  Set
50565         srcdir for use in maint.mk.
50566
50567         Another maintainer tweak.
50568         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
50569         a target that regenerates version.
50570
50571 2008-04-03  Jim Meyering  <meyering@redhat.com>
50572
50573         vc-list-files: don't cause coreutils "make po-check" failure
50574         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
50575
50576 2008-04-03  Eric Blake  <ebb9@byu.net>
50577
50578         Allow VPATH usage of vc-list-files.
50579         * build-aux/vc-list-files (scriptversion): Add timestamp.
50580         (options): Add --help, --version, -C.
50581         (CVS): Support installed cvsu.
50582
50583 2008-04-02  Bruno Haible  <bruno@clisp.org>
50584
50585         Avoid some "statement with no effect" warnings from gcc.
50586         * tests/test-wctype.c (main): Explicitly ignore unused values.
50587         Reported by Jim Meyering.
50588
50589 2008-04-02  Jim Meyering  <meyering@redhat.com>
50590
50591         Avoid some warnings from "gcc -Wshadow".
50592         * tests/test-frexp.c (exp): Define to a different identifier.
50593         * tests/test-frexpl.c (exp): Likewise.
50594
50595 2008-04-03  Jim Meyering  <meyering@redhat.com>
50596
50597         bootstrap: remove dangling *.[ch] symlinks from lib
50598         * build-aux/bootstrap [dangling symlink removal]: Move find's
50599         -depth option to precede all others, to avoid a warning.
50600         Remove *.[ch] files too, and from "$source_base" (usually lib/).
50601
50602 2008-04-02  Bruno Haible  <bruno@clisp.org>
50603
50604         Avoid some warnings from "gcc -Wshadow".
50605         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
50606         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
50607         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
50608         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
50609         Reported by Jim Meyering.
50610
50611 2008-04-01  Bruno Haible  <bruno@clisp.org>
50612
50613         Fix test to work on IRIX 6.5 with cc.
50614         * tests/test-math.c (numeric_equal): New function.
50615         (main): Use it.
50616
50617 2008-04-01  Bruno Haible  <bruno@clisp.org>
50618
50619         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
50620
50621 2008-04-01  Bruno Haible  <bruno@clisp.org>
50622
50623         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
50624         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
50625         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
50626         (Depends-on): Remove math.
50627
50628         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
50629         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
50630         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
50631         (Depends-on): Remove math.
50632
50633         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
50634         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
50635         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
50636         (Depends-on): Remove math.
50637         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
50638         (Depends-on): Remove math.
50639
50640         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
50641         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
50642         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
50643         (Depends-on): Remove math.
50644         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
50645         (Depends-on): Remove math.
50646
50647         * tests/test-round1.c: Include nan.h.
50648         (main): Use NaNd instead of NAN.
50649         * modules/round-tests (Files): Add tests/nan.h.
50650
50651         * tests/test-trunc1.c: Include nan.h.
50652         (main): Use NaNd instead of NAN.
50653         * modules/trunc-tests (Files): Add tests/nan.h.
50654
50655         * tests/test-roundf1.c: Include nan.h.
50656         (main): Use NaNf instead of NAN.
50657         * modules/roundf-tests (Files): Add tests/nan.h.
50658
50659         * tests/test-truncf1.c: Include nan.h.
50660         (main): Use NaNf instead of NAN.
50661         * modules/truncf-tests (Files): Add tests/nan.h.
50662
50663         * tests/test-ceilf1.c: Include nan.h.
50664         (main): Use NaNf instead of NAN.
50665         * modules/ceilf-tests (Files): Add tests/nan.h.
50666
50667         * tests/test-floorf1.c: Include nan.h.
50668         (main): Use NaNf instead of NAN.
50669         * modules/floorf-tests (Files): Add tests/nan.h.
50670
50671         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
50672         (main): Use NaNf instead of NAN.
50673         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
50674
50675         * tests/test-isnand.c: Include nan.h instead of <math.h>.
50676         (main): Use NaNd instead of NAN.
50677         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
50678
50679         * tests/test-frexp.c: Include nan.h.
50680         (main): Use NaNd instead of NAN.
50681         * modules/frexp-tests (Files): Add tests/nan.h.
50682
50683         * lib/isnan.c: Don't include <math.h>.
50684         (FUNC): Don't use NAN macro.
50685         * modules/isnand-nolibm (Depends-on): Remove math.
50686         * modules/isnanf-nolibm (Depends-on): Remove math.
50687         * modules/isnanl (Depends-on): Remove math.
50688         * modules/isnanl-nolibm (Depends-on): Remove math.
50689
50690         * tests/nan.h: New file.
50691
50692 2008-04-01  Eric Blake  <ebb9@byu.net>
50693
50694         Fix typos.
50695         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
50696         values to be the right type.
50697
50698         For now, cater to gnulib strtod inaccuracies.
50699         * tests/test-strtod.c (main): Allow 1-ulp error on expected
50700         fractional results.  While not as nice from a QoI perspective, it
50701         is a quicker patch than correctly implementing decimal to binary
50702         rounding.
50703
50704 2008-03-31  Eric Blake  <ebb9@byu.net>
50705
50706         Guarantee a definition of NAN.
50707         * lib/math.in.h (NAN): Define if missing.
50708         * tests/test-math.c (main): Test it.
50709         * doc/posix-headers/math.texi (math.h): Document this.
50710         * lib/isnan.c (rpl_isnand): Use it.
50711         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
50712         * tests/test-floorf1.c (NaN): Likewise.
50713         * tests/test-frexp.c (NaN): Likewise.
50714         * tests/test-isnand.c (NaN): Likewise.
50715         * tests/test-isnanf.c (NaN): Likewise.
50716         * tests/test-round1.c (NaN): Likewise.
50717         * tests/test-roundf1.c (NaN): Likewise.
50718         * tests/test-snprintf-posix.h (NaN): Likewise.
50719         * tests/test-sprintf-posix.h (NaN): Likewise.
50720         * tests/test-trunc1.c (NaN): Likewise.
50721         * tests/test-truncf1.c (NaN): Likewise.
50722         * tests/test-vasnprintf-posix.c (NaN): Likewise.
50723         * tests/test-vasprintf-posix.c (NaN): Likewise.
50724         * modules/isnand-nolibm (Depends-on): Add math.
50725         * modules/isnanf-nolibm (Depends-on): Likewise.
50726         * modules/isnanl (Depends-on): Likewise.
50727         * modules/isnanl-nolibm (Depends-on): Likewise.
50728         * modules/snprintf-posix-tests (Depends-on): Likewise.
50729         * modules/sprintf-posix-tests (Depends-on): Likewise.
50730         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
50731         * modules/vsprintf-posix-tests (Depends-on): Likewise.
50732         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
50733         * modules/vasprintf-posix-tests (Depends-on): Likewise.
50734
50735 2008-03-31  Bruno Haible  <bruno@clisp.org>
50736
50737         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
50738         * doc/posix-functions/strtod.texi: Likewise.
50739
50740 2008-03-31  Bruno Haible  <bruno@clisp.org>
50741
50742         * tests/test-strtod.c (main): Don't use C99 syntax.
50743
50744 2008-03-31  Bruno Haible  <bruno@clisp.org>
50745
50746         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
50747         Reported by Eric Blake.
50748
50749 2008-03-31  Jim Meyering  <meyering@redhat.com>
50750
50751         Don't compare actual signbit return values.
50752         * tests/test-strtod.c (main): Rather, compare only their
50753         zero/non-zero nature.
50754
50755 2008-03-31  Eric Blake  <ebb9@byu.net>
50756
50757         More strtod documentation.
50758         * doc/posix-functions/strtod.texi (strtod): Interpret more test
50759         failures as distinct bugs.
50760
50761 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
50762
50763         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
50764         Problem reported by Erik Benada in
50765         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
50766
50767 2008-03-30  Bruno Haible  <bruno@clisp.org>
50768
50769         * tests/test-strtod.c: Add comments about which assertion fails on which
50770         platform.
50771         * doc/posix-functions/strtod.texi: Add info about many more platforms.
50772
50773 2008-03-30  Eric Blake  <ebb9@byu.net>
50774
50775         Test signbit behavior on zeros.
50776         * tests/test-signbit.c (test_signbitf): Add tests for zero.
50777         (test_signbitd, test_signbitl): Likewise.
50778
50779         More strtod touchups.
50780         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
50781         sign of negative underflow, for now.  Use .5, not .1.
50782         * doc/posix-functions/strtod.texi (strtod): Mention these
50783         limitations.
50784         Reported by Jim Meyering.
50785
50786 2008-03-30  Bruno Haible  <bruno@clisp.org>
50787
50788         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
50789         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
50790
50791 2008-03-30  Bruno Haible  <bruno@clisp.org>
50792
50793         Avoid failure when attempting to return empty iconv results on some
50794         platforms.
50795         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
50796         allocation, don't report ENOMEM when the resulting string is empty.
50797
50798 2008-03-30  Bruno Haible  <bruno@clisp.org>
50799
50800         Fix buffer overrun.
50801         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
50802         Don't consider the width for tmp_length. Check count against tmp_length
50803         before doing the padding. Ensure enough allocation during padding.
50804
50805 2008-03-30  Eric Blake  <ebb9@byu.net>
50806
50807         strtod touchups.
50808         * lib/strtod.c (strtod): Avoid compiler warnings.
50809         Reported by Jim Meyering.
50810
50811 2008-03-30  Bruno Haible  <bruno@clisp.org>
50812
50813         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
50814         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
50815         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
50816         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
50817         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
50818         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
50819         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
50820         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
50821
50822         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
50823         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
50824         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
50825         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
50826         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
50827         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
50828         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
50829         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
50830
50831         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
50832         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
50833         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
50834         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
50835         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
50836         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
50837         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
50838         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
50839
50840         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
50841         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
50842
50843         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
50844         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
50845
50846         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
50847         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
50848
50849         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
50850         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
50851         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
50852
50853         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
50854         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
50855         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
50856
50857         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
50858         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
50859         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
50860
50861         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
50862         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
50863         * modules/vasprintf (Depends-on): Add EOVERFLOW.
50864
50865         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
50866         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
50867         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
50868         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
50869         (Depends-on): Add EOVERFLOW.
50870         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
50871         (Depends-on): Add EOVERFLOW.
50872         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
50873         (Depends-on): Add EOVERFLOW.
50874         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
50875         (Depends-on): Add EOVERFLOW.
50876         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
50877         (Depends-on): Add EOVERFLOW.
50878         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
50879         (Depends-on): Add EOVERFLOW.
50880         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
50881         (Depends-on): Add EOVERFLOW.
50882         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
50883         (Depends-on): Add EOVERFLOW.
50884
50885         * lib/sprintf.c (EOVERFLOW): Remove fallback.
50886         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
50887         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
50888
50889         * lib/snprintf.c (EOVERFLOW): Remove fallback.
50890         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
50891         * modules/snprintf (Depends-on): Add EOVERFLOW.
50892
50893         * lib/poll.c (EOVERFLOW): Remove fallback.
50894         * modules/poll (Depends-on): Add EOVERFLOW.
50895
50896         * lib/getugroups.c (EOVERFLOW): Remove fallback.
50897         * modules/getugroups (Depends-on): Add EOVERFLOW.
50898
50899         * lib/getdelim.c (EOVERFLOW): Remove fallback.
50900         * modules/getdelim (Depends-on): Add EOVERFLOW.
50901
50902         * lib/ftell.c (EOVERFLOW): Remove fallback.
50903         * modules/ftell (Depends-on): Add EOVERFLOW.
50904
50905         * lib/fprintf.c (EOVERFLOW): Remove fallback.
50906         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
50907         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
50908
50909         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
50910
50911         * modules/EOVERFLOW-tests: New file.
50912         * tests/test-EOVERFLOW.c: New file.
50913
50914         * modules/EOVERFLOW: New file.
50915         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
50916
50917 2008-03-30  Bruno Haible  <bruno@clisp.org>
50918
50919         Fix bug introduced on 2007-06-10.
50920         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
50921         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
50922
50923 2008-03-30  Bruno Haible  <bruno@clisp.org>
50924
50925         Improve freadseek's efficiency after ungetc.
50926         * lib/freadseek.c: Include freadahead.h.
50927         (freadptrinc): New function, extracted from freadseek.
50928         (freadseek): Use it in a loop. Use freadahead to determine the number
50929         of loop iterations.
50930         * modules/freadseek (Depends-on): Add freadahead.
50931         (configure.ac): Require AC_C_INLINE.
50932
50933 2008-03-30  Bruno Haible  <bruno@clisp.org>
50934
50935         * lib/freadseek.c (freadseek): Don't ignore the return value of
50936         freadptr.
50937
50938 2008-03-29  Eric Blake  <ebb9@byu.net>
50939
50940         Add hex float support.
50941         * modules/strtod (Depends-on): Add c-ctype.
50942         (Link): Mention POW_LIB.
50943         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
50944         whitespace between 'e' and exponent.
50945         * tests/test-strtod.c (main): Enable hex float tests.
50946         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
50947         now provides.
50948
50949         Document various strtod bugs, with some fixes.
50950         * doc/posix-functions/strtod.texi (strtod): Document bugs with
50951         "-0x", "inf", "nan", and hex constants.
50952         * doc/posix-functions/atof.texi (atof): Likewise.
50953         * modules/stdlib (Makefile.am): Support strtod.
50954         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
50955         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
50956         detect additional strtod bugs.
50957         * lib/stdlib.in.h (rpl_strtod): Add declarations.
50958         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
50959         bool where appropriate.  Parse 'inf' and 'nan'.
50960         * tests/test-strtod.c: New file.
50961         * modules/strtod (Depends-on): Add stdbool, stdlib.
50962         (configure.ac): Turn on module indicator.
50963         * modules/strtod-tests: New module.
50964
50965 2008-03-29  Eric Blake  <ebb9@byu.net>
50966
50967         Fix ftell on mingw.
50968         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
50969         * modules/ftell-tests (Depends-on): Add binary-io.
50970         * modules/ftello-tests (Depends-on): Likewise.
50971         * tests/test-ftell.c (main): Enhance test to cover behavior after
50972         ungetc.  Enforce binary mode.
50973         * tests/test-ftello.c (main): Likewise.
50974
50975         Pass test-freadseek on cygwin.
50976         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
50977         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
50978         ungetc buffer.
50979
50980         * tests/test-fflush2.c (main): Fix typo.
50981
50982 2008-03-29  Bruno Haible  <bruno@clisp.org>
50983
50984         * tests/test-fflush2.c (main): Temporarily disable the contents of
50985         this test.
50986         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
50987         Reported by Eric Blake.
50988
50989 2008-03-28  Simon Josefsson  <simon@josefsson.org>
50990
50991         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
50992         (GC_SHA224_DIGEST_SIZE): Add.
50993
50994         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
50995         (gc_hash_digest_length): Likewise.
50996         (gc_hash_buffer): Likewise.
50997
50998 2008-03-25  Bruno Haible  <bruno@clisp.org>
50999
51000         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
51001         detail which gettext release to use.
51002         Reported by Simon Josefsson.
51003
51004 2008-03-26  Jim Meyering  <meyering@redhat.com>
51005
51006         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
51007         * modules/gnumakefile (clean-GNUmakefile): Also, use
51008         test ... && ... || : syntax rather than if-then ... fi.
51009
51010         gnumakefile: Don't double-quote-expand $(VPATH) value.
51011         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
51012
51013 2008-03-24  Eric Blake  <ebb9@byu.net>
51014
51015         Alter GNUmakefile to install into top directory.
51016         * modules/maintainer-makefile: Split, and add dependency...
51017         * modules/gnumakefile: to this new module.
51018         * build-aux/GNUmakefile: Move...
51019         * top/GNUmakefile: ...here.
51020         * build-aux/maint.mk: Move...
51021         * top/maint.mk: ...here.
51022         * MODULES.html.sh (Support for maintaining...): Document new
51023         module.
51024
51025 2008-03-23  Bruno Haible  <bruno@clisp.org>
51026
51027         * gnulib-tool: New options --vc-files, --no-vc-files.
51028         (func_usage): Document them.
51029         (vc_files): New variable.
51030         (func_import): Consider vc_files.
51031         (func_create_testdir): Set vc_files to empty.
51032         Suggested by Jim Meyering and Karl Berry.
51033
51034 2008-03-23  Bruno Haible  <bruno@clisp.org>
51035
51036         Fix regex compilation error on HP-UX 11.
51037         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
51038         * modules/regex (Files): Add m4/mbstate_t.m4.
51039         Reported by Ton Voon <ton.voon@altinity.com>.
51040
51041 2008-03-23  Bruno Haible  <bruno@clisp.org>
51042
51043         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
51044
51045 2008-03-23  Eric Blake  <ebb9@byu.net>
51046             Bruno Haible  <bruno@clisp.org>
51047
51048         Install files from top/ in the destination directory.
51049         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
51050         augmentation also for the files from top/.
51051         (func_import, func_create_testdir): Rewrite file names:
51052         top/filename -> filename.
51053
51054 2008-03-23  Bruno Haible  <bruno@clisp.org>
51055
51056         Tweak "gnulib --version" output.
51057         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
51058
51059 2008-03-23  Bruno Haible  <bruno@clisp.org>
51060
51061         Tweak "gnulib --version" output.
51062         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
51063         rather than contents of ChangeLog, when possible.
51064
51065 2008-03-21  Eric Blake  <ebb9@byu.net>
51066
51067         More --version tweaks.
51068         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
51069         date of last ChangeLog entry.
51070
51071 2008-03-21  Jim Meyering  <meyering@redhat.com>
51072
51073         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
51074
51075 2008-03-20  Eric Blake  <ebb9@byu.net>
51076
51077         VPATH fix.
51078         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
51079
51080 2008-03-20  Simon Josefsson  <simon@josefsson.org>
51081
51082         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
51083         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
51084
51085 2008-03-20  Eric Blake  <ebb9@byu.net>
51086
51087         Sync GNUmakefile with coreutils.
51088         * build-aux/GNUmakefile (have-Makefile): Rename...
51089         (_have-Makefile): ...to this, for namespace consideration.
51090         (GNUmakefile.cfg): Include, if present.
51091         (_autoreconf): Define a default.
51092         (_is-dist-target): New rule for rebuilds to pick up intra-release
51093         version.
51094         (maint-cfg.mk): Rename...
51095         (cfg.mk): ...to this.
51096
51097 2008-03-18  Jim Meyering  <meyering@redhat.com>
51098
51099         New script and module: mktempd
51100         * MODULES.html.sh (maint+release support): Add mktempd.
51101         * build-aux/mktempd: New file.
51102         * modules/mktempd: New file.
51103
51104 2008-03-15  Jim Meyering  <meyering@redhat.com>
51105
51106         Undo last change.
51107         * lib/sha1.c, lib/md5.c: 63 != ~63.
51108         Reported by Andreas Schwab.
51109
51110         sha1.c, md5.c: Hoist a redundant expression.
51111         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
51112         "ctx->buflen" only once, before calling *_process_block.
51113         * lib/md5.c (md5_process_bytes): Likewise.
51114
51115 2008-03-14  Eric Blake  <ebb9@byu.net>
51116
51117         Bump copyright year in files generated by gnulib-tool.
51118         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
51119         gnulib-tool, rather than hard-coding it.
51120
51121         Fix 'gnulib-tool --version' output to work with git.
51122         * gnulib-tool (func_gnulib_dir): New function, extracted from...
51123         (startup): ...here.
51124         (func_version): Use it to invoke git-version-gen, rather than
51125         relying on CVS keyword expansion.  Modernize wording.
51126         (cvsdatestamp, last_checkin_date, version): Kill unused
51127         variables.
51128
51129 2008-03-12  Jim Meyering  <meyering@redhat.com>
51130
51131         Recognize optional cast of the argument to free.
51132         * build-aux/useless-if-before-free: Update regexps.
51133
51134         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
51135
51136 2008-03-11  Bruno Haible  <bruno@clisp.org>
51137
51138         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
51139         by a single package.
51140         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
51141         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
51142         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
51143         Reported by Sam Steingold <sds@gnu.org>.
51144
51145 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
51146
51147         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
51148         repositories.
51149
51150 2008-03-11  Bruno Haible  <bruno@clisp.org>
51151
51152         Avoid conflicts between local macro definitions.
51153         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
51154         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
51155
51156 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
51157             Bruno Haible  <bruno@clisp.org>
51158
51159         Make va_copy work with some version of xlc on AIX 5.1.
51160         * lib/stdarg.in.h: New file.
51161         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
51162         On AIX, use a <stdarg.h> file substitute.
51163         * modules/stdarg (Files): Add lib/stdarg.in.h.
51164         (Depends-on): Add include_next.
51165         (Makefile.am): Build a stdarg.h substitute if requested.
51166         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
51167
51168 2008-03-10  Bruno Haible  <bruno@clisp.org>
51169
51170         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
51171         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
51172         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
51173
51174 2008-03-10  Bruno Haible  <bruno@clisp.org>
51175
51176         * modules/stdlib (Depends-on): Add include_next, remove
51177         absolute-header.
51178
51179 2008-03-09  Bruno Haible  <bruno@clisp.org>
51180
51181         * lib/freadahead.h (freadahead): Document more precisely.
51182         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
51183         the sum of both buffer sizes.
51184         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
51185         * NEWS: Document the change.
51186
51187 2008-03-09  Bruno Haible  <bruno@clisp.org>
51188
51189         Extend freadptr to return also the buffer size.
51190         * lib/freadptr.h (freadptr): Add sizep argument.
51191         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
51192         (freadptr): Add sizep argument. Determine buffer size like freadahead
51193         does.
51194         * tests/test-freadptr.c: Don't include freadahead.h.
51195         (main): Adapt for new calling convention of freadptr.
51196         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
51197         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
51198         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
51199         tests/test-freadptr2.sh.
51200         (Depends): Remove freadahead.
51201         (TESTS): Add test-freadptr2.sh.
51202         (check_PROGRAMS): Add test-freadptr2.
51203
51204 2008-03-09  Bruno Haible  <bruno@clisp.org>
51205
51206         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
51207         Report and solution by Simon Josefsson.
51208
51209 2008-03-06  Bruno Haible  <bruno@clisp.org>
51210
51211         Make fflush after ungetc work on BSD platforms.
51212         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
51213         * tests/test-fflush2.c: New file.
51214         * tests/test-fflush2.sh: New file.
51215         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
51216         tests/test-fflush2.c.
51217         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
51218         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
51219
51220 2008-03-06  Eric Blake  <ebb9@byu.net>
51221
51222         Likewise for ftello.
51223         * modules/ftello (Dependencies): Add extensions.
51224         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
51225
51226 2008-03-06  Bruno Haible  <bruno@clisp.org>
51227
51228         * modules/fseeko (Dependencies): Add extensions.
51229         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
51230         Needed on glibc systems.
51231
51232 2008-03-06  Bruno Haible  <bruno@clisp.org>
51233
51234         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
51235         email address.
51236         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
51237
51238 2008-03-06  Bruno Haible  <bruno@clisp.org>
51239
51240         * users.txt: Add libgnupdf.
51241
51242 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
51243
51244         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
51245         (Header File Substitutes, Function Substitutes,
51246         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
51247         (Build robot for gnulib): Fix typo.
51248
51249 2008-03-06  Bruno Haible  <bruno@clisp.org>
51250
51251         * doc/gnulib-tool.texi (VCS Issues): Small updates.
51252         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
51253
51254 2008-03-06  Bruno Haible  <bruno@clisp.org>
51255
51256         * doc/func.texi: New file, extracted from doc/gnulib.texi.
51257         * doc/gnulib.texi: Include it.
51258
51259 2008-03-06  Simon Josefsson  <simon@josefsson.org>
51260
51261         * modules/func (License): Change license to unlimited; there was
51262         no LGPL parts in the module anyway.
51263
51264 2008-03-06  Simon Josefsson  <simon@josefsson.org>
51265
51266         * modules/__func__: Renamed to modules/func.
51267         * modules/__func__-tests: Renamed to modules/func-tests.
51268         * tests/test-__func__.c: Renamed to tests/test-func.c.
51269         * m4/__func__.m4: Renamed to m4/func.m4.
51270         * doc/gnulib.texi (__func__): Section renamed to func.
51271         Suggested by Eric Blake <ebb9@byu.net>.
51272
51273 2008-03-06  Simon Josefsson  <simon@josefsson.org>
51274
51275         * doc/gnulib.texi (__func__): Use C99 terminology when talking
51276         about __func__.  Make example self-contained.  Suggested by Eric
51277         Blake <ebb9@byu.net>.
51278
51279         * tests/test-__func__.c (main): Avoid extraneous () around __func.
51280         Suggested by Eric Blake <ebb9@byu.net>.
51281
51282 2008-03-06  Simon Josefsson  <simon@josefsson.org>
51283
51284         * modules/__func__: New file.
51285         * modules/__func__-tests: New file.
51286         * tests/test-__func__.c: New file.
51287         * m4/__func__.m4: New file.
51288         * doc/gnulib.texi (__func__): Document __func__ module.
51289
51290 2008-03-05  Simon Josefsson  <simon@josefsson.org>
51291
51292         * modules/byteswap (License): Re-license as LGPLv2+.
51293
51294 2008-03-05  Simon Josefsson  <simon@josefsson.org>
51295
51296         * doc/Makefile: Add pdf target.
51297
51298 2008-03-05  Simon Josefsson  <simon@josefsson.org>
51299
51300         * modules/inline (License): Use 'unlimited', since there are only
51301         *.m4 files in this module.
51302
51303 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
51304             Bruno Haible  <bruno@clisp.org>
51305
51306         Add support for HP C 7.1 on OpenVMS 8.3.
51307         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
51308
51309 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
51310
51311         Update VMS specifics.
51312         * lib/getopt.c [VMS]: Remove include of unixlib.h.
51313
51314 2008-03-02  Jim Meyering  <meyering@redhat.com>
51315
51316         Remove the last dependency on the "free" module.
51317         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
51318         Reported by Bob Proulx.
51319
51320         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
51321
51322         Remove useless "if" tests before free.  Deprecate "free" module.
51323         * doc/posix-functions/free.texi: Mention that this
51324         module is no longer useful.
51325         * modules/free (Notice): Say this module is obsolete.
51326         * modules/readutmp (Depends-on): Remove free.
51327         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
51328         * lib/putenv.c (putenv): Likewise.
51329         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
51330         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
51331         * tests/test-c-strcasestr.c (main): Likewise.
51332         * tests/test-c-strstr.c (main): Likewise.
51333         * tests/test-mbscasestr1.c (main): Likewise.
51334         * tests/test-mbscasestr2.c (main): Likewise.
51335         * tests/test-mbsstr1.c (main): Likewise.
51336         * tests/test-mbsstr2.c (main): Likewise.
51337         * tests/test-memmem.c (main): Likewise.
51338         * tests/test-strcasestr.c (main): Likewise.
51339         * tests/test-striconv.c (main): Likewise.
51340         * tests/test-striconveh.c (main): Likewise.
51341         * tests/test-striconveha.c (main): Likewise.
51342         * tests/test-strstr.c (main): Likewise.
51343
51344         * build-aux/git-version-gen: Adjust a comment and the Usage string.
51345
51346         bootstrap: sync from coreutils again
51347         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
51348
51349 2008-03-01  Jim Meyering  <meyering@redhat.com>
51350
51351         bootstrap: sync from coreutils
51352         * build-aux/bootstrap (update_po_files): Copy a .po file into place
51353         also when the target doesn't exist.
51354
51355 2008-03-01  Eric Blake  <ebb9@byu.net>
51356
51357         Fix bugs in last patch.
51358         * lib/memchr2.c (memchr2): Fix typo.
51359         * tests/test-memchr2.c: Test previous bug, and don't use GNU
51360         extension.
51361         Reported by Bruce Korb.
51362
51363         New module 'memchr2'.
51364         * modules/memchr2: New file.
51365         * modules/memchr2-tests: Likewise.
51366         * lib/memchr2.h: Likewise.
51367         * lib/memchr2.c: Likewise, based on memchr.c.
51368         * tests/test-memchr2.c: New test.
51369         * MODULES.html.sh (String handling): Add memchr2.
51370
51371 2008-02-29  Bruno Haible  <bruno@clisp.org>
51372
51373         * modules/freadseek-tests: New file.
51374         * tests/test-freadseek.sh: New file.
51375         * tests/test-freadseek.c: New file.
51376
51377         New module 'freadseek'.
51378         * modules/freadseek: New file.
51379         * lib/freadseek.h: New file.
51380         * lib/freadseek.c: New file.
51381         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
51382
51383 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
51384
51385         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
51386         wydawca.
51387
51388         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
51389         program_invocation_name and program_invocation_short_name are
51390         present.
51391
51392 2008-02-28  Bruno Haible  <bruno@clisp.org>
51393
51394         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
51395         * tests/test-freadptr.sh: Also test non-seekable stdin.
51396
51397 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
51398
51399         * build-aux/bootstrap (source_base, m4_base)
51400         (doc_base, tests_base): New variables.
51401         (gnulib_tool_options): Do not hardcode base directories, use
51402         the above variables instead.
51403
51404 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
51405
51406         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
51407
51408 2008-02-28  Bruno Haible  <bruno@clisp.org>
51409
51410         * modules/freadptr-tests: New file.
51411         * tests/test-freadptr.sh: New file.
51412         * tests/test-freadptr.c: New file.
51413
51414         New module 'freadptr'.
51415         * modules/freadptr: New file.
51416         * lib/freadptr.h: New file.
51417         * lib/freadptr.c: New file.
51418         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
51419
51420 2008-02-26  Karl Berry  <karl@freefriends.org>
51421
51422         Sync from Libtool:
51423         * libltdl/argz.c (argz_add, argz_count): New functions.
51424         * libltdl/argz.in.h: Declare them.
51425         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
51426
51427 2008-02-22  Bruno Haible  <bruno@clisp.org>
51428
51429         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
51430         is a pointer type.  Needed for HP-UX 10.
51431         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
51432         * doc/posix-functions/gmtime_r.texi: Likewise.
51433         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
51434
51435 2008-02-24  Bruno Haible  <bruno@clisp.org>
51436
51437         * modules/environ-tests: New file.
51438         * tests/test-environ.c: New file.
51439
51440         New module 'environ'.
51441         * modules/environ: New file.
51442         * lib/unistd.in.h (environ): New declaration.
51443         * m4/environ.m4: New file.
51444         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
51445         after use.
51446         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
51447         HAVE_DECL_ENVIRON.
51448         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
51449         HAVE_DECL_ENVIRON.
51450         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
51451         wrong claim that 'environ' is missing on some systems.
51452         * modules/execute (Depends-on): Add environ.
51453         * lib/execute.c (environ): Remove fallback declaration.
51454         * modules/pipe (Depends-on): Add environ.
51455         * lib/pipe.c (environ): Remove fallback declaration.
51456         * modules/setenv (Depends-on): Add environ.
51457         * lib/setenv.c (environ): Remove fallback declaration.
51458         * modules/unsetenv (Depends-on): Add environ.
51459         * lib/unsetenv.c (environ): Remove fallback declaration.
51460         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
51461         m4/environ.m4.
51462         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
51463         (gl_PREREQ_UNSETENV): Likewise.
51464
51465 2008-02-24  Bruno Haible  <bruno@clisp.org>
51466
51467         * doc/posix-functions/environ.texi: Document the MacOS X problem.
51468
51469 2008-02-20  Bob Proulx  <bob@proulx.com>
51470
51471         Enable use of older two part flavor 'git describe'.
51472         * build-aux/git-version-gen: If using the older two part flavor of
51473         git version then recreate the third part now present in the
51474         newer three part flavor of git describe.
51475
51476 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
51477
51478         * lib/fts.c (fts_build): Typo correction to comment.
51479
51480 2008-02-17  Bruno Haible  <bruno@clisp.org>
51481
51482         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
51483         generating no-op conflicts.
51484
51485 2008-02-17  Bruno Haible  <bruno@clisp.org>
51486
51487         Speed up by 10%.
51488         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
51489         result_entries, rather than an index-based loop.
51490
51491 2008-02-17  Bruno Haible  <bruno@clisp.org>
51492
51493         Speed up by 25%.
51494         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
51495         'hashcode_cached'.
51496         (entry_create): New function.
51497         (entry_hashcode): Use the cached hashcode if possible.
51498         (read_changelog_file, try_split_merged_entry): Use entry_create.
51499
51500 2008-02-17  Bruno Haible  <bruno@clisp.org>
51501
51502         Speed up from O(n^2) to O(n) for long ChangeLog files.
51503         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
51504         (read_changelog_file): Change implementation of entries_reversed list
51505         to rbtreehash.
51506         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
51507
51508 2008-02-17  Bruno Haible  <bruno@clisp.org>
51509
51510         New option --split-merged-entry.
51511         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
51512         (find_paragraph_end, try_split_merged_entry): New functions.
51513         (long_options): Add option --split-merged-entry.
51514         (usage): Document option --split-merged-entry.
51515         (main): Implement option --split-merged-entry.
51516         Reported by Eric Blake.
51517
51518 2008-02-17  Bruno Haible  <bruno@clisp.org>
51519
51520         * lib/git-merge-changelog.c: Include c-strstr.h.
51521         (main): Support the "git pull --rebase" situation.
51522         * modules/git-merge-changelog (Depends-on): Add c-strstr.
51523         Reported by Eric Blake.
51524
51525 2008-02-16  Eric Blake  <ebb9@byu.net>
51526
51527         Avoid doubling \ in common case of "c-maybe" quoting style.
51528         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
51529         eliding outer quotes.
51530         * lib/quotearg.h: Document this.
51531         * tests/test-quotearg.c (result_strings, inputs, results_g)
51532         (flag_results, locale_results): Test it by adding a new string to
51533         each test group.
51534         (compare_strings): Test new string.
51535
51536 2008-02-13  Eric Blake  <ebb9@byu.net>
51537
51538         Avoid trigraph quoting in default output.
51539         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
51540         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
51541         unless explicitly requested.
51542         * tests/test-quotearg.c (flag_results, main): Add additional tests.
51543
51544 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
51545
51546         Don't rely on signed integer overflowing to negative value.
51547         * lib/getugroups.c (getugroups): Include <limits.h>.
51548         Instead, compare against INT_MAX, and increment only if the test passes.
51549
51550 2008-02-13  Jim Meyering  <meyering@redhat.com>
51551         and Eric Blake  <ebb9@byu.net>
51552
51553         Avoid shadowing warning and compile errors on Linux.
51554         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
51555         forwarding macros on Linux.
51556         (dcgettext): Define a stub, for Linux.
51557         (results_g, main): Avoid warnings.
51558
51559 2008-02-12  Eric Blake  <ebb9@byu.net>
51560
51561         Silence warning in last patch.
51562         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
51563
51564         Quotearg part 4: add tests, fix c-maybe colon quoting.
51565         * lib/quotearg.h: Improve documentation.
51566         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
51567         escapes when adding outer quotes.  When quoting trigraphs, use
51568         valid C notation.  When quoting NUL, omit extra characters if next
51569         character is not digit.  Alter prototype.
51570         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
51571         callers.
51572         * modules/quotearg-tests: New module.
51573         * tests/test-quotearg.c: New test.
51574
51575 2008-02-07  Eric Blake  <ebb9@byu.net>
51576
51577         Quotearg part 3: add flag to control outer quote elision.
51578         * lib/quotearg.h (c_maybe_quoting_style): New style.
51579         (enum quoting_flags): Better documentation of flags.
51580         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
51581         c-maybe style.
51582         (quotearg_buffer_restyled): Handle new flag to elide outer
51583         quotes.
51584
51585         Quotearg part 2: add flag that can control NUL elision.
51586         * lib/quotearg.h (set_quoting_flags): New prototype.
51587         * lib/quotearg.c (struct quoting_options): Add flag field.
51588         (set_quoting_flags): New function.
51589         (quotearg_buffer_restyled): Add flags parameter.
51590         (quotearg_alloc_mem): Set the flag if length cannot be returned.
51591         (quotearg_n_options): Set the flag, since length cannot be
51592         returned.
51593         (quoting_options_from_style): Default flags correctly.
51594
51595         Quotearg part 1: more wrappers, restore quotearg_char state.
51596         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
51597         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
51598         (quotearg_colon_mem): New wrappers.
51599         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
51600         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
51601         functions.
51602         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
51603         (quotearg_colon_mem): New functions.
51604
51605 2008-02-11  Bruno Haible  <bruno@clisp.org>
51606
51607         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
51608         library in the current directory: it does not work with parallel make.
51609         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
51610
51611 2008-02-11  Bruno Haible  <bruno@clisp.org>
51612
51613         * .gitattributes: New file.
51614
51615 2008-02-11  Jim Meyering  <meyering@redhat.com>
51616
51617         useless-if-before-free: Fix reversed exit values.
51618         * build-aux/useless-if-before-free: Use correct values
51619         for EXIT_MATCH and EXIT_NO_MATCH.
51620
51621         * build-aux/useless-if-before-free: Close stdout carefully.
51622
51623 2008-02-10  Bruno Haible  <bruno@clisp.org>
51624
51625         New module 'git-merge-changelog'.
51626         * modules/git-merge-changelog: New file.
51627         * lib/git-merge-changelog.c: New file.
51628
51629 2008-02-10  Jim Meyering  <meyering@redhat.com>
51630
51631         useless-if-before-free: New option: --list (-l).
51632
51633         useless-if-before-free: Don't exit immediately upon open failure.
51634         * build-aux/useless-if-before-free: Exit 2 for errors.
51635         Upon failure to open a file, don't exit immediately.
51636         Rather, just warn and continue with any remaining files.
51637
51638 2008-02-10  Bruno Haible  <bruno@clisp.org>
51639
51640         New abstract list operation 'node_set_value'.
51641         * lib/gl_list.h (gl_list_node_set_value): New function.
51642         (struct gl_list_implementation): New field node_set_value.
51643         * lib/gl_list.c (gl_list_node_set_value): New function.
51644         * lib/gl_array_list.c (gl_array_node_set_value): New function.
51645         (gl_array_list_implementation): Update.
51646         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
51647         (gl_carray_list_implementation): Update.
51648         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
51649         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
51650         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
51651         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
51652         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
51653         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
51654         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
51655         Update.
51656         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
51657         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
51658         (gl_sublist_list_implementation): Update.
51659
51660 2008-02-10  Bruno Haible  <bruno@clisp.org>
51661
51662         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
51663         Needed when ELEMENT is #defined to 'some_type *'.
51664
51665 2008-02-10  Jim Meyering  <meyering@redhat.com>
51666
51667         New script and module: useless-if-before-free
51668         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
51669         * build-aux/useless-if-before-free: New file.
51670         * modules/useless-if-before-free: New file.
51671
51672         * build-aux/gitlog-to-changelog: Use committer date, not author date.
51673
51674         xstrtol_error: Fix typo.
51675         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
51676         s/exit_failure/exit_status/.
51677
51678 2008-02-09  Jim Meyering  <meyering@redhat.com>
51679
51680         New script and module: gitlog-to-changelog
51681         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
51682         * modules/gitlog-to-changelog: New file.
51683         * build-aux/gitlog-to-changelog: New file.
51684
51685 2008-02-08  Jim Meyering  <meyering@redhat.com>
51686
51687         Avoid two "parameter unused" warnings.
51688         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
51689         Mark "st" as used.
51690
51691         Use "git COMMAND", not "git-COMMAND".
51692         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
51693         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
51694         * build-aux/git-version-gen: Use "git status", not "git-status".
51695
51696 2008-02-07  Bruno Haible  <bruno@clisp.org>
51697
51698         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
51699         Avoids a crash on Windows Vista.
51700         Reported by Adam Strzelecki <ono@java.pl> via
51701         Simon Josefsson <simon@josefsson.org>.
51702
51703 2008-02-06  Bruno Haible  <bruno@clisp.org>
51704
51705         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
51706         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
51707         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
51708         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
51709         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
51710         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
51711         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
51712         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
51713         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
51714         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
51715         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
51716         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
51717         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
51718         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
51719         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
51720         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
51721         left-adjust flag.
51722         * tests/test-snprintf-posix.h (test_function): Likewise.
51723         * tests/test-sprintf-posix.h (test_function): Likewise.
51724         * tests/test-vasprintf-posix.c (test_function): Likewise.
51725         * doc/posix-functions/fprintf.texi: Update.
51726         * doc/posix-functions/printf.texi: Update.
51727         * doc/posix-functions/snprintf.texi: Update.
51728         * doc/posix-functions/sprintf.texi: Update.
51729         * doc/posix-functions/vfprintf.texi: Update.
51730         * doc/posix-functions/vprintf.texi: Update.
51731         * doc/posix-functions/vsnprintf.texi: Update.
51732         * doc/posix-functions/vsprintf.texi: Update.
51733         Reported by Peter Fales <psfales@alcatel-lucent.com>.
51734
51735 2008-02-06  Bruno Haible  <bruno@clisp.org>
51736
51737         Fix bug introduced on 2008-01-26.
51738         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
51739
51740 2008-02-06  Bruno Haible  <bruno@clisp.org>
51741
51742         Fix bug introduced on 2007-06-10.
51743         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
51744         !NEED_PRINTF_FLAG_ZERO.
51745
51746 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
51747
51748         getloadavg: use libperfstat on AIX5
51749         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
51750
51751 2008-02-03  Bruno Haible  <bruno@clisp.org>
51752
51753         * lib/diffseq.h: Add comments about required #includes.
51754         Reported by Michael Biggs <gnulib@doubleplum.net>.
51755
51756 2008-02-01  Bruno Haible  <bruno@clisp.org>
51757
51758         * users.txt: Add gnuit.
51759
51760 2008-01-31  Bruno Haible  <bruno@clisp.org>
51761
51762         * lib/md4.c (set_uint32): Mark as inline.
51763         * lib/md5.c (set_uint32): Likewise.
51764         * lib/sha1.c (set_uint32): Likewise.
51765         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
51766         * m4/md5.m4 (gl_MD5): Likewise.
51767         * m4/sha1.m4 (gl_SHA1): Likewise.
51768
51769 2008-01-31  Jim Meyering  <meyering@redhat.com>
51770
51771         Use "sizeof VAR", rather than a literal "4".
51772         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
51773         * lib/md4.c (md4_read_ctx): Likewise.
51774         * lib/sha1.c (sha1_read_ctx): Likewise.
51775
51776 2008-01-31  Simon Josefsson  <simon@josefsson.org>
51777
51778         * tests/test-sha1.c: New file, based on test-md5.c.
51779
51780         * modules/crypto/sha1-tests: New file.
51781
51782 2008-01-31  Simon Josefsson  <simon@josefsson.org>
51783
51784         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
51785
51786 2008-01-31  Jim Meyering  <meyering@redhat.com>
51787
51788         Prefer "sizeof v" over the equivalent "4".
51789         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
51790         * lib/md5.c (set_uint32): Likewise.
51791         * lib/sha1.c (set_uint32): Likewise.
51792
51793 2008-01-31  Simon Josefsson  <simon@josefsson.org>
51794
51795         * lib/sha1.c (set_uint32): Mark function as static.
51796
51797 2008-01-31  Simon Josefsson  <simon@josefsson.org>
51798
51799         md2: clarify comments to say that alignment is not required.
51800         * lib/md2.h: Remove warning about alignment in comment.
51801         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
51802         never been required.
51803
51804 2008-01-31  Simon Josefsson  <simon@josefsson.org>
51805
51806         md4: adapt alignment constraint fix from sha1.
51807         * lib/md4.c (set_uint32): New function, from sha1.c
51808         (md4_read_ctx): Use it.
51809         (md4_finish_ctx): Doc fix.
51810         * lib/md4.h: Doc fix.
51811
51812 2008-01-31  Simon Josefsson  <simon@josefsson.org>
51813
51814         md5: adapt alignment constraint fix from sha1.
51815         * lib/md5.c (set_uint32): New function, from sha1.c
51816         (md5_read_ctx): Use it.
51817         (md5_finish_ctx): Doc fix.
51818         * lib/md5.h: Doc fix.
51819
51820 2008-01-30  Peter Palfrader  <weasel@debian.org>
51821
51822         sha1: remove the result buffer alignment constraint
51823         * lib/sha1.c (set_uint32): New function.
51824         (sha1_read_ctx): Rewrite to remove the result buffer alignment
51825         constraint.
51826         (sha1_finish_ctx): Remove comment warning about alignment constraint.
51827         * lib/sha1.h: Likewise.
51828
51829 2008-01-30  Andreas Schwab  <schwab@suse.de>
51830             Bruno Haible  <bruno@clisp.org>
51831
51832         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
51833         correct definition of LDBL_MIN_EXP.
51834
51835 2008-01-30  Karl Berry  <karl@gnu.org>
51836
51837         * config/srclist-update: try to preserve x bit on updates.
51838         * config/srclistvars.sh: update for karl.
51839
51840 2008-01-29  Jim Meyering  <meyering@redhat.com>
51841
51842         vasnprintf.c: Avoid warning about unused label
51843         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
51844         "overflow" label definition and associated code with the
51845         same cpp condition that guards the sole use of that label.
51846
51847 2008-01-26  Bruno Haible  <bruno@clisp.org>
51848
51849         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
51850         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
51851         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
51852         * lib/isnanl-nolibm.h (isnanl): Likewise.
51853         Reported by Paul Eggert <eggert@cs.ucla.edu>.
51854
51855 2008-01-26  Bruno Haible  <bruno@clisp.org>
51856
51857         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
51858         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
51859
51860 2008-01-26  Bruno Haible  <bruno@clisp.org>
51861
51862         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
51863         GCC >= 4.0 built-in.
51864         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
51865
51866 2008-01-26  Bruno Haible  <bruno@clisp.org>
51867
51868         Rename isnan, applicable to 'double' only, to isnand.
51869         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
51870         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
51871         (configure.ac): Update.
51872         (Include): Replace "isnan.h" with "isnand.h".
51873         * m4/isnand.m4: Renamed from m4/isnan.m4.
51874         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
51875         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
51876         instead of isnan.c.
51877         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
51878         instead of HAVE_ISNAN_IN_LIBC.
51879         (isnand): Renamed from isnan.
51880         * lib/isnand.c: New file.
51881         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
51882         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
51883         (Makefile.am): Update.
51884         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
51885         Include isnand.h instead of isnan.h.
51886         (main): Test isnand instead of isnan.
51887         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
51888         isnan-nolibm.
51889         * modules/frexp (Depends-on): Likewise.
51890         * modules/frexp-tests (Depends-on): Likewise.
51891         * modules/frexp-nolibm (Depends-on): Likewise.
51892         * modules/frexp-nolibm-tests (Depends-on): Likewise.
51893         * modules/isfinite (Depends-on): Likewise.
51894         * modules/round-tests (Depends-on): Likewise.
51895         * modules/signbit (Depends-on): Likewise.
51896         * modules/signbit-tests (Depends-on): Likewise.
51897         * modules/snprintf-posix (Depends-on): Likewise.
51898         * modules/sprintf-posix (Depends-on): Likewise.
51899         * modules/trunc-tests (Depends-on): Likewise.
51900         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
51901         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
51902         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
51903         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
51904         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
51905         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
51906         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
51907         * modules/vasnprintf-posix (Depends-on): Likewise.
51908         * modules/vasprintf-posix (Depends-on): Likewise.
51909         * modules/vfprintf-posix (Depends-on): Likewise.
51910         * modules/vsnprintf-posix (Depends-on): Likewise.
51911         * modules/vsprintf-posix (Depends-on): Likewise.
51912         * lib/frexp.c: Include isnand.h instead of isnan.h.
51913         (ISNAN): Set to isnand instead of isnan.
51914         * lib/isfinite.c: Include isnand.h instead of isnan.h.
51915         (gl_isfinited): Use isnand instead of isnan.
51916         * lib/signbitd.c: Include isnand.h instead of isnan.h.
51917         (gl_signbitd): Use isnand instead of isnan.
51918         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
51919         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
51920         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
51921         (main): Use isnand instead of isnan.
51922         * tests/test-round1.c: Include isnand.h.
51923         (main): Use isnand instead of isnan.
51924         * tests/test-round2.c: Include isnand.h instead of isnan.h.
51925         (ISNAN): Set to isnand instead of isnan.
51926         * tests/test-trunc1.c: Include isnand.h.
51927         (main): Use isnand instead of isnan.
51928         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
51929         (equal): Use isnand instead of isnan.
51930         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
51931         isnand-nolibm.
51932         * NEWS: Mention the change.
51933
51934 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
51935             Bruno Haible  <bruno@clisp.org>
51936
51937         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
51938         the GCC builtins for signbits are present and set
51939         REPLACE_SIGNBIT_USING_GCC if so.
51940         * lib/math.in.h (signbit): Define using GCC builtins if
51941         REPLACE_SIGNBIT_USING_GCC is set.
51942         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
51943         REPLACE_SIGNBIT_USING_GCC.
51944         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
51945
51946 2008-01-25  Jim Meyering  <meyering@redhat.com>
51947
51948         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
51949         * lib/poll.c: Include <config.h>, not "config.h".
51950         * tests/test-getaddrinfo.c: Likewise.
51951
51952 2008-01-25  Simon Josefsson  <simon@josefsson.org>
51953
51954         * modules/sockets-tests: New file.
51955
51956 2008-01-24  Simon Josefsson  <simon@josefsson.org>
51957
51958         * modules/sockets: New module, can be used to call WSA_Startup and
51959         WSA_Cleanup when needed.
51960
51961         * lib/sockets.h, lib/sockets.c: New files.
51962
51963         * m4/sockets.m4: New file.
51964
51965         * tests/test-sockets.c: New file.
51966
51967 2008-01-19  Bruno Haible  <bruno@clisp.org>
51968
51969         * doc/posix-headers: Renamed from doc/headers.
51970         * doc/posix-functions: Renamed from doc/functions.
51971         * doc/gnulib.texi: Update.
51972
51973 2008-01-19  Bruno Haible  <bruno@clisp.org>
51974
51975         * doc/glibc-functions/strcasestr.texi: Include contents of
51976         doc/functions/strcasestr.texi, fixing the list of platforms.
51977         * doc/functions/strcasestr.texi: Remove file.
51978
51979 2008-01-19  Bruno Haible  <bruno@clisp.org>
51980
51981         * doc/glibc-functions/memmem.texi: Include contents of
51982         doc/functions/memmem.texi.
51983         * doc/functions/memmem.texi: Remove file.
51984
51985 2008-01-18  Bruno Haible  <bruno@clisp.org>
51986
51987         * doc/glibc-functions/*.texi: New files.
51988         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
51989         to use the new files.
51990
51991 2008-01-17  Bruno Haible  <bruno@clisp.org>
51992
51993         * tests/test-gethostname.c (main): Fix printf statement.
51994
51995 2008-01-17  Simon Josefsson  <simon@josefsson.org>
51996
51997         * modules/gethostname-tests: New file.
51998
51999         * tests/test-gethostname.c: New file.
52000
52001 2008-01-17  Simon Josefsson  <simon@josefsson.org>
52002
52003         * lib/gethostname.c: Include string.h unconditionally, strncpy is
52004         used by the UNAME case.  Reported by Bruno Haible
52005         <bruno@clisp.org>.
52006
52007 2008-01-17  Eric Blake  <ebb9@byu.net>
52008
52009         Convert c-strcasestr to be more efficient.
52010         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
52011         (Depends-on): Add c-strcase, remove malloca, strnlen.
52012         * tests/test-c-strcasestr.c (main): Enhance test.
52013         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
52014
52015 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
52016
52017         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
52018         Use it in creating po/Makevars.
52019
52020 2008-01-15  Simon Josefsson  <simon@josefsson.org>
52021
52022         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
52023         Applications that requires it should initialize libgcrypt
52024         manually.
52025
52026 2008-01-16  Simon Josefsson  <simon@josefsson.org>
52027
52028         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
52029
52030 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
52031
52032         Fix problem with getdate on mingw32 reported by Simon Josefsson
52033         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
52034         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
52035         tzname", when deciding whether to declare tzname.
52036         * lib/strftime.c (tzname): Likewise.
52037
52038 2008-01-15  Bruno Haible  <bruno@clisp.org>
52039
52040         Work around a MacOS X 10.5 bug in frexpl().
52041         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
52042         * doc/functions/frexpl.texi: Document the bug.
52043         Reported by Elias Pipping <pipping@gentoo.org>.
52044
52045 2008-01-14  Eric Blake  <ebb9@byu.net>
52046
52047         Touch up previous patch.
52048         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
52049         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
52050
52051         Convert strcasestr module to use Two-Way algorithm.
52052         * modules/strcasestr-simple: New module, based on the old
52053         strcasestr, but with Two-Way rather than KMP.
52054         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
52055         * lib/string.in.h (rpl_strcasestr): Declare.
52056         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
52057         performance.
52058         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
52059         * modules/string (Makefile.am): Support strcasestr.
52060         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
52061         * modules/strcasestr-tests (Depends-on): Check for alarm.
52062         * tests/test-strcasestr.c: Augment test.
52063         * lib/str-two-way.h: Clean up stray macro.
52064         * NEWS: Document new module.
52065         * MODULES.html.sh (string handling): Likewise.
52066         * doc/functions/strcasestr.texi: New file.
52067         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
52068         here, since it is not a POSIX function.
52069
52070 2008-01-14  Colin Watson  <cjwatson@debian.org>
52071             Bruno Haible  <bruno@clisp.org>
52072
52073         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
52074         works fine; if not, set REPLACE_STRSIGNAL.
52075         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
52076         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
52077         REPLACE_STRSIGNAL.
52078         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
52079         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
52080         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
52081
52082 2008-01-14  Bruno Haible  <bruno@clisp.org>
52083
52084         * modules/strsignal (Include): Change to <string.h>.
52085
52086 2008-01-14  Colin Watson  <cjwatson@debian.org>
52087
52088         * modules/argp (Notice): Add a notice recommending to change
52089         XGETTEXT_OPTIONS.
52090         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
52091
52092 2008-01-13  Colin Watson  <cjwatson@debian.org>
52093
52094         * modules/strsignal-tests: New file.
52095         * tests/test-strsignal.c: New file.
52096
52097         * lib/strsignal.c: New file, from glibc with modifications.
52098         * lib/siglist.h: New file, from glibc with modifications.
52099         * lib/string.in.h (strsignal): New declaration.
52100         * m4/strsignal.m4: New file.
52101         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
52102         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
52103         * modules/strsignal: New file.
52104         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
52105         HAVE_DECL_STRSIGNAL.
52106
52107 2008-01-13  Bruno Haible  <bruno@clisp.org>
52108
52109         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
52110         locale encoding is not ASCII. Needed for OpenBSD 4.0.
52111         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
52112         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
52113
52114 2008-01-13  Bruno Haible  <bruno@clisp.org>
52115
52116         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
52117         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
52118         * lib/argp.h (__attribute__): Likewise.
52119         * lib/c-stack.c (__attribute__): Likewise.
52120         * lib/error.h (__attribute__): Likewise.
52121         * lib/fts.c (__attribute__): Likewise.
52122         * lib/openat.h (__attribute__): Likewise.
52123         * lib/stdio.in.h (__attribute__): Likewise.
52124         * lib/string.in.h (__attribute__): Likewise.
52125         * lib/utimens.c (__attribute__): Likewise.
52126         * lib/vasnprintf.h (__attribute__): Likewise.
52127         * lib/xalloc.h (__attribute__): Likewise.
52128         * lib/xprintf.h (__attribute__): Likewise.
52129         * lib/xstrtol.h (__attribute__): Likewise.
52130         * lib/xvasprintf.h (__attribute__): Likewise.
52131
52132 2008-01-12  Bruno Haible  <bruno@clisp.org>
52133
52134         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
52135         * doc/glibc-headers/a.out.texi: New file.
52136         * doc/glibc-headers/aliases.texi: New file.
52137         * doc/glibc-headers/alloca.texi: New file.
52138         * doc/glibc-headers/ar.texi: New file.
52139         * doc/glibc-headers/argp.texi: New file.
52140         * doc/glibc-headers/argz.texi: New file.
52141         * doc/glibc-headers/byteswap.texi: New file.
52142         * doc/glibc-headers/crypt.texi: New file.
52143         * doc/glibc-headers/endian.texi: New file.
52144         * doc/glibc-headers/envz.texi: New file.
52145         * doc/glibc-headers/err.texi: New file.
52146         * doc/glibc-headers/error.texi: New file.
52147         * doc/glibc-headers/execinfo.texi: New file.
52148         * doc/glibc-headers/fpu_control.texi: New file.
52149         * doc/glibc-headers/fstab.texi: New file.
52150         * doc/glibc-headers/fts.texi: New file.
52151         * doc/glibc-headers/getopt.texi: New file.
52152         * doc/glibc-headers/ieee754.texi: New file.
52153         * doc/glibc-headers/ifaddrs.texi: New file.
52154         * doc/glibc-headers/libintl.texi: New file.
52155         * doc/glibc-headers/mcheck.texi: New file.
52156         * doc/glibc-headers/mntent.texi: New file.
52157         * doc/glibc-headers/obstack.texi: New file.
52158         * doc/glibc-headers/paths.texi: New file.
52159         * doc/glibc-headers/printf.texi: New file.
52160         * doc/glibc-headers/pty.texi: New file.
52161         * doc/glibc-headers/resolv.texi: New file.
52162         * doc/glibc-headers/shadow.texi: New file.
52163         * doc/glibc-headers/sysexits.texi: New file.
52164         * doc/glibc-headers/ttyent.texi: New file.
52165
52166 2008-01-12  Jim Meyering  <meyering@redhat.com>
52167
52168         announce-gen: emit Gnulib's git-based version string.
52169         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
52170         New option --gnulib-version=V, where V is expected to be
52171         the output of running git describe in the gnulib directory.
52172         (get_tool_versions): Request feedback on xdelta.  I suspect it's
52173         not useful, and plan to stop publishing an xdelta file with each
52174         coreutils release.
52175
52176         * build-aux/announce-gen: Also check for lzma-compressed files.
52177
52178 2008-01-11  Bruno Haible  <bruno@clisp.org>
52179
52180         * tests/test-memmem.c (main): Increase maximum allowed time.
52181         * tests/test-strstr.c (main): Likewise.
52182
52183 2008-01-11  Bruno Haible  <bruno@clisp.org>
52184
52185         * doc/functions/memmem.texi: Add more precisions about platforms.
52186         * doc/functions/strstr.texi: Likewise.
52187
52188 2008-01-10  Eric Blake  <ebb9@byu.net>
52189
52190         * m4/strstr.m4: Delete cruft from copy-n-paste.
52191         Reported by Bruno Haible.
52192
52193 2008-01-10  Bruno Haible  <bruno@clisp.org>
52194
52195         Make c-strstr rely on strstr.
52196         * lib/c-strstr.c: Don't include str-kmp.h.
52197         (c_strstr): Define in terms of strstr.
52198         * modules/c-strstr (Files): Remove lib/str-kmp.h.
52199         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
52200
52201 2008-01-10  Bruno Haible  <bruno@clisp.org>
52202
52203         * doc/gnulib.texi (String Functions in C Locale): New section.
52204         * doc/c-ctype.texi: New file.
52205         * doc/c-strcase.texi: New file.
52206         * doc/c-strcaseeq.texi: New file.
52207         * doc/c-strcasestr.texi: New file.
52208         * doc/c-strstr.texi: New file.
52209         * doc/c-strtod.texi: New file.
52210         * doc/c-strtold.texi: New file.
52211
52212 2008-01-10  Eric Blake  <ebb9@byu.net>
52213
52214         * lib/relocatable.h: Fix a comment.
52215
52216 2008-01-10  Eric Blake  <ebb9@byu.net>
52217
52218         Share two-way algorithm.
52219         * lib/str-two-way.h: New file, merged from...
52220         * lib/memmem.c: ...here...
52221         * lib/strstr.c: ...and here.
52222         * modules/memmem (Files): Use it.
52223         * modules/strstr (Files): Likewise.
52224
52225         Avoid quadratic strstr implementations.
52226         * lib/strstr.c: New file.
52227         * m4/strstr.m4: Likewise.
52228         * modules/strstr: Likewise.
52229         * modules/strstr-tests: Likewise.
52230         * tests/test-strstr.c: Likewise.
52231         * lib/string.in.h (rpl_strstr): Declare.
52232         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
52233         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
52234         * modules/string (Makefile.am): Likewise.
52235         * MODULES.html.sh (string handling): Mention new module.
52236         * doc/functions/strstr.texi (strstr): Document the bug.
52237
52238 2008-01-10  Bruno Haible  <bruno@clisp.org>
52239
52240         * lib/relocatable.h (relocate): State whether result is freshly
52241         allocated or not.
52242         * lib/relocatable.c (relocate): Return a freshly allocated string
52243         instead of a pointer to a privately held string.
52244         Reported by Sylvain Beucler <beuc@gnu.org>.
52245
52246 2008-01-10  Colin Watson  <cjwatson@debian.org>
52247
52248         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
52249         s/S_ISNLK/S_ISLNK/.
52250
52251 2008-01-09  Bruno Haible  <bruno@clisp.org>
52252
52253         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
52254         and other files.
52255         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
52256         if it's only a guess.
52257         * modules/memmem: Simplify by depending on memmem-simple.
52258
52259 2008-01-09  Bruno Haible  <bruno@clisp.org>
52260
52261         Work around OpenBSD 4.0 tdelete() bug.
52262         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
52263         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
52264         macros and don't redefine the enum values.
52265         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
52266         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
52267         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
52268
52269 2008-01-09  Bruno Haible  <bruno@clisp.org>
52270
52271         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
52272         (main): Don't perform the tests if setlocale did not install a UTF-8
52273         locale. Needed on OpenBSD 4.0.
52274         * modules/wcwidth-tests (Depends-on): Add localcharset.
52275
52276 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
52277
52278         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
52279         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
52280         * NEWS: announce this.
52281         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
52282
52283 2008-01-09  Simon Josefsson  <simon@josefsson.org>
52284         and Eric Blake  <ebb9@byu.net>
52285
52286         Add memmem-simple module.
52287         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
52288         (gl_FUNC_MEMMEM): Separate performance from presence checks.
52289         * modules/memmem-simple: New file.
52290         * modules/memmem (Description): Tweak.
52291         * MODULES.html.sh (string handling): Mention new module.
52292         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
52293         addressed by memmem-simple.
52294         * NEWS: Document the difference.
52295
52296 2008-01-09  Eric Blake  <ebb9@byu.net>
52297
52298         Give gcc some memmem optimization hints.
52299         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
52300         (strcasestr): Declare as pure.
52301         * modules/memmem (Maintainer): Claim my implementation.
52302
52303 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52304
52305         Support AIX 6.1 and higher.
52306         * build-aux/config.libpath: Likewise.
52307         * build-aux/config.rpath: Likewise.
52308
52309 2008-01-08  Jim Meyering  <meyering@redhat.com>
52310             Bruno Haible  <bruno@clisp.org>
52311
52312         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
52313         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
52314         Reported by Peter Fales in
52315         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
52316
52317 2008-01-08  Bruno Haible  <bruno@clisp.org>
52318
52319         * modules/unictype/category-of (Depends-on): Add
52320         unictype/category-none.
52321         * modules/unictype/category-and-tests (Depends-on): Add
52322         unictype/category-{L,N,Lu,Nd}.
52323         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
52324         * modules/unictype/category-or-tests (Depends-on): Add
52325         unictype/category-{L,N}.
52326         * modules/unictype/category-name-tests (Depends-on): Add
52327         unictype/category-{Z,Nl}.
52328         Reported by Simon Josefsson.
52329
52330 2008-01-08  Bruno Haible  <bruno@clisp.org>
52331
52332         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
52333         convention better.
52334         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
52335         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
52336         Reported by Peter Miller <millerp@canb.auug.org.au>.
52337
52338 2008-01-08  Eric Blake  <ebb9@byu.net>
52339
52340         Rewrite memmem to guarantee linear complexity without malloc.
52341         * lib/memmem.c (memmem): Use Two-Way rather than
52342         Knuth-Morris-Pratt, to allow O(1) space usage.
52343         (critical_factorization, two_way_short_needle)
52344         (two_way_long_needle): New functions.
52345         (knuth_morris_pratt): Delete.
52346         * modules/memmem (Depends-on): No longer need malloca or stdbool.
52347         Add stdint.
52348         * tests/test-memmem.c (main): Add tests for periodic needle and
52349         sublinear performance.
52350         * doc/functions/memmem.texi (memmem): Document other deficiencies
52351         in cygwin and older glibc.
52352
52353 2008-01-08  Bruno Haible  <bruno@clisp.org>
52354
52355         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
52356         augmentation.
52357
52358 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
52359
52360         Add a configure time option: --disable-acl.
52361         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
52362         AC_ARG_ENABLE(acl).
52363
52364 2008-01-06  Simon Josefsson  <simon@josefsson.org>
52365
52366         * tests/test-localename.c: Don't include obsolete "setenv.h".
52367
52368         * modules/localename-tests (Depends-on): Need unsetenv.
52369
52370 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52371
52372         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
52373
52374 2008-01-06  Colin Watson  <cjwatson@debian.org>
52375
52376         * users.txt: Add man-db.
52377
52378 2008-01-07  Bruno Haible  <bruno@clisp.org>
52379
52380         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
52381         previous section name.
52382
52383 2008-01-07  Bruno Haible  <bruno@clisp.org>
52384
52385         * lib/progname.c (set_program_name): Don't strip off a leading
52386         "lt-" prefix outside a .libs directory.
52387         Suggested by Paul Eggert.
52388
52389 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
52390             Bruno Haible  <bruno@clisp.org>
52391
52392         Improve memory cleanup in 'relocatable' module.
52393         * lib/relocatable.h (compute_curr_prefix): Change return type to
52394         'char *'.
52395         * lib/relocatable.c (compute_curr_prefix): Change return type to
52396         'char *'. Free curr_installdir after use.
52397         (relocate): Free curr_prefix_better after use.
52398         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
52399
52400 2008-01-01  Bruno Haible  <bruno@clisp.org>
52401
52402         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
52403         failure on older glibc systems.
52404         Reported by Peter Fales <psfales@alcatel-lucent.com>.
52405
52406 2008-01-05  Eric Blake  <ebb9@byu.net>
52407
52408         Avoid quadratic system memmem.
52409         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
52410         Reported by Ralf Wildenhues.
52411
52412         Fix memmem test for mingw.
52413         * modules/memmem-tests (configure.ac): Check for alarm.
52414         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
52415         it.
52416         * doc/functions/memmem.texi: New file.
52417         * doc/gnulib.texi (Function Substitutes): Add memmem.
52418         Reported by Bruno Haible.
52419
52420 2008-01-04  Bruno Haible  <bruno@clisp.org>
52421
52422         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
52423         Require gl_HEADER_STRINGS_H_DEFAULTS, not
52424         gl_HEADER_STRING_H_DEFAULTS.
52425
52426 2008-01-04  Eric Blake  <ebb9@byu.net>
52427
52428         Shorten duration of memmem test.
52429         * tests/test-memmem.c (main): Use alarm to declare failure if test
52430         is taking too long.
52431         Reported by Ralf Wildenhues.
52432
52433 2007-12-21  Simon Josefsson  <simon@josefsson.org>
52434
52435         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
52436         string, needed by strerror.
52437
52438 2008-01-03  Colin Watson  <cjwatson@debian.org>
52439             Bruno Haible  <bruno@clisp.org>
52440
52441         * doc/gnulib-tool.texi (Localization): New section.
52442
52443 2008-01-02  Bruno Haible  <bruno@clisp.org>
52444
52445         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
52446         variables to 'unsigned char *' type.
52447         Reported by Paul Eggert.
52448
52449 2008-01-02  Jim Meyering  <jim@meyering.net>
52450
52451         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
52452
52453 2007-12-31  Jim Meyering  <jim@meyering.net>
52454
52455         Avoid use of private FTS type name.
52456         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
52457
52458 2007-12-30  Karl Berry  <karl@gnu.org>
52459
52460         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
52461         work around defect in Texinfo and/or the standalone Info browser.
52462
52463 2007-12-30  Bruno Haible  <bruno@clisp.org>
52464
52465         Unify 5 copies of the KMP code.
52466         * lib/str-kmp.h: New file.
52467         * lib/c-strcasestr.c: Include str-kmp.h.
52468         (knuth_morris_pratt): Remove function.
52469         (c_strcasestr): Update.
52470         * lib/c-strstr.c: Include str-kmp.h.
52471         (knuth_morris_pratt): Remove function.
52472         (c_strcasestr): Update.
52473         * lib/mbscasestr.c: Include str-kmp.h.
52474         (knuth_morris_pratt_unibyte): Remove function.
52475         * lib/mbsstr.c: Include str-kmp.h.
52476         (knuth_morris_pratt_unibyte): Remove function.
52477         * lib/strcasestr.c: Include str-kmp.h.
52478         (knuth_morris_pratt): Remove function.
52479         (strcasestr): Update.
52480         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
52481         * modules/c-strstr (Files): Likewise.
52482         * modules/mbscasestr (Files): Likewise.
52483         * modules/mbsstr (Files): Likewise.
52484         * modules/strcasestr (Files): Likewise.
52485         Suggested by Paul Eggert.
52486
52487 2007-12-30  Bruno Haible  <bruno@clisp.org>
52488
52489         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
52490         defined.
52491
52492 2007-12-30  Bruno Haible  <bruno@clisp.org>
52493
52494         * lib/xmalloca.h: Include xalloc.h.
52495         (xnmalloca): New macro.
52496
52497 2007-12-30  Bruno Haible  <bruno@clisp.org>
52498
52499         * lib/malloca.h (nmalloca): New macro.
52500         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
52501         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
52502         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
52503         knuth_morris_pratt_multibyte): Likewise.
52504         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
52505         knuth_morris_pratt_multibyte): Likewise.
52506         * lib/memmem.c (knuth_morris_pratt): Likewise.
52507         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
52508
52509 2007-12-25  Bruno Haible  <bruno@clisp.org>
52510
52511         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
52512         * lib/glob.c: Don't include openat.h.
52513         (link_exists2_p): Add back the code that deals with the
52514         !GLOB_ALTDIRFUNC case.
52515         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
52516         let it do the filename concatenation.
52517         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
52518         * modules/glob (Depends-on): Remove openat.
52519
52520 2007-12-31  Bruno Haible  <bruno@clisp.org>
52521
52522         * modules/dirfd (License): Change to LGPLv2+.
52523         Approved by Jim Meyering.
52524
52525 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
52526
52527         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
52528         when multiplying M by sizeof (size_t).
52529
52530 2007-12-10  Martin Lambers  <marlam@marlam.de>
52531
52532         Override getpagesize on mingw.
52533         * lib/getpagesize.c: New file.
52534         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
52535         * modules/getpagesize (Files): Add lib/getpagesize.c.
52536         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
52537         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
52538         REPLACE_GETPAGESIZE.
52539         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
52540
52541 2007-12-25  Bruno Haible  <bruno@clisp.org>
52542
52543         * modules/localcharset (Notice): New field.
52544         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
52545         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
52546
52547 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
52548             Bruno Haible  <bruno@clisp.org>
52549
52550         Avoid using the syntax symbol() in formatted documentation.
52551         * MODULES.html.sh (func_module): When replacing symbol() with a
52552         hyperlink, remove the parentheses. Show an error if some remain.
52553         Recognize and render the '...' syntax.
52554         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
52555         Rework. Add paragraph about GCC's inlining.
52556         * doc/alloca.texi: Likewise.
52557         * doc/error.texi: Remove parentheses from symbol reference.
52558         * doc/gnulib-intro.texi: Likewise.
52559         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
52560         * modules/fnmatch (Description): Reword to say "the ... function".
52561         * modules/full-read (Description): Likewise.
52562         * modules/full-write (Description): Likewise.
52563         * modules/safe-read (Description): Likewise.
52564         * modules/safe-write (Description): Likewise.
52565         * modules/strchrnul (Description): Likewise.
52566         * modules/trim (Description): Likewise.
52567         * modules/error (Description): Remove parentheses from symbol
52568         references.
52569         * modules/verror (Description): Likewise.
52570         Reported by Karl Berry.
52571
52572 2007-12-25  Bruno Haible  <bruno@clisp.org>
52573
52574         Fixup after 2007-10-16 commit.
52575         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
52576
52577 2007-12-24  Bruno Haible  <bruno@clisp.org>
52578
52579         Make --enable-relocatable work with DESTDIR.
52580         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
52581         to compute installdir from destprog.
52582         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
52583         also set the RELOC_DESTDIR variable.
52584         Reported by Левашев Иван <octagram@bluebottle.com>.
52585
52586 2007-12-24  Bruno Haible  <bruno@clisp.org>
52587
52588         Fix link error due to xalloc_die().
52589         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
52590         of xreadlink.
52591         * lib/relocwrapper.c: Update comments.
52592         * build-aux/install-reloc: Remove xreadlink.c from file list.
52593         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
52594         xreadlink.c.
52595         Reported by Левашев Иван <octagram@bluebottle.com>.
52596
52597 2007-12-24  Bruno Haible  <bruno@clisp.org>
52598
52599         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
52600         * lib/setenv.h: Remove file.
52601         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
52602         lib/setenv.h.
52603         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
52604         (Depends-on): Add stdlib.
52605         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
52606         gl_FUNC_UNSETENV.
52607         (Include): Replace setenv.h with <stdlib.h>.
52608         * modules/unsetenv: New file.
52609         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
52610         * lib/unsetenv.c: Include <stdlib.h> first.
52611         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
52612         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
52613         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
52614         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
52615         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
52616         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
52617         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
52618         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
52619         * doc/functions/unsetenv.texi: Update.
52620         * modules/xsetenv (Depends-on): Add unsetenv.
52621         * modules/getdate (Depends-on): Likewise.
52622         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
52623         * lib/xsetenv.c: Don't include setenv.h.
52624         * lib/getdate.y: Likewise.
52625         * lib/relocwrapper.c: Likewise.
52626         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
52627         (Depends-on): Add stdlib.
52628         * NEWS: Mention the changes.
52629         Reported by Левашев Иван <octagram@bluebottle.com>.
52630
52631 2007-12-23  Bruno Haible  <bruno@clisp.org>
52632
52633         * lib/memmem.c (memmem): Use lowercase variable names. Tab
52634         indentation.
52635
52636 2007-12-23  Bruno Haible  <bruno@clisp.org>
52637
52638         * lib/c-strcasestr.c: Add more comments.
52639         * lib/c-strstr.c: Likewise.
52640         * lib/mbscasestr.c: Likewise.
52641         * lib/mbsstr.c: Likewise.
52642         * lib/strcasestr.c: Likewise.
52643         * lib/memmem.c: Likewise.
52644
52645 2007-12-23  Bruno Haible  <bruno@clisp.org>
52646
52647         * tests/test-memmem.c: Include <string.h> first.
52648
52649 2007-12-22  Bruno Haible  <bruno@clisp.org>
52650
52651         * gnulib-tool (func_create_testdir): Change $auxdir while generating
52652         the contents of $testsbase.
52653         Reported by Ralf Wildenhues.
52654
52655 2007-12-22  Bruno Haible  <bruno@clisp.org>
52656
52657         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
52658         two variables local_ldadd_before, local_ldadd_last.
52659
52660 2007-12-20  Eric Blake  <ebb9@byu.net>
52661
52662         Work around circular library issue when cross-compiling.
52663         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
52664         that progname.o does not need to pull in rpl_memcmp.
52665
52666 2007-12-19  Eric Blake  <ebb9@byu.net>
52667
52668         Fix memmem to avoid O(n^2) worst-case complexity.
52669         * lib/memmem.c (knuth_morris_pratt): New function.
52670         (memmem): Use it if first few naive iterations fail.
52671         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
52672         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
52673         * modules/memchr (License): Likewise.
52674         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
52675         malloca.
52676         * tests/test-memmem.c: Rewrite, borrowing ideas from
52677         test-mbsstr1.c; the old version wouldn't even compile!
52678         * modules/memmem-tests: New file.
52679         * lib/string.in.h (rpl_memmem): Add declaration.
52680         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
52681         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
52682         REPLACE_MEMMEM.
52683
52684 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
52685
52686         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
52687         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
52688         before any system include files, and undef after them all.  This
52689         should fix a problem on VMS reported by John E. Malmberg in
52690         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
52691
52692 2007-12-17  Eric Blake  <ebb9@byu.net>
52693
52694         Revert addition of verify, for BSD/OS.
52695         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
52696         can't handle large files, for the sake of obsolete platforms.
52697         * modules/fseeko (Depends-on): Remove verify.
52698         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
52699         * doc/functions/ftello.texi (ftello): Likewise.
52700         * doc/functions/fgetpos.texi (fgetpos): Likewise.
52701         Reported by Larry Jones.
52702
52703 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
52704
52705         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
52706         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
52707
52708 2007-12-17  Jim Meyering  <meyering@redhat.com>
52709
52710         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
52711         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
52712         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
52713         * modules/getcwd (Depends-on): Add openat.
52714         Reported by Petr Salinger.
52715
52716 2007-12-17  Bruno Haible  <bruno@clisp.org>
52717
52718         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
52719         avoid a segmentation fault of the configure test on x86_64 systems.
52720
52721 2007-12-15  Jim Meyering  <meyering@redhat.com>
52722
52723         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
52724
52725 2007-12-13  Eric Blake  <ebb9@byu.net>
52726
52727         Another fseek test.
52728         * tests/test-fseek.c (main): Also test ungetc handling.
52729         * tests/test-fseeko.c (main): Likewise.
52730         * modules/fseeko (Depends-on): Add verify.
52731         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
52732         large.
52733         Reported by Larry Jones.
52734
52735         Fix fseeko on mingw.
52736         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
52737         seek.
52738
52739         Beef up fseek tests.
52740         * tests/test-fseek.c (main): Also test eof handling.
52741         * tests/test-fseeko.c (main): Likewise.
52742         Reported by Larry Jones.
52743
52744 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
52745
52746         Fix fseeko on BSD-based platforms.
52747         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
52748         successful seek.
52749
52750 2007-12-12  Eric Blake  <ebb9@byu.net>
52751
52752         Allow circular dependency of separate libtests.a
52753         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
52754         when use_libtests.
52755
52756 2007-12-11  Eric Blake  <ebb9@byu.net>
52757
52758         Fix bug with -0.0L in previous patch.
52759         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
52760         * tests/test-isnan.c (main): Also test on zeroes.
52761         * tests/test-isnanf.c (main): Likewise.
52762         * tests/test-isnanl.h (main): Likewise.
52763
52764         Detect pseudo-denormals on x86 even when cross-compiling.
52765         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
52766         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
52767         invalid bit patterns that happen to satisfy ==.
52768
52769         Avoid link failures with separate libtests.a.
52770         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
52771         last, to satisfy circular dependencies.
52772
52773 2007-12-11  Eric Blake  <ebb9@byu.net>
52774         and Bruno Haible  <bruno@clisp.org>
52775
52776         Fix OpenBSD 4.0 <float.h> handling of long double.
52777         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
52778         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
52779         * doc/headers/float.texi (float.h): Document OpenBSD bug.
52780
52781 2007-12-11  Jim Meyering  <meyering@redhat.com>
52782
52783         * users.txt: Add libvirt.
52784
52785         Support versions of autoconf prior to 2.59c.
52786         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
52787         if it is not already defined.
52788
52789 2007-12-09  Bruno Haible  <bruno@clisp.org>
52790
52791         Let 'gnulib-tool --import' collect sources needed for the tests in
52792         tests/ rather than in lib/.
52793         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
52794         argument. If true, add rules to generate libtests.a, and put libtests.a
52795         into $(LDADD). Consider source files in subdirectories and set
52796         uses_subdirs.
52797         (func_emit_initmacro_start, func_emit_initmacro_end,
52798         func_emit_initmacro_done): Pass all arguments explicitly.
52799         (func_import): Determine two module lists main_modules,
52800         testsrelated_modules. Determine use_libtests. Determine two variables
52801         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
52802         instead of just sed_transform_lib_file. Determine two variables
52803         main_files and testsrelated_files. Compute 'files' as the union of
52804         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
52805         func_add_or_update. In the generated gnulib-comp.m4, collect the
52806         object files for tests/ in different variables than those for lib/.
52807         Substitute LIBTESTS_LIBDEPS.
52808         (func_create_testdir): Combine the uses_subdirs results from
52809         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
52810
52811 2007-12-09  Bruno Haible  <bruno@clisp.org>
52812
52813         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
52814         the build-aux directory.
52815
52816 2007-12-09  Bruno Haible  <bruno@clisp.org>
52817
52818         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
52819         introduced on 2006-09-09.
52820
52821 2007-12-07  Jim Meyering  <meyering@redhat.com>
52822
52823         Let these macros work also with autoconf-2.59.
52824         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
52825         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
52826         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
52827
52828 2007-12-06  Jim Meyering  <meyering@redhat.com>
52829
52830         Avoid a configure-time syntax error in gl_FUNC_ACL.
52831         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
52832         function in each branch, before testing the cache variable.
52833
52834 2007-12-04  Eric Blake  <ebb9@byu.net>
52835
52836         Make scripts executable.
52837         * build-aux/config.guess: Add execute permissions.
52838         * build-aux/config.sub: Likewise.
52839         * build-aux/gendocs.sh: Likewise.
52840
52841         Fix frexp on mingw.
52842         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
52843         cross-compiling.
52844         * doc/functions/frexp.texi (frexp): Document the bug.
52845
52846         Make cygwin fseeko check more reliable.
52847         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
52848         version numbers, rather than unrelated feature check.
52849         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
52850         * doc/functions/ftello.texi (ftello): Likewise.
52851         Reported by Bruno Haible.
52852
52853         * m4/strerror.m4: Bump version number.
52854
52855 2007-12-03  Bruno Haible  <bruno@clisp.org>
52856
52857         * doc/functions/mprotect.texi: Mention the mingw problem.
52858
52859 2007-12-03  Eric Blake  <ebb9@byu.net>
52860
52861         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
52862         REPLACE_STRERROR is initialized before this macro.
52863
52864 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
52865
52866         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
52867         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
52868         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
52869         put -lsec in even for programs other than 'ls'.  This fixes a problem
52870         for gettext reported by Bruno Haible in
52871         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
52872         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
52873         Add support for Solaris 10.  This isn't efficient, but should get the
52874         job done for now.
52875
52876 2007-12-03  James Youngman  <jay@gnu.org>
52877
52878         * doc/regexprops-generic.texi: change "an close-group" to "a
52879         close-group" and "illegal" to "not allowed".
52880
52881 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52882
52883         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
52884         pr_byname.h. Needed for the rare case when the maintainer has done
52885         "make maintainer-clean" in the source directory and then attempts a
52886         build outside the source directory.
52887         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
52888         scripts_byname.h.
52889
52890 2007-12-02  Martin Lambers <marlam@marlam.de>
52891             Bruno Haible  <bruno@clisp.org>
52892
52893         * lib/getpagesize.h: Remove file.
52894         * lib/unistd.in.h: Include declaration of getpagesize here.
52895         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
52896         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
52897         HAVE_SYS_PARAM_H.
52898         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
52899         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
52900         * modules/getpagesize (Files): Remove lib/getpagesize.h.
52901         (Depends-on): Add unistd.
52902         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
52903         (Include): Use <unistd.h> instead of getpagesize.h.
52904         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
52905         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
52906         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
52907         gl_GETPAGESIZE invocation, already handled by module dependency.
52908         * lib/pagealign_alloc.c: Don't include getpagesize.h.
52909
52910 2007-12-02  Bruno Haible  <bruno@clisp.org>
52911
52912         * modules/strings-tests: New file.
52913         * tests/test-strings.c: New file.
52914
52915         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
52916         * lib/strings.in.h: New file.
52917         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
52918         * m4/strings_h.m4: New file.
52919         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
52920         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
52921         * modules/strings: New file.
52922         * modules/string (Makefile.am): Update.
52923         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
52924         Reported by Karl Berry.
52925
52926 2007-12-01  Eric Blake  <ebb9@byu.net>
52927
52928         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
52929         accomodate fix in cygwin 1.5.25.
52930
52931 2007-12-01  Jim Meyering  <meyering@redhat.com>
52932
52933         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
52934         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
52935         that would inhibit utf8-optimization of a regexp containing line-
52936         or buffer-anchors, e.g., `^', `$'.
52937
52938 2007-11-30  Bruno Haible  <bruno@clisp.org>
52939
52940         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
52941         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
52942         glthread_recursive_lock_init.
52943         * lib/lock.c (glthread_recursive_lock_init)
52944         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
52945         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
52946
52947 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
52948
52949         New function qset_acl, like set_acl but with syscall semantics.
52950         * lib/acl.h (qset_acl): New decl.
52951         * lib/acl.c (qset_acl): New function.
52952         (set_acl): Use new function.  Use more-consistent diagnostics.
52953
52954 2007-11-28  Jim Meyering  <meyering@redhat.com>
52955
52956         * modules/physmem (License): Change from GPL to LGPLv2+.
52957
52958 2007-11-26  Bruno Haible  <bruno@clisp.org>
52959
52960         * lib/vasnprintf.c (decode_long_double): Don't abort if the
52961         'long double' type has excess precision.
52962         Reported by Jim Meyering in
52963         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
52964
52965 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52966
52967         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
52968         Sync from <http://gnu.org/licenses>.
52969         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
52970         with license text from same location.
52971         * doc/maintain.texi, doc/standards.texi:  Sync from
52972         <http://savannah.gnu.org/projects/gnustandards>.
52973
52974 2007-11-22  Ondřej Vašík  <ovasik@redhat.com>
52975         and Jim Meyering  <meyering@redhat.com>
52976
52977         Adjust getdate' grammar to accept a slightly more regular language.
52978         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
52979         Before, the former was rejected.
52980         * lib/getdate.y (digits_to_date_time): New function, factored
52981         out of ...
52982         (number): ...here.  Just call digits_to_date_time.
52983         (hybrid): New non-terminal to handle an <unsigned number,
52984         signed relative offset> sequence consistently.
52985
52986 2007-11-18  Jim Meyering  <meyering@redhat.com>
52987
52988         Pull my changes from coreutils:
52989         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
52990         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
52991         use of $gnulib_tool_option_extras, so that it's separated from the
52992         preceding argument.
52993
52994         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
52995         * build-aux/bootstrap (cp_mark_as_generated): Create any required
52996         parent destination directories before copying a file into place.
52997
52998 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
52999
53000         bootstrap: work also with 4-argument variant of AC_INIT
53001         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
53002
53003 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
53004
53005         Port test-getaddrinfo to Solaris.
53006         Problem reported by Bruno Haible in
53007         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
53008         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
53009         explanation of setting 'hints'.
53010         Don't reject an implementation merely because it returns EAI_SERVICE.
53011         (EAI_SERVICE): Define to 0 if not defined.
53012
53013 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
53014
53015         The license of gnu-make and posix-shell is now "GPLed build tool".
53016         * modules/gnu-make (License): Likewise.
53017         * modules/posix-shell (License): Likewise.
53018
53019         New module posix-shell, for determining a POSIX shell
53020         or perhaps something that is close enough to a POSIX shell.
53021         * m4/posix-shell.m4: New file.
53022         * modules/posix-shell: New file.
53023
53024         * MODULES.html.sh: Mention new module.
53025
53026         New module gnu-make, for determining whether we're using GNU Make.
53027         * m4/gnu-make.m4: New file.
53028         * modules/gnu-make: New file.
53029         * MODULES.html.sh: Mention new module.
53030
53031 2007-11-14  Jim Meyering  <meyering@redhat.com>
53032
53033         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
53034         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
53035         use this macro to create a function _definition_.
53036         Remove useless "#undef ARGMATCH_DIE".
53037
53038 2007-11-14  Bruno Haible  <bruno@clisp.org>
53039
53040         * lib/config.charset: Update for OpenBSD 4.1.
53041         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
53042
53043 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
53044
53045         Document 64-bit #if problems in stdint.texi.
53046         * doc/headers/stdint.texi (stdint.h): Mention problems with
53047         64-bit-#if, and how to work around them.
53048
53049         Don't insist on 'long long int' support in the preprocessor.  It
53050         breaks too many things.  For example, PRIdMAX still uses a 'long
53051         long int' format with the latest Sun compiler, even though
53052         HAVE_LONG_LONG_INT isn't defined due to that compiler's
53053         preprocessor problem.  This causes the latest coreutils to dump
53054         core on Solaris 10 sparc with the Sun C compiler.
53055         Instead, fix the 2007-10-16 problem in a different way, by evaluating
53056         the troublesome expressions at configure-time, not at #if-time.
53057         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
53058         preprocessor.
53059         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
53060         compile-time C checks, done at 'configure'-time.
53061         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
53062         * modules/inttypes (Makefile): Substitute the new symbols that
53063         gl_INTTYPES_H now generates.
53064         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
53065
53066 2007-11-12  Bruno Haible  <bruno@clisp.org>
53067
53068         Tests for Unicode character classification functions.
53069
53070         * modules/unictype/bidicategory-byname-tests: New file.
53071         * modules/unictype/bidicategory-name-tests: New file.
53072         * modules/unictype/bidicategory-of-tests: New file.
53073         * modules/unictype/bidicategory-test-tests: New file.
53074         * modules/unictype/block-list-tests: New file.
53075         * modules/unictype/block-of-tests: New file.
53076         * modules/unictype/block-test-tests: New file.
53077         * modules/unictype/category-C-tests: New file.
53078         * modules/unictype/category-Cc-tests: New file.
53079         * modules/unictype/category-Cf-tests: New file.
53080         * modules/unictype/category-Cn-tests: New file.
53081         * modules/unictype/category-Co-tests: New file.
53082         * modules/unictype/category-Cs-tests: New file.
53083         * modules/unictype/category-L-tests: New file.
53084         * modules/unictype/category-Ll-tests: New file.
53085         * modules/unictype/category-Lm-tests: New file.
53086         * modules/unictype/category-Lo-tests: New file.
53087         * modules/unictype/category-Lt-tests: New file.
53088         * modules/unictype/category-Lu-tests: New file.
53089         * modules/unictype/category-M-tests: New file.
53090         * modules/unictype/category-Mc-tests: New file.
53091         * modules/unictype/category-Me-tests: New file.
53092         * modules/unictype/category-Mn-tests: New file.
53093         * modules/unictype/category-N-tests: New file.
53094         * modules/unictype/category-Nd-tests: New file.
53095         * modules/unictype/category-Nl-tests: New file.
53096         * modules/unictype/category-No-tests: New file.
53097         * modules/unictype/category-P-tests: New file.
53098         * modules/unictype/category-Pc-tests: New file.
53099         * modules/unictype/category-Pd-tests: New file.
53100         * modules/unictype/category-Pe-tests: New file.
53101         * modules/unictype/category-Pf-tests: New file.
53102         * modules/unictype/category-Pi-tests: New file.
53103         * modules/unictype/category-Po-tests: New file.
53104         * modules/unictype/category-Ps-tests: New file.
53105         * modules/unictype/category-S-tests: New file.
53106         * modules/unictype/category-Sc-tests: New file.
53107         * modules/unictype/category-Sk-tests: New file.
53108         * modules/unictype/category-Sm-tests: New file.
53109         * modules/unictype/category-So-tests: New file.
53110         * modules/unictype/category-Z-tests: New file.
53111         * modules/unictype/category-Zl-tests: New file.
53112         * modules/unictype/category-Zp-tests: New file.
53113         * modules/unictype/category-Zs-tests: New file.
53114         * modules/unictype/category-and-not-tests: New file.
53115         * modules/unictype/category-and-tests: New file.
53116         * modules/unictype/category-byname-tests: New file.
53117         * modules/unictype/category-name-tests: New file.
53118         * modules/unictype/category-none-tests: New file.
53119         * modules/unictype/category-of-tests: New file.
53120         * modules/unictype/category-or-tests: New file.
53121         * modules/unictype/category-test-withtable-tests: New file.
53122         * modules/unictype/combining-class-tests: New file.
53123         * modules/unictype/ctype-alnum-tests: New file.
53124         * modules/unictype/ctype-alpha-tests: New file.
53125         * modules/unictype/ctype-blank-tests: New file.
53126         * modules/unictype/ctype-cntrl-tests: New file.
53127         * modules/unictype/ctype-digit-tests: New file.
53128         * modules/unictype/ctype-graph-tests: New file.
53129         * modules/unictype/ctype-lower-tests: New file.
53130         * modules/unictype/ctype-print-tests: New file.
53131         * modules/unictype/ctype-punct-tests: New file.
53132         * modules/unictype/ctype-space-tests: New file.
53133         * modules/unictype/ctype-upper-tests: New file.
53134         * modules/unictype/ctype-xdigit-tests: New file.
53135         * modules/unictype/decimal-digit-tests: New file.
53136         * modules/unictype/digit-tests: New file.
53137         * modules/unictype/mirror-tests: New file.
53138         * modules/unictype/numeric-tests: New file.
53139         * modules/unictype/property-alphabetic-tests: New file.
53140         * modules/unictype/property-ascii-hex-digit-tests: New file.
53141         * modules/unictype/property-bidi-arabic-digit-tests: New file.
53142         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
53143         * modules/unictype/property-bidi-block-separator-tests: New file.
53144         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
53145         * modules/unictype/property-bidi-common-separator-tests: New file.
53146         * modules/unictype/property-bidi-control-tests: New file.
53147         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
53148         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
53149         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
53150         * modules/unictype/property-bidi-european-digit-tests: New file.
53151         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
53152         * modules/unictype/property-bidi-left-to-right-tests: New file.
53153         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
53154         * modules/unictype/property-bidi-other-neutral-tests: New file.
53155         * modules/unictype/property-bidi-pdf-tests: New file.
53156         * modules/unictype/property-bidi-segment-separator-tests: New file.
53157         * modules/unictype/property-bidi-whitespace-tests: New file.
53158         * modules/unictype/property-byname-tests: New file.
53159         * modules/unictype/property-combining-tests: New file.
53160         * modules/unictype/property-composite-tests: New file.
53161         * modules/unictype/property-currency-symbol-tests: New file.
53162         * modules/unictype/property-dash-tests: New file.
53163         * modules/unictype/property-decimal-digit-tests: New file.
53164         * modules/unictype/property-default-ignorable-code-point-tests: New file.
53165         * modules/unictype/property-deprecated-tests: New file.
53166         * modules/unictype/property-diacritic-tests: New file.
53167         * modules/unictype/property-extender-tests: New file.
53168         * modules/unictype/property-format-control-tests: New file.
53169         * modules/unictype/property-grapheme-base-tests: New file.
53170         * modules/unictype/property-grapheme-extend-tests: New file.
53171         * modules/unictype/property-grapheme-link-tests: New file.
53172         * modules/unictype/property-hex-digit-tests: New file.
53173         * modules/unictype/property-hyphen-tests: New file.
53174         * modules/unictype/property-id-continue-tests: New file.
53175         * modules/unictype/property-id-start-tests: New file.
53176         * modules/unictype/property-ideographic-tests: New file.
53177         * modules/unictype/property-ids-binary-operator-tests: New file.
53178         * modules/unictype/property-ids-trinary-operator-tests: New file.
53179         * modules/unictype/property-ignorable-control-tests: New file.
53180         * modules/unictype/property-iso-control-tests: New file.
53181         * modules/unictype/property-join-control-tests: New file.
53182         * modules/unictype/property-left-of-pair-tests: New file.
53183         * modules/unictype/property-line-separator-tests: New file.
53184         * modules/unictype/property-logical-order-exception-tests: New file.
53185         * modules/unictype/property-lowercase-tests: New file.
53186         * modules/unictype/property-math-tests: New file.
53187         * modules/unictype/property-non-break-tests: New file.
53188         * modules/unictype/property-not-a-character-tests: New file.
53189         * modules/unictype/property-numeric-tests: New file.
53190         * modules/unictype/property-other-alphabetic-tests: New file.
53191         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
53192         * modules/unictype/property-other-grapheme-extend-tests: New file.
53193         * modules/unictype/property-other-id-continue-tests: New file.
53194         * modules/unictype/property-other-id-start-tests: New file.
53195         * modules/unictype/property-other-lowercase-tests: New file.
53196         * modules/unictype/property-other-math-tests: New file.
53197         * modules/unictype/property-other-uppercase-tests: New file.
53198         * modules/unictype/property-paired-punctuation-tests: New file.
53199         * modules/unictype/property-paragraph-separator-tests: New file.
53200         * modules/unictype/property-pattern-syntax-tests: New file.
53201         * modules/unictype/property-pattern-white-space-tests: New file.
53202         * modules/unictype/property-private-use-tests: New file.
53203         * modules/unictype/property-punctuation-tests: New file.
53204         * modules/unictype/property-quotation-mark-tests: New file.
53205         * modules/unictype/property-radical-tests: New file.
53206         * modules/unictype/property-sentence-terminal-tests: New file.
53207         * modules/unictype/property-soft-dotted-tests: New file.
53208         * modules/unictype/property-space-tests: New file.
53209         * modules/unictype/property-terminal-punctuation-tests: New file.
53210         * modules/unictype/property-test-tests: New file.
53211         * modules/unictype/property-titlecase-tests: New file.
53212         * modules/unictype/property-unassigned-code-value-tests: New file.
53213         * modules/unictype/property-unified-ideograph-tests: New file.
53214         * modules/unictype/property-uppercase-tests: New file.
53215         * modules/unictype/property-variation-selector-tests: New file.
53216         * modules/unictype/property-white-space-tests: New file.
53217         * modules/unictype/property-xid-continue-tests: New file.
53218         * modules/unictype/property-xid-start-tests: New file.
53219         * modules/unictype/property-zero-width-tests: New file.
53220         * modules/unictype/scripts-tests: New file.
53221         * modules/unictype/syntax-c-ident-tests: New file.
53222         * modules/unictype/syntax-c-whitespace-tests: New file.
53223         * modules/unictype/syntax-java-ident-tests: New file.
53224         * modules/unictype/syntax-java-whitespace-tests: New file.
53225         * tests/unictype/test-bidi_byname.c: New file.
53226         * tests/unictype/test-bidi_name.c: New file.
53227         * tests/unictype/test-bidi_of.c: New file.
53228         * tests/unictype/test-bidi_test.c: New file.
53229         * tests/unictype/test-block_list.c: New file.
53230         * tests/unictype/test-block_of.c: New file.
53231         * tests/unictype/test-block_test.c: New file.
53232         * tests/unictype/test-categ_and.c: New file.
53233         * tests/unictype/test-categ_and_not.c: New file.
53234         * tests/unictype/test-categ_byname.c: New file.
53235         * tests/unictype/test-categ_name.c: New file.
53236         * tests/unictype/test-categ_none.c: New file.
53237         * tests/unictype/test-categ_of.c: New file.
53238         * tests/unictype/test-categ_or.c: New file.
53239         * tests/unictype/test-categ_test_withtable.c: New file.
53240         * tests/unictype/test-combining.c: New file.
53241         * tests/unictype/test-decdigit.c: New file.
53242         * tests/unictype/test-digit.c: New file.
53243         * tests/unictype/test-mirror.c: New file.
53244         * tests/unictype/test-numeric.c: New file.
53245         * tests/unictype/test-pr_byname.c: New file.
53246         * tests/unictype/test-pr_test.c: New file.
53247         * tests/unictype/test-predicate-part1.h: New file.
53248         * tests/unictype/test-predicate-part2.h: New file.
53249         * tests/unictype/test-scripts.c: New file.
53250         * tests/unictype/test-sy_c_ident.c: New file.
53251         * tests/unictype/test-sy_java_ident.c: New file.
53252
53253         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
53254         for Unicode 5.0.0.
53255         * tests/unictype/test-categ_Cc.c: Likewise.
53256         * tests/unictype/test-categ_Cf.c: Likewise.
53257         * tests/unictype/test-categ_Cn.c: Likewise.
53258         * tests/unictype/test-categ_Co.c: Likewise.
53259         * tests/unictype/test-categ_Cs.c: Likewise.
53260         * tests/unictype/test-categ_L.c: Likewise.
53261         * tests/unictype/test-categ_Ll.c: Likewise.
53262         * tests/unictype/test-categ_Lm.c: Likewise.
53263         * tests/unictype/test-categ_Lo.c: Likewise.
53264         * tests/unictype/test-categ_Lt.c: Likewise.
53265         * tests/unictype/test-categ_Lu.c: Likewise.
53266         * tests/unictype/test-categ_M.c: Likewise.
53267         * tests/unictype/test-categ_Mc.c: Likewise.
53268         * tests/unictype/test-categ_Me.c: Likewise.
53269         * tests/unictype/test-categ_Mn.c: Likewise.
53270         * tests/unictype/test-categ_N.c: Likewise.
53271         * tests/unictype/test-categ_Nd.c: Likewise.
53272         * tests/unictype/test-categ_Nl.c: Likewise.
53273         * tests/unictype/test-categ_No.c: Likewise.
53274         * tests/unictype/test-categ_P.c: Likewise.
53275         * tests/unictype/test-categ_Pc.c: Likewise.
53276         * tests/unictype/test-categ_Pd.c: Likewise.
53277         * tests/unictype/test-categ_Pe.c: Likewise.
53278         * tests/unictype/test-categ_Pf.c: Likewise.
53279         * tests/unictype/test-categ_Pi.c: Likewise.
53280         * tests/unictype/test-categ_Po.c: Likewise.
53281         * tests/unictype/test-categ_Ps.c: Likewise.
53282         * tests/unictype/test-categ_S.c: Likewise.
53283         * tests/unictype/test-categ_Sc.c: Likewise.
53284         * tests/unictype/test-categ_Sk.c: Likewise.
53285         * tests/unictype/test-categ_Sm.c: Likewise.
53286         * tests/unictype/test-categ_So.c: Likewise.
53287         * tests/unictype/test-categ_Z.c: Likewise.
53288         * tests/unictype/test-categ_Zl.c: Likewise.
53289         * tests/unictype/test-categ_Zp.c: Likewise.
53290         * tests/unictype/test-categ_Zs.c: Likewise.
53291         * tests/unictype/test-ctype_alnum.c: Likewise.
53292         * tests/unictype/test-ctype_alpha.c: Likewise.
53293         * tests/unictype/test-ctype_blank.c: Likewise.
53294         * tests/unictype/test-ctype_cntrl.c: Likewise.
53295         * tests/unictype/test-ctype_digit.c: Likewise.
53296         * tests/unictype/test-ctype_graph.c: Likewise.
53297         * tests/unictype/test-ctype_lower.c: Likewise.
53298         * tests/unictype/test-ctype_print.c: Likewise.
53299         * tests/unictype/test-ctype_punct.c: Likewise.
53300         * tests/unictype/test-ctype_space.c: Likewise.
53301         * tests/unictype/test-ctype_upper.c: Likewise.
53302         * tests/unictype/test-ctype_xdigit.c: Likewise.
53303         * tests/unictype/test-decdigit.h: Likewise.
53304         * tests/unictype/test-digit.h: Likewise.
53305         * tests/unictype/test-numeric.h: Likewise.
53306         * tests/unictype/test-pr_alphabetic.c: Likewise.
53307         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
53308         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
53309         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
53310         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
53311         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
53312         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
53313         * tests/unictype/test-pr_bidi_control.c: Likewise.
53314         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
53315         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
53316         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
53317         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
53318         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
53319         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
53320         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
53321         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
53322         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
53323         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
53324         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
53325         * tests/unictype/test-pr_combining.c: Likewise.
53326         * tests/unictype/test-pr_composite.c: Likewise.
53327         * tests/unictype/test-pr_currency_symbol.c: Likewise.
53328         * tests/unictype/test-pr_dash.c: Likewise.
53329         * tests/unictype/test-pr_decimal_digit.c: Likewise.
53330         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
53331         * tests/unictype/test-pr_deprecated.c: Likewise.
53332         * tests/unictype/test-pr_diacritic.c: Likewise.
53333         * tests/unictype/test-pr_extender.c: Likewise.
53334         * tests/unictype/test-pr_format_control.c: Likewise.
53335         * tests/unictype/test-pr_grapheme_base.c: Likewise.
53336         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
53337         * tests/unictype/test-pr_grapheme_link.c: Likewise.
53338         * tests/unictype/test-pr_hex_digit.c: Likewise.
53339         * tests/unictype/test-pr_hyphen.c: Likewise.
53340         * tests/unictype/test-pr_id_continue.c: Likewise.
53341         * tests/unictype/test-pr_id_start.c: Likewise.
53342         * tests/unictype/test-pr_ideographic.c: Likewise.
53343         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
53344         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
53345         * tests/unictype/test-pr_ignorable_control.c: Likewise.
53346         * tests/unictype/test-pr_iso_control.c: Likewise.
53347         * tests/unictype/test-pr_join_control.c: Likewise.
53348         * tests/unictype/test-pr_left_of_pair.c: Likewise.
53349         * tests/unictype/test-pr_line_separator.c: Likewise.
53350         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
53351         * tests/unictype/test-pr_lowercase.c: Likewise.
53352         * tests/unictype/test-pr_math.c: Likewise.
53353         * tests/unictype/test-pr_non_break.c: Likewise.
53354         * tests/unictype/test-pr_not_a_character.c: Likewise.
53355         * tests/unictype/test-pr_numeric.c: Likewise.
53356         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
53357         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
53358         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
53359         * tests/unictype/test-pr_other_id_continue.c: Likewise.
53360         * tests/unictype/test-pr_other_id_start.c: Likewise.
53361         * tests/unictype/test-pr_other_lowercase.c: Likewise.
53362         * tests/unictype/test-pr_other_math.c: Likewise.
53363         * tests/unictype/test-pr_other_uppercase.c: Likewise.
53364         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
53365         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
53366         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
53367         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
53368         * tests/unictype/test-pr_private_use.c: Likewise.
53369         * tests/unictype/test-pr_punctuation.c: Likewise.
53370         * tests/unictype/test-pr_quotation_mark.c: Likewise.
53371         * tests/unictype/test-pr_radical.c: Likewise.
53372         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
53373         * tests/unictype/test-pr_soft_dotted.c: Likewise.
53374         * tests/unictype/test-pr_space.c: Likewise.
53375         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
53376         * tests/unictype/test-pr_titlecase.c: Likewise.
53377         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
53378         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
53379         * tests/unictype/test-pr_uppercase.c: Likewise.
53380         * tests/unictype/test-pr_variation_selector.c: Likewise.
53381         * tests/unictype/test-pr_white_space.c: Likewise.
53382         * tests/unictype/test-pr_xid_continue.c: Likewise.
53383         * tests/unictype/test-pr_xid_start.c: Likewise.
53384         * tests/unictype/test-pr_zero_width.c: Likewise.
53385         * tests/unictype/test-sy_c_whitespace.c: Likewise.
53386         * tests/unictype/test-sy_java_whitespace.c: Likewise.
53387
53388 2007-11-12  Bruno Haible  <bruno@clisp.org>
53389
53390         Unicode character classification functions.
53391         * lib/unictype.h: New file.
53392         * modules/unictype/base: New file.
53393         * modules/unictype/category-L: New file.
53394         * modules/unictype/category-Lu: New file.
53395         * modules/unictype/category-Ll: New file.
53396         * modules/unictype/category-Lt: New file.
53397         * modules/unictype/category-Lm: New file.
53398         * modules/unictype/category-Lo: New file.
53399         * modules/unictype/category-M: New file.
53400         * modules/unictype/category-Mn: New file.
53401         * modules/unictype/category-Mc: New file.
53402         * modules/unictype/category-Me: New file.
53403         * modules/unictype/category-N: New file.
53404         * modules/unictype/category-Nd: New file.
53405         * modules/unictype/category-Nl: New file.
53406         * modules/unictype/category-No: New file.
53407         * modules/unictype/category-P: New file.
53408         * modules/unictype/category-Pc: New file.
53409         * modules/unictype/category-Pd: New file.
53410         * modules/unictype/category-Ps: New file.
53411         * modules/unictype/category-Pe: New file.
53412         * modules/unictype/category-Pi: New file.
53413         * modules/unictype/category-Pf: New file.
53414         * modules/unictype/category-Po: New file.
53415         * modules/unictype/category-S: New file.
53416         * modules/unictype/category-Sm: New file.
53417         * modules/unictype/category-Sc: New file.
53418         * modules/unictype/category-Sk: New file.
53419         * modules/unictype/category-So: New file.
53420         * modules/unictype/category-Z: New file.
53421         * modules/unictype/category-Zs: New file.
53422         * modules/unictype/category-Zl: New file.
53423         * modules/unictype/category-Zp: New file.
53424         * modules/unictype/category-C: New file.
53425         * modules/unictype/category-Cc: New file.
53426         * modules/unictype/category-Cf: New file.
53427         * modules/unictype/category-Cs: New file.
53428         * modules/unictype/category-Co: New file.
53429         * modules/unictype/category-Cn: New file.
53430         * modules/unictype/category-or: New file.
53431         * modules/unictype/category-of: New file.
53432         * modules/unictype/category-test: New file.
53433         * modules/unictype/category-test-withtable: New file.
53434         * modules/unictype/category-byname: New file.
53435         * modules/unictype/category-none: New file.
53436         * modules/unictype/category-and: New file.
53437         * modules/unictype/category-and-not: New file.
53438         * modules/unictype/category-name: New file.
53439         * modules/unictype/combining-class: New file.
53440         * modules/unictype/category-all: New file.
53441         * modules/unictype/bidicategory-all: New file.
53442         * modules/unictype/bidicategory-byname: New file.
53443         * modules/unictype/bidicategory-name: New file.
53444         * modules/unictype/bidicategory-of: New file.
53445         * modules/unictype/bidicategory-test: New file.
53446         * modules/unictype/decimal-digit: New file.
53447         * modules/unictype/digit: New file.
53448         * modules/unictype/numeric: New file.
53449         * modules/unictype/mirror: New file.
53450         * modules/unictype/property-white-space: New file.
53451         * modules/unictype/property-alphabetic: New file.
53452         * modules/unictype/property-other-alphabetic: New file.
53453         * modules/unictype/property-not-a-character: New file.
53454         * modules/unictype/property-default-ignorable-code-point: New file.
53455         * modules/unictype/property-other-default-ignorable-code-point: New
53456         file.
53457         * modules/unictype/property-deprecated: New file.
53458         * modules/unictype/property-logical-order-exception: New file.
53459         * modules/unictype/property-variation-selector: New file.
53460         * modules/unictype/property-private-use: New file.
53461         * modules/unictype/property-unassigned-code-value: New file.
53462         * modules/unictype/property-uppercase: New file.
53463         * modules/unictype/property-other-uppercase: New file.
53464         * modules/unictype/property-lowercase: New file.
53465         * modules/unictype/property-other-lowercase: New file.
53466         * modules/unictype/property-titlecase: New file.
53467         * modules/unictype/property-soft-dotted: New file.
53468         * modules/unictype/property-id-start: New file.
53469         * modules/unictype/property-other-id-start: New file.
53470         * modules/unictype/property-id-continue: New file.
53471         * modules/unictype/property-other-id-continue: New file.
53472         * modules/unictype/property-xid-start: New file.
53473         * modules/unictype/property-xid-continue: New file.
53474         * modules/unictype/property-pattern-white-space: New file.
53475         * modules/unictype/property-pattern-syntax: New file.
53476         * modules/unictype/property-join-control: New file.
53477         * modules/unictype/property-grapheme-base: New file.
53478         * modules/unictype/property-grapheme-extend: New file.
53479         * modules/unictype/property-other-grapheme-extend: New file.
53480         * modules/unictype/property-grapheme-link: New file.
53481         * modules/unictype/property-bidi-control: New file.
53482         * modules/unictype/property-bidi-left-to-right: New file.
53483         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
53484         * modules/unictype/property-bidi-arabic-right-to-left: New file.
53485         * modules/unictype/property-bidi-european-digit: New file.
53486         * modules/unictype/property-bidi-eur-num-separator: New file.
53487         * modules/unictype/property-bidi-eur-num-terminator: New file.
53488         * modules/unictype/property-bidi-arabic-digit: New file.
53489         * modules/unictype/property-bidi-common-separator: New file.
53490         * modules/unictype/property-bidi-block-separator: New file.
53491         * modules/unictype/property-bidi-segment-separator: New file.
53492         * modules/unictype/property-bidi-whitespace: New file.
53493         * modules/unictype/property-bidi-non-spacing-mark: New file.
53494         * modules/unictype/property-bidi-boundary-neutral: New file.
53495         * modules/unictype/property-bidi-pdf: New file.
53496         * modules/unictype/property-bidi-embedding-or-override: New file.
53497         * modules/unictype/property-bidi-other-neutral: New file.
53498         * modules/unictype/property-hex-digit: New file.
53499         * modules/unictype/property-ascii-hex-digit: New file.
53500         * modules/unictype/property-ideographic: New file.
53501         * modules/unictype/property-unified-ideograph: New file.
53502         * modules/unictype/property-radical: New file.
53503         * modules/unictype/property-ids-binary-operator: New file.
53504         * modules/unictype/property-ids-trinary-operator: New file.
53505         * modules/unictype/property-zero-width: New file.
53506         * modules/unictype/property-space: New file.
53507         * modules/unictype/property-non-break: New file.
53508         * modules/unictype/property-iso-control: New file.
53509         * modules/unictype/property-format-control: New file.
53510         * modules/unictype/property-dash: New file.
53511         * modules/unictype/property-hyphen: New file.
53512         * modules/unictype/property-punctuation: New file.
53513         * modules/unictype/property-line-separator: New file.
53514         * modules/unictype/property-paragraph-separator: New file.
53515         * modules/unictype/property-quotation-mark: New file.
53516         * modules/unictype/property-sentence-terminal: New file.
53517         * modules/unictype/property-terminal-punctuation: New file.
53518         * modules/unictype/property-currency-symbol: New file.
53519         * modules/unictype/property-math: New file.
53520         * modules/unictype/property-other-math: New file.
53521         * modules/unictype/property-paired-punctuation: New file.
53522         * modules/unictype/property-left-of-pair: New file.
53523         * modules/unictype/property-combining: New file.
53524         * modules/unictype/property-composite: New file.
53525         * modules/unictype/property-decimal-digit: New file.
53526         * modules/unictype/property-numeric: New file.
53527         * modules/unictype/property-diacritic: New file.
53528         * modules/unictype/property-extender: New file.
53529         * modules/unictype/property-ignorable-control: New file.
53530         * modules/unictype/property-test: New file.
53531         * modules/unictype/property-byname: New file.
53532         * modules/unictype/property-all: New file.
53533         * modules/unictype/scripts: New file.
53534         * modules/unictype/scripts-all: New file.
53535         * modules/unictype/block-of: New file.
53536         * modules/unictype/block-test: New file.
53537         * modules/unictype/block-list: New file.
53538         * modules/unictype/block-all: New file.
53539         * modules/unictype/syntax-c-whitespace: New file.
53540         * modules/unictype/syntax-java-whitespace: New file.
53541         * modules/unictype/syntax-c-ident: New file.
53542         * modules/unictype/syntax-java-ident: New file.
53543         * modules/unictype/ctype-alnum: New file.
53544         * modules/unictype/ctype-alpha: New file.
53545         * modules/unictype/ctype-cntrl: New file.
53546         * modules/unictype/ctype-digit: New file.
53547         * modules/unictype/ctype-graph: New file.
53548         * modules/unictype/ctype-lower: New file.
53549         * modules/unictype/ctype-print: New file.
53550         * modules/unictype/ctype-punct: New file.
53551         * modules/unictype/ctype-space: New file.
53552         * modules/unictype/ctype-upper: New file.
53553         * modules/unictype/ctype-xdigit: New file.
53554         * modules/unictype/ctype-blank: New file.
53555         * lib/unictype/bidi_byname.c: New file.
53556         * lib/unictype/bidi_name.c: New file.
53557         * lib/unictype/bidi_of.c: New file.
53558         * lib/unictype/bidi_test.c: New file.
53559         * lib/unictype/bitmap.h: New file.
53560         * lib/unictype/block_test.c: New file.
53561         * lib/unictype/blocks.c: New file.
53562         * lib/unictype/categ_C.c: New file.
53563         * lib/unictype/categ_Cc.c: New file.
53564         * lib/unictype/categ_Cf.c: New file.
53565         * lib/unictype/categ_Cn.c: New file.
53566         * lib/unictype/categ_Co.c: New file.
53567         * lib/unictype/categ_Cs.c: New file.
53568         * lib/unictype/categ_L.c: New file.
53569         * lib/unictype/categ_Ll.c: New file.
53570         * lib/unictype/categ_Lm.c: New file.
53571         * lib/unictype/categ_Lo.c: New file.
53572         * lib/unictype/categ_Lt.c: New file.
53573         * lib/unictype/categ_Lu.c: New file.
53574         * lib/unictype/categ_M.c: New file.
53575         * lib/unictype/categ_Mc.c: New file.
53576         * lib/unictype/categ_Me.c: New file.
53577         * lib/unictype/categ_Mn.c: New file.
53578         * lib/unictype/categ_N.c: New file.
53579         * lib/unictype/categ_Nd.c: New file.
53580         * lib/unictype/categ_Nl.c: New file.
53581         * lib/unictype/categ_No.c: New file.
53582         * lib/unictype/categ_P.c: New file.
53583         * lib/unictype/categ_Pc.c: New file.
53584         * lib/unictype/categ_Pd.c: New file.
53585         * lib/unictype/categ_Pe.c: New file.
53586         * lib/unictype/categ_Pf.c: New file.
53587         * lib/unictype/categ_Pi.c: New file.
53588         * lib/unictype/categ_Po.c: New file.
53589         * lib/unictype/categ_Ps.c: New file.
53590         * lib/unictype/categ_S.c: New file.
53591         * lib/unictype/categ_Sc.c: New file.
53592         * lib/unictype/categ_Sk.c: New file.
53593         * lib/unictype/categ_Sm.c: New file.
53594         * lib/unictype/categ_So.c: New file.
53595         * lib/unictype/categ_Z.c: New file.
53596         * lib/unictype/categ_Zl.c: New file.
53597         * lib/unictype/categ_Zp.c: New file.
53598         * lib/unictype/categ_Zs.c: New file.
53599         * lib/unictype/categ_and.c: New file.
53600         * lib/unictype/categ_and_not.c: New file.
53601         * lib/unictype/categ_byname.c: New file.
53602         * lib/unictype/categ_name.c: New file.
53603         * lib/unictype/categ_none.c: New file.
53604         * lib/unictype/categ_of.c: New file.
53605         * lib/unictype/categ_or.c: New file.
53606         * lib/unictype/categ_test.c: New file.
53607         * lib/unictype/combining.c: New file.
53608         * lib/unictype/ctype_alnum.c: New file.
53609         * lib/unictype/ctype_alpha.c: New file.
53610         * lib/unictype/ctype_blank.c: New file.
53611         * lib/unictype/ctype_cntrl.c: New file.
53612         * lib/unictype/ctype_digit.c: New file.
53613         * lib/unictype/ctype_graph.c: New file.
53614         * lib/unictype/ctype_lower.c: New file.
53615         * lib/unictype/ctype_print.c: New file.
53616         * lib/unictype/ctype_punct.c: New file.
53617         * lib/unictype/ctype_space.c: New file.
53618         * lib/unictype/ctype_upper.c: New file.
53619         * lib/unictype/ctype_xdigit.c: New file.
53620         * lib/unictype/decdigit.c: New file.
53621         * lib/unictype/digit.c: New file.
53622         * lib/unictype/identsyntaxmap.h: New file.
53623         * lib/unictype/mirror.c: New file.
53624         * lib/unictype/numeric.c: New file.
53625         * lib/unictype/pr_alphabetic.c: New file.
53626         * lib/unictype/pr_ascii_hex_digit.c: New file.
53627         * lib/unictype/pr_bidi_arabic_digit.c: New file.
53628         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
53629         * lib/unictype/pr_bidi_block_separator.c: New file.
53630         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
53631         * lib/unictype/pr_bidi_common_separator.c: New file.
53632         * lib/unictype/pr_bidi_control.c: New file.
53633         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
53634         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
53635         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
53636         * lib/unictype/pr_bidi_european_digit.c: New file.
53637         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
53638         * lib/unictype/pr_bidi_left_to_right.c: New file.
53639         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
53640         * lib/unictype/pr_bidi_other_neutral.c: New file.
53641         * lib/unictype/pr_bidi_pdf.c: New file.
53642         * lib/unictype/pr_bidi_segment_separator.c: New file.
53643         * lib/unictype/pr_bidi_whitespace.c: New file.
53644         * lib/unictype/pr_byname.c: New file.
53645         * lib/unictype/pr_byname.gperf: New file.
53646         * lib/unictype/pr_combining.c: New file.
53647         * lib/unictype/pr_composite.c: New file.
53648         * lib/unictype/pr_currency_symbol.c: New file.
53649         * lib/unictype/pr_dash.c: New file.
53650         * lib/unictype/pr_decimal_digit.c: New file.
53651         * lib/unictype/pr_default_ignorable_code_point.c: New file.
53652         * lib/unictype/pr_deprecated.c: New file.
53653         * lib/unictype/pr_diacritic.c: New file.
53654         * lib/unictype/pr_extender.c: New file.
53655         * lib/unictype/pr_format_control.c: New file.
53656         * lib/unictype/pr_grapheme_base.c: New file.
53657         * lib/unictype/pr_grapheme_extend.c: New file.
53658         * lib/unictype/pr_grapheme_link.c: New file.
53659         * lib/unictype/pr_hex_digit.c: New file.
53660         * lib/unictype/pr_hyphen.c: New file.
53661         * lib/unictype/pr_id_continue.c: New file.
53662         * lib/unictype/pr_id_start.c: New file.
53663         * lib/unictype/pr_ideographic.c: New file.
53664         * lib/unictype/pr_ids_binary_operator.c: New file.
53665         * lib/unictype/pr_ids_trinary_operator.c: New file.
53666         * lib/unictype/pr_ignorable_control.c: New file.
53667         * lib/unictype/pr_iso_control.c: New file.
53668         * lib/unictype/pr_join_control.c: New file.
53669         * lib/unictype/pr_left_of_pair.c: New file.
53670         * lib/unictype/pr_line_separator.c: New file.
53671         * lib/unictype/pr_logical_order_exception.c: New file.
53672         * lib/unictype/pr_lowercase.c: New file.
53673         * lib/unictype/pr_math.c: New file.
53674         * lib/unictype/pr_non_break.c: New file.
53675         * lib/unictype/pr_not_a_character.c: New file.
53676         * lib/unictype/pr_numeric.c: New file.
53677         * lib/unictype/pr_other_alphabetic.c: New file.
53678         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
53679         * lib/unictype/pr_other_grapheme_extend.c: New file.
53680         * lib/unictype/pr_other_id_continue.c: New file.
53681         * lib/unictype/pr_other_id_start.c: New file.
53682         * lib/unictype/pr_other_lowercase.c: New file.
53683         * lib/unictype/pr_other_math.c: New file.
53684         * lib/unictype/pr_other_uppercase.c: New file.
53685         * lib/unictype/pr_paired_punctuation.c: New file.
53686         * lib/unictype/pr_paragraph_separator.c: New file.
53687         * lib/unictype/pr_pattern_syntax.c: New file.
53688         * lib/unictype/pr_pattern_white_space.c: New file.
53689         * lib/unictype/pr_private_use.c: New file.
53690         * lib/unictype/pr_punctuation.c: New file.
53691         * lib/unictype/pr_quotation_mark.c: New file.
53692         * lib/unictype/pr_radical.c: New file.
53693         * lib/unictype/pr_sentence_terminal.c: New file.
53694         * lib/unictype/pr_soft_dotted.c: New file.
53695         * lib/unictype/pr_space.c: New file.
53696         * lib/unictype/pr_terminal_punctuation.c: New file.
53697         * lib/unictype/pr_test.c: New file.
53698         * lib/unictype/pr_titlecase.c: New file.
53699         * lib/unictype/pr_unassigned_code_value.c: New file.
53700         * lib/unictype/pr_unified_ideograph.c: New file.
53701         * lib/unictype/pr_uppercase.c: New file.
53702         * lib/unictype/pr_variation_selector.c: New file.
53703         * lib/unictype/pr_white_space.c: New file.
53704         * lib/unictype/pr_xid_continue.c: New file.
53705         * lib/unictype/pr_xid_start.c: New file.
53706         * lib/unictype/pr_zero_width.c: New file.
53707         * lib/unictype/scripts.c: New file.
53708         * lib/unictype/sy_c_ident.c: New file.
53709         * lib/unictype/sy_c_whitespace.c: New file.
53710         * lib/unictype/sy_java_ident.c: New file.
53711         * lib/unictype/sy_java_whitespace.c: New file.
53712
53713         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
53714         Unicode 5.0.0.
53715         * lib/unictype/blocks.h: Likewise.
53716         * lib/unictype/categ_C.h: Likewise.
53717         * lib/unictype/categ_Cc.h: Likewise.
53718         * lib/unictype/categ_Cf.h: Likewise.
53719         * lib/unictype/categ_Cn.h: Likewise.
53720         * lib/unictype/categ_Co.h: Likewise.
53721         * lib/unictype/categ_Cs.h: Likewise.
53722         * lib/unictype/categ_L.h: Likewise.
53723         * lib/unictype/categ_Ll.h: Likewise.
53724         * lib/unictype/categ_Lm.h: Likewise.
53725         * lib/unictype/categ_Lo.h: Likewise.
53726         * lib/unictype/categ_Lt.h: Likewise.
53727         * lib/unictype/categ_Lu.h: Likewise.
53728         * lib/unictype/categ_M.h: Likewise.
53729         * lib/unictype/categ_Mc.h: Likewise.
53730         * lib/unictype/categ_Me.h: Likewise.
53731         * lib/unictype/categ_Mn.h: Likewise.
53732         * lib/unictype/categ_N.h: Likewise.
53733         * lib/unictype/categ_Nd.h: Likewise.
53734         * lib/unictype/categ_Nl.h: Likewise.
53735         * lib/unictype/categ_No.h: Likewise.
53736         * lib/unictype/categ_P.h: Likewise.
53737         * lib/unictype/categ_Pc.h: Likewise.
53738         * lib/unictype/categ_Pd.h: Likewise.
53739         * lib/unictype/categ_Pe.h: Likewise.
53740         * lib/unictype/categ_Pf.h: Likewise.
53741         * lib/unictype/categ_Pi.h: Likewise.
53742         * lib/unictype/categ_Po.h: Likewise.
53743         * lib/unictype/categ_Ps.h: Likewise.
53744         * lib/unictype/categ_S.h: Likewise.
53745         * lib/unictype/categ_Sc.h: Likewise.
53746         * lib/unictype/categ_Sk.h: Likewise.
53747         * lib/unictype/categ_Sm.h: Likewise.
53748         * lib/unictype/categ_So.h: Likewise.
53749         * lib/unictype/categ_Z.h: Likewise.
53750         * lib/unictype/categ_Zl.h: Likewise.
53751         * lib/unictype/categ_Zp.h: Likewise.
53752         * lib/unictype/categ_Zs.h: Likewise.
53753         * lib/unictype/categ_of.h: Likewise.
53754         * lib/unictype/combining.h: Likewise.
53755         * lib/unictype/ctype_alnum.h: Likewise.
53756         * lib/unictype/ctype_alpha.h: Likewise.
53757         * lib/unictype/ctype_blank.h: Likewise.
53758         * lib/unictype/ctype_cntrl.h: Likewise.
53759         * lib/unictype/ctype_digit.h: Likewise.
53760         * lib/unictype/ctype_graph.h: Likewise.
53761         * lib/unictype/ctype_lower.h: Likewise.
53762         * lib/unictype/ctype_print.h: Likewise.
53763         * lib/unictype/ctype_punct.h: Likewise.
53764         * lib/unictype/ctype_space.h: Likewise.
53765         * lib/unictype/ctype_upper.h: Likewise.
53766         * lib/unictype/ctype_xdigit.h: Likewise.
53767         * lib/unictype/decdigit.h: Likewise.
53768         * lib/unictype/digit.h: Likewise.
53769         * lib/unictype/mirror.h: Likewise.
53770         * lib/unictype/numeric.h: Likewise.
53771         * lib/unictype/pr_alphabetic.h: Likewise.
53772         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
53773         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
53774         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
53775         * lib/unictype/pr_bidi_block_separator.h: Likewise.
53776         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
53777         * lib/unictype/pr_bidi_common_separator.h: Likewise.
53778         * lib/unictype/pr_bidi_control.h: Likewise.
53779         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
53780         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
53781         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
53782         * lib/unictype/pr_bidi_european_digit.h: Likewise.
53783         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
53784         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
53785         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
53786         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
53787         * lib/unictype/pr_bidi_pdf.h: Likewise.
53788         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
53789         * lib/unictype/pr_bidi_whitespace.h: Likewise.
53790         * lib/unictype/pr_combining.h: Likewise.
53791         * lib/unictype/pr_composite.h: Likewise.
53792         * lib/unictype/pr_currency_symbol.h: Likewise.
53793         * lib/unictype/pr_dash.h: Likewise.
53794         * lib/unictype/pr_decimal_digit.h: Likewise.
53795         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
53796         * lib/unictype/pr_deprecated.h: Likewise.
53797         * lib/unictype/pr_diacritic.h: Likewise.
53798         * lib/unictype/pr_extender.h: Likewise.
53799         * lib/unictype/pr_format_control.h: Likewise.
53800         * lib/unictype/pr_grapheme_base.h: Likewise.
53801         * lib/unictype/pr_grapheme_extend.h: Likewise.
53802         * lib/unictype/pr_grapheme_link.h: Likewise.
53803         * lib/unictype/pr_hex_digit.h: Likewise.
53804         * lib/unictype/pr_hyphen.h: Likewise.
53805         * lib/unictype/pr_id_continue.h: Likewise.
53806         * lib/unictype/pr_id_start.h: Likewise.
53807         * lib/unictype/pr_ideographic.h: Likewise.
53808         * lib/unictype/pr_ids_binary_operator.h: Likewise.
53809         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
53810         * lib/unictype/pr_ignorable_control.h: Likewise.
53811         * lib/unictype/pr_iso_control.h: Likewise.
53812         * lib/unictype/pr_join_control.h: Likewise.
53813         * lib/unictype/pr_left_of_pair.h: Likewise.
53814         * lib/unictype/pr_line_separator.h: Likewise.
53815         * lib/unictype/pr_logical_order_exception.h: Likewise.
53816         * lib/unictype/pr_lowercase.h: Likewise.
53817         * lib/unictype/pr_math.h: Likewise.
53818         * lib/unictype/pr_non_break.h: Likewise.
53819         * lib/unictype/pr_not_a_character.h: Likewise.
53820         * lib/unictype/pr_numeric.h: Likewise.
53821         * lib/unictype/pr_other_alphabetic.h: Likewise.
53822         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
53823         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
53824         * lib/unictype/pr_other_id_continue.h: Likewise.
53825         * lib/unictype/pr_other_id_start.h: Likewise.
53826         * lib/unictype/pr_other_lowercase.h: Likewise.
53827         * lib/unictype/pr_other_math.h: Likewise.
53828         * lib/unictype/pr_other_uppercase.h: Likewise.
53829         * lib/unictype/pr_paired_punctuation.h: Likewise.
53830         * lib/unictype/pr_paragraph_separator.h: Likewise.
53831         * lib/unictype/pr_pattern_syntax.h: Likewise.
53832         * lib/unictype/pr_pattern_white_space.h: Likewise.
53833         * lib/unictype/pr_private_use.h: Likewise.
53834         * lib/unictype/pr_punctuation.h: Likewise.
53835         * lib/unictype/pr_quotation_mark.h: Likewise.
53836         * lib/unictype/pr_radical.h: Likewise.
53837         * lib/unictype/pr_sentence_terminal.h: Likewise.
53838         * lib/unictype/pr_soft_dotted.h: Likewise.
53839         * lib/unictype/pr_space.h: Likewise.
53840         * lib/unictype/pr_terminal_punctuation.h: Likewise.
53841         * lib/unictype/pr_titlecase.h: Likewise.
53842         * lib/unictype/pr_unassigned_code_value.h: Likewise.
53843         * lib/unictype/pr_unified_ideograph.h: Likewise.
53844         * lib/unictype/pr_uppercase.h: Likewise.
53845         * lib/unictype/pr_variation_selector.h: Likewise.
53846         * lib/unictype/pr_white_space.h: Likewise.
53847         * lib/unictype/pr_xid_continue.h: Likewise.
53848         * lib/unictype/pr_xid_start.h: Likewise.
53849         * lib/unictype/pr_zero_width.h: Likewise.
53850         * lib/unictype/scripts.h: Likewise.
53851         * lib/unictype/scripts_byname.gperf: Likewise.
53852         * lib/unictype/sy_c_ident.h: Likewise.
53853         * lib/unictype/sy_c_whitespace.h: Likewise.
53854         * lib/unictype/sy_java_ident.h: Likewise.
53855         * lib/unictype/sy_java_whitespace.h: Likewise.
53856
53857         * lib/unictype/Makefile: New file.
53858         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
53859         glibc.
53860         * lib/unictype/3level.h: New file, copied from glibc.
53861         * lib/unictype/3levelbit.h: New file.
53862
53863 2007-11-11  Bruno Haible  <bruno@clisp.org>
53864
53865         * modules/gperf: New file.
53866         * modules/iconv_open (Depends-on): Add it.
53867         (Makefile.am): Remove the GPERF definition.
53868
53869 2007-11-11  Bruno Haible  <bruno@clisp.org>
53870
53871         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
53872         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
53873
53874 2007-11-11  Bruno Haible  <bruno@clisp.org>
53875
53876         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
53877         (usage): Remove function.
53878
53879 2007-11-11  Bruno Haible  <bruno@clisp.org>
53880
53881         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
53882         gl_FUNC_CEILF_LIBS.
53883         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
53884         gl_FUNC_CEIL_LIBS.
53885         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
53886         gl_FUNC_CEILL_LIBS.
53887         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
53888         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
53889         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
53890
53891 2007-11-11  Bruno Haible  <bruno@clisp.org>
53892
53893         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
53894         roundf were declared but do not exist on functions.
53895         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
53896         roundl were declared but do not exist on functions.
53897         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
53898         HAVE_FLOORL_AND_CEILL, respectively.
53899         Needed for Sun C on Solaris 10.
53900
53901 2007-11-11  Bruno Haible  <bruno@clisp.org>
53902
53903         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
53904         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
53905         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
53906         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
53907         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
53908         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
53909         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
53910         HAVE_DECL_ROUNDF.
53911         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
53912         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
53913         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
53914         of HAVE_DECL_ROUND*.
53915         * modules/math (Makefile.am): Update.
53916
53917 2007-11-10  Bruno Haible  <bruno@clisp.org>
53918
53919         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
53920         ptrdiff_t as m4/intl.m4.
53921
53922 2007-11-10  Jim Meyering  <meyering@redhat.com>
53923
53924         Avoid link failure for the argmatch test.
53925         * tests/test-argmatch.c (usage): Define function to avoid a link
53926         failure: argmatch_die requires a usage function.
53927
53928 2007-11-09  Bruno Haible  <bruno@clisp.org>
53929
53930         * doc/functions/snprintf.texi: Mention BeOS deficiency.
53931         * doc/functions/vsnprintf.texi: Likewise.
53932         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
53933         with a size argument < 2.
53934
53935 2007-11-09  Bruno Haible  <bruno@clisp.org>
53936
53937         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
53938         buffer. Fixes an inefficiency introduced on 2007-11-03.
53939
53940 2007-11-09  Bruno Haible  <bruno@clisp.org>
53941
53942         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
53943         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
53944
53945 2007-11-08  Jim Meyering  <meyering@redhat.com>
53946
53947         Change cache variable name prefix "jm_" to "gl_" everywhere.
53948         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
53949         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
53950         * m4/uptime.m4: s/gl_/jm_/
53951
53952 2007-11-07  Bruno Haible  <bruno@clisp.org>
53953
53954         Update to GNU gettext 0.17.
53955         * m4/intl.m4: Update to GNU gettext 0.17.
53956         * m4/po.m4: Likewise.
53957         * modules/gettext (Files): Remove m4/ulonglong.m4.
53958         (configure.ac): Require gettext infrastructure from version 0.17.
53959
53960 2007-11-06  Bruno Haible  <bruno@clisp.org>
53961
53962         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
53963         symbolic values are not defined in a public header.
53964         * lib/freadable.c (freadable) [QNX]: Likewise.
53965         * lib/freadahead.c (freadahead) [QNX]: Likewise.
53966         * lib/freading.c (freading) [QNX]: Likewise.
53967         * lib/fseterr.c (fseterr) [QNX]: Likewise.
53968         * lib/fwritable.c (fwritable) [QNX]: Likewise.
53969         * lib/fwriting.c (fwriting) [QNX]: Likewise.
53970         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
53971         Reported by Alain Magloire.
53972
53973         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
53974
53975 2007-11-05  Bruno Haible  <bruno@clisp.org>
53976
53977         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
53978         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
53979         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
53980         Reported by Eric Blake.
53981
53982 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53983             Bruno Haible  <bruno@clisp.org>
53984
53985         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
53986         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
53987         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
53988         (malloc): Undefine also before including <stdlib.h>.
53989         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
53990         Needed on OSF/1 4.0.
53991
53992 2007-11-05  Jim Meyering  <meyering@redhat.com>
53993
53994         git-version-gen: sync from coreutils.
53995         * build-aux/git-version-gen: Add comments.
53996         Change the first '-' to '.' in the snapshot version string,
53997         e.g., 6.9-377-08144 -> 6.9.377-08144
53998         Remove first parameter.
53999         Don't declare a version "-dirty" merely because a time
54000         stamp has changed.
54001
54002 2007-11-04  Bruno Haible  <bruno@clisp.org>
54003
54004         * lib/lock.h: Protect all macro definitions containing an 'if'
54005         statement through a "do { ... } while (0)".
54006         * lib/tls.h: Likewise.
54007
54008 2007-11-04  Bruno Haible  <bruno@clisp.org>
54009
54010         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
54011
54012 2007-11-04  Bruno Haible  <bruno@clisp.org>
54013
54014         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
54015         * modules/fprintf-posix (Depends-on): Add nocrash.
54016         * modules/snprintf-posix (Depends-on): Likewise.
54017         * modules/sprintf-posix (Depends-on): Likewise.
54018         * modules/vasnprintf-posix (Depends-on): Likewise.
54019         * modules/vasprintf-posix (Depends-on): Likewise.
54020         * modules/vfprintf-posix (Depends-on): Likewise.
54021         * modules/vsnprintf-posix (Depends-on): Likewise.
54022         * modules/vsprintf-posix (Depends-on): Likewise.
54023         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
54024         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
54025         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
54026         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
54027         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
54028         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
54029         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
54030
54031 2007-11-04  Bruno Haible  <bruno@clisp.org>
54032
54033         * modules/nocrash: New file.
54034         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
54035         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
54036
54037 2007-11-04  Bruno Haible  <bruno@clisp.org>
54038
54039         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
54040         precision handling.
54041         * tests/test-vasprintf-posix.c (test_function): Likewise.
54042         * tests/test-snprintf-posix.h (test_function): Likewise.
54043         * tests/test-sprintf-posix.h (test_function): Likewise.
54044
54045         Fix *printf behaviour for large precisions on mingw and BeOS.
54046         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
54047         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
54048         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
54049         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
54050         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
54051         gl_PRINTF_PRECISION and test its result. Invoke
54052         gl_PREREQ_VASNPRINTF_PRECISION.
54053         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
54054         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
54055         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
54056         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
54057         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
54058         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
54059         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
54060         * doc/functions/fprintf.texi: Update.
54061         * doc/functions/printf.texi: Update.
54062         * doc/functions/snprintf.texi: Update.
54063         * doc/functions/sprintf.texi: Update.
54064         * doc/functions/vfprintf.texi: Update.
54065         * doc/functions/vprintf.texi: Update.
54066         * doc/functions/vsnprintf.texi: Update.
54067         * doc/functions/vsprintf.texi: Update.
54068
54069 2007-11-04  Bruno Haible  <bruno@clisp.org>
54070
54071         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
54072
54073 2007-11-04  Bruno Haible  <bruno@clisp.org>
54074
54075         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
54076         Reported by Sylvain Beucler <beuc@gnu.org>.
54077
54078 2007-11-03  Bruno Haible  <bruno@clisp.org>
54079
54080         * tests/test-fprintf-posix2.sh: New file.
54081         * tests/test-fprintf-posix2.c: New file.
54082         * modules/fprintf-posix-tests (Files): Add them.
54083         (TESTS): Add test-fprintf-posix2.sh.
54084         (configure.ac): Check for getrlimit and setrlimit.
54085         (check_PROGRAMS): Add test-fprintf-posix2.
54086
54087         * tests/test-printf-posix2.sh: New file.
54088         * tests/test-printf-posix2.c: New file.
54089         * modules/printf-posix-tests (Files): Add them.
54090         (TESTS): Add test-printf-posix2.sh.
54091         (configure.ac): Check for getrlimit and setrlimit.
54092         (check_PROGRAMS): Add test-printf-posix2.
54093
54094         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
54095         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
54096         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
54097         (decode_double): New function, copied from decode_long_double.
54098         (scale10_round_decimal_decoded): New function, extracted from
54099         scale10_round_decimal_long_double.
54100         (scale10_round_decimal_long_double): Use it.
54101         (scale10_round_decimal_double): New function.
54102         (floorlog10): New function.
54103         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
54104         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
54105         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
54106         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
54107         gl_PRINTF_ENOMEM and test its result. Invoke
54108         gl_PREREQ_VASNPRINTF_ENOMEM.
54109         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
54110         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
54111         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
54112         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
54113         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
54114         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
54115         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
54116         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
54117         * modules/snprintf-posix (Depends-on): Likewise.
54118         * modules/sprintf-posix (Depends-on): Likewise.
54119         * modules/vasnprintf-posix (Depends-on): Likewise.
54120         * modules/vasprintf-posix (Depends-on): Likewise.
54121         * modules/vfprintf-posix (Depends-on): Likewise.
54122         * modules/vsnprintf-posix (Depends-on): Likewise.
54123         * modules/vsprintf-posix (Depends-on): Likewise.
54124         * doc/functions/fprintf.texi: Update.
54125         * doc/functions/printf.texi: Update.
54126         * doc/functions/snprintf.texi: Update.
54127         * doc/functions/sprintf.texi: Update.
54128         * doc/functions/vfprintf.texi: Update.
54129         * doc/functions/vprintf.texi: Update.
54130         * doc/functions/vsnprintf.texi: Update.
54131         * doc/functions/vsprintf.texi: Update.
54132
54133 2007-11-03  Bruno Haible  <bruno@clisp.org>
54134
54135         * modules/frexp-nolibm-tests: New file.
54136
54137         * modules/frexp-nolibm: New file.
54138         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
54139
54140 2007-11-03  Bruno Haible  <bruno@clisp.org>
54141
54142         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
54143         value is C99 compliant.
54144         Needed for OSF/1 5.1.
54145
54146 2007-11-03  Bruno Haible  <bruno@clisp.org>
54147
54148         Fix out-of-memory handling of vasnprintf.
54149         * lib/printf-parse.c: Include <errno.h>.
54150         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
54151         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
54152         is already set.
54153
54154 2007-11-02  Eric Blake  <ebb9@byu.net>
54155
54156         Fix tests on cygwin.
54157         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
54158
54159 2007-11-01  Bruno Haible  <bruno@clisp.org>
54160
54161         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
54162         warning.
54163         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
54164         needed for POSIX compatibility.
54165
54166 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
54167
54168         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
54169         for compatibility with GNU.
54170
54171 2007-11-01  Bruno Haible  <bruno@clisp.org>
54172
54173         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
54174         (putenv): Renamed from rpl_putenv. Change argument type from
54175         'const char *' to 'char *'.
54176         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
54177         of defining putenv in config.h, just set REPLACE_PUTENV.
54178         * modules/putenv (Depends-on): Add stdlib.
54179         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
54180         (Include): Use <stdlib.h>.
54181         * lib/stdlib.in.h (putenv): New declaration.
54182         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
54183         REPLACE_PUTENV.
54184         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
54185         REPLACE_PUTENV.
54186         Needed for MacOS X 10.5.0.
54187         Reported by Peter O'Gorman <peter@pogma.com>.
54188
54189 2007-11-01  Jim Meyering  <meyering@redhat.com>
54190
54191         Treat an empty date string exactly like "0".
54192         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
54193         if the remaining date string (to be parsed) is empty, use "0".
54194         Reported by Mischa Molhoek and discussed in this thread:
54195         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
54196
54197 2007-10-31  Bruno Haible  <bruno@clisp.org>
54198
54199         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
54200         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
54201         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
54202         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
54203         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
54204         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
54205
54206 2007-10-31  Bruno Haible  <bruno@clisp.org>
54207
54208         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
54209         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
54210         (AC_TYPE_LONG_LONG_INT): Use it.
54211         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
54212         it as well.
54213         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
54214         to m4/longlong.m4.
54215         * modules/stdint (Files): Remove m4/ulonglong.m4.
54216         * modules/strtoull (Files): Use m4/longlong.m4 instead of
54217         m4/ulonglong.m4.
54218         * modules/strtoumax (Files): Likewise.
54219
54220 2007-10-30  Bruno Haible  <bruno@clisp.org>
54221
54222         * modules/xvasprintf-posix: New file.
54223         Suggested by Eric Blake.
54224
54225 2007-10-30  Bruno Haible  <bruno@clisp.org>
54226
54227         * modules/xprintf-posix-tests: New file.
54228         * tests/test-xprintf-posix.sh: New file.
54229         * tests/test-xprintf-posix.c: New file.
54230         * tests/test-xfprintf-posix.c: New file.
54231
54232         * modules/xprintf-posix: New file.
54233
54234 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54235
54236         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
54237         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
54238         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
54239
54240 2007-10-29  Bruno Haible  <bruno@clisp.org>
54241
54242         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
54243         contain the special marker '_cv_'.
54244         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
54245         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
54246         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
54247         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
54248         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
54249         Reported by Ralf Wildenhues.
54250
54251 2007-10-29  Bruno Haible  <bruno@clisp.org>
54252
54253         * gnulib-tool (func_import): When --lgpl is not specified, set
54254         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
54255         GPLv3.
54256         Reported by Simon Josefsson.
54257
54258 2007-10-28  Bruno Haible  <bruno@clisp.org>
54259
54260         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
54261         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
54262         HAVE_DECL_ISFINITE.
54263         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
54264         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
54265         HAVE_DECL_ISFINITE.
54266
54267 2007-10-28  Bruno Haible  <bruno@clisp.org>
54268
54269         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
54270         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
54271
54272 2007-10-28  Bruno Haible  <bruno@clisp.org>
54273
54274         Fix link errors with Sun C 5.0 on Solaris 10.
54275         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
54276         function is declared but not present in the compiler's libm.
54277         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
54278         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
54279         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
54280         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
54281         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
54282         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
54283         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
54284         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
54285         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
54286         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
54287         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
54288         HAVE_DECL_FLOORL.
54289
54290 2007-10-28  Bruno Haible  <bruno@clisp.org>
54291
54292         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
54293         gl_FUNC_FLOORL. Cache the result.
54294         (gl_FUNC_FLOORL): Use it.
54295         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
54296         gl_FUNC_CEILL. Cache the result.
54297         (gl_FUNC_CEILL): Use it.
54298
54299         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
54300         gl_FUNC_FLOOR. Cache the result.
54301         (gl_FUNC_FLOOR): Use it.
54302         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
54303         gl_FUNC_CEIL. Cache the result.
54304         (gl_FUNC_CEIL): Use it.
54305
54306         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
54307         gl_FUNC_FLOORF. Cache the result.
54308         (gl_FUNC_FLOORF): Use it.
54309         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
54310         gl_FUNC_CEILF. Cache the result.
54311         (gl_FUNC_CEILF): Use it.
54312
54313 2007-10-28  Bruno Haible  <bruno@clisp.org>
54314
54315         * gnulib-tool: Allow specifying the LGPL version number through
54316         --lgpl=2 or --lgpl=3.
54317         (func_usage): Document --lgpl with argument.
54318         Handle --lgpl=... arguments.
54319         (func_import): Recognize also gl_LGPL calls with an argument. When
54320         --lgpl=2 is used and the module's license is just LGPL, report an
54321         error. Set sed_transform_lib_file according to the lgpl variable. In
54322         the generated files, use --lgpl or gl_LGPL invocations with argument,
54323         if necessary.
54324         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
54325         an LGPv2+ license.
54326         * doc/gnulib-tool.texi (Modified imports): Update explanation of
54327         gl_LGPL macro.
54328
54329 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54330             Bruno Haible  <bruno@clisp.org>
54331
54332         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
54333         (u16_uctomb_aux): Likewise.
54334         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
54335         !HAVE_INLINE.
54336         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
54337
54338 2007-10-28  Bruno Haible  <bruno@clisp.org>
54339
54340         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
54341         Invoke AM_GETTEXT_OPTION if it exists.
54342         * modules/vasprintf: Likewise.
54343         * modules/verror: Likewise.
54344         * modules/xprintf: Likewise.
54345         * modules/xvasprintf: Likewise.
54346
54347 2007-10-27  Ben Pfaff  <blp@gnu.org>
54348
54349         * lib/math.in.h: Define isfinite macro and prototypes for
54350         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
54351         implementations.
54352         * m4/math_h.m4: New substitutions for isfinite module.
54353         * lib/isfinite.c: New file.
54354         * m4/isfinite.m4: New file.
54355         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
54356         * modules/isfinite: New file.
54357         * modules/isfinite-tests: New file.
54358         * tests/tests-isfinite.c: New file.
54359         * doc/functions/isfinite.texi: Mention isfinite module.
54360         * MODULES.html.sh: Mention new module.
54361
54362 2007-10-27  Ben Pfaff  <blp@gnu.org>
54363
54364         Ralf Wildenhues reported that Tru64 4.0D declares the round
54365         functions but does not have definitions.
54366         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
54367         cannot be found in any library, set the output variable to
54368         "missing" instead of "".
54369         * m4/round.m4: Also use our substitute if we cannot find round in
54370         any library, even if it is declared.
54371         * m4/roundf.m4: Likewise for roundf.
54372         * m4/roundl.m4: Likewise for roundl.
54373         * lib/math.in.h: Undefine roundf, round, roundl before defining
54374         their replacements, to allow for hypothetical systems where these
54375         may be defined as macros but not available in libraries.
54376
54377 2007-10-27  Bruno Haible  <bruno@clisp.org>
54378
54379         * doc/gnulib.texi: Invoke @firstparagraphindent.
54380         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
54381         changes in gnulib.
54382         (Source changes): New section.
54383
54384 2007-10-26  Bruno Haible  <bruno@clisp.org>
54385
54386         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
54387         borrowed from autoconf.
54388
54389 2007-10-26  Bruno Haible  <bruno@clisp.org>
54390
54391         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
54392         strerror returned the empty string. Needed on HP-UX 11.00.
54393
54394 2007-10-24  Micah Cowan  <micah@cowan.name>
54395
54396         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
54397         * build-aux/bootstrap: Remove support for now-unnecessary option,
54398         --cvs-user, and envvars CVS_USER, CVS_RSH.
54399
54400 2007-10-24  Jim Meyering  <meyering@redhat.com>
54401
54402         Avoid diagnostics from sha1sum when there is no cached checksum.
54403         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
54404         if the po.s1 file hasn't been created yet.
54405
54406         * build-aux/bootstrap: Sync from coreutils:
54407         2007-10-24  Jim Meyering  <meyering@redhat.com>
54408         Get gnulib from the git repository, not from an obsolete cvs one.
54409         * build-aux/bootstrap: Suggestion from Micah Cowan.
54410         2007-10-04  Jim Meyering  <jim@meyering.net>
54411         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
54412         (update_po_files): Work also when there are no .po files in po/.
54413
54414 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
54415
54416         * README: Append ".git" to git and cg examples.
54417         Problem reported by Benoit Sigoure.
54418
54419 2007-10-23  Micah Cowan  <micah@cowan.name>
54420
54421         * users.txt: Add wget.
54422
54423 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54424
54425         Fix linking of some unistdio tests on FreeBSD.
54426         * modules/unistdio/u16-vsnprintf-tests
54427         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
54428         * modules/unistdio/u16-vsprintf-tests
54429         (test_u16_vsnprintf1_LDADD): Likewise.
54430         * modules/unistdio/u32-vsnprintf-tests
54431         (test_u32_vsnprintf1_LDADD): Likewise.
54432         * modules/unistdio/u32-vsprintf-tests
54433         (test_u32_vsprintf1_LDADD): Likewise.
54434         * modules/unistdio/u8-vsnprintf-tests
54435         (test_u8_vsnprintf1_LDADD): Likewise.
54436         * modules/unistdio/u8-vsprintf-tests
54437         (test_u8_vsprintf1_LDADD): Likewise.
54438         * modules/unistdio/ulc-vsnprintf-tests
54439         (test_ulc_vsnprintf1_LDADD): Likewise.
54440         * modules/unistdio/ulc-vsprintf-tests
54441         (test_ulc_vsprintf1_LDADD): Likewise.
54442
54443         Fix linking of some uniconv tests on FreeBSD.
54444         * modules/uniconv/u16-conv-from-enc-tests
54445         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
54446         * modules/uniconv/u16-conv-to-enc-tests
54447         (test_u16_conv_to_enc_LDADD): Likewise.
54448         * modules/uniconv/u16-strconv-from-enc-tests
54449         (test_u16_strconv_from_enc_LDADD): Likewise.
54450         * modules/uniconv/u16-strconv-to-enc-tests
54451         (test_u16_strconv_to_enc_LDADD): Likewise.
54452         * modules/uniconv/u32-conv-from-enc-tests
54453         (test_u32_conv_from_enc_LDADD): Likewise.
54454         * modules/uniconv/u32-conv-to-enc-tests
54455         (test_u32_conv_to_enc_LDADD): Likewise.
54456         * modules/uniconv/u32-strconv-from-enc-tests
54457         (test_u32_strconv_from_enc_LDADD): Likewise.
54458         * modules/uniconv/u32-strconv-to-enc-tests
54459         (test_u32_strconv_to_enc_LDADD): Likewise.
54460         * modules/uniconv/u8-conv-from-enc-tests
54461         (test_u8_conv_from_enc_LDADD): Likewise.
54462         * modules/uniconv/u8-conv-to-enc-tests
54463         (test_u8_conv_to_enc_LDADD): Likewise.
54464         * modules/uniconv/u8-strconv-from-enc-tests
54465         (test_u8_strconv_from_enc_LDADD): Likewise.
54466         * modules/uniconv/u8-strconv-to-enc-tests
54467         (test_u8_strconv_to_enc_LDADD): Likewise.
54468
54469 2007-10-22  Bruno Haible  <bruno@clisp.org>
54470
54471         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
54472         size.
54473
54474 2007-10-22  Eric Blake  <ebb9@byu.net>
54475
54476         Tweak x*printf documentation.
54477         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
54478         variable name and comments.
54479         Suggested by Bruno Haible.
54480
54481 2007-10-22  Bruno Haible  <bruno@clisp.org>
54482
54483         * lib/acl.c (copy_acl): Fix file name in comment.
54484
54485 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
54486
54487         Fix Tru64 problem with stdbool.h.
54488         * lib/stdbool.in.h (false, true):
54489         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
54490         Don't declare as an enum in this situation; it runs afoul of Tru64.
54491         Problem reported by Steven M. Schweda in
54492         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
54493
54494 2007-10-22  Eric Blake  <ebb9@byu.net>
54495
54496         Also wrap vf?printf.
54497         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
54498         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
54499         (xvprintf, xvfprintf): New functions.
54500
54501 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54502
54503         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
54504         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
54505
54506         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
54507         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
54508
54509 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
54510
54511         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
54512         by Bruno Haible.
54513
54514 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54515
54516         * lib/getloadavg.c
54517         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
54518         Undef `sys' after including sys/table.h, for Tru64 4.0D.
54519
54520         * tests/test-i-ring.c: Work for C89.
54521
54522 2007-10-22  Bruno Haible  <bruno@clisp.org>
54523
54524         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
54525         -1u, in preprocessor expression, so that we don't test for the bug
54526         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
54527         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
54528
54529 2007-10-22  Eric Blake  <ebb9@byu.net>
54530
54531         * tests/test-yesno.sh: Silence stderr during test.
54532
54533 2007-10-22  Simon Josefsson  <simon@josefsson.org>
54534
54535         * modules/crypto/gc-camellia: New file.
54536
54537         * m4/gc-camellia.m4: New file.
54538
54539         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
54540
54541         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
54542
54543 2007-10-22  Simon Josefsson  <simon@josefsson.org>
54544
54545         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
54546         --help to stdout.  Reported by sms@antinode.org (Steven
54547         M. Schweda).
54548
54549 2007-10-22  Simon Josefsson  <simon@josefsson.org>
54550
54551         * users.txt: Fix link to libksba.
54552
54553 2007-10-21  Ben Pfaff  <blp@gnu.org>
54554
54555         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
54556         round.c roundf implementation that depends on floorf and ceilf to
54557         be tested unconditionally.
54558
54559 2007-10-21  Ben Pfaff  <blp@gnu.org>
54560
54561         * m4/check-libm-func.m4: Removed.
54562         * m4/check-math-lib.m4: New file.
54563         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
54564         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
54565         definition and lack of AC_LIBOBJ([roundf]).
54566         * m4/roundl.m4: Ditto, and similarly for roundl.
54567         * modules/round: Reference new m4 file.
54568         * modules/roundf: Ditto.
54569         * modules/roundl: Ditto.
54570         * tests/test-round2.c (main): Use ROUND instead of round.
54571         Bug report from Bruno Haible.
54572
54573 2007-10-21  Bruno Haible  <bruno@clisp.org>
54574
54575         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
54576         context.
54577
54578 2007-10-21  Bruno Haible  <bruno@clisp.org>
54579
54580         * tests/test-wcwidth.c (main): Allow negative result for some control
54581         characters.
54582
54583         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
54584         Needed on OSF/1 5.1.
54585
54586 2007-10-21  Bruno Haible  <bruno@clisp.org>
54587
54588         * tests/test-floorf1.c: Include isnanf.h.
54589         (main): Use isnanf() instead of isnan().
54590         * tests/test-ceilf1.c: Include isnanf.h.
54591         (main): Use isnanf() instead of isnan().
54592         * tests/test-truncf1.c: Include isnanf.h.
54593         (main): Use isnanf() instead of isnan().
54594         * tests/test-roundf1.c: Include isnanf.h.
54595         (main): Use isnanf() instead of isnan().
54596
54597 2007-10-21  Eric Blake  <ebb9@byu.net>
54598
54599         * users.txt: Update URL for m4.
54600
54601 2007-10-21  Bruno Haible  <bruno@clisp.org>
54602
54603         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
54604
54605 2007-10-21  Bruno Haible  <bruno@clisp.org>
54606
54607         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
54608         Git's management files if the CVS files are not present.
54609
54610 2007-10-20  Bruno Haible  <bruno@clisp.org>
54611
54612         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
54613         gcc-3.4.x.
54614
54615 2007-10-20  Ben Pfaff  <blp@gnu.org>
54616
54617         * lib/math.in.h: Declare round, roundf, roundl if we are providing
54618         implementations.
54619         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
54620         * lib/round.c: New file.
54621         * lib/roundf.c: New file.
54622         * lib/roundl.c: New file.
54623         * m4/round.m4: New file.
54624         * m4/roundf.m4: New file.
54625         * m4/roundl.m4: New file.
54626         * m4/check-libm-func-m4: New file.
54627         * modules/math: Replace round, roundf, roundl related @VARS@ in
54628         math.in.h.
54629         * modules/round: New file.
54630         * modules/round-tests: New file.
54631         * modules/roundf: New file.
54632         * modules/roundf-tests: New file.
54633         * modules/roundl: New file.
54634         * modules/roundl-tests: New file.
54635         * tests/test-round1.c: New file.
54636         * tests/test-round2.c: New file.
54637         * tests/test-roundf1.c: New file.
54638         * tests/test-roundf2.c: New file.
54639         * tests/test-roundl.c: New file.
54640         * doc/functions/round.texi: Mention round module.
54641         * doc/functions/roundf.texi: Mention roundf module.
54642         * doc/functions/roundl.texi: Mention roundl module.
54643         * MODULES.html.sh: Mention new modules.
54644         Thanks to Bruno Haible for suggestions.
54645
54646 2007-10-20  Jim Meyering  <meyering@redhat.com>
54647
54648         * lib/xprintf.c: Include <config.h> unconditionally.
54649
54650         Change xprintf's license to GPL.
54651         * modules/xprintf (License): s/LGPL/GPL/, since this module
54652         depends on modules (exit and exitfail) which are GPL.
54653         Suggestion from Bruno Haible.
54654
54655         xprintf fixes.
54656         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
54657         Use a clearer diagnostic.
54658         Patch from Bruno Haible.
54659
54660 2007-10-20  Bruno Haible  <bruno@clisp.org>
54661
54662         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
54663         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
54664         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
54665
54666 2007-10-20  Bruno Haible  <bruno@clisp.org>
54667
54668         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
54669         precision in the comparison result > x - 1 or similar.
54670         * tests/test-ceilf2.c (correct_result_p): Likewise.
54671         * tests/test-truncf2.c (correct_result_p): Likewise.
54672         * tests/test-trunc2.c (correct_result_p): Likewise.
54673         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
54674
54675 2007-10-20  Bruno Haible  <bruno@clisp.org>
54676
54677         * modules/ceil: New file.
54678         * m4/ceil.m4: New file.
54679         * doc/functions/ceil.texi: Mention the 'ceil' module.
54680
54681 2007-10-20  Bruno Haible  <bruno@clisp.org>
54682
54683         * modules/floor: New file.
54684         * m4/floor.m4: New file.
54685         * doc/functions/floor.texi: Mention the 'floor' module.
54686
54687 2007-10-20  Bruno Haible  <bruno@clisp.org>
54688
54689         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
54690         of %a.
54691         * modules/floorf-tests (Depends-on): Likewise.
54692         * modules/truncf-tests (Depends-on): Likewise.
54693         * modules/trunc-tests (Depends-on): Likewise.
54694         Reported by Ben Pfaff.
54695
54696 2007-10-19  Jim Meyering  <meyering@redhat.com>
54697
54698         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
54699         Don't bother testing specific errno values.  Just test ferror.
54700
54701         New module: xprintf
54702         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
54703
54704 2007-10-19  Bruno Haible  <bruno@clisp.org>
54705
54706         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
54707         syntax.
54708         * modules/javaexec (Makefile.am): Likewise.
54709         * modules/relocatable-prog (Makefile.am): Likewise.
54710         Suggested by Jim Meyering.
54711
54712 2007-10-18  Bruno Haible  <bruno@clisp.org>
54713
54714         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
54715         Reported by Jim Meyering.
54716
54717 2007-10-18  Eric Blake  <ebb9@byu.net>
54718
54719         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
54720
54721 2007-10-18  Bruno Haible  <bruno@clisp.org>
54722
54723         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
54724         the format string into writable memory. Needed in Fortify conditions.
54725
54726 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
54727             Bruno Haible  <bruno@clisp.org>
54728
54729         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
54730         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
54731         * modules/trim (Depends-on): Add mbchar.
54732         (configure.ac): Add gl_FUNC_MBRTOWC.
54733         (Makefile.am): Augment lib_SOURCES.
54734
54735 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
54736
54737         Modify glob.c to use fstatat and dirfd, to simplify it.
54738         Suggested by Eric Blake.
54739         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
54740         Don't include <stdbool.h>; not used.
54741         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
54742         (link_exists_p): Simplify implementation, since we can now assume
54743         dirfd and fstatat.
54744         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
54745
54746 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54747
54748         * gnulib-tool (func_get_dependencies): Fix sed script to
54749         match only tests.
54750
54751 2007-10-17  Bruno Haible  <bruno@clisp.org>
54752
54753         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
54754         allow locale names without encoding suffix.
54755         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
54756         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
54757
54758 2007-10-16  Bruno Haible  <bruno@clisp.org>
54759
54760         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
54761         * lib/getgroups.c (getgroups): Likewise.
54762         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
54763
54764 2007-10-16  Bruno Haible  <bruno@clisp.org>
54765
54766         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
54767         * modules/malloc-posix (License): Likewise.
54768         * modules/realloc-posix (License): Likewise.
54769         * modules/calloc-posix (License): Likewise.
54770         * modules/intprops (License): Change from GPL to LGPL, with
54771         Paul Eggert's approval.
54772
54773 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
54774
54775         Merge glibc changes into lib/glob.c.
54776
54777         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
54778         2007-10-15 04:59:03 UTC.  Here are the changes:
54779
54780         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
54781
54782         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
54783
54784         * lib/glob.c: Add some branch prediction throughout.
54785
54786         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
54787
54788         [BZ #5103]
54789         * lib/glob.c (glob): Recognize patterns starting \/.
54790
54791         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
54792
54793         [BZ #3996]
54794         * lib/glob.c (attribute_hidden): Define if not defined.
54795         (glob): Unescape dirname, filename or username when needed and not
54796         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
54797         is NULL.  Handle unescaped [ in pattern without closing ].
54798         Don't pass GLOB_CHECK down to recursive glob for directories.
54799         (__glob_pattern_type): New function.
54800         (__glob_pattern_p): Implement using __glob_pattern_type.
54801         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
54802         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
54803         Remove unreachable code.
54804
54805         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
54806
54807         * lib/glob.c (glob_in_dir): Add some comments and asserts to
54808         explain why there are no leaks.
54809
54810         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
54811
54812         [BZ #3253]
54813         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
54814         time, rather allocate increasingly bigger arrays of pointers, if
54815         possible with alloca, if too large with malloc.
54816
54817 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
54818
54819         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
54820         Problem reported by H.Merijn Brand in
54821         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
54822         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
54823         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
54824
54825 2007-10-15  Bruno Haible  <bruno@clisp.org>
54826
54827         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
54828         with explicit rpl_ prefix.
54829         * lib/fopen.c (fopen): Likewise.
54830         * lib/freopen.c (freopen): Likewise.
54831         * lib/iconv.c (iconv): Likewise.
54832         * lib/iconv_close.c (iconv_close): Likewise.
54833
54834 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54835
54836         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
54837
54838 2007-10-15  Bruno Haible  <bruno@clisp.org>
54839
54840         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
54841         <stddef.h> instead of <stdlib.h> since we only need NULL.
54842         Reported by Ben Pfaff <blp@cs.stanford.edu>.
54843
54844 2007-10-15  Bruno Haible  <bruno@clisp.org>
54845
54846         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
54847         Replace paragraph talking about LIBOBJS.
54848         Reported by Colin Watson <cjwatson@debian.org>.
54849
54850 2007-10-15  Bruno Haible  <bruno@clisp.org>
54851
54852         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
54853         <stdlib.h> before using NULL.
54854
54855 2007-10-15  Simon Josefsson  <simon@josefsson.org>
54856
54857         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
54858         Reported by Albert Chin <china@thewrittenword.com>.
54859
54860 2007-10-14  Bruno Haible  <bruno@clisp.org>
54861
54862         * modules/iconv_open-utf-tests: New file.
54863         * tests/test-iconv-utf.c: New file.
54864
54865         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
54866         * modules/iconv_open-utf: New file.
54867         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
54868         (iconv, iconv_close): New declarations.
54869         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
54870         be defined.
54871         (iconv_open): Add special handling of conversion between UTF-8 and
54872         UTF-{16,32}{BE,LE}.
54873         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
54874         * lib/iconv_close.c: New file.
54875         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
54876         gl_FUNC_ICONV_OPEN.
54877         (gl_FUNC_ICONV_OPEN): Use it.
54878         (gl_FUNC_ICONV_OPEN_UTF): New macro.
54879         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
54880         and REPLACE_ICONV_UTF.
54881         * modules/iconv_open (Depends-on): Add c-strcase.
54882         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
54883         ICONV_CONST.
54884         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
54885
54886 2007-10-13  Albert Chin  <china@thewrittenword.com>
54887             Bruno Haible  <bruno@clisp.org>
54888
54889         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
54890         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
54891
54892 2007-10-13  Bruno Haible  <bruno@clisp.org>
54893
54894         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
54895         defined, use the ISO C99 inline semantics.
54896         * lib/argp.h (ARGP_EI): Likewise.
54897
54898 2007-10-13  Bruno Haible  <bruno@clisp.org>
54899
54900         Handle 'inline' change in gcc 4.3.0.
54901         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
54902         argp_fmtstream_write, argp_fmtstream_set_lmargin,
54903         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
54904         argp_fmtstream_point): Disable 'extern' declaration if the function
54905         definition is going to be provided inline.
54906         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
54907         semantics, not the ISO C99 inline semantics.
54908         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
54909         'extern' declaration if the function definition is going to be provided
54910         inline.
54911         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
54912         the GNU C inline semantics, not the ISO C99 inline semantics. With
54913         GCC 4.2, avoid a warning.
54914
54915 2007-10-13  Bruno Haible  <bruno@clisp.org>
54916
54917         * lib/freading.h (freading): Enable the use of __freading for
54918         glibc >= 2.7.
54919         * lib/freading.c (freading): Likewise.
54920
54921 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
54922
54923         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
54924         "warning: C99 inline functions are not supported; using GNU89".
54925
54926 2007-10-12  Bruno Haible  <bruno@clisp.org>
54927
54928         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
54929         of 2.
54930         * tests/test-ceilf2.c: New file.
54931         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
54932
54933         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
54934         * modules/ceilf-tests: Update.
54935
54936 2007-10-12  Bruno Haible  <bruno@clisp.org>
54937
54938         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
54939         of 2.
54940         * tests/test-floorf2.c: New file.
54941         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
54942
54943         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
54944         * modules/floorf-tests: Update.
54945
54946 2007-10-12  Bruno Haible  <bruno@clisp.org>
54947
54948         * tests/test-trunc2.c: New file.
54949         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
54950
54951         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
54952         * modules/trunc-tests: Update.
54953
54954 2007-10-12  Bruno Haible  <bruno@clisp.org>
54955
54956         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
54957         of 2.
54958         * tests/test-truncf2.c: New file.
54959         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
54960
54961         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
54962         * modules/truncf-tests: Update.
54963
54964 2007-10-11  Eric Blake  <ebb9@byu.net>
54965
54966         Don't claim strerror is broken on Interix.
54967         * doc/functions/strerror.texi (strerror): Known broken systems are
54968         now Solaris 8, and not Interix.
54969         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
54970         Interix on cross-compile.
54971         Reported by Martin Koeppe in
54972         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
54973
54974 2007-10-11  Bruno Haible  <bruno@clisp.org>
54975
54976         * modules/i-ring-tests: New file.
54977         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
54978         instead of assert.
54979
54980 2007-10-11  Bruno Haible  <bruno@clisp.org>
54981
54982         * modules/filenamecat-tests: New file.
54983         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
54984         * lib/filenamecat.c: Remove test code.
54985
54986 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
54987
54988         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
54989
54990         * lib/strerror.c: Include <string.h> always, to test interface,
54991         and to remove the need for the dummy.
54992         Include intprops.h to compute width instead of doing it ourselves
54993         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
54994         (strerror): Define it to return NULL if there's no system strerror.
54995         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
54996         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
54997         ancient pre-strerror Unix systems well any more.  Saying "unknown
54998         system error" is enough.
54999         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
55000         simpler strerror.c implementation.
55001         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
55002         Simplify the tests to reflect the simpler strerror implementation.
55003         * modules/strerror (Depends-on): Add intprops.
55004
55005 2007-10-09  Eric Blake  <ebb9@byu.net>
55006
55007         Silence test-fpending.
55008         * modules/fpending-tests (Files): Add wrapper script.
55009         * tests/test-fpending.sh: New file.
55010
55011 2007-10-09  Bruno Haible  <bruno@clisp.org>
55012
55013         * MODULES.html.sh (func_module): Don't create a hyperlink for
55014         function names like 'printf_frexp'.
55015         (Misc): Add crc, memxor.
55016         (Characteristics of floating types): New section.
55017         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
55018         isnanf-nolibm, signbit, trunc, truncf, truncl.
55019         (Enhancements for ISO C 99 functions): New subsection Input/output.
55020         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
55021         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
55022         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
55023         (Compatibility checks for POSIX:2001 functions): Add clock-time.
55024         (Enhancements for POSIX:2001 functions): Add chdir-long.
55025         (File system functions): Add areadlink, chdir-safer, read-file.
55026         Remove cycle-check.
55027         (File system as inode set): New section.
55028         (Date and time): Add gethrxtime.
55029         (Multithreading): Add openmp.
55030         (Internationalization functions): Add localename.
55031         (Unicode string functions): Add unistr/u*-mbsnlen.
55032         (Support for maintaining and releasing projects): Add git-version-gen.
55033         (Lone files): Remove directories.
55034
55035 2007-10-08  Ben Pfaff  <blp@gnu.org>
55036
55037         * lib/xmalloca.h: Fix typo in comment.
55038
55039 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
55040
55041         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
55042         when avoiding problems with integer overflow.  Use a portable test
55043         instead.
55044
55045 2007-10-08  Simon Josefsson  <simon@josefsson.org>
55046
55047         * modules/dummy (License): Change to LGPLv2+.
55048         * modules/float (License): Likewise
55049         * modules/realloc (License): Likewise
55050         * modules/stdlib (License): Likewise
55051
55052 2007-10-07  Bruno Haible  <bruno@clisp.org>
55053
55054         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
55055         * floor.c (TWO_MANT_DIG): Likewise.
55056         * ceil.c (TWO_MANT_DIG): Likewise.
55057         Reported by Ben Pfaff.
55058
55059 2007-10-07  Bruno Haible  <bruno@clisp.org>
55060
55061         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
55062         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
55063         * lib/frexp.c (FUNC): Likewise.
55064         * lib/printf-frexp.h (printf_frexp): Likewise.
55065         * lib/printf-frexpl.h (printf_frexpl): Likewise.
55066         * lib/printf-frexp.c (FUNC): Likewise.
55067         Suggested by Jim Meyering.
55068
55069 2007-10-07  Jim Meyering  <meyering@redhat.com>
55070
55071         Make xnanosleep's integer overflow test more robust.
55072         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
55073         so that gcc-4.3.0 doesn't optimize away this test for overflow.
55074
55075 2007-10-07  Bruno Haible  <bruno@clisp.org>
55076
55077         * NEWS: Mention the license change.
55078
55079         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
55080         abbreviations in the modules files.
55081
55082         Change copyright notice from GPLv2+ to GPLv3+.
55083         * README: Change copyright notice.
55084         * MODULES.html.sh: Likewise.
55085         * build-aux/bootstrap.conf: Likewise.
55086         * build-aux/config.libpath: Likewise.
55087         * build-aux/csharpcomp.sh.in: Likewise.
55088         * build-aux/csharpexec.sh.in: Likewise.
55089         * build-aux/install-reloc: Likewise.
55090         * build-aux/javacomp.sh.in: Likewise.
55091         * build-aux/javaexec.sh.in: Likewise.
55092         * build-aux/ldd.sh.in: Likewise.
55093         * build-aux/reloc-ldflags: Likewise.
55094         * build-aux/relocatable.sh.in: Likewise.
55095         * build-aux/x-to-1.in: Likewise.
55096         * check-module: Likewise.
55097         * config/srclistvars.sh: Likewise.
55098         * gnulib-tool: Likewise.
55099         * lib/acl-internal.h: Likewise.
55100         * lib/acl.c: Likewise.
55101         * lib/acl.h: Likewise.
55102         * lib/acl_entries.c: Likewise.
55103         * lib/areadlink-with-size.c: Likewise.
55104         * lib/areadlink.c: Likewise.
55105         * lib/areadlink.h: Likewise.
55106         * lib/argmatch.c: Likewise.
55107         * lib/argmatch.h: Likewise.
55108         * lib/argp-ba.c: Likewise.
55109         * lib/argp-eexst.c: Likewise.
55110         * lib/argp-fmtstream.c: Likewise.
55111         * lib/argp-fmtstream.h: Likewise.
55112         * lib/argp-fs-xinl.c: Likewise.
55113         * lib/argp-help.c: Likewise.
55114         * lib/argp-namefrob.h: Likewise.
55115         * lib/argp-parse.c: Likewise.
55116         * lib/argp-pin.c: Likewise.
55117         * lib/argp-pv.c: Likewise.
55118         * lib/argp-pvh.c: Likewise.
55119         * lib/argp-xinl.c: Likewise.
55120         * lib/argp.h: Likewise.
55121         * lib/at-func.c: Likewise.
55122         * lib/atanl.c: Likewise.
55123         * lib/backupfile.c: Likewise.
55124         * lib/backupfile.h: Likewise.
55125         * lib/basename.c: Likewise.
55126         * lib/binary-io.h: Likewise.
55127         * lib/byteswap.in.h: Likewise.
55128         * lib/c-stack.c: Likewise.
55129         * lib/c-stack.h: Likewise.
55130         * lib/c-strcasestr.c: Likewise.
55131         * lib/c-strcasestr.h: Likewise.
55132         * lib/c-strstr.c: Likewise.
55133         * lib/c-strstr.h: Likewise.
55134         * lib/c-strtod.c: Likewise.
55135         * lib/calloc.c: Likewise.
55136         * lib/canon-host.c: Likewise.
55137         * lib/canon-host.h: Likewise.
55138         * lib/canonicalize-lgpl.c: Likewise.
55139         * lib/canonicalize.c: Likewise.
55140         * lib/canonicalize.h: Likewise.
55141         * lib/ceil.c: Likewise.
55142         * lib/ceilf.c: Likewise.
55143         * lib/ceill.c: Likewise.
55144         * lib/chdir-long.c: Likewise.
55145         * lib/chdir-long.h: Likewise.
55146         * lib/chdir-safer.c: Likewise.
55147         * lib/chdir-safer.h: Likewise.
55148         * lib/chown.c: Likewise.
55149         * lib/classpath.c: Likewise.
55150         * lib/classpath.h: Likewise.
55151         * lib/clean-temp.c: Likewise.
55152         * lib/clean-temp.h: Likewise.
55153         * lib/cloexec.c: Likewise.
55154         * lib/close-stream.c: Likewise.
55155         * lib/closein.c: Likewise.
55156         * lib/closein.h: Likewise.
55157         * lib/closeout.c: Likewise.
55158         * lib/closeout.h: Likewise.
55159         * lib/concat-filename.c: Likewise.
55160         * lib/copy-file.c: Likewise.
55161         * lib/copy-file.h: Likewise.
55162         * lib/count-one-bits.h: Likewise.
55163         * lib/crc.c: Likewise.
55164         * lib/crc.h: Likewise.
55165         * lib/creat-safer.c: Likewise.
55166         * lib/csharpcomp.c: Likewise.
55167         * lib/csharpcomp.h: Likewise.
55168         * lib/csharpexec.c: Likewise.
55169         * lib/csharpexec.h: Likewise.
55170         * lib/cycle-check.c: Likewise.
55171         * lib/cycle-check.h: Likewise.
55172         * lib/diacrit.c: Likewise.
55173         * lib/diacrit.h: Likewise.
55174         * lib/diffseq.h: Likewise.
55175         * lib/dirchownmod.c: Likewise.
55176         * lib/dirent.in.h: Likewise.
55177         * lib/dirfd.c: Likewise.
55178         * lib/dirfd.h: Likewise.
55179         * lib/dirname.c: Likewise.
55180         * lib/dirname.h: Likewise.
55181         * lib/dummy.c: Likewise.
55182         * lib/dup-safer.c: Likewise.
55183         * lib/dup2.c: Likewise.
55184         * lib/eealloc.h: Likewise.
55185         * lib/error.c: Likewise.
55186         * lib/error.h: Likewise.
55187         * lib/euidaccess.c: Likewise.
55188         * lib/exclude.c: Likewise.
55189         * lib/exclude.h: Likewise.
55190         * lib/execute.c: Likewise.
55191         * lib/execute.h: Likewise.
55192         * lib/exitfail.c: Likewise.
55193         * lib/exitfail.h: Likewise.
55194         * lib/expl.c: Likewise.
55195         * lib/fatal-signal.c: Likewise.
55196         * lib/fatal-signal.h: Likewise.
55197         * lib/fbufmode.c: Likewise.
55198         * lib/fbufmode.h: Likewise.
55199         * lib/fchdir.c: Likewise.
55200         * lib/fchmodat.c: Likewise.
55201         * lib/fchownat.c: Likewise.
55202         * lib/fcntl--.h: Likewise.
55203         * lib/fcntl-safer.h: Likewise.
55204         * lib/fcntl.in.h: Likewise.
55205         * lib/fd-safer.c: Likewise.
55206         * lib/fflush.c: Likewise.
55207         * lib/file-has-acl.c: Likewise.
55208         * lib/file-set.c: Likewise.
55209         * lib/file-type.c: Likewise.
55210         * lib/file-type.h: Likewise.
55211         * lib/fileblocks.c: Likewise.
55212         * lib/filemode.c: Likewise.
55213         * lib/filemode.h: Likewise.
55214         * lib/filename.h: Likewise.
55215         * lib/filenamecat.c: Likewise.
55216         * lib/filenamecat.h: Likewise.
55217         * lib/findprog.c: Likewise.
55218         * lib/findprog.h: Likewise.
55219         * lib/float.in.h: Likewise.
55220         * lib/floor.c: Likewise.
55221         * lib/floorf.c: Likewise.
55222         * lib/floorl.c: Likewise.
55223         * lib/fopen-safer.c: Likewise.
55224         * lib/fopen.c: Likewise.
55225         * lib/fpending.c: Likewise.
55226         * lib/fpending.h: Likewise.
55227         * lib/fprintf.c: Likewise.
55228         * lib/fprintftime.h: Likewise.
55229         * lib/fpucw.h: Likewise.
55230         * lib/fpurge.c: Likewise.
55231         * lib/fpurge.h: Likewise.
55232         * lib/freadable.c: Likewise.
55233         * lib/freadable.h: Likewise.
55234         * lib/freadahead.c: Likewise.
55235         * lib/freadahead.h: Likewise.
55236         * lib/freading.c: Likewise.
55237         * lib/freading.h: Likewise.
55238         * lib/free.c: Likewise.
55239         * lib/freopen.c: Likewise.
55240         * lib/frexp.c: Likewise.
55241         * lib/frexpl.c: Likewise.
55242         * lib/fseek.c: Likewise.
55243         * lib/fseterr.c: Likewise.
55244         * lib/fseterr.h: Likewise.
55245         * lib/fstatat.c: Likewise.
55246         * lib/fstrcmp.c: Likewise.
55247         * lib/fstrcmp.h: Likewise.
55248         * lib/fsusage.c: Likewise.
55249         * lib/fsusage.h: Likewise.
55250         * lib/ftell.c: Likewise.
55251         * lib/ftello.c: Likewise.
55252         * lib/fts-cycle.c: Likewise.
55253         * lib/fts.c: Likewise.
55254         * lib/fts_.h: Likewise.
55255         * lib/full-read.c: Likewise.
55256         * lib/full-read.h: Likewise.
55257         * lib/full-write.c: Likewise.
55258         * lib/full-write.h: Likewise.
55259         * lib/fwritable.c: Likewise.
55260         * lib/fwritable.h: Likewise.
55261         * lib/fwriteerror.c: Likewise.
55262         * lib/fwriteerror.h: Likewise.
55263         * lib/fwriting.c: Likewise.
55264         * lib/fwriting.h: Likewise.
55265         * lib/gcd.c: Likewise.
55266         * lib/gcd.h: Likewise.
55267         * lib/getcwd.c: Likewise.
55268         * lib/getdate.h: Likewise.
55269         * lib/getdate.y: Likewise.
55270         * lib/getdomainname.c: Likewise.
55271         * lib/getdomainname.h: Likewise.
55272         * lib/getgroups.c: Likewise.
55273         * lib/gethostname.c: Likewise.
55274         * lib/gethrxtime.c: Likewise.
55275         * lib/gethrxtime.h: Likewise.
55276         * lib/getloadavg.c: Likewise.
55277         * lib/getndelim2.c: Likewise.
55278         * lib/getndelim2.h: Likewise.
55279         * lib/getnline.c: Likewise.
55280         * lib/getnline.h: Likewise.
55281         * lib/getopt.c: Likewise.
55282         * lib/getopt.in.h: Likewise.
55283         * lib/getopt1.c: Likewise.
55284         * lib/getopt_int.h: Likewise.
55285         * lib/getpagesize.h: Likewise.
55286         * lib/getsubopt.c: Likewise.
55287         * lib/gettime.c: Likewise.
55288         * lib/getugroups.c: Likewise.
55289         * lib/getugroups.h: Likewise.
55290         * lib/getusershell.c: Likewise.
55291         * lib/gl_anyavltree_list1.h: Likewise.
55292         * lib/gl_anyavltree_list2.h: Likewise.
55293         * lib/gl_anyhash_list1.h: Likewise.
55294         * lib/gl_anyhash_list2.h: Likewise.
55295         * lib/gl_anylinked_list1.h: Likewise.
55296         * lib/gl_anylinked_list2.h: Likewise.
55297         * lib/gl_anyrbtree_list1.h: Likewise.
55298         * lib/gl_anyrbtree_list2.h: Likewise.
55299         * lib/gl_anytree_list1.h: Likewise.
55300         * lib/gl_anytree_list2.h: Likewise.
55301         * lib/gl_anytree_oset.h: Likewise.
55302         * lib/gl_anytreehash_list1.h: Likewise.
55303         * lib/gl_anytreehash_list2.h: Likewise.
55304         * lib/gl_array_list.c: Likewise.
55305         * lib/gl_array_list.h: Likewise.
55306         * lib/gl_array_oset.c: Likewise.
55307         * lib/gl_array_oset.h: Likewise.
55308         * lib/gl_avltree_list.c: Likewise.
55309         * lib/gl_avltree_list.h: Likewise.
55310         * lib/gl_avltree_oset.c: Likewise.
55311         * lib/gl_avltree_oset.h: Likewise.
55312         * lib/gl_avltreehash_list.c: Likewise.
55313         * lib/gl_avltreehash_list.h: Likewise.
55314         * lib/gl_carray_list.c: Likewise.
55315         * lib/gl_carray_list.h: Likewise.
55316         * lib/gl_linked_list.c: Likewise.
55317         * lib/gl_linked_list.h: Likewise.
55318         * lib/gl_linkedhash_list.c: Likewise.
55319         * lib/gl_linkedhash_list.h: Likewise.
55320         * lib/gl_list.c: Likewise.
55321         * lib/gl_list.h: Likewise.
55322         * lib/gl_oset.c: Likewise.
55323         * lib/gl_oset.h: Likewise.
55324         * lib/gl_rbtree_list.c: Likewise.
55325         * lib/gl_rbtree_list.h: Likewise.
55326         * lib/gl_rbtree_oset.c: Likewise.
55327         * lib/gl_rbtree_oset.h: Likewise.
55328         * lib/gl_rbtreehash_list.c: Likewise.
55329         * lib/gl_rbtreehash_list.h: Likewise.
55330         * lib/gl_sublist.c: Likewise.
55331         * lib/gl_sublist.h: Likewise.
55332         * lib/group-member.c: Likewise.
55333         * lib/group-member.h: Likewise.
55334         * lib/hard-locale.c: Likewise.
55335         * lib/hard-locale.h: Likewise.
55336         * lib/hash-pjw.c: Likewise.
55337         * lib/hash-pjw.h: Likewise.
55338         * lib/hash-triple.c: Likewise.
55339         * lib/hash.c: Likewise.
55340         * lib/hash.h: Likewise.
55341         * lib/human.c: Likewise.
55342         * lib/human.h: Likewise.
55343         * lib/i-ring.c: Likewise.
55344         * lib/i-ring.h: Likewise.
55345         * lib/idcache.c: Likewise.
55346         * lib/imaxabs.c: Likewise.
55347         * lib/imaxdiv.c: Likewise.
55348         * lib/inet_pton.c: Likewise.
55349         * lib/inet_pton.h: Likewise.
55350         * lib/intprops.h: Likewise.
55351         * lib/inttostr.c: Likewise.
55352         * lib/inttostr.h: Likewise.
55353         * lib/inttypes.in.h: Likewise.
55354         * lib/isapipe.c: Likewise.
55355         * lib/isdir.c: Likewise.
55356         * lib/isnan.c: Likewise.
55357         * lib/isnan.h: Likewise.
55358         * lib/isnanf.c: Likewise.
55359         * lib/isnanf.h: Likewise.
55360         * lib/isnanl-nolibm.h: Likewise.
55361         * lib/isnanl.c: Likewise.
55362         * lib/isnanl.h: Likewise.
55363         * lib/javacomp.c: Likewise.
55364         * lib/javacomp.h: Likewise.
55365         * lib/javaexec.c: Likewise.
55366         * lib/javaexec.h: Likewise.
55367         * lib/javaversion.c: Likewise.
55368         * lib/javaversion.h: Likewise.
55369         * lib/javaversion.java: Likewise.
55370         * lib/lbrkprop.h: Likewise.
55371         * lib/lchmod.h: Likewise.
55372         * lib/lchown.c: Likewise.
55373         * lib/ldexpl.c: Likewise.
55374         * lib/linebreak.c: Likewise.
55375         * lib/linebreak.h: Likewise.
55376         * lib/linebuffer.c: Likewise.
55377         * lib/linebuffer.h: Likewise.
55378         * lib/locale.in.h: Likewise.
55379         * lib/logl.c: Likewise.
55380         * lib/long-options.c: Likewise.
55381         * lib/long-options.h: Likewise.
55382         * lib/lstat.c: Likewise.
55383         * lib/lstat.h: Likewise.
55384         * lib/math.in.h: Likewise.
55385         * lib/mbchar.c: Likewise.
55386         * lib/mbchar.h: Likewise.
55387         * lib/mbfile.h: Likewise.
55388         * lib/mbiter.h: Likewise.
55389         * lib/mbscasecmp.c: Likewise.
55390         * lib/mbscasestr.c: Likewise.
55391         * lib/mbschr.c: Likewise.
55392         * lib/mbscspn.c: Likewise.
55393         * lib/mbslen.c: Likewise.
55394         * lib/mbsncasecmp.c: Likewise.
55395         * lib/mbsnlen.c: Likewise.
55396         * lib/mbspbrk.c: Likewise.
55397         * lib/mbspcasecmp.c: Likewise.
55398         * lib/mbsrchr.c: Likewise.
55399         * lib/mbssep.c: Likewise.
55400         * lib/mbsspn.c: Likewise.
55401         * lib/mbsstr.c: Likewise.
55402         * lib/mbstok_r.c: Likewise.
55403         * lib/mbswidth.c: Likewise.
55404         * lib/mbswidth.h: Likewise.
55405         * lib/mbuiter.h: Likewise.
55406         * lib/memcasecmp.c: Likewise.
55407         * lib/memcasecmp.h: Likewise.
55408         * lib/memchr.c: Likewise.
55409         * lib/memcmp.c: Likewise.
55410         * lib/memcoll.c: Likewise.
55411         * lib/memcoll.h: Likewise.
55412         * lib/memcpy.c: Likewise.
55413         * lib/memrchr.c: Likewise.
55414         * lib/mkancesdirs.c: Likewise.
55415         * lib/mkdir-p.c: Likewise.
55416         * lib/mkdir-p.h: Likewise.
55417         * lib/mkdir.c: Likewise.
55418         * lib/mkdirat.c: Likewise.
55419         * lib/mkdtemp.c: Likewise.
55420         * lib/mkstemp-safer.c: Likewise.
55421         * lib/mkstemp.c: Likewise.
55422         * lib/modechange.c: Likewise.
55423         * lib/modechange.h: Likewise.
55424         * lib/mountlist.c: Likewise.
55425         * lib/mountlist.h: Likewise.
55426         * lib/mpsort.c: Likewise.
55427         * lib/nanosleep.c: Likewise.
55428         * lib/obstack.c: Likewise.
55429         * lib/obstack.h: Likewise.
55430         * lib/open-safer.c: Likewise.
55431         * lib/open.c: Likewise.
55432         * lib/openat-die.c: Likewise.
55433         * lib/openat-priv.h: Likewise.
55434         * lib/openat-proc.c: Likewise.
55435         * lib/openat.c: Likewise.
55436         * lib/openat.h: Likewise.
55437         * lib/pagealign_alloc.c: Likewise.
55438         * lib/pagealign_alloc.h: Likewise.
55439         * lib/physmem.c: Likewise.
55440         * lib/physmem.h: Likewise.
55441         * lib/pipe-safer.c: Likewise.
55442         * lib/pipe.c: Likewise.
55443         * lib/pipe.h: Likewise.
55444         * lib/posixtm.c: Likewise.
55445         * lib/posixtm.h: Likewise.
55446         * lib/posixver.c: Likewise.
55447         * lib/printf-frexp.c: Likewise.
55448         * lib/printf-frexp.h: Likewise.
55449         * lib/printf-frexpl.c: Likewise.
55450         * lib/printf-frexpl.h: Likewise.
55451         * lib/printf.c: Likewise.
55452         * lib/progname.c: Likewise.
55453         * lib/progname.h: Likewise.
55454         * lib/progreloc.c: Likewise.
55455         * lib/putenv.c: Likewise.
55456         * lib/quote.c: Likewise.
55457         * lib/quote.h: Likewise.
55458         * lib/quotearg.c: Likewise.
55459         * lib/quotearg.h: Likewise.
55460         * lib/raise.c: Likewise.
55461         * lib/readline.c: Likewise.
55462         * lib/readline.h: Likewise.
55463         * lib/readlink.c: Likewise.
55464         * lib/readtokens.c: Likewise.
55465         * lib/readtokens.h: Likewise.
55466         * lib/readtokens0.c: Likewise.
55467         * lib/readtokens0.h: Likewise.
55468         * lib/readutmp.c: Likewise.
55469         * lib/readutmp.h: Likewise.
55470         * lib/realloc.c: Likewise.
55471         * lib/relocwrapper.c: Likewise.
55472         * lib/rename-dest-slash.c: Likewise.
55473         * lib/rename.c: Likewise.
55474         * lib/rmdir.c: Likewise.
55475         * lib/rpmatch.c: Likewise.
55476         * lib/safe-read.c: Likewise.
55477         * lib/safe-read.h: Likewise.
55478         * lib/safe-write.c: Likewise.
55479         * lib/safe-write.h: Likewise.
55480         * lib/same-inode.h: Likewise.
55481         * lib/same.c: Likewise.
55482         * lib/same.h: Likewise.
55483         * lib/save-cwd.c: Likewise.
55484         * lib/save-cwd.h: Likewise.
55485         * lib/savedir.c: Likewise.
55486         * lib/savedir.h: Likewise.
55487         * lib/savewd.c: Likewise.
55488         * lib/savewd.h: Likewise.
55489         * lib/search.in.h: Likewise.
55490         * lib/setenv.c: Likewise.
55491         * lib/setenv.h: Likewise.
55492         * lib/settime.c: Likewise.
55493         * lib/sh-quote.c: Likewise.
55494         * lib/sh-quote.h: Likewise.
55495         * lib/sig2str.c: Likewise.
55496         * lib/sig2str.h: Likewise.
55497         * lib/signal.in.h: Likewise.
55498         * lib/signbitd.c: Likewise.
55499         * lib/signbitf.c: Likewise.
55500         * lib/signbitl.c: Likewise.
55501         * lib/sigprocmask.c: Likewise.
55502         * lib/sincosl.c: Likewise.
55503         * lib/sleep.c: Likewise.
55504         * lib/sprintf.c: Likewise.
55505         * lib/sqrtl.c: Likewise.
55506         * lib/stat-time.h: Likewise.
55507         * lib/stdio--.h: Likewise.
55508         * lib/stdio-safer.h: Likewise.
55509         * lib/stdlib--.h: Likewise.
55510         * lib/stdlib-safer.h: Likewise.
55511         * lib/stdlib.in.h: Likewise.
55512         * lib/stpcpy.c: Likewise.
55513         * lib/stpncpy.c: Likewise.
55514         * lib/strchrnul.c: Likewise.
55515         * lib/strcspn.c: Likewise.
55516         * lib/strerror.c: Likewise.
55517         * lib/strftime.c: Likewise.
55518         * lib/strftime.h: Likewise.
55519         * lib/striconveh.c: Likewise.
55520         * lib/striconveh.h: Likewise.
55521         * lib/striconveha.c: Likewise.
55522         * lib/striconveha.h: Likewise.
55523         * lib/stripslash.c: Likewise.
55524         * lib/strnlen1.c: Likewise.
55525         * lib/strnlen1.h: Likewise.
55526         * lib/strtod.c: Likewise.
55527         * lib/strtoimax.c: Likewise.
55528         * lib/strtok_r.c: Likewise.
55529         * lib/strtol.c: Likewise.
55530         * lib/strtoll.c: Likewise.
55531         * lib/strtoul.c: Likewise.
55532         * lib/strtoull.c: Likewise.
55533         * lib/sysexits.in.h: Likewise.
55534         * lib/tempname.c: Likewise.
55535         * lib/tempname.h: Likewise.
55536         * lib/timespec.h: Likewise.
55537         * lib/tls.c: Likewise.
55538         * lib/tls.h: Likewise.
55539         * lib/tmpdir.c: Likewise.
55540         * lib/tmpdir.h: Likewise.
55541         * lib/tmpfile-safer.c: Likewise.
55542         * lib/tmpfile.c: Likewise.
55543         * lib/trigl.c: Likewise.
55544         * lib/trigl.h: Likewise.
55545         * lib/trim.c: Likewise.
55546         * lib/trim.h: Likewise.
55547         * lib/trunc.c: Likewise.
55548         * lib/truncf.c: Likewise.
55549         * lib/truncl.c: Likewise.
55550         * lib/tsearch.c: Likewise.
55551         * lib/unicodeio.c: Likewise.
55552         * lib/unicodeio.h: Likewise.
55553         * lib/unistd--.h: Likewise.
55554         * lib/unistd-safer.h: Likewise.
55555         * lib/unistdio/ulc-fprintf.c: Likewise.
55556         * lib/unistdio/ulc-vfprintf.c: Likewise.
55557         * lib/unlinkdir.c: Likewise.
55558         * lib/unlinkdir.h: Likewise.
55559         * lib/unlocked-io.h: Likewise.
55560         * lib/unsetenv.c: Likewise.
55561         * lib/userspec.c: Likewise.
55562         * lib/utime.c: Likewise.
55563         * lib/utimecmp.c: Likewise.
55564         * lib/utimecmp.h: Likewise.
55565         * lib/utimens.c: Likewise.
55566         * lib/verify.h: Likewise.
55567         * lib/verror.c: Likewise.
55568         * lib/verror.h: Likewise.
55569         * lib/version-etc-fsf.c: Likewise.
55570         * lib/version-etc.c: Likewise.
55571         * lib/version-etc.h: Likewise.
55572         * lib/vfprintf.c: Likewise.
55573         * lib/vprintf.c: Likewise.
55574         * lib/vsprintf.c: Likewise.
55575         * lib/w32spawn.h: Likewise.
55576         * lib/wait-process.c: Likewise.
55577         * lib/wait-process.h: Likewise.
55578         * lib/wcwidth.c: Likewise.
55579         * lib/write-any-file.c: Likewise.
55580         * lib/xalloc-die.c: Likewise.
55581         * lib/xalloc.h: Likewise.
55582         * lib/xasprintf.c: Likewise.
55583         * lib/xgetcwd.c: Likewise.
55584         * lib/xgetcwd.h: Likewise.
55585         * lib/xgetdomainname.c: Likewise.
55586         * lib/xgetdomainname.h: Likewise.
55587         * lib/xgethostname.c: Likewise.
55588         * lib/xmalloc.c: Likewise.
55589         * lib/xmalloca.c: Likewise.
55590         * lib/xmalloca.h: Likewise.
55591         * lib/xmemcoll.c: Likewise.
55592         * lib/xnanosleep.c: Likewise.
55593         * lib/xreadlink.c: Likewise.
55594         * lib/xreadlink.h: Likewise.
55595         * lib/xsetenv.c: Likewise.
55596         * lib/xsetenv.h: Likewise.
55597         * lib/xstriconv.c: Likewise.
55598         * lib/xstriconv.h: Likewise.
55599         * lib/xstrndup.c: Likewise.
55600         * lib/xstrndup.h: Likewise.
55601         * lib/xstrtod.c: Likewise.
55602         * lib/xstrtod.h: Likewise.
55603         * lib/xstrtol-error.c: Likewise.
55604         * lib/xstrtol.c: Likewise.
55605         * lib/xstrtol.h: Likewise.
55606         * lib/xtime.h: Likewise.
55607         * lib/xvasprintf.c: Likewise.
55608         * lib/xvasprintf.h: Likewise.
55609         * lib/yesno.c: Likewise.
55610         * lib/yesno.h: Likewise.
55611         * posix-modules: Likewise.
55612         * tests/test-alloca-opt.c: Likewise.
55613         * tests/test-arcfour.c: Likewise.
55614         * tests/test-arctwo.c: Likewise.
55615         * tests/test-argmatch.c: Likewise.
55616         * tests/test-argp-2.sh: Likewise.
55617         * tests/test-argp.c: Likewise.
55618         * tests/test-arpa_inet.c: Likewise.
55619         * tests/test-array_list.c: Likewise.
55620         * tests/test-array_oset.c: Likewise.
55621         * tests/test-atexit.c: Likewise.
55622         * tests/test-avltree_list.c: Likewise.
55623         * tests/test-avltree_oset.c: Likewise.
55624         * tests/test-avltreehash_list.c: Likewise.
55625         * tests/test-base64.c: Likewise.
55626         * tests/test-binary-io.c: Likewise.
55627         * tests/test-byteswap.c: Likewise.
55628         * tests/test-c-ctype.c: Likewise.
55629         * tests/test-c-strcasecmp.c: Likewise.
55630         * tests/test-c-strcasestr.c: Likewise.
55631         * tests/test-c-strncasecmp.c: Likewise.
55632         * tests/test-c-strstr.c: Likewise.
55633         * tests/test-canonicalize-lgpl.c: Likewise.
55634         * tests/test-canonicalize.c: Likewise.
55635         * tests/test-carray_list.c: Likewise.
55636         * tests/test-ceilf.c: Likewise.
55637         * tests/test-ceill.c: Likewise.
55638         * tests/test-count-one-bits.c: Likewise.
55639         * tests/test-crc.c: Likewise.
55640         * tests/test-dirname.c: Likewise.
55641         * tests/test-fbufmode.c: Likewise.
55642         * tests/test-fcntl.c: Likewise.
55643         * tests/test-fflush.c: Likewise.
55644         * tests/test-floorf.c: Likewise.
55645         * tests/test-floorl.c: Likewise.
55646         * tests/test-fopen.c: Likewise.
55647         * tests/test-fprintf-posix.c: Likewise.
55648         * tests/test-fprintf-posix.h: Likewise.
55649         * tests/test-fpurge.c: Likewise.
55650         * tests/test-freadable.c: Likewise.
55651         * tests/test-freadahead.c: Likewise.
55652         * tests/test-freading.c: Likewise.
55653         * tests/test-freopen.c: Likewise.
55654         * tests/test-frexp.c: Likewise.
55655         * tests/test-frexpl.c: Likewise.
55656         * tests/test-fseek.c: Likewise.
55657         * tests/test-fseeko.c: Likewise.
55658         * tests/test-fseterr.c: Likewise.
55659         * tests/test-fstrcmp.c: Likewise.
55660         * tests/test-ftell.c: Likewise.
55661         * tests/test-ftello.c: Likewise.
55662         * tests/test-fwritable.c: Likewise.
55663         * tests/test-fwriting.c: Likewise.
55664         * tests/test-getaddrinfo.c: Likewise.
55665         * tests/test-getpass.c: Likewise.
55666         * tests/test-gettimeofday.c: Likewise.
55667         * tests/test-hmac-md5.c: Likewise.
55668         * tests/test-hmac-sha1.c: Likewise.
55669         * tests/test-iconv.c: Likewise.
55670         * tests/test-iconvme.c: Likewise.
55671         * tests/test-inttypes.c: Likewise.
55672         * tests/test-isnan.c: Likewise.
55673         * tests/test-isnanf.c: Likewise.
55674         * tests/test-isnanl-nolibm.c: Likewise.
55675         * tests/test-isnanl.c: Likewise.
55676         * tests/test-isnanl.h: Likewise.
55677         * tests/test-ldexpl.c: Likewise.
55678         * tests/test-linked_list.c: Likewise.
55679         * tests/test-linkedhash_list.c: Likewise.
55680         * tests/test-locale.c: Likewise.
55681         * tests/test-localename.c: Likewise.
55682         * tests/test-lock.c: Likewise.
55683         * tests/test-lseek.c: Likewise.
55684         * tests/test-malloca.c: Likewise.
55685         * tests/test-math.c: Likewise.
55686         * tests/test-mbscasecmp.c: Likewise.
55687         * tests/test-mbscasestr1.c: Likewise.
55688         * tests/test-mbscasestr2.c: Likewise.
55689         * tests/test-mbscasestr3.c: Likewise.
55690         * tests/test-mbscasestr4.c: Likewise.
55691         * tests/test-mbschr.c: Likewise.
55692         * tests/test-mbscspn.c: Likewise.
55693         * tests/test-mbsncasecmp.c: Likewise.
55694         * tests/test-mbspbrk.c: Likewise.
55695         * tests/test-mbspcasecmp.c: Likewise.
55696         * tests/test-mbsrchr.c: Likewise.
55697         * tests/test-mbsspn.c: Likewise.
55698         * tests/test-mbsstr1.c: Likewise.
55699         * tests/test-mbsstr2.c: Likewise.
55700         * tests/test-mbsstr3.c: Likewise.
55701         * tests/test-md5.c: Likewise.
55702         * tests/test-memmem.c: Likewise.
55703         * tests/test-netinet_in.c: Likewise.
55704         * tests/test-open.c: Likewise.
55705         * tests/test-printf-frexp.c: Likewise.
55706         * tests/test-printf-frexpl.c: Likewise.
55707         * tests/test-printf-posix.c: Likewise.
55708         * tests/test-printf-posix.h: Likewise.
55709         * tests/test-rbtree_list.c: Likewise.
55710         * tests/test-rbtree_oset.c: Likewise.
55711         * tests/test-rbtreehash_list.c: Likewise.
55712         * tests/test-read-file.c: Likewise.
55713         * tests/test-rijndael.c: Likewise.
55714         * tests/test-search.c: Likewise.
55715         * tests/test-signbit.c: Likewise.
55716         * tests/test-sleep.c: Likewise.
55717         * tests/test-snprintf-posix.c: Likewise.
55718         * tests/test-snprintf-posix.h: Likewise.
55719         * tests/test-snprintf.c: Likewise.
55720         * tests/test-sprintf-posix.c: Likewise.
55721         * tests/test-sprintf-posix.h: Likewise.
55722         * tests/test-stat-time.c: Likewise.
55723         * tests/test-stdbool.c: Likewise.
55724         * tests/test-stdint.c: Likewise.
55725         * tests/test-stdio.c: Likewise.
55726         * tests/test-stdlib.c: Likewise.
55727         * tests/test-stpncpy.c: Likewise.
55728         * tests/test-strcasestr.c: Likewise.
55729         * tests/test-striconv.c: Likewise.
55730         * tests/test-striconveh.c: Likewise.
55731         * tests/test-striconveha.c: Likewise.
55732         * tests/test-string.c: Likewise.
55733         * tests/test-sys_select.c: Likewise.
55734         * tests/test-sys_socket.c: Likewise.
55735         * tests/test-sys_stat.c: Likewise.
55736         * tests/test-sys_time.c: Likewise.
55737         * tests/test-sysexits.c: Likewise.
55738         * tests/test-time.c: Likewise.
55739         * tests/test-tls.c: Likewise.
55740         * tests/test-trunc.c: Likewise.
55741         * tests/test-truncf.c: Likewise.
55742         * tests/test-truncl.c: Likewise.
55743         * tests/test-unistd.c: Likewise.
55744         * tests/test-vasnprintf-posix.c: Likewise.
55745         * tests/test-vasnprintf-posix2.c: Likewise.
55746         * tests/test-vasnprintf.c: Likewise.
55747         * tests/test-vasprintf-posix.c: Likewise.
55748         * tests/test-vasprintf.c: Likewise.
55749         * tests/test-verify.c: Likewise.
55750         * tests/test-vfprintf-posix.c: Likewise.
55751         * tests/test-vprintf-posix.c: Likewise.
55752         * tests/test-vsnprintf-posix.c: Likewise.
55753         * tests/test-vsnprintf.c: Likewise.
55754         * tests/test-vsprintf-posix.c: Likewise.
55755         * tests/test-wchar.c: Likewise.
55756         * tests/test-wctype.c: Likewise.
55757         * tests/test-wcwidth.c: Likewise.
55758         * tests/test-xstrtol.c: Likewise.
55759         * tests/test-xvasprintf.c: Likewise.
55760         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
55761         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
55762         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
55763         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
55764         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
55765         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
55766         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
55767         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
55768         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
55769         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
55770         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
55771         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
55772         * tests/uniname/test-uninames.c: Likewise.
55773         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
55774         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
55775         * tests/unistdio/test-u16-printf1.h: Likewise.
55776         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
55777         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
55778         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
55779         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
55780         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
55781         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
55782         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
55783         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
55784         * tests/unistdio/test-u32-printf1.h: Likewise.
55785         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
55786         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
55787         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
55788         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
55789         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
55790         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
55791         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
55792         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
55793         * tests/unistdio/test-u8-printf1.h: Likewise.
55794         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
55795         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
55796         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
55797         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
55798         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
55799         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
55800         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
55801         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
55802         * tests/unistdio/test-ulc-printf1.h: Likewise.
55803         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
55804         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
55805         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
55806         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
55807         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
55808         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
55809         * tests/uniwidth/test-u16-strwidth.c: Likewise.
55810         * tests/uniwidth/test-u16-width.c: Likewise.
55811         * tests/uniwidth/test-u32-strwidth.c: Likewise.
55812         * tests/uniwidth/test-u32-width.c: Likewise.
55813         * tests/uniwidth/test-u8-strwidth.c: Likewise.
55814         * tests/uniwidth/test-u8-width.c: Likewise.
55815         * tests/uniwidth/test-uc_width.c: Likewise.
55816         * config/srclist-update: Likewise.
55817         (fixlicense): Update to GPLv3+.
55818
55819         Change copyright notice from LGPLv2.1+ to LGPLv3+.
55820         * tests/test-tsearch.c: Change copyright notice.
55821
55822         Change copyright notice from LGPLv2.0+ to LGPLv3+.
55823         * lib/c-strcaseeq.h: Change copyright notice.
55824         * lib/streq.h: Likewise.
55825         * lib/uniconv.h: Likewise.
55826         * lib/uniconv/u-conv-from-enc.h: Likewise.
55827         * lib/uniconv/u-conv-to-enc.h: Likewise.
55828         * lib/uniconv/u-strconv-from-enc.h: Likewise.
55829         * lib/uniconv/u-strconv-to-enc.h: Likewise.
55830         * lib/uniconv/u16-conv-from-enc.c: Likewise.
55831         * lib/uniconv/u16-conv-to-enc.c: Likewise.
55832         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
55833         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
55834         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
55835         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
55836         * lib/uniconv/u32-conv-from-enc.c: Likewise.
55837         * lib/uniconv/u32-conv-to-enc.c: Likewise.
55838         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
55839         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
55840         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
55841         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
55842         * lib/uniconv/u8-conv-from-enc.c: Likewise.
55843         * lib/uniconv/u8-conv-to-enc.c: Likewise.
55844         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
55845         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
55846         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
55847         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
55848         * lib/uniname.h: Likewise.
55849         * lib/uniname/uniname.c: Likewise.
55850         * lib/unistdio.h: Likewise.
55851         * lib/unistdio/u-asnprintf.h: Likewise.
55852         * lib/unistdio/u-asprintf.h: Likewise.
55853         * lib/unistdio/u-printf-args.c: Likewise.
55854         * lib/unistdio/u-printf-args.h: Likewise.
55855         * lib/unistdio/u-printf-parse.h: Likewise.
55856         * lib/unistdio/u-snprintf.h: Likewise.
55857         * lib/unistdio/u-sprintf.h: Likewise.
55858         * lib/unistdio/u-vasprintf.h: Likewise.
55859         * lib/unistdio/u-vsnprintf.h: Likewise.
55860         * lib/unistdio/u-vsprintf.h: Likewise.
55861         * lib/unistdio/u16-asnprintf.c: Likewise.
55862         * lib/unistdio/u16-asprintf.c: Likewise.
55863         * lib/unistdio/u16-printf-parse.c: Likewise.
55864         * lib/unistdio/u16-snprintf.c: Likewise.
55865         * lib/unistdio/u16-sprintf.c: Likewise.
55866         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
55867         * lib/unistdio/u16-u16-asprintf.c: Likewise.
55868         * lib/unistdio/u16-u16-snprintf.c: Likewise.
55869         * lib/unistdio/u16-u16-sprintf.c: Likewise.
55870         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
55871         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
55872         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
55873         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
55874         * lib/unistdio/u16-vasnprintf.c: Likewise.
55875         * lib/unistdio/u16-vasprintf.c: Likewise.
55876         * lib/unistdio/u16-vsnprintf.c: Likewise.
55877         * lib/unistdio/u16-vsprintf.c: Likewise.
55878         * lib/unistdio/u32-asnprintf.c: Likewise.
55879         * lib/unistdio/u32-asprintf.c: Likewise.
55880         * lib/unistdio/u32-printf-parse.c: Likewise.
55881         * lib/unistdio/u32-snprintf.c: Likewise.
55882         * lib/unistdio/u32-sprintf.c: Likewise.
55883         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
55884         * lib/unistdio/u32-u32-asprintf.c: Likewise.
55885         * lib/unistdio/u32-u32-snprintf.c: Likewise.
55886         * lib/unistdio/u32-u32-sprintf.c: Likewise.
55887         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
55888         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
55889         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
55890         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
55891         * lib/unistdio/u32-vasnprintf.c: Likewise.
55892         * lib/unistdio/u32-vasprintf.c: Likewise.
55893         * lib/unistdio/u32-vsnprintf.c: Likewise.
55894         * lib/unistdio/u32-vsprintf.c: Likewise.
55895         * lib/unistdio/u8-asnprintf.c: Likewise.
55896         * lib/unistdio/u8-asprintf.c: Likewise.
55897         * lib/unistdio/u8-printf-parse.c: Likewise.
55898         * lib/unistdio/u8-snprintf.c: Likewise.
55899         * lib/unistdio/u8-sprintf.c: Likewise.
55900         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
55901         * lib/unistdio/u8-u8-asprintf.c: Likewise.
55902         * lib/unistdio/u8-u8-snprintf.c: Likewise.
55903         * lib/unistdio/u8-u8-sprintf.c: Likewise.
55904         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
55905         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
55906         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
55907         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
55908         * lib/unistdio/u8-vasnprintf.c: Likewise.
55909         * lib/unistdio/u8-vasprintf.c: Likewise.
55910         * lib/unistdio/u8-vsnprintf.c: Likewise.
55911         * lib/unistdio/u8-vsprintf.c: Likewise.
55912         * lib/unistdio/ulc-asnprintf.c: Likewise.
55913         * lib/unistdio/ulc-asprintf.c: Likewise.
55914         * lib/unistdio/ulc-printf-parse.c: Likewise.
55915         * lib/unistdio/ulc-snprintf.c: Likewise.
55916         * lib/unistdio/ulc-sprintf.c: Likewise.
55917         * lib/unistdio/ulc-vasnprintf.c: Likewise.
55918         * lib/unistdio/ulc-vasprintf.c: Likewise.
55919         * lib/unistdio/ulc-vsnprintf.c: Likewise.
55920         * lib/unistdio/ulc-vsprintf.c: Likewise.
55921         * lib/unistr.h: Likewise.
55922         * lib/unistr/u-cpy-alloc.h: Likewise.
55923         * lib/unistr/u-cpy.h: Likewise.
55924         * lib/unistr/u-endswith.h: Likewise.
55925         * lib/unistr/u-move.h: Likewise.
55926         * lib/unistr/u-set.h: Likewise.
55927         * lib/unistr/u-startswith.h: Likewise.
55928         * lib/unistr/u-stpcpy.h: Likewise.
55929         * lib/unistr/u-stpncpy.h: Likewise.
55930         * lib/unistr/u-strcat.h: Likewise.
55931         * lib/unistr/u-strcpy.h: Likewise.
55932         * lib/unistr/u-strcspn.h: Likewise.
55933         * lib/unistr/u-strdup.h: Likewise.
55934         * lib/unistr/u-strlen.h: Likewise.
55935         * lib/unistr/u-strncat.h: Likewise.
55936         * lib/unistr/u-strncpy.h: Likewise.
55937         * lib/unistr/u-strnlen.h: Likewise.
55938         * lib/unistr/u-strpbrk.h: Likewise.
55939         * lib/unistr/u-strspn.h: Likewise.
55940         * lib/unistr/u-strstr.h: Likewise.
55941         * lib/unistr/u-strtok.h: Likewise.
55942         * lib/unistr/u16-check.c: Likewise.
55943         * lib/unistr/u16-chr.c: Likewise.
55944         * lib/unistr/u16-cmp.c: Likewise.
55945         * lib/unistr/u16-cpy-alloc.c: Likewise.
55946         * lib/unistr/u16-cpy.c: Likewise.
55947         * lib/unistr/u16-endswith.c: Likewise.
55948         * lib/unistr/u16-mblen.c: Likewise.
55949         * lib/unistr/u16-mbsnlen.c: Likewise.
55950         * lib/unistr/u16-mbtouc-aux.c: Likewise.
55951         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
55952         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
55953         * lib/unistr/u16-mbtouc.c: Likewise.
55954         * lib/unistr/u16-mbtoucr.c: Likewise.
55955         * lib/unistr/u16-move.c: Likewise.
55956         * lib/unistr/u16-next.c: Likewise.
55957         * lib/unistr/u16-prev.c: Likewise.
55958         * lib/unistr/u16-set.c: Likewise.
55959         * lib/unistr/u16-startswith.c: Likewise.
55960         * lib/unistr/u16-stpcpy.c: Likewise.
55961         * lib/unistr/u16-stpncpy.c: Likewise.
55962         * lib/unistr/u16-strcat.c: Likewise.
55963         * lib/unistr/u16-strchr.c: Likewise.
55964         * lib/unistr/u16-strcmp.c: Likewise.
55965         * lib/unistr/u16-strcpy.c: Likewise.
55966         * lib/unistr/u16-strcspn.c: Likewise.
55967         * lib/unistr/u16-strdup.c: Likewise.
55968         * lib/unistr/u16-strlen.c: Likewise.
55969         * lib/unistr/u16-strmblen.c: Likewise.
55970         * lib/unistr/u16-strmbtouc.c: Likewise.
55971         * lib/unistr/u16-strncat.c: Likewise.
55972         * lib/unistr/u16-strncmp.c: Likewise.
55973         * lib/unistr/u16-strncpy.c: Likewise.
55974         * lib/unistr/u16-strnlen.c: Likewise.
55975         * lib/unistr/u16-strpbrk.c: Likewise.
55976         * lib/unistr/u16-strrchr.c: Likewise.
55977         * lib/unistr/u16-strspn.c: Likewise.
55978         * lib/unistr/u16-strstr.c: Likewise.
55979         * lib/unistr/u16-strtok.c: Likewise.
55980         * lib/unistr/u16-to-u32.c: Likewise.
55981         * lib/unistr/u16-to-u8.c: Likewise.
55982         * lib/unistr/u16-uctomb-aux.c: Likewise.
55983         * lib/unistr/u16-uctomb.c: Likewise.
55984         * lib/unistr/u32-check.c: Likewise.
55985         * lib/unistr/u32-chr.c: Likewise.
55986         * lib/unistr/u32-cmp.c: Likewise.
55987         * lib/unistr/u32-cpy-alloc.c: Likewise.
55988         * lib/unistr/u32-cpy.c: Likewise.
55989         * lib/unistr/u32-endswith.c: Likewise.
55990         * lib/unistr/u32-mblen.c: Likewise.
55991         * lib/unistr/u32-mbsnlen.c: Likewise.
55992         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
55993         * lib/unistr/u32-mbtouc.c: Likewise.
55994         * lib/unistr/u32-mbtoucr.c: Likewise.
55995         * lib/unistr/u32-move.c: Likewise.
55996         * lib/unistr/u32-next.c: Likewise.
55997         * lib/unistr/u32-prev.c: Likewise.
55998         * lib/unistr/u32-set.c: Likewise.
55999         * lib/unistr/u32-startswith.c: Likewise.
56000         * lib/unistr/u32-stpcpy.c: Likewise.
56001         * lib/unistr/u32-stpncpy.c: Likewise.
56002         * lib/unistr/u32-strcat.c: Likewise.
56003         * lib/unistr/u32-strchr.c: Likewise.
56004         * lib/unistr/u32-strcmp.c: Likewise.
56005         * lib/unistr/u32-strcpy.c: Likewise.
56006         * lib/unistr/u32-strcspn.c: Likewise.
56007         * lib/unistr/u32-strdup.c: Likewise.
56008         * lib/unistr/u32-strlen.c: Likewise.
56009         * lib/unistr/u32-strmblen.c: Likewise.
56010         * lib/unistr/u32-strmbtouc.c: Likewise.
56011         * lib/unistr/u32-strncat.c: Likewise.
56012         * lib/unistr/u32-strncmp.c: Likewise.
56013         * lib/unistr/u32-strncpy.c: Likewise.
56014         * lib/unistr/u32-strnlen.c: Likewise.
56015         * lib/unistr/u32-strpbrk.c: Likewise.
56016         * lib/unistr/u32-strrchr.c: Likewise.
56017         * lib/unistr/u32-strspn.c: Likewise.
56018         * lib/unistr/u32-strstr.c: Likewise.
56019         * lib/unistr/u32-strtok.c: Likewise.
56020         * lib/unistr/u32-to-u16.c: Likewise.
56021         * lib/unistr/u32-to-u8.c: Likewise.
56022         * lib/unistr/u32-uctomb.c: Likewise.
56023         * lib/unistr/u8-check.c: Likewise.
56024         * lib/unistr/u8-chr.c: Likewise.
56025         * lib/unistr/u8-cmp.c: Likewise.
56026         * lib/unistr/u8-cpy-alloc.c: Likewise.
56027         * lib/unistr/u8-cpy.c: Likewise.
56028         * lib/unistr/u8-endswith.c: Likewise.
56029         * lib/unistr/u8-mblen.c: Likewise.
56030         * lib/unistr/u8-mbsnlen.c: Likewise.
56031         * lib/unistr/u8-mbtouc-aux.c: Likewise.
56032         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
56033         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
56034         * lib/unistr/u8-mbtouc.c: Likewise.
56035         * lib/unistr/u8-mbtoucr.c: Likewise.
56036         * lib/unistr/u8-move.c: Likewise.
56037         * lib/unistr/u8-next.c: Likewise.
56038         * lib/unistr/u8-prev.c: Likewise.
56039         * lib/unistr/u8-set.c: Likewise.
56040         * lib/unistr/u8-startswith.c: Likewise.
56041         * lib/unistr/u8-stpcpy.c: Likewise.
56042         * lib/unistr/u8-stpncpy.c: Likewise.
56043         * lib/unistr/u8-strcat.c: Likewise.
56044         * lib/unistr/u8-strchr.c: Likewise.
56045         * lib/unistr/u8-strcmp.c: Likewise.
56046         * lib/unistr/u8-strcpy.c: Likewise.
56047         * lib/unistr/u8-strcspn.c: Likewise.
56048         * lib/unistr/u8-strdup.c: Likewise.
56049         * lib/unistr/u8-strlen.c: Likewise.
56050         * lib/unistr/u8-strmblen.c: Likewise.
56051         * lib/unistr/u8-strmbtouc.c: Likewise.
56052         * lib/unistr/u8-strncat.c: Likewise.
56053         * lib/unistr/u8-strncmp.c: Likewise.
56054         * lib/unistr/u8-strncpy.c: Likewise.
56055         * lib/unistr/u8-strnlen.c: Likewise.
56056         * lib/unistr/u8-strpbrk.c: Likewise.
56057         * lib/unistr/u8-strrchr.c: Likewise.
56058         * lib/unistr/u8-strspn.c: Likewise.
56059         * lib/unistr/u8-strstr.c: Likewise.
56060         * lib/unistr/u8-strtok.c: Likewise.
56061         * lib/unistr/u8-to-u16.c: Likewise.
56062         * lib/unistr/u8-to-u32.c: Likewise.
56063         * lib/unistr/u8-uctomb-aux.c: Likewise.
56064         * lib/unistr/u8-uctomb.c: Likewise.
56065         * lib/unitypes.h: Likewise.
56066         * lib/uniwidth.h: Likewise.
56067         * lib/uniwidth/cjk.h: Likewise.
56068         * lib/uniwidth/u16-strwidth.c: Likewise.
56069         * lib/uniwidth/u16-width.c: Likewise.
56070         * lib/uniwidth/u32-strwidth.c: Likewise.
56071         * lib/uniwidth/u32-width.c: Likewise.
56072         * lib/uniwidth/u8-strwidth.c: Likewise.
56073         * lib/uniwidth/u8-width.c: Likewise.
56074         * lib/uniwidth/width.c: Likewise.
56075
56076 2007-10-07  Bruno Haible  <bruno@clisp.org>
56077
56078         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
56079         The file is still under LGPL (see modules/inttypes).
56080
56081 2007-10-06  Bruno Haible  <bruno@clisp.org>
56082
56083         * modules/trunc (Dependencies): Add 'extensions'.
56084         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
56085         Reported by Ben Pfaff <blp@gnu.org>.
56086
56087 2007-10-06  Bruno Haible  <bruno@clisp.org>
56088
56089         * modules/freopen-tests: New file.
56090         * tests/test-freopen.c: New file.
56091
56092         * modules/fopen-tests: New file.
56093         * tests/test-fopen.c: New file.
56094
56095         * modules/fopen: New file.
56096         * lib/fopen.c: New file.
56097         * m4/fopen.m4: New file.
56098         * modules/freopen: New file.
56099         * lib/freopen.c: New file.
56100         * m4/freopen.m4: New file.
56101         * lib/stdio.in.h (fopen, freopen): New declarations.
56102         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
56103         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
56104         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
56105         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
56106         * doc/functions/fopen.texi: Mention the 'fopen' module.
56107         * doc/functions/freopen.texi: Mention the 'freopen' module.
56108
56109 2007-10-06  Bruno Haible  <bruno@clisp.org>
56110
56111         * modules/open-tests: New file.
56112         * tests/test-open.c: New file.
56113
56114         * modules/open: New file.
56115         * lib/open.c: New file.
56116         * m4/open.m4: New file.
56117         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
56118         lib/open.c does.
56119         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
56120         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
56121         macros.
56122         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
56123         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
56124         REPLACE_OPEN.
56125         * doc/functions/open.texi: Mention the 'open' module.
56126
56127 2007-10-04  Bruno Haible  <bruno@clisp.org>
56128
56129         * modules/ceill-tests: New file.
56130         * tests/test-ceill.c: New file.
56131
56132         * modules/ceill: New file.
56133         * lib/ceill.c: Replace entire file.
56134         * m4/ceill.m4: New file.
56135         * lib/math.in.h (ceill): Replace declaration.
56136         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
56137         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
56138         * doc/functions/ceill.texi: Mention the 'ceill' module.
56139         * modules/mathl (Files): Remove lib/ceill.c.
56140         (Depends-on): Add ceill.
56141
56142 2007-10-04  Bruno Haible  <bruno@clisp.org>
56143
56144         * modules/ceilf-tests: New file.
56145         * tests/test-ceilf.c: New file.
56146
56147         * modules/ceilf: New file.
56148         * lib/ceil.c: New file.
56149         * lib/ceilf.c: New file.
56150         * m4/ceilf.m4: New file.
56151         * lib/math.in.h (ceilf): New declaration.
56152         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
56153         HAVE_DECL_CEILF.
56154         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
56155         HAVE_DECL_CEILF.
56156         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
56157
56158 2007-10-04  Bruno Haible  <bruno@clisp.org>
56159
56160         * modules/floorl-tests: New file.
56161         * tests/test-floorl.c: New file.
56162
56163         * modules/floorl: New file.
56164         * lib/floorl.c: Replace entire file.
56165         * m4/floorl.m4: New file.
56166         * lib/math.in.h (floorl): Replace declaration.
56167         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
56168         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
56169         * doc/functions/floorl.texi: Mention the 'floorl' module.
56170         * modules/mathl (Files): Remove lib/floorl.c.
56171         (Depends-on): Add floorl.
56172
56173 2007-10-04  Bruno Haible  <bruno@clisp.org>
56174
56175         * modules/floorf-tests: New file.
56176         * tests/test-floorf.c: New file.
56177
56178         * modules/floorf: New file.
56179         * lib/floor.c: New file.
56180         * lib/floorf.c: New file.
56181         * m4/floorf.m4: New file.
56182         * lib/math.in.h (floorf): New declaration.
56183         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
56184         HAVE_DECL_FLOORF.
56185         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
56186         HAVE_DECL_FLOORF.
56187         * doc/functions/floorf.texi: Mention the 'floorf' module.
56188
56189 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
56190             Bruno Haible  <bruno@clisp.org>
56191
56192         Advertise for the Git server instead of the CVS server.
56193         * doc/gnulib-intro.texi (Steady Development): Mention the Git
56194         repository instead of the CVS one.
56195         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
56196         about all VCS systems generically.
56197         * doc/gnulib.texi (Introduction): Capitalize `Git'.
56198
56199 2007-10-04  Bruno Haible  <bruno@clisp.org>
56200
56201         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
56202         means.
56203         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
56204
56205 2007-10-04  Bruno Haible  <bruno@clisp.org>
56206
56207         * modules/truncl-tests: New file.
56208         * tests/test-truncl.c: New file.
56209
56210         * modules/truncl: New file.
56211         * lib/truncl.c: New file.
56212         * m4/truncl.m4: New file.
56213         * lib/math.in.h (truncl): New declaration.
56214         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
56215         HAVE_DECL_TRUNCL.
56216         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
56217         HAVE_DECL_TRUNCL.
56218         * doc/functions/truncl.texi: Mention the 'truncl' module.
56219
56220 2007-10-04  Bruno Haible  <bruno@clisp.org>
56221
56222         * modules/truncf-tests: New file.
56223         * tests/test-truncf.c: New file.
56224
56225         * modules/truncf: New file.
56226         * lib/trunc.c: Make paramerizable through USE_* macros.
56227         * lib/truncf.c: New file.
56228         * m4/truncf.m4: New file.
56229         * lib/math.in.h (truncf): New declaration.
56230         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
56231         HAVE_DECL_TRUNCF.
56232         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
56233         HAVE_DECL_TRUNCF.
56234         * doc/functions/truncf.texi: Mention the 'truncf' module.
56235
56236 2007-10-03  Bruno Haible  <bruno@clisp.org>
56237
56238         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
56239         augmentation also for tests modules.
56240         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
56241         * modules/atexit-tests (Makefile.am): Likewise.
56242         * modules/binary-io-tests (Makefile.am): Likewise.
56243         * modules/c-strcase-tests (Makefile.am): Likewise.
56244         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
56245         * modules/canonicalize-tests (Makefile.am): Likewise.
56246         * modules/closein-tests (Makefile.am): Likewise.
56247         * modules/fprintf-posix-tests (Makefile.am): Likewise.
56248         * modules/freadahead-tests (Makefile.am): Likewise.
56249         * modules/fseek-tests (Makefile.am): Likewise.
56250         * modules/fseeko-tests (Makefile.am): Likewise.
56251         * modules/ftell-tests (Makefile.am): Likewise.
56252         * modules/ftello-tests (Makefile.am): Likewise.
56253         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
56254         * modules/isnanl-tests (Makefile.am): Likewise.
56255         * modules/lseek-tests (Makefile.am): Likewise.
56256         * modules/mbscasecmp-tests (Makefile.am): Likewise.
56257         * modules/mbscasestr-tests (Makefile.am): Likewise.
56258         * modules/mbschr-tests (Makefile.am): Likewise.
56259         * modules/mbscspn-tests (Makefile.am): Likewise.
56260         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
56261         * modules/mbspbrk-tests (Makefile.am): Likewise.
56262         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
56263         * modules/mbsrchr-tests (Makefile.am): Likewise.
56264         * modules/mbsspn-tests (Makefile.am): Likewise.
56265         * modules/mbsstr-tests (Makefile.am): Likewise.
56266         * modules/printf-posix-tests (Makefile.am): Likewise.
56267         * modules/snprintf-posix-tests (Makefile.am): Likewise.
56268         * modules/sprintf-posix-tests (Makefile.am): Likewise.
56269         * modules/tsearch-tests (Makefile.am): Likewise.
56270         * modules/uniname/uniname-tests (Makefile.am): Likewise.
56271         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
56272         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
56273         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
56274         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
56275         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
56276         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
56277         * modules/vprintf-posix-tests (Makefile.am): Likewise.
56278         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
56279         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
56280         * modules/xstrtoimax-tests (Makefile.am): Likewise.
56281         * modules/xstrtol-tests (Makefile.am): Likewise.
56282         * modules/xstrtoumax-tests (Makefile.am): Likewise.
56283         * modules/yesno-tests (Makefile.am): Likewise.
56284
56285 2007-10-03  Bruno Haible  <bruno@clisp.org>
56286
56287         * modules/trunc-tests: New file.
56288         * tests/test-trunc.c: New file.
56289
56290         * modules/trunc: New file.
56291         * lib/trunc.c: New file.
56292         * m4/trunc.m4: New file.
56293         * lib/math.in.h (trunc): New declaration.
56294         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
56295         HAVE_DECL_TRUNC.
56296         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
56297         HAVE_DECL_TRUNC.
56298         * doc/functions/trunc.texi: Mention the 'trunc' module.
56299
56300 2007-10-03  Bruno Haible  <bruno@clisp.org>
56301
56302         * tests/test-fpending.c: New file, mostly copied
56303         from coreutils/lib/t-fpending.c.
56304         * modules/fpending-tests: New file.
56305
56306 2007-10-03  Bruno Haible  <bruno@clisp.org>
56307
56308         Port the stdio extensions to QNX (untested).
56309         * lib/fseterr.c (fseterr): Add support for QNX.
56310         * lib/fbufmode.c (fbufmode): Likewise.
56311         * lib/freadable.c (freadable): Likewise.
56312         * lib/fwritable.c (fwritable): Likewise.
56313         * lib/freading.c (freading): Likewise.
56314         * lib/fwriting.c (fwriting): Likewise.
56315         * lib/freadahead.c (freadahed): Likewise.
56316         * lib/fpurge.c (fpurge): Likewise.
56317         * lib/fseeko.c (rpl_fseeko): Likewise.
56318
56319 2007-10-03  Bruno Haible  <bruno@clisp.org>
56320             Jim Meyering  <jim@meyering.net>
56321             Eric Blake  <ebb9@byu.net>
56322
56323         * doc/relocatable.texi: Use @command instead of @program.
56324
56325 2007-10-02  Jim Meyering  <jim@meyering.net>
56326
56327         Perform one more "_.h" -> ".in.h" substitution.
56328         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
56329         instead of unistd_.h here, too.
56330
56331 2007-10-01  Bruno Haible  <bruno@clisp.org>
56332
56333         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
56334         Needed for the alloca-opt module.
56335
56336 2007-09-30  Bruno Haible  <bruno@clisp.org>
56337
56338         * lib/alloca.in.h: Renamed from lib/alloca_.h.
56339         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
56340         alloca_.h.
56341         * lib/argz.in.h: Renamed from lib/argz_.h.
56342         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
56343         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
56344         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
56345         byteswap_.h.
56346         * lib/dirent.in.h: Renamed from lib/dirent_.h.
56347         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
56348         dirent_.h.
56349         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
56350         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
56351         fcntl_.h.
56352         * lib/float.in.h: Renamed from lib/float_.h.
56353         * modules/float (Files, Makefile.am): Use float.in.h instead of
56354         float_.h.
56355         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
56356         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
56357         fnmatch_.h.
56358         * lib/getopt.in.h: Renamed from lib/getopt_.h.
56359         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
56360         getopt_.h.
56361         * lib/glob.in.h: Renamed from lib/glob_.h.
56362         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
56363         * lib/iconv.in.h: Renamed from lib/iconv_.h.
56364         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
56365         iconv_.h.
56366         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
56367         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
56368         inttypes_.h.
56369         * lib/locale.in.h: Renamed from lib/locale_.h.
56370         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
56371         locale_.h.
56372         * lib/math.in.h: Renamed from lib/math_.h.
56373         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
56374         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
56375         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
56376         of netinet_in_.h. Add dependency.
56377         * lib/poll.in.h: Renamed from lib/poll_.h.
56378         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
56379         * lib/search.in.h: Renamed from lib/search_.h.
56380         * modules/search (Files, Makefile.am): Use search.in.h instead of
56381         search_.h.
56382         * lib/signal.in.h: Renamed from lib/signal_.h.
56383         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
56384         _signal.h.
56385         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
56386         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
56387         stdbool_.h.
56388         * lib/stdint.in.h: Renamed from lib/stdint_.h.
56389         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
56390         stdint_.h.
56391         * lib/stdio.in.h: Renamed from lib/stdio_.h.
56392         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
56393         stdio_.h.
56394         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
56395         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
56396         stdlib_.h.
56397         * lib/string.in.h: Renamed from lib/string_.h.
56398         * modules/string (Files, Makefile.am): Use string.in.h instead of
56399         string_.h.
56400         * doc/gnulib-tool.texi (Initial import): Update.
56401         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
56402         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
56403         of sys_select_.h. Add dependency.
56404         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
56405         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
56406         of sys_socket_.h.
56407         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
56408         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
56409         sys_stat_.h.
56410         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
56411         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
56412         sys_time_.h.
56413         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
56414         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
56415         sysexits_.h.
56416         * lib/time.in.h: Renamed from lib/time_.h.
56417         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
56418         * lib/unistd.in.h: Renamed from lib/unistd_.h.
56419         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
56420         unistd_.h.
56421         * lib/wchar.in.h: Renamed from lib/wchar_.h.
56422         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
56423         wchar_.h.
56424         * lib/wctype.in.h: Renamed from lib/wctype_.h.
56425         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
56426         wctype_.h.
56427         * build-aux/bootstrap (slurp): Update.
56428         * lib/.cppi-disable: Update.
56429
56430 2007-09-30  Bruno Haible  <bruno@clisp.org>
56431
56432         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
56433         Needed on BeOS.
56434
56435 2007-09-30  Bruno Haible  <bruno@clisp.org>
56436
56437         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
56438
56439 2007-09-29  Bruno Haible  <bruno@clisp.org>
56440
56441         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
56442
56443 2007-09-29  Bruno Haible  <bruno@clisp.org>
56444
56445         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
56446         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
56447         * build-aux/install-reloc: Compile also areadlink.c.
56448         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
56449
56450 2007-09-29  Bruno Haible  <bruno@clisp.org>
56451
56452         * gnulib-tool (func_emit_initmacro_done): Indentation.
56453
56454 2007-09-29  Bruno Haible  <bruno@clisp.org>
56455
56456         * README: Add CVS checkout update instructions.
56457         Info from Bob Proulx <bob@proulx.com>.
56458
56459 2007-09-28  Eric Blake  <ebb9@byu.net>
56460
56461         Provide move-if-change.
56462         * build-aux/move-if-change: New file, based on best practice
56463         rather than any canonical upstream location.
56464
56465 2007-09-28  Jim Meyering  <jim@meyering.net>
56466
56467         Fix canonicalize loop-detection corner case.
56468         Do not attempt to stat the symlink values stored via seen_triple.
56469         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
56470         on linux-2.6.18, (but not 2.6.22).
56471         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
56472         triple_compare.  The former compares dev,ino,filename, while the latter
56473         would actually stat dirname(filename) when dev and ino were equal.
56474         * lib/hash-triple.c: Install <string.h>.
56475         (STREQ): Define.
56476         (triple_compare_ino_str): New function.
56477         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
56478
56479 2007-09-28  Eric Blake  <ebb9@byu.net>
56480
56481         Enforce that AC_REPLACE_FUNCS files exist.
56482         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
56483         override check for typos.
56484
56485         Fix test-closein on Solaris 10.
56486         * tests/test-closein.c (main): Don't assume stdin can be inherited
56487         closed on all systems.
56488         * tests/test-closein.sh: Likewise.
56489         Reported by Piotr Tarnowski.
56490
56491 2007-09-28  Jim Meyering  <jim@meyering.net>
56492
56493         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
56494
56495 2007-09-27  Jim Meyering  <jim@meyering.net>
56496
56497         canonicalize: Avoid a false-positive cycle failure.
56498         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
56499         Sort.  Remove cycle-check.
56500         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
56501         not cycle-check.h.
56502         (seen_triple): New function.
56503         (canonicalize_filename_mode): Use it instead of cycle-check.
56504         * tests/test-canonicalize.c: Add a test for this bug.
56505         * tests/test-canonicalize.sh: Set up and run the test.
56506
56507         New module, file-set, from coreutils.
56508         * modules/file-set: Define it.
56509         * lib/file-set.c, lib/file-set.h: Implement.
56510
56511         New module, hash-triple, from coreutils.
56512         * modules/hash-triple: Define it.
56513         * lib/hash-triple.c, lib/hash-triple.h: Implement.
56514
56515 2007-09-25  Eric Blake  <ebb9@byu.net>
56516
56517         Fix strerror on Interix.
56518         * lib/string_.h (strerror): Declare replacement.
56519         * doc/functions/strerror.texi (strerror): Document the Interix
56520         shortcoming.
56521         * modules/string (Makefile.am): Support new hooks.
56522         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
56523         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
56524         gl_FUNC_STRERROR_SEPARATE.
56525         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
56526         * lib/strerror.c (rpl_strerror): Provide replacement.
56527         * modules/strerror (Depends-on): Add string.
56528         (configure.ac): Detect use of module.
56529         * tests/test-strerror.c: New file.
56530         * modules/strerror-tests: New test module.
56531         * modules/argp (Depends-on): Add strerror.
56532         * modules/error (Depends-on): Likewise.
56533         Reported by Martin Koeppe.
56534
56535 2007-09-24  Bruno Haible  <bruno@clisp.org>
56536
56537         * README: Update git instructions.
56538
56539 2007-09-24  Eric Blake  <ebb9@byu.net>
56540
56541         Revert fpending breakage from 2007-09-08.
56542         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
56543         __fpending.c.
56544
56545 2007-09-24  Jim Meyering  <jim@meyering.net>
56546
56547         filenamecat.c: Add a test.
56548         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
56549         showing how the function works when DIR is the empty string.
56550
56551 2007-09-21  Simon Josefsson  <simon@josefsson.org>
56552
56553         * tests/test-canonicalize.sh: Turn on executable bit.
56554
56555 2007-09-19  Eric Blake  <ebb9@byu.net>
56556
56557         * README: Update CVS instructions.
56558
56559 2007-09-18  Bruno Haible  <bruno@clisp.org>
56560
56561         * modules/areadlink: New file.
56562         * lib/areadlink.h (areadlink): New declaration.
56563         * lib/areadlink.c: New file, based on lib/xreadlink.c.
56564
56565 2007-09-17  Jim Meyering  <jim@meyering.net>
56566
56567         * lib/savewd.c (ESTALE) [!defined]: Define.
56568         Reported to be required on Interix by Martin Koeppe.
56569
56570 2007-09-17  Bruno Haible  <bruno@clisp.org>
56571
56572         * gnulib-tool (func_version): Use $version.
56573
56574 2007-09-16  Bruno Haible  <bruno@clisp.org>
56575
56576         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
56577         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
56578         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
56579         Reported by Greg Schafer <gschafer@zip.com.au>.
56580
56581 2007-09-15  Bruno Haible  <bruno@clisp.org>
56582
56583         * gnulib-tool (sed): Try a little harder to make bash understand the
56584         alias.
56585         Reported by Bruce Korb <bruce.korb@gmail.com>.
56586
56587 2007-09-13  Eric Blake  <ebb9@byu.net>
56588
56589         * ChangeLog: Remove conflict markers.
56590
56591 2007-09-13  Simon Josefsson  <simon@josefsson.org>
56592
56593         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
56594         Reported by Bruno Haible <bruno@clisp.org>.
56595
56596 2007-09-12  Bruno Haible  <bruno@clisp.org>
56597
56598         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
56599         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
56600         is not defined.
56601
56602 2007-09-12  Eric Blake  <ebb9@byu.net>
56603
56604         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
56605         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
56606         Autoconf definition.
56607         * modules/euidaccess (Depends-on): Add extensions, for
56608         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
56609         * modules/fnmatch (Depends-on): Likewise.
56610         * modules/getaddrinfo (Depends-on): Likewise.
56611         * modules/getdelim (Depends-on): Likewise.
56612         * modules/getline (Depends-on): Likewise.
56613         * modules/getsubopt (Depends-on): Likewise.
56614         * modules/gettext (Depends-on): Likewise.
56615         * modules/group-member (Depends-on): Likewise.
56616         * modules/mbchar (Depends-on): Likewise.
56617         * modules/memmem (Depends-on): Likewise.
56618         * modules/mempcpy (Depends-on): Likewise.
56619         * modules/memrchr (Depends-on): Likewise.
56620         * modules/pagealign_alloc (Depends-on): Likewise.
56621         * modules/readutmp (Depends-on): Likewise.
56622         * modules/stpcpy (Depends-on): Likewise.
56623         * modules/stpncpy (Depends-on): Likewise.
56624         * modules/strchrnul (Depends-on): Likewise.
56625         * modules/strndup (Depends-on): Likewise.
56626         * modules/strsep (Depends-on): Likewise.
56627         * modules/strverscmp (Depends-on): Likewise.
56628         * modules/vasprintf (Depends-on): Likewise.
56629         * modules/wcwidth (Depends-on): Likewise.
56630         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
56631         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
56632         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
56633         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
56634         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
56635         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
56636         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
56637         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
56638         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
56639         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
56640         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
56641         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
56642         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
56643         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
56644         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
56645         * m4/readutmp.m4 (gl_READUTMP): Likewise.
56646         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
56647         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
56648         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
56649         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
56650         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
56651         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
56652         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
56653         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
56654         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
56655         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
56656         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
56657         so that lock.m4 can be used in gettext without extensions module.
56658
56659 2007-09-11  Bruno Haible  <bruno@clisp.org>
56660
56661         * m4/isc-posix.m4: Remove file.
56662         Suggested by Eric Blake.
56663
56664 2007-09-11  Eric Blake  <ebb9@byu.net>
56665
56666         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
56667
56668 2007-09-10  Bruno Haible  <bruno@clisp.org>
56669
56670         * posix-modules: Fix typo in error message.
56671         Reported by Matt <mkraai@beckman.com>.
56672
56673 2007-09-09  Bruno Haible  <bruno@clisp.org>
56674
56675         * doc/functions/getdelim.texi: Update list of platforms lacking the
56676         function.
56677         * doc/functions/getline.texi: Likewise.
56678
56679 2007-09-09  Jim Meyering  <jim@meyering.net>
56680
56681         * lib/hash.c (hash_initialize): Detect calloc failure.
56682         Reported by Bruno Haible.
56683
56684 2007-09-09  Bruno Haible  <bruno@clisp.org>
56685
56686         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
56687         malloc or realloc fails.
56688
56689 2007-09-09  Bruno Haible  <bruno@clisp.org>
56690
56691         * modules/getcwd (Depends-on): Add malloc-posix.
56692         * modules/glob (Depends-on): Likewise.
56693         * modules/putenv (Depends-on): Likewise.
56694         * modules/strdup (Depends-on): Likewise.
56695         * modules/getdelim (Depends-on): Add realloc-posix.
56696         * modules/read-file (Depends-on): Likewise.
56697
56698 2007-09-09  Bruno Haible  <bruno@clisp.org>
56699
56700         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
56701         (gl_FUNC_MALLOC_POSIX): Require it.
56702         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
56703         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
56704         * modules/realloc (Files): Add m4/malloc.m4.
56705         * modules/calloc (Files): Likewise.
56706
56707 2007-09-09  Bruno Haible  <bruno@clisp.org>
56708
56709         * modules/malloc-posix: New file.
56710         * modules/malloc (Depends-on): Add malloc-posix.
56711         * lib/malloc.c: Include errno.h.
56712         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
56713         and a POSIX-compatible malloc into a single function. Set ENOMEM
56714         when returning NULL.
56715         * m4/malloc.m4: New file.
56716         * doc/functions/malloc.texi: Mention the malloc-posix module.
56717         * lib/stdlib_.h (malloc): New declaration.
56718         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
56719         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
56720         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
56721         and HAVE_MALLOC_POSIX.
56722
56723 2007-09-09  Bruno Haible  <bruno@clisp.org>
56724
56725         * modules/realloc-posix: New file.
56726         * modules/realloc (Depends-on): Add realloc-posix.
56727         * lib/realloc.c: Include errno.h.
56728         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
56729         and a POSIX-compatible realloc into a single function. Set ENOMEM
56730         when returning NULL.
56731         * m4/realloc.m4: New file.
56732         * doc/functions/realloc.texi: Mention the realloc-posix module.
56733         * lib/stdlib_.h (realloc): New declaration.
56734         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
56735         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
56736         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
56737         and HAVE_REALLOC_POSIX.
56738
56739 2007-09-09  Bruno Haible  <bruno@clisp.org>
56740
56741         * modules/calloc-posix: New file.
56742         * modules/calloc (Depends-on): Add calloc-posix.
56743         * lib/calloc.c: Include errno.h.
56744         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
56745         and a POSIX-compatible calloc into a single function. Set ENOMEM
56746         when returning NULL.
56747         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
56748         * doc/functions/calloc.texi: Mention the calloc-posix module.
56749         * lib/stdlib_.h (calloc): New declaration.
56750         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
56751         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
56752         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
56753         and HAVE_CALLOC_POSIX.
56754
56755 2007-09-09  Bruno Haible  <bruno@clisp.org>
56756
56757         Allow for modules to show an arbitrary notice.
56758         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
56759         * gnulib-tool: New option --extract-notice.
56760         (func_usage): Document it.
56761         (sed_extract_prog): Update.
56762         (func_get_notice): New function.
56763         (func_modules_notice): New function.
56764         (func_import, func_create_testdir): Invoke it.
56765         Suggested by Jim Meyering.
56766
56767 2007-09-09  Bruno Haible  <bruno@clisp.org>
56768
56769         * gnulib-tool: New options --verbose, --quiet.
56770         (func_usage): Document them.
56771         (verbose): New variable.
56772         (func_execute_command): New function.
56773         (func_import): Don't show the module list and the file list if
56774         $verbose < 0.
56775         (func_create_testdir): Likewise. Use func_execute_command.
56776         (func_create_megatestdir): Use func_execute_command.
56777
56778 2007-09-08  Bruno Haible  <bruno@clisp.org>
56779
56780         * gnulib-tool (func_import): Prefer rsync over wget when available,
56781         for fetching the PO files.
56782
56783 2007-09-08  Bruno Haible  <bruno@clisp.org>
56784
56785         * posix-modules: New file. Portions copied from gnulib-tool.
56786         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
56787
56788 2007-09-08  Jim Meyering  <jim@meyering.net>
56789
56790         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
56791         * lib/fpending.h: Rename from __fpending.h.
56792         * lib/fpending.c: Rename from __fpending.c.
56793         Include "fpending.h", not "__fpending.h".
56794         * lib/__fpending.h, lib/__fpending.c: Remove files.
56795         * modules/fpending (Files): Reflect new file names.
56796         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
56797
56798 2007-09-08  Bruno Haible  <bruno@clisp.org>
56799
56800         * m4/inttypes-h.m4: Remove stub file.
56801
56802 2007-09-07  Simon Josefsson  <simon@josefsson.org>
56803
56804         * doc/headers/stdint.texi: Discuss #include_next issue.
56805
56806 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
56807
56808         * build-aux/bootstrap: Remove obsolete comment about wget --help.
56809
56810 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56811
56812         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
56813         in variable name.
56814
56815 2007-09-03  Jim Meyering  <jim@meyering.net>
56816
56817         New module: git-version-gen.
56818         * modules/git-version-gen: New file.
56819
56820         Import changes from coreutils for bootstrap script.
56821
56822         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
56823
56824         bootstrap: uses rsync to download the .po files
56825         * build-aux/bootstrap (po_download_command_format): New global.
56826         (download_po_files): Use rsync.
56827         (update_po_files): Don't remove .po files after download,
56828         so future rsync runs can take advantage of the copies.
56829
56830         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
56831
56832         Solve the unnecessary-.po-file-regeneration problem once and for all.
56833         * build-aux/bootstrap (download_po_files): New function, renamed from
56834         get_translations.  Now, downloads, but doesn't update LINGUAS.
56835         (update_po_files): New function.
56836
56837         bootstrap: Ignore more.
56838         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
56839         uniwidth to e.g., lib/.gitignore.
56840         (slurp): Handle the sys_stat_.h -> sys mapping, too.
56841
56842         * build-aux/bootstrap: New setting: vc_ignore.
56843         (insert_sorted_if_absent): Create $file if absent.
56844         Adapt to new, possibly empty, list: $vc_ignore.
56845
56846         bootstrap: generate more ignorable names
56847         * build-aux/bootstrap (slurp): When generating ignorable names,
56848         also map .sin to .sed, .gperf to .c, and .y to .c.
56849
56850 2007-09-03  Jim Meyering  <jim@meyering.net>
56851
56852         * build-aux/git-version-gen: New file, from coreutils.  For details, see
56853         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
56854
56855 2007-09-02  Bruno Haible  <bruno@clisp.org>
56856
56857         Fix mis-recognition of 'mcs' on QNX 6.
56858         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
56859         output contains the string "Mono".
56860         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
56861         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
56862
56863 2007-09-01  Bruno Haible  <bruno@clisp.org>
56864
56865         Fix collision between uniwidth/* and linebreak modules.
56866         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
56867         u32_width): Remove declarations.
56868         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
56869         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
56870         streq3, streq2, streq1, streq0): Remove functions.
56871         (STREQ): Remove macro.
56872         (is_cjk_encoding): Remove function.
56873         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
56874         (uc_width, u8_width, u16_width, u32_width): Remove functions.
56875         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
56876         * NEWS: Document the change.
56877
56878 2007-09-01  Bruno Haible  <bruno@clisp.org>
56879
56880         * lib/streq.h: Add double-inclusion guard.
56881
56882 2007-09-01  Karl Berry  <karl@gnu.org>
56883
56884         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
56885
56886 2007-08-28  Jim Meyering  <jim@meyering.net>
56887
56888         Rename mreadlink_with_size to areadlink_with_size.
56889         * NEWS: Document the change.
56890         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
56891         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
56892         * lib/mreadlink.h: Rename this to...
56893         * lib/areadlink.h: ...this.
56894         * modules/mreadlink-with-size: Rename this to...
56895         * modules/areadlink-with-size: ...this.
56896         * lib/canonicalize.c: Reflect the renaming.
56897         * modules/canonicalize: Likewise.
56898
56899 2007-08-26  Bruno Haible  <bruno@clisp.org>
56900
56901         * gnulib-tool (func_import): When deciding which files to remove,
56902         consider also dangling symbolic links.
56903         Reported by Eric Blake.
56904
56905 2007-08-26  Bruno Haible  <bruno@clisp.org>
56906
56907         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
56908
56909 2007-08-23  Simon Josefsson  <simon@josefsson.org>
56910
56911         * lib/readline.c: Don't include getline.h, the prototype is now
56912         found in stdio.h.
56913
56914 2007-08-23  Jim Meyering  <jim@meyering.net>
56915
56916         Getdelim touchup.
56917         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
56918         around the funlockfile call, since funlockfile never sets errno.
56919         Don't set errno upon failed realloc.
56920
56921 2007-08-22  Eric Blake  <ebb9@byu.net>
56922
56923         Getline touchups.
56924         * lib/getdelim.c (getdelim): Revert regression that required *n to
56925         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
56926         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
56927         getdelim, rather than whether implementation is missing.
56928         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
56929         * lib/stdio_.h (getline): Also declare if replacement is
56930         required.
56931         * doc/functions/getdelim.texi: New file.
56932         * doc/functions/getline.texi: Likewise.
56933         * doc/gnulib.texi (Function Substitutes): Add new files.
56934         Reported by Bruno Haible.
56935
56936 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
56937
56938         * users.txt: Add Guile.
56939
56940 2007-08-22  Eric Blake  <ebb9@byu.net>
56941
56942         * tests/test-getdelim.c (main): Use remove, not unlink.
56943         * tests/test-getline.c (main): Likewise.
56944
56945         Move getline and getdelim into stdio.h, per POSIX 200x.
56946         * modules/getline (Files): Remove getline.h.
56947         (Depends-on): Add stdio.
56948         (configure.ac): Add module indicator.
56949         * modules/getdelim (Files): Remove getdelim.h.
56950         (Depends-on): Add stdio.
56951         (configure.ac): Add module indicator.
56952         * modules/stdio (Makefile.am): Work with new indicators.
56953         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
56954         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
56955         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
56956         * lib/getdelim.h: Delete.
56957         * lib/getline.h: Delete.
56958         * lib/stdio_.h (getdelim, getline): Declare.
56959         * modules/getdelim-tests: New module.
56960         * modules/getline-tests: Likewise.
56961         * tests/test-getdelim.c: New file.
56962         * tests/test-getline.c: Likewise.
56963         * NEWS: Document the change.
56964         * lib/getline.c: Update choice of header.
56965         * lib/csharpcomp.c: Likewise.
56966         * lib/getpass.c: Likewise.
56967         * lib/javacomp.c: Likewise.
56968         * lib/javaversion.c: Likewise.
56969         * lib/yesno.c: Likewise.
56970         * lib/getdelim.c: Likewise.
56971         (getdelim): Set errno on failure, and avoid memory leak.
56972
56973 2007-08-19  Bruno Haible  <bruno@clisp.org>
56974
56975         * modules/closein (Depends-on): Add freadahead.
56976         * lib/closein.c: Include freadahead.h.
56977         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
56978         is zero.
56979
56980 2007-08-19  Bruno Haible  <bruno@clisp.org>
56981
56982         * modules/freadahead-tests: New file.
56983         * tests/test-freadahead.sh: New file.
56984         * tests/test-freadahead.c: New file.
56985
56986         * modules/freadahead: New file.
56987         * lib/freadahead.h: New file.
56988         * lib/freadahead.c: New file.
56989         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
56990         fbufmode, fpurge, freadable, fwritable.
56991
56992 2007-08-19  Eric Blake  <ebb9@byu.net>
56993
56994         Test yesno in combination with closein.
56995         * lib/yesno.c (yesno): Document use of stdin.
56996         * modules/yesno-tests (Files): New module.
56997         * tests/test-yesno.c (main): New file.
56998         * tests/test-yesno.sh: Likewise.
56999
57000 2007-08-19  Bruno Haible  <bruno@clisp.org>
57001
57002         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
57003         * lib/fseeko.c (rpl_fseeko): Likewise.
57004         * lib/fseterr.c (fseterr): Likewise.
57005
57006 2007-08-19  Bruno Haible  <bruno@clisp.org>
57007
57008         * tests/test-lseek.c (main): Disable a test for BeOS.
57009         * doc/functions/lseek.texi: Document the BeOS bug.
57010
57011 2007-08-19  Bruno Haible  <bruno@clisp.org>
57012             Eric Blake  <ebb9@byu.net>
57013
57014         * lib/lseek.c: Include <sys/stat.h>.
57015         (rpl_lseek): Add workaround code also for Unix platforms.
57016         Needed for BeOS.
57017         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
57018         * doc/functions/lseek.texi: Document BeOS definiency.
57019
57020 2007-08-18  Bruno Haible  <bruno@clisp.org>
57021
57022         * modules/fstrcmp-tests: New file.
57023         * tests/test-fstrcmp.c: New file.
57024
57025 2007-08-18  Bruno Haible  <bruno@clisp.org>
57026
57027         * modules/fstrcmp: New file, from GNU gettext with modifications.
57028         * lib/fstrcmp.h: New file, from GNU gettext.
57029         * lib/fstrcmp.c: New file, from GNU gettext.
57030         * MODULES.html.sh (String handling): Add fstrcmp.
57031
57032 2007-08-18  Bruno Haible  <bruno@clisp.org>
57033
57034         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
57035         'bool'.
57036         (diag, compareseq): Remove const from the ctxt argument.
57037         (USE_HEURISTIC): Undefine at the end.
57038
57039 2007-08-18  Jim Meyering  <jim@meyering.net>
57040
57041         New file: lib/idcache.h
57042         * NEWS: Mention the addition.
57043         * modules/idcache (Files): Add lib/idcache.h
57044         * lib/idcache.c: Include "idcache.h".
57045         Don't include <sys/types.h>.
57046         Add a FIXME comment.
57047         Move file-scoped "static" declarations to the top.
57048         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
57049
57050 2007-08-17  Bruno Haible  <bruno@clisp.org>
57051         and Paul Eggert  <eggert@cs.ucla.edu>
57052
57053         * MODULES.html.sh: Add diffseq.
57054         * modules/diffseq: New file.
57055         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
57056         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
57057
57058 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
57059
57060         Import changes from coreutils for bootstrap script.
57061
57062         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
57063
57064         * build-aux/bootstrap (slurp): Work even in environments where
57065         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
57066         current code does not slurp files whose names start with ".", and
57067         this looks like it might be a troublesome area.
57068
57069         2007-07-11  Jim Meyering  <jim@meyering.net>
57070
57071         If there's a GPL vN copyright comment, require that N == 3.
57072
57073         2007-07-08  Jim Meyering  <jim@meyering.net>
57074
57075         Run the coreutils-specific code only if tests/Makefile.am.in exists.
57076         * build-aux/bootstrap (mam_template): Move definition out of loop.
57077
57078         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
57079
57080         * build-aux/bootstrap (symlink_to_dir): Rename function from
57081         symlink_to_gnulib.  Add a directory parameter.  Update all
57082         callers.
57083         (cp_mark_as_generated): Also check for -- and link to -- files in
57084         gl/.
57085
57086         2007-07-08  Jim Meyering  <jim@meyering.net>
57087
57088         Adapt to deeper hierarchy in gnulib.
57089         * build-aux/bootstrap (symlink_to_dir): If the destination
57090         directory doesn't exist, create it. This is required at least for
57091         "lib/uniwidth/cjk.h".
57092
57093         2007-05-15  Jim Meyering  <jim@meyering.net>
57094
57095         * build-aux/bootstrap: Now that generated Makefile.am files
57096         are no longer under version control, they must be created at
57097         bootstrap time.
57098
57099 2007-08-14  Ben Pfaff  <blp@gnu.org>
57100
57101         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
57102
57103 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
57104
57105         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
57106         given the changes below.
57107         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
57108         even on hosts that have padding bits beyond the supported 64.
57109
57110 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
57111
57112         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
57113         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
57114         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
57115         depends on it.
57116         (xstrtol_error): Remove.
57117         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
57118         but with a different signature.
57119         (ATTRIBUTE_NORETURN, __attribute__): New macros.
57120         * lib/xstrtol-error.c: Include exitfail.h.
57121         (xstrtol_fatal): New function, with a different signature from the
57122         old xstrtol_error, so that the caller need not worry about passing
57123         in an exit status, or about storage management of the option argument.
57124         (xstrtol_error): Now a static function.  Redo signature to
57125         implement xstrtol_fatal.  Output the correct number of hyphens in
57126         front of the option so that the caller need not worry about
57127         storage management.
57128         (N_): New macro.
57129         (_): Remove; not used now.
57130         * modules/xstrtol: Depend on getopt.
57131         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
57132         of old STRTOL_FATAL_ERROR macro.
57133         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
57134         of test program.
57135         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
57136         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
57137
57138 2007-08-08  Eric Blake  <ebb9@byu.net>
57139
57140         * lib/xstrtol-error.c: Add missing include.
57141
57142         Move xstrtol messages into gnulib domain, when --pobase is used.
57143         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
57144         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
57145         * modules/xstrtol (Files): Distribute new file.
57146         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
57147         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
57148         * tests/test-xstrtol.c: ...into new file.
57149         * tests/test-xstrtoul.c: Also test xstrtoul.
57150         * tests/test-xstrtoimax.c: Also test xstrtoimax.
57151         * tests/test-xstrtoumax.c: Also test xstrtoumax.
57152         * tests/test-xstrtol.sh: Drive the tests.
57153         * tests/test-xstrtoimax.sh: Likewise.
57154         * tests/test-xstrtoumax.sh: Likewise.
57155         * modules/xstrtol-tests: New module.
57156         * modules/xstrtoimax-tests: Likewise.
57157         * modules/xstrtoumax-tests: Likewise.
57158
57159 2007-08-08  Jim Meyering  <jim@meyering.net>
57160
57161         New function: mfile_name_concat.
57162         * lib/filenamecat.c (mfile_name_concat): New function, just like
57163         file_name_concat, but return NULL upon failure rather than exiting
57164         with a diagnostic.
57165         * lib/filenamecat.h: Declare it.
57166
57167 2007-08-07  Bruno Haible  <bruno@clisp.org>
57168
57169         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
57170         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
57171         warning from gcc.
57172         Reported by Eric Blake.
57173
57174 2007-08-07  Simon Josefsson  <simon@josefsson.org>
57175
57176         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
57177         * modules/crypto/arcfour (License): Likewise.
57178         * modules/crypto/des-tests (License): Likewise.
57179         * modules/crypto/gc-arctwo-tests (License): Likewise.
57180         * modules/crypto/gc-des-tests (License): Likewise.
57181         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
57182         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
57183         * modules/crypto/gc-md2-tests (License): Likewise.
57184         * modules/crypto/gc-md4-tests (License): Likewise.
57185         * modules/crypto/gc-md5-tests (License): Likewise.
57186         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
57187         * modules/crypto/gc-rijndael-tests (License): Likewise.
57188         * modules/crypto/gc-sha1-tests (License): Likewise.
57189         * modules/crypto/gc-tests (License): Likewise.
57190         * modules/crypto/hmac-md5 (License): Likewise.
57191         * modules/crypto/hmac-sha1 (License): Likewise.
57192         * modules/crypto/md2-tests (License): Likewise.
57193         * modules/crypto/md4-tests (License): Likewise.
57194         * modules/crypto/md5 (License): Likewise.
57195         * modules/crypto/rijndael (License): Likewise.
57196         * modules/crypto/sha1 (License): Likewise.
57197         * modules/memxor (License): Likewise.
57198
57199 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
57200         and Bruno Haible  <bruno@clisp.org>
57201
57202         * NEWS: Describe interface changes to human, xstrtol.
57203         * lib/human.h: Include <xstrtol.h>.
57204         (human_options): Return enum strtol_error, not int.  Remove
57205         bool arg; take int * instead.
57206         * lib/human.c: Don't include "gettext.h".
57207         (_): Remove; no longer used.
57208         Don't include <xstrtol.h>, since human.h does it.
57209         (human_options): Adjust to abovementioned interface changes.
57210         Do not report error to stderr; that's now the caller's
57211         responsibility.
57212         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
57213         interface change.
57214         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
57215         Str, Argument_type_string.  All uses changed.  Put " argument"
57216         in diagnostics to make them clearer.  Change wording of suffix
57217         message for clarity.
57218         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
57219         Argument_type_string.
57220         (STRTOL_FATAL_WARN): Remove; no longer used.
57221         * modules/human (Depends-on): Remove gettext-h.
57222
57223 2007-08-06  Simon Josefsson  <simon@josefsson.org>
57224
57225         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
57226
57227 2007-07-31  Bruno Haible  <bruno@clisp.org>
57228
57229         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
57230         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
57231         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
57232
57233 2007-07-31  Bruno Haible  <bruno@clisp.org>
57234
57235         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
57236         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
57237
57238 2007-07-30  Bruno Haible  <bruno@clisp.org>
57239
57240         * modules/base64 (License): Use the synonymous term "LGPLv2+".
57241         * modules/c-ctype (License): Likewise.
57242         * modules/c-strcase (License): Likewise.
57243         * modules/check-version (License): Likewise.
57244         * modules/iconv (License): Likewise.
57245         * modules/iconv_open (License): Likewise.
57246         * modules/read-file (License): Likewise.
57247         * modules/striconv (License): Likewise.
57248         * modules/strverscmp (License): Likewise.
57249         * modules/vasprintf (License): Likewise.
57250         * modules/crypto/des (License): Likewise.
57251         * modules/crypto/gc (License): Likewise.
57252         * modules/crypto/gc-arcfour (License): Likewise.
57253         * modules/crypto/gc-arctwo (License): Likewise.
57254         * modules/crypto/gc-des (License): Likewise.
57255         * modules/crypto/gc-hmac-md5 (License): Likewise.
57256         * modules/crypto/gc-hmac-sha1 (License): Likewise.
57257         * modules/crypto/gc-md2 (License): Likewise.
57258         * modules/crypto/gc-md4 (License): Likewise.
57259         * modules/crypto/gc-md5 (License): Likewise.
57260         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
57261         * modules/crypto/gc-random (License): Likewise.
57262         * modules/crypto/gc-rijndael (License): Likewise.
57263         * modules/crypto/gc-sha1 (License): Likewise.
57264         * modules/crypto/md2 (License): Likewise.
57265         * modules/crypto/md4 (License): Likewise.
57266
57267 2007-07-30  Jim Meyering  <jim@meyering.net>
57268
57269         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
57270         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
57271         it has valid stat data.  This bug would cause du not to count the
57272         sizes of inaccessible directories.
57273         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
57274         in <http://bugzilla.redhat.com/250077>.
57275
57276 2007-07-25  Peter O'Gorman  <peter@pogma.com>
57277             Bruno Haible  <bruno@clisp.org>
57278
57279         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
57280         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
57281         #include_next, gives a diagnostic about it, but reports no error in
57282         the exit code.
57283         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
57284
57285 2007-07-24  Ben Pfaff  <blp@gnu.org>
57286
57287         Improve name: "count-one-bits" is better than "popcount".
57288         * MODULES.html.sh: Update name.
57289         * lib/popcount.h: Renamed lib/count-one-bits.h.
57290         (popcount): Renamed count_one_bits.
57291         (popcountl): Renamed count_one_bits_l.
57292         (popcountll): Renamed count_one_bits_ll.
57293         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
57294         * modules/popcount: Renamed module/count-one-bits.
57295         * modules/popcount-tests: Renamed module/count-one-bits-tests.
57296         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
57297
57298 2007-07-23  Ben Pfaff  <blp@gnu.org>
57299
57300         * lib/popcount.h (popcount32): Reduce size of constants, to allow
57301         better code generation, and add U to large constants to avoid
57302         warnings, in non-GCC case.
57303         Suggested by Bruno Haible.
57304
57305 2007-07-23  Ben Pfaff  <blp@gnu.org>
57306
57307         * lib/popcount.h: Use verify_true instead of if...abort.
57308         * modules/popcount: Depend on verify module.
57309         Suggested by Jim Meyering.
57310
57311 2007-07-23  Bruno Haible  <bruno@clisp.org>
57312
57313         * gnulib-tool (func_import): Create a .cvsignore file also when the
57314         directory is not yet in CVS but the toplevel directory is. When
57315         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
57316         Reported by Karl Berry.
57317
57318 2007-07-22  Ben Pfaff  <blp@gnu.org>
57319
57320         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
57321         case.
57322         Suggested by Eric Blake.
57323
57324 2007-07-22  Ben Pfaff  <blp@gnu.org>
57325
57326         New module: popcount.
57327         * MODULES.html.sh: Add popcount.
57328         * modules/popcount: New file.
57329         * modules/popcount-tests: New file.
57330         * tests/test-popcount.c: New file.
57331         * lib/popcount.h: New file.
57332         * m4/popcount.m4: New file.
57333
57334 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
57335
57336         * build-aux/announce-gen: Update to GPLv3.
57337
57338         * build-aux/config.guess: Update from config.
57339
57340 2007-07-21  Bruno Haible  <bruno@clisp.org>
57341
57342         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
57343         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
57344
57345 2007-07-20  Jim Meyering  <jim@meyering.net>
57346
57347         * check-module: Diagnose a self-dependency.
57348
57349 2007-07-19  Bruno Haible  <bruno@clisp.org>
57350
57351         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
57352         empty.
57353         Reported by Eric Blake.
57354
57355 2007-07-18  Bruno Haible  <bruno@clisp.org>
57356
57357         * gnulib-tool: New options --po-base, --po-domain.
57358         (func_usage): Document them.
57359         (pobase, po_domain): New variables.
57360         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
57361         DEFAULT_TEXT_DOMAIN.
57362         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
57363         (func_import): Consider pobase and po_domain. Create a po/ directory.
57364         (func_create_testdir): Set pobase and po_domain to empty.
57365         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
57366         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
57367
57368 2007-07-18  Bruno Haible  <bruno@clisp.org>
57369
57370         * gnulib-tool (func_get_automake_snippet): Synthesize also an
57371         EXTRA_DIST augmentation for files in build-aux/.
57372
57373 2007-07-16  Bruno Haible  <bruno@clisp.org>
57374
57375         * modules/lseek (License): Use the synonymous term "LGPLv2+".
57376         * modules/getdelim (License): Likewise.
57377
57378 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57379
57380         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
57381         * modules/d-type (License): Likewise.
57382         * modules/extensions (License): Likewise.
57383         * modules/fnmatch (License): Likewise.
57384         * modules/fseeko (License): Likewise.
57385         * modules/getaddrinfo (License): Likewise.
57386         * modules/getline (License): Likewise.
57387         * modules/getlogin_r (License): Likewise.
57388         * modules/getpass (License): Likewise.
57389         * modules/gettimeofday (License): Likewise.
57390         * modules/glob (License): Likewise.
57391         * modules/inet_ntop (License): Likewise.
57392         * modules/malloc (License): Likewise.
57393         * modules/malloca (License): Likewise.
57394         * modules/memmem (License): Likewise.
57395         * modules/mempcpy (License): Likewise.
57396         * modules/memset (License): Likewise.
57397         * modules/minmax (License): Likewise.
57398         * modules/mktime (License): Likewise.
57399         * modules/netinet_in (License): Likewise.
57400         * modules/pathmax (License): Likewise.
57401         * modules/poll (License): Likewise.
57402         * modules/regex (License): Likewise.
57403         * modules/snprintf (License): Likewise.
57404         * modules/stdbool (License): Likewise.
57405         * modules/stdint (License): Likewise.
57406         * modules/stdio (License): Likewise.
57407         * modules/strcase (License): Likewise.
57408         * modules/strcasestr (License): Likewise.
57409         * modules/strdup (License): Likewise.
57410         * modules/string (License): Likewise.
57411         * modules/strndup (License): Likewise.
57412         * modules/strnlen (License): Likewise.
57413         * modules/strpbrk (License): Likewise.
57414         * modules/strptime (License): Likewise.
57415         * modules/strsep (License): Likewise.
57416         * modules/sys_select (License): Likewise.
57417         * modules/sys_socket (License): Likewise.
57418         * modules/sys_stat (License): Likewise.
57419         * modules/sys_time (License): Likewise.
57420         * modules/time (License): Likewise.
57421         * modules/time_r (License): Likewise.
57422         * modules/timegm (License): Likewise.
57423         * modules/unistd (License): Likewise.
57424         * modules/vsnprintf (License): Likewise.
57425         * modules/wctype (License): Likewise.
57426
57427 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57428
57429         * modules/argz (License): LGPLv2+.
57430
57431 2007-07-15  Karl Berry  <karl@gnu.org>
57432
57433         * doc/gnulib.texi: revise node structure per new fdl.texi.
57434
57435 2007-07-14  Bruno Haible  <bruno@clisp.org>
57436
57437         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
57438         the output file.
57439         * lib/uniname/uninames.h: Regenerated.
57440
57441 2007-07-14  Karl Berry  <karl@gnu.org>
57442
57443         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
57444         omitting sectioning and index commands.
57445
57446 2007-07-13  Bruno Haible  <bruno@clisp.org>
57447
57448         New gnulib-tool option --more-symlinks.
57449         * gnulib-tool (func_usage): Document --more-symlinks.
57450         (do_copyrights): New variable.
57451         Recognize option --more-symlinks.
57452         (func_import): Don't add a copyright notice transform to
57453         sed_transform_lib_file if do_copyrights is empty.
57454
57455 2007-07-13  Bruno Haible  <bruno@clisp.org>
57456
57457         * lib/vasnprintf.c (decimal_point_char): Define also if
57458         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
57459         && !NEED_PRINTF_DIRECTIVE_A.
57460         Reported by Clemens Koller <clemens.koller@anagramm.de> via
57461         Gary V. Vaughan <gary@gnu.org>.
57462
57463 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
57464
57465         * lib/inttypes_.h: Undo previous change, since it was fixed
57466         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
57467
57468 2007-07-13  Bruno Haible  <bruno@clisp.org>
57469
57470         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
57471         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
57472
57473 2007-07-13  Jim Meyering  <jim@meyering.net>
57474
57475         df: Don't fail for Tru64's "file-on-file mount".
57476         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
57477         so we fall through and use statfs instead.  Details here:
57478         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
57479         Reported by Albert Chin.
57480
57481 2007-07-13  Bruno Haible  <bruno@clisp.org>
57482
57483         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
57484         * modules/configmake (License): Likewise.
57485         * modules/gettext (License): Likewise.
57486         * modules/gettext-h (License): Likewise.
57487         * modules/include_next (License): Likewise.
57488         * modules/link-warning (License): Likewise.
57489         * modules/localcharset (License): Likewise.
57490         * modules/localename (License): Likewise.
57491         * modules/lock (License): Likewise.
57492         * modules/relocatable-lib-lgpl (License): Likewise.
57493         * modules/size_max (License): Likewise.
57494         * modules/vasnprintf (License): Likewise.
57495         * modules/wchar (License): Likewise.
57496         * modules/xsize (License): Likewise.
57497
57498 2007-07-13  Bruno Haible  <bruno@clisp.org>
57499
57500         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
57501         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
57502
57503 2007-07-12  Bruno Haible  <bruno@clisp.org>
57504
57505         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
57506         in the modules files.
57507
57508 2007-07-11  Karl Berry  <karl@gnu.org>
57509
57510         * MODULES.html.sh (func_module): use
57511          sed -e '\|^'"${includefile}"'$|d'
57512          instead of /.../d, to avoid errors on $includefile's containing /.
57513
57514 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
57515
57516         * gnulib-tool (func_import): Avoid duplication of --avoid
57517         statements
57518         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
57519         names to `_' in variable names.
57520
57521 2007-07-10  Eric Blake  <ebb9@byu.net>
57522
57523         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
57524         * NEWS: Document this change.
57525
57526 2007-07-08  Bruno Haible  <bruno@clisp.org>
57527
57528         Update to Unicode 5.0.
57529         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
57530         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
57531         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
57532         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
57533         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
57534         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
57535         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
57536         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
57537         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
57538         U+10A3F, U+1D242..U+1D244.
57539         (nonspacing_table_ind): Update.
57540         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
57541         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
57542
57543 2007-07-08  Bruno Haible  <bruno@clisp.org>
57544
57545         Update to Unicode 5.0.
57546         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
57547         code transform. Extend the name index field of unicode_name_to_code and
57548         unicode_code_to_name from 16 to 24 bits.
57549         * lib/uniname/uniname.c (unicode_character_name,
57550         unicode_name_character): Add the range 0x12xxx to the code transform.
57551         * lib/uniname/uninames.h: Regenerated.
57552         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
57553
57554 2007-07-07  Bruno Haible  <bruno@clisp.org>
57555
57556         * modules/wcwidth-tests: New file.
57557         * tests/test-wcwidth.c: New file.
57558
57559         Work around MacOS X wcwidth() bug.
57560         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
57561         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
57562         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
57563         original wcwidth in non-UTF-8 locales.
57564         * modules/wcwidth (Depends-on): Add localcharset, streq,
57565         uniwidth/width.
57566         * doc/functions/wcwidth.texi: Update.
57567
57568 2007-07-07  Bruno Haible  <bruno@clisp.org>
57569
57570         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
57571         (wcwidth): New declaration.
57572         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
57573         macros.
57574         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
57575         here. Prepare for creating <wchar.h> unconditionally.
57576         * modules/wchar (Depends-on): Add link-warning.
57577         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
57578         REPLACE_WCWIDTH, and GL_LINK_WARNING.
57579         * lib/wcwidth.h: Remove file.
57580         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
57581         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
57582         * modules/wcwidth (Files): Remove lib/wcwidth.h.
57583         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
57584         (Include): Replace wcwidth.h with <wchar.h>.
57585         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
57586         * lib/mbchar.h: Don't include wcwidth.h.
57587         * lib/mbswidth.c: Likewise.
57588         * NEWS: Mention the change.
57589
57590 2007-07-07  Bruno Haible  <bruno@clisp.org>
57591
57592         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
57593         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
57594         definition with an external declaration.
57595         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
57596         defined as a function. Remove AC_C_INLINE requirement.
57597         * modules/wcwidth (Files): Add lib/wcwidth.c.
57598         (Makefile.am): Remove redundant statement.
57599
57600 2007-07-07  Bruno Haible  <bruno@clisp.org>
57601
57602         * MODULES.html.sh (Unicode string functions): Add the new modules.
57603
57604         * tests/uniwidth/test-u32-strwidth.c: New file.
57605         * modules/uniwidth/u32-strwidth-tests: New file.
57606
57607         * lib/uniwidth/u32-strwidth.c: New file.
57608         * modules/uniwidth/u32-strwidth: New file.
57609
57610         * tests/uniwidth/test-u16-strwidth.c: New file.
57611         * modules/uniwidth/u16-strwidth-tests: New file.
57612
57613         * lib/uniwidth/u16-strwidth.c: New file.
57614         * modules/uniwidth/u16-strwidth: New file.
57615
57616         * tests/uniwidth/test-u8-strwidth.c: New file.
57617         * modules/uniwidth/u8-strwidth-tests: New file.
57618
57619         * lib/uniwidth/u8-strwidth.c: New file.
57620         * modules/uniwidth/u8-strwidth: New file.
57621
57622         * tests/uniwidth/test-u32-width.c: New file.
57623         * modules/uniwidth/u32-width-tests: New file.
57624
57625         * lib/uniwidth/u32-width.c: New file.
57626         * modules/uniwidth/u32-width: New file.
57627
57628         * tests/uniwidth/test-u16-width.c: New file.
57629         * modules/uniwidth/u16-width-tests: New file.
57630
57631         * lib/uniwidth/u16-width.c: New file.
57632         * modules/uniwidth/u16-width: New file.
57633
57634         * tests/uniwidth/test-u8-width.c: New file.
57635         * modules/uniwidth/u8-width-tests: New file.
57636
57637         * lib/uniwidth/u8-width.c: New file.
57638         * modules/uniwidth/u8-width: New file.
57639
57640         * tests/uniwidth/test-uc_width.c: New file.
57641         * modules/uniwidth/width-tests: New file.
57642
57643         * lib/uniwidth/width.c: New file, from GNU libiconv.
57644         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
57645         * modules/uniwidth/width: New file.
57646
57647         * lib/uniwidth.h: New file, from GNU libiconv.
57648         * modules/uniwidth/base: New file.
57649
57650 2007-07-07  Bruno Haible  <bruno@clisp.org>
57651
57652         * lib/uniname.h: New file, from GNU gettext.
57653         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
57654         * lib/uniname/uninames.h: New file, from GNU gettext.
57655         * lib/uniname/uniname.c: New file, from GNU gettext.
57656         * tests/uniname/test-uninames.sh: New file.
57657         * tests/uniname/test-uninames.c: New file, from GNU gettext.
57658         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
57659         * modules/uniname/base: New file.
57660         * modules/uniname/uniname: New file.
57661         * modules/uniname/uniname-tests: New file.
57662         * MODULES.html.sh (Unicode string functions): Add the new modules.
57663
57664 2007-07-06  Bruno Haible  <bruno@clisp.org>
57665
57666         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
57667
57668 2007-07-06  Bruno Haible  <bruno@clisp.org>
57669
57670         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
57671         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
57672         includes <cygwin/sys_time.h> which includes <sys/select.h> which
57673         include <sys/time.h>.
57674         Reported by Eric Blake.
57675
57676 2007-07-06  Eric Blake  <ebb9@byu.net>
57677
57678         Fix testing canonicalize on cygwin.
57679         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
57680         Revert patch from 2007-06-19.
57681         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
57682         canonicalize module is also in use.
57683         * tests/test-canonicalize.c: New file.
57684         * tests/test-canonicalize.sh: Likewise.
57685         * modules/canonicalize-tests: Likewise.
57686
57687 2007-07-06  Jim Meyering  <jim@meyering.net>
57688
57689         * lib/getugroups.c (getugroups): Detect getgrent failure.
57690         Adjust comment to reflect reality: this function may return -1.
57691
57692 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
57693
57694         * build-aux/bootstrap (TP_URL,get_translations): Update to use
57695         the new TP address.
57696         (usage): Fix typo
57697         (gnulib_mk): New variable.
57698
57699 2007-07-05  Jim Meyering  <jim@meyering.net>
57700
57701         Don't let endgrent clobber errno, no matter how improbable.
57702         * lib/getugroups.c (getugroups): Save and restore errno around
57703         endgrent call.
57704
57705         Close the group DB even when failing with 2^31 or more members.
57706         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
57707
57708 2007-07-04  Jim Meyering  <jim@meyering.net>
57709
57710         * lib/getugroups.h: New file.
57711         * lib/getugroups.c: Include "getugroups.h".
57712         Remove uses of "register" keyword.
57713         Move local variable, "cp", down into scope where used.
57714         Give "username" parameter the "const" attribute.
57715         * modules/getugroups (Files): Add lib/getugroups.h
57716
57717 2007-07-04  Karl Berry  <karl@gnu.org>
57718
57719         * MODULES.html.sh (func_all_modules): Complete rename of
57720         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
57721
57722 2007-07-02  Bruno Haible  <bruno@clisp.org>
57723
57724         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
57725         mode, when inttypes.h comes from gnulib.
57726         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
57727
57728 2007-07-02  Simon Josefsson  <simon@josefsson.org>
57729
57730         * NEWS: Mention lgpl module name change.
57731
57732         * modules/lgpl-2.1: Renamed from lgpl.
57733
57734         * NEWS: Mention gpl module name change.
57735
57736         * modules/gpl-3.0: New file, based on gpl-2.0.
57737
57738         * modules/gpl-2.0: Renamed from gpl.
57739
57740         * modules/gpl: Fix filename, doc/gpl.texi is now found at
57741         doc/gpl-2.0.texi.
57742
57743 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
57744
57745         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
57746         #define __STDC_LIMIT_MACROS temporarily while including
57747         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
57748         Problem reported by Joel E. Denny in
57749         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
57750
57751 2007-07-01  Bruno Haible  <bruno@clisp.org>
57752
57753         * lib/unistdio.h: New file.
57754         * lib/unistdio/u-asnprintf.h: New file.
57755         * lib/unistdio/u-asprintf.h: New file.
57756         * lib/unistdio/u-printf-args.c: New file.
57757         * lib/unistdio/u-printf-args.h: New file.
57758         * lib/unistdio/u-printf-parse.h: New file.
57759         * lib/unistdio/u-snprintf.h: New file.
57760         * lib/unistdio/u-sprintf.h: New file.
57761         * lib/unistdio/u-vasprintf.h: New file.
57762         * lib/unistdio/u-vsnprintf.h: New file.
57763         * lib/unistdio/u-vsprintf.h: New file.
57764         * lib/unistdio/ulc-asnprintf.c: New file.
57765         * lib/unistdio/ulc-asprintf.c: New file.
57766         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
57767         * lib/unistdio/ulc-printf-parse.c: New file.
57768         * lib/unistdio/ulc-snprintf.c: New file.
57769         * lib/unistdio/ulc-sprintf.c: New file.
57770         * lib/unistdio/ulc-vasnprintf.c: New file.
57771         * lib/unistdio/ulc-vasprintf.c: New file.
57772         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
57773         * lib/unistdio/ulc-vsnprintf.c: New file.
57774         * lib/unistdio/ulc-vsprintf.c: New file.
57775         * lib/unistdio/u8-asnprintf.c: New file.
57776         * lib/unistdio/u8-asprintf.c: New file.
57777         * lib/unistdio/u8-printf-parse.c: New file.
57778         * lib/unistdio/u8-snprintf.c: New file.
57779         * lib/unistdio/u8-sprintf.c: New file.
57780         * lib/unistdio/u8-vasnprintf.c: New file.
57781         * lib/unistdio/u8-vasprintf.c: New file.
57782         * lib/unistdio/u8-vsnprintf.c: New file.
57783         * lib/unistdio/u8-vsprintf.c: New file.
57784         * lib/unistdio/u8-u8-asnprintf.c: New file.
57785         * lib/unistdio/u8-u8-asprintf.c: New file.
57786         * lib/unistdio/u8-u8-snprintf.c: New file.
57787         * lib/unistdio/u8-u8-sprintf.c: New file.
57788         * lib/unistdio/u8-u8-vasnprintf.c: New file.
57789         * lib/unistdio/u8-u8-vasprintf.c: New file.
57790         * lib/unistdio/u8-u8-vsnprintf.c: New file.
57791         * lib/unistdio/u8-u8-vsprintf.c: New file.
57792         * lib/unistdio/u16-asnprintf.c: New file.
57793         * lib/unistdio/u16-asprintf.c: New file.
57794         * lib/unistdio/u16-printf-parse.c: New file.
57795         * lib/unistdio/u16-snprintf.c: New file.
57796         * lib/unistdio/u16-sprintf.c: New file.
57797         * lib/unistdio/u16-vasnprintf.c: New file.
57798         * lib/unistdio/u16-vasprintf.c: New file.
57799         * lib/unistdio/u16-vsnprintf.c: New file.
57800         * lib/unistdio/u16-vsprintf.c: New file.
57801         * lib/unistdio/u16-u16-asnprintf.c: New file.
57802         * lib/unistdio/u16-u16-asprintf.c: New file.
57803         * lib/unistdio/u16-u16-snprintf.c: New file.
57804         * lib/unistdio/u16-u16-sprintf.c: New file.
57805         * lib/unistdio/u16-u16-vasnprintf.c: New file.
57806         * lib/unistdio/u16-u16-vasprintf.c: New file.
57807         * lib/unistdio/u16-u16-vsnprintf.c: New file.
57808         * lib/unistdio/u16-u16-vsprintf.c: New file.
57809         * lib/unistdio/u32-asnprintf.c: New file.
57810         * lib/unistdio/u32-asprintf.c: New file.
57811         * lib/unistdio/u32-printf-parse.c: New file.
57812         * lib/unistdio/u32-snprintf.c: New file.
57813         * lib/unistdio/u32-sprintf.c: New file.
57814         * lib/unistdio/u32-vasnprintf.c: New file.
57815         * lib/unistdio/u32-vasprintf.c: New file.
57816         * lib/unistdio/u32-vsnprintf.c: New file.
57817         * lib/unistdio/u32-vsprintf.c: New file.
57818         * lib/unistdio/u32-u32-asnprintf.c: New file.
57819         * lib/unistdio/u32-u32-asprintf.c: New file.
57820         * lib/unistdio/u32-u32-snprintf.c: New file.
57821         * lib/unistdio/u32-u32-sprintf.c: New file.
57822         * lib/unistdio/u32-u32-vasnprintf.c: New file.
57823         * lib/unistdio/u32-u32-vasprintf.c: New file.
57824         * lib/unistdio/u32-u32-vsnprintf.c: New file.
57825         * lib/unistdio/u32-u32-vsprintf.c: New file.
57826         * tests/unistdio/test-ulc-asnprintf1.c: New file.
57827         * tests/unistdio/test-ulc-asnprintf1.h: New file.
57828         * tests/unistdio/test-ulc-printf1.h: New file.
57829         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
57830         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
57831         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
57832         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
57833         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
57834         * tests/unistdio/test-ulc-vasprintf1.c: New file.
57835         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
57836         * tests/unistdio/test-ulc-vsprintf1.c: New file.
57837         * tests/unistdio/test-u8-asnprintf1.c: New file.
57838         * tests/unistdio/test-u8-asnprintf1.h: New file.
57839         * tests/unistdio/test-u8-printf1.h: New file.
57840         * tests/unistdio/test-u8-vasnprintf1.c: New file.
57841         * tests/unistdio/test-u8-vasnprintf2.c: New file.
57842         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
57843         * tests/unistdio/test-u8-vasnprintf3.c: New file.
57844         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
57845         * tests/unistdio/test-u8-vasprintf1.c: New file.
57846         * tests/unistdio/test-u8-vsnprintf1.c: New file.
57847         * tests/unistdio/test-u8-vsprintf1.c: New file.
57848         * tests/unistdio/test-u16-asnprintf1.c: New file.
57849         * tests/unistdio/test-u16-asnprintf1.h: New file.
57850         * tests/unistdio/test-u16-printf1.h: New file.
57851         * tests/unistdio/test-u16-vasnprintf1.c: New file.
57852         * tests/unistdio/test-u16-vasnprintf2.c: New file.
57853         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
57854         * tests/unistdio/test-u16-vasnprintf3.c: New file.
57855         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
57856         * tests/unistdio/test-u16-vasprintf1.c: New file.
57857         * tests/unistdio/test-u16-vsnprintf1.c: New file.
57858         * tests/unistdio/test-u16-vsprintf1.c: New file.
57859         * tests/unistdio/test-u32-asnprintf1.c: New file.
57860         * tests/unistdio/test-u32-asnprintf1.h: New file.
57861         * tests/unistdio/test-u32-printf1.h: New file.
57862         * tests/unistdio/test-u32-vasnprintf1.c: New file.
57863         * tests/unistdio/test-u32-vasnprintf2.c: New file.
57864         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
57865         * tests/unistdio/test-u32-vasnprintf3.c: New file.
57866         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
57867         * tests/unistdio/test-u32-vasprintf1.c: New file.
57868         * tests/unistdio/test-u32-vsnprintf1.c: New file.
57869         * tests/unistdio/test-u32-vsprintf1.c: New file.
57870         * modules/unistdio/base: New file.
57871         * modules/unistdio/u-printf-args: New file.
57872         * modules/unistdio/ulc-asnprintf: New file.
57873         * modules/unistdio/ulc-asprintf: New file.
57874         * modules/unistdio/ulc-fprintf: New file.
57875         * modules/unistdio/ulc-printf-parse: New file.
57876         * modules/unistdio/ulc-snprintf: New file.
57877         * modules/unistdio/ulc-sprintf: New file.
57878         * modules/unistdio/ulc-vasnprintf: New file.
57879         * modules/unistdio/ulc-vasprintf: New file.
57880         * modules/unistdio/ulc-vfprintf: New file.
57881         * modules/unistdio/ulc-vsnprintf: New file.
57882         * modules/unistdio/ulc-vsprintf: New file.
57883         * modules/unistdio/u8-asnprintf: New file.
57884         * modules/unistdio/u8-asprintf: New file.
57885         * modules/unistdio/u8-printf-parse: New file.
57886         * modules/unistdio/u8-snprintf: New file.
57887         * modules/unistdio/u8-sprintf: New file.
57888         * modules/unistdio/u8-vasnprintf: New file.
57889         * modules/unistdio/u8-vasprintf: New file.
57890         * modules/unistdio/u8-vsnprintf: New file.
57891         * modules/unistdio/u8-vsprintf: New file.
57892         * modules/unistdio/u8-u8-asnprintf: New file.
57893         * modules/unistdio/u8-u8-asprintf: New file.
57894         * modules/unistdio/u8-u8-snprintf: New file.
57895         * modules/unistdio/u8-u8-sprintf: New file.
57896         * modules/unistdio/u8-u8-vasnprintf: New file.
57897         * modules/unistdio/u8-u8-vasprintf: New file.
57898         * modules/unistdio/u8-u8-vsnprintf: New file.
57899         * modules/unistdio/u8-u8-vsprintf: New file.
57900         * modules/unistdio/u16-asnprintf: New file.
57901         * modules/unistdio/u16-asprintf: New file.
57902         * modules/unistdio/u16-printf-parse: New file.
57903         * modules/unistdio/u16-snprintf: New file.
57904         * modules/unistdio/u16-sprintf: New file.
57905         * modules/unistdio/u16-vasnprintf: New file.
57906         * modules/unistdio/u16-vasprintf: New file.
57907         * modules/unistdio/u16-vsnprintf: New file.
57908         * modules/unistdio/u16-vsprintf: New file.
57909         * modules/unistdio/u16-u16-asnprintf: New file.
57910         * modules/unistdio/u16-u16-asprintf: New file.
57911         * modules/unistdio/u16-u16-snprintf: New file.
57912         * modules/unistdio/u16-u16-sprintf: New file.
57913         * modules/unistdio/u16-u16-vasnprintf: New file.
57914         * modules/unistdio/u16-u16-vasprintf: New file.
57915         * modules/unistdio/u16-u16-vsnprintf: New file.
57916         * modules/unistdio/u16-u16-vsprintf: New file.
57917         * modules/unistdio/u32-asnprintf: New file.
57918         * modules/unistdio/u32-asprintf: New file.
57919         * modules/unistdio/u32-printf-parse: New file.
57920         * modules/unistdio/u32-snprintf: New file.
57921         * modules/unistdio/u32-sprintf: New file.
57922         * modules/unistdio/u32-vasnprintf: New file.
57923         * modules/unistdio/u32-vasprintf: New file.
57924         * modules/unistdio/u32-vsnprintf: New file.
57925         * modules/unistdio/u32-vsprintf: New file.
57926         * modules/unistdio/u32-u32-asnprintf: New file.
57927         * modules/unistdio/u32-u32-asprintf: New file.
57928         * modules/unistdio/u32-u32-snprintf: New file.
57929         * modules/unistdio/u32-u32-sprintf: New file.
57930         * modules/unistdio/u32-u32-vasnprintf: New file.
57931         * modules/unistdio/u32-u32-vasprintf: New file.
57932         * modules/unistdio/u32-u32-vsnprintf: New file.
57933         * modules/unistdio/u32-u32-vsprintf: New file.
57934         * modules/unistdio/ulc-asnprintf-tests: New file.
57935         * modules/unistdio/ulc-vasnprintf-tests: New file.
57936         * modules/unistdio/ulc-vasprintf-tests: New file.
57937         * modules/unistdio/ulc-vsnprintf-tests: New file.
57938         * modules/unistdio/ulc-vsprintf-tests: New file.
57939         * modules/unistdio/u8-asnprintf-tests: New file.
57940         * modules/unistdio/u8-vasnprintf-tests: New file.
57941         * modules/unistdio/u8-vasprintf-tests: New file.
57942         * modules/unistdio/u8-vsnprintf-tests: New file.
57943         * modules/unistdio/u8-vsprintf-tests: New file.
57944         * modules/unistdio/u16-asnprintf-tests: New file.
57945         * modules/unistdio/u16-vasnprintf-tests: New file.
57946         * modules/unistdio/u16-vasprintf-tests: New file.
57947         * modules/unistdio/u16-vsnprintf-tests: New file.
57948         * modules/unistdio/u16-vsprintf-tests: New file.
57949         * modules/unistdio/u32-asnprintf-tests: New file.
57950         * modules/unistdio/u32-vasnprintf-tests: New file.
57951         * modules/unistdio/u32-vasprintf-tests: New file.
57952         * modules/unistdio/u32-vsnprintf-tests: New file.
57953         * modules/unistdio/u32-vsprintf-tests: New file.
57954         * MODULES.html.sh (Unicode string functions): Add the new modules.
57955
57956 2007-07-01  Bruno Haible  <bruno@clisp.org>
57957
57958         * lib/sprintf.c (sprintf): Limit the available length estimation,
57959         to avoid address wraparound.
57960         * lib/vsprintf.c (vsprintf): Likewise.
57961         * modules/sprintf-posix (Dependencies): Add stdint.
57962         * modules/vsprintf-posix (Dependencies): Likewise.
57963
57964 2007-07-01  Bruno Haible  <bruno@clisp.org>
57965
57966         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
57967         Windows PATH as well. Conservative double-quoting. Comments.
57968
57969 2007-07-01  Bruno Haible  <bruno@clisp.org>
57970             Eric Blake  <ebb9@byu.net>
57971             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57972
57973         * gnulib-tool (self_abspathname): Fix algorithm to cope with
57974         empty components in $PATH, denoting '.'.
57975
57976 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57977
57978         * gnulib-tool: Fix indentation.
57979         (func_create_megatestdir): Likewise.
57980         Report by Bruno Haible.
57981
57982 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57983
57984         Sync from Automake.
57985         * build-aux/gnupload: Fix shell portability issues with for loops.
57986         Report by Karl Berry.
57987
57988 2007-06-29  Simon Josefsson  <simon@josefsson.org>
57989
57990         * build-aux/maint.mk (POURL): Use translationproject.org.
57991
57992 2007-06-27  Simon Josefsson  <simon@josefsson.org>
57993             Bruno Haible  <bruno@clisp.org>
57994
57995         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
57996         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
57997         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
57998         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
57999         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
58000
58001 2007-06-27  Bruno Haible  <bruno@clisp.org>
58002
58003         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
58004         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
58005
58006 2007-06-26  Karl Berry  <karl@gnu.org>
58007
58008         * MODULES.html.sh: remove xreadlink-with-size.
58009
58010 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
58011
58012         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
58013         method that I hope also handles the double-include problem noted
58014         by Bruno Haible in
58015         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
58016
58017 2007-06-23  Bruno Haible  <bruno@clisp.org>
58018
58019         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
58020         Don't let the 'mostlyclean' target fail if the last subdirectory could
58021         not be removed.
58022         Reported by Karl Berry.
58023
58024 2007-06-23  Bruno Haible  <bruno@clisp.org>
58025
58026         * gnulib-tool (echo): Add a speedier workaround for ksh.
58027         * tests/test-echo.sh: Likewise.
58028
58029 2007-06-23  Bruno Haible  <bruno@clisp.org>
58030
58031         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
58032         * tests/test-echo.sh: Likewise.
58033
58034 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58035
58036         * gnulib-tool (IFS): Initialize early, so we don't set it to
58037         empty later.
58038         (self_abspathname): Rewrite algorithm to set it, reindent.
58039         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
58040         (func_create_megatestdir): Merge some sed scripts.
58041
58042 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
58043
58044         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
58045         exposed by Sun Studio 11 cc on Solaris 8.
58046
58047 2007-06-22  Bruno Haible  <bruno@clisp.org>
58048
58049         * gnulib-tool (echo): Ensure the echo primitive does not interpret
58050         backslashes.
58051         * tests/test-echo.sh: New file.
58052
58053 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58054
58055         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
58056         simplify `sed_replace_build_aux' scripts, they are portable but
58057         echoing them with `echo' is not.
58058         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
58059
58060 2007-06-21  Karl Berry  <karl@gnu.org>
58061
58062         * config/srclist.txt: guess we can't handle the licenses via
58063         srclist at the moment.
58064
58065 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
58066
58067         * MODULES.html.sh: Add include_next.
58068         * modules/include_next: New file.
58069
58070 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
58071
58072         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
58073         INCLUDE_NEXT.
58074         (gl_CHECK_NEXT_HEADERS): New macro.
58075         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
58076         the obsolescent gl_ABSOLUTE_HEADER.
58077         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
58078         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
58079         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
58080         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
58081         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
58082         * m4/math_h.m4 (gl_MATH_H): Likewise.
58083         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
58084         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
58085         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
58086         * m4/stdint.m4 (gl_STDINT_H): Likewise.
58087         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
58088         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
58089         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
58090         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
58091         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
58092         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
58093         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
58094         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
58095         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
58096         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
58097         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
58098         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
58099         * m4/inttypes.m4 (gl_INTTYPES_H): Define
58100         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
58101         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
58102         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
58103         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
58104         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
58105         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
58106         * lib/float_.h: Likewise.
58107         * lib/inttypes_.h: Likewise.
58108         * lib/math_.h: Likewise.
58109         * lib/search_.h: Likewise.
58110         * lib/signal_.h: Likewise.
58111         * lib/stdint_.h: Likewise.
58112         * lib/stdio_.h: Likewise.
58113         * lib/stdlib_.h: Likewise.
58114         * lib/string_.h: Likewise.
58115         * lib/sys_stat_.h: Likewise.
58116         * lib/sys_time_.h: Likewise.
58117         * lib/time_.h: Likewise.
58118         * lib/unistd_.h: Likewise.
58119         * lib/wchar_.h: Likewise.
58120         * lib/wctype_.h: Likewise.
58121         * lib/dirent_.h: Likewise.
58122         * lib/iconv_.h: Likewise.
58123         * lib/locale_.h: Likewise.
58124         * lib/netinet_in_.h: Likewise.
58125         * lib/sys_select_.h: Likewise.
58126         * lib/sys_socket_.h: Likewise.
58127         * lib/sysexits_.h: Likewise.
58128         * modules/fcntl (Depends-on): Depend on include_next, not
58129         absolute_header.
58130         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
58131         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
58132         * modules/fchdir: Likewise.
58133         * modules/float: Likewise.
58134         * modules/iconv_open: Likewise.
58135         * modules/inttypes: Likewise.
58136         * modules/locale: Likewise.
58137         * modules/math: Likewise.
58138         * modules/netinet_in: Likewise.
58139         * modules/search: Likewise.
58140         * modules/signal: Likewise.
58141         * modules/stdint: Likewise.
58142         * modules/stdio: Likewise.
58143         * modules/stdlib: Likewise.
58144         * modules/string: Likewise.
58145         * modules/sys_select: Likewise.
58146         * modules/sys_socket: Likewise.
58147         * modules/sys_stat: Likewise.
58148         * modules/sys_time: Likewise.
58149         * modules/sysexits: Likewise.
58150         * modules/time: Likewise.
58151         * modules/unistd: Likewise.
58152         * modules/wchar: Likewise.
58153         * modules/wctype: Likewise.
58154         * modules/sys_stat: Change maintainer to "all".
58155         * modules/unistd: Likewise.
58156
58157 2007-06-20  Karl Berry  <karl@gnu.org>
58158
58159         * config/srclist.txt: track www changes in license files.
58160
58161 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
58162
58163         * build-aux/bootstrap: Remove stray dot.
58164         Make sure build_aux settings are honored when linking
58165         gnulib_extra_files.
58166
58167 2007-06-19  Eric Blake  <ebb9@byu.net>
58168
58169         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
58170         Allow compilation on cygwin.
58171
58172 2007-06-19  Jim Meyering  <jim@meyering.net>
58173
58174         xreadlink-with-size: Remove module.  No longer used.
58175         Ex-callers now use xreadlink or mreadlink-with-size.
58176         * modules/xreadlink-with-size: Remove module.
58177         * lib/xreadlink-with-size.c: Remove file.
58178         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
58179         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
58180         just before the function definition *is* accurate.
58181
58182         Eliminate one way canonicalize_filename_mode could exit.
58183         * lib/canonicalize.c (canonicalize_filename_mode):
58184         Use mreadlink_with_size, not xreadlink_with_size.
58185
58186 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
58187
58188         Detect porting problems to FreeBSD/arm, which has time_t wider than
58189         long int.  Original problem reported for GNU diff by Xin Li in
58190         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
58191         * modules/getdate (Depends-on): Add intprops, verify.
58192         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
58193         is an integer type no wider than long int.
58194
58195 2007-06-18  Jim Meyering  <jim@meyering.net>
58196
58197         New module: mreadlink-with-size.
58198         * MODULES.html.sh: Add mreadlink-with-size.
58199         * modules/mreadlink-with-size: New module
58200         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
58201         not xreadlink-with-size.
58202         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
58203
58204 2007-06-16  Bruno Haible  <bruno@clisp.org>
58205
58206         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
58207         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
58208         Reported by Gary V. Vaughan <gary@gnu.org>.
58209
58210 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
58211
58212         Revamp lchown so that it lives in unistd.h where it belongs.
58213         * lib/lchown.h: Remove.
58214         * lib/dirchownmod.c: Don't include lib/lchown.h.
58215         * lib/fchownat.c: Likewise.
58216         * lib/openat.c: Likewise.
58217         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
58218         does not follow symlinks.
58219         (EOPNOTSUPP): Define if not defined.
58220         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
58221         is defined to 0.
58222         (lchown): New decl.
58223         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
58224         Do not check for lchown decl.
58225         Set REPLACE_LCHOWN.
58226         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
58227         REPLACE_LCHOWN.
58228         * modules/chown: Make it clear it follows symlinks.
58229         * modules/lchown: Make it clear it doesn't follow symlinks.
58230         (Files): Remove lib/lchown.h
58231         (Depends-on): Add unistd.
58232         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
58233         (Include): Include <unistd.h>, not "lchown.h".
58234         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
58235         REPLACE_LCHOWN.
58236
58237 2007-06-15  Jim Meyering  <jim@meyering.net>
58238
58239         Change license (GPL to LGPL) of fsusage and dependents.
58240         * modules/fsusage (License): Change to LGPL.
58241         * modules/full-read (License): Likewise.
58242         * modules/full-write (License): Likewise.
58243         * modules/safe-read (License): Likewise.
58244         * modules/safe-write (License): Likewise.
58245
58246 2007-06-14  Ben Pfaff  <blp@gnu.org>
58247
58248         Missing part of allocsa -> malloca transition.
58249         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
58250         gl_MALLOCA.
58251
58252 2007-06-12  Bruno Haible  <bruno@clisp.org>
58253
58254         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
58255         to ia64, x86_64, i386.
58256         Reported by Eric Blake.
58257
58258 2007-06-12  Bruno Haible  <bruno@clisp.org>
58259
58260         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
58261         cross-compiling to x86_64.
58262
58263 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
58264
58265         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
58266         glitch reported by Ralf Wildenhues in
58267         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
58268
58269         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
58270         Vin Shelton.
58271
58272 2007-06-11  Bruno Haible  <bruno@clisp.org>
58273
58274         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
58275         replacement string.
58276         Reported by Eric Blake.
58277
58278 2007-06-10  Bruno Haible  <bruno@clisp.org>
58279
58280         Prepare vasnprintf code for use with Unicode strings.
58281         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
58282         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
58283         TYPE_U32_STRING.
58284         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
58285         a_u32_string variants.
58286         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
58287         * lib/printf-args.c: Don't include config.h and the specification
58288         header if PRINTF_FETCHARGS is already defined.
58289         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
58290         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
58291         TYPE_U16_STRING, TYPE_U32_STRING.
58292         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
58293         u16_directive, u16_directives, u32_directive, u32_directives): New
58294         types.
58295         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
58296         New declarations.
58297         * lib/printf-parse.c: Don't include config.h and the specification
58298         header if PRINTF_PARSE is already defined. Eliminate the set of
58299         parameters for WIDE_CHAR_VERSION; the user of this file must provide
58300         them now. Include c-ctype.h.
58301         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
58302         directive and CHAR_T_ONLY_ASCII.
58303         * lib/vasnprintf.c: Don't include config.h and the specification header
58304         if VASNPRINTF is already defined.
58305         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
58306         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
58307         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
58308         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
58309         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
58310         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
58311         code accordingly.
58312         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
58313         pad_ourselves also in this case, with the 'c' and 's' directives, and
58314         with a different notion of "width".
58315         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
58316
58317 2007-06-10  Bruno Haible  <bruno@clisp.org>
58318
58319         * modules/unistr/u32-mbsnlen: New file.
58320         * lib/unistr/u32-mbsnlen.c: New file.
58321
58322         * modules/unistr/u16-mbsnlen: New file.
58323         * lib/unistr/u16-mbsnlen.c: New file.
58324
58325         * modules/unistr/u8-mbsnlen: New file.
58326         * lib/unistr/u8-mbsnlen.c: New file.
58327
58328         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
58329         declarations.
58330
58331 2007-06-10  Bruno Haible  <bruno@clisp.org>
58332
58333         * lib/string_.h (mbsnlen): New declaration.
58334         * lib/mbsnlen.c: New file.
58335         * m4/mbsnlen.m4: New file.
58336         * modules/mbsnlen: New file.
58337         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
58338         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
58339         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
58340
58341 2007-06-10  Bruno Haible  <bruno@clisp.org>
58342
58343         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
58344
58345 2007-06-10  Bruno Haible  <bruno@clisp.org>
58346
58347         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
58348         * lib/mbuiter.h: Likewise.
58349
58350 2007-06-10  Bruno Haible  <bruno@clisp.org>
58351
58352         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
58353         declaration.
58354
58355 2007-06-10  Karl Berry  <karl@gnu.org>
58356
58357         * config/srclist.txt: remove gettext entries, Bruno prefers
58358         to update individually.
58359
58360 2007-06-10  Bruno Haible  <bruno@clisp.org>
58361
58362         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
58363         'maxlen'. Ensure only length + width bytes are allocated, not
58364         length + 1 + width.
58365
58366 2007-06-09  Bruno Haible  <bruno@clisp.org>
58367
58368         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
58369         (CHAR_T): Remove macro.
58370         (VASNPRINTF): Update.
58371
58372 2007-06-09  Bruno Haible  <bruno@clisp.org>
58373
58374         * MODULES.html.sh (Unicode string functions): Add the new modules.
58375
58376         * modules/uniconv/u32-conv-to-enc: New file.
58377         * lib/uniconv/u32-conv-to-enc.c: New file.
58378         * modules/uniconv/u32-conv-to-enc-tests: New file.
58379         * tests/uniconv/test-u32-conv-to-enc.c: New file.
58380
58381         * modules/uniconv/u16-conv-to-enc: New file.
58382         * lib/uniconv/u16-conv-to-enc.c: New file.
58383         * lib/uniconv/u-conv-to-enc.h: New file.
58384         * modules/uniconv/u16-conv-to-enc-tests: New file.
58385         * tests/uniconv/test-u16-conv-to-enc.c: New file.
58386
58387         * modules/uniconv/u8-conv-to-enc: New file.
58388         * lib/uniconv/u8-conv-to-enc.c: New file.
58389         * modules/uniconv/u8-conv-to-enc-tests: New file.
58390         * tests/uniconv/test-u8-conv-to-enc.c: New file.
58391
58392         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
58393         u32_conv_to_encoding): New declarations.
58394
58395 2007-06-09  Bruno Haible  <bruno@clisp.org>
58396
58397         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
58398
58399 2007-06-09  Bruno Haible  <bruno@clisp.org>
58400
58401         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
58402         * modules/malloca: Renamed from modules/allocsa, updated.
58403         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
58404         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
58405         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
58406         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
58407         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
58408         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
58409         * modules/xmalloca: Renamed from modules/xallocsa, updated.
58410         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
58411         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
58412         * modules/c-strcasestr (Depends-on): Update.
58413         * lib/c-strcasestr.c: Update.
58414         * modules/c-strstr (Depends-on): Update.
58415         * lib/c-strstr.c: Update.
58416         * modules/canonicalize-lgpl (Depends-on): Update.
58417         * lib/canonicalize-lgpl.c: Update.
58418         * modules/clean-temp (Depends-on): Update.
58419         * lib/clean-temp.c: Update.
58420         * modules/csharpcomp (Depends-on): Update.
58421         * lib/csharpcomp.c: Update.
58422         * modules/csharpexec (Depends-on): Update.
58423         * lib/csharpexec.c: Update.
58424         * modules/javacomp (Depends-on): Update.
58425         * lib/javacomp.c: Update.
58426         * modules/javaexec (Depends-on): Update.
58427         * lib/javaexec.c: Update.
58428         * modules/mbscasestr (Depends-on): Update.
58429         * lib/mbscasestr.c: Update.
58430         * modules/mbsstr (Depends-on): Update.
58431         * lib/mbsstr.c: Update.
58432         * modules/setenv (Depends-on): Update.
58433         * lib/setenv.c: Update.
58434         * modules/strcasestr (Depends-on): Update.
58435         * lib/strcasestr.c: Update.
58436         * modules/striconveha (Depends-on): Update.
58437         * lib/striconveha.c: Update.
58438         * modules/relocatable-prog-wrapper (Files): Update.
58439         * lib/relocwrapper.c: Update.
58440         * build-aux/install-reloc: Update.
58441         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
58442
58443 2007-06-08  Bruno Haible  <bruno@clisp.org>
58444
58445         Port to uClibc.
58446         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
58447         * lib/fpurge.c (fpurge): Likewise.
58448         * lib/freading.c (freading): Likewise.
58449         * lib/fseeko.c (rpl_fseeko): Likewise.
58450         * lib/fseterr.c (fseterr): Likewise.
58451         * lib/fwriting.c (fwriting): Likewise.
58452         * tests/test-fflush.c (main): Avoid a failure on uClibc.
58453
58454 2007-06-08  Bruno Haible  <bruno@clisp.org>
58455
58456         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
58457         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
58458         * modules/gettext (Files): Add m4/intlmacosx.m4.
58459
58460 2007-06-07  Bruno Haible  <bruno@clisp.org>
58461
58462         * modules/localename-tests: New file.
58463         * tests/test-localename.c: New file.
58464
58465         New module 'localename'.
58466         * lib/localename.h: New file.
58467         * lib/localename.c: New file, from GNU gettext.
58468         * m4/localename.m4: New file.
58469         * modules/localename: New file.
58470
58471 2007-06-07  Bruno Haible  <bruno@clisp.org>
58472
58473         Work around the lack of <wchar.h> on some builds of uClibc.
58474         * doc/headers/wchar.texi: Update.
58475         * lib/wchar_.h: Include <wchar.h> only if it exists.
58476         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
58477         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
58478         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
58479         doesn't exist.
58480         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
58481         * modules/mbfile (Depends-on): Add wchar.
58482         * modules/mbiter (Depends-on): Likewise.
58483         * modules/mbuiter (Depends-on): Likewise.
58484         Reported by Simon Josefsson.
58485
58486 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
58487
58488         Work around problem reported by Steven M. Schweda in
58489         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
58490         Tru64 5.1B with the Compaq compiler environment installed declares
58491         an 'isblank' function but does not define it in the C library.
58492         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
58493         * lib/regex_internal.h (isblank): Likewise.
58494         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
58495         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
58496
58497 2007-06-05  Bruno Haible  <bruno@clisp.org>
58498
58499         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
58500         ia64.
58501         * modules/printf-safe: New file.
58502         * modules/fprintf-posix (Depends-on): Add printf-safe.
58503         * modules/printf-posix (Depends-on): Likewise.
58504         * modules/snprintf-posix (Depends-on): Likewise.
58505         * modules/sprintf-posix (Depends-on): Likewise.
58506         * modules/vasnprintf-posix (Depends-on): Likewise.
58507         * modules/vasprintf-posix (Depends-on): Likewise.
58508         * modules/vfprintf-posix (Depends-on): Likewise.
58509         * modules/vprintf-posix (Depends-on): Likewise.
58510         * modules/vsnprintf-posix (Depends-on): Likewise.
58511         * modules/vsprintf-posix (Depends-on): Likewise.
58512         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
58513         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
58514         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
58515         "no" on i386, x86_64, ia64.
58516         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
58517         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
58518         on i386, x86_64, ia64.
58519         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
58520         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
58521         on i386, x86_64, ia64.
58522         * tests/test-vasnprintf-posix.c: Include float.h.
58523         (LDBL80_WORDS): New macro.
58524         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
58525         on i386, x86_64, ia64.
58526         * tests/test-vasprintf-posix.c: Include float.h.
58527         (LDBL80_WORDS): New macro.
58528         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
58529         on i386, x86_64, ia64.
58530         * tests/test-snprintf-posix.c: Include float.h.
58531         * tests/test-sprintf-posix.c: Likewise.
58532         * tests/test-vsnprintf-posix.c: Likewise.
58533         * tests/test-vsprintf-posix.c: Likewise.
58534
58535 2007-06-05  Bruno Haible  <bruno@clisp.org>
58536
58537         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
58538         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
58539         non-IEEE numbers on i386, x86_64, ia64.
58540         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
58541         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
58542         * tests/test-isnanl.h: Include float.h.
58543         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
58544
58545 2007-06-05  Bruno Haible  <bruno@clisp.org>
58546
58547         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
58548         also the %a / %A. Handle the %a / %A code before this extra handling.
58549
58550 2007-06-05  Bruno Haible  <bruno@clisp.org>
58551
58552         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
58553         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
58554
58555 2007-06-05  Bruno Haible  <bruno@clisp.org>
58556
58557         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
58558         typo in variable name.
58559
58560 2007-06-05  Eric Blake  <ebb9@byu.net>
58561
58562         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
58563         Reported by Simon Josefsson.
58564
58565 2007-06-04  Bruno Haible  <bruno@clisp.org>
58566
58567         Avoid test failures on some PowerPC platforms.
58568         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
58569         Define differently for PowerPC.
58570         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
58571         Reported by Gary V. Vaughan <gary@gnu.org>.
58572
58573 2007-06-02  Bruno Haible  <bruno@clisp.org>
58574
58575         Fix test-stdint failure on FreeBSD/ia64.
58576         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
58577         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
58578         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
58579         * doc/headers/stdint.texi: Update.
58580
58581 2007-06-01  Bruno Haible  <bruno@clisp.org>
58582
58583         * tests/test-binary-io.c (main): Pass a third argument to open().
58584         Reported by Gary V. Vaughan <gary@gnu.org>.
58585
58586 2007-06-01  Bruno Haible  <bruno@clisp.org>
58587
58588         * doc/functions/frexpl.texi: Update for mingw.
58589
58590 2007-06-01  Bruno Haible  <bruno@clisp.org>
58591
58592         * tests/test-lseek.c (main): Disable test of errno for invalid third
58593         argument.
58594         * doc/functions/lseek.texi: Update.
58595         Reported by Gary V. Vaughan <gary@gnu.org>.
58596
58597 2007-05-28  Bruno Haible  <bruno@clisp.org>
58598
58599         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
58600
58601 2007-05-31  Eric Blake  <ebb9@byu.net>
58602
58603         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
58604         cross compiling.
58605
58606 2007-05-30  Eric Blake  <ebb9@byu.net>
58607         and Bruno Haible  <bruno@clisp.org>
58608
58609         Work around mingw test failures exposed by m4-1.4.9b.
58610         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
58611         * tests/test-unistd.c: Disable uid_t and git_t tests for the
58612         moment.
58613
58614 2007-05-30  Bruno Haible  <bruno@clisp.org>
58615
58616         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
58617         assuming that they are closed. Needed on HP-UX 11.
58618
58619 2007-05-29  Bruno Haible  <bruno@clisp.org>
58620
58621         Fix a problem with #include_next.
58622         * lib/dirent_.h: Split the double-inclusion guard.
58623         * lib/fcntl_.h: Likewise.
58624         * lib/float_.h: Likewise.
58625         * lib/iconv_.h: Likewise.
58626         * lib/inttypes_.h: Likewise.
58627         * lib/locale_.h: Likewise.
58628         * lib/math_.h: Likewise.
58629         * lib/netinet_in_.h: Likewise.
58630         * lib/search_.h: Likewise.
58631         * lib/signal_.h: Likewise.
58632         * lib/stdint_.h: Likewise.
58633         * lib/stdio_.h: Likewise.
58634         * lib/stdlib_.h: Likewise.
58635         * lib/string_.h: Likewise.
58636         * lib/sys_select_.h: Likewise.
58637         * lib/sys_socket_.h: Likewise.
58638         * lib/sys_stat_.h: Likewise.
58639         * lib/sys_time_.h: Likewise.
58640         * lib/sysexits_.h: Likewise.
58641         * lib/time_.h: Likewise.
58642         * lib/unistd_.h: Likewise.
58643         * lib/wchar_.h: Likewise.
58644         * lib/wctype_.h: Likewise.
58645
58646 2007-05-29  Bruno Haible  <bruno@clisp.org>
58647
58648         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
58649         for the moment.
58650
58651 2007-05-29  Bruno Haible  <bruno@clisp.org>
58652
58653         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
58654         invocation.
58655         Reported by Eric Blake.
58656
58657 2007-05-29  Bruno Haible  <bruno@clisp.org>
58658
58659         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
58660         compiling case.
58661
58662 2007-05-29  Eric Blake  <ebb9@byu.net>
58663             Bruno Haible  <bruno@clisp.org>
58664
58665         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
58666         cross compiles.
58667
58668 2007-05-28  Eric Blake  <ebb9@byu.net>
58669
58670         * modules/closein-tests (test_closein_LDADD): Support test on
58671         cygwin with libtool.
58672
58673 2007-05-28  Bruno Haible  <bruno@clisp.org>
58674
58675         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
58676         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
58677         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
58678         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
58679         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
58680         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
58681         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
58682         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
58683         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
58684
58685 2007-05-28  Eric Blake  <ebb9@byu.net>
58686
58687         Unconditionally include <config.h> in unit tests.
58688         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
58689         * tests/test-allocsa.c, tests/test-arcfour.c,
58690         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
58691         tests/test-array_list.c, tests/test-array_oset.c,
58692         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
58693         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
58694         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
58695         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
58696         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
58697         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
58698         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
58699         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
58700         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
58701         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
58702         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
58703         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
58704         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
58705         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
58706         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
58707         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
58708         test-md5.c, test-memmem.c, test-printf-posix.c,
58709         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
58710         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
58711         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
58712         test-strcasestr.c, test-striconv.c, test-striconveh.c,
58713         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
58714         test-vasnprintf-posix2.c, test-vasnprintf.c,
58715         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
58716         test-vfprintf-posix.c, test-vprintf-posix.c,
58717         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
58718         test-xvasprintf.c: Likewise.
58719
58720 2007-05-28  Bruno Haible  <bruno@clisp.org>
58721
58722         * gnulib-tool (func_import): Remember the --with-tests command-line
58723         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
58724         Reported by Eric Blake.
58725
58726 2007-05-28  Bruno Haible  <bruno@clisp.org>
58727
58728         * modules/ftell-tests: New file.
58729         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
58730         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
58731
58732         * lib/ftell.c: New file.
58733         * modules/ftell: New file.
58734         * m4/ftell.m4: New file.
58735         * doc/functions/ftell.texi: Update.
58736         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
58737         REPLACE_FTELL.
58738         * lib/stdio_.h (rpl_ftell): New declaration.
58739         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
58740         REPLACE_FTELL.
58741
58742 2007-05-28  Eric Blake  <ebb9@byu.net>
58743
58744         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
58745
58746 2007-05-28  Bruno Haible  <bruno@clisp.org>
58747
58748         * modules/fseek-tests: New file.
58749         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
58750         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
58751
58752         * lib/fseek.c: New file.
58753         * modules/fseek: New file.
58754         * m4/fseek.m4: New file.
58755         * doc/functions/fseek.texi: Update.
58756         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
58757         REPLACE_FSEEK.
58758         * lib/stdio_.h (rpl_fseek): New declaration.
58759         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
58760         REPLACE_FSEEK.
58761
58762 2007-05-28  Bruno Haible  <bruno@clisp.org>
58763
58764         * lib/stdio_.h (fflush): More comments.
58765
58766 2007-05-28  Bruno Haible  <bruno@clisp.org>
58767
58768         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
58769         runtime test.
58770
58771 2007-05-28  Eric Blake  <ebb9@byu.net>
58772
58773         Improve lseek module.
58774         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
58775         * lib/unistd_.h (lseek): Scale back link warning message.
58776         * tests/test-lseek.c: Beef up test.
58777         * tests/test-lseek.sh: Exercise more facets of lseek.
58778         Reported by Bruno Haible.
58779
58780 2007-05-28  Bruno Haible  <bruno@clisp.org>
58781
58782         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
58783         to define.
58784
58785 2007-05-27  Bruno Haible  <bruno@clisp.org>
58786
58787         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
58788
58789 2007-05-27  Bruno Haible  <bruno@clisp.org>
58790
58791         * modules/openmp: New file.
58792         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
58793         Noah Misch.
58794
58795 2007-05-26  Bruno Haible  <bruno@clisp.org>
58796
58797         * modules/chdir-long (Depends-on): Add fchdir.
58798         * modules/chdir-safer (Depends-on): Likewise.
58799         * modules/fts (Depends-on): Likewise.
58800         * modules/fts-lgpl (Depends-on): Likewise.
58801         * modules/openat (Depends-on): Likewise.
58802         * modules/savewd (Depends-on): Likewise.
58803
58804 2007-05-24  Eric Blake  <ebb9@byu.net>
58805
58806         Fix lseek on mingw.
58807         * modules/lseek: New module.
58808         * m4/lseek.m4: New file.
58809         * lib/lseek.c: New file.
58810         * modules/lseek-tests: New file.
58811         * tests/test-lseek.c: New file.
58812         * tests/test-lseek.sh: New file.
58813         * MODULES.html.sh: Document lseek module.
58814         * modules/fflush (Depends-on): Add lseek, fseeko.
58815         * modules/fseeko (Depends-on): Likewise.
58816         * modules/ftello (Depends-on): Likewise.
58817         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
58818         broken.
58819         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
58820         broken.
58821         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
58822         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
58823         * lib/ftello.c (rpl_ftello): Likewise.
58824         * tests/test-fseeko.c (main): Test this.
58825         * tests/test-fseeko.sh: Likewise.
58826         * tests/test-ftello.c (main): Likewise.
58827         * tests/test-ftello.sh: Likewise.
58828         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
58829         implies replacing fseek.
58830         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
58831         HAVE_FTELLO.
58832         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
58833         * modules/unistd (Makefile.am): Likewise.
58834         * lib/unistd_.h (lseek): Declare a replacement.
58835         * doc/functions/lseek.texi (lseek): Document this fix.
58836         * doc/functions/fseek.texi (fseek): Likewise.
58837         * doc/functions/ftell.texi (ftell): Likewise.
58838
58839 2007-05-24  Bruno Haible  <bruno@clisp.org>
58840
58841         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
58842         in the printed representation of a NaN.
58843         * tests/test-vasprintf-posix.c (test_function): Likewise.
58844         * tests/test-snprintf-posix.h (test_function): Likewise.
58845         * tests/test-sprintf-posix.h (test_function): Likewise.
58846         Reported by Eric Blake.
58847
58848 2007-05-23  Eric Blake  <ebb9@byu.net>
58849
58850         Fix fseeko/ftello on cygwin 1.5.24.
58851         * doc/functions/fseeko.texi (fseeko): Document the fix.
58852         * doc/functions/ftello.texi (ftello): Document the fix.
58853         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
58854         * doc/functions/stdout.text (stdout): New file.
58855         * doc/functions/stderr.text (stderr): New file.
58856         * doc/gnulib.texi (Function Substitutes): Use new files.
58857         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
58858         prior to 1.7.0.
58859         * tests/test-ftello.c (main): Likewise for ftello.
58860         * tests/test-fseeko.sh: New file.
58861         * tests/test-ftello.sh: New file.
58862         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
58863         with seekable stdin.
58864         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
58865         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
58866         (gl_REPLACE_FSEEKO): New macro.
58867         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
58868         * modules/fseeko (Files): Distribute fseeko.c.
58869         * modules/ftello (Files): Distribute ftello.c.
58870         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
58871         mode.
58872         * lib/ftello.c (rpl_ftello): New file.
58873         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
58874         fseeko, ftello.
58875         (gl_STDIN_LARGE_OFFSET): New macro.
58876         * modules/stdio (Makefile.am): Perform the replacement.
58877         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
58878
58879 2007-05-23  Bruno Haible  <bruno@clisp.org>
58880
58881         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
58882         GNULIB_POSIXCHECK is defined.
58883
58884 2007-05-21  Bruno Haible  <bruno@clisp.org>
58885
58886         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
58887         Check also the output for NaN arguments. When cross-compiling, guess
58888         no on IRIX.
58889         * lib/vasnprintf.c: Update comments.
58890         * tests/test-vasnprintf-posix.c (strisnan): New function.
58891         (test_function): Use it.
58892         * tests/test-vasprintf-posix.c (strisnan): New function.
58893         (test_function): Use it.
58894         * tests/test-snprintf-posix.h (strisnan): New function.
58895         (test_function): Use it.
58896         * tests/test-sprintf-posix.h (strisnan): New function.
58897         (test_function): Use it.
58898         Reported by Eric Blake.
58899
58900 2007-05-20  Bruno Haible  <bruno@clisp.org>
58901
58902         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
58903         numbers that fails on BeOS.
58904         * doc/functions/frexpl.texi: Update.
58905
58906 2007-05-20  Jim Meyering  <jim@meyering.net>
58907
58908         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
58909         forced upon us by glibc-2.6.
58910
58911 2007-05-20  Bruno Haible  <bruno@clisp.org>
58912
58913         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
58914         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
58915         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
58916         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
58917         NEED_PRINTF_INFINITE.
58918         (is_infinitel): New function.
58919         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
58920         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
58921         gl_PREREQ_VASNPRINTF_INFINITE.
58922         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
58923         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
58924         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
58925         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
58926         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
58927         gl_PREREQ_VASNPRINTF_INFINITE.
58928         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
58929         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
58930         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
58931         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
58932         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
58933         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
58934         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
58935         * doc/functions/fprintf.texi: Update.
58936         * doc/functions/printf.texi: Update.
58937         * doc/functions/snprintf.texi: Update.
58938         * doc/functions/sprintf.texi: Update.
58939         * doc/functions/vfprintf.texi: Update.
58940         * doc/functions/vprintf.texi: Update.
58941         * doc/functions/vsnprintf.texi: Update.
58942         * doc/functions/vsprintf.texi: Update.
58943
58944 2007-05-20  Bruno Haible  <bruno@clisp.org>
58945
58946         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
58947         was not found in libc.
58948         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
58949
58950 2007-05-20  Bruno Haible  <bruno@clisp.org>
58951
58952         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
58953         printed as "-nan" instead of "nan".
58954         * tests/test-vasprintf-posix.c (test_function): Likewise.
58955         * tests/test-snprintf-posix.h (test_function): Likewise.
58956         * tests/test-sprintf-posix.h (test_function): Likewise.
58957         Needed for HP-UX 11.
58958
58959 2007-05-20  Jim Meyering  <jim@meyering.net>
58960
58961         Fix buggy test for the fchownat-deref bug.
58962         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
58963         symlink required for the run-test.  Without it, this test would
58964         always declare that fchownat doesn't work, and client code would
58965         unnecessarily use the replacement function with fixed libc.
58966         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
58967         Reported by Greg Schafer.
58968
58969 2007-05-19  Bruno Haible  <bruno@clisp.org>
58970
58971         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
58972         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
58973         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
58974         Needed for IRIX 6.5 and Solaris 2.5.1.
58975
58976 2007-05-19  Bruno Haible  <bruno@clisp.org>
58977
58978         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
58979         (test_function): Skip tests involving -0.0 on platforms where
58980         -0.0 = 0.0.
58981         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
58982         (test_function): Skip tests involving -0.0 on platforms where
58983         -0.0 = 0.0.
58984         * tests/test-snprintf-posix.h (have_minus_zero): New function.
58985         (test_function): Skip tests involving -0.0 on platforms where
58986         -0.0 = 0.0.
58987         * tests/test-sprintf-posix.h (have_minus_zero): New function.
58988         (test_function): Skip tests involving -0.0 on platforms where
58989         -0.0 = 0.0.
58990         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
58991         tests.
58992         * tests/test-printf-posix.h (test_function): Likewise.
58993         * tests/test-printf-posix.output: Remove all -0.0 related results.
58994         Needed for IRIX 6.5.
58995
58996 2007-05-19  Bruno Haible  <bruno@clisp.org>
58997
58998         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
58999         printed as "nan0x7fffffff" instead of "nan".
59000         * tests/test-vasprintf-posix.c (test_function): Likewise.
59001         * tests/test-snprintf-posix.h (test_function): Likewise.
59002         * tests/test-sprintf-posix.h (test_function): Likewise.
59003         * tests/test-fprintf-posix.h (NaN): Remove macro.
59004         (test_function): Remove all NaN related tests.
59005         * tests/test-printf-posix.h (NaN): Remove macro.
59006         (test_function): Remove all NaN related tests.
59007         * tests/test-printf-posix.output: Remove all NaN related results.
59008         Needed for IRIX 6.5.
59009
59010 2007-05-19  Bruno Haible  <bruno@clisp.org>
59011
59012         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
59013         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
59014
59015 2007-05-19  Bruno Haible  <bruno@clisp.org>
59016
59017         * lib/float_.h: New file.
59018         * m4/float_h.m4: New file.
59019         * modules/float: New file.
59020         * modules/isnanl (Dependencies): Add float.
59021         * modules/isnanl-nolibm (Dependencies): Likewise.
59022         * modules/mathl (Dependencies): Likewise.
59023         * modules/printf-frexpl (Dependencies): Likewise.
59024         * modules/signbit (Dependencies): Likewise.
59025         * modules/vasnprintf (Dependencies): Likewise.
59026         * doc/headers/float.texi: Update.
59027
59028 2007-05-19  Jim Meyering  <jim@meyering.net>
59029
59030         * lib/utimens.c (gl_futimens): Rename from futimens,
59031         now that glibc-2.6 declares futimens.
59032         * lib/utimens.h: Likewise.
59033
59034 2007-05-19  Bruno Haible  <bruno@clisp.org>
59035
59036         Avoid test failures on mingw.
59037         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
59038         * tests/test-printf-posix.sh: Likewise.
59039         * tests/test-vfprintf-posix.sh: Likewise.
59040         * tests/test-vprintf-posix.sh: Likewise.
59041
59042 2007-05-19  Bruno Haible  <bruno@clisp.org>
59043
59044         Fix *printf result for NaN, Inf, -0.0 on mingw.
59045         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
59046         * lib/vasnprintf.c: Include math.h and isnan.h.
59047         (is_infinite_or_zero): New function.
59048         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
59049         values in the %f, %F, %e, %E, %g, %G directives.
59050         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
59051         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
59052         gl_PRINTF_INFINITE and test its result. Invoke
59053         gl_PREREQ_VASNPRINTF_INFINITE.
59054         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
59055         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
59056         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
59057         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
59058         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
59059         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
59060         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
59061         * doc/functions/fprintf.texi: Update.
59062         * doc/functions/printf.texi: Update.
59063         * doc/functions/snprintf.texi: Update.
59064         * doc/functions/sprintf.texi: Update.
59065         * doc/functions/vfprintf.texi: Update.
59066         * doc/functions/vprintf.texi: Update.
59067         * doc/functions/vsnprintf.texi: Update.
59068         * doc/functions/vsprintf.texi: Update.
59069
59070 2007-05-19  Bruno Haible  <bruno@clisp.org>
59071
59072         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
59073         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
59074         Instead of multiplying with 10^k, set extra_zeroes to k.
59075         (scale10_round_long_double): Remove function.
59076
59077 2007-05-18  Bruno Haible  <bruno@clisp.org>
59078
59079         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
59080         introduced on 2007-05-06.
59081
59082 2007-05-18  Bruno Haible  <bruno@clisp.org>
59083
59084         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
59085         %g directives.
59086         * tests/test-vasprintf-posix.c (test_function): Likewise.
59087         * tests/test-snprintf-posix.h (test_function): Likewise.
59088         * tests/test-sprintf-posix.h (test_function): Likewise.
59089
59090 2007-05-18  Bruno Haible  <bruno@clisp.org>
59091
59092         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
59093         (strmatch): New function.
59094         (test_function): Test the %f directive on numbers of various exponents.
59095         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
59096         (strmatch): New function.
59097         (test_function): Test the %f directive on numbers of various exponents.
59098         * tests/test-snprintf-posix.h (strmatch): New function.
59099         (test_function): Test the %f directive on numbers of various exponents.
59100         * tests/test-sprintf-posix.h (strmatch): New function.
59101         (test_function): Test the %f directive on numbers of various exponents.
59102         * tests/test-snprintf-posix.c (SIZEOF): New macro.
59103         * tests/test-sprintf-posix.c (SIZEOF): New macro.
59104         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
59105         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
59106
59107 2007-05-18  Bruno Haible  <bruno@clisp.org>
59108
59109         Add support for 'long double' number output.
59110         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
59111         * lib/vasnprintf.c: Include math.h and float+.h.
59112         (mp_limb_t): New type.
59113         (GMP_LIMB_BITS): New macro.
59114         (mp_twolimb_t): New type.
59115         (GMP_TWOLIMB_BITS): New macro.
59116         (mpn_t): New type.
59117         (multiply, divide, convert_to_decimal, decode_long_double,
59118         scale10_round_long_double, scale10_round_decimal_long_double,
59119         floorlog10l): New functions.
59120         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
59121         for the %f, %F, %e, %E, %g, %G directives.
59122         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
59123         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
59124         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
59125         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
59126         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
59127         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
59128         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
59129         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
59130         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
59131         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
59132         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
59133         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
59134         * modules/snprintf-posix (Depends-on): Likewise.
59135         * modules/sprintf-posix (Depends-on): Likewise.
59136         * modules/vasnprintf-posix (Depends-on): Likewise.
59137         * modules/vasprintf-posix (Depends-on): Likewise.
59138         * modules/vfprintf-posix (Depends-on): Likewise.
59139         * modules/vsnprintf-posix (Depends-on): Likewise.
59140         * modules/vsprintf-posix (Depends-on): Likewise.
59141         * modules/vasnprintf (Files): Add lib/float+.h.
59142         * doc/functions/fprintf.texi: Update.
59143         * doc/functions/printf.texi: Update.
59144         * doc/functions/snprintf.texi: Update.
59145         * doc/functions/sprintf.texi: Update.
59146         * doc/functions/vfprintf.texi: Update.
59147         * doc/functions/vprintf.texi: Update.
59148         * doc/functions/vsnprintf.texi: Update.
59149         * doc/functions/vsprintf.texi: Update.
59150
59151 2007-05-18  Bruno Haible  <bruno@clisp.org>
59152
59153         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
59154
59155 2007-05-18  Bruno Haible  <bruno@clisp.org>
59156
59157         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
59158         for printing 64-bit integers. Needed for mingw.
59159
59160 2007-05-18  Bruno Haible  <bruno@clisp.org>
59161
59162         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
59163         gl_FUNC_FREXPL_WORKS.
59164         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
59165
59166 2007-05-18  Bruno Haible  <bruno@clisp.org>
59167
59168         * modules/frexpl-nolibm-tests: New file.
59169
59170         * modules/frexpl-nolibm: New file.
59171         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
59172
59173 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
59174
59175         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
59176         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
59177         GCC 4.2, which otherwise issues a lot of warnings.
59178         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
59179         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
59180         Likewise.
59181         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
59182         * modules/iconv_open (iconv.h): Likewise.
59183         * modules/locale (locale.h): Likewise.
59184         * modules/netinet_in (netinet/in.h): Likewise.
59185         * modules/sys_select (sys_select.h): Likewise.
59186         * modules/sys_socket (sys/socket.h): Likewise.
59187         * modules/sys_stat (sys/stat.h): Likewise.
59188         * modules/sysexits (sysexits.h): Likewise.
59189         * modules/unistd (unistd.h): Likewise.
59190
59191 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59192
59193         * modules/closein-tests (Makefile.am): Distribute
59194         `test-closein.sh'.
59195
59196 2007-05-17  Bruno Haible  <bruno@clisp.org>
59197
59198         * tests/test-printf-posix.output: Renamed from
59199         tests/test-fprintf-posix.out.
59200         * modules/fprintf-posix-tests: Update.
59201         * modules/printf-posix-tests: Update.
59202         * modules/vfprintf-posix-tests: Update.
59203         * modules/vprintf-posix-tests: Update.
59204         * tests/test-fprintf-posix.sh: Update.
59205         * tests/test-printf-posix.sh: Update.
59206         * tests/test-vfprintf-posix.sh: Update.
59207         * tests/test-vprintf-posix.sh: Update.
59208         Reported by Ralf Wildenhues.
59209
59210 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
59211
59212         * lib/fcntl_.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/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
59216         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
59217         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
59218         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
59219         it should no longer be needed.
59220         * lib/string_.h: Likewise.
59221         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
59222         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
59223         * modules/inttypes (inttypes.h): Likewise.
59224         * modules/math (math.h): Likewise.
59225         * modules/search (search.h): Likewise.
59226         * modules/signal (signal.h): Likewise.
59227         * modules/stdint (stdint.h): Likewise.
59228         * modules/stdio (stdio.h): Likewise.
59229         * modules/stdlib (stdlib.h): Likewise.
59230         * modules/string (string.h): Likewise.
59231         * modules/sys_time (sys/time.h): Likewise.
59232         * modules/time (time.h): Likewise.
59233         * modules/wchar (wchar.h): Likewise.
59234         * modules/wctype (wtype.h): Likewise.
59235
59236 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
59237
59238         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
59239
59240 2007-05-13  Bruno Haible  <bruno@clisp.org>
59241
59242         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
59243         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
59244         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
59245         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
59246         (gl_PREREQ_STRTOK_R): Don't require it here.
59247
59248 2007-05-13  Bruno Haible  <bruno@clisp.org>
59249
59250         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
59251         when used in C++ mode.
59252
59253 2007-05-12  Bruno Haible  <bruno@clisp.org>
59254
59255         * lib/linebuffer.h: Tweak doc.
59256         * lib/linebuffer.c: Likewise.
59257
59258 2007-05-12  James Youngman  <jay@gnu.org>
59259
59260         * lib/linebuffer.c (readlinebuffer_delim): New function,
59261         like readlinebuffer, but use a caller-specified delimiter.
59262         (readlinebuffer): Just call readlinebuffer_delim with '\n'
59263         as the delimiter.
59264         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
59265
59266 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
59267
59268         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
59269         * modules/openat (Files): Remove openat-die.c.
59270         (Depends-on): Add openat-die.
59271         * modules/openat-die: New module.
59272
59273 2007-05-06  Bruno Haible  <bruno@clisp.org>
59274
59275         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
59276         Update with info about Cygwin.
59277         * doc/functions/fprintf.texi: Update.
59278         * doc/functions/printf.texi: Update.
59279         * doc/functions/snprintf.texi: Update.
59280         * doc/functions/sprintf.texi: Update.
59281         * doc/functions/vfprintf.texi: Update.
59282         * doc/functions/vprintf.texi: Update.
59283         * doc/functions/vsnprintf.texi: Update.
59284         * doc/functions/vsprintf.texi: Update.
59285         Reported by Eric Blake.
59286
59287 2007-05-06  Bruno Haible  <bruno@clisp.org>
59288
59289         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
59290         padding ourselves for the floating-point directives.
59291         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
59292         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
59293         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
59294         gl_PRINTF_FLAG_ZERO and test its result. Invoke
59295         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
59296         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
59297         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
59298         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
59299         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
59300         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
59301         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
59302         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
59303         * tests/test-snprintf-posix.h (test_function): Also check the width
59304         and some flags in the %f directive.
59305         * tests/test-sprintf-posix.h (test_function): Likewise.
59306         * tests/test-vasnprintf-posix.c (test_function): Likewise.
59307         * tests/test-vasprintf-posix.c (test_function): Likewise.
59308         * doc/functions/fprintf.texi: Update.
59309         * doc/functions/printf.texi: Update.
59310         * doc/functions/snprintf.texi: Update.
59311         * doc/functions/sprintf.texi: Update.
59312         * doc/functions/vfprintf.texi: Update.
59313         * doc/functions/vprintf.texi: Update.
59314         * doc/functions/vsnprintf.texi: Update.
59315         * doc/functions/vsprintf.texi: Update.
59316
59317 2007-05-06  Bruno Haible  <bruno@clisp.org>
59318
59319         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
59320         pass the ' flag character to sprintf or snprintf.
59321         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
59322         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
59323         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
59324         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
59325         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
59326         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
59327         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
59328         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
59329         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
59330         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
59331         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
59332         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
59333         * tests/test-snprintf-posix.h (test_function): Also check the grouping
59334         flag.
59335         * tests/test-sprintf-posix.h (test_function): Likewise.
59336         * tests/test-vasnprintf-posix.c (test_function): Likewise.
59337         * tests/test-vasprintf-posix.c (test_function): Likewise.
59338         * doc/functions/fprintf.texi: Update.
59339         * doc/functions/printf.texi: Update.
59340         * doc/functions/snprintf.texi: Update.
59341         * doc/functions/sprintf.texi: Update.
59342         * doc/functions/vfprintf.texi: Update.
59343         * doc/functions/vprintf.texi: Update.
59344         * doc/functions/vsnprintf.texi: Update.
59345         * doc/functions/vsprintf.texi: Update.
59346
59347 2007-05-01  Bruno Haible  <bruno@clisp.org>
59348
59349         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
59350
59351 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
59352
59353         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
59354         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
59355
59356 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
59357
59358         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
59359         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
59360         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
59361
59362 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
59363
59364         * lib/argp-help.c (struct hol_entry): New member `ord'.
59365         (HOL_ENTRY_PTRCMP): Use ord for comparison
59366         (hol_sort): Initialize ord.
59367
59368 2007-05-01  Bruno Haible  <bruno@clisp.org>
59369
59370         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
59371         Reported by Eric Blake.
59372         * doc/gnulib.texi (Function Substitutes): Update.
59373
59374 2007-05-01  Bruno Haible  <bruno@clisp.org>
59375
59376         * doc/functions.texi: Remove file, now redundant through
59377         doc/functions/*.texi.
59378
59379 2007-05-01  Bruno Haible  <bruno@clisp.org>
59380
59381         * modules/argp (Depends-on): Add sleep.
59382
59383 2007-05-01  Bruno Haible  <bruno@clisp.org>
59384
59385         * modules/sleep-tests: New file.
59386         * tests/test-sleep.c: New file.
59387
59388         * modules/sleep: New file.
59389         * lib/sleep.c: New file.
59390         * m4/sleep.m4: New file.
59391         * lib/unistd_.h (sleep): New declaration.
59392         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
59393         HAVE_SLEEP.
59394         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
59395         * doc/functions/sleep.texi: Document the sleep module.
59396
59397 2007-05-01  Bruno Haible  <bruno@clisp.org>
59398
59399         * lib/sigprocmask.h: Remove file.
59400         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
59401         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
59402         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
59403         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
59404         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
59405         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
59406         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
59407         HAVE_SIGSET_T as a shell variable.
59408         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
59409         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
59410         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
59411         (Depends-on): Add signal. Remove verify.
59412         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
59413         (Include): Mention <signal.h> instead of sigprocmask.h.
59414         * NEWS: Mention the change.
59415         * lib/fatal-signal.c: Don't include sigprocmask.h.
59416
59417 2007-05-01  Bruno Haible  <bruno@clisp.org>
59418
59419         * modules/signal: New file.
59420         * lib/signal_.h: New file.
59421         * m4/signal_h.m4: New file.
59422
59423 2007-05-01  Bruno Haible  <bruno@clisp.org>
59424
59425         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
59426         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
59427         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
59428         HAVE_WCTYPE_CTMP_BUG into wctype.h.
59429
59430 2007-05-01  Bruno Haible  <bruno@clisp.org>
59431
59432         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
59433         configure time.
59434         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
59435         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
59436         * modules/sys_stat (Makefile.am): Substitute their values into
59437         sys/stat.h.
59438
59439 2007-05-01  Bruno Haible  <bruno@clisp.org>
59440
59441         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
59442         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
59443         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
59444
59445 2007-05-01  Bruno Haible  <bruno@clisp.org>
59446
59447         * doc/header/assert.texi: Undo last change: don't mention the gnulib
59448         'assert' module here.
59449
59450 2007-05-01  Bruno Haible  <bruno@clisp.org>
59451
59452         * doc/functions/*.texi: New files.
59453         * doc/functions/google-ranking.txt: New file.
59454         * doc/gnulib.texi (Function Substitutes): New chapter.
59455         (ctime, inet_ntoa): Remove sections.
59456         * doc/ctime.texi: Remove file.
59457         * doc/inet_ntoa.texi: Remove file.
59458         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
59459         dependencies.
59460         (%.info): New rule, specifying a --reference-limit.
59461
59462 2007-05-01  Bruno Haible  <bruno@clisp.org>
59463
59464         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
59465
59466 2007-05-01  Bruno Haible  <bruno@clisp.org>
59467
59468         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
59469         the portability of 'mkdir' to mingw systems.
59470
59471 2007-05-01  Bruno Haible  <bruno@clisp.org>
59472
59473         * doc/headers/google-ranking.txt: New file.
59474
59475 2007-04-30  Eric Blake  <ebb9@byu.net>
59476
59477         Prefer fseeko to fseek.
59478         * modules/getpass (Depends-on): Add fseeko.
59479         * lib/getpass.c (getpass): Use fseeko, not fseek.
59480
59481 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
59482
59483         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
59484         assumes the sorting is stable, while most qsort implementations
59485         are not.  Use argument addresses to ensure they never compare as
59486         equal.
59487
59488         * tests/test-argp-2.sh (usage-indent test): Fix output
59489         (func_compare): Restore diff options
59490         * tests/test-argp.c: Restore #include "progname.h"
59491
59492 2007-04-29  Bruno Haible  <bruno@clisp.org>
59493
59494         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
59495         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
59496         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
59497         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
59498         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
59499         (configure.ac): Define CHECK_SNPRINTF_POSIX.
59500         (TESTS, check_PROGRAMS): Add test-snprintf.
59501         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
59502         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
59503         (TESTS, check_PROGRAMS): Add test-vsnprintf.
59504         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
59505         assertions that fail on HP-UX, OSF/1, or IRIX.
59506         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
59507
59508 2007-04-29  Bruno Haible  <bruno@clisp.org>
59509
59510         * MODULES.html.sh (posix_functions): Remove 'contents'.
59511
59512 2007-04-29  Karl Berry  <karl@gnu.org>
59513
59514         * config/srclist.txt (gendocs_template_min): new entry.
59515
59516 2007-04-29  Bruno Haible  <bruno@clisp.org>
59517
59518         Work around fpurge bug on BSD systems.
59519         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
59520         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
59521         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
59522         fpurge to rpl_fpurge if the system already has this function.
59523         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
59524         the case where the system already has this function. Correct invariants
59525         on BSD systems.
59526         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
59527         BSD systems.
59528
59529 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
59530
59531         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
59532         proposed by Sven Verdoolaege.
59533
59534         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
59535         options.
59536         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
59537         (usage and help tests): Update
59538
59539 2007-04-29  Bruno Haible  <bruno@clisp.org>
59540
59541         * tests/test-fflush.c (main): Use a file of size 17, not 10.
59542         Print more information in case of failure. Disable a test on BeOS.
59543
59544 2007-04-29  Bruno Haible  <bruno@clisp.org>
59545
59546         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
59547         This helps debugging on systems on which no gdb is available.
59548
59549 2007-04-29  Bruno Haible  <bruno@clisp.org>
59550
59551         * lib/freading.h: Improve comments.
59552         * lib/fwriting.h: Likewise.
59553         * tests/test-freading.c (main): Don't check freading immediately after
59554         repositioning. Needed for glibc.
59555
59556 2007-04-29  Bruno Haible  <bruno@clisp.org>
59557
59558         * lib/freading.c (freading): Trivial simplification.
59559
59560 2007-04-28  Bruno Haible  <bruno@clisp.org>
59561
59562         * tests/test-fwriting.c (main): Also test the interaction between
59563         fflush and fwriting.
59564         * modules/fwriting-tests (Depends-on): Add fflush.
59565
59566         * tests/test-freading.c (main): Also test the interaction between
59567         fflush and freading.
59568         * modules/freading-tests (Depends-on): Add fflush.
59569
59570 2007-04-28  Bruno Haible  <bruno@clisp.org>
59571
59572         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
59573         fseeko and ftello.
59574         Suggested by Eric Blake.
59575
59576 2007-04-28  Jim Meyering  <jim@meyering.net>
59577
59578         Avoid false-negative in gl_STDINT_H's C99 conformance test.
59579         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
59580         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
59581
59582 2007-04-27  Eric Blake  <ebb9@byu.net>
59583
59584         * doc/headers/assert.texi (assert.h): Document assert module use.
59585
59586 2007-04-27  Bruno Haible  <bruno@clisp.org>
59587
59588         * doc/headers/*.texi: New files.
59589         * doc/gnulib.texi (Header File Substitutes): New chapter.
59590         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
59591         dependencies.
59592         (standards.info ,standards.html, standards.dvi): Update dependencies.
59593         (mostlyclean, clean): New targets.
59594
59595 2007-04-27  Bruno Haible  <bruno@clisp.org>
59596
59597         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
59598         * modules/sysexits (Files, Makefile.am): Update.
59599
59600         * lib/sys_socket_.h: Renamed from lib/socket_.h.
59601         * modules/sys_socket (Files, Makefile.am): Update.
59602
59603         * lib/sys_stat_.h: Renamed from lib/stat_.h.
59604         * modules/sys_stat (Files, Makefile.am): Update.
59605
59606 2007-04-27  Eric Blake  <ebb9@byu.net>
59607
59608         * lib/freading.h: Improve comments.
59609         * lib/fwriting.h: Likewise.
59610         * lib/fflush.c: Likewise.
59611
59612         Fix closein for mingw.
59613         * modules/closein-tests: Add tests for closein.
59614         * tests/test-closein.c: New file.
59615         * tests/test-closein.sh: Likewise.
59616         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
59617         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
59618
59619 2007-04-27  Bruno Haible  <bruno@clisp.org>
59620
59621         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
59622         version is < 6.
59623         * lib/math_.h [__DECC]: Likewise.
59624         * lib/stdio_.h [__DECC]: Likewise.
59625         * lib/stdlib_.h [__DECC]: Likewise.
59626         * lib/string_.h [__DECC]: Likewise.
59627         * lib/time_.h [__DECC]: Likewise.
59628         * lib/wchar_.h [__DECC]: Likewise.
59629         * lib/wctype_.h [__DECC]: Likewise.
59630
59631 2007-04-27  Bruno Haible  <bruno@clisp.org>
59632
59633         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
59634
59635 2007-04-27  Bruno Haible  <bruno@clisp.org>
59636
59637         * lib/fflush.c: Add comments.
59638         * modules/fpurge-tests (Depends-on): Add fflush.
59639         * modules/freadable-tests (Depends-on): Likewise.
59640         * modules/fwritable-tests (Depends-on): Likewise.
59641
59642 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
59643
59644         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
59645         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
59646         Report by Bruno Haible <bruno@clisp.org>.
59647
59648 2007-04-26  Eric Blake  <ebb9@byu.net>
59649
59650         Fix fflush on mingw.
59651         * modules/fflush (Depends-on): Add freading.
59652         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
59653         but unread data.
59654
59655 2007-04-26  Eric Blake  <ebb9@byu.net>
59656         and Bruno Haible  <bruno@clisp.org>
59657
59658         Implement freading and fwriting.
59659         * lib/freading.c: New file.
59660         * lib/freading.h: Likewise.
59661         * m4/freading.m4: Likewise.
59662         * modules/freading: Likewise.
59663         * modules/freading-tests: Likewise.
59664         * tests/test-freading.c: Likewise.
59665         * lib/fwriting.c: New file.
59666         * lib/fwriting.h: Likewise.
59667         * m4/fwriting.m4: Likewise.
59668         * modules/fwriting: Likewise.
59669         * modules/fwriting-tests: Likewise.
59670         * tests/test-fwriting.c: Likewise.
59671         * MODULES.html.sh (File stream based Input/Output): Mention them.
59672
59673 2007-04-26  Bruno Haible  <bruno@clisp.org>
59674
59675         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
59676         'long' when we assume it.
59677         Suggested by Eric Blake.
59678
59679 2007-04-26  Bruno Haible  <bruno@clisp.org>
59680
59681         Ensure fseeko, ftello are declared on glibc systems.
59682         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
59683         * modules/fseeko (configure.ac-early): Likewise.
59684         * modules/ftello (configure.ac-early): Likewise.
59685         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
59686         AC_FUNC_FSEEKO for this.
59687         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
59688         (gl_CHECK_FSEEKO): Remove macro.
59689
59690 2007-04-26  Bruno Haible  <bruno@clisp.org>
59691
59692         * tests/test-fflush.c (main): Also check the ftell result after
59693         fflush and fseek/fseeko.
59694         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
59695         file descriptor position cache in the stream.
59696         * lib/fseeko.c (rpl_fseeko): Likewise.
59697
59698 2007-04-26  Bruno Haible  <bruno@clisp.org>
59699
59700         * modules/fflush-tests (Depends-on): Add fseeko.
59701
59702 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
59703             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59704
59705         * lib/argz_.h: ensure error_t definition is obtained in same
59706         mechanism system argz.h would have.
59707         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
59708         argz facilities are known bad.  Err on the side of caution if
59709         cross-compiling.
59710
59711 2007-04-25  Eric Blake  <ebb9@byu.net>
59712
59713         * lib/fpurge.c (includes): Use stdlib.h for free.
59714         * tests/test-fflush.c (main): Also test fflush-fseeko.
59715
59716 2007-04-25  Bruno Haible  <bruno@clisp.org>
59717
59718         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
59719         * lib/fseeko.c: New file.
59720         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
59721         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
59722         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
59723         gl_FUNC_FSEEKO.
59724         (gl_FUNC_FSEEKO): Invoke it.
59725         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
59726         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
59727         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
59728
59729 2007-04-25  Bruno Haible  <bruno@clisp.org>
59730
59731         * modules/fflush (Depends-on): Add ftello.
59732
59733 2007-04-25  Bruno Haible  <bruno@clisp.org>
59734
59735         * modules/ftello-tests: New file.
59736         * tests/test-ftello.c: New file.
59737
59738         * modules/ftello: New file.
59739         * m4/ftello.m4: New file.
59740         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
59741         HAVE_FTELLO.
59742         * lib/stdio_.h (ftello): New declaration.
59743         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
59744         HAVE_FTELLO.
59745
59746 2007-04-25  Bruno Haible  <bruno@clisp.org>
59747
59748         * modules/fseeko-tests: New file.
59749         * tests/test-fseeko.c: New file.
59750
59751         * modules/fseeko: New file.
59752         * m4/fseeko.m4: New file.
59753         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
59754         HAVE_FSEEKO.
59755         * lib/stdio_.h (fseeko): New declaration.
59756         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
59757         HAVE_FSEEKO.
59758
59759 2007-04-25  Bruno Haible  <bruno@clisp.org>
59760
59761         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
59762
59763 2007-04-25  Bruno Haible  <bruno@clisp.org>
59764
59765         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
59766         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
59767         * tests/test-unistd.c: Likewise.
59768         * tests/test-fcntl.c: Likewise.
59769
59770 2007-04-23  Eric Blake  <ebb9@byu.net>
59771
59772         * lib/fflush.c: Fix missing include.
59773         Reported by Bruno Haible.
59774
59775 2007-04-23  Bruno Haible  <bruno@clisp.org>
59776
59777         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
59778         Reported by Eric Blake.
59779
59780 2007-04-23  Bruno Haible  <bruno@clisp.org>
59781
59782         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
59783
59784 2007-04-23  Bruno Haible  <bruno@clisp.org>
59785
59786         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
59787
59788 2007-04-23  Bruno Haible  <bruno@clisp.org>
59789
59790         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
59791         Needed on HP-UX 11.
59792
59793 2007-04-16  Eric Blake  <ebb9@byu.net>
59794
59795         Make fflush rely on fpurge.
59796         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
59797         open coding all variants.
59798         * modules/fflush (Depends-on): Add fpurge and unistd.
59799         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
59800         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
59801
59802         Fix --with-tests compilation on cygwin.
59803         * modules/argmatch-tests (Makefile.am): List gnulib library first
59804         in LDADD.
59805         * modules/argp-tests (Makefile.am): Likewise.
59806         * modules/array-list-tests (Makefile.am): Likewise.
59807         * modules/array-oset-tests (Makefile.am): Likewise.
59808         * modules/avltree-list-tests (Makefile.am): Likewise.
59809         * modules/avltree-oset-tests (Makefile.am): Likewise.
59810         * modules/avltreehash-list-tests (Makefile.am): Likewise.
59811         * modules/carray-list-tests (Makefile.am): Likewise.
59812         * modules/dirname-tests (Makefile.am): Likewise.
59813         * modules/frexp-tests (Makefile.am): Likewise.
59814         * modules/isnanl-tests (Makefile.am): Likewise.
59815         * modules/linked-list-tests (Makefile.am): Likewise.
59816         * modules/linkedhash-list-tests (Makefile.am): Likewise.
59817         * modules/lock-tests (Makefile.am): Likewise.
59818         * modules/rbtree-list-tests (Makefile.am): Likewise.
59819         * modules/rbtree-oset-tests (Makefile.am): Likewise.
59820         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
59821         * modules/tls-tests (Makefile.am): Likewise.
59822         * modules/tsearch-tests (Makefile.am): Likewise.
59823         * modules/xvasprintf-tests (Makefile.am): Likewise.
59824
59825         Fix fpurge for cygwin.
59826         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
59827         value.
59828         * modules/fpurge-tests (Depends-on): Clean up trash.
59829
59830 2007-04-16  Simon Josefsson  <simon@josefsson.org>
59831
59832         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
59833
59834         * m4/autobuild.m4: Re-indent.
59835
59836 2007-04-13  Bruno Haible  <bruno@clisp.org>
59837
59838         * modules/fpurge-tests: New file.
59839         * tests/test-fpurge.c: New file.
59840
59841         * modules/fpurge: New file.
59842         * lib/fpurge.h: New file.
59843         * lib/fpurge.c: New file.
59844         * m4/fpurge.m4: New file.
59845
59846 2007-04-13  Bruno Haible  <bruno@clisp.org>
59847
59848         * modules/fbufmode-tests: New file.
59849         * tests/test-fbufmode.c: New file.
59850
59851         * modules/fbufmode: New file.
59852         * lib/fbufmode.h: New file.
59853         * lib/fbufmode.c: New file.
59854         * m4/fbufmode.m4: New file.
59855
59856 2007-04-13  Bruno Haible  <bruno@clisp.org>
59857
59858         * modules/fwritable-tests: New file.
59859         * tests/test-fwritable.c: New file.
59860
59861         * modules/fwritable: New file.
59862         * lib/fwritable.h: New file.
59863         * lib/fwritable.c: New file.
59864         * m4/fwritable.m4: New file.
59865
59866 2007-04-13  Bruno Haible  <bruno@clisp.org>
59867
59868         * modules/freadable-tests: New file.
59869         * tests/test-freadable.c: New file.
59870
59871         * modules/freadable: New file.
59872         * lib/freadable.h: New file.
59873         * lib/freadable.c: New file.
59874         * m4/freadable.m4: New file.
59875
59876 2007-04-13  Bruno Haible  <bruno@clisp.org>
59877
59878         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
59879         MOSTLYCLEANFILES.
59880
59881 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
59882
59883         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
59884         gzip bootstrap.conf to avoid dragging in i18n machinery.
59885         (gnulib_tool_option): Use it.
59886
59887 2007-04-13  Bruno Haible  <bruno@clisp.org>
59888
59889         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
59890         %F directives.
59891         * tests/test-vasprintf-posix.c (test_function): Likewise.
59892         * tests/test-snprintf-posix.h (test_function): Likewise.
59893         * tests/test-sprintf-posix.h (test_function): Likewise.
59894         * tests/test-fprintf-posix.h (test_function): Likewise.
59895         * tests/test-printf-posix.h (test_function): Likewise.
59896         * tests/test-fprintf-posix.out: Likewise.
59897
59898 2007-04-13  Bruno Haible  <bruno@clisp.org>
59899
59900         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
59901         * modules/tls-tests (configure.ac): Likewise.
59902         Reported by Arto C. Nirkko <anirkko@insel.ch>.
59903
59904 2007-04-13  Bruno Haible  <bruno@clisp.org>
59905
59906         * lib/tls.c (glthread_tls_get): Fix return type.
59907         Patch by Arto C. Nirkko <anirkko@insel.ch>.
59908
59909 2007-04-12  Eric Blake  <ebb9@byu.net>
59910
59911         * modules/gettime (Depends-on): Remove gettime.
59912         Reported by Dmitry V. Levin.
59913
59914 2007-04-12  Bruno Haible  <bruno@clisp.org>
59915
59916         * modules/fflush (Include): Mention <stdio.h>.
59917         * modules/strtoimax (Include): Mention <inttypes.h>.
59918         * modules/strtoumax (Include): Likewise.
59919
59920 2007-04-12  Eric Blake  <ebb9@byu.net>
59921
59922         * .cvsignore: New file.
59923         * .gitignore: Likewise.
59924
59925 2007-04-12  Bruno Haible  <bruno@clisp.org>
59926
59927         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
59928         not before, since $(LDADD) often contains libgnu.a.
59929         * modules/striconv-tests (test_striconv_LDADD): Likewise.
59930         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
59931         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
59932         Needed on Cygwin.
59933
59934 2007-04-12  Eric Blake  <ebb9@byu.net>
59935
59936         Work around glibc's failure to flush stdin on fclose.
59937         * lib/closein.c (close_stdin): Flush stdin before closing.
59938
59939         Work around glibc's failure to reset seekable stdin on exit.
59940         * modules/closein: New module.
59941         * lib/closein.c: New file.
59942         * lib/closein.h: Likewise.
59943         * m4/closein.m4: Likewise.
59944         * MODULES.html.sh (File stream based Input/Output): Document it.
59945
59946 2007-04-12  Simon Josefsson  <simon@josefsson.org>
59947
59948         * gnulib-tool: Rename generated 'autobuild' script to
59949         'do-autobuild' in --create-megatestdir output.
59950
59951         * doc/gnulib.texi (Build robot for gnulib): Fix.
59952
59953 2007-04-12  Simon Josefsson  <simon@josefsson.org>
59954
59955         * modules/sysexits (Depends-on): Add absolute-header.
59956
59957 2007-04-12  Eric Blake  <ebb9@byu.net>
59958
59959         No need to preserve errno on success.
59960         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
59961         Reported by Bruno Haible.
59962
59963 2007-04-12  Simon Josefsson  <simon@josefsson.org>
59964
59965         * MODULES.html.sh (Support for maintaining and releasing
59966         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
59967
59968 2007-04-12  Simon Josefsson  <simon@josefsson.org>
59969
59970         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
59971
59972 2007-04-12  Simon Josefsson  <simon@josefsson.org>
59973
59974         * modules/autobuild: New module.
59975
59976         * m4/autobuild.m4: New file.
59977
59978 2007-04-11  Bruno Haible  <bruno@clisp.org>
59979
59980         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
59981         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
59982         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
59983         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
59984         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
59985         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
59986         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
59987         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
59988         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
59989         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
59990         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
59991         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
59992         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
59993         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
59994         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
59995         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
59996         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
59997         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
59998         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
59999         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
60000         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
60001         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
60002         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
60003         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
60004         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
60005         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
60006         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
60007         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
60008         Reported by Eric Blake.
60009
60010 2007-04-11  Bruno Haible  <bruno@clisp.org>
60011
60012         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
60013
60014 2007-04-10  Bruno Haible  <bruno@clisp.org>
60015
60016         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
60017         for NaN and Infinity. Needed on FreeBSD 6.1.
60018         * tests/test-vasnprintf-posix.c (test_function): Undo last change
60019         regarding results for "%010a" of Infinity and NaN.
60020         * tests/test-vasprintf-posix.c (test_function): Likewise.
60021         * tests/test-snprintf-posix.h (test_function): Likewise.
60022         * tests/test-sprintf-posix.h (test_function): Likewise.
60023         * tests/test-fprintf-posix.h (test_function): Likewise.
60024         * tests/test-printf-posix.h (test_function): Likewise.
60025         * tests/test-fprintf-posix.out: Likewise.
60026
60027 2007-04-10  Bruno Haible  <bruno@clisp.org>
60028
60029         * modules/locale-tests: New file.
60030         * tests/test-locale.c: New file.
60031
60032         * modules/locale: New file.
60033         * lib/locale_.h: New file.
60034         * m4/locale_h.m4: New file.
60035
60036 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
60037             Bruno Haible  <bruno@clisp.org>
60038
60039         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
60040         be determined, test for availability of the copysignf, copysign,
60041         copysignl functions.
60042         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
60043         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
60044         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
60045
60046 2007-04-09  Eric Blake  <ebb9@byu.net>
60047
60048         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
60049         * modules/stdio (Makefile.am): Support fflush.
60050         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
60051         * modules/fflush: New file.
60052         * lib/fflush.c: Likewise.
60053         * m4/fflush.m4: Likewise.
60054         * modules/fflush-tests: New test.
60055         * tests/test-fflush.c: Likewise.
60056         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
60057
60058 2007-04-06  Bruno Haible  <bruno@clisp.org>
60059
60060         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
60061         (VASNPRINTF): Use signbit for faster determination whether to print a
60062         minus sign.
60063         * modules/vasnprintf (Files): Remove lib/float+.h.
60064         * modules/fprintf-posix (Depends-on): Add signbit.
60065         * modules/snprintf-posix (Depends-on): Likewise.
60066         * modules/sprintf-posix (Depends-on): Likewise.
60067         * modules/vasnprintf-posix (Depends-on): Likewise.
60068         * modules/vasprintf-posix (Depends-on): Likewise.
60069         * modules/vfprintf-posix (Depends-on): Likewise.
60070         * modules/vsnprintf-posix (Depends-on): Likewise.
60071         * modules/vsprintf-posix (Depends-on): Likewise.
60072
60073 2007-04-06  Bruno Haible  <bruno@clisp.org>
60074
60075         * tests/test-frexp.c (main): Test also the sign bit of zero results.
60076         * tests/test-frexpl.c (main): Likewise.
60077         * tests/test-ldexpl.c (main): Likewise.
60078         * modules/frexp-tests (Depends-on): Add signbit.
60079         * modules/frexpl-tests (Depdends-on): Likewise.
60080         * modules/ldexpl-tests (Depdends-on): Likewise.
60081
60082 2007-04-06  Bruno Haible  <bruno@clisp.org>
60083
60084         * modules/signbit-tests: New file.
60085         * tests/test-signbit.c: New file.
60086
60087         * modules/signbit: New file.
60088         * lib/signbitf.c: New file.
60089         * lib/signbitd.c: New file.
60090         * lib/signbitl.c: New file.
60091         * m4/signbit.m4: New file.
60092         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
60093         (signbit): New macro.
60094         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
60095         REPLACE_SIGNBIT.
60096         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
60097         REPLACE_FREXPL into math.h.
60098
60099 2007-04-06  Bruno Haible  <bruno@clisp.org>
60100
60101         * modules/isnanf-nolibm-tests: New file.
60102         * tests/test-isnanf.c: New file.
60103
60104         * modules/isnanf-nolibm: New file.
60105         * lib/isnanf.h: New file.
60106         * lib/isnanf.c: New file.
60107         * lib/isnan.c: Consider the USE_FLOAT macro.
60108         * m4/isnanf.m4: New file.
60109
60110 2007-04-06  Bruno Haible  <bruno@clisp.org>
60111
60112         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
60113         (Link): New section.
60114
60115         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
60116
60117 2007-04-06  Bruno Haible  <bruno@clisp.org>
60118
60119         Assume the 'long double' type.
60120         * m4/longdouble.m4: Remove file.
60121         * config/srclist.txt: Don't mention longdouble.m4.
60122         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
60123         * lib/float+.h: Likewise.
60124         * lib/frexp.c: Likewise.
60125         * lib/printf-args.h: Likewise.
60126         * lib/printf-args.c: Likewise.
60127         * lib/printf-frexp.c: Likewise.
60128         * lib/printf-parse.c: Likewise.
60129         * lib/vasnprintf.c: Likewise.
60130         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
60131         * m4/intl.m4: Likewise.
60132         * m4/isnanl.m4: Likewise.
60133         * m4/printf.m4: Likewise.
60134         * m4/printf-frexpl.m4: Likewise.
60135         * m4/vasnprintf.m4: Likewise.
60136         * modules/allocsa (Files): Remove m4/longdouble.m4.
60137         * modules/gettext (Files): Likewise.
60138         * modules/relocatable-prog-wrapper (Files): Likewise.
60139         * modules/vasnprintf (Files): Likewise.
60140         * modules/isnanl (Files): Likewise.
60141         (Include): Simplify.
60142         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
60143         (Include): Simplify.
60144         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
60145         (Include): Simplify.
60146         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
60147         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
60148         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
60149         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
60150         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
60151         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
60152         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
60153         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
60154         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
60155         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
60156         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
60157         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
60158         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
60159         * tests/test-isnanl.c: Likewise.
60160         * tests/test-snprintf-posix.h: Likewise.
60161         * tests/test-sprintf-posix.h: Likewise.
60162         * tests/test-vasnprintf-posix.c: Likewise.
60163         * tests/test-vasnprintf-posix2.c: Likewise.
60164         * tests/test-vasprintf-posix.c: Likewise.
60165
60166 2007-04-06  Bruno Haible  <bruno@clisp.org>
60167
60168         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
60169         * lib/math_.h [__DECC]: Include the overridden include file through
60170         #include_next, outside the double-inclusion guard.
60171         * lib/stdio_.h [__DECC]: Likewise.
60172         * lib/stdlib_.h [__DECC]: Likewise.
60173         * lib/string_.h [__DECC]: Likewise.
60174         * lib/time_.h [__DECC]: Likewise.
60175         * lib/wchar_.h [__DECC]: Likewise.
60176         * lib/wctype_.h [__DECC]: Likewise.
60177         * lib/inttypes_.h [__DECC]: Likewise.
60178         Reported by Albert Chin <china@thewrittenword.com> in
60179         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
60180
60181 2007-04-04  Eric Blake  <ebb9@byu.net>
60182
60183         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
60184         1.5.x.
60185
60186 2007-04-04  Bruno Haible  <bruno@clisp.org>
60187
60188         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
60189         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
60190
60191 2007-04-04  Bruno Haible  <bruno@clisp.org>
60192
60193         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
60194         results for "%010a" of Infinity and NaN.
60195         * tests/test-vasprintf-posix.c (test_function): Likewise.
60196         * tests/test-snprintf-posix.h (test_function): Likewise.
60197         * tests/test-sprintf-posix.h (test_function): Likewise.
60198         * tests/test-fprintf-posix.h (test_function): Remove these tests.
60199         * tests/test-printf-posix.h (test_function): Likewise.
60200         * tests/test-fprintf-posix.out: Update.
60201         Needed for FreeBSD 6.1.
60202
60203 2007-04-04  Bruno Haible  <bruno@clisp.org>
60204
60205         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
60206         directly used by the gnulib modules nor by gnulib-tool.
60207
60208 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
60209
60210         * DEPENDENCIES: Give overall description of version dependency
60211         desirability.  Use more-typical names for apps.
60212         Add shell, coreutils, diffutils, grep, tar, gzip.
60213
60214 2007-04-04  Simon Josefsson  <simon@josefsson.org>
60215
60216         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
60217
60218 2007-04-04  Karl Berry  <karl@gnu.org>
60219
60220         * MODULES.html.sh (func_module): missing '.
60221
60222 2007-04-03  Bruno Haible  <bruno@clisp.org>
60223
60224         * modules/argmatch-tests (Makefile.am): New variable
60225         test_argmatch_LDADD.
60226         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
60227         * modules/array-list-tests (Makefile.am): New variable
60228         test_array_list_LDADD.
60229         * modules/array-oset-tests (Makefile.am): New variable
60230         test_array_oset_LDADD.
60231         * modules/avltree-list-tests (Makefile.am): New variable
60232         test_avltree_list_LDADD.
60233         * modules/avltree-oset-tests (Makefile.am): New variable
60234         test_avltree_oset_LDADD.
60235         * modules/avltreehash-list-tests (Makefile.am): New variable
60236         test_avltreehash_list_LDADD.
60237         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
60238         test_canonicalize_lgpl_LDADD.
60239         * modules/carray-list-tests (Makefile.am): New variable
60240         test_carray_list_LDADD.
60241         * modules/dirname-tests (Makefile.am): New variable
60242         test_dirname_LDADD.
60243         * modules/linked-list-tests (Makefile.am): New variable
60244         test_linked_list_LDADD.
60245         * modules/linkedhash-list-tests (Makefile.am): New variable
60246         test_linkedhash_list_LDADD.
60247         * modules/rbtree-list-tests (Makefile.am): New variable
60248         test_rbtree_list_LDADD.
60249         * modules/rbtree-oset-tests (Makefile.am): New variable
60250         test_rbtree_oset_LDADD.
60251         * modules/rbtreehash-list-tests (Makefile.am): New variable
60252         test_rbtreehash_list_LDADD.
60253         * modules/xvasprintf-tests (Makefile.am): New variable
60254         test_xvasprintf_LDADD.
60255         Reported by Eric Blake.
60256
60257 2007-04-03  Eric Blake  <ebb9@byu.net>
60258
60259         * DEPENDENCIES: Weaken m4 requirements.
60260
60261 2007-04-03  Bruno Haible  <bruno@clisp.org>
60262
60263         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
60264         * modules/isnanl-tests (configure.ac): Likewise.
60265
60266 2007-04-03  Ben Pfaff  <blp@gnu.org>
60267
60268         * modules/iconv_open: Add $(srcdir)/ to source directory
60269         references in Makefile fragments that call gperf, to fix VPATH
60270         builds.
60271
60272 2007-04-03  Bruno Haible  <bruno@clisp.org>
60273
60274         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
60275         * lib/ldexpl.c: Undo last change.
60276
60277 2007-04-03  Bruno Haible  <bruno@clisp.org>
60278
60279         * modules/printf-frexpl (Depends-on): Undo last change.
60280         (Files): Add m4/ldexpl.m4.
60281
60282 2007-04-03  Bruno Haible  <bruno@clisp.org>
60283
60284         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
60285         * modules/isnanl (Link): New section.
60286
60287         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
60288         * modules/frexp (Link): New section.
60289
60290         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
60291         * modules/frexpl (Link): New section.
60292
60293         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
60294         * modules/ldexpl (Link): New section.
60295
60296 2007-04-03  Bruno Haible  <bruno@clisp.org>
60297
60298         * modules/TEMPLATE-EXTENDED: New file.
60299         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
60300
60301 2007-04-03  Bruno Haible  <bruno@clisp.org>
60302
60303         * DEPENDENCIES: New file.
60304         Suggested by Simon Josefsson.
60305
60306 2007-04-03  Bruno Haible  <bruno@clisp.org>
60307
60308         * doc/gnulib.texi: Escape @.
60309
60310 2007-04-03  James Youngman  <jay@gnu.org>
60311         and Paul Eggert  <eggert@cs.ucla.edu>
60312
60313         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
60314         birthtime on all systems that have birthtime, not just those which
60315         use st_birthtimensec rather than st_birthtim.  Putting zero in
60316         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
60317         that the birth time is not available for files on an NFS mount.
60318
60319 2007-04-03  Simon Josefsson  <simon@josefsson.org>
60320
60321         * modules/memxor: Move back from crypto/, suggested by Bruno.
60322         * modules/crypto/hmac-sha1: Fix memxor dependency.
60323
60324         * modules/crypto/gc: Moved from ../.
60325
60326 2007-04-02  Eric Blake  <ebb9@byu.net>
60327
60328         * lib/ldexpl.c (includes): Avoid libm.
60329
60330         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
60331
60332 2007-04-02  Bruno Haible  <bruno@clisp.org>
60333
60334         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
60335         on IRIX.
60336
60337 2007-04-02  Bruno Haible  <bruno@clisp.org>
60338
60339         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
60340         x86 or x86_64 platforms running MacOS X.
60341         Reported by Ryan Schmidt <@ryandesign.com>.
60342
60343 2007-04-02  Bruno Haible  <bruno@clisp.org>
60344
60345         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
60346         i386.
60347
60348 2007-04-01  Simon Josefsson  <simon@josefsson.org>
60349
60350         * modules/crypto/arcfour: Moved from ../.
60351         * modules/crypto/arcfour-tests: Moved from ../.
60352         * modules/crypto/arctwo: Moved from ../.
60353         * modules/crypto/arctwo-tests: Moved from ../.
60354         * modules/crypto/des: Moved from ../.
60355         * modules/crypto/des-tests: Moved from ../.
60356         * modules/crypto/gc-arcfour: Moved from ../.
60357         * modules/crypto/gc-arcfour-tests: Moved from ../.
60358         * modules/crypto/gc-arctwo: Moved from ../.
60359         * modules/crypto/gc-arctwo-tests: Moved from ../.
60360         * modules/crypto/gc-des: Moved from ../.
60361         * modules/crypto/gc-des-tests: Moved from ../.
60362         * modules/crypto/gc-hmac-md5: Moved from ../.
60363         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
60364         * modules/crypto/gc-hmac-sha1: Moved from ../.
60365         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
60366         * modules/crypto/gc-md2: Moved from ../.
60367         * modules/crypto/gc-md2-tests: Moved from ../.
60368         * modules/crypto/gc-md4: Moved from ../.
60369         * modules/crypto/gc-md4-tests: Moved from ../.
60370         * modules/crypto/gc-md5: Moved from ../.
60371         * modules/crypto/gc-md5-tests: Moved from ../.
60372         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
60373         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
60374         * modules/crypto/gc-random: Moved from ../.
60375         * modules/crypto/gc-rijndael: Moved from ../.
60376         * modules/crypto/gc-rijndael-tests: Moved from ../.
60377         * modules/crypto/gc-sha1: Moved from ../.
60378         * modules/crypto/gc-sha1-tests: Moved from ../.
60379         * modules/crypto/gc-tests: Moved from ../.
60380         * modules/crypto/hmac-md5: Moved from ../.
60381         * modules/crypto/hmac-md5-tests: Moved from ../.
60382         * modules/crypto/hmac-sha1: Moved from ../.
60383         * modules/crypto/hmac-sha1-tests: Moved from ../.
60384         * modules/crypto/md2: Moved from ../.
60385         * modules/crypto/md2-tests: Moved from ../.
60386         * modules/crypto/md4: Moved from ../.
60387         * modules/crypto/md4-tests: Moved from ../.
60388         * modules/crypto/md5: Moved from ../.
60389         * modules/crypto/md5-tests: Moved from ../.
60390         * modules/crypto/memxor: Moved from ../.
60391         * modules/crypto/rijndael: Moved from ../.
60392         * modules/crypto/rijndael-tests: Moved from ../.
60393         * modules/crypto/sha1: Moved from ../.
60394
60395 2007-03-30  James Youngman  <jay@gnu.org>
60396
60397         * tests/test-stat-time.c (prepare_test): use chmod() rather than
60398         rename() to change the ctime of a file (because ctime is unaffected
60399         by rename on jfs2 on AIX 5.1).
60400         (main): Start by doing cleanup, in case a previous run failed leaving
60401         test files behind.
60402
60403 2007-03-31  Bruno Haible  <bruno@clisp.org>
60404
60405         Support old proprietary implementations of iconv.
60406         * modules/iconv_open: New file.
60407         * lib/iconv_.h: New file.
60408         * m4/iconv_h.m4: New file.
60409         * lib/iconv_open.c: New file.
60410         * lib/iconv_open-aix.gperf: New file.
60411         * lib/iconv_open-hpux.gperf: New file.
60412         * lib/iconv_open-irix.gperf: New file.
60413         * lib/iconv_open-osf.gperf: New file.
60414         * m4/iconv_open.m4: New file.
60415         * modules/linebreak (Depends-on): Add iconv_open.
60416         * modules/striconv (Depends-on): Likewise.
60417         * modules/striconveh (Depends-on): Likewise.
60418         * modules/unicodeio (Depends-on): Likewise.
60419         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
60420         (iconv_t)(-1).
60421         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
60422         conversion if cd is (iconv_t)(-1).
60423         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
60424         is not possible.
60425
60426 2007-03-31  Bruno Haible  <bruno@clisp.org>
60427
60428         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
60429         work on Solaris either. Protect also second use of "autodetect_jp".
60430
60431 2007-03-31  Bruno Haible  <bruno@clisp.org>
60432
60433         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
60434         the function is not present.
60435
60436 2007-03-31  Bruno Haible  <bruno@clisp.org>
60437
60438         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
60439         the function is not present.
60440
60441 2007-03-31  Bruno Haible  <bruno@clisp.org>
60442
60443         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
60444         a bug in HP-UX iconv_open().
60445
60446 2007-03-31  Bruno Haible  <bruno@clisp.org>
60447
60448         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
60449         (Mathematics <math.h>): New section, add fpieee.
60450         (Input/output <stdio.h>): Add fseterr.
60451         (Mathematics <math.h>): New section, add printf-frexp.
60452         (Container data structures): Add sublist.
60453         (Core language properties): Add fpucw, inline.
60454         (Functions for greatest-width integer types <inttypes.h>): Add
60455         imaxabs, imaxdiv, inttypes.
60456         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
60457         isnanl-nolibm, ldexp.
60458         (Mathematics <math.h>): New section, add printf-frexpl.
60459         (Support for systems lacking POSIX:2001): Add fprintf-posix,
60460         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
60461         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
60462         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
60463         (Unicode string functions): Add unistr/u*-mbtoucr.
60464         (Java): Add javacomp-script, javaexec-script.
60465         (C#): Add csharpcomp-script, csharpexec-script.
60466         (Support for building libraries and executables): Add havelib,
60467         relocatable-*.
60468         (Support for maintaining and releasing projects): Renamed from
60469         'Support for maintaining and release projects'. Add announce-gen.
60470
60471 2007-03-31  Bruno Haible  <bruno@clisp.org>
60472
60473         * README: Talk primarily about git.
60474         (git and CVS): Renamed from CVS.
60475         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
60476         gnulib is available through git.
60477         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
60478
60479 2007-03-30  Bruno Haible  <bruno@clisp.org>
60480
60481         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
60482         * lib/poll_.h: Likewise.
60483         * lib/stat_.h: Likewise.
60484         * lib/sys_time_.h: Likewise.
60485         * lib/sysexit_.h: Likewise.
60486         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
60487         * lib/stdbool_.h: Likewise.
60488         * lib/byteswap_.h: Add double-inclusion guard.
60489
60490 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
60491
60492         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
60493
60494 2007-03-30  Karl Berry  <karl@gnu.org>
60495
60496         * config/srclist-update: double space after USA in the license
60497         substitution, since that's how it's usually (?) written.
60498
60499 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
60500
60501         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
60502         reported by Bruno Haible.
60503
60504 2007-03-29  Bruno Haible  <bruno@clisp.org>
60505
60506         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
60507         a bug in AIX iconv().
60508
60509 2007-03-29  Bruno Haible  <bruno@clisp.org>
60510
60511         * modules/ldexpl-tests: New file.
60512         * tests/test-ldexpl.c: New file.
60513
60514 2007-03-29  Bruno Haible  <bruno@clisp.org>
60515
60516         * lib/ldexpl.c: Include fpucw.h.
60517         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
60518         multiplication.
60519         * modules/ldexpl (Depends-on): Add fpucw.
60520
60521 2007-03-29  Bruno Haible  <bruno@clisp.org>
60522
60523         * modules/ldexpl: New file.
60524         * m4/ldexpl.m4: New file.
60525         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
60526         set.
60527         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
60528         REPLACE_LDEXPL.
60529         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
60530         REPLACE_LDEXPL.
60531         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
60532         gl_FUNC_LDEXPL_WORKS.
60533         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
60534         * modules/mathl (Files): Remove lib/ldexpl.c.
60535         (Depends-on): Add ldexpl.
60536
60537 2007-03-29  Bruno Haible  <bruno@clisp.org>
60538
60539         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
60540
60541 2007-03-29  Bruno Haible  <bruno@clisp.org>
60542
60543         * tests/test-striconveh.c (main): Don't assume that a direct conversion
60544         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
60545         and possibly also HP-UX.
60546         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
60547         work on AIX, IRIX, HP-UX, OSF/1.
60548         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
60549         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
60550         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
60551         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
60552         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
60553         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
60554
60555 2007-03-29  Bruno Haible  <bruno@clisp.org>
60556
60557         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
60558
60559 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
60560
60561         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
60562         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
60563
60564 2007-03-29  Eric Blake  <ebb9@byu.net>
60565
60566         * lib/acl-internal.h: Remove redundant include.
60567         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
60568         Cygwin when a file is locked.
60569
60570 2007-03-29  Bruno Haible  <bruno@clisp.org>
60571
60572         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
60573         file.
60574         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
60575
60576 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
60577
60578         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
60579         try to remove a parent directory if the child couldn't be removed
60580         (except for the first rmdir, which could fail because the child
60581         doesn't exist).  Problem reported by Jeff Blaine in
60582         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
60583
60584 2007-03-28  Bruno Haible  <bruno@clisp.org>
60585
60586         * lib/striconveh.c (utf8conv_carefully): New function.
60587         (mem_cd_iconveh_internal): Invoke it.
60588
60589 2007-03-28  Bruno Haible  <bruno@clisp.org>
60590
60591         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
60592         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
60593         input.
60594         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
60595         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
60596         unistr/u8-uctomb.
60597
60598 2007-03-28  Bruno Haible  <bruno@clisp.org>
60599
60600         * modules/unistr/u8-mbtoucr: New file.
60601         * lib/unistr/u8-mbtoucr.c: New file.
60602         * modules/unistr/u16-mbtoucr: New file.
60603         * lib/unistr/u16-mbtoucr.c: New file.
60604         * modules/unistr/u16-mbtoucr: New file.
60605         * lib/unistr/u16-mbtoucr.c: New file.
60606         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
60607
60608 2007-03-27  Simon Josefsson  <simon@josefsson.org>
60609             Bruno Haible  <bruno@clisp.org>
60610
60611         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
60612         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
60613         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
60614
60615         * m4/stdio_h.m4: Add stubs for vasprintf too.
60616
60617         * modules/stdio: Support vasprintf in sed command.
60618
60619         * modules/vasprintf: Depend on stdio for prototypes.  Remove
60620         vasprintf.h.  Add stdio module indicator.
60621
60622         * lib/stdio_.h: Declare asprintf and vasprintf, based on
60623         vasprintf.h.
60624
60625         * lib/vasprintf.h: File removed.
60626
60627         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
60628         * lib/vasprintf.c: Ditto.
60629         * lib/xvasprintf.c: Ditto.
60630         * tests/test-vasprintf-posix.c: Ditto.
60631         * tests/test-vasprintf.c: Ditto.
60632
60633 2007-03-27  Bruno Haible  <bruno@clisp.org>
60634
60635         Make vasnprintf multithread-safe.
60636         * lib/vasnprintf.c (decimal_point_char): New function.
60637         (VASNPRINTF): Use it.
60638         Suggested by Simon Josefsson.
60639
60640 2007-03-27  Eric Blake  <ebb9@byu.net>
60641
60642         Support sub-second birthtime on cygwin.
60643         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
60644         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
60645         (get_stat_birthtime): Also work with st_birthtim.
60646
60647 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
60648
60649         * lib/stat-time.h (USE_BIRTHTIME): Remove.
60650         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
60651         (get_stat_birthtime_ns): Do not try to use "spare" fields.
60652         (get_stat_birthtime_ns): Simplify compile-time tests.
60653         (get_stat_birthtime): Change the API to look like
60654         get_stat_mtime etc., except return a negative tv_nsec on error.
60655         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
60656         Don't check for "spare" fields.
60657         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
60658         or for struct stat.st_birthtime, as these tests aren't used.
60659         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
60660
60661 2007-03-27  Bruno Haible  <bruno@clisp.org>
60662
60663         * lib/stat-time.h: Include <sys/stat.h>.
60664
60665 2007-03-27  James Youngman  <jay@gnu.org>
60666
60667         * lib/stat-time.h (get_stat_birthtime): New function for
60668           retrieving st_birthtime as provided by UFS2 (hence *BSD).
60669         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
60670           and its variants.
60671         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
60672         * modules/stat-time-test: New file.
60673         * tests/test-stat-time.c: New test, devised by Bruno Haible.
60674
60675 2007-03-26  Bruno Haible  <bruno@clisp.org>
60676
60677         Better support of signalling NaNs.
60678         * lib/atanl.c: Include isnanl.h.
60679         (atanl): Perform test for NaN at the beginning of the function and
60680         through a call to isnanl.
60681         * lib/cosl.c: Include isnanl.h.
60682         (cosl): Perform test for NaN at the beginning of the function and
60683         through a call to isnanl.
60684         * lib/ldexpl.c: Include isnanl.h.
60685         (ldexpl): Perform test for NaN through a call to isnanl.
60686         * lib/logl.c: Include isnanl.h.
60687         (logl): Perform test for NaN at the beginning of the function and
60688         through a call to isnanl.
60689         * lib/sinl.c: Include isnanl.h.
60690         (sinl): Perform test for NaN at the beginning of the function and
60691         through a call to isnanl.
60692         * lib/sqrtl.c: Include isnanl.h.
60693         (sqrtl): Perform test for NaN at the beginning of the function and
60694         through a call to isnanl.
60695         * lib/tanl.c: Include isnanl.h.
60696         (tanl): Perform test for NaN at the beginning of the function and
60697         through a call to isnanl.
60698         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
60699         * modules/mathl (Depends-on): Add isnanl.
60700
60701 2007-03-26  Eric Blake  <ebb9@byu.net>
60702
60703         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
60704         regression in logic sense of previous patch.
60705
60706 2007-03-26  Bruno Haible  <bruno@clisp.org>
60707
60708         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
60709         unportable shell command "if ! ...".
60710         Reported by Ralf Wildenhues.
60711
60712 2007-03-25  Bruno Haible  <bruno@clisp.org>
60713
60714         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
60715         <sysexits.h> file, and only add EX_CONFIG.
60716         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
60717         absolute file name and whether it is sufficient. Substitute also
60718         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
60719         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
60720         ABSOLUTE_SYSEXITS_H into sysexits.h.
60721
60722 2007-03-25  Bruno Haible  <bruno@clisp.org>
60723
60724         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
60725         hints is NULL.
60726
60727 2007-03-25  Bruno Haible  <bruno@clisp.org>
60728
60729         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
60730         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
60731
60732 2007-03-25  Bruno Haible  <bruno@clisp.org>
60733
60734         * lib/vasnprintf.c: Include langinfo.h.
60735         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
60736         multithread-safe.
60737         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
60738         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
60739         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
60740         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
60741         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
60742         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
60743         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
60744         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
60745         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
60746         Reported by Simon Josefsson.
60747
60748 2007-03-25  Bruno Haible  <bruno@clisp.org>
60749
60750         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
60751         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
60752         * modules/vasnprintf (Depends-on): Add stdint.
60753
60754 2007-03-25  Bruno Haible  <bruno@clisp.org>
60755
60756         * modules/fpieee: New file.
60757         * m4/fpieee.m4: New file.
60758         * modules/isnan-nolibm (Depends-on): Add fpieee.
60759         * modules/isnanl-nolibm (Depends-on): Add fpieee.
60760         * modules/isnanl (Depends-on): Add fpieee.
60761
60762 2007-03-25  Bruno Haible  <bruno@clisp.org>
60763
60764         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
60765
60766 2007-03-25  Bruno Haible  <bruno@clisp.org>
60767
60768         Avoid test failures on IRIX 6.5.
60769         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
60770         (main): Use it.
60771         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
60772         macros.
60773         (main): Use them.
60774
60775 2007-03-25  Bruno Haible  <bruno@clisp.org>
60776
60777         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
60778         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
60779         exists but doesn't work.
60780         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
60781         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
60782         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
60783         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
60784         math.h.
60785
60786 2007-03-25  Bruno Haible  <bruno@clisp.org>
60787
60788         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
60789         returns inf. Needed on IRIX 6.5.
60790
60791 2007-03-25  Bruno Haible  <bruno@clisp.org>
60792
60793         * tests/test-frexpl.c: Include isnanl-nolibm.h.
60794         (main): Use isnanl instead of x != x idiom.
60795         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
60796
60797         * tests/test-frexp.c: Include isnan.h.
60798         (main): Use isnan instead of x != x idiom.
60799         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
60800
60801 2007-03-25  Bruno Haible  <bruno@clisp.org>
60802
60803         * tests/test-frexp.c (NaN): New function/macro.
60804         (main): Use it instead of 0.0 / 0.0.
60805         * tests/test-isnan.c (NaN): New function/macro.
60806         (main): Use it instead of 0.0 / 0.0.
60807         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
60808         (test_function): Use it instead of 0.0 / 0.0.
60809         * tests/test-vasprintf-posix.c (NaN): New function/macro.
60810         (test_function): Use it instead of 0.0 / 0.0.
60811         * tests/test-snprintf-posix.h (NaN): New function/macro.
60812         (test_function): Use it instead of 0.0 / 0.0.
60813         * tests/test-sprintf-posix.h (NaN): New function/macro.
60814         (test_function): Use it instead of 0.0 / 0.0.
60815         * tests/test-fprintf-posix.h (NaN): New function/macro.
60816         (test_function): Use it instead of 0.0 / 0.0.
60817         * tests/test-printf-posix.h (NaN): New function/macro.
60818         (test_function): Use it instead of 0.0 / 0.0.
60819
60820         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
60821
60822 2007-03-25  Bruno Haible  <bruno@clisp.org>
60823
60824         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
60825
60826 2007-03-25  Bruno Haible  <bruno@clisp.org>
60827
60828         * lib/regexec.c (merge_state_with_log): Make static.
60829
60830 2007-03-25  Bruno Haible  <bruno@clisp.org>
60831
60832         * lib/trigl.c (kernel_rem_pio2): Make static.
60833
60834 2007-03-25  Bruno Haible  <bruno@clisp.org>
60835
60836         * lib/sincosl.c (sincosl_table): Make static.
60837
60838 2007-03-25  Bruno Haible  <bruno@clisp.org>
60839
60840         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
60841         if the compiler does not support C99.
60842
60843 2007-03-25  Bruno Haible  <bruno@clisp.org>
60844
60845         * modules/time (Makefile.am): Ensure all rule action lines start with a
60846         tab.
60847
60848 2007-03-24  Bruno Haible  <bruno@clisp.org>
60849
60850         * modules/tsearch-tests: New file.
60851         * tests/test-tsearch.sh: New file.
60852         * tests/test-tsearch.c: New file, mostly copied from glibc.
60853
60854         * modules/search-tests: New file.
60855         * tests/test-search.c: New file.
60856
60857         * modules/search: New file.
60858         * lib/search_.h: New file, incorporating lib/tsearch.h.
60859         * m4/search_h.m4: New file.
60860         * lib/tsearch.h: Remove file.
60861         * lib/tsearch.c: Include search.h instead of tsearch.h.
60862         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
60863         HAVE_TSEARCH.
60864         * modules/tsearch (Files): Remove lib/tsearch.h.
60865         (Depends-on): Add search.
60866         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
60867         (Include): Change tsearch.h into search.h.
60868
60869 2007-03-24  Bruno Haible  <bruno@clisp.org>
60870
60871         * modules/fpucw: New file.
60872         * lib/fpucw.h: New file.
60873         * lib/frexp.c: Include fpucw.h.
60874         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
60875         (FUNC): Use them.
60876         * lib/printf-frexp.c: Include fpucw.h.
60877         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
60878         (FUNC): Use them.
60879         * lib/vasnprintf.c: Include fpucw.h.
60880         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
60881         'long double' calculations.
60882         * tests/test-frexpl.c: Include fpucw.h.
60883         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
60884         * tests/test-printf-frexpl.c: Include fpucw.h.
60885         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
60886         * modules/frexpl (Depends-on): Add fpucw.
60887         * modules/printf-frexpl (Depends-on): Likewise.
60888         * modules/fprintf-posix (Depends-on): Likewise.
60889         * modules/snprintf-posix (Depends-on): Likewise.
60890         * modules/sprintf-posix (Depends-on): Likewise.
60891         * modules/vasnprintf-posix (Depends-on): Likewise.
60892         * modules/vasprintf-posix (Depends-on): Likewise.
60893         * modules/vfprintf-posix (Depends-on): Likewise.
60894         * modules/vsnprintf-posix (Depends-on): Likewise.
60895         * modules/vsprintf-posix (Depends-on): Likewise.
60896         * modules/frexpl-tests (Depends-on): Likewise.
60897         * modules/printf-frexpl-tests (Depends-on): Likewise.
60898
60899 2007-03-24  Bruno Haible  <bruno@clisp.org>
60900
60901         * lib/float+.h: New file.
60902         * lib/isnan.c: Include float+.h.
60903         (SIZE): New macro.
60904         (FUNC): Compare only SIZE bytes of the value.
60905         * lib/vasnprintf.c: Include float+.h.
60906         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
60907         SIZEOF_LDBL or SIZEOF_DBL bytes.
60908         * modules/isnan-nolibm (Files): Add lib/float+.h.
60909         * modules/isnanl-nolibm (Files): Add lib/float+.h.
60910         * modules/isnanl (Files): Add lib/float+.h.
60911         * modules/vasnprintf (Files): Add lib/float+.h.
60912
60913 2007-03-24  Bruno Haible  <bruno@clisp.org>
60914
60915         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
60916         include isnanl-nolibm.h.
60917
60918 2007-03-24  Bruno Haible  <bruno@clisp.org>
60919
60920         * tests/test-read-file.c (main): Don't produce spurious output for
60921         expected situations. Make the test fail if it encountered unexpected
60922         results.
60923
60924 2007-03-24  Bruno Haible  <bruno@clisp.org>
60925
60926         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
60927         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
60928
60929 2007-03-24  Bruno Haible  <bruno@clisp.org>
60930
60931         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
60932
60933 2007-03-24  Bruno Haible  <bruno@clisp.org>
60934
60935         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
60936         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
60937
60938         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
60939         * modules/utf8-ucs4: Turn into a symbolic link to module
60940         unistr/u8-mbtouc.
60941
60942         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
60943         utf8-ucs4-unsafe.
60944         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
60945         unistr/u8-mbtouc-unsafe.
60946
60947         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
60948         * modules/utf16-ucs4: Turn into a symbolic link to module
60949         unistr/u16-mbtouc.
60950
60951         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
60952         utf16-ucs4-unsafe.
60953         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
60954         unistr/u16-mbtouc-unsafe.
60955
60956         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
60957         * modules/ucs4-utf8: Turn into a symbolic link to module
60958         unistr/u8-ubtomb.
60959
60960         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
60961         * modules/ucs4-utf16: Turn into a symbolic link to module
60962         unistr/u16-ubtomb.
60963
60964 2007-03-24  Bruno Haible  <bruno@clisp.org>
60965
60966         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
60967         Enable the function only if HAVE_INLINE.
60968         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
60969         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
60970         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
60971         Enable the function only if HAVE_INLINE.
60972         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
60973         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
60974         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
60975         Enable the function only if HAVE_INLINE.
60976         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
60977         Enable the function only if HAVE_INLINE.
60978         * modules/utf8-ucs4: Update.
60979         * modules/utf8-ucs4-unsafe: Update.
60980         * modules/utf16-ucs4: Update.
60981         * modules/utf16-ucs4-unsafe: Update.
60982         * modules/ucs4-utf8: Update.
60983         * modules/ucs4-utf16: Update.
60984
60985 2007-03-24  Bruno Haible  <bruno@clisp.org>
60986
60987         * lib/utf8-ucs4.h: Remove file.
60988         * lib/utf8-ucs4-unsafe.h: Remove file.
60989         * lib/utf16-ucs4.h: Remove file.
60990         * lib/utf16-ucs4-unsafe.h: Remove file.
60991         * lib/ucs4-utf8.h: Remove file.
60992         * lib/ucs4-utf16.h: Remove file.
60993         * lib/unistr.h: Include their previous contents.
60994         * m4/utf-ucs4.m4: Remove file.
60995         * m4/ucs4-utf.m4: Remove file.
60996         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
60997         (Depends-on): Add unistr/base.
60998         (configure.ac): Remove gl_UTF_UCS4.
60999         (Makefile.am): Update.
61000         (Include): Change to unistr.h.
61001         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
61002         (Depends-on): Add unistr/base.
61003         (configure.ac): Remove gl_UTF_UCS4.
61004         (Makefile.am): Update.
61005         (Include): Change to unistr.h.
61006         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
61007         (Depends-on): Add unistr/base.
61008         (configure.ac): Remove gl_UTF_UCS4.
61009         (Makefile.am): Update.
61010         (Include): Change to unistr.h.
61011         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
61012         (Depends-on): Add unistr/base.
61013         (configure.ac): Remove gl_UTF_UCS4.
61014         (Makefile.am): Update.
61015         (Include): Change to unistr.h.
61016         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
61017         (Depends-on): Add unistr/base.
61018         (configure.ac): Remove gl_UCS4_UTF.
61019         (Makefile.am): Update.
61020         (Include): Change to unistr.h.
61021         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
61022         (Depends-on): Add unistr/base.
61023         (configure.ac): Remove gl_UCS4_UTF.
61024         (Makefile.am): Update.
61025         (Include): Change to unistr.h.
61026         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
61027         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
61028         utf8-ucs4-unsafe.h.
61029         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
61030         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
61031         utf16-ucs4-unsafe.h.
61032         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
61033         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
61034         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
61035         * lib/unistr/u8-strchr.c: Likewise.
61036         * lib/unistr/u8-strrchr.c: Likewise.
61037         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
61038         * lib/unistr/u16-strchr.c: Likewise.
61039         * lib/unistr/u16-strrchr.c: Likewise.
61040         * lib/striconveh.c: Update.
61041         * lib/linebreak.c: Update.
61042
61043 2007-03-24  Bruno Haible  <bruno@clisp.org>
61044
61045         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
61046         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
61047
61048 2007-03-22  Bruno Haible  <bruno@clisp.org>
61049
61050         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
61051
61052 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
61053
61054         * MODULES.html.sh (File system functions): New module write-any-file.
61055         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
61056         * m4/write-any-file.m4: New files.
61057
61058 2007-03-23  Eric Blake  <ebb9@byu.net>
61059
61060         * gnulib-tool: Rearrange space-tab sequences, since some editors
61061         like to eat them.
61062
61063 2007-03-23  Eric Blake  <ebb9@byu.net>
61064
61065         * lib/version-etc.c (version_etc_va): Update license wording to
61066         be more concise.  Recommended by Richard Stallman.
61067
61068 2007-03-22  Bruno Haible  <bruno@clisp.org>
61069
61070         * lib/poll.c (MSG_PEEK): New fallback definition.
61071
61072 2007-03-22  Bruno Haible  <bruno@clisp.org>
61073
61074         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
61075         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
61076         (main): Update.
61077         Fixes a compilation error on BeOS.
61078
61079 2007-03-22  Bruno Haible  <bruno@clisp.org>
61080
61081         * modules/frexpl-tests: New file.
61082         * tests/test-frexpl.c: New file.
61083
61084         * modules/frexpl: New file.
61085         * m4/frexpl.m4: New file.
61086         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
61087         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
61088         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
61089         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
61090         (Depends-on): Add frexpl. Remove isnanl-nolibm.
61091         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
61092
61093 2007-03-22  Bruno Haible  <bruno@clisp.org>
61094
61095         * lib/frexpl.c: Share code with lib/frexp.c.
61096         * modules/mathl (Files): Add lib/frexp.c.
61097         (Depends-on): Add isnanl-nolibm.
61098
61099 2007-03-22  Bruno Haible  <bruno@clisp.org>
61100
61101         * modules/printf-frexp (Files): Add m4/frexp.m4.
61102         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
61103         only if the found frexp function actually works.
61104
61105 2007-03-22  Bruno Haible  <bruno@clisp.org>
61106
61107         * lib/frexp.c: Remove older implementation that uses divisions.
61108
61109 2007-03-21  Bruno Haible  <bruno@clisp.org>
61110
61111         * modules/frexp-tests: New file.
61112         * tests/test-frexp.c: New file.
61113
61114         * modules/frexp: New file.
61115         * lib/frexp.c: New file.
61116         * m4/frexp.m4: New file.
61117         * lib/math_.h (frexp): New declaration.
61118         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
61119         REPLACE_FREXP.
61120         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
61121
61122 2007-03-21  Bruno Haible  <bruno@clisp.org>
61123
61124         * modules/isnanl-tests: New file.
61125         * tests/test-isnanl.c: New file.
61126
61127         * modules/isnanl: New file.
61128         * lib/isnanl.h: New file.
61129         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
61130         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
61131         gl_FUNC_ISNANL_WORKS.
61132         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
61133         New macros.
61134
61135 2007-03-21  Bruno Haible  <bruno@clisp.org>
61136
61137         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
61138         lib/isnanl.h.
61139         (Include): Update.
61140         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
61141         * lib/vasnprintf.c: Update.
61142         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
61143         tests/test-isnanl.h, remove tests/test-isnanl.c.
61144         (Makefile.am): Update.
61145         * tests/test-isnanl-nolibm.c: New file.
61146         * tests/test-isnanl.h: New file.
61147         * tests/test-isnanl.c: Remove file.
61148
61149 2007-03-21  Jim Meyering  <jim@meyering.net>
61150
61151         When trying to open ".", treat ESTALE like EACCES.
61152         * lib/savewd.c (savewd_save): Resort to forking not just upon
61153         failure with EACCES, but also when errno is ESTALE.
61154
61155 2007-03-20  Bruno Haible  <bruno@clisp.org>
61156
61157         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
61158         Needed on AIX 5.1. Reported by Matthew Woehlke.
61159
61160 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
61161
61162         Suggestions by Bruno Haible:
61163         * lib/acl-internal.h: Include "gettext.h" rather than rolling
61164         our own.
61165         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
61166         * modules/acl (Depends-on): Add gettext.
61167
61168 2007-03-19  Bruno Haible  <bruno@clisp.org>
61169
61170         * modules/iconvme: Remove file.
61171         * lib/iconvme.h: Remove file.
61172         * lib/iconvme.c: Remove file.
61173         * m4/iconvme.m4: Remove file.
61174
61175 2007-03-19  Bruno Haible  <bruno@clisp.org>
61176
61177         * doc/relocatable-maint.texi: Break long shell script line.
61178         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
61179
61180 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
61181
61182         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
61183         handle file_has_acl.
61184         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
61185         * lib/acl.c: Move header inclusions and related macro defns into
61186         lib/acl-internal.h.
61187         (S_ISLNK): Remove defn, since that's now done for us.
61188         (file_has_acl): Move to lib/file-has-acl.c.
61189         Call acl_trivial if available.  This is the crucial part of the fix.
61190         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
61191         shared within the library.  Rewrite a bit, partly to make it compatible
61192         with the GNU coding style.
61193         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
61194         Remove unnecessary double-quotes.
61195         Don't test for acl_to_text; the build will catch that.
61196         Replace acl_entries if it doesn't exist and it is needed.
61197         Check for -lsec and acl_trivial (as used on Solaris 10).
61198         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
61199         lib/file-has-acl.c.
61200         (Depends-on): Add sys_stat, for S_ISLNK.
61201
61202 2007-03-19  Ben Pfaff  <blp@gnu.org>
61203
61204         * doc/gnulib.texi: Fix typos.
61205         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
61206
61207 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
61208
61209         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
61210         If size is zero here, buf must be zero.
61211
61212 2007-03-19  Simon Josefsson  <simon@josefsson.org>
61213
61214         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
61215         <bruno@clisp.org>.
61216
61217 2007-03-18  Bruno Haible  <bruno@clisp.org>
61218
61219         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
61220         Suggested by Eric Blake.
61221
61222 2007-03-18  Ben Pfaff  <blp@gnu.org>
61223
61224         * doc/relocatable.texi: Recommend using as prefix a directory
61225         that does not exist and will never be created.  Based on
61226         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
61227         and others.
61228
61229 2007-03-17  Bruno Haible  <bruno@clisp.org>
61230
61231         * lib/fchownat.c: Include lchown.h.
61232
61233 2007-03-17  Bruno Haible  <bruno@clisp.org>
61234
61235         Fix endless loop when the given allocated size was > INT_MAX.
61236         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
61237         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
61238         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
61239         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
61240         * lib/sprintf.c (sprintf): Likewise.
61241
61242 2007-03-17  Bruno Haible  <bruno@clisp.org>
61243
61244         * tests/test-argp-2.sh (func_compare): Output a context diff.
61245
61246 2007-03-17  Bruno Haible  <bruno@clisp.org>
61247
61248         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
61249         locale's decimal-point character.
61250
61251 2007-03-17  Bruno Haible  <bruno@clisp.org>
61252
61253         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
61254         before comparing it. Needed because on some platforms (e.g. x86) a
61255         'long double' occupies less bytes than sizeof (long double).
61256
61257 2007-03-17  Bruno Haible  <bruno@clisp.org>
61258
61259         * tests/test-crc.c (main): Make printf statements 64-bit clean.
61260         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
61261         * tests/test-getaddrinfo.c (simple): Likewise.
61262         * tests/test-read-file.c (main): Likewise.
61263
61264 2007-03-17  Bruno Haible  <bruno@clisp.org>
61265
61266         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
61267
61268 2007-03-17  Bruno Haible  <bruno@clisp.org>
61269
61270         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
61271         unused variable.
61272
61273 2007-03-17  Bruno Haible  <bruno@clisp.org>
61274
61275         * tests/test-c-strcasecmp.c: Include c-strcase.h.
61276         * tests/test-c-strncasecmp.c: Likewise.
61277
61278 2007-03-17  Bruno Haible  <bruno@clisp.org>
61279
61280         * modules/stdlib (Depends-on): Add unistd.
61281         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
61282         Needed for MacOS X 10.3.
61283
61284 2007-03-17  Bruno Haible  <bruno@clisp.org>
61285
61286         * lib/unistr/u-strdup.h: Include <stdlib.h>.
61287
61288 2007-03-17  Bruno Haible  <bruno@clisp.org>
61289
61290         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
61291
61292 2007-03-17  Bruno Haible  <bruno@clisp.org>
61293
61294         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
61295         to reflect files copied from gnulib (with or without modifications).
61296         Suggested by Jim Meyering.
61297
61298 2007-03-17  Eric Blake  <ebb9@byu.net>
61299
61300         * NEWS: Document stdlib change from 2007-02-18.
61301
61302 2007-03-17  Jim Meyering  <jim@meyering.net>
61303
61304         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
61305         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
61306         someone uses a name containing shell meta-characters.
61307         Reported by Alfred M. Szmidt.
61308
61309         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
61310
61311 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
61312
61313         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
61314         and copy gettext configuration files only if configure.ac contains
61315         a use of AM_GNU_GETTEXT_VERSION.
61316
61317 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
61318
61319         * build-aux/bootstrap (gnulib_name): New variable.
61320         (gnulib_tool_options): Use it.
61321
61322 2007-03-13  Simon Josefsson  <simon@josefsson.org>
61323
61324         * tests/test-des.c: Use new namespace.
61325
61326 2007-03-15  Bruno Haible  <bruno@clisp.org>
61327
61328         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
61329         Reported by James Youngman <jay@gnu.org>.
61330
61331 2007-03-15  Bruno Haible  <bruno@clisp.org>
61332
61333         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
61334         declared prototype. Needed with cc on OSF/1 5.1.
61335
61336 2007-03-15  Bruno Haible  <bruno@clisp.org>
61337
61338         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
61339         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
61340         (struct gl_list_implementation): Add dispose_fn argument to the
61341         'create_empty', 'create' methods.
61342         (struct gl_list_impl_base): Add field 'dispose_fn'.
61343         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
61344         argument.
61345         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
61346         dispose_fn argument.
61347         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
61348         dispose_fn on the dropped values.
61349         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
61350         dispose_fn argument.
61351         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
61352         dropped values.
61353         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
61354         (gl_tree_remove_node): Call dispose_fn on the dropped value.
61355         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
61356         (gl_tree_remove_node): Call dispose_fn on the dropped value.
61357         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
61358         argument.
61359         (gl_tree_list_free): Call dispose_fn on the dropped values.
61360         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
61361         the dropped values.
61362         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
61363         Add dispose_fn argument.
61364         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
61365         Call dispose_fn on the dropped values.
61366         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
61367         Add dispose_fn argument.
61368         (gl_sublist_create): Initialize the 'dispose_fn' field.
61369         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
61370         * tests/test-array_list.c (main): Update.
61371         * tests/test-carray_list.c (main): Update.
61372         * tests/test-avltree_list.c (main): Update.
61373         * tests/test-rbtree_list.c (main): Update.
61374         * tests/test-avltreehash_list.c (main): Update.
61375         * tests/test-rbtreehash_list.c (main): Update.
61376         * tests/test-linked_list.c (main): Update.
61377         * tests/test-linkedhash_list.c (main): Update.
61378         * tests/test-array_oset.c (main): Update.
61379
61380 2007-03-15  Bruno Haible  <bruno@clisp.org>
61381
61382         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
61383         (gl_oset_create_empty): Add dispose_fn argument.
61384         (struct gl_oset_implementation): Add dispose_fn argument to
61385         'create_empty' method.
61386         (struct gl_oset_impl_base): Add dispose_fn field.
61387         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
61388         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
61389         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
61390         values.
61391         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
61392         (gl_tree_oset_free): Call dispose_fn on the dropped values.
61393         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
61394         dropped value.
61395         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
61396         dropped value.
61397         * tests/test-array_oset.c (main): Update.
61398         * tests/test-avltree_oset.c (main): Update.
61399         * tests/test-rbtree_oset.c (main): Update.
61400         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
61401
61402 2007-03-13  Bruno Haible  <bruno@clisp.org>
61403
61404         * tests/test-stdbool.c (i): Update after last patch.
61405
61406 2007-03-12  Bruno Haible  <bruno@clisp.org>
61407
61408         * lib/quotearg.c: Include <wctype.h> early, before the definition of
61409         the iswprint macro. Needed on Solaris 2.5.1.
61410
61411 2007-03-12  Bruno Haible  <bruno@clisp.org>
61412
61413         * tests/test-printf-frexp.c (main): Declare x as volatile.
61414
61415 2007-03-12  Simon Josefsson  <simon@josefsson.org>
61416
61417         * doc/gnulib.texi (Build robot for gnulib): New section.
61418
61419 2007-03-12  Jim Meyering  <jim@meyering.net>
61420
61421         * build-aux/bootstrap: New file.
61422         * build-aux/bootstrap.conf: New file, from coreutils.
61423
61424 2007-03-11  Bruno Haible  <bruno@clisp.org>
61425
61426         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
61427
61428 2007-03-12  Simon Josefsson  <simon@josefsson.org>
61429
61430         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
61431         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
61432         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
61433
61434 2007-03-11  Bruno Haible  <bruno@clisp.org>
61435
61436         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
61437         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
61438
61439 2007-03-11  Bruno Haible  <bruno@clisp.org>
61440
61441         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
61442         formula. Needed for SunPRO C 5.0.
61443
61444 2007-03-11  Bruno Haible  <bruno@clisp.org>
61445
61446         * modules/long-options (Depends-on): Add getopt.
61447
61448 2007-03-11  Bruno Haible  <bruno@clisp.org>
61449
61450         * modules/modechange (Depends-on): Add stdbool.
61451
61452 2007-03-11  Bruno Haible  <bruno@clisp.org>
61453
61454         * modules/i-ring (Depends-on): Add stdbool.
61455
61456 2007-03-11  Bruno Haible  <bruno@clisp.org>
61457
61458         * modules/gc-des (Depends-on): Add stdbool.
61459
61460 2007-03-11  Bruno Haible  <bruno@clisp.org>
61461
61462         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
61463
61464 2007-03-11  Bruno Haible  <bruno@clisp.org>
61465
61466         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
61467
61468 2007-03-11  Bruno Haible  <bruno@clisp.org>
61469
61470         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
61471
61472 2007-03-11  Bruno Haible  <bruno@clisp.org>
61473
61474         * lib/vasnprintf.c (sprintf): Undefine.
61475
61476 2007-03-11  Bruno Haible  <bruno@clisp.org>
61477
61478         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
61479         initializers in SunPRO C and Compaq C compilers.
61480
61481 2007-03-11  Bruno Haible  <bruno@clisp.org>
61482
61483         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
61484         decrementing code ANSI C compliant.
61485
61486 2007-03-11  Bruno Haible  <bruno@clisp.org>
61487
61488         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
61489         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
61490
61491 2007-03-11  Bruno Haible  <bruno@clisp.org>
61492
61493         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
61494         <stdbool.h> substitute doesn't pass.
61495
61496 2007-03-11  Bruno Haible  <bruno@clisp.org>
61497
61498         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
61499
61500 2007-03-11  Bruno Haible  <bruno@clisp.org>
61501
61502         * gnulib-tool (func_create_megatestdir): Create also an autobuild
61503         script, for submission to autobuild.josefsson.org.
61504
61505 2007-03-10  Bruno Haible  <bruno@clisp.org>
61506
61507         * modules/canonicalize-lgpl-tests: New file.
61508         * tests/test-canonicalize-lgpl.sh: New file.
61509         * tests/test-canonicalize-lgpl.c: New file.
61510
61511         * modules/c-strcase-tests: New file.
61512         * tests/test-c-strcase.sh: New file.
61513         * tests/test-c-strcasecmp.c: New file.
61514         * tests/test-c-strncasecmp.c: New file.
61515
61516         * modules/atexit-tests: New file.
61517         * tests/test-atexit.sh: New file.
61518         * tests/test-atexit.c: New file.
61519
61520 2007-03-10  Bruno Haible  <bruno@clisp.org>
61521
61522         * tests/test-binary-io.sh: Use temporary filenames that are not so
61523         likely to clash with those of other tests (in a parallel make).
61524         * tests/test-binary-io.c: Likewise.
61525
61526 2007-03-10  Bruno Haible  <bruno@clisp.org>
61527
61528         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
61529         fallback; use #error instead.
61530         Suggested by Simon Josefsson.
61531
61532 2007-03-10  Bruno Haible  <bruno@clisp.org>
61533
61534         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
61535         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
61536         first and the last.
61537
61538 2007-03-10  Bruno Haible  <bruno@clisp.org>
61539
61540         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
61541
61542 2007-03-10  Bruno Haible  <bruno@clisp.org>
61543
61544         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
61545         "make distcheck".
61546         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
61547         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
61548         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
61549
61550 2007-03-10  Bruno Haible  <bruno@clisp.org>
61551
61552         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
61553         variable.
61554         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
61555         variable.
61556
61557 2007-03-09  Eric Blake  <ebb9@byu.net>
61558         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
61559
61560         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
61561         types are not being provided by gnulib.
61562         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
61563         types are supported.
61564
61565 2007-03-10  Bruno Haible  <bruno@clisp.org>
61566
61567         * lib/stdio_.h (__attribute__): New macro.
61568         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
61569         vsprintf): Specify __attribute__ __format__ for GCC.
61570         Suggested by Eric Blake.
61571
61572 2007-03-09  Bruno Haible  <bruno@clisp.org>
61573
61574         * modules/printf-posix-tests: New file.
61575         * tests/test-printf-posix.sh: New file.
61576         * tests/test-printf-posix.c: New file.
61577
61578         * modules/printf-posix: New file.
61579         * lib/printf.c: New file.
61580         * m4/printf-posix-rpl.m4: New file.
61581         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
61582         REPLACE_PRINTF.
61583         * lib/stdio_.h (printf): New declaration.
61584         (format, __format__, ____printf____, ____scanf____, ____strftime____,
61585         ____strfmon____): New macros.
61586         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
61587         REPLACE_PRINTF.
61588
61589 2007-03-09  Bruno Haible  <bruno@clisp.org>
61590
61591         * tests/test-vasnprintf-posix2.sh: New file.
61592         * tests/test-vasnprintf-posix2.c: New file.
61593         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
61594         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
61595         (Makefile.am): Activate test-vasnprintf-posix2.sh.
61596
61597         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
61598         a locale dependent decimal point, rather than always '.'.
61599
61600 2007-03-09  Eric Blake  <ebb9@byu.net>
61601
61602         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
61603         spite of platforms like Tandem/NSK that define it to -1.
61604
61605 2007-03-08  Bruno Haible  <bruno@clisp.org>
61606
61607         * modules/vprintf-posix-tests: New file.
61608         * tests/test-vprintf-posix.sh: New file.
61609         * tests/test-vprintf-posix.c: New file.
61610         * tests/test-printf-posix.h: New file.
61611
61612         * modules/vprintf-posix: New file.
61613         * lib/vprintf.c: New file.
61614         * m4/vprintf-posix.m4: New file.
61615         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
61616         REPLACE_VPRINTF.
61617         * lib/stdio_.h (vprintf): New declaration.
61618         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
61619         REPLACE_VPRINTF.
61620
61621 2007-03-08  Bruno Haible  <bruno@clisp.org>
61622
61623         * modules/fprintf-posix-tests: New file.
61624         * tests/test-fprintf-posix.sh: New file.
61625         * tests/test-fprintf-posix.c: New file.
61626
61627         * modules/fprintf-posix: New file.
61628         * lib/fprintf.c: New file.
61629         * m4/fprintf-posix.m4: New file.
61630         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
61631         REPLACE_FPRINTF.
61632         * lib/stdio_.h (fprintf): New declaration.
61633         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
61634         REPLACE_FPRINTF.
61635
61636 2007-03-08  Bruno Haible  <bruno@clisp.org>
61637
61638         * modules/vfprintf-posix-tests: New file.
61639         * tests/test-vfprintf-posix.sh: New file.
61640         * tests/test-vfprintf-posix.c: New file.
61641         * tests/test-fprintf-posix.h: New file.
61642         * tests/test-fprintf-posix.out: New file.
61643
61644         * modules/vfprintf-posix: New file.
61645         * lib/vfprintf.c: New file.
61646         * m4/vfprintf-posix.m4: New file.
61647         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
61648         REPLACE_VFPRINTF.
61649         * lib/stdio_.h (vfprintf): New declaration.
61650         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
61651         REPLACE_VFPRINTF.
61652
61653 2007-03-08  Bruno Haible  <bruno@clisp.org>
61654
61655         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
61656
61657 2007-03-08  Bruno Haible  <bruno@clisp.org>
61658
61659         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
61660         instead of 'expr' invocations.
61661         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
61662         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
61663         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
61664         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
61665         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
61666         Suggested by Paul Eggert.
61667
61668 2007-03-08  Bruno Haible  <bruno@clisp.org>
61669
61670         * modules/fseterr-tests: New file.
61671         * tests/test-fseterr.c: New file.
61672
61673         * modules/fseterr: New file.
61674         * lib/fseterr.h: New file.
61675         * lib/fseterr.c: New file.
61676
61677 2007-03-08  Bruno Haible  <bruno@clisp.org>
61678
61679         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
61680         * lib/getopt_.h: Likewise.
61681         * lib/mbswidth.h: Likewise.
61682         * lib/setenv.h: Likewise.
61683         * lib/vasnprintf.h: Likewise.
61684         * lib/vasprintf.h: Likewise.
61685         * lib/verror.h: Likewise.
61686         * lib/xsetenv.h: Likewise.
61687         * lib/xvasprintf.h: Likewise.
61688
61689 2007-03-08  Jim Meyering  <jim@meyering.net>
61690
61691         * users.txt: Add parted.
61692
61693         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
61694
61695 2007-03-07  Bruno Haible  <bruno@clisp.org>
61696
61697         * m4/printf.m4: Make the shell script snippets copy&pastable.
61698
61699 2007-03-02  Bruno Haible  <bruno@clisp.org>
61700
61701         * lib/netinet_in_.h: New file.
61702         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
61703         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
61704         * modules/netinet_in (Files): Add lib/netinet_in_.h.
61705         (Depends-on): Add absolute-header.
61706         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
61707         into netinet/in.h.
61708
61709 2007-03-03  Bruno Haible  <bruno@clisp.org>
61710
61711         * lib/sys_select_.h: New file.
61712         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
61713         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
61714         * modules/sys_select (Files): Add lib/sys_select_.h.
61715         (Depends-on): Add absolute-header.
61716         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
61717         into sys/select.h.
61718
61719 2007-03-02  Bruno Haible  <bruno@clisp.org>
61720
61721         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
61722         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
61723         values.
61724         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
61725         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
61726         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
61727         * modules/sys_socket (Depends-on): Add absolute-header.
61728         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
61729         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
61730         (Include): Remove requirement of inclusion of <sys/types.h>.
61731
61732 2007-03-02  Bruno Haible  <bruno@clisp.org>
61733
61734         * lib/byteswap_.h (bswap_32): Fix formula.
61735
61736 2007-03-06  Bruno Haible  <bruno@clisp.org>
61737
61738         * modules/sprintf-posix-tests: New file.
61739         * tests/test-sprintf-posix.c: New file.
61740
61741         * modules/sprintf-posix: New file.
61742         * lib/sprintf.c: New file.
61743         * m4/sprintf-posix.m4: New file.
61744         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
61745         REPLACE_SPRINTF.
61746         * lib/stdio_.h (sprintf): New declaration.
61747         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
61748         REPLACE_SPRINTF.
61749
61750 2007-03-06  Bruno Haible  <bruno@clisp.org>
61751
61752         * modules/vsprintf-posix-tests: New file.
61753         * tests/test-vsprintf-posix.c: New file.
61754         * tests/test-sprintf-posix.h: New file.
61755
61756         * modules/vsprintf-posix: New file.
61757         * lib/vsprintf.c: New file.
61758         * m4/vsprintf-posix.m4: New file.
61759         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
61760         REPLACE_VSPRINTF.
61761         * lib/stdio_.h (vsprintf): New declaration.
61762         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
61763         REPLACE_VSPRINTF.
61764
61765 2007-03-06  Bruno Haible  <bruno@clisp.org>
61766
61767         * modules/vsnprintf (Depend-on): Remove minmax.
61768
61769 2007-03-06  Bruno Haible  <bruno@clisp.org>
61770
61771         * modules/snprintf-posix-tests: New file.
61772         * tests/test-snprintf-posix.c: New file.
61773
61774         * modules/snprintf-posix: New file.
61775         * m4/snprintf-posix.m4: New file.
61776         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
61777         gl_FUNC_SNPRINTF.
61778         (gl_FUNC_SNPRINTF): Invoke it.
61779         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
61780         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
61781         is set.
61782         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
61783
61784 2007-03-06  Bruno Haible  <bruno@clisp.org>
61785
61786         * modules/vsnprintf-posix-tests: New file.
61787         * tests/test-vsnprintf-posix.c: New file.
61788         * tests/test-snprintf-posix.h: New file.
61789
61790         * modules/vsnprintf-posix: New file.
61791         * m4/vsnprintf-posix.m4: New file.
61792         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
61793         gl_FUNC_VSNPRINTF.
61794         (gl_FUNC_VSNPRINTF): Invoke it.
61795         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
61796         * lib/stdio_.h (vsnprintf): Define as a replacement if
61797         REPLACE_VSNPRINTF is set.
61798         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
61799
61800 2007-03-06  Bruno Haible  <bruno@clisp.org>
61801
61802         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
61803         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
61804
61805 2007-03-06  Bruno Haible  <bruno@clisp.org>
61806
61807         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
61808         (asinl): Declare also if HAVE_DECL_ASINL is set.
61809         (atanl): Declare also if HAVE_DECL_ATANL is set.
61810         (ceill): Declare also if HAVE_DECL_CEILL is set.
61811         (cosl): Declare also if HAVE_DECL_COSL is set.
61812         (expl): Declare also if HAVE_DECL_EXPL is set.
61813         (floorl): Declare also if HAVE_DECL_FLOORL is set.
61814         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
61815         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
61816         (logl): Declare also if HAVE_DECL_LOGL is set.
61817         (sinl): Declare also if HAVE_DECL_SINL is set.
61818         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
61819         (tanl): Declare also if HAVE_DECL_TANL is set.
61820         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
61821         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
61822         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
61823         declaration of frexpl, ldexpl.
61824         * modules/printf-frexpl (Depends-on): Add math.
61825         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
61826
61827 2007-03-05  Bruno Haible  <bruno@clisp.org>
61828
61829         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
61830         frexpl and ldexpl are declared.
61831         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
61832
61833 2007-03-05  Bruno Haible  <bruno@clisp.org>
61834
61835         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
61836         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
61837
61838 2007-03-05  Bruno Haible  <bruno@clisp.org>
61839
61840         * lib/stdio_.h: Include <stddef.h>.
61841
61842 2007-03-05  Bruno Haible  <bruno@clisp.org>
61843
61844         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
61845
61846 2007-03-05  Bruno Haible  <bruno@clisp.org>
61847
61848         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
61849         NetBSD 4, from Ralf Wildenhues.
61850
61851 2007-03-04  Bruno Haible  <bruno@clisp.org>
61852
61853         * lib/vasprintf.h: Update #if logic for the case when the functions
61854         exist but are overridden.
61855
61856 2007-03-04  Bruno Haible  <bruno@clisp.org>
61857
61858         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
61859         implementations: glibc-2.4 and MacOS X 10.3.
61860         * tests/test-vasnprintf-posix.c (test_function): Test also the case
61861         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
61862         * tests/test-vasprintf-posix.c (test_function): Likewise.
61863
61864 2007-03-04  Bruno Haible  <bruno@clisp.org>
61865
61866         * modules/vasprintf-posix-tests: New file.
61867         * tests/test-vasprintf-posix.c: New file.
61868
61869         * modules/vasprintf-posix: New file.
61870         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
61871         defined.
61872         * m4/vasprintf-posix.m4: New file.
61873         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
61874         gl_FUNC_VASPRINTF.
61875         (gl_FUNC_VASPRINTF): Invoke it.
61876         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
61877         here.
61878         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
61879
61880 2007-03-04  Bruno Haible  <bruno@clisp.org>
61881
61882         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
61883         REPLACE_GETTIMEOFDAY.
61884         * modules/sys_time (Makefile.am): Likewise.
61885         * m4/sys_time_h.m4: Likewise.
61886         * m4/gettimeofday.m4: Likewise.
61887
61888 2007-03-04  Bruno Haible  <bruno@clisp.org>
61889
61890         * modules/vasnprintf-posix-tests: New file.
61891         * tests/test-vasnprintf-posix.c: New file.
61892
61893         * modules/vasnprintf-posix: New file.
61894         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
61895         printf-frexpl.h.
61896         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
61897         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
61898         REPLACE_VASNPRINTF is defined.
61899         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
61900         gl_FUNC_VASNPRINTF.
61901         (gl_FUNC_VASNPRINTF): Invoke it.
61902         * m4/vasnprintf-posix.m4: New file.
61903         * m4/printf.m4: New file.
61904
61905 2007-03-04  Bruno Haible  <bruno@clisp.org>
61906
61907         Compile progreloc.c only if --enable-relocatable is specified.
61908         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
61909         if --enable-relocatable was specified.
61910         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
61911         lib_SOURCES.
61912
61913 2007-03-04  Jim Meyering  <jim@meyering.net>
61914
61915         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
61916         Use it consistently, rather than enumerating errno constants.
61917
61918 2007-03-04  Bruno Haible  <bruno@clisp.org>
61919
61920         * modules/xvasprintf-tests: New file.
61921         * tests/test-xvasprintf.c: New file.
61922
61923         * modules/vasprintf-tests: New file.
61924         * tests/test-vasprintf.c: New file.
61925
61926         * modules/vasnprintf-tests: New file.
61927         * tests/test-vasnprintf.c: New file.
61928
61929         * modules/vsnprintf-tests: New file.
61930         * tests/test-vsnprintf.c: New file.
61931
61932         * modules/snprintf-tests: New file.
61933         * tests/test-snprintf.c: New file.
61934
61935 2007-03-04  Bruno Haible  <bruno@clisp.org>
61936
61937         Compile relocatable.c only if --enable-relocatable is specified.
61938         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
61939         gl_RELOCATABLE_LIBRARY.
61940         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
61941         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
61942         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
61943         gl_RELOCATABLE_LIBRARY.
61944         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
61945         (Makefile.am): Remove lib_SOURCES.
61946         * modules/relocatable-lib-lgpl (configure.ac): Invoke
61947         gl_RELOCATABLE_LIBRARY.
61948         (Makefile.am): Remove lib_SOURCES.
61949         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
61950         always.
61951         * modules/relocatable-prog-wrapper (configure.ac): Invoke
61952         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
61953
61954 2007-03-04  Bruno Haible  <bruno@clisp.org>
61955
61956         * modules/argmatch-tests: New file.
61957         * tests/test-argmatch.c: New file.
61958
61959         * tests/test-allocsa.c (main): Halve the number of loop runs.
61960
61961         * modules/alloca-opt-tests: New file.
61962         * tests/test-alloca-opt.c: New file.
61963
61964 2007-03-04  Jim Meyering  <jim@meyering.net>
61965
61966         Work around difference between Linux ACLs and Solaris 10 ZFS.
61967         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
61968         for EINVAL.
61969
61970 2007-03-03  Bruno Haible  <bruno@clisp.org>
61971
61972         * modules/relocatable-prog (Depends-on): Add back progreloc's
61973         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
61974
61975 2007-03-03  Bruno Haible  <bruno@clisp.org>
61976
61977         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
61978         * modules/relocatable-lib: New file.
61979
61980 2007-03-03  Bruno Haible  <bruno@clisp.org>
61981
61982         * modules/relocatable-prog: Renamed from modules/relocatable.
61983         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
61984
61985 2007-03-03  Bruno Haible  <bruno@clisp.org>
61986
61987         * modules/relocatable-script (Files): Add doc/relocatable.texi,
61988         m4/relocatable-lib.m4.
61989         (Depends-on): Remove 'relocatable'.
61990         (configure.ac): Add gl_RELOCATABLE_NOP.
61991
61992 2007-03-03  Bruno Haible  <bruno@clisp.org>
61993
61994         * modules/relocatable-prog-wrapper: New file.
61995         * modules/relocatable (Depends-on): Add it. Remove all other
61996         dependencies except progname.
61997         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
61998
61999         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
62000         (gl_FUNC_STRERROR): Nop.
62001         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
62002
62003         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
62004         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
62005
62006         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
62007         (gl_FUNC_READLINK): Update.
62008
62009         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
62010
62011 2007-03-03  Bruno Haible  <bruno@clisp.org>
62012
62013         * lib/xreadlink.c: Include <unistd.h> unconditionally.
62014         * modules/xreadlink (Depends-on): Add unistd.
62015         * modules/xreadlink-with-size (Depends-on): Likewise.
62016
62017 2007-03-03  Bruno Haible  <bruno@clisp.org>
62018
62019         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
62020         extracted from gt_FUNC_SETENV.
62021         (gt_FUNC_SETENV): Remove macro.
62022         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
62023         remove gt_FUNC_SETENV.
62024
62025 2007-03-03  Bruno Haible  <bruno@clisp.org>
62026
62027         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
62028         ENABLE_RELOCATABLE here.
62029         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
62030
62031 2007-03-03  Bruno Haible  <bruno@clisp.org>
62032
62033         * modules/rbtreehash-list-tests (Depends-on): Add progname.
62034         * tests/test-rbtreehash_list.c: Include progname.h.
62035         (main): Call set_program_name.
62036
62037         * modules/rbtree-oset-tests (Depends-on): Add progname.
62038         * tests/test-rbtree_oset.c: Include progname.h.
62039         (main): Call set_program_name.
62040
62041         * modules/rbtree-list-tests (Depends-on): Add progname.
62042         * tests/test-rbtree_list.c: Include progname.h.
62043         (main): Call set_program_name.
62044
62045         * modules/linked-list-tests (Depends-on): Add progname.
62046         * tests/test-linked_list.c: Include progname.h.
62047         (main): Call set_program_name.
62048
62049 2007-03-03  Bruno Haible  <bruno@clisp.org>
62050
62051         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
62052         All uses of __restrict changed to _Restrict_.
62053         * lib/glob_.h (__restrict): Remove macro.
62054
62055 2007-03-02  Bruno Haible  <bruno@clisp.org>
62056
62057         * modules/gettext (configure.ac): Require gettext infrastructure
62058         from version 0.16.1.
62059
62060 2007-03-02  Bruno Haible  <bruno@clisp.org>
62061
62062         * modules/linkedhash-list-tests (Depends-on): Add progname.
62063         * tests/test-linkedhash_list.c: Include progname.h.
62064         (main): Call set_program_name.
62065
62066         * modules/carray-list-tests (Depends-on): Add progname.
62067         * tests/test-carray_list.c: Include progname.h.
62068         (main): Call set_program_name.
62069
62070         * modules/avltreehash-list-tests (Depends-on): Add progname.
62071         * tests/test-avltreehash_list.c: Include progname.h.
62072         (main): Call set_program_name.
62073
62074         * modules/avltree-oset-tests (Depends-on): Add progname.
62075         * tests/test-avltree_oset.c: Include progname.h.
62076         (main): Call set_program_name.
62077
62078         * modules/avltree-list-tests (Depends-on): Add progname.
62079         * tests/test-avltree_list.c: Include progname.h.
62080         (main): Call set_program_name.
62081
62082         * modules/array-oset-tests (Depends-on): Add progname.
62083         * tests/test-array_oset.c: Include progname.h.
62084         (main): Call set_program_name.
62085
62086         * modules/array-list-tests (Depends-on): Add progname.
62087         * tests/test-array_list.c: Include progname.h.
62088         (main): Call set_program_name.
62089
62090         * modules/argp-tests (Depends-on): Add progname.
62091         * tests/test-argp.c: Include argp.h first. Include progname.h.
62092         (main): Call set_program_name.
62093
62094 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
62095
62096         * doc/gnulib-tool.texi (Initial import): Reword description of
62097         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
62098         limited effect even if defined after the first system include.
62099
62100 2007-03-01  Bruno Haible  <bruno@clisp.org>
62101
62102         * build-aux/config.libpath: Update to libtool-1.5.22.
62103         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
62104
62105 2007-03-01  Bruno Haible  <bruno@clisp.org>
62106
62107         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
62108         foo_CFLAGS.
62109         Reported by Ralf Wildenhues.
62110
62111 2007-03-01  Bruno Haible  <bruno@clisp.org>
62112
62113         * build-aux/install-reloc: Remove object files left over by some
62114         compilers.
62115         Reported by Ralf Wildenhues.
62116
62117 2007-03-01  Bruno Haible  <bruno@clisp.org>
62118
62119         * build-aux/install-reloc: Break long lines.
62120
62121 2007-03-01  Bruno Haible  <bruno@clisp.org>
62122
62123         * doc/relocatable.texi: Document that it may not work on OpenBSD.
62124         Reported by Ralf Wildenhues.
62125
62126 2007-03-01  Bruno Haible  <bruno@clisp.org>
62127
62128         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
62129         include ordering constraints.
62130
62131 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
62132
62133         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
62134         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
62135         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
62136         as another example.
62137         * lib/time_.h: Fix misspelling.
62138         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
62139         Require gl_HEADER_TIME_H_DEFAULTS.
62140         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
62141         * m4/time_r.m4 (gl_TIME_R): Likewise.
62142         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
62143
62144 2007-03-01  Bruno Haible  <bruno@clisp.org>
62145
62146         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
62147         * m4/utimens.m4 (gl_UTIMENS): Likewise.
62148
62149 2007-03-01  Jim Meyering  <jim@meyering.net>
62150
62151         * modules/xreadlink (Maintainer): Add my name.
62152         * modules/xreadlink-with-size (Depends-on): Alphabetize.
62153
62154 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
62155             Bruno Haible  <bruno@clisp.org>
62156
62157         * build-aux/install-reloc: Compile also c-ctype.c.
62158         * build-aux/relocatable.sh.in: New file.
62159         * doc/relocatable.texi: New file.
62160         * doc/relocatable-maint.texi: New file.
62161         * doc/gnulib.texi: Include relocatable-maint.texi.
62162         * lib/progreloc.c: Include unistd.h unconditionally.
62163         * lib/relocwrapper.c: Include unistd.h unconditionally.
62164         Include c-ctype.h.
62165         (add_dotbin): Use c_tolower.
62166         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
62167         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
62168         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
62169         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
62170         to m4/relocatable-lib.m4.
62171         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
62172         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
62173         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
62174         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
62175         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
62176         * modules/relocatable: New file.
62177         * modules/relocatable-lib: New file.
62178         * modules/relocatable-script: New file.
62179
62180 2007-02-28  Bruno Haible  <bruno@clisp.org>
62181
62182         Import --enable-relocatable infrastructure.
62183         * build-aux/config.libpath: New file, from GNU gettext.
62184         * build-aux/install-reloc: New file, from GNU gettext.
62185         * build-aux/reloc-ldflags: New file, from GNU gettext.
62186         * lib/relocatable.h: New file, from GNU gettext.
62187         * lib/relocatable.c: New file, from GNU gettext.
62188         * lib/relocwrapper.c: New file, from GNU gettext.
62189         * m4/relocatable.m4: New file, from GNU gettext.
62190
62191 2007-02-28  Bruno Haible  <bruno@clisp.org>
62192
62193         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
62194
62195         * modules/xreadlink: New file, from GNU gettext with modifications.
62196         * lib/xreadlink.c: New file, from GNU gettext.
62197         * lib/xreadlink.h: Add comments.
62198         (xreadlink): New declaration.
62199
62200         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
62201         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
62202         lib/xreadlink-with-size.c.
62203         (configure.ac): Remove gl_XREADLINK invocation.
62204         (Makefile.am): Augment lib_SOURCES.
62205         * m4/xreadlink.m4: Remove file.
62206         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
62207         (xreadlink_with_size): Renamed from xreadink.
62208         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
62209         * modules/canonicalize (Depends-on): Replace xreadlink with
62210         xreadlink-with-size.
62211         * lib/canonicalize.c (canonicalize_filename_mode): Update.
62212
62213 2007-02-25  Jim Meyering  <jim@meyering.net>
62214
62215         * build-aux/announce-gen: When complaining about excess arguments,
62216         list them.
62217
62218 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
62219
62220         * README: Document signed integer overflow situation more
62221         accurately.
62222
62223 2007-02-25  Bruno Haible  <bruno@clisp.org>
62224
62225         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
62226         'a' or 'A' conversion.
62227
62228 2007-02-25  Bruno Haible  <bruno@clisp.org>
62229
62230         * modules/filename: Renamed from modules/pathname.
62231         (Files): Replace lib/pathname.h with lib/filename.h. Replace
62232         lib/concatpath.c with lib/concat-filename.c.
62233         (Makefile.am): Update.
62234         (Include): Replace pathname.h with filename.h.
62235         * lib/filename.h: Renamed from lib/pathname.h.
62236         (concatenated_filename): Renamed from concatenated_pathname.
62237         * lib/concat-filename.c: Renamed from lib/concatpath.c.
62238         (concatenated_filename): Renamed from concatenated_pathname.
62239         * lib/findprog.c: Include filename.h instead of pathname.h.
62240         (find_in_path): Update.
62241         * lib/javacomp.c: Include filename.h instead of pathname.h.
62242         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
62243         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
62244         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
62245         is_oldgcj_14_13_usable, is_javac_usable): Update.
62246         * lib/javaexec.c: Include filename.h instead of pathname.h.
62247         (execute_java_class): Update.
62248         * modules/findprog: Update.
62249         * modules/javacomp: Update.
62250         * modules/javaexec: Update.
62251         * MODULES.html.sh (File system functions): Add 'filename', remove
62252         'pathname'.
62253
62254 2007-02-25  Bruno Haible  <bruno@clisp.org>
62255
62256         * modules/printf-frexpl-tests: New file.
62257         * tests/test-printf-frexpl.c: New file.
62258
62259         * modules/printf-frexpl: New file.
62260         * lib/printf-frexpl.h: New file.
62261         * lib/printf-frexpl.c: New file.
62262         * m4/printf-frexpl.m4: New file.
62263
62264 2007-02-25  Bruno Haible  <bruno@clisp.org>
62265
62266         * modules/printf-frexp-tests: New file.
62267         * tests/test-printf-frexp.c: New file.
62268
62269         * modules/printf-frexp: New file.
62270         * lib/printf-frexp.h: New file.
62271         * lib/printf-frexp.c: New file.
62272         * m4/printf-frexp.m4: New file.
62273
62274 2007-02-25  Bruno Haible  <bruno@clisp.org>
62275
62276         Assume automake >= 1.10 for the tests.
62277         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
62278         * modules/arctwo-tests: Likewise.
62279         * modules/argp-tests: Likewise.
62280         * modules/avltree-list-tests: Likewise.
62281         * modules/avltree-oset-tests: Likewise.
62282         * modules/avltreehash-list-tests: Likewise.
62283         * modules/carray-list-tests: Likewise.
62284         * modules/crc-tests: Likewise.
62285         * modules/des-tests: Likewise.
62286         * modules/gc-arcfour-tests: Likewise.
62287         * modules/gc-arctwo-tests: Likewise.
62288         * modules/gc-des-tests: Likewise.
62289         * modules/gc-hmac-md5-tests: Likewise.
62290         * modules/gc-hmac-sha1-tests: Likewise.
62291         * modules/gc-md2-tests: Likewise.
62292         * modules/gc-md4-tests: Likewise.
62293         * modules/gc-md5-tests: Likewise.
62294         * modules/gc-pbkdf2-sha1-tests: Likewise.
62295         * modules/gc-rijndael-tests: Likewise.
62296         * modules/gc-sha1-tests: Likewise.
62297         * modules/gc-tests: Likewise.
62298         * modules/getaddrinfo-tests: Likewise.
62299         * modules/hmac-md5-tests: Likewise.
62300         * modules/hmac-sha1-tests: Likewise.
62301         * modules/linked-list-tests: Likewise.
62302         * modules/linkedhash-list-tests: Likewise.
62303         * modules/lock-tests: Likewise.
62304         * modules/md2-tests: Likewise.
62305         * modules/md4-tests: Likewise.
62306         * modules/md5-tests: Likewise.
62307         * modules/rbtree-list-tests: Likewise.
62308         * modules/rbtree-oset-tests: Likewise.
62309         * modules/rbtreehash-list-tests: Likewise.
62310         * modules/read-file-tests: Likewise.
62311         * modules/rijndael-tests: Likewise.
62312         * modules/stdint-tests: Likewise.
62313         * modules/tls-tests: Likewise.
62314
62315 2007-02-24  Bruno Haible  <bruno@clisp.org>
62316
62317         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
62318         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
62319         function; instead check whether isnan with a double argument links.
62320         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
62321         function; instead check whether isnan with a 'long double' argument
62322         links.
62323         Reported by Eric Blake <ebb9@byu.net>.
62324
62325 2007-02-24  Bruno Haible  <bruno@clisp.org>
62326
62327         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
62328         defined.
62329         * lib/isnanl.c: Remove all code. Just include isnan.c.
62330         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
62331
62332 2007-02-25  Jim Meyering  <jim@meyering.net>
62333
62334         Avoid conflicting types for 'unsetenv' on FreeBSD.
62335         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
62336         conflicting with FreeBSD's (5.0 and 6.1) function declaration
62337         in stdlib.h.
62338
62339 2007-02-24  Bruno Haible  <bruno@clisp.org>
62340
62341         * modules/isnanl-nolibm-tests: New file.
62342         * tests/test-isnanl.c: New file.
62343
62344         * modules/isnanl-nolibm: New file.
62345         * lib/isnanl.h: New file.
62346         * lib/isnanl.c: New file.
62347         * m4/isnanl.m4: New file.
62348
62349 2007-02-24  Bruno Haible  <bruno@clisp.org>
62350
62351         * modules/isnan-nolibm-tests: New file.
62352         * tests/test-isnan.c: New file.
62353
62354         * modules/isnan-nolibm: New file.
62355         * lib/isnan.h: New file.
62356         * lib/isnan.c: New file.
62357         * m4/isnan.m4: New file.
62358
62359 2007-02-24  Bruno Haible  <bruno@clisp.org>
62360
62361         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
62362         assume that an exponent fits in 20 bits.
62363
62364 2007-02-24  Jim Meyering  <jim@meyering.net>
62365
62366         * m4/regex.m4: Update the description of the configure-time option,
62367         --without-included-regex, to state accurately what the defaults are,
62368         and perhaps to give people an idea why using this option is risky.
62369
62370 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
62371
62372         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
62373         loops on small arguments.  This attempts to avoid the problem
62374         Bruno Haible reported for AIX 4.3.2 in
62375         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
62376
62377 2007-02-23  Bruno Haible  <bruno@clisp.org>
62378
62379         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
62380         Needed for help2man.
62381
62382 2007-02-23  Karl Berry  <karl@gnu.org>
62383
62384         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
62385         exists, foo.h should be cvs-ignored, not committed.
62386
62387 2007-02-23  Eric Blake  <ebb9@byu.net>
62388
62389         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
62390         * lib/stat-time.h (includes): Likewise.
62391         * lib/utimecmp.c (includes): Likewise.
62392         * lib/utimens.h (includes): Likewise.
62393         * lib/getdate.y (includes): Also include "timespec.h" for use
62394         internal to the module.
62395         * modules/utimens (Depends-on): Revert yesterday's patch.
62396         * modules/nanosleep (Depends-on): Add missing dependency.
62397
62398 2007-02-22  Bruno Haible  <bruno@clisp.org>
62399
62400         * lib/glob.c: Don't include getlogin_r.h.
62401
62402 2007-02-22  Jim Meyering  <jim@meyering.net>
62403
62404         * modules/utimens (Depends-on): Add timespec, required for
62405         utimens.h's inclusion of timespec.h.
62406
62407 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
62408
62409         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
62410         long unreadable paths in GNU/Linux.  Problem reported by Andreas
62411         Schwab in
62412         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
62413         I'll try to think of a better way to fix the Solaris problem.
62414
62415         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
62416         like glibc; on Solaris 10, it fails with errno == EINVAL.
62417         POSIX says the behavior is unspecified if the first argument is NULL,
62418         so play it safe and never pass NULL to the system getcwd.
62419
62420 2007-02-21  Jim Meyering  <jim@meyering.net>
62421
62422         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
62423         of gettimeofday.  It would conflict with the one now always
62424         provided via sys_time_.h.  Reported by Matthew Woehlke, as
62425         an IRIX 6.5 build failure.
62426
62427 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
62428
62429         Minor fixups to port to Solaris 10 with Sun C 5.8.
62430         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
62431         * modules/getcwd (Depends-on): Add dirfd.
62432         * lib/putenv.c (putenv): #undef it.
62433         (rpl_putenv): New decl.
62434         (malloc, free): Include <stdlib.h> rather than prototyping separately.
62435
62436 2007-02-20  Bruno Haible  <bruno@clisp.org>
62437
62438         * modules/stdio-tests: New file.
62439         * tests/test-stdio.c: New file.
62440
62441         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
62442         (Depends-on): Add stdio.
62443         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
62444         (Include): Use <stdio.h> instead of vsnprintf.h.
62445         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
62446         HAVE_DECL_VSNPRINTF.
62447         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
62448
62449         * modules/snprintf (Files): Remove lib/snprintf.h.
62450         (Depends-on): Add stdio.
62451         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
62452         (Include): Use <stdio.h> instead of snprintf.h.
62453         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
62454         HAVE_DECL_SNPRINTF.
62455         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
62456         * lib/getaddrinfo.c: Likewise.
62457
62458         * modules/stdio: New file.
62459         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
62460         * lib/snprintf.h: Remove file.
62461         * lib/vsnprintf.h: Remove file.
62462         * lib/.cppi-disable: Remove snprintf.h.
62463         * m4/stdio_h.m4: New file.
62464         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
62465
62466 2007-02-20  Jim Meyering  <jim@meyering.net>
62467
62468         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
62469         used by e.g., mingw.  From Bruno Haible.
62470
62471 2007-02-19  Bruno Haible  <bruno@clisp.org>
62472
62473         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
62474         warnings.
62475         Reported by Ben Pfaff <blp@cs.stanford.edu>.
62476
62477 2007-02-19  Bruno Haible  <bruno@clisp.org>
62478
62479         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
62480         from mingw users.
62481
62482 2007-02-19  Bruno Haible  <bruno@clisp.org>
62483
62484         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
62485         warnings.
62486         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
62487
62488 2007-02-19  Jim Meyering  <jim@meyering.net>
62489
62490         Don't use FD after a successful "fdopendir (fd)".
62491         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
62492         Reset it by calling dirfd on the just-obtained DIR*.
62493
62494         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
62495         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
62496
62497 2007-02-18  Bruno Haible  <bruno@clisp.org>
62498
62499         * lib/readlink.c: Include <unistd.h>.
62500         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
62501         HAVE_READLINK.
62502         * modules/readlink (Depends-on): Add unistd.
62503         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
62504         (Include): Add <unistd.h>.
62505
62506         * lib/getlogin_r.h: Remove file.
62507         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
62508         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
62509         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
62510         HAVE_DECL_GETLOGIN_R.
62511         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
62512         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
62513         (Include): Use <unistd.h> instead of getlogin_r.h.
62514
62515         * lib/getcwd.h: Remove file.
62516         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
62517         * lib/xgetcwd.c: Likewise.
62518         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
62519         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
62520         * modules/getcwd (Files): Remove lib/getcwd.h.
62521         (Depends-on): Add unistd.
62522         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
62523         (Include): Use <unistd.h> instad of getcwd.h.
62524
62525         * lib/ftruncate.c: Include <unistd.h> first.
62526         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
62527         Set HAVE_FTRUNCATE.
62528         * modules/ftruncate (Depends-on): Add unistd.
62529         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
62530
62531         * lib/fchdir.c: Include <unistd.h> first.
62532         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
62533         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
62534         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
62535         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
62536         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
62537
62538         * lib/dup2.c: Include <unistd.h> first.
62539         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
62540         HAVE_DUP2.
62541         * modules/dup2 (Depends-on): Add unistd.
62542         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
62543
62544         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
62545         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
62546         REPLACE_CHOWN. Don't define chown as a macro here.
62547         * modules/chown (Depends-on): Add unistd.
62548         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
62549
62550         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
62551         Add definition for GL_LINK_WARNING.
62552         (chown, dup2): New declarations.
62553         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
62554         link warning.
62555         (ftruncate): New declaration.
62556         (getcwd): New declaration, taken from old getcwd.h.
62557         (getlogin_r): New declaration, taken from old getlogin_r.h.
62558         (readlink): New declaration.
62559         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
62560         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
62561         (gl_PREREQ_UNISTD): Remove macro.
62562         (gl_UNISTD_MODULE_INDICATOR): New macro.
62563         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
62564         many new variables. Don't set UNISTD_H.
62565         * modules/unistd (Description): Change.
62566         (Depends-on): Add link-warning.
62567         (configure.ac): Update.
62568         (Makefile.am): Create unistd.h always. Substitute many new variables
62569         into it.
62570
62571 2007-02-18  Bruno Haible  <bruno@clisp.org>
62572
62573         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
62574         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
62575         HAVE_GETSUBOPT.
62576         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
62577         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
62578         * lib/getsubopt.h: Remove file.
62579         * modules/getsubopt (Files): Remove lib/getsubopt.h.
62580         (Depends-on): Add stdlib.
62581         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
62582         (Includes): Use <stdlib.h> instead of getsubopt.h.
62583         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
62584         Set HAVE_GETSUBOPT.
62585         * lib/getsubopt.c: Don't include getsubopt.h.
62586
62587 2007-02-18  Bruno Haible  <bruno@clisp.org>
62588
62589         * modules/fchdir (Depends-on): Add dup2.
62590
62591 2007-02-18  Bruno Haible  <bruno@clisp.org>
62592
62593         * lib/stdlib_.h: Handle glibc's special invocation convention
62594         specially.
62595
62596 2007-02-18  Bruno Haible  <bruno@clisp.org>
62597
62598         * modules/stdlib-tests: New file.
62599         * tests/test-stdlib.c: New file.
62600
62601         * modules/mkstemp (Files): Remove lib/mkstemp.h.
62602         (Depends-on): Add stdlib.
62603         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
62604         (Includes): Use <stdlib.h> instead of mkstemp.h.
62605         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
62606         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
62607         * lib/mkstemp.c: Don't include mkstemp.h.
62608         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
62609         * lib/stdlib--.h: Don't include mkstemp.h.
62610
62611         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
62612         (Depends-on): Add stdlib.
62613         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
62614         (Includes): Use <stdlib.h> instead of mkdtemp.h.
62615         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
62616         HAVE_MKDTEMP.
62617         * lib/mkdtemp.c: Don't include mkdtemp.h.
62618         * lib/clean-temp.c: Don't include mkdtemp.h.
62619
62620         * modules/exit (Files): Remove lib/exit.h.
62621         (Depends-on): Add stdlib.
62622         (Makefile.am): Remove lib_SOURCES.
62623         (Include): Use <stdlib.h> instead of exit.h.
62624         * lib/argmatch.c: Don't include exit.h.
62625         * lib/execute.c: Likewise.
62626         * lib/pagealign_alloc.c: Likewise.
62627         * lib/pipe.c: Likewise.
62628         * lib/wait-process.c: Likewise.
62629         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
62630         * lib/exitfail.c: Likewise.
62631         * lib/savewd.c: Likewise.
62632         * lib/xsetenv.c: Likewise.
62633
62634         * modules/stdlib: New file.
62635         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
62636         and extra comments about mkstemp().
62637         * lib/exit.h: Remove file.
62638         * lib/mkdtemp.h: Remove file.
62639         * lib/mkstemp.h: Remove file.
62640         * m4/stdlib_h.m4: New file.
62641         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
62642
62643 2007-02-18  Bruno Haible  <bruno@clisp.org>
62644
62645         * modules/math-tests: New file.
62646         * tests/test-math.c: New file.
62647
62648         * modules/math: New file.
62649         * modules/mathl (Files): Remove lib/mathl.h.
62650         (Depends-on): Add math.
62651         (Makefile.am): Don't mention mathl.h.
62652         (Include): Use <math.h> instead of mathl.h.
62653         * lib/math_.h: New file.
62654         * lib/mathl.h: Remove file.
62655         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
62656         mathl.h.
62657         * lib/asinl.c: Likewise.
62658         * lib/atanl.c: Likewise.
62659         * lib/ceill.c: Likewise.
62660         * lib/cosl.c: Likewise.
62661         * lib/expl.c: Likewise.
62662         * lib/floorl.c: Likewise.
62663         * lib/frexpl.c: Likewise.
62664         * lib/ldexpl.c: Likewise.
62665         * lib/logl.c: Likewise.
62666         * lib/sincosl.c: Likewise.
62667         * lib/sinl.c: Likewise.
62668         * lib/sqrtl.c: Likewise.
62669         * lib/tanl.c: Likewise.
62670         * lib/trigl.c: Likewise.
62671         * m4/math_h.m4: New file.
62672         * MODULES.html.sh (Mathematics): Add math.
62673
62674 2007-02-17  Bruno Haible  <bruno@clisp.org>
62675
62676         * modules/wctype-tests: New file.
62677         * tests/test-wctype.c: New file.
62678
62679         * modules/wchar-tests: New file.
62680         * tests/test-wchar.c: New file.
62681
62682         * modules/unistd-tests: New file.
62683         * tests/test-unistd.c: New file.
62684
62685         * modules/time-tests: New file.
62686         * tests/test-time.c: New file.
62687
62688         * modules/sysexits-tests: New file.
62689         * tests/test-sysexits.c: New file.
62690
62691         * modules/sys_time-tests: New file.
62692         * tests/test-sys_time.c: New file.
62693
62694         * modules/sys_stat-tests: New file.
62695         * tests/test-sys_stat.c: New file.
62696
62697         * modules/sys_socket-tests: New file.
62698         * tests/test-sys_socket.c: New file.
62699
62700         * modules/sys_select-tests: New file.
62701         * tests/test-sys_select.c: New file.
62702
62703         * modules/string-tests: New file.
62704         * tests/test-string.c: New file.
62705
62706         * modules/stdbool-tests: New file.
62707         * tests/test-stdbool.c: New file.
62708
62709         * modules/netinet_in-tests: New file.
62710         * tests/test-netinet_in.c: New file.
62711
62712         * modules/inttypes-tests: New file.
62713         * tests/test-inttypes.c: New file.
62714
62715         * modules/fcntl-tests: New file.
62716         * tests/test-fcntl.c: New file.
62717
62718         * modules/byteswap-tests: New file.
62719         * tests/test-byteswap.c: New file.
62720
62721         * modules/arpa_inet-tests: New file.
62722         * tests/test-arpa_inet.c: New file.
62723
62724 2007-02-17  Bruno Haible  <bruno@clisp.org>
62725
62726         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
62727         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
62728         if the corresponding module is not enabled. Emit link warnings if
62729         the function is used nevertheless.
62730         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
62731         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
62732         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
62733         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
62734         * modules/inttypes (Depends-on): Add link-warning.
62735         (Makefile.am): Copy the contents of build-aux/link-warning.h into
62736         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
62737         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
62738         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
62739         * modules/imaxdiv (configure.ac): Likewise.
62740         * modules/strtoimax (configure.ac): Likewise.
62741         * modules/strtoumax (configure.ac): Likewise.
62742
62743 2007-02-17  Bruno Haible  <bruno@clisp.org>
62744
62745         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
62746         gl_STRING_MODULE_INDICATOR_DEFAULTS.
62747         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
62748         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
62749
62750 2007-02-17  Bruno Haible  <bruno@clisp.org>
62751
62752         * modules/link-warning: New file.
62753         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
62754         * lib/string_.h (GL_LINK_WARNING): Remove definition.
62755         * modules/string (Depends-on): Add link-warning.
62756         (Makefile.am): Copy the contents of build-aux/link-warning.h into
62757         string.h.
62758         * MODULES.html.sh (Support for building libraries and executables): Add
62759         link-warning.
62760
62761 2007-02-17  Bruno Haible  <bruno@clisp.org>
62762
62763         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
62764         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
62765         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
62766         long lines.
62767
62768 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
62769             Bruno Haible  <bruno@clisp.org>
62770
62771         * modules/tmpfile: New file.
62772         * lib/tmpfile.c: New file.
62773         * m4/tmpfile.m4: New file.
62774         * MODULES.html.sh (func_all_modules): New section "Input/output".
62775
62776 2007-02-15  Bruno Haible  <bruno@clisp.org>
62777
62778         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
62779         (supports_delete_on_close): New function.
62780         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
62781
62782 2007-02-14  Bruno Haible  <bruno@clisp.org>
62783
62784         * modules/mbspcasecmp-tests: New file.
62785         * tests/test-mbspcasecmp.sh: New file.
62786         * tests/test-mbspcasecmp.c: New file.
62787
62788         New module mbspcasecmp.
62789         * modules/mbspcasecmp: New file.
62790         * lib/mbspcasecmp.c: New file.
62791         * lib/string_.h (strncasecmp): Change warning message.
62792         (mbspcasecmp): New declaration.
62793         * m4/mbspcasecmp.m4: New file.
62794         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
62795         GNULIB_MBSPCASECMP.
62796         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
62797         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
62798
62799 2007-02-14  Bruno Haible  <bruno@clisp.org>
62800
62801         * modules/mbsncasecmp-tests: New file.
62802         * tests/test-mbsncasecmp.sh: New file.
62803         * tests/test-mbsncasecmp.c: New file.
62804
62805         New module mbsncasecmp.
62806         * modules/mbsncasecmp: New file.
62807         * lib/mbsncasecmp.c: New file.
62808         * lib/string_.h (mbsncasecmp): New declaration.
62809         * m4/mbsncasecmp.m4: New file.
62810         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
62811         GNULIB_MBSNCASECMP.
62812         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
62813         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
62814
62815 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
62816
62817         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
62818         Verify that it doesn't overlap with our flags.
62819         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
62820         do not have the desired effect in multibyte locales; instead, use
62821         mbscasecmp.
62822         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
62823         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
62824         we don't require GNU fnmatch ourselves (if our users require it, they
62825         should do so explicitly).
62826
62827         Fix regex code so it doesn't rely on strcasecmp.
62828         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
62829         Otherwise, include gnulib's langinfo.h.
62830         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
62831         undesirable behavior in non-C locales.  Instead, rely on localecharset.
62832         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
62833         * modules/regex (FILES): Remove m4/codeset.m4.
62834         (Depends-on): Add localcharset.  Remove strcase.
62835
62836 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62837
62838         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
62839         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
62840
62841 2007-02-13  Bruno Haible  <bruno@clisp.org>
62842
62843         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
62844         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
62845
62846 2007-02-12  Bruno Haible  <bruno@clisp.org>
62847
62848         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
62849         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
62850         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
62851         time warning rather than a link error.
62852
62853 2007-02-12  Bruno Haible  <bruno@clisp.org>
62854
62855         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
62856         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
62857         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
62858
62859 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
62860
62861         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
62862         args, not 2.
62863
62864 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
62865
62866         New module 'time', so that apps can include <time.h> as per
62867         POSIX and GNU instead of separate include files like time_r.h
62868         and timegm.h.  This implementation tries out a simpler approach
62869         for replacing decls in standard include files (as compared to
62870         the string module), somewhat as an experiment.
62871
62872         * config/srclist.txt: Comment out mktime.c for now.
62873         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
62874         since it doesn't apply any more.  Use generic wording instead.
62875         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
62876         'time'.
62877         * lib/time_.h, m4/time_h.m4, modules/time: New files.
62878         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
62879         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
62880         Don't include <sys/types.h>; no longer needed since we assume C89.
62881         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
62882         * lib/strftime.c: Likewise.
62883         * lib/time_r.c: Likewise.
62884         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
62885         * lib/nanosleep.c: Include <time.h> first, to check interface.
62886         * lib/strptime.c: Likewise.
62887         * lib/time_r.c: Likewise.
62888         * lib/timegm.c: Likewise.
62889         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
62890         needed.
62891         * lib/timegm.c: Don't include timegm.h; no longer needed.
62892         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
62893         time.h now handles any problems in that area.
62894         (struct timespec, nanosleep): Remove; time.h now arranges for these.
62895         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
62896         that time.h defines struct timespec.
62897         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
62898         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
62899         handles that.
62900         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
62901         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
62902         needed.  Set REPLACE_LOCALTIME.
62903         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
62904         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
62905         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
62906         nanosleep; time_h.m4 now does that.  Don't require
62907         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
62908         module handles this now.
62909         * modules/getdate (Depends-on): Remove timespec.  Add time.
62910         * modules/nanosleep (Depends-on): Likewise.
62911         * modules/stat-time (Depends-on): Likewise.
62912         * modules/nanosleep (Include): Include time.h, not timespec.h.
62913         * modules/strptime (Files): Remove lib/strptime.h.
62914         (Depends-on): Add extensions, time.
62915         (Include): Include time.h, not strptime.h.
62916         * modules/time_r (Files): Remove lib/time_r.h.
62917         (Depends-on): Add time.
62918         (Include): Include time.h, not time_r.h.
62919         * modules/timegm: Likewise.
62920         * modules/timespec (Description): Now does timespec-related decls
62921         of our own, instead of struct timespec itself.
62922         (Depends-on): Add time; remove extensions.
62923         (Maintainer): Add self.
62924         * modules/utimecmp (Depends-on): Add time; remove timespec.
62925         * modules/utimens (Depends-on): Likewise.
62926         * modules/xnanosleep (Depends-on): Likewise.
62927
62928 2007-02-11  Bruno Haible  <bruno@clisp.org>
62929
62930         * lib/c-strstr.c: Include allocsa.h.
62931         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
62932         * lib/c-strcasestr.c: Include allocsa.h.
62933         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
62934         * lib/strcasestr.c: Include allocsa.h.
62935         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
62936         * lib/mbsstr.c: Include allocsa.h.
62937         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
62938         allocsa/freesa instead of malloc/free.
62939         * lib/mbscasestr.c: Include allocsa.h.
62940         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
62941         allocsa/freesa instead of malloc/free.
62942         * modules/c-strstr (Depends-on): Add allocsa.
62943         * modules/c-strcasestr (Depends-on): Likewise.
62944         * modules/strcasestr (Depends-on): Likewise.
62945         * modules/mbsstr (Depends-on): Likewise.
62946         * modules/mbscasestr (Depends-on): Likewise.
62947
62948 2007-02-11  Bruno Haible  <bruno@clisp.org>
62949
62950         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
62951
62952         * modules/mbsspn-tests: New file.
62953         * tests/test-mbsspn.sh: New file.
62954         * tests/test-mbsspn.c: New file.
62955
62956 2007-02-11  Bruno Haible  <bruno@clisp.org>
62957
62958         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
62959
62960         * modules/mbspbrk-tests: New file.
62961         * tests/test-mbspbrk.sh: New file.
62962         * tests/test-mbspbrk.c: New file.
62963
62964 2007-02-11  Bruno Haible  <bruno@clisp.org>
62965
62966         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
62967         unneeded cast.
62968
62969         * modules/mbscspn-tests: New file.
62970         * tests/test-mbscspn.sh: New file.
62971         * tests/test-mbscspn.c: New file.
62972
62973 2007-02-11  Bruno Haible  <bruno@clisp.org>
62974
62975         * modules/mbscasecmp-tests: New file.
62976         * tests/test-mbscasecmp.sh: New file.
62977         * tests/test-mbscasecmp.c: New file.
62978
62979 2007-02-11  Bruno Haible  <bruno@clisp.org>
62980
62981         Ensure O(n) worst-case complexity of mbscasestr.
62982         * lib/mbscasestr.c: Include stdbool.h.
62983         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
62984         functions.
62985         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
62986         the bookkeeping indicates that it's worth it.
62987         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
62988
62989         * modules/mbscasestr-tests: New file.
62990         * tests/test-mbscasestr1.c: New file.
62991         * tests/test-mbscasestr2.sh: New file.
62992         * tests/test-mbscasestr2.c: New file.
62993         * tests/test-mbscasestr3.sh: New file.
62994         * tests/test-mbscasestr3.c: New file.
62995         * tests/test-mbscasestr4.sh: New file.
62996         * tests/test-mbscasestr4.c: New file.
62997         * m4/locale-tr.m4: New file.
62998
62999 2007-02-11  Bruno Haible  <bruno@clisp.org>
63000
63001         Ensure O(n) worst-case complexity of mbsstr.
63002         * lib/mbsstr.c: Include stdbool.h.
63003         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
63004         functions.
63005         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
63006         bookkeeping indicates that it's worth it.
63007         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
63008
63009         * modules/mbsstr-tests: New file.
63010         * tests/test-mbsstr1.c: New file.
63011         * tests/test-mbsstr2.sh: New file.
63012         * tests/test-mbsstr2.c: New file.
63013         * tests/test-mbsstr3.sh: New file.
63014         * tests/test-mbsstr3.c: New file.
63015         * m4/locale-fr.m4: New file.
63016
63017 2007-02-11  Bruno Haible  <bruno@clisp.org>
63018
63019         * lib/mbsrchr.c (mbsrchr): Fix bug.
63020
63021         * modules/mbsrchr-tests: New file.
63022         * tests/test-mbsrchr.sh: New file.
63023         * tests/test-mbsrchr.c: New file.
63024
63025 2007-02-11  Bruno Haible  <bruno@clisp.org>
63026
63027         * lib/mbschr.c (mbschr): Fix bug.
63028
63029         * modules/mbschr-tests: New file.
63030         * tests/test-mbschr.sh: New file.
63031         * tests/test-mbschr.c: New file.
63032         * m4/locale-zh.m4: New file.
63033
63034 2007-02-11  Bruno Haible  <bruno@clisp.org>
63035
63036         Support for copying multibyte string iterators.
63037         * lib/mbiter.h: Include <string.h>.
63038         (mbiter_multi_copy): New function.
63039         (mbi_copy): New macro.
63040         * lib/mbuiter.h: Include <string.h>.
63041         (mbuiter_multi_copy): New function.
63042         (mbui_copy): New macro.
63043
63044 2007-02-11  Bruno Haible  <bruno@clisp.org>
63045
63046         New module mbslen.
63047         * modules/mbslen: New file.
63048         * lib/mbslen.c: New file.
63049         * lib/string_.h (mbslen): New declaration.
63050         * m4/mbslen.m4: New file.
63051         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63052         GNULIB_MBSLEN.
63053         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
63054         * MODULES.html.sh (Internationalization functions): Add mbslen.
63055
63056 2007-02-11  Bruno Haible  <bruno@clisp.org>
63057
63058         Ensure O(n) worst-case complexity of strcasestr substitute.
63059         * lib/strcasestr.c: Include stdbool.h.
63060         (knuth_morris_pratt): New function.
63061         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
63062         bookkeeping indicates that it's worth it.
63063         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
63064
63065         * modules/strcasestr-tests: New file.
63066         * tests/test-strcasestr.c: New file.
63067
63068 2007-02-11  Bruno Haible  <bruno@clisp.org>
63069
63070         Ensure O(n) worst-case complexity of c_strcasestr.
63071         * lib/c-strcasestr.c: Include stdbool.h, string.h.
63072         (knuth_morris_pratt): New function.
63073         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
63074         the bookkeeping indicates that it's worth it.
63075         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
63076
63077         * modules/c-strcasestr-tests: New file.
63078         * tests/test-c-strcasestr.c: New file.
63079
63080 2007-02-11  Bruno Haible  <bruno@clisp.org>
63081
63082         Ensure O(n) worst-case complexity of c_strstr.
63083         * lib/c-strstr.c: Include stdbool.h, string.h.
63084         (knuth_morris_pratt): New function.
63085         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
63086         bookkeeping indicates that it's worth it.
63087         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
63088
63089         * lib/c-strstr.c: Complete rewrite for maintainability.
63090
63091         * modules/c-strstr-tests: New file.
63092         * tests/test-c-strstr.c: New file.
63093
63094 2007-02-11  Bruno Haible  <bruno@clisp.org>
63095
63096         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
63097         5.2.1 and earlier, whereby \055 was treated just like the range
63098         delimiter '-'.
63099         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
63100
63101 2007-02-08  Bruno Haible  <bruno@clisp.org>
63102
63103         * modules/regex (Depends-on): Add stdbool.
63104         Reported by Dalibor Topic <robilad@kaffe.org>.
63105
63106 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
63107
63108         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
63109         Prefer returning from main to exiting from it.
63110         Remove unnecessary parens after sizeof.
63111
63112 2007-02-05  Bruno Haible  <bruno@clisp.org>
63113
63114         New module mbssep.
63115         * modules/mbssep: New file.
63116         * lib/mbssep.c: New file.
63117         * lib/string_.h (strsep): Add a conditional link warning.
63118         (mbssep): New declaration.
63119         * m4/mbssep.m4: New file.
63120         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63121         GNULIB_MBSSEP.
63122         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
63123         * MODULES.html.sh (Internationalization functions): Add mbssep.
63124
63125 2007-02-05  Bruno Haible  <bruno@clisp.org>
63126
63127         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
63128         Optimize search in case of 1 delimiter.
63129
63130 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
63131
63132         * lib/acl.h: Include sys/types.h before sys/acl.h.
63133
63134 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
63135
63136         Merge upstream fix for glibc bugzilla #3957:
63137
63138         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
63139
63140         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
63141         bit for RE_HAT_LISTS_NOT_NEWLINE.
63142         (build_charclass_op): Remove bogus comment.
63143
63144 2007-02-05  Simon Josefsson  <simon@josefsson.org>
63145
63146         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
63147
63148 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
63149
63150         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
63151         * lib/memmem.c [!defined _LIBC]: Include config.h.
63152
63153 2007-02-04  Bruno Haible  <bruno@clisp.org>
63154
63155         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
63156         warning message.
63157
63158 2007-02-04  Bruno Haible  <bruno@clisp.org>
63159
63160         New module mbstok_r.
63161         * modules/mbstok_r: New file.
63162         * lib/mbstok_r.c: New file.
63163         * lib/string_.h (strtok_r): Change argument names to match the
63164         comments. Add a conditional link warning.
63165         (mbstok_r): New declaration.
63166         * m4/mbstok_r.m4: New file.
63167         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63168         GNULIB_MBSTOK_R.
63169         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
63170         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
63171
63172 2007-02-04  Bruno Haible  <bruno@clisp.org>
63173
63174         New module mbsspn.
63175         * modules/mbsspn: New file.
63176         * lib/mbsspn.c: New file.
63177         * lib/string_.h (strspn): Add a conditional link warning.
63178         (mbsspn): New declaration.
63179         * m4/mbsspn.m4: New file.
63180         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63181         GNULIB_MBSSPN.
63182         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
63183         * MODULES.html.sh (Internationalization functions): Add mbsspn.
63184
63185 2007-02-04  Bruno Haible  <bruno@clisp.org>
63186
63187         New module mbspbrk.
63188         * modules/mbspbrk: New file.
63189         * lib/mbspbrk.c: New file.
63190         * lib/string_.h (strpbrk): Add a conditional link warning.
63191         (mbspbrk): New declaration.
63192         * m4/mbspbrk.m4: New file.
63193         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63194         GNULIB_MBSPBRK.
63195         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
63196         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
63197
63198 2007-02-04  Bruno Haible  <bruno@clisp.org>
63199
63200         New module mbscspn.
63201         * modules/mbscspn: New file.
63202         * lib/mbscspn.c: New file.
63203         * lib/string_.h (strcspn): Add a conditional link warning.
63204         (mbscspn): New declaration.
63205         * m4/mbscspn.m4: New file.
63206         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63207         GNULIB_MBSCSPN.
63208         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
63209         * MODULES.html.sh (Internationalization functions): Add mbscspn.
63210
63211 2007-02-04  Bruno Haible  <bruno@clisp.org>
63212
63213         New module mbscasestr, reduced goal of strcasestr.
63214         * modules/mbscasestr: New file.
63215         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
63216         (mbscasestr): Renamed from strcasestr.
63217         * lib/strcasestr.c: Don't include mbuiter.h.
63218         (strcasestr): Remove support for multibyte locales.
63219         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
63220         Change the conditional link warning.
63221         (mbscasestr): New declaration.
63222         * m4/mbscasestr.m4: New file.
63223         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
63224         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
63225         REPLACE_STRCASESTR.
63226         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
63227         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
63228         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
63229         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
63230         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
63231         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
63232         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
63233         (Depends-on): Remove mbuiter.
63234         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
63235
63236 2007-02-04  Bruno Haible  <bruno@clisp.org>
63237
63238         Simplify handling of strncasecmp.
63239         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
63240         the conditional link warning.
63241         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
63242         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
63243         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
63244         * modules/strcase (configure.ac): Don't invoke
63245         gl_STRING_MODULE_INDICATOR.
63246         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
63247
63248 2007-02-04  Bruno Haible  <bruno@clisp.org>
63249
63250         New module mbscasecmp, reduced goal of strcasecmp.
63251         * modules/mbscasecmp: New file.
63252         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
63253         (mbscasecmp): Renamed from strcasecmp.
63254         * lib/strcasecmp.c: Don't include mbuiter.h.
63255         (strcasecmp): Remove support for multibyte locales.
63256         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
63257         Change the conditional link warning.
63258         (mbscasecmp): New declaration.
63259         * m4/mbscasecmp.m4: New file.
63260         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
63261         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
63262         REPLACE_STRCASECMP.
63263         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
63264         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63265         GNULIB_MBSCASECMP.
63266         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
63267         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
63268         * modules/strcase (Files): Remove m4/mbrtowc.m4.
63269         (Depends-on): Remove mbuiter.
63270         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
63271
63272 2007-02-04  Bruno Haible  <bruno@clisp.org>
63273
63274         New module mbsstr. Remove module strstr.
63275         * modules/mbsstr: New file.
63276         * modules/strstr: Remove file.
63277         * lib/mbsstr.c: Renamed from lib/strstr.c.
63278         (mbsstr): Renamed from strstr.
63279         * lib/string_.h (strstr): Remove declaration. Change the conditional
63280         link warning.
63281         (mbsstr): New declaration.
63282         * m4/mbsstr.m4: New file.
63283         * m4/strstr.m4: Remove file.
63284         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
63285         REPLACE_STRSTR.
63286         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
63287         Don't initialize GNULIB_STRSTR.
63288         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
63289         substitute GNULIB_STRSTR and REPLACE_STRSTR.
63290         * MODULES.html.sh (Internationalization functions): Add mbsstr.
63291         (Support for systems lacking ANSI C 89): Remove strstr.
63292
63293 2007-02-04  Bruno Haible  <bruno@clisp.org>
63294
63295         New module mbsrchr.
63296         * modules/mbsrchr: New file.
63297         * lib/mbsrchr.c: New file.
63298         * lib/string_.h (strrchr): Add a conditional link warning.
63299         (mbsrchr): New declaration.
63300         * m4/mbsrchr.m4: New file.
63301         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63302         GNULIB_MBSRCHR.
63303         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
63304         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
63305
63306 2007-02-04  Bruno Haible  <bruno@clisp.org>
63307
63308         New module mbschr.
63309         * modules/mbschr: New file.
63310         * lib/mbschr.c: New file.
63311         * lib/string_.h (strchr): Add a conditional link warning.
63312         (mbschr): New declaration.
63313         * m4/mbschr.m4: New file.
63314         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63315         GNULIB_MBSCHR.
63316         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
63317         * MODULES.html.sh (Internationalization functions): Add mbschr.
63318
63319 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
63320
63321         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
63322
63323         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
63324
63325 2007-02-04  Bruno Haible  <bruno@clisp.org>
63326
63327         New module description section 'configure.ac-early'.
63328         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
63329         (func_get_autoconf_early_snippet): New function.
63330         (func_import, func_create_testdir): Use it. Remove special cases for
63331         modules 'extensions' and 'lock'.
63332         * modules/extensions (configure.ac-early): Require
63333         gl_USE_SYSTEM_EXTENSIONS.
63334         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
63335
63336 2007-02-04  Bruno Haible  <bruno@clisp.org>
63337
63338         Make use of gcj-4.3's -fsource and -ftarget option.
63339         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
63340         and if so try the options -fsource and -ftarget.
63341         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
63342         source_version, ftarget_option, target_version arguments.
63343         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
63344         (is_envjavac_oldgcj_14_14_usable): Renamed from
63345         is_envjavac_gcj_14_14_usable.
63346         (is_envjavac_oldgcj_14_13_usable): Renamed from
63347         is_envjavac_gcj_14_13_usable.
63348         (is_gcj_present): Update.
63349         (is_gcj_43, is_gcj43_usable): New functions.
63350         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
63351         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
63352         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
63353         try the options -fsource and -ftarget.
63354
63355 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
63356
63357         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
63358         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
63359         larger value.
63360
63361 2007-02-03  Jim Meyering  <jim@meyering.net>
63362
63363         Give tools a better chance to allocate space for very large buffers.
63364         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
63365
63366         Make pwd and readlink work also when run with an unreadable parent dir
63367         on systems with openat support.
63368         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
63369         provided getcwd function, even when we have openat support.
63370         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
63371
63372 2007-02-02  Bruno Haible  <bruno@clisp.org>
63373
63374         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
63375         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
63376         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
63377         portability problems if one of these functions is only used on specific
63378         platforms.
63379         Reported by Paul Eggert.
63380
63381 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
63382
63383         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
63384         is causing more trouble than it's curing.
63385         * lib/regex_internal.h (__mempcpy): Remove.
63386         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
63387         (and make the code a tad smaller to boot).
63388         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
63389
63390 2007-02-02  Jim Meyering  <jim@meyering.net>
63391
63392         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
63393         section, not in the Makefile.am: one.
63394
63395 2007-02-02  Eric Blake  <ebb9@byu.net>
63396
63397         * lib/strchrnul.c: Always include config.h first.
63398
63399         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
63400         gnulib strstr is not necessary here.
63401
63402 2007-02-02  Simon Josefsson  <simon@josefsson.org>
63403
63404         * m4/socklen.m4: Fix typo.
63405
63406 2007-02-02  Eric Blake  <ebb9@byu.net>
63407
63408         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
63409         * modules/netinet_in (Makefile.am): Likewise.
63410
63411 2007-02-01  Bruno Haible  <bruno@clisp.org>
63412
63413         * lib/string_.h (GL_LINK_WARNING): New macro.
63414         (strcasecmp, strstr, strcasestr): If provided by the system,
63415         conditionally define as a macro that leads to a warning instead of to
63416         an error.
63417         (strncasecmp): Conditionally define as a macro that leads to a warning.
63418
63419 2007-02-01  Karl Berry  <karl@gnu.org>
63420
63421         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
63422
63423 2007-02-01  Bruno Haible  <bruno@clisp.org>
63424
63425         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
63426         renamings.
63427
63428 2007-02-01  Eric Blake  <ebb9@byu.net>
63429
63430         * modules/regex (Depends-on): Revert dependence on mempcpy.
63431         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
63432         module's definition of mempcpy.
63433         Reported by Paul Eggert.
63434
63435 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
63436
63437         * lib/string_.h: If the gnulib module XYZ is not present, undefine
63438         the symbol XYZ before redefining it.  This fixes a problem with
63439         programs that don't use XYZ, when compiled on systems that define
63440         XYZ to something else.
63441
63442 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
63443
63444         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
63445         occurs when "mkdir -m foo" creates a setgid directory that is (1)
63446         writeable to group or other and (2) is intended to have a special
63447         mode bit that is set or cleared.  In such a case, the directory
63448         should be neither group- nor other-writeable until the special
63449         mode bits are right.
63450
63451 2007-01-31  Eric Blake  <ebb9@byu.net>
63452
63453         * modules/mountlist (Depends-on): Add strstr.
63454
63455         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
63456         bug.
63457         * modules/string (Makefile.am): Remove redundant replacement.
63458         * modules/regex (Depends-on): Add mempcpy.
63459
63460 2007-01-31  Bruno Haible  <bruno@clisp.org>
63461
63462         New module description field 'Link'.
63463         * gnulib-tool (func_usage): Document --extract-link-directive.
63464         (sed_extract_prog): Recognize 'Link' directive.
63465         (func_get_link_directive): New function.
63466         (func_import): Show summary of link directives.
63467         Handle --extract-link-directive option.
63468         * modules/acl (Link): New section.
63469         * modules/clock-time (Link): New section.
63470         * modules/euidaccess (Link): New section.
63471         * modules/gettext (Link): New section.
63472         * modules/iconv (Link): New section.
63473         * modules/lock (Link): New section.
63474         * modules/nanosleep (Link): New section.
63475         * modules/readline (Link): New section.
63476
63477 2007-01-27  Bruno Haible  <bruno@clisp.org>
63478
63479         Enforce the use of gnulib modules for unportable <string.h> functions.
63480         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
63481         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
63482         (gl_HEADER_STRING_H_BODY): Require it.
63483         * lib/string_.h: If the gnulib module XYZ is not present, redefine
63484         the symbol XYZ to one that gives a link error.
63485         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
63486         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
63487         * modules/mempcpy (configure.ac): Likewise.
63488         * modules/memrchr (configure.ac): Likewise.
63489         * modules/stpcpy (configure.ac): Likewise.
63490         * modules/stpncpy (configure.ac): Likewise.
63491         * modules/strcase (configure.ac): Likewise.
63492         * modules/strcasestr (configure.ac): Likewise.
63493         * modules/strchrnul (configure.ac): Likewise.
63494         * modules/strdup (configure.ac): Likewise.
63495         * modules/strndup (configure.ac): Likewise.
63496         * modules/strnlen (configure.ac): Likewise.
63497         * modules/strpbrk (configure.ac): Likewise.
63498         * modules/strsep (configure.ac): Likewise.
63499         * modules/strstr (configure.ac): Likewise.
63500         * modules/strtok_r (configure.ac): Likewise.
63501
63502 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
63503
63504         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
63505
63506 2007-01-30  Jim Meyering  <jim@meyering.net>
63507
63508         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
63509
63510 2007-01-29  Bruno Haible  <bruno@clisp.org>
63511
63512         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
63513         * lib/execute.c: Likewise.
63514         * lib/pipe.c: Likewise.
63515         * lib/printf-args.h: Likewise.
63516         * lib/printf-args.c: Likewise.
63517         * lib/printf-parse.c: Likewise.
63518         * lib/vasnprintf.c: Likewise.
63519
63520 2007-01-29  Eric Blake  <ebb9@byu.net>
63521
63522         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
63523         declaration.
63524
63525 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
63526
63527         * lib/strptime.h (strptime): Use 'restrict' for args where
63528         POSIX requires this.
63529         * lib/strptime.c (strptime): Likewise.
63530         Change license notice from LGPL to GPL, since gnulib-tool will
63531         change this as needed.
63532         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
63533         defined.
63534         Include "strptime.h" first, to check interface.
63535         Do not #undef _LIBC and _NL_CURRENT.
63536         Do not include <stdlib.h>; no longer needed.
63537         Include "time_r.h" and declare ptime_locale_status
63538         only if _LIBC is not defined.
63539         (__P): Remove unused macro.
63540         (match_string): Bring back glibc version, but use it only if _LIBC
63541         is defined.
63542         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
63543         Remove unnecessary assertion and abort() call.
63544         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
63545         * m4/strptime.m4: Fix serial number comment.
63546         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
63547         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
63548         (Depends-on): Add time_r.
63549
63550 2007-01-29  Bruno Haible  <bruno@clisp.org>
63551
63552         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
63553         strptime.
63554         * modules/strptime (Depends-on): Add stdbool.
63555         * lib/strptime.h: Include <time.h> always. Add comments.
63556
63557 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
63558
63559         * modules/strptime: New file.
63560         * lib/strptime.h: New file.
63561         * lib/strptime.c: New file.
63562         * m4/strptime.m4: New file.
63563
63564 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
63565
63566         * MODULES.html.sh: New module mpsort.
63567         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
63568
63569         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
63570         a circularity problem with HP-UX ia64 reported by Bob Proulx in
63571         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
63572         All uses changed.
63573         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
63574         All uses changed.
63575         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
63576         to _Restrict_.
63577         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
63578         the parameter matches the prototype.
63579
63580 2007-01-28  Jim Meyering  <jim@meyering.net>
63581
63582         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
63583         sys/time.h here, reverting that part of the previous patch:
63584         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
63585
63586 2007-01-28  Bruno Haible  <bruno@clisp.org>
63587
63588         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
63589         value of $(SYS_TIME_H).
63590         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
63591         remove it conditionally, too. [added by Jim Meyering]
63592         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
63593         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
63594         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
63595         GETTIMEOFDAY_REPLACEMENT to 1.
63596
63597 2007-01-28  Bruno Haible  <bruno@clisp.org>
63598
63599         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
63600         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
63601         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
63602         Set UNISTD_H instead of UNISTD_H2.
63603         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
63604
63605 2007-01-28  Bruno Haible  <bruno@clisp.org>
63606
63607         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
63608         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
63609
63610 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63611
63612         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
63613         (func_create_testdir): Ensure C locale for `grep' and `tr'
63614         character ranges.
63615         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
63616         ACLOCAL_AMFLAGS parsing state machine.
63617
63618 2007-01-27  Bruno Haible  <bruno@clisp.org>
63619
63620         * modules/unistr/base: Update.
63621
63622 2007-01-27  Bruno Haible  <bruno@clisp.org>
63623
63624         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
63625         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
63626         * modules/unistr/u32-mbtouc-unsafe: Renamed from
63627         modules/unistr/u32-mbtouc.
63628         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
63629         * lib/unistr.h: Update.
63630         * lib/linebreak.c: Update.
63631         * modules/unistr/u32-mbtouc: Renamed from
63632         modules/unistr/u32-mbtouc-safe.
63633         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
63634         * lib/unistr.h: Update.
63635         * lib/unistr/u32-to-u8.c: Update.
63636         * lib/unistr/u32-to-u16.c: Update.
63637
63638 2007-01-27  Bruno Haible  <bruno@clisp.org>
63639
63640         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
63641         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
63642         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
63643         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
63644         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
63645         * modules/unistr/u16-mbtouc-unsafe: Renamed from
63646         modules/unistr/u16-mbtouc.
63647         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
63648         * lib/unistr.h: Update.
63649         * lib/linebreak.c: Update.
63650         * modules/linebreak: Update.
63651         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
63652         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
63653         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
63654         * modules/unistr/u16-mbtouc: Renamed from
63655         modules/unistr/u16-mbtouc-safe.
63656         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
63657         * lib/unistr.h: Update.
63658         * lib/unistr/u16-to-u8.c: Update.
63659         * modules/unistr/u16-to-u8: Update.
63660         * lib/unistr/u16-to-u32.c: Update.
63661         * modules/unistr/u16-to-u32: Update.
63662
63663 2007-01-27  Bruno Haible  <bruno@clisp.org>
63664
63665         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
63666         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
63667         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
63668         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
63669         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
63670         * modules/unistr/u8-mbtouc-unsafe: Renamed from
63671         modules/unistr/u8-mbtouc.
63672         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
63673         * lib/unistr.h: Update.
63674         * lib/striconveh.c: Update.
63675         * modules/striconveh: Update.
63676         * lib/linebreak.c: Update.
63677         * modules/linebreak: Update.
63678         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
63679         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
63680         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
63681         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
63682         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
63683         * lib/unistr.h: Update.
63684         * lib/striconveh.c: Update.
63685         * modules/striconveh: Update.
63686         * lib/unistr/u8-to-u16.c: Update.
63687         * modules/unistr/u8-to-u16: Update.
63688         * lib/unistr/u8-to-u32.c: Update.
63689         * modules/unistr/u8-to-u32: Update.
63690
63691 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63692
63693         Sync from Libtool.
63694         * lib/argz.c: Do not include strings.h nor memory.h, include
63695         string.h unconditionally.  Patch by Simon Josefsson.
63696
63697 2007-01-27  Bruno Haible  <bruno@clisp.org>
63698
63699         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
63700         from gl_HEADER_STRING_H_BODY.
63701         (gl_HEADER_STRING_H_BODY): Require it.
63702         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
63703         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
63704         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
63705         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
63706         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
63707         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
63708         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
63709         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
63710         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
63711         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
63712         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
63713         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
63714         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
63715         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
63716         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
63717
63718 2007-01-27  Bruno Haible  <bruno@clisp.org>
63719
63720         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
63721         check_PROGRAMS into noinst_PROGRAMS.
63722         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
63723         check_PROGRAMS in this case.
63724         (func_import): Set for_test to false.
63725         (func_create_testdir): Set for_test to true.
63726
63727 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
63728             Bruno Haible  <bruno@clisp.org>
63729
63730         * modules/strcasestr (Files): Remove lib/strcasestr.h.
63731         (Depends-on): Add string.
63732         (Includes): Use <string.h> instead of strcasestr.h.
63733         * modules/string (Makefile.am): Also substitute the value of
63734         REPLACE_STRCASESTR.
63735         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
63736         assume strcasestr is declared in <string.h> not <strings.h>. Also
63737         set REPLACE_STRCASESTR.
63738         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
63739         REPLACE_STRCASESTR.
63740         * lib/strcasestr.h: Remove file.
63741         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
63742         * lib/string_.h (strcasestr): New declaration.
63743
63744 2007-01-27  Bruno Haible  <bruno@clisp.org>
63745
63746         * lib/string_.h: Use 'extern'.
63747
63748 2007-01-27  Jim Meyering  <jim@meyering.net>
63749
63750         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
63751         of set-but-not-used local, "q".
63752
63753         * lib/mempcpy.c: Include <config.h> before <string.h>.
63754         This fixes a compilation error on HP-UX, due to the system's
63755         "restrict"-using mempcpy prototype.
63756
63757 2007-01-26  Bruno Haible  <bruno@clisp.org>
63758
63759         Small optimization.
63760         * lib/javacomp.c: Include c-strstr.h.
63761          (is_envjavac_gcj): Use c_strstr instead of strstr.
63762         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
63763
63764 2007-01-26  Bruno Haible  <bruno@clisp.org>
63765
63766         * MODULES.html.sh (Unicode string functions): Add the new modules.
63767
63768         * modules/uniconv/u32-strconv-to-locale: New file.
63769         * lib/uniconv/u32-strconv-to-locale.c: New file.
63770
63771         * modules/uniconv/u16-strconv-to-locale: New file.
63772         * lib/uniconv/u16-strconv-to-locale.c: New file.
63773
63774         * modules/uniconv/u8-strconv-to-locale: New file.
63775         * lib/uniconv/u8-strconv-to-locale.c: New file.
63776
63777         * modules/uniconv/u32-strconv-from-locale: New file.
63778         * lib/uniconv/u32-strconv-from-locale.c: New file.
63779
63780         * modules/uniconv/u16-strconv-from-locale: New file.
63781         * lib/uniconv/u16-strconv-from-locale.c: New file.
63782
63783         * modules/uniconv/u8-strconv-from-locale: New file.
63784         * lib/uniconv/u8-strconv-from-locale.c: New file.
63785
63786         * modules/uniconv/u32-strconv-to-enc: New file.
63787         * lib/uniconv/u32-strconv-to-enc.c: New file.
63788         * modules/uniconv/u32-strconv-to-enc-tests: New file.
63789         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
63790
63791         * modules/uniconv/u16-strconv-to-enc: New file.
63792         * lib/uniconv/u16-strconv-to-enc.c: New file.
63793         * lib/uniconv/u-strconv-to-enc.h: New file.
63794         * modules/uniconv/u16-strconv-to-enc-tests: New file.
63795         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
63796
63797         * modules/uniconv/u8-strconv-to-enc: New file.
63798         * lib/uniconv/u8-strconv-to-enc.c: New file.
63799         * modules/uniconv/u8-strconv-to-enc-tests: New file.
63800         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
63801
63802         * modules/uniconv/u32-strconv-from-enc: New file.
63803         * lib/uniconv/u32-strconv-from-enc.c: New file.
63804         * modules/uniconv/u32-strconv-from-enc-tests: New file.
63805         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
63806
63807         * modules/uniconv/u16-strconv-from-enc: New file.
63808         * lib/uniconv/u16-strconv-from-enc.c: New file.
63809         * modules/uniconv/u16-strconv-from-enc-tests: New file.
63810         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
63811
63812         * modules/uniconv/u8-strconv-from-enc: New file.
63813         * lib/uniconv/u8-strconv-from-enc.c: New file.
63814         * lib/uniconv/u-strconv-from-enc.h: New file.
63815         * modules/uniconv/u8-strconv-from-enc-tests: New file.
63816         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
63817
63818         * modules/uniconv/u32-conv-from-enc: New file.
63819         * lib/uniconv/u32-conv-from-enc.c: New file.
63820         * modules/uniconv/u32-conv-from-enc-tests: New file.
63821         * tests/uniconv/test-u32-conv-from-enc.c: New file.
63822
63823         * modules/uniconv/u16-conv-from-enc: New file.
63824         * lib/uniconv/u16-conv-from-enc.c: New file.
63825         * lib/uniconv/u-conv-from-enc.h: New file.
63826         * modules/uniconv/u16-conv-from-enc-tests: New file.
63827         * tests/uniconv/test-u16-conv-from-enc.c: New file.
63828
63829         * modules/uniconv/u8-conv-from-enc: New file.
63830         * lib/uniconv/u8-conv-from-enc.c: New file.
63831         * modules/uniconv/u8-conv-from-enc-tests: New file.
63832         * tests/uniconv/test-u8-conv-from-enc.c: New file.
63833
63834         * modules/uniconv/base: New file.
63835         * lib/uniconv.h: New file.
63836
63837 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
63838
63839         * doc/gnulib-tool.texi (Initial import): Update to match current
63840         behavior with strdup module.
63841         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
63842         * lib/memmem.h: Remove; all uses removed.  This is now done
63843         by <string.h>.
63844         * lib/mempcpy.h: Likewise.
63845         * lib/memrchr.h: Likewise.
63846         * lib/stpcpy.h: Likewise.
63847         * lib/stpncpy.h: Likewise.
63848         * lib/strcase.h: Likewise.
63849         * lib/strchrnul.h: Likewise.
63850         * lib/strdup.h: Likewise.
63851         * lib/strndup.h: Likewise.
63852         * lib/strnlen.h: Likewise.
63853         * lib/strpbrk.h: Likewise.
63854         * lib/strsep.h: Likewise.
63855         * lib/strstr.h: Likewise.
63856         * lib/strtok_r.h: Likewise.
63857         * lib/string_.h: New file.
63858         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
63859         Rely on <string.h> instead.
63860         * lib/canon-host.c: Likewise.
63861         * lib/chdir-long.c: Likewise.
63862         * lib/concatpath.c: Likewise.
63863         * lib/exclude.c: Likewise.
63864         * lib/fchdir.c: Likewise.
63865         * lib/getaddrinfo.c: Likewise.
63866         * lib/getcwd.c: Likewise.
63867         * lib/getsubopt.c: Likewise.
63868         * lib/glob.c: Likewise.
63869         * lib/hard-locale.c: Likewise.
63870         * lib/iconvme.c: Likewise.
63871         * lib/javacomp.c: Likewise.
63872         * lib/mempcpy.c: Likewise.
63873         * lib/memrchr.c: Likewise.
63874         * lib/regex_internal.h: Likewise.
63875         * lib/stpncpy.c: Likewise.
63876         * lib/strcasecmp.c: Likewise.
63877         * lib/strchrnul.c: Likewise.
63878         * lib/strdup.c: Likewise.
63879         * lib/striconv.c: Likewise.
63880         * lib/striconveh.c: Likewise.
63881         * lib/striconveha.c: Likewise.
63882         * lib/strncasecmp.c: Likewise.
63883         * lib/strndup.c: Likewise.
63884         * lib/strnlen.c: Likewise.
63885         * lib/strsep.c: Likewise.
63886         * lib/strstr.c: Likewise.
63887         * lib/strtok_r.c: Likewise.
63888         * lib/userspec.c: Likewise.
63889         * lib/w32spawn.h: Likewise.
63890         * lib/xstrndup.c: Likewise.
63891         * lib/mountlist.c (strstr): Remove decl.
63892         * m4/string_h.m4: New file.
63893         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
63894         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
63895         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
63896         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
63897         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
63898         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
63899         Set REPLACE_STRCASECMP if necessary.
63900         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
63901         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
63902         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
63903         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
63904         HAVE_DECL_STRDUP if necessary.
63905         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
63906         since gl_FUNC_STRNDUP does that now.
63907         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
63908         Check for decl here...
63909         (gl_PREREQ_STRNLEN): ... not here.
63910         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
63911         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
63912         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
63913         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
63914         necessary.
63915         * modules/string: New file.
63916         * modules/memmem (Files): Remove special-purpose include file.
63917         (Depends-on): Add string.
63918         (Include): Include <string.h>, not the removed file.
63919         * modules/mempcpy: Likewise.
63920         * modules/memrchr: Likewise.
63921         * modules/stpcpy: Likewise.
63922         * modules/stpncpy: Likewise.
63923         * modules/strcase: Likewise.
63924         * modules/strchrnul: Likewise.
63925         * modules/strdup: Likewise.
63926         * modules/strndup: Likewise.
63927         * modules/strnlen: Likewise.
63928         * modules/strpbrk: Likewise.
63929         * modules/strsep: Likewise.
63930         * modules/strstr: Likewise.
63931         * modules/strtok_r: Likewise.
63932         * tests/test-dirname.c: Don't include "strdup.h", since
63933         <string.h> now suffices.
63934         * tests/test-memmem.c: Don't include "memmem.h", since
63935         <string.h> now suffices.
63936
63937 2007-01-25  Bruno Haible  <bruno@clisp.org>
63938
63939         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
63940         *resultp is 0.
63941
63942         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
63943         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
63944         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
63945         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
63946
63947         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
63948         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
63949         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
63950         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
63951         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
63952         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
63953
63954 2007-01-24  Bruno Haible  <bruno@clisp.org>
63955
63956         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
63957         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
63958         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
63959         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
63960         gl_FUNC_FTS_CORE.
63961         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
63962         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
63963         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
63964         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
63965         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
63966         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
63967         gl_FUNC_FCHOWNAT.
63968         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
63969         gl_FUNC_STRFTIME.
63970         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
63971         Reported by Ralf Wildenhues.
63972
63973 2007-01-24  Bruno Haible  <bruno@clisp.org>
63974
63975         Drop AC_REQUIRE calls that are redundant with the module dependencies.
63976         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
63977         gl_GETADDRINFO.
63978         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
63979         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
63980         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
63981
63982 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
63983
63984         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
63985         Don't use 'exit'; just return from 'main'.
63986         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
63987
63988         * lib/fnmatch_.h: Readjust white space and comments to match
63989         glibc, to avoid spurious diffs.
63990
63991 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
63992
63993         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
63994         2004-12-01 change by Jakub Jelinek, since this code won't compile
63995         if !LIBC.  Problem reported by Bob Proulx.
63996
63997 2007-01-23  Bruno Haible  <bruno@clisp.org>
63998
63999         * lib/striconveh.c: Include c-strcaseeq.h.
64000         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
64001         * modules/striconveh (Depends-on): Add c-strcaseeq.
64002
64003 2007-01-23  Bruno Haible  <bruno@clisp.org>
64004
64005         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
64006
64007         * modules/c-strcaseeq: New file.
64008         * lib/c-strcaseeq.h: New file.
64009
64010         * modules/streq: New file.
64011         * lib/streq.h: New file.
64012
64013 2007-01-23  Bruno Haible  <bruno@clisp.org>
64014
64015         * modules/striconveha-tests: New file.
64016         * tests/test-striconveha.c: New file.
64017
64018         * lib/striconveha.h: Include <stdbool.h>.
64019         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
64020         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
64021         (mem_iconveha_notranslit): Renamed from mem_iconveha.
64022         (mem_iconveha): New function.
64023         (str_iconveha_notranslit): Renamed from str_iconveha.
64024         (str_iconveha): New function.
64025         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
64026         c-strcase.
64027
64028 2007-01-23  Bruno Haible  <bruno@clisp.org>
64029
64030         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
64031         encodings without forgiving before trying any encoding with handler.
64032         (str_iconveha): Try all encodings without forgiving before trying any
64033         encoding with handler.
64034
64035 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
64036
64037         Import the following changes from libc.
64038
64039         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
64040
64041         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
64042
64043         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
64044
64045         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
64046         normal_bracket label.
64047
64048         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
64049
64050         [BZ #361]
64051         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
64052         to normal_bracket after fetching the next character.
64053
64054 2007-01-22  Bruno Haible  <bruno@clisp.org>
64055
64056         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
64057         argument.
64058         * lib/striconveh.c (iconv_carefully_1): New function.
64059         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
64060         argument.
64061         (str_cd_iconveh): Update.
64062         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
64063         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
64064         * tests/test-striconveh.c (MAGIC): New macro.
64065         (new_offsets): New function.
64066         (main): Test call with and without offsets.
64067
64068 2007-01-22  Bruno Haible  <bruno@clisp.org>
64069
64070         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
64071         * modules/sys_select (Makefile.am): Likewise.
64072         * modules/sys_socket (Makefile.am): Likewise.
64073         * modules/sys_time (Makefile.am): Likewise.
64074
64075 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
64076
64077         * modules/gettimeofday (License): Change from GPL to LGPL, since
64078         gettimeofday is a library function.
64079
64080 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
64081
64082         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
64083
64084 2007-01-21  Bruno Haible  <bruno@clisp.org>
64085
64086         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
64087
64088 2007-01-21  Bruno Haible  <bruno@clisp.org>
64089
64090         * modules/striconveha: New file.
64091         * lib/striconveha.h: New file.
64092         * lib/striconveha.c: New file.
64093         * MODULES.html.sh (Internationalization functions): Add striconveha.
64094         * lib/striconv.c (str_iconv): Optimize the case of an empty input
64095         string.
64096         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
64097
64098 2007-01-21  Bruno Haible  <bruno@clisp.org>
64099
64100         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
64101         * lib/striconveh.c (str_iconveh): Likewise.
64102
64103 2007-01-21  Bruno Haible  <bruno@clisp.org>
64104
64105         * lib/striconveh.h (mem_iconveh): New declaration.
64106         * lib/striconveh.c (mem_iconveh): New function.
64107         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
64108
64109 2007-01-21  Bruno Haible  <bruno@clisp.org>
64110
64111         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
64112
64113         * lib/striconveh.h (mem_cd_iconveh): Change specification.
64114         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
64115         original result buffer.
64116         (str_cd_iconveh): Update.
64117         * tests/test-striconveh.c (main): Update.
64118
64119         * lib/striconv.h (mem_cd_iconv): Change specification.
64120         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
64121         result buffer.
64122         (str_cd_iconv): Update.
64123         * tests/test-striconv.c (main): Update.
64124
64125 2007-01-21  Bruno Haible  <bruno@clisp.org>
64126
64127         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
64128
64129 2007-01-20  Jim Meyering  <jim@meyering.net>
64130
64131         * lib/userspec.c (parse_with_separator): If a user or group string
64132         starts with "+", skip the corresponding name-to-ID look-up, since
64133         such a look-up must fail: user and group names may not include "+".
64134
64135 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
64136
64137         * lib/poll.c: Include sys/time.h and time.h unconditionally,
64138         since we now assume the sys_time module.
64139         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
64140         check for sys/time.h; no longer needed.
64141         * modules/poll (Depends-on): Depend on sys_time.
64142
64143 2007-01-18  Bruno Haible  <bruno@clisp.org>
64144
64145         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
64146         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
64147
64148         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
64149         gettimeofday.
64150
64151         * tests/test-gettimeofday.c: Include <time.h>.
64152         (dummy): Remove variable.
64153
64154         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
64155         gl_HEADER_SYS_TIME_H.
64156         (gl_HEADER_SYS_TIME_H): New macro.
64157
64158         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
64159         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
64160         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
64161         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
64162         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
64163         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
64164         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
64165         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
64166         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
64167         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
64168         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
64169
64170         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
64171         last change; it caused a compilation error when cross-compiling to
64172         Cygwin.
64173
64174 2007-01-18  Jim Meyering  <jim@meyering.net>
64175
64176         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
64177         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
64178         than the race-prone "test -d sys || mkdir sys".
64179         (configure.ac): Use AC_PROG_MKDIR_P.
64180         * modules/sys_select: Likewise.
64181         * modules/sys_socket: Likewise.
64182         * modules/sys_time: Likewise.
64183
64184 2007-01-18  Eric Blake  <ebb9@byu.net>
64185
64186         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
64187         replace gettimeofday.
64188         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
64189         name, to avoid infinite recursion.
64190
64191 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
64192
64193         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
64194         module sys_time.
64195         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
64196         assume timespec.h defines struct timeval.
64197         * lib/settime.c: Likewise.
64198         * lib/utimens.c: Likewise.
64199         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
64200         since we now assume the gettimeofday module.
64201         * lib/tempname.c (__gen_tempname): Likewise.
64202         * lib/gettimeofday.h: Remove.
64203         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
64204         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
64205         Include <time.h>, for 'time()'.
64206         (localtime_buffer_addr): Also use this workaround if
64207         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
64208         to simplify the uses.  All uses changed.
64209         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
64210         that #undef is inside {}, and 'const' follows type name consistently.
64211         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
64212         (gettimeofday): Do not use the maximum possible value for
64213         tv->tv_usec, since that might break usages other than ls.c.
64214         Instead, we'll leave ls.c alone.  This undoes today's patch
64215         by Bruno.  Add a compile-time warning for 1s-clock resolution;
64216         we've never observed the problem but might as well keep the
64217         canary.
64218         * lib/nanosleep.c: Include timespec.h first, for interface check.
64219         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
64220         now assume the sys_time module.
64221         * lib/tempname.c: Likewise.
64222         * lib/timespec.h: Likewise.
64223         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
64224         needed.
64225         * lib/strftime.c: Likewise.
64226         * lib/timespec.h: Likewise.
64227         * lib/posixtm.c: Include posixtm.h first, for interface check.
64228         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
64229         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
64230         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
64231         * lib/sys_time_.h: New file.
64232         * lib/timespec.h (struct timespec): Use long int, not long.
64233         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
64234         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
64235         Remove obsolescent call to AC_HEADER_TIME.
64236         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
64237         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
64238         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
64239         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
64240         Likewise.
64241         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
64242         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
64243         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
64244         into the sys_time module.  Check for gettimeofday just once.
64245         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
64246         for gettimeofday signature to just check the signature.  Merely
64247         compile it, since linking doesn't test signature.  Improve test for
64248         whether gettimeofday.o is actually needed.
64249         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
64250         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
64251         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
64252         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
64253         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
64254         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
64255         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
64256         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
64257         than worrying about sys/time.h.
64258         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
64259         Don't bother worrying about TIME_WITH_SYS_TIME.
64260         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
64261         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
64262         * m4/sys_time_h.m4: New file.
64263         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
64264         Don't include sys/time.h.  Return from main rather than exiting.
64265         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
64266         all uses changed.
64267         * modules/gethrxtime (Depends-on): Add sys_time.
64268         * modules/gettime (Depends-on): Likewise.
64269         * modules/gettimeofday (Depends-on): Likewise.
64270         * modules/nanosleep (Depends-on): Likewise.
64271         * modules/settime (Depends-on): Likewise.
64272         * modules/tempname (Depends-on): Likewise.
64273         * modules/utimens (Depends-on): Likewise.
64274         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
64275         (Include): Change back to <sys/time.h>.
64276         (Maintainer): Add self.
64277         * modules/sys_time: New file.
64278         * modules/tempname (Depends-on): Add gettimeofday.
64279         * tests/test-gettimeofday.c: Include <sys/time.h>
64280         rather than gettimeofday.h.
64281
64282 2007-01-17  Bruno Haible  <bruno@clisp.org>
64283
64284         * gnulib-tool (func_get_license): Revert last patch. Instead, let
64285         the license default to GPL.
64286         (func_create_testdir): Don't complain if a module is LGPL and its
64287         tests module depends on GPLed modules.
64288
64289 2007-01-17  Bruno Haible  <bruno@clisp.org>
64290
64291         * lib/gettimeofday.c (gettimeofday): Add code for the case
64292         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
64293         maximum possible value for tv->tv_usec, rather than the minimum one.
64294
64295 2005-10-08  Martin Lambers  <marlam@marlam.de>
64296 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
64297 2007-01-16  Bruno Haible  <bruno@clisp.org>
64298
64299         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
64300         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
64301         gl_FUNC_GETTIMEOFDAY.
64302         (Include): Add gettimeofday.h.
64303         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
64304         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
64305         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
64306         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
64307         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
64308         * lib/gettimeofday.h: New file.
64309         * lib/gettimeofday.c: Include <sys/timeb.h>.
64310         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
64311         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
64312         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
64313         fall back on time().
64314
64315         * tests/test-gettimeofday.c: New file.
64316         * modules/gettimeofday-tests: New file.
64317
64318 2007-01-16  Eric Blake  <ebb9@byu.net>
64319
64320         * modules/fnmatch (Depends-on): Depend on wchar.
64321         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
64322         * m4/fnmatch.m4: Likewise.
64323         * modules/mbchar (Makefile.am): Assume <wchar.h>.
64324         * m4/mbchar.m4: Likewise.
64325         * modules/mbswidth (Depends-on): Depend on wchar.
64326         * lib/mbswidth.c: Assume <wchar.h>.
64327         * m4/mbswidth.m4: Likewise.
64328         * modules/quotearg (Depends-on): Depend on wchar.
64329         * lib/quotearg.c: Assume <wchar.h>.
64330         * m4/quotearg.m4: Likewise.
64331         * modules/regex (Depends-on): Depend on wchar.
64332         * lib/regex_internal.h: Assume <wchar.h>.
64333         * m4/regex.m4: Likewise.
64334         * modules/stdint (Depends-on): Depend on wchar.
64335         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
64336         * m4/stdint.m4: Likewise.
64337         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
64338         * modules/strftime (Depends-on): Depend on wchar.
64339         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
64340         * modules/strtol (Depends-on): Depend on wchar.
64341         * lib/strtol.c: Assume <wchar.h>.
64342         * modules/wcwidth (Depends-on): Depend on wchar.
64343         * lib/wcwidth.h: Assume <wchar.h>.
64344         * m4/wcwidth.m4: Likewise.
64345
64346 2007-01-16  Bruno Haible  <bruno@clisp.org>
64347
64348         * modules/csharpexec-script: New, created from...
64349         * modules/csharpexec: ... this.
64350
64351 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
64352
64353         * modules/javaexec-script: New, created from...
64354         * modules/javaexec: ... this.
64355
64356 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
64357
64358         * modules/poll (Dependencies): Add sys_select.
64359
64360 2007-01-15  Jim Meyering  <jim@meyering.net>
64361
64362         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
64363         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
64364         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
64365         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
64366
64367 2007-01-15  Bruno Haible  <bruno@clisp.org>
64368
64369         * modules/striconveh: New file.
64370         * lib/striconveh.h: New file.
64371         * lib/striconveh.c: New file.
64372         * MODULES.html.sh (Internationalization functions): Add striconveh.
64373
64374         * modules/striconveh-tests: New file.
64375         * tests/test-striconveh.c: New file.
64376
64377 2007-01-15  Bruno Haible  <bruno@clisp.org>
64378
64379         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
64380         not from GNU libiconv or GNU libc.
64381
64382 2007-01-15  Bruno Haible  <bruno@clisp.org>
64383
64384         * doc/gnulib-intro.texi (Copyright): Explain the different license
64385         terms for module descriptions, autoconf macros, tests, documentation.
64386
64387 2007-01-14  Bruno Haible  <bruno@clisp.org>
64388
64389         * modules/striconv-tests: New file.
64390         * tests/test-striconv.c: New file.
64391
64392 2007-01-14  Bruno Haible  <bruno@clisp.org>
64393
64394         * modules/iconv-tests: New file.
64395         * tests/test-iconv.c: New file.
64396
64397 2007-01-14  Bruno Haible  <bruno@clisp.org>
64398
64399         * gnulib-tool (func_get_license): For test modules, use the license of
64400         the main module.
64401
64402 2007-01-14  Bruno Haible  <bruno@clisp.org>
64403
64404         * modules/iconv (Include): Clarify that <iconv.h> can only be included
64405         if iconv is found to exist.
64406
64407 2007-01-14  Bruno Haible  <bruno@clisp.org>
64408
64409         * modules/c-ctype-tests: New file.
64410         * tests/test-c-ctype.c: New file.
64411
64412 2007-01-14  Bruno Haible  <bruno@clisp.org>
64413
64414         * modules/binary-io-tests: New file.
64415         * tests/test-binary-io.sh: New file.
64416         * tests/test-binary-io.c: New file.
64417
64418 2007-01-14  Bruno Haible  <bruno@clisp.org>
64419
64420         * modules/array-oset-tests: New file.
64421         * tests/test-array_oset.c: New file.
64422
64423 2007-01-14  Bruno Haible  <bruno@clisp.org>
64424
64425         * modules/array-list-tests: New file.
64426         * tests/test-array_list.c: New file.
64427
64428 2007-01-14  Bruno Haible  <bruno@clisp.org>
64429
64430         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
64431         and make.
64432         Reported by Simon Josefsson in
64433         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
64434
64435 2007-01-14  Bruno Haible  <bruno@clisp.org>
64436
64437         * modules/allocsa-tests: New file.
64438         * tests/test-allocsa.c: New file.
64439
64440 2007-01-14  Bruno Haible  <bruno@clisp.org>
64441
64442         * modules/fchdir (Depends-on): Add absolute-header.
64443         * modules/unistd (Depends-on): Likewise.
64444
64445 2006-12-30  Bruno Haible  <bruno@clisp.org>
64446
64447         * modules/fchdir: New file.
64448         * modules/unistd (Files): Add lib/unistd_.h.
64449         (Makefile.am): Generate unistd.h from unistd_.h.
64450         * lib/fchdir.c: New file.
64451         * lib/dirent_.h: New file.
64452         * lib/unistd_.h: New file.
64453         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
64454         * m4/fchdir.m4: New file.
64455         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
64456         (gl_HEADER_UNISTD): Invoke it.
64457         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
64458         function.
64459         * lib/backupfile.c (opendir, closedir): Undefine.
64460         * lib/chown.c (open, close): Undefine.
64461         * lib/clean-temp.c (open, close): Undefine.
64462         * lib/copy-file.c (open, close): Undefine.
64463         * lib/execute.c (open, close): Undefine.
64464         * lib/fsusage.c (open, close): Undefine.
64465         * lib/gc-gnulib.c (open, close): Undefine.
64466         * lib/getcwd.c (opendir, closedir): Undefine.
64467         * lib/glob.c (opendir, closedir): Undefine.
64468         * lib/javacomp.c (open, close): Undefine.
64469         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
64470         * lib/openat-proc.c (open, close): Undefine.
64471         * lib/pagealign_alloc.c (open, close): Undefine.
64472         * lib/pipe.c (open, close): Undefine.
64473         * lib/progreloc.c (open, close): Undefine.
64474         * lib/savedir.c (opendir, closedir): Undefine.
64475         * lib/utime.c (open, close): Undefine.
64476         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
64477
64478 2007-01-10  Bruno Haible  <bruno@clisp.org>
64479
64480         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
64481
64482 2007-01-12  Eric Blake  <ebb9@byu.net>
64483
64484         Provide a robust <wchar.h>.  Further simplifications are now
64485         possible in other modules, but not included here.
64486         * modules/wchar: New module.
64487         * m4/wchar.m4: New file.
64488         * lib/wchar_.h: Likewise.
64489         * modules/mbchar (Depends-on): Depend on wchar, as the first use
64490         of the new module.
64491         * MODULES.html.sh (Extended multibyte and wide character utilities):
64492         New section.
64493
64494 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
64495
64496         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
64497         to a reasonable default for memory allocation.
64498         (xreadlink): Don't allocate a huge buffer, to work around a buggy
64499         file system that reports garbage st_size values for symlinks.
64500         Problem reported by Liyang Hu.
64501
64502 2007-01-11  Simon Josefsson  <simon@josefsson.org>
64503
64504         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
64505         Emacs .#* auto-save files).
64506
64507 2007-01-11  Bruno Haible  <bruno@clisp.org>
64508
64509         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
64510         directory.
64511
64512 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
64513
64514         Use @...@ consistently in lib/wctype_.h.
64515         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
64516         on it being set to 1 or 0.
64517         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
64518         go back to AC_SUBSTing it.
64519         * modules/wctype (Makefile.am): Undo previous change.
64520
64521 2007-01-10  Eric Blake  <ebb9@byu.net>
64522
64523         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
64524         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
64525         * modules/wctype (Makefile.am): Likewise.
64526         Reported by Chris McGuire.
64527
64528 2007-01-10  Jim Meyering  <jim@meyering.net>
64529
64530         fts.c: a small readability/maintainability improvement
64531         * lib/fts.c (fts_read): Make this code slightly more readable and
64532         maintainable by hoisting the "sp->fts_cur = p" assignments to
64533         immediately follow the statements that set P.  Derived from
64534         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
64535
64536 2007-01-10  Eric Blake  <ebb9@byu.net>
64537
64538         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
64539         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
64540         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
64541         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
64542         Reported by Chris McGuire.
64543
64544 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64545
64546         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
64547         in sed script.
64548
64549 2007-01-09  Bruno Haible  <bruno@clisp.org>
64550
64551         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
64552         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
64553         variables.
64554         (func_module): Use them.
64555
64556 2007-01-09  Bruno Haible  <bruno@clisp.org>
64557
64558         * modules/unistr/base: New file.
64559         * lib/unistr.h: New file.
64560
64561         * modules/unistr/u8-to-u16: New file.
64562         * lib/unistr/u8-to-u16.c: New file.
64563
64564         * modules/unistr/u8-to-u32: New file.
64565         * lib/unistr/u8-to-u32.c: New file.
64566
64567         * modules/unistr/u16-to-u8: New file.
64568         * lib/unistr/u16-to-u8.c: New file.
64569
64570         * modules/unistr/u16-to-u32: New file.
64571         * lib/unistr/u16-to-u32.c: New file.
64572
64573         * modules/unistr/u32-to-u8: New file.
64574         * lib/unistr/u32-to-u8.c: New file.
64575
64576         * modules/unistr/u32-to-u16: New file.
64577         * lib/unistr/u32-to-u16.c: New file.
64578
64579         * modules/unistr/u8-check: New file.
64580         * modules/unistr/u16-check: New file.
64581         * modules/unistr/u32-check: New file.
64582         * lib/unistr/u8-check.c: New file.
64583         * lib/unistr/u16-check.c: New file.
64584         * lib/unistr/u32-check.c: New file.
64585
64586         * modules/unistr/u8-chr: New file.
64587         * modules/unistr/u16-chr: New file.
64588         * modules/unistr/u32-chr: New file.
64589         * lib/unistr/u8-chr.c: New file.
64590         * lib/unistr/u16-chr.c: New file.
64591         * lib/unistr/u32-chr.c: New file.
64592
64593         * modules/unistr/u8-cmp: New file.
64594         * modules/unistr/u16-cmp: New file.
64595         * modules/unistr/u32-cmp: New file.
64596         * lib/unistr/u8-cmp.c: New file.
64597         * lib/unistr/u16-cmp.c: New file.
64598         * lib/unistr/u32-cmp.c: New file.
64599
64600         * modules/unistr/u8-cpy: New file.
64601         * modules/unistr/u16-cpy: New file.
64602         * modules/unistr/u32-cpy: New file.
64603         * lib/unistr/u8-cpy.c: New file.
64604         * lib/unistr/u16-cpy.c: New file.
64605         * lib/unistr/u32-cpy.c: New file.
64606         * lib/unistr/u-cpy.h: New file.
64607
64608         * modules/unistr/u8-cpy-alloc: New file.
64609         * modules/unistr/u16-cpy-alloc: New file.
64610         * modules/unistr/u32-cpy-alloc: New file.
64611         * lib/unistr/u8-cpy-alloc.c: New file.
64612         * lib/unistr/u16-cpy-alloc.c: New file.
64613         * lib/unistr/u32-cpy-alloc.c: New file.
64614         * lib/unistr/u-cpy-alloc.h: New file.
64615
64616         * modules/unistr/u8-endswith: New file.
64617         * modules/unistr/u16-endswith: New file.
64618         * modules/unistr/u32-endswith: New file.
64619         * lib/unistr/u8-endswith.c: New file.
64620         * lib/unistr/u16-endswith.c: New file.
64621         * lib/unistr/u32-endswith.c: New file.
64622         * lib/unistr/u-endswith.h: New file.
64623
64624         * modules/unistr/u8-mblen: New file.
64625         * modules/unistr/u16-mblen: New file.
64626         * modules/unistr/u32-mblen: New file.
64627         * lib/unistr/u8-mblen.c: New file.
64628         * lib/unistr/u16-mblen.c: New file.
64629         * lib/unistr/u32-mblen.c: New file.
64630
64631         * modules/unistr/u8-mbtouc: New file.
64632         * modules/unistr/u16-mbtouc: New file.
64633         * modules/unistr/u32-mbtouc: New file.
64634         * lib/unistr/u8-mbtouc.c: New file.
64635         * lib/unistr/u16-mbtouc.c: New file.
64636         * lib/unistr/u32-mbtouc.c: New file.
64637
64638         * modules/unistr/u8-mbtouc-safe: New file.
64639         * modules/unistr/u16-mbtouc-safe: New file.
64640         * modules/unistr/u32-mbtouc-safe: New file.
64641         * lib/unistr/u8-mbtouc-safe.c: New file.
64642         * lib/unistr/u16-mbtouc-safe.c: New file.
64643         * lib/unistr/u32-mbtouc-safe.c: New file.
64644
64645         * modules/unistr/u8-move: New file.
64646         * modules/unistr/u16-move: New file.
64647         * modules/unistr/u32-move: New file.
64648         * lib/unistr/u8-move.c: New file.
64649         * lib/unistr/u16-move.c: New file.
64650         * lib/unistr/u32-move.c: New file.
64651         * lib/unistr/u-move.h: New file.
64652
64653         * modules/unistr/u8-next: New file.
64654         * modules/unistr/u16-next: New file.
64655         * modules/unistr/u32-next: New file.
64656         * lib/unistr/u8-next.c: New file.
64657         * lib/unistr/u16-next.c: New file.
64658         * lib/unistr/u32-next.c: New file.
64659
64660         * modules/unistr/u8-prev: New file.
64661         * modules/unistr/u16-prev: New file.
64662         * modules/unistr/u32-prev: New file.
64663         * lib/unistr/u8-prev.c: New file.
64664         * lib/unistr/u16-prev.c: New file.
64665         * lib/unistr/u32-prev.c: New file.
64666
64667         * modules/unistr/u8-set: New file.
64668         * modules/unistr/u16-set: New file.
64669         * modules/unistr/u32-set: New file.
64670         * lib/unistr/u8-set.c: New file.
64671         * lib/unistr/u16-set.c: New file.
64672         * lib/unistr/u32-set.c: New file.
64673         * lib/unistr/u-set.h: New file.
64674
64675         * modules/unistr/u8-startswith: New file.
64676         * modules/unistr/u16-startswith: New file.
64677         * modules/unistr/u32-startswith: New file.
64678         * lib/unistr/u8-startswith.c: New file.
64679         * lib/unistr/u16-startswith.c: New file.
64680         * lib/unistr/u32-startswith.c: New file.
64681         * lib/unistr/u-startswith.h: New file.
64682
64683         * modules/unistr/u8-stpcpy: New file.
64684         * modules/unistr/u16-stpcpy: New file.
64685         * modules/unistr/u32-stpcpy: New file.
64686         * lib/unistr/u8-stpcpy.c: New file.
64687         * lib/unistr/u16-stpcpy.c: New file.
64688         * lib/unistr/u32-stpcpy.c: New file.
64689         * lib/unistr/u-stpcpy.h: New file.
64690
64691         * modules/unistr/u8-stpncpy: New file.
64692         * modules/unistr/u16-stpncpy: New file.
64693         * modules/unistr/u32-stpncpy: New file.
64694         * lib/unistr/u8-stpncpy.c: New file.
64695         * lib/unistr/u16-stpncpy.c: New file.
64696         * lib/unistr/u32-stpncpy.c: New file.
64697         * lib/unistr/u-stpncpy.h: New file.
64698
64699         * modules/unistr/u8-strcat: New file.
64700         * modules/unistr/u16-strcat: New file.
64701         * modules/unistr/u32-strcat: New file.
64702         * lib/unistr/u8-strcat.c: New file.
64703         * lib/unistr/u16-strcat.c: New file.
64704         * lib/unistr/u32-strcat.c: New file.
64705         * lib/unistr/u-strcat.h: New file.
64706
64707         * modules/unistr/u8-strchr: New file.
64708         * modules/unistr/u16-strchr: New file.
64709         * modules/unistr/u32-strchr: New file.
64710         * lib/unistr/u8-strchr.c: New file.
64711         * lib/unistr/u16-strchr.c: New file.
64712         * lib/unistr/u32-strchr.c: New file.
64713
64714         * modules/unistr/u8-strcmp: New file.
64715         * modules/unistr/u16-strcmp: New file.
64716         * modules/unistr/u32-strcmp: New file.
64717         * lib/unistr/u8-strcmp.c: New file.
64718         * lib/unistr/u16-strcmp.c: New file.
64719         * lib/unistr/u32-strcmp.c: New file.
64720
64721         * modules/unistr/u8-strcpy: New file.
64722         * modules/unistr/u16-strcpy: New file.
64723         * modules/unistr/u32-strcpy: New file.
64724         * lib/unistr/u8-strcpy.c: New file.
64725         * lib/unistr/u16-strcpy.c: New file.
64726         * lib/unistr/u32-strcpy.c: New file.
64727         * lib/unistr/u-strcpy.h: New file.
64728
64729         * modules/unistr/u8-strcspn: New file.
64730         * modules/unistr/u16-strcspn: New file.
64731         * modules/unistr/u32-strcspn: New file.
64732         * lib/unistr/u8-strcspn.c: New file.
64733         * lib/unistr/u16-strcspn.c: New file.
64734         * lib/unistr/u32-strcspn.c: New file.
64735         * lib/unistr/u-strcspn.h: New file.
64736
64737         * modules/unistr/u8-strdup: New file.
64738         * modules/unistr/u16-strdup: New file.
64739         * modules/unistr/u32-strdup: New file.
64740         * lib/unistr/u8-strdup.c: New file.
64741         * lib/unistr/u16-strdup.c: New file.
64742         * lib/unistr/u32-strdup.c: New file.
64743         * lib/unistr/u-strdup.h: New file.
64744
64745         * modules/unistr/u8-strlen: New file.
64746         * modules/unistr/u16-strlen: New file.
64747         * modules/unistr/u32-strlen: New file.
64748         * lib/unistr/u8-strlen.c: New file.
64749         * lib/unistr/u16-strlen.c: New file.
64750         * lib/unistr/u32-strlen.c: New file.
64751         * lib/unistr/u-strlen.h: New file.
64752
64753         * modules/unistr/u8-strmblen: New file.
64754         * modules/unistr/u16-strmblen: New file.
64755         * modules/unistr/u32-strmblen: New file.
64756         * lib/unistr/u8-strmblen.c: New file.
64757         * lib/unistr/u16-strmblen.c: New file.
64758         * lib/unistr/u32-strmblen.c: New file.
64759
64760         * modules/unistr/u8-strmbtouc: New file.
64761         * modules/unistr/u16-strmbtouc: New file.
64762         * modules/unistr/u32-strmbtouc: New file.
64763         * lib/unistr/u8-strmbtouc.c: New file.
64764         * lib/unistr/u16-strmbtouc.c: New file.
64765         * lib/unistr/u32-strmbtouc.c: New file.
64766
64767         * modules/unistr/u8-strncat: New file.
64768         * modules/unistr/u16-strncat: New file.
64769         * modules/unistr/u32-strncat: New file.
64770         * lib/unistr/u8-strncat.c: New file.
64771         * lib/unistr/u16-strncat.c: New file.
64772         * lib/unistr/u32-strncat.c: New file.
64773         * lib/unistr/u-strncat.h: New file.
64774
64775         * modules/unistr/u8-strncmp: New file.
64776         * modules/unistr/u16-strncmp: New file.
64777         * modules/unistr/u32-strncmp: New file.
64778         * lib/unistr/u8-strncmp.c: New file.
64779         * lib/unistr/u16-strncmp.c: New file.
64780         * lib/unistr/u32-strncmp.c: New file.
64781
64782         * modules/unistr/u8-strncpy: New file.
64783         * modules/unistr/u16-strncpy: New file.
64784         * modules/unistr/u32-strncpy: New file.
64785         * lib/unistr/u8-strncpy.c: New file.
64786         * lib/unistr/u16-strncpy.c: New file.
64787         * lib/unistr/u32-strncpy.c: New file.
64788         * lib/unistr/u-strncpy.h: New file.
64789
64790         * modules/unistr/u8-strnlen: New file.
64791         * modules/unistr/u16-strnlen: New file.
64792         * modules/unistr/u32-strnlen: New file.
64793         * lib/unistr/u8-strnlen.c: New file.
64794         * lib/unistr/u16-strnlen.c: New file.
64795         * lib/unistr/u32-strnlen.c: New file.
64796         * lib/unistr/u-strnlen.h: New file.
64797
64798         * modules/unistr/u8-strpbrk: New file.
64799         * modules/unistr/u16-strpbrk: New file.
64800         * modules/unistr/u32-strpbrk: New file.
64801         * lib/unistr/u8-strpbrk.c: New file.
64802         * lib/unistr/u16-strpbrk.c: New file.
64803         * lib/unistr/u32-strpbrk.c: New file.
64804         * lib/unistr/u-strpbrk.h: New file.
64805
64806         * modules/unistr/u8-strrchr: New file.
64807         * modules/unistr/u16-strrchr: New file.
64808         * modules/unistr/u32-strrchr: New file.
64809         * lib/unistr/u8-strrchr.c: New file.
64810         * lib/unistr/u16-strrchr.c: New file.
64811         * lib/unistr/u32-strrchr.c: New file.
64812
64813         * modules/unistr/u8-strspn: New file.
64814         * modules/unistr/u16-strspn: New file.
64815         * modules/unistr/u32-strspn: New file.
64816         * lib/unistr/u8-strspn.c: New file.
64817         * lib/unistr/u16-strspn.c: New file.
64818         * lib/unistr/u32-strspn.c: New file.
64819         * lib/unistr/u-strspn.h: New file.
64820
64821         * modules/unistr/u8-strstr: New file.
64822         * modules/unistr/u16-strstr: New file.
64823         * modules/unistr/u32-strstr: New file.
64824         * lib/unistr/u8-strstr.c: New file.
64825         * lib/unistr/u16-strstr.c: New file.
64826         * lib/unistr/u32-strstr.c: New file.
64827         * lib/unistr/u-strstr.h: New file.
64828
64829         * modules/unistr/u8-strtok: New file.
64830         * modules/unistr/u16-strtok: New file.
64831         * modules/unistr/u32-strtok: New file.
64832         * lib/unistr/u8-strtok.c: New file.
64833         * lib/unistr/u16-strtok.c: New file.
64834         * lib/unistr/u32-strtok.c: New file.
64835         * lib/unistr/u-strtok.h: New file.
64836
64837         * modules/unistr/u8-uctomb: New file.
64838         * modules/unistr/u16-uctomb: New file.
64839         * modules/unistr/u32-uctomb: New file.
64840         * lib/unistr/u8-uctomb.c: New file.
64841         * lib/unistr/u16-uctomb.c: New file.
64842         * lib/unistr/u32-uctomb.c: New file.
64843
64844         * MODULES.html.sh (Unicode string functions): Add the new modules.
64845
64846 2007-01-08  Bruno Haible  <bruno@clisp.org>
64847
64848         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
64849         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
64850         subdirectories.
64851
64852 2007-01-08  Karl Berry  <karl@gnu.org>
64853
64854         * doc/error.texi: mention that main() fns must set program_name
64855         when progname is used.
64856
64857 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
64858
64859         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
64860         WCTYPE_H is empty, for the benefit of builds from non-distclean
64861         directories.  Problem reported by Eric Blake in
64862         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
64863
64864 2007-01-08  Bruno Haible  <bruno@clisp.org>
64865
64866         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
64867         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
64868         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
64869         PROVIDE_CANONICALIZE_FILENAME_MODE.
64870         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
64871
64872 2007-01-08  Bruno Haible  <bruno@clisp.org>
64873
64874         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
64875         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
64876         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
64877         * lib/fts.c: Likewise.
64878         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
64879
64880 2006-12-25  Bruno Haible  <bruno@clisp.org>
64881
64882         * modules/utf8-ucs4-safe: New file.
64883         * lib/utf8-ucs4-safe.h: New file.
64884         * lib/unistr/utf8-ucs4-safe.c: New file.
64885
64886         * modules/utf16-ucs4-safe: New file.
64887         * lib/utf16-ucs4-safe.h: New file.
64888         * lib/unistr/utf16-ucs4-safe.c: New file.
64889
64890         * MODULES.html.sh (Unicode string functions): Add the new modules.
64891
64892 2007-01-08  Bruno Haible  <bruno@clisp.org>
64893
64894         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
64895         (Depends-on): Add unitypes.
64896         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
64897         (u8_mbtouc_aux): Move out to separate file.
64898         (u8_mbtouc): Use ucs4_t, uint8_t types.
64899         * lib/unistr/utf8-ucs4.c: New file.
64900
64901         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
64902         (Depends-on): Add unitypes.
64903         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
64904         (u16_mbtouc_aux): Move out to separate file.
64905         (u16_mbtouc): Use ucs4_t, uint16_t types.
64906         * lib/unistr/utf16-ucs4.c: New file.
64907
64908         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
64909         (Depends-on): Add unitypes.
64910         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
64911         (u8_uctomb_aux): Move out to separate file.
64912         (u8_uctomb): Use ucs4_t, uint8_t types.
64913         * lib/unistr/ucs4-utf8.c: New file.
64914
64915         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
64916         (Depends-on): Add unitypes.
64917         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
64918         (u16_uctomb_aux): Move out to separate file.
64919         (u16_uctomb): Use ucs4_t, uint16_t types.
64920         * lib/unistr/ucs4-utf16.c: New file.
64921
64922 2006-12-25  Bruno Haible  <bruno@clisp.org>
64923
64924         * modules/unitypes: New file.
64925         * lib/unitypes.h: New file.
64926         * MODULES.html.sh (func_all_modules): New section "Unicode string
64927         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
64928         this section. Add unitypes.
64929
64930 2007-01-08  Bruno Haible  <bruno@clisp.org>
64931
64932         Avoid variable names that conflict with those from libtool.
64933         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
64934         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
64935         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
64936         library_names_spec to acl_library_names_spec, hardcode_* to
64937         acl_hardcode_*.
64938         Reported by Ralf Wildenhues.
64939
64940 2007-01-08  Bruno Haible  <bruno@clisp.org>
64941
64942         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
64943         definition.
64944         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
64945         definition.
64946         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
64947         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
64948         definition.
64949         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
64950         definition.
64951         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
64952         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
64953         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
64954         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
64955         definition.
64956         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
64957         definition.
64958         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
64959         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
64960         GC_USE_<algorithm>.
64961         * lib/gc-libgcrypt.c: Likewise.
64962         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
64963         * modules/gc-arctwo (configure.ac): Likewise.
64964         * modules/gc-des (configure.ac): Likewise.
64965         * modules/gc-hmac-md5 (configure.ac): Likewise.
64966         * modules/gc-hmac-sha1 (configure.ac): Likewise.
64967         * modules/gc-md2 (configure.ac): Likewise.
64968         * modules/gc-md4 (configure.ac): Likewise.
64969         * modules/gc-md5 (configure.ac): Likewise.
64970         * modules/gc-random (configure.ac): Likewise.
64971         * modules/gc-rijndael (configure.ac): Likewise.
64972         * modules/gc-sha1 (configure.ac): Likewise.
64973
64974 2007-01-08  Bruno Haible  <bruno@clisp.org>
64975
64976         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
64977         macro definition.
64978         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
64979         definition.
64980         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
64981         definition.
64982         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
64983         * modules/fcntl-safer (configure.ac): Likewise.
64984         * modules/fopen-safer (configure.ac): Likewise.
64985         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
64986         GNULIB_FWRITEERROR macro definition.
64987
64988 2007-01-08  Bruno Haible  <bruno@clisp.org>
64989
64990         * m4/gnulib-common.m4: New file.
64991         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
64992         (func_get_filelist): Add m4/gnulib-common.m4.
64993
64994 2007-01-08  Bruno Haible  <bruno@clisp.org>
64995
64996         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
64997         command.
64998
64999 2007-01-08  Jim Meyering  <jim@meyering.net>
65000
65001         Use a more robust test for a "can't happen" condition.
65002         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
65003         narrowed the st_size value.  Presuming the "can't happen" condition
65004         is true, that narrowing could conceivably convert an invalid st_size
65005         value into a valid one.  Instead, use a change based on Matthew
65006         Woehlke's original patch.
65007
65008         Slight readability improvement: use an assert-like macro
65009         in place of literal "abort ()" uses.
65010         * lib/fts.c (fts_assert): Define.
65011         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
65012         Use this macro instead of a bare 'abort'.
65013
65014 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
65015
65016         Don't worry about using IRIX 5.3's wctype.h broken definitions;
65017         simply work around them.
65018         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
65019         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
65020         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
65021         declaring.
65022         Don't bother to define as macros, since the standard doesn't require it.
65023         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
65024         longer worry about IRIX 5.3.
65025         (HAVE_WCTYPE_CTMP_BUG): Remove.
65026
65027 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
65028
65029         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
65030         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
65031         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
65032         Problems reported by Georg Schwarz for IRIX 5.3.
65033
65034         * gnulib-tool (autoconf_minversion): Take the maximum version number
65035         found, not the minimum.  Problem reported by James Youngman.
65036
65037 2007-01-03  Karl Berry  <karl@gnu.org>
65038
65039         * doc/error.texi: new file, explaining interaction with progname.
65040         * doc/gnulib.texi: include it.  Update copyright.
65041
65042 2007-01-03  Simon Josefsson  <simon@josefsson.org>
65043
65044         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
65045         AC_CANONICAL_HOST, to improve autobuild outputs.
65046
65047 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
65048             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
65049
65050         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
65051         sockets, server sockets, and other file descriptors.  Count errors
65052         to compute the return value.  Reorder the code a bit to be easier
65053         to follow.  Don't set event bits that were not requested (except
65054         POLLERR and POLLHUP).
65055
65056 2007-01-01  Bruno Haible  <bruno@clisp.org>
65057
65058         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
65059
65060 2007-01-03  Jim Meyering  <jim@meyering.net>
65061
65062         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
65063
65064 2007-01-02  Bruno Haible  <bruno@clisp.org>
65065
65066         * modules/settime (Include): Require timespec.h.
65067         * modules/nanosleep (Include): Likewise.
65068
65069 2007-01-01  Bruno Haible  <bruno@clisp.org>
65070
65071         * gnulib-tool (func_emit_copyright_notice): Bump year.
65072         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
65073
65074 2007-01-01  Bruno Haible  <bruno@clisp.org>
65075
65076         Improve support for OpenBSD.
65077         * build-aux/config.rpath (libname_spec): Export.
65078         (library_names_spec): New variable. Export.
65079         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
65080         library_names_spec from the config.rpath output. Locate shared library
65081         through the name pattern in library_names_spec.
65082
65083 2007-01-01  Eric Blake  <ebb9@byu.net>
65084
65085         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
65086
65087 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
65088
65089         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
65090         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
65091         assume the C locale, and avoid an "eval" that could cause trouble.
65092         Problem with SORT reported by Bob Proulx.
65093
65094         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
65095         Define.  Trivial patch from Henning Nielsen Lund, originally
65096         sent to bug-grep@gnu.org today.
65097
65098 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
65099
65100         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
65101         struct stat.  Problem reported by Henning Nielsen Lund.
65102         * lib/acl.c: Include acl.h first, to check interface.  Don't
65103         bother to include sys/types.h and sys/stat.h again.
65104
65105 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
65106
65107         Import the following change from libc; problem reported by
65108         Sven Verdoolaege.
65109
65110         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
65111
65112         [BZ #1373]
65113         * lib/argp.h: Remove __NTH for __argp_usage inline function.
65114
65115 2006-12-28  Jim Meyering  <jim@meyering.net>
65116
65117         * build-aux/announce-gen: Do not assume that the package
65118         builds any of tar.gz, tar.bz2, and .xdelta files.
65119         Suggestion from Simon Josefsson.
65120
65121 2006-12-28  Simon Josefsson  <simon@josefsson.org>
65122
65123         * modules/announce-gen: New file.
65124
65125 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
65126
65127         * lib/mbchar.h: Just include <wctype.h>; the wctype module
65128         handles its gotchas now.
65129         * lib/mbswidth.c: Likewise.
65130         * lib/wcwidth.h: Likewise.
65131         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
65132         and iswcntrl; the wctype module does this stuff now.
65133         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
65134         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
65135         * modules/mbchar (Depends-on): Add wctype.
65136         * modules/mbswidth (Depends-on): Likewise.
65137         * modules/wcwidth (Depends-on): Likewise.
65138
65139 2006-12-27  Eric Blake  <ebb9@byu.net>
65140
65141         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
65142         module uses more than what <wctype.h> is required to provide.
65143
65144 2006-12-26  Eric Blake  <ebb9@byu.net>
65145
65146         * gnulib-tool (sed_extract_prog): Avoid space-tab.
65147
65148 2006-12-26  Eric Blake  <ebb9@byu.net>
65149
65150         * modules/absolute-header: New module.
65151         * modules/fcntl (Depends-on): Depend on it.
65152         * modules/inttypes (Depends-on): Likewise.
65153         * modules/stdint (Depends-on): Likewise.
65154         * modules/sys_stat (Depends-on): Likewise.
65155         * modules/wctype (Depends-on): Likewise.
65156         * MODULES.html.sh (Support for building libraries and
65157         executables): Document it.
65158
65159 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
65160
65161         * gnulib-tool (SED): Remove, undoing previous change.
65162         The problem was that it broke coreutils on Solaris, because
65163         "sed --posix" leaked into a makefile.
65164         (sed): New alias, if 'alias' and GNU sed.
65165
65166 2006-12-24  Jim Meyering  <jim@meyering.net>
65167
65168         Work around an fchownat bug in glibc-2.4:
65169         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
65170         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
65171         in spite of the -P option.
65172         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
65173         New macros.
65174         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
65175         * modules/openat (Files): Add lib/fchownat.c.
65176         * lib/openat.c (fchownat): Don't define here.  Move to...
65177         * lib/fchownat.c: ...this new file.
65178
65179 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
65180
65181         Fix bug reported by Bruno Haible in
65182         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
65183         where quotearg.c didn't compile on Mac OS X 10.2 because it
65184         lacks <wchar.h> and wint_t.
65185         * lib/wctype_.h (__wctype_wint_t): New type.
65186         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
65187         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
65188         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
65189         Arg is now of type __wctype_wint_t, not wint_t.
65190         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
65191         substitute HAVE_WINT_T.
65192         * modules/wctype (Files): Add m4/wint_t.m4.
65193         (wctype.h): Substitute HAVE_WINT_T.
65194
65195 2006-12-23  Bruno Haible  <bruno@clisp.org>
65196
65197         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
65198
65199 2006-12-23  Bruno Haible  <bruno@clisp.org>
65200
65201         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
65202         S_ISLNK.
65203         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
65204         mingw.
65205
65206 2006-12-22  Bruno Haible  <bruno@clisp.org>
65207
65208         * lib/copy-file.c: Include acl.h.
65209         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
65210         Close the file descriptors only after being done with copy_acl.
65211         * modules/copy-file (Depends-on): Add acl.
65212
65213 2006-12-22  Bruno Haible  <bruno@clisp.org>
65214
65215         * gnulib-tool (SED): New variable.
65216         Use $SED instead of sed everywhere.
65217
65218 2006-12-22  Bruno Haible  <bruno@clisp.org>
65219
65220         * modules/no-c++: New file.
65221         * m4/no-c++.m4: New file.
65222         * MODULES.html.sh (Support for building libraries and executables):
65223         Add no-c++.
65224
65225 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
65226
65227         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
65228         Include <limits.h>, and use its INT_MAX to rewrite the
65229         j loop so that it does not overflow 'int'.  Problem reported by
65230         Ralf Wildenhues in
65231         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
65232         Play it safe by shifting left by 1 rather than multiplying by 2,
65233         as GCC is less likely to optimize this away when the value
65234         is signed (when it assumes overflow leads to undefined behavior).
65235         Also, don't assume time_t uses two's complement.
65236
65237 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
65238
65239         * MODULES.html.sh: New module wctype.
65240         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
65241         * lib/fnmatch.c: Don't bother to include <wchar.h> before
65242         <wctype.h>, since the new wctype module should fix this.
65243         * lib/quotearg.c: Include <wctype.h> unconditionally, since
65244         the wctype module should arrange for it.
65245         * lib/regex_internal.h: Likewise.
65246         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
65247         since the wctype module should handle this now.
65248         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
65249         * modules/fnmatch (Depends-on): Add wctype.
65250         * modules/quotearg (Depends-on): Likewise.
65251         * modules/regex (Depends-on): Likewise.
65252
65253 2006-12-19  Bruno Haible  <bruno@clisp.org>
65254
65255         * lib/strdup.h [C++]: Wrap definitions in extern "C".
65256         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
65257
65258 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65259
65260         * modules/savewd (Depends-on): Fix dependency on fcntl.
65261
65262 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
65263
65264         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
65265         conforms to C99, rather than relying on the user's environment
65266         setting of STDINT_H.
65267
65268 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
65269         and Eric Blake  <ebb9@byu.net>
65270
65271         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
65272         This is more consistent with the other defines here.
65273         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
65274         Port to z/OS.  Problem reported by Paul Gilmartin.
65275         Change local vars to use gl_ prefix rather than ac_.
65276         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
65277         with other defines.
65278         * modules/double-slash-root: New module.
65279         * modules/dirname (Files): Remove m4/double-slash-root.m4.
65280         (Depends-on): Add double-slash-root.
65281         * MODULES.html.sh (File system functions): Mention new module.
65282
65283 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
65284
65285         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
65286         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
65287         This is for the benefit of gzip, which doesn't do i18n.
65288
65289 2006-12-12  Jim Meyering  <jim@meyering.net>
65290
65291         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
65292         Reported by Andreas Schwab <schwab@suse.de>.
65293
65294 2006-12-12  Bruno Haible  <bruno@clisp.org>
65295
65296         Merge these changes.
65297         2006-09-05  Bruno Haible  <bruno@clisp.org>
65298         * lib/iconvme.c (iconv_string): No need to save and restore errno when
65299         iconv_alloc succeeded.
65300         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
65301         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
65302         test for " && dest " at the end - dest is always != NULL there. Call
65303         iconv with 4xNULL arguments initially, to reset the state. Call iconv
65304         with 2xNULL arguments, also to flush the state storage. Handle the
65305         IRIX iconv behaviour. Realloc the final result, to throw away unused
65306         memory.
65307
65308 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
65309
65310         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
65311         and fchmodat unconditionally, since glibc 2.4 has them.
65312         Problem reported by Arkadiusz Miskiewicz.
65313
65314 2006-12-10  Bruno Haible  <bruno@clisp.org>
65315
65316         * gnulib-tool (func_import): Show the include files only for those
65317         modules that are copied and specified.
65318         Reported by Karl Berry.
65319
65320 2006-12-08  Jim Meyering  <jim@meyering.net>
65321
65322         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
65323         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
65324
65325         * build-aux/announce-gen: Add two new options, both optional:
65326         --bootstrap-tools=TOOL_LIST
65327               a comma-separated list of tools, e.g.,
65328               autoconf,automake,bison,gnulib
65329         --gnulib-snapshot-date=DATE
65330               if gnulib is in the bootstrap tool list,
65331               then report this as the snapshot date.
65332               If not specified, use the current date/time.
65333               If you specify a date here, be sure it's UTC.
65334
65335 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65336
65337         * tests/test-argp-2.sh: Fix test to match actual output.
65338         (func_compare): Fix sed script to be portable.
65339
65340 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
65341
65342         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
65343         workaround for this case.  It is not autoconfigured now; offhand
65344         it's hard to see how to autoconfigure it.
65345
65346 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
65347
65348         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
65349         a directory that is about to be chowned.  Such a directory's
65350         initial file permissions should permit the owner only and this
65351         should not be changed until after the chown, since the group and
65352         other bits would be incorrect if they granted permission before
65353         the chown.
65354
65355         Fix porting problem for iswctype reported by Georg Schwarz in:
65356         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
65357         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
65358         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
65359         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
65360         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
65361
65362 2006-12-03  Jim Meyering  <jim@meyering.net>
65363
65364         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
65365         p->fts_statp may not yet be defined.
65366         (fts_read): Instead, set it in the caller, once p->fts_statp is
65367         sure to be defined, and corresponds to a top-level directory.
65368         This bug made du -x fail.  Here's the coreutils test case:
65369         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
65370         Reported by Mike Frysinger.
65371
65372 2006-12-01  Jim Meyering  <jim@meyering.net>
65373
65374         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
65375         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
65376         Reported by Simon Josefsson.
65377
65378 2006-11-30  Jim Meyering  <jim@meyering.net>
65379
65380         * m4/warning.m4: Use the all-permissive copyright notice
65381         recommended by RMS (rather than LGPL).
65382         * m4/vararrays.m4: Likewise.
65383         * m4/flexmember.m4: Likewise.
65384
65385 2006-11-29  Bruno Haible  <bruno@clisp.org>
65386
65387         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
65388         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
65389         using +=.
65390         Reported by Simon Josefsson <simon@josefsson.org>.
65391
65392 2006-11-28  James Youngman <jay@gnu.org>
65393
65394         * README: Advise users that they might find the bug-gnulib@gnu.org
65395         and autotools-announce@gnu.org mailing lists useful.
65396
65397 2006-11-28  Bruno Haible  <bruno@clisp.org>
65398
65399         * m4/ptrdiff_max.m4: Remove file.
65400
65401 2006-11-21  Bruno Haible  <bruno@clisp.org>
65402
65403         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
65404         _AC_COMPUTE_INT.
65405         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
65406         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
65407         _AC_COMPUTE_INT.
65408         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
65409         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
65410         _AC_COMPUTE_INT.
65411         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
65412
65413 2006-11-28  Jim Meyering  <jim@meyering.net>
65414
65415         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
65416         warning from "gcc -Wshadow" about shadowing the builtin.
65417
65418 2006-11-27  Bruno Haible  <bruno@clisp.org>
65419
65420         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
65421         _AC_COMPUTE_INT.
65422         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
65423
65424 2006-11-27  Bruno Haible  <bruno@clisp.org>
65425             Paul Eggert  <eggert@cs.ucla.edu>
65426
65427         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
65428
65429 2006-11-26  Bruno Haible  <bruno@clisp.org>
65430
65431         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
65432         noinst_LTLIBRARIES.
65433
65434 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
65435             Bruno Haible  <bruno@clisp.org>
65436
65437         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
65438         if compiling with "gcc -ansi".
65439
65440 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
65441
65442         Fix some incompatibilities with gcc -ansi -pedantic.
65443         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
65444         if compiling pedantically with GCC, unless it's C99 or later.
65445         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
65446         it mishandles gcc -ansi -pedantic as well.
65447         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
65448         if gcc -pedantic.
65449         * lib/regexec.c (check_node_accept_bytes): Don't use auto
65450         initializers for struct if -pedantic, unless it's C99 or later.
65451
65452 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
65453
65454         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
65455         Don't close an fd more than once. Identical atimes indicate
65456         success, not failure.
65457
65458 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
65459
65460         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
65461
65462 2006-11-23  Jim Meyering  <jim@meyering.net>
65463
65464         * build-aux/announce-gen: New file.  From coreutils.
65465
65466 2006-11-22  Jim Meyering  <jim@meyering.net>
65467
65468         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
65469         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
65470         (fts_read): Use a temporary to narrow the overused st_size member
65471         before using it in a switch statement.  Reported by Matthew Woehlke.
65472
65473         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
65474         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
65475
65476 2006-11-20  Bruno Haible  <bruno@clisp.org>
65477
65478         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
65479         changequote instead of pairs of brackets.
65480         Reported by Andreas Schwab <schwab@suse.de>.
65481
65482 2006-11-21  Jim Meyering  <jim@meyering.net>
65483
65484         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
65485         so as to remain compatible with older compilers.
65486         Patch from Michael Deutschmann.
65487
65488 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
65489
65490         * MODULES.html.sh (File system functions): Add openat.
65491
65492         * lib/openat.h (rpl_fstatat): New macro, if
65493         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
65494         (fstatat): Define to rpl_fstatat under the same conditions,
65495         unless COMPILING_FSTATAT.
65496         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
65497         seems to have the bug.
65498         * lib/fstatat.c: New file.
65499         * modules/openat (Files): Add it.
65500
65501 2006-11-20  Bruno Haible  <bruno@clisp.org>
65502
65503         * Makefile: New file.
65504
65505 2006-11-20  Jim Meyering  <jim@meyering.net>
65506
65507         The beginnings of syntax-related checks for gnulib.
65508         * lib/Makefile: New file.
65509         * lib/t-idcache: New script.  Ensure that the two halves of
65510         idcache.c stay in sync.
65511
65512         * lib/idcache.c: Adjust comments in user- and group- portions to
65513         be more accurate, and to be consistent with one another.
65514
65515 2006-11-20  Jim Meyering  <jim@meyering.net>
65516
65517         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
65518         continue using the flexible array member (thus, this module performs
65519         half as many malloc calls), with the addition that...
65520         (getgroup, getuser): Consistently record a non-match via an empty
65521         "name" string, and map an empty string match to a NULL return value.
65522         * modules/idcache (Depends-on): Re-add flexmember.
65523
65524         * lib/idcache.c (getuser): Remove all uses of the register keyword.
65525         (getuidbyname, getgroup, getgidbyname): Likewise.
65526
65527         Use cleaner syntax: NULL rather than 0.
65528         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
65529
65530 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
65531
65532         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
65533         It mishandled the case where the group was missing.
65534         Problem reported by Greg Schafer.
65535         * modules/idcache: Likewise.
65536
65537 2006-11-18  Jim Meyering  <jim@meyering.net>
65538
65539         * check-module (%exempt_header): Add exception for some
65540         conditionally-included headers.
65541
65542         * modules/i-ring (Depends-on): Add verify.
65543         (License): Change to LGPL.
65544
65545 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
65546
65547         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
65548         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
65549         and inttostr.h.  Use snprintf rather than uinttostr, so that
65550         LGPLed code doesn't depend on GPLed.
65551
65552 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
65553
65554         * modules/inline (License): Change from GPL to LGPL.
65555
65556 2006-11-17  Jim Meyering  <jim@meyering.net>
65557
65558         * modules/d-type (License): Switch to LGPL.
65559
65560 2006-11-15  Bruno Haible  <bruno@clisp.org>
65561
65562         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
65563
65564 2006-11-15  Eric Blake  <ebb9@byu.net>
65565
65566         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
65567         the module dependency.
65568
65569 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
65570             Bruno Haible  <bruno@clisp.org>
65571
65572         * gnulib-tool (func_create_testdir): Add license consistency check.
65573
65574 2006-11-15  Eric Blake  <ebb9@byu.net>
65575
65576         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
65577         random "(cached)" in configure output.
65578
65579 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65580
65581         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
65582         test for conforming inttypes.h is both announced and cached.
65583
65584         * MODULES.html.sh (seen_modules, seen_files): New variables.
65585         (func_module): Rewrite to use a few less gnulib-tool and sed
65586         invocations.  Avoid a couple of quadratic algorithms for ...
65587         (missed_modules, missed_files): ... these, with ...
65588         (func_append, func_tmpdir): ... these new functions, from
65589         gnulib-tool.  Analogously, install traps for cleanup.
65590
65591         * tests/test-gc.c (main): Remove unused variables.
65592         * tests/test-read-file.c: Include stdlib.h, for 'free'.
65593
65594 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
65595
65596         * modules/inttostr (License): Change to LGPL.
65597
65598 2006-11-14  Eric Blake  <ebb9@byu.net>
65599
65600         * modules/tempname (License): Change to LGPL.
65601
65602 2006-11-14  Eric Blake  <ebb9@byu.net>
65603
65604         * doc/functions.texi (Function Portability): *printf functions on
65605         Cygwin now understand all POSIX size specifiers.
65606
65607 2006-11-14  Bruno Haible  <bruno@clisp.org>
65608
65609         * modules/c-ctype (License): Change to LGPL.
65610
65611 2006-11-12  Bruno Haible  <bruno@clisp.org>
65612
65613         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
65614         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
65615         for GNOME libraries, for which the include files are installed in
65616         subdirectories of $prefix/include.
65617
65618 2006-11-12  Bruno Haible  <bruno@clisp.org>
65619
65620         * m4/lib-link.m4: Require at least autoconf-2.54.
65621         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
65622         name to underscores for the --with option.
65623
65624 2006-11-13  Bruno Haible  <bruno@clisp.org>
65625
65626         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
65627         the tests directory.
65628         Reported by Ralf Wildenhues.
65629
65630 2006-11-13  Bruno Haible  <bruno@clisp.org>
65631
65632         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
65633         (func_emit_initmacro_end): Undo the override here.
65634         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
65635         Works around the famous automake error in coreutils.
65636
65637 2006-11-13  Eric Blake  <ebb9@byu.net>
65638
65639         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
65640         element, not its node.
65641
65642 2006-11-12  Bruno Haible  <bruno@clisp.org>
65643
65644         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
65645         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
65646
65647 2006-11-12  Bruno Haible  <bruno@clisp.org>
65648
65649         * gnulib-tool: New option --local-symlink.
65650         (func_usage): Document it.
65651         (lsymbolic): New variable.
65652         (func_import, func_create_testdir): If --symlink was not specified,
65653         test whether --local-symlink was specified and the file comes from
65654         the local_gnulib_dir.
65655
65656 2006-11-12  Bruno Haible  <bruno@clisp.org>
65657
65658         * gnulib-tool (func_ln): New function.
65659         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
65660
65661 2006-11-12  Bruno Haible  <bruno@clisp.org>
65662
65663         Finish support for source files in subdirectories.
65664         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
65665         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
65666         AUTOMAKE_OPTIONS.
65667         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
65668
65669 2006-11-12  Bruno Haible  <bruno@clisp.org>
65670
65671         * gnulib-tool (func_get_automake_snippet): Synthesize also an
65672         EXTRA_lib_SOURCES augmentation.
65673         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
65674
65675 2006-11-12  Jim Meyering  <jim@meyering.net>
65676
65677         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
65678         file descriptors.  This also averts a failure on systems with
65679         native openat support when a traversed directory lacks "x" access.
65680         * lib/fts_.h: Include "i-ring.h"
65681         (struct FTS) [fts_fd_ring]: New member.
65682         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
65683         (FCHDIR): Add parentheses.
65684         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
65685         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
65686         When descending, rather than simply closing the previous
65687         fts_cwd_fd value, push that file descriptor onto the ring.
65688         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
65689         (fts_open): Initialize the new fd_ring member.
65690         (fts_close): Clear the ring.
65691         (fts_safe_changedir): When possible, use our new fd_ring to skip
65692         the diropen and fstat and dev/ino comparison that would normally
65693         accompany a virtual `chdir ("..")'.
65694
65695         * modules/fts (Depends-on): Add i-ring.
65696         * modules/i-ring: New module.
65697         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
65698         * m4/i-ring.m4: New file.
65699
65700 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65701
65702         * gnulib-tool (func_create_testdir): Fix replacement of
65703         `build-aux' in configure.ac.  Run autotools in gltests
65704         subdirectory.
65705         (func_create_testdir, func_create_megatestdir, test): There is
65706         no need for '--force' in most autotool invocations in a new
65707         tree.  Actually fail the whole test if any of the tools, or the
65708         configure or make stages fail.
65709
65710         Sync from Automake.
65711         * build-aux/gnupload: Revert last change.  Add pointer to upload
65712         instructions of the GNU Maintenance Instructions.
65713         Suggestion by Karl Berry.
65714
65715 2006-11-10  Jim Meyering  <jim@meyering.net>
65716
65717         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
65718
65719 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
65720
65721         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
65722         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
65723         (bind_textdomain_codeset) [! ENABLE_NLS]:
65724         Evaluate all the arguments.  That way, callers get compatible behavior
65725         if the arguments have side effects.  Also, it avoids some GCC
65726         diagnostics in some cases; Joel E. Denny reported problems when Bison
65727         was configured with --enable-gcc-warnigs.
65728
65729 2006-11-10  Jim Meyering  <jim@meyering.net>
65730
65731         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
65732         relevant options in CFLAGS (like -O, -fno-inline) are taken into
65733         account.
65734
65735 2006-11-10  Jim Meyering  <jim@meyering.net>
65736
65737         * modules/inline: New file/module.
65738         * modules/xalloc (Files): Remove m4/inline.m4.
65739         (Depends-on): Add inline, instead.
65740         * modules/oset: Likewise.
65741         * modules/list: Likewise.
65742
65743 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
65744
65745         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
65746         Problem reported by Matthew Woehlke.
65747
65748 2006-11-09  Bruno Haible  <bruno@clisp.org>
65749
65750         * lib/tempname.c (gen_tempname): Remove variant that invokes
65751         __gen_tempname.
65752         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
65753         __gen_tempname.
65754
65755 2006-11-08  Bruno Haible  <bruno@clisp.org>
65756
65757         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
65758         to 'yes' instead of 'cross-compiling'.
65759
65760 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
65761
65762         * lib/quotearg.h (quotearg_free): New decl.
65763         * lib/quotearg.c (quotearg_free): New function.
65764         (slot0, nslots, slotvec0, slotvec):
65765         Now file-scope so that quotearg_free can get at them.
65766
65767 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65768
65769         Sync from Automake.
65770         * build-aux/gnupload: Add missing 'gnu' to example URL.
65771         Report by Karl Berry.
65772
65773 2006-11-08  Bruno Haible  <bruno@clisp.org>
65774
65775         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
65776         Suggested by Paul Eggert.
65777
65778 2006-11-08  Jim Meyering  <jim@meyering.net>
65779
65780         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
65781         It's already included if !_LIBC.
65782         (fts_safe_changedir): Add a comment.
65783
65784 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
65785
65786         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
65787         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
65788         Matthew Woehlke.
65789
65790         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
65791         definitions up, to avoid colliding with change below.
65792         (static_inline) [HAVE_INLINE]: New macro.
65793         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
65794         Provide extern decls when !HAVE_INLINE.  Do not define unless
65795         static_inline is defined, either by us or by xmalloc.c.  Use
65796         static_inline rather than static inline.
65797         (XCALLOC): Optimize sizeof(T) = 1 case.
65798         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
65799
65800 2006-11-07  Bruno Haible  <bruno@clisp.org>
65801
65802         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
65803         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
65804         AC_C_INLINE.
65805         * modules/xalloc (Files): Add m4/inline.m4.
65806
65807 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65808
65809         * README: Fix typo.
65810         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
65811         (Miscellanous Notes): ...from this.
65812
65813 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
65814
65815         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
65816         Mention that offsetof should be used instead of sizeof.
65817         From Bruno Haible.
65818
65819 2006-11-07  Bruno Haible  <bruno@clisp.org>
65820
65821         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
65822
65823 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
65824
65825         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
65826         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
65827         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
65828         (gl_tree_add_before, gl_tree_add_after):
65829         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
65830         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
65831         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
65832         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
65833         (gl_linked_add_after, gl_linked_add_at): Likewise.
65834         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
65835         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
65836         (gl_tree_add_before, gl_tree_add_after): Likewise.
65837         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
65838         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
65839         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
65840
65841 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65842
65843         * lib/gl_oset.h: Use C comment style, not C++ comment style.
65844
65845 2006-11-06  Bruno Haible  <bruno@clisp.org>
65846
65847         * m4/inline.m4: New file.
65848         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
65849         * modules/list (Files): Add m4/inline.m4.
65850         * modules/oset (Files): Likewise.
65851
65852 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
65853
65854         * lib/idcache.c: Include <stddef.h>, for offsetof.
65855         (struct userid.name): Change from char * to a flexible array member.
65856         All uses changed.
65857         * modules/idcache (Depends-on): Add flexmember.
65858
65859         * MODULES.html.sh (Core language properties): New module flexmember.
65860         * modules/flexmember, m4/flexmember.m4: New files.
65861
65862         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
65863         inline functions that are identical with the old xnmalloc_inline,
65864         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
65865         that we can avoid some unnecessary integer multiplications and
65866         divisions in the common case where the element size is known at
65867         compile time.
65868         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
65869         needed.
65870         (xnboundedmalloc): Remove.
65871         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
65872         arguments, for consistency with rest of this header.
65873         (xcharalloc): Rewrite using XNMALLOC.
65874         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
65875         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
65876         versions have been moved to lib/xalloc.h and renamed to be the
65877         non-*_inline versions.
65878         (xmalloc, xrealloc): Implement without reference to the xnmalloc
65879         and xnrealloc functions, since those functions are now inline and
65880         now call us.
65881         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
65882         renaming described above.
65883         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
65884         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
65885         captures the dependency in AC_C_INLINE.
65886
65887         New module canonicalize-lgpl, proposed by Charles Wilson in
65888         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
65889         with a few small changes afterwards.
65890         * MODULES.html.sh (File system functions): New module
65891         canonicalize-lgpl.
65892         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
65893         and canonicalize_file_name.
65894         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
65895         * modules/canonicalize-lgpl: New files.
65896
65897 2006-11-05  Bruno Haible  <bruno@clisp.org>
65898
65899         * gnulib-tool (func_import, func_create_testdir): Create directories
65900         also for files in subdirectories of lib/.
65901
65902 2006-11-05  Bruno Haible  <bruno@clisp.org>
65903
65904         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
65905         ANSI C compliant.
65906
65907 2006-11-03  Bruno Haible  <bruno@clisp.org>
65908
65909         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
65910         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
65911         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
65912         (xnboundedmalloc): New inline function.
65913         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
65914         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
65915         xmalloc.
65916         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
65917         xmalloc.
65918         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
65919         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
65920         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
65921         xmalloc.
65922         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
65923         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
65924         xmalloc.
65925         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
65926         gl_tree_add_after): Use XMALLOC instead of xmalloc.
65927         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
65928         xmalloc.
65929         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
65930         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
65931         gl_tree_add_after): Use XMALLOC instead of xmalloc.
65932         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
65933         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
65934         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
65935         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
65936
65937 2006-11-03  Bruno Haible  <bruno@clisp.org>
65938
65939         * lib/c-ctype.h [C++]: Define functions without name mangling.
65940         * lib/fwriteerror.h [C++]: Likewise.
65941         * lib/gcd.h [C++]: Likewise.
65942         * lib/linebreak.h [C++]: Likewise.
65943
65944 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
65945
65946         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
65947         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
65948         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
65949         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
65950         Check for functions and headers just once.
65951         Check for declaration of canonicalize_file_name.
65952         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
65953
65954 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
65955
65956         * gnulib-tool (func_import): Fix typo in actioncmd.
65957
65958 2006-11-02  Bruno Haible  <bruno@clisp.org>
65959
65960         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
65961         newline sequence in the Makefile.am snippet as a space, like "make"
65962         does.
65963         Reported by Roger Persson <perrog@gmail.com>.
65964
65965 2006-11-01  Bruno Haible  <bruno@clisp.org>
65966
65967         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
65968         already declared in <string.h>.
65969         * lib/strcase.h (strncasecmp): Don't declare it if yes.
65970
65971 2006-11-01  Bruno Haible  <bruno@clisp.org>
65972
65973         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
65974         * lib/strcase.h: Include <string.h>.
65975         (strcasecmp): Define to rpl_strcasecmp here.
65976
65977 2006-11-01  Bruno Haible  <bruno@clisp.org>
65978
65979         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
65980
65981 2006-11-01  Eric Blake  <ebb9@byu.net>
65982
65983         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
65984
65985         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
65986
65987 2006-10-29  Bruno Haible  <bruno@clisp.org>
65988
65989         Make it compile in C++ mode.
65990         * lib/full-write.c (full_rw): Add a cast.
65991
65992 2006-11-01  Bruno Haible  <bruno@clisp.org>
65993
65994         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
65995         be POSIX compliant.
65996         Reported by Roger Persson <perrog@gmail.com>.
65997
65998 2006-11-01  Eric Blake  <ebb9@byu.net>
65999
66000         * lib/getopt_.h: Fix comments.
66001
66002 2006-10-31  Eric Blake  <ebb9@byu.net>
66003
66004         * modules/tmpdir (Depends-on): Add sys_stat.
66005         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
66006         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
66007         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
66008         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
66009         tempname.
66010
66011 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
66012
66013         Avoid some C++ diagnostics reported by Bruno Haible.
66014         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
66015         xmalloc.
66016         (quotearg_alloc): Use xcharalloc rather than xmalloc.
66017         (struct slotvec): Move to top level.
66018         (quotearg_n_options): Rewrite to avoid xmalloc.
66019         * lib/xalloc.h (xcharalloc): New function.
66020         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
66021         [defined __cplusplus]: Add function template that provides result
66022         type propagation.  This part of the change is from Bruno Haible.
66023
66024 2006-10-29  Bruno Haible  <bruno@clisp.org>
66025
66026         Make it compile in C++ mode.
66027         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
66028         * lib/strnlen1.c (strnlen1): Cast memchr result.
66029         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
66030         * lib/clean-temp.c (string_equals, string_hash): Add casts.
66031         (create_temp_dir): Rename local variable 'template'.
66032         (compile_csharp_using_sscli): Add cast.
66033         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
66034         * lib/findprog.c (find_in_path): Likewise.
66035         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
66036         * lib/wait-process.c (register_slave_subprocess): Likewise.
66037
66038 2006-10-22  Bruno Haible  <bruno@clisp.org>
66039
66040         * modules/tsearch: New file.
66041         * lib/tsearch.h: New file.
66042         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
66043         * m4/tsearch.m4: New file.
66044         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
66045
66046 2006-10-29  Eric Blake  <ebb9@byu.net>
66047
66048         * lib/arcfour.c: Assume config.h.
66049         * lib/arctwo.c: Likewise.
66050         * lib/base64.c: Likewise.
66051         * lib/check-version.c: Likewise.
66052         * lib/crc.c: Likewise.
66053         * lib/des.c: Likewise.
66054         * lib/gc-gnulib.c: Likewise.
66055         * lib/gc-libgcrypt.c: Likewise.
66056         * lib/gc-pbkdf2-sha1.c: Likewise.
66057         * lib/getaddrinfo.c: Likewise.
66058         * lib/getdelim.c: Likewise.
66059         * lib/getline.c: Likewise.
66060         * lib/hmac-md5.c: Likewise.
66061         * lib/hmac-sha1.c: Likewise.
66062         * lib/iconvme.c: Likewise.
66063         * lib/md2.c: Likewise.
66064         * lib/md4.c: Likewise.
66065         * lib/memxor.c: Likewise.
66066         * lib/read-file.c: Likewise.
66067         * lib/readline.c: Likewise.
66068         * lib/rijndael-alg-fst.c: Likewise.
66069         * lib/rijndael-api-fst.c: Likewise.
66070         * lib/xgetdomainname.c: Likewise.
66071
66072 2006-10-28  Eric Blake  <ebb9@byu.net>
66073
66074         * lib/xstrndup.c: Assume config.h.
66075
66076 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
66077
66078         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
66079         stat-macros.h is now for our own macros, whereas stat_h is for
66080         macros in the <sys/stat.h> name space.
66081         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
66082         (STAT_MACROS_H): Remove.
66083         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
66084         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
66085         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
66086         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
66087         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
66088         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
66089         Move these macros to ...
66090         * lib/stat_.h: here.  Don't include stat-macros.h.
66091         * lib/canonicalize.c: Don't include stat-macros.h.
66092         * lib/chown.c: Likewise.
66093         * lib/euidaccess.c: Likewise.
66094         * lib/file-type.c: Likewise.
66095         * lib/filemode.c: Likewise.
66096         * lib/glob.c: Likewise.
66097         * lib/isapipe.c: Likewise.
66098         * lib/lchown.c: Likewise.
66099         * lib/lstat.c: Likewise.
66100         * lib/mkdir-p.c: Likewise.
66101         * lib/rmdir.c: Likewise.
66102         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
66103         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
66104         unless mkdir isn't declared, to speed up 'configure'.
66105         Always create sys/stat.h, since it's unlikely any real sys/stat.h
66106         would define all the S_* symbols.
66107         * modules/canonicalize (Depends-on):
66108         Depend on sys_stat, not stat-macros.
66109         * modules/chown: Likewise.
66110         * modules/euidaccess: Likewise.
66111         * modules/filemode: Likewise.
66112         * modules/file-type: Likewise.
66113         * modules/glob: Likewise.
66114         * modules/isapipe: Likewise.
66115         * modules/lchown: Likewise.
66116         * modules/lstat: Likewise.
66117         * modules/mkancesdirs: Likewise.
66118         * modules/rmdir: Likewise.
66119         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
66120         * modules/modechange: Likewise.
66121         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
66122         (configure.ac): Remove gl_STAT_MACROS.
66123         * modules/sys_stat (Depends-on): Remove stat-macros.
66124
66125 2006-10-27  Bruno Haible  <bruno@clisp.org>
66126
66127         * m4/signed.m4: Remove file.
66128         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
66129         invocation.
66130         * modules/vasnprintf (Files): Remove m4/signed.m4.
66131
66132 2006-10-27  Bruno Haible  <bruno@clisp.org>
66133
66134         Update to GNU gettext 0.16.
66135         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
66136         m4/inttypes-h.m4, m4/signed.m4.
66137         * m4/gettext.m4: Update to GNU gettext 0.16.
66138         * m4/intl.m4: New file, from GNU gettext.
66139         * m4/intldir.m4: New file, from GNU gettext.
66140         * config/srclist.txt: Update
66141
66142 2006-10-27  Eric Blake  <ebb9@byu.net>
66143
66144         * MODULES.html.sh: Document tempname.
66145         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
66146         dependencies.
66147         (Files): Move lib/tempname.c...
66148         * modules/tempname: ...to this new module.
66149         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
66150         (gl_PREREQ_TEMPNAME): Move...
66151         * m4/tempname.m4: ...to this new file.
66152         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
66153         * modules/sys_stat (Depends-on): Add stat-macros.
66154         * lib/stat_.h (includes): Pick up stat macros.
66155         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
66156         if stat macros are broken.
66157         * lib/tempname.c (includes): No need to include "stat-macros.h".
66158         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
66159         (direxists, __path_search) [!_LIBC]: Don't compile these in
66160         gnulib; the tmpdir module covers that.
66161         * lib/tempname.h: New file.
66162
66163 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
66164
66165         * COPYING: Explain how gnulib-tool converts licence headers.
66166         Almost all wording by Eric Blake.
66167
66168 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
66169
66170         * lib/mbchar.h (is_basic_table): Make read-only.
66171         * lib/mbchar.c (is_basic_table): Likewise.
66172         Reported by John Darrington.
66173
66174 2006-10-25  Bruno Haible  <bruno@clisp.org>
66175
66176         * lib/progname.h (set_program_name): Undefine before defining.
66177
66178 2006-10-25  Bruno Haible  <bruno@clisp.org>
66179
66180         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
66181         false for non-gcc C++ compilers.
66182         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
66183
66184 2006-10-24  Bruno Haible  <bruno@clisp.org>
66185
66186         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
66187         iconv implementations like Irix iconv.
66188
66189 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
66190
66191         * modules/vararrays: New file.
66192         * m4/vararrays.m4: New file, taken from diffutils.
66193         * MODULES.html.sh: New module vararrays.
66194
66195 2006-10-24  Karl Berry  <karl@gnu.org>
66196
66197         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
66198         Don't call GNU Unix.
66199
66200 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66201
66202         * users.txt: Add Libtool.
66203
66204         Sync from Libtool:
66205
66206         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
66207
66208         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
66209         to gnulib's policy of including config.h unconditionally.
66210
66211 2006-10-24  Bruno Haible  <bruno@clisp.org>
66212
66213         * modules/wcwidth (Files): Add m4/wint_t.m4.
66214         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
66215         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
66216
66217 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
66218
66219         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
66220         to pacify GCC with some -W flags enabled.  Problem reported by
66221         Bruno Haible.
66222
66223 2006-10-24  Jim Meyering  <jim@meyering.net>
66224
66225         * MODULES.html.sh: Remove uinttostr.  It's not a module.
66226         Reported by Karl Berry.
66227
66228 2006-10-23  Bruno Haible  <bruno@clisp.org>
66229
66230         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
66231
66232 2006-10-24  Bruno Haible  <bruno@clisp.org>
66233
66234         * lib/gl_list.h: Use C comment style, not C++ comment style.
66235
66236 2006-10-23  Eric Blake  <ebb9@byu.net>
66237
66238         * lib/getaddrinfo.c (includes): Add missing include.
66239
66240 2006-10-23  Bruno Haible  <bruno@clisp.org>
66241             Paul Eggert  <eggert@cs.ucla.edu>
66242
66243         Ability to rename obstack_free.
66244         * lib/obstack.h (__obstack_free): New macro. Declare instead of
66245         obstack_free.
66246         (obstack_free): Invoke the __obstack_free macro.
66247         * lib/obstack.c (obstack_free): Use __obstack_free macro.
66248
66249 2006-10-23  Bruno Haible  <bruno@clisp.org>
66250             Paul Eggert  <eggert@cs.ucla.edu>
66251
66252         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
66253         __argc, __argv from the declaration. (They are defined as macros on
66254         mingw.)
66255
66256 2006-10-22  Bruno Haible  <bruno@clisp.org>
66257
66258         * doc/gnulib-intro.texi: New file.
66259         * doc/gnulib.texi: Include it.
66260
66261 2006-10-21  Bruno Haible  <bruno@clisp.org>
66262
66263         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
66264         "Introduction", "Miscellanous Notes", "Particular Modules".
66265
66266 2006-10-21  Bruno Haible  <bruno@clisp.org>
66267
66268         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
66269         Change mostlyclean-local rule to avoid sh syntax error from bash
66270         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
66271
66272 2006-10-23  Jim Meyering  <jim@meyering.net>
66273
66274         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
66275         in place of snprintf.
66276
66277         * modules/inttostr (Files): Add lib/uinttostr.c.
66278         * lib/uinttostr.c (inttostr): New file/function.
66279         * lib/inttostr.h (uinttostr): Declare.
66280         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
66281         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
66282         Add uinttostr.
66283         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
66284
66285 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
66286
66287         * lib/canonicalize.c (ELOOP): Define if not already defined.
66288         Problem reported by Bruno Haible in
66289         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
66290
66291 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
66292
66293         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
66294         Problem reported by Perry Smith and Ville Laurikari.
66295
66296         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
66297         uses.
66298
66299 2006-10-19  Bruno Haible  <bruno@clisp.org>
66300
66301         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
66302         for mingw.
66303
66304 2006-10-19  Bruno Haible  <bruno@clisp.org>
66305
66306         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
66307         Needed for mingw.
66308
66309 2006-10-19  Bruno Haible  <bruno@clisp.org>
66310
66311         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
66312
66313 2006-10-19  Bruno Haible  <bruno@clisp.org>
66314
66315         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
66316         it.
66317
66318 2006-10-19  Bruno Haible  <bruno@clisp.org>
66319
66320         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
66321         invocation.
66322
66323 2006-10-19  Bruno Haible  <bruno@clisp.org>
66324
66325         * gnulib-tool (func_create_testdir): Don't include ftruncate and
66326         mountlist by default.
66327
66328 2006-10-16  Bruno Haible  <bruno@clisp.org>
66329
66330         * lib/c-strstr.c: Include c-strstr.h.
66331
66332 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
66333
66334         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
66335         in a slash.
66336
66337 2006-10-18  Bruno Haible  <bruno@clisp.org>
66338
66339         * lib/lock.h [C++]: Wrap definitions in extern "C".
66340
66341 2006-10-18  Bruno Haible  <bruno@clisp.org>
66342
66343         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
66344         gl_LIBOBJS list.
66345
66346 2006-10-18  Bruno Haible  <bruno@clisp.org>
66347
66348         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
66349
66350 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
66351
66352         * lib/xstrtol.h: Include gettext.h.
66353         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
66354         Problem reported by Eric Blake.
66355         * modules/xstrtol (Depends-on): Add gettext-h.
66356
66357 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
66358
66359         * lib/strftime.c (advance): New macro.
66360         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
66361         incomplete type, so you can't add 0 to it.  Problem and patch
66362         reported by Eelco Dolstra for dietlibc.
66363
66364 2006-10-18  Jim Meyering  <jim@meyering.net>
66365
66366         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
66367         type for a local, and rename it: s/up/user_proc/.
66368
66369 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
66370
66371         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
66372         READ_UTMP_USER_PROCESS.
66373         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
66374
66375 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
66376
66377         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
66378         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
66379
66380 2006-10-17  Eric Blake  <ebb9@byu.net>
66381
66382         * lib/sigprocmask.c (sigprocmask): Fix typo.
66383
66384         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
66385
66386         * modules/clean-temp (Makefile.am): Don't add to make output...
66387         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
66388         config.h.
66389
66390 2006-10-17  Bruno Haible  <bruno@clisp.org>
66391
66392         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
66393         differently if DEFAULT_TEXT_DOMAIN is set.
66394
66395 2006-10-16  Bruno Haible  <bruno@clisp.org>
66396
66397         * lib/clean-temp.c: Include fwriteerror.h.
66398
66399 2006-10-16  Bruno Haible  <bruno@clisp.org>
66400
66401         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
66402
66403 2006-10-16  Bruno Haible  <bruno@clisp.org>
66404
66405         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
66406         * lib/sigprocmask.h: Include <sys/types.h>.
66407         (sigset_t): Use the system's definition if present.
66408
66409 2006-10-17  Eric Blake  <ebb9@byu.net>
66410
66411         * lib/xvasprintf.c (includes): Assume config.h.
66412         * lib/xasprintf.c (includes): Likewise.
66413
66414 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
66415
66416         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
66417         at least as wide as intmax_t.
66418
66419 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
66420
66421         (Imported from Automake.)
66422         * build-aux/gnupload: Update to version 1.1 of directive file.
66423
66424 2006-10-16  Eric Blake  <ebb9@byu.net>
66425
66426         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
66427         match Automake 1.10a.
66428
66429 2006-10-14  Bruno Haible  <bruno@clisp.org>
66430
66431         * modules/sigprocmask: New file.
66432         * lib/sigprocmask.h: New file.
66433         * lib/sigprocmask.c: New file.
66434         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
66435         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
66436         request sigprocmask.o.
66437         (gl_PREREQ_SIGPROCMASK): New macro.
66438         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
66439         (Depends-on): Add sigprocmask.
66440         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
66441         gt_SIGNALBLOCKING. Test for 'raise' only once.
66442         * lib/fatal-signal.c: Include sigprocmask.h.
66443         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
66444         unblock_fatal_signals): Define always.
66445         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
66446         sigprocmask.
66447
66448 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
66449
66450         Sync from Automake.
66451         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
66452         which incorrectly sets the mode of an existing destination
66453         directory.  In some cases the unpatched install-sh could do the
66454         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
66455         system.  We hope this is rare in practice, but it's clearly worth
66456         fixing.  Problem reported by Alex Unleashed in
66457         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
66458         Also, don't bother to check for -m bugs unless we're using -m;
66459         suggested by Stepan Kasal.
66460
66461 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66462
66463         Sync from Automake.
66464         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
66465         `-c' flag, so they appear at the same position as in %FASTDEP%
66466         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
66467         which ignores unknown options only after the first non-option.
66468         Bug report against M4 by Nelson H. F. Beebe.
66469
66470 2006-10-13  Jim Meyering  <jim@meyering.net>
66471
66472         Fix a bug in yesterday's change.
66473         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
66474         p->fts_statp->st_dev would be used uninitialized.
66475         Ensures that we always call fts_stat on the very first entry.
66476         Miklos Szeredi reported that find -xdev stopped working.
66477
66478 2006-10-12  Bruno Haible  <bruno@clisp.org>
66479
66480         * gnulib-tool (func_get_automake_snippet): Append an automatically
66481         computed EXTRA_DIST augmentation.
66482         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
66483         * modules/alloca-opt (Makefile.am): Likewise.
66484         * modules/allocsa (Makefile.am): Likewise.
66485         * modules/arcfour (Makefile.am): Likewise.
66486         * modules/arctwo (Makefile.am): Likewise.
66487         * modules/argmatch (Makefile.am): Likewise.
66488         * modules/argz (Makefile.am): Likewise.
66489         * modules/atexit (Makefile.am): Likewise.
66490         * modules/backupfile (Makefile.am): Likewise.
66491         * modules/byteswap (Makefile.am): Likewise.
66492         * modules/c-strtod (Makefile.am): Likewise.
66493         * modules/c-strtold (Makefile.am): Likewise.
66494         * modules/calloc (Makefile.am): Likewise.
66495         * modules/canon-host (Makefile.am): Likewise.
66496         * modules/canonicalize (Makefile.am): Likewise.
66497         * modules/chdir-long (Makefile.am): Likewise.
66498         * modules/chdir-safer (Makefile.am): Likewise.
66499         * modules/check-version (Makefile.am): Likewise.
66500         * modules/chown (Makefile.am): Likewise.
66501         * modules/cloexec (Makefile.am): Likewise.
66502         * modules/close-stream (Makefile.am): Likewise.
66503         * modules/closeout (Makefile.am): Likewise.
66504         * modules/crc (Makefile.am): Likewise.
66505         * modules/csharpexec (Makefile.am): Likewise.
66506         * modules/cycle-check (Makefile.am): Likewise.
66507         * modules/des (Makefile.am): Likewise.
66508         * modules/dev-ino (Makefile.am): Likewise.
66509         * modules/dirfd (Makefile.am): Likewise.
66510         * modules/dirname (Makefile.am): Likewise.
66511         * modules/dup2 (Makefile.am): Likewise.
66512         * modules/eealloc (Makefile.am): Likewise.
66513         * modules/error (Makefile.am): Likewise.
66514         * modules/euidaccess (Makefile.am): Likewise.
66515         * modules/exclude (Makefile.am): Likewise.
66516         * modules/exitfail (Makefile.am): Likewise.
66517         * modules/fcntl-safer (Makefile.am): Likewise.
66518         * modules/fcntl (Makefile.am): Likewise.
66519         * modules/file-type (Makefile.am): Likewise.
66520         * modules/fileblocks (Makefile.am): Likewise.
66521         * modules/filemode (Makefile.am): Likewise.
66522         * modules/filenamecat (Makefile.am): Likewise.
66523         * modules/fnmatch (Makefile.am): Likewise.
66524         * modules/fopen-safer (Makefile.am): Likewise.
66525         * modules/fpending (Makefile.am): Likewise.
66526         * modules/fprintftime (Makefile.am): Likewise.
66527         * modules/free (Makefile.am): Likewise.
66528         * modules/fsusage (Makefile.am): Likewise.
66529         * modules/ftruncate (Makefile.am): Likewise.
66530         * modules/fts (Makefile.am): Likewise.
66531         * modules/gc-arcfour (Makefile.am): Likewise.
66532         * modules/gc-des (Makefile.am): Likewise.
66533         * modules/gc-hmac-md5 (Makefile.am): Likewise.
66534         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
66535         * modules/gc-md4 (Makefile.am): Likewise.
66536         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
66537         * modules/gc-sha1 (Makefile.am): Likewise.
66538         * modules/gc (Makefile.am): Likewise.
66539         * modules/getaddrinfo (Makefile.am): Likewise.
66540         * modules/getcwd (Makefile.am): Likewise.
66541         * modules/getdelim (Makefile.am): Likewise.
66542         * modules/getdomainname (Makefile.am): Likewise.
66543         * modules/getgroups (Makefile.am): Likewise.
66544         * modules/gethostname (Makefile.am): Likewise.
66545         * modules/gethrxtime (Makefile.am): Likewise.
66546         * modules/getline (Makefile.am): Likewise.
66547         * modules/getloadavg (Makefile.am): Likewise.
66548         * modules/getlogin_r (Makefile.am): Likewise.
66549         * modules/getndelim2 (Makefile.am): Likewise.
66550         * modules/getopt (Makefile.am): Likewise.
66551         * modules/getpagesize (Makefile.am): Likewise.
66552         * modules/getpass-gnu (Makefile.am): Likewise.
66553         * modules/getpass (Makefile.am): Likewise.
66554         * modules/getsubopt (Makefile.am): Likewise.
66555         * modules/gettime (Makefile.am): Likewise.
66556         * modules/gettimeofday (Makefile.am): Likewise.
66557         * modules/getugroups (Makefile.am): Likewise.
66558         * modules/getusershell (Makefile.am): Likewise.
66559         * modules/glob (Makefile.am): Likewise.
66560         * modules/group-member (Makefile.am): Likewise.
66561         * modules/hard-locale (Makefile.am): Likewise.
66562         * modules/hash (Makefile.am): Likewise.
66563         * modules/hmac-md5 (Makefile.am): Likewise.
66564         * modules/hmac-sha1 (Makefile.am): Likewise.
66565         * modules/human (Makefile.am): Likewise.
66566         * modules/idcache (Makefile.am): Likewise.
66567         * modules/imaxabs (Makefile.am): Likewise.
66568         * modules/imaxdiv (Makefile.am): Likewise.
66569         * modules/inet_ntop (Makefile.am): Likewise.
66570         * modules/inet_pton (Makefile.am): Likewise.
66571         * modules/intprops (Makefile.am): Likewise.
66572         * modules/inttostr (Makefile.am): Likewise.
66573         * modules/inttypes (Makefile.am): Likewise.
66574         * modules/isapipe (Makefile.am): Likewise.
66575         * modules/javaversion (Makefile.am): Likewise.
66576         * modules/lchmod (Makefile.am): Likewise.
66577         * modules/lchown (Makefile.am): Likewise.
66578         * modules/localcharset (Makefile.am): Likewise.
66579         * modules/long-options (Makefile.am): Likewise.
66580         * modules/lstat (Makefile.am): Likewise.
66581         * modules/malloc (Makefile.am): Likewise.
66582         * modules/mathl (Makefile.am): Likewise.
66583         * modules/mbchar (Makefile.am): Likewise.
66584         * modules/md2 (Makefile.am): Likewise.
66585         * modules/md4 (Makefile.am): Likewise.
66586         * modules/md5 (Makefile.am): Likewise.
66587         * modules/memcasecmp (Makefile.am): Likewise.
66588         * modules/memchr (Makefile.am): Likewise.
66589         * modules/memcmp (Makefile.am): Likewise.
66590         * modules/memcoll (Makefile.am): Likewise.
66591         * modules/memcpy (Makefile.am): Likewise.
66592         * modules/memmem (Makefile.am): Likewise.
66593         * modules/memmove (Makefile.am): Likewise.
66594         * modules/mempcpy (Makefile.am): Likewise.
66595         * modules/memrchr (Makefile.am): Likewise.
66596         * modules/memset (Makefile.am): Likewise.
66597         * modules/memxor (Makefile.am): Likewise.
66598         * modules/mkancesdirs (Makefile.am): Likewise.
66599         * modules/mkdir-p (Makefile.am): Likewise.
66600         * modules/mkdir (Makefile.am): Likewise.
66601         * modules/mkdtemp (Makefile.am): Likewise.
66602         * modules/mkstemp (Makefile.am): Likewise.
66603         * modules/mktime (Makefile.am): Likewise.
66604         * modules/modechange (Makefile.am): Likewise.
66605         * modules/mountlist (Makefile.am): Likewise.
66606         * modules/nanosleep (Makefile.am): Likewise.
66607         * modules/obstack (Makefile.am): Likewise.
66608         * modules/openat (Makefile.am): Likewise.
66609         * modules/pagealign_alloc (Makefile.am): Likewise.
66610         * modules/pathmax (Makefile.am): Likewise.
66611         * modules/physmem (Makefile.am): Likewise.
66612         * modules/poll (Makefile.am): Likewise.
66613         * modules/posixtm (Makefile.am): Likewise.
66614         * modules/posixver (Makefile.am): Likewise.
66615         * modules/putenv (Makefile.am): Likewise.
66616         * modules/quote (Makefile.am): Likewise.
66617         * modules/quotearg (Makefile.am): Likewise.
66618         * modules/raise (Makefile.am): Likewise.
66619         * modules/read-file (Makefile.am): Likewise.
66620         * modules/readline (Makefile.am): Likewise.
66621         * modules/readlink (Makefile.am): Likewise.
66622         * modules/readtokens (Makefile.am): Likewise.
66623         * modules/readutmp (Makefile.am): Likewise.
66624         * modules/realloc (Makefile.am): Likewise.
66625         * modules/regex (Makefile.am): Likewise.
66626         * modules/rename-dest-slash (Makefile.am): Likewise.
66627         * modules/rename (Makefile.am): Likewise.
66628         * modules/rijndael (Makefile.am): Likewise.
66629         * modules/rmdir (Makefile.am): Likewise.
66630         * modules/rpmatch (Makefile.am): Likewise.
66631         * modules/safe-read (Makefile.am): Likewise.
66632         * modules/safe-write (Makefile.am): Likewise.
66633         * modules/same-inode (Makefile.am): Likewise.
66634         * modules/same (Makefile.am): Likewise.
66635         * modules/save-cwd (Makefile.am): Likewise.
66636         * modules/savedir (Makefile.am): Likewise.
66637         * modules/setenv (Makefile.am): Likewise.
66638         * modules/settime (Makefile.am): Likewise.
66639         * modules/sha1 (Makefile.am): Likewise.
66640         * modules/sig2str (Makefile.am): Likewise.
66641         * modules/snprintf (Makefile.am): Likewise.
66642         * modules/stat-macros (Makefile.am): Likewise.
66643         * modules/stat-time (Makefile.am): Likewise.
66644         * modules/stdbool (Makefile.am): Likewise.
66645         * modules/stdint (Makefile.am): Likewise.
66646         * modules/stdlib-safer (Makefile.am): Likewise.
66647         * modules/stpcpy (Makefile.am): Likewise.
66648         * modules/stpncpy (Makefile.am): Likewise.
66649         * modules/strcase (Makefile.am): Likewise.
66650         * modules/strcasestr (Makefile.am): Likewise.
66651         * modules/strchrnul (Makefile.am): Likewise.
66652         * modules/strcspn (Makefile.am): Likewise.
66653         * modules/strdup (Makefile.am): Likewise.
66654         * modules/strerror (Makefile.am): Likewise.
66655         * modules/strftime (Makefile.am): Likewise.
66656         * modules/strndup (Makefile.am): Likewise.
66657         * modules/strnlen (Makefile.am): Likewise.
66658         * modules/strpbrk (Makefile.am): Likewise.
66659         * modules/strsep (Makefile.am): Likewise.
66660         * modules/strstr (Makefile.am): Likewise.
66661         * modules/strtod (Makefile.am): Likewise.
66662         * modules/strtoimax (Makefile.am): Likewise.
66663         * modules/strtok_r (Makefile.am): Likewise.
66664         * modules/strtol (Makefile.am): Likewise.
66665         * modules/strtoll (Makefile.am): Likewise.
66666         * modules/strtoul (Makefile.am): Likewise.
66667         * modules/strtoull (Makefile.am): Likewise.
66668         * modules/strtoumax (Makefile.am): Likewise.
66669         * modules/strverscmp (Makefile.am): Likewise.
66670         * modules/sys_socket (Makefile.am): Likewise.
66671         * modules/sys_stat (Makefile.am): Likewise.
66672         * modules/sysexits (Makefile.am): Likewise.
66673         * modules/time_r (Makefile.am): Likewise.
66674         * modules/timegm (Makefile.am): Likewise.
66675         * modules/timespec (Makefile.am): Likewise.
66676         * modules/tmpfile-safer (Makefile.am): Likewise.
66677         * modules/trim (Makefile.am): Likewise.
66678         * modules/unistd-safer (Makefile.am): Likewise.
66679         * modules/unlinkdir (Makefile.am): Likewise.
66680         * modules/unlocked-io (Makefile.am): Likewise.
66681         * modules/userspec (Makefile.am): Likewise.
66682         * modules/utime (Makefile.am): Likewise.
66683         * modules/utimecmp (Makefile.am): Likewise.
66684         * modules/utimens (Makefile.am): Likewise.
66685         * modules/vasnprintf (Makefile.am): Likewise.
66686         * modules/vasprintf (Makefile.am): Likewise.
66687         * modules/vsnprintf (Makefile.am): Likewise.
66688         * modules/xalloc (Makefile.am): Likewise.
66689         * modules/xgetcwd (Makefile.am): Likewise.
66690         * modules/xnanosleep (Makefile.am): Likewise.
66691         * modules/xreadlink (Makefile.am): Likewise.
66692         * modules/xstrtod (Makefile.am): Likewise.
66693         * modules/xstrtol (Makefile.am): Likewise.
66694         * modules/xstrtold (Makefile.am): Likewise.
66695         * modules/yesno (Makefile.am): Likewise.
66696         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
66697
66698 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
66699
66700         * modules/error (Makefile.am): Distribute files through
66701         EXTRA_DIST, not lib_SOURCES.
66702
66703 2006-10-12  Eric Blake  <ebb9@byu.net>
66704
66705         * modules/error (Makefile.am): Distribute files in /lib.
66706         * modules/obstack (Makefile.am): Likewise.
66707
66708 2006-10-12  Bruno Haible  <bruno@clisp.org>
66709
66710         * modules/acl (Makefile.am): Distribute all files in lib/ through
66711         EXTRA_DIST.
66712         * modules/arcfour (Makefile.am): Likewise.
66713         * modules/arctwo (Makefile.am): Likewise.
66714         * modules/argmatch (Makefile.am): Likewise.
66715         * modules/argz (Makefile.am): Likewise.
66716         * modules/atexit (Makefile.am): Likewise.
66717         * modules/backupfile (Makefile.am): Likewise.
66718         * modules/c-strtod (Makefile.am): Likewise.
66719         * modules/c-strtold (Makefile.am): Likewise.
66720         * modules/calloc (Makefile.am): Likewise.
66721         * modules/canon-host (Makefile.am): Likewise.
66722         * modules/canonicalize (Makefile.am): Likewise.
66723         * modules/chdir-long (Makefile.am): Likewise.
66724         * modules/chdir-safer (Makefile.am): Likewise.
66725         * modules/check-version (Makefile.am): Likewise.
66726         * modules/chown (Makefile.am): Likewise.
66727         * modules/cloexec (Makefile.am): Likewise.
66728         * modules/close-stream (Makefile.am): Likewise.
66729         * modules/closeout (Makefile.am): Likewise.
66730         * modules/crc (Makefile.am): Likewise.
66731         * modules/cycle-check (Makefile.am): Likewise.
66732         * modules/des (Makefile.am): Likewise.
66733         * modules/dirfd (Makefile.am): Likewise.
66734         * modules/dirname (Makefile.am): Likewise.
66735         * modules/dup2 (Makefile.am): Likewise.
66736         * modules/euidaccess (Makefile.am): Likewise.
66737         * modules/exclude (Makefile.am): Likewise.
66738         * modules/exitfail (Makefile.am): Likewise.
66739         * modules/fcntl-safer (Makefile.am): Likewise.
66740         * modules/file-type (Makefile.am): Likewise.
66741         * modules/fileblocks (Makefile.am): Likewise.
66742         * modules/filemode (Makefile.am): Likewise.
66743         * modules/filenamecat (Makefile.am): Likewise.
66744         * modules/fnmatch (Makefile.am): Likewise.
66745         * modules/fopen-safer (Makefile.am): Likewise.
66746         * modules/fpending (Makefile.am): Likewise.
66747         * modules/fprintftime (Makefile.am): Likewise.
66748         * modules/free (Makefile.am): Likewise.
66749         * modules/fsusage (Makefile.am): Likewise.
66750         * modules/ftruncate (Makefile.am): Likewise.
66751         * modules/fts (Makefile.am): Likewise.
66752         * modules/gc (Makefile.am): Likewise.
66753         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
66754         * modules/getaddrinfo (Makefile.am): Likewise.
66755         * modules/getcwd (Makefile.am): Likewise.
66756         * modules/getdelim (Makefile.am): Likewise.
66757         * modules/getdomainname (Makefile.am): Likewise.
66758         * modules/getgroups (Makefile.am): Likewise.
66759         * modules/gethostname (Makefile.am): Likewise.
66760         * modules/gethrxtime (Makefile.am): Likewise.
66761         * modules/getline (Makefile.am): Likewise.
66762         * modules/getloadavg (Makefile.am): Likewise.
66763         * modules/getlogin_r (Makefile.am): Likewise.
66764         * modules/getopt (Makefile.am): Likewise.
66765         * modules/getpass (Makefile.am): Likewise.
66766         * modules/getpass-gnu (Makefile.am): Likewise.
66767         * modules/getsubopt (Makefile.am): Likewise.
66768         * modules/gettime (Makefile.am): Likewise.
66769         * modules/gettimeofday (Makefile.am): Likewise.
66770         * modules/getugroups (Makefile.am): Likewise.
66771         * modules/getusershell (Makefile.am): Likewise.
66772         * modules/glob (Makefile.am): Likewise.
66773         * modules/group-member (Makefile.am): Likewise.
66774         * modules/hard-locale (Makefile.am): Likewise.
66775         * modules/hash (Makefile.am): Likewise.
66776         * modules/hmac-md5 (Makefile.am): Likewise.
66777         * modules/hmac-sha1 (Makefile.am): Likewise.
66778         * modules/human (Makefile.am): Likewise.
66779         * modules/idcache (Makefile.am): Likewise.
66780         * modules/imaxabs (Makefile.am): Likewise.
66781         * modules/imaxdiv (Makefile.am): Likewise.
66782         * modules/inet_ntop (Makefile.am): Likewise.
66783         * modules/inet_pton (Makefile.am): Likewise.
66784         * modules/inttostr (Makefile.am): Likewise.
66785         * modules/isapipe (Makefile.am): Likewise.
66786         * modules/lchown (Makefile.am): Likewise.
66787         * modules/long-options (Makefile.am): Likewise.
66788         * modules/lstat (Makefile.am): Likewise.
66789         * modules/malloc (Makefile.am): Likewise.
66790         * modules/mathl (Makefile.am): Likewise.
66791         * modules/mbchar (Makefile.am): Likewise.
66792         * modules/md2 (Makefile.am): Likewise.
66793         * modules/md4 (Makefile.am): Likewise.
66794         * modules/md5 (Makefile.am): Likewise.
66795         * modules/memcasecmp (Makefile.am): Likewise.
66796         * modules/memchr (Makefile.am): Likewise.
66797         * modules/memcmp (Makefile.am): Likewise.
66798         * modules/memcoll (Makefile.am): Likewise.
66799         * modules/memcpy (Makefile.am): Likewise.
66800         * modules/memmem (Makefile.am): Likewise.
66801         * modules/memmove (Makefile.am): Likewise.
66802         * modules/mempcpy (Makefile.am): Likewise.
66803         * modules/memrchr (Makefile.am): Likewise.
66804         * modules/memset (Makefile.am): Likewise.
66805         * modules/memxor (Makefile.am): Likewise.
66806         * modules/mkancesdirs (Makefile.am): Likewise.
66807         * modules/mkdir (Makefile.am): Likewise.
66808         * modules/mkdir-p (Makefile.am): Likewise.
66809         * modules/mkdtemp (Makefile.am): Likewise.
66810         * modules/mkstemp (Makefile.am): Likewise.
66811         * modules/mktime (Makefile.am): Likewise.
66812         * modules/modechange (Makefile.am): Likewise.
66813         * modules/mountlist (Makefile.am): Likewise.
66814         * modules/nanosleep (Makefile.am): Likewise.
66815         * modules/openat (Makefile.am): Likewise.
66816         * modules/pagealign_alloc (Makefile.am): Likewise.
66817         * modules/physmem (Makefile.am): Likewise.
66818         * modules/poll (Makefile.am): Likewise.
66819         * modules/posixtm (Makefile.am): Likewise.
66820         * modules/posixver (Makefile.am): Likewise.
66821         * modules/putenv (Makefile.am): Likewise.
66822         * modules/quote (Makefile.am): Likewise.
66823         * modules/quotearg (Makefile.am): Likewise.
66824         * modules/raise (Makefile.am): Likewise.
66825         * modules/read-file (Makefile.am): Likewise.
66826         * modules/readline (Makefile.am): Likewise.
66827         * modules/readlink (Makefile.am): Likewise.
66828         * modules/readtokens (Makefile.am): Likewise.
66829         * modules/readutmp (Makefile.am): Likewise.
66830         * modules/realloc (Makefile.am): Likewise.
66831         * modules/regex (Makefile.am): Likewise.
66832         * modules/rename (Makefile.am): Likewise.
66833         * modules/rename-dest-slash (Makefile.am): Likewise.
66834         * modules/rijndael (Makefile.am): Likewise.
66835         * modules/rmdir (Makefile.am): Likewise.
66836         * modules/rpmatch (Makefile.am): Likewise.
66837         * modules/safe-read (Makefile.am): Likewise.
66838         * modules/safe-write (Makefile.am): Likewise.
66839         * modules/same (Makefile.am): Likewise.
66840         * modules/save-cwd (Makefile.am): Likewise.
66841         * modules/savedir (Makefile.am): Likewise.
66842         * modules/setenv (Makefile.am): Likewise.
66843         * modules/settime (Makefile.am): Likewise.
66844         * modules/sha1 (Makefile.am): Likewise.
66845         * modules/sig2str (Makefile.am): Likewise.
66846         * modules/snprintf (Makefile.am): Likewise.
66847         * modules/stdlib-safer (Makefile.am): Likewise.
66848         * modules/stpcpy (Makefile.am): Likewise.
66849         * modules/stpncpy (Makefile.am): Likewise.
66850         * modules/strcase (Makefile.am): Likewise.
66851         * modules/strcasestr (Makefile.am): Likewise.
66852         * modules/strchrnul (Makefile.am): Likewise.
66853         * modules/strcspn (Makefile.am): Likewise.
66854         * modules/strdup (Makefile.am): Likewise.
66855         * modules/strerror (Makefile.am): Likewise.
66856         * modules/strftime (Makefile.am): Likewise.
66857         * modules/strndup (Makefile.am): Likewise.
66858         * modules/strnlen (Makefile.am): Likewise.
66859         * modules/strpbrk (Makefile.am): Likewise.
66860         * modules/strsep (Makefile.am): Likewise.
66861         * modules/strstr (Makefile.am): Likewise.
66862         * modules/strtod (Makefile.am): Likewise.
66863         * modules/strtoimax (Makefile.am): Likewise.
66864         * modules/strtok_r (Makefile.am): Likewise.
66865         * modules/strtol (Makefile.am): Likewise.
66866         * modules/strtoll (Makefile.am): Likewise.
66867         * modules/strtoul (Makefile.am): Likewise.
66868         * modules/strtoull (Makefile.am): Likewise.
66869         * modules/strtoumax (Makefile.am): Likewise.
66870         * modules/strverscmp (Makefile.am): Likewise.
66871         * modules/time_r (Makefile.am): Likewise.
66872         * modules/timegm (Makefile.am): Likewise.
66873         * modules/tmpfile-safer (Makefile.am): Likewise.
66874         * modules/unistd-safer (Makefile.am): Likewise.
66875         * modules/unlinkdir (Makefile.am): Likewise.
66876         * modules/userspec (Makefile.am): Likewise.
66877         * modules/utime (Makefile.am): Likewise.
66878         * modules/utimecmp (Makefile.am): Likewise.
66879         * modules/utimens (Makefile.am): Likewise.
66880         * modules/vasnprintf (Makefile.am): Likewise.
66881         * modules/vasprintf (Makefile.am): Likewise.
66882         * modules/vsnprintf (Makefile.am): Likewise.
66883         * modules/xalloc (Makefile.am): Likewise.
66884         * modules/xgetcwd (Makefile.am): Likewise.
66885         * modules/xnanosleep (Makefile.am): Likewise.
66886         * modules/xreadlink (Makefile.am): Likewise.
66887         * modules/xstrtod (Makefile.am): Likewise.
66888         * modules/xstrtol (Makefile.am): Likewise.
66889         * modules/xstrtold (Makefile.am): Likewise.
66890         * modules/yesno (Makefile.am): Likewise.
66891
66892 2006-10-12  Jim Meyering  <jim@meyering.net>
66893
66894         * m4/getloadavg.m4: Revert the change below.
66895
66896         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
66897         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
66898         fail with a symlink, which is what coreutils' ./bootstrap now
66899         creates by default.
66900
66901 2006-10-12  Bruno Haible  <bruno@clisp.org>
66902
66903         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
66904         mingw.
66905         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
66906         MSVC and mingw explicitly.
66907
66908 2006-10-11  Simon Josefsson  <jas@extundo.com>
66909             Bruno Haible  <bruno@clisp.org>
66910
66911         Add support for multiple gnulib-tool invocations in the scope of a
66912         single configure.ac file.
66913         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
66914         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
66915         with the same contents as the _LIBADD variable.
66916         (func_emit_initmacro_start, func_emit_initmacro_end,
66917         func_emit_initmacro_done): New functions.
66918         (func_import, func_create_testdir): Invoke them. Allow the identifiers
66919         gl_LIBOBJS and gl_LTLIBOBJS.
66920
66921 2006-10-11  Bruno Haible  <bruno@clisp.org>
66922
66923         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
66924         (func_create_testdir): Don't create po/Makefile.am, don't invoke
66925         autoreconf. Instead, invoke autopoint explicitly but move back the
66926         *.m4 files from gnulib.
66927
66928 2006-10-11  Bruno Haible  <bruno@clisp.org>
66929
66930         * gnulib-tool (func_usage): Make module names after --create-testdir
66931         optional.
66932         (func_create_testdir): If no module was specified, use nearly all
66933         modules.
66934
66935 2006-10-12  Jim Meyering  <jim@meyering.net>
66936
66937         Big performance improvement for fts-based tools that use FTS_NOSTAT.
66938         Avoid spurious inode-mismatch problems on non-POSIX file systems.
66939         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
66940         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
66941         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
66942         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
66943         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
66944         (fts_set_stat_required): New function.
66945         (fts_open): Defer the calls to fts_stat, if possible or requested.
66946         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
66947         into fts_stat itself.
66948         (fts_read): Perform any required (deferred) fts_stat call.
66949         (fts_build): Likewise, for the directory we're about to open and read.
66950         In the readdir loop, carefully decide whether each entry will require
66951         an eventual call to fts_stat, using dirent.d_type info if available.
66952         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
66953         a command line argument into this function.  Update all callers.
66954         Map a return value of FTS_DOT to FTS_D for a command line argument.
66955         * modules/fts (Depends-on): Add d-type.  Alphabetize.
66956         Thanks to Miklos Szeredi for his tenacity and for the initial
66957         bug report about "find" failing on a FUSE-based file system.
66958
66959         * lib/fts.c (fts_open): Use consistent indentation.
66960
66961 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
66962
66963         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
66964         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
66965         reported by Jim Meyering.  All uses of cache variables renamed
66966         to match Autoconf's.
66967         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
66968         the other one.
66969
66970         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
66971         Fix misspelling in diagnostic.
66972
66973 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
66974
66975         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
66976         defined.  Problem reported by Matthew Woehlke.
66977
66978         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
66979         Add support for Tandem NonStop R series.
66980         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
66981         Use new macro.
66982
66983         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
66984         (has_trailing_slash): Omit size arg; all callers changed.
66985         Omit 'inline', since it doesn't help performance and we'd
66986         need to configure it.
66987         Don't count //, ///, etc. as having a trailing slash.
66988         As a side effect, this removes a C99ism reported by Matthew Woehlke.
66989         (rpl_rename_dest_slash): On failure, use rename's errno rather
66990         than (in some cases) an incorrect or junk errno.
66991         Simplify code by removing need to compute length; this does
66992         cause it to make two passes instead of one over the file name,
66993         but it's worth it.
66994
66995         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
66996         change, since Autoconf's version may no longer be appropriate now
66997         that we are using CVS Autoconf's version.  Add support for Tandem.
66998
66999 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
67000             Bruno Haible  <bruno@clisp.org>
67001
67002         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
67003         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
67004         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
67005         gl_AC_TYPE_LONG_LONG.
67006
67007         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
67008         instead of HAVE_LONG_LONG.
67009         * lib/printf-args.c (printf_fetchargs): Likewise.
67010         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
67011         * lib/vasnprintf.c (VASNPRINTF): Likewise.
67012         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
67013         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
67014         gl_AC_TYPE_LONG_LONG.
67015
67016 2006-10-11  Bruno Haible  <bruno@clisp.org>
67017
67018         * m4/longlong.m4: Add comments.
67019         * m4/ulonglong.m4: Likewise.
67020
67021 2006-10-10  Bruno Haible  <bruno@clisp.org>
67022
67023         Make it possible to #define stpcpy, strdup to aliases.
67024         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
67025         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
67026
67027 2006-10-10  Bruno Haible  <bruno@clisp.org>
67028
67029         Make it possible to #define gcd to an alias.
67030         * lib/gcd.c: Include config.h.
67031
67032 2006-10-10  Bruno Haible  <bruno@clisp.org>
67033
67034         Make it possible to #define c_isascii to an alias.
67035         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
67036         defined. Undefine the macros before defining them, to avoid gcc
67037         warnings.
67038         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
67039         define NO_C_CTYPE_MACROS early.
67040
67041 2006-10-10  Bruno Haible  <bruno@clisp.org>
67042
67043         Make it possible to #define set_program_name to an alias.
67044         * lib/progname.c: Don't undefine set_program_name; instead, undefine
67045         ENABLE_RELOCATABLE early.
67046
67047 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
67048
67049         Port to Tandem NSK OSS, which has 64-bit signed int but at most
67050         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
67051         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
67052         More generally, don't assume that 64-bit signed int is available
67053         if unsigned int is, and vice versa.
67054         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
67055         unsigned symbols, not on their signed counterparts.
67056         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
67057         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
67058         (UINT64_C, UINTMAX_C):
67059         Likewise.
67060         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
67061         unsigned counterparts.
67062         (Have_long_long, Unsigned): New macros.
67063         (Int): Renamed from INT.
67064         (strtoimax): Use the new macros.
67065         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
67066         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
67067         * modules/inttypes (inttypes.h): Substitute
67068         HAVE_UNSIGNED_LONG_LONG_INT.
67069         * modules/stdint (stdint.h): Likewise.
67070         (Files): Add m4/ulonglong.m4.
67071
67072 2006-10-10  Bruno Haible  <bruno@clisp.org>
67073
67074         Fix a gcc -Wshadow warning.
67075         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
67076         to 'bucket'.
67077         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
67078         gl_linked_indexof_from_to): Likewise.
67079         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
67080         Likewise.
67081         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
67082         Likewise.
67083         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
67084         Reported by Eric Blake.
67085
67086 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
67087
67088         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
67089         for NetBSD.  Problem reported by Bruno Haible.
67090
67091 2006-10-09  Jim Meyering  <jim@meyering.net>
67092
67093         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
67094         Patch from Bruno Haible.
67095
67096 2006-10-09  Jim Meyering  <jim@meyering.net>
67097
67098         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
67099         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
67100         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
67101
67102 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
67103
67104         Don't include <config.h> twice; this doesn't work in some cases,
67105         e.g., when config.h has "#define intmax_t long long int" and
67106         we include <config.h>, <inttypes.h>, <config.h> in that order.
67107         Problem reported by Matthew Woehlke in:
67108         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
67109         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
67110         * lib/fts-cycle.c: Don't include config.h.
67111         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
67112         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
67113         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
67114         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
67115         inttypes.h.
67116         * lib/xstrtoumax.c: Likewise.
67117         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
67118         __strtol and the like, so that this module is more like its siblings.
67119         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
67120         Remove; no longer needed now that we assume gnulib inttypes.h.
67121
67122 2006-10-08  Bruno Haible  <bruno@clisp.org>
67123
67124         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
67125         option.
67126
67127 2006-10-07  Jim Meyering  <jim@meyering.net>
67128
67129         * modules/inttypes (inttypes.h): Revert what seems to have been
67130         an inadvertent part of today's change: use "|", not "/" in the
67131         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
67132
67133 2006-10-07  Bruno Haible  <bruno@clisp.org>
67134
67135         * modules/sublist: New file.
67136
67137 2006-10-07  Bruno Haible  <bruno@clisp.org>
67138
67139         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
67140         * modules/argz (argz.h): Likewise.
67141         * modules/arpa_inet (arpa/inet.h): Likewise.
67142         * modules/byteswap (byteswap.h): Likewise.
67143         * modules/configmake (configmake.h): Likewise.
67144         * modules/fcntl (fcntl.h): Likewise.
67145         * modules/fnmatch (fnmatch.h): Likewise.
67146         * modules/getopt (getopt.h): Likewise.
67147         * modules/glob (glob.h): Likewise.
67148         * modules/inttypes (inttypes.h): Likewise.
67149         * modules/netinet_in (netinet/in.h): Likewise.
67150         * modules/poll (poll.h): Likewise.
67151         * modules/stdbool (stdbool.h): Likewise.
67152         * modules/stdint (stdint.h): Likewise.
67153         * modules/sys_select (sys/select.h): Likewise.
67154         * modules/sys_socket (sys/socket.h): Likewise.
67155         * modules/sys_stat (sys/stat.h): Likewise.
67156         * modules/sysexits (sysexits.h): Likewise.
67157         * modules/unistd (unistd.h): Likewise.
67158         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
67159         Add a "DO NOT EDIT" comment to the generated file.
67160         (func_import): Likewise for gnulib-comp.m4.
67161
67162 2006-10-07  Bruno Haible  <bruno@clisp.org>
67163
67164         * lib/gl_sublist.h: New file.
67165         * lib/gl_sublist.c: New file.
67166
67167 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
67168
67169         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
67170         name (relative to the original working directory) and the file
67171         name component (relative to the temporary working directory).  All
67172         callers changed.
67173         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
67174         * lib/mkdir-p.c (make_dir_parents): Likewise.
67175         * lib/mkdir-p.h (make_dir_parents): Likewise.
67176
67177 2006-10-06  Eric Blake  <ebb9@byu.net>
67178
67179         Define several macros for use by the clean-temp module.
67180         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
67181         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
67182         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
67183
67184         * lib/clean-temp.h (close_stream_temp): New declaration.
67185         * lib/clean-temp.c (includes): Pull in headers according to what
67186         other modules are in use.
67187         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
67188
67189 2006-10-06  Bruno Haible  <bruno@clisp.org>
67190
67191         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
67192         instead of fopen, fwriteerror.
67193
67194 2006-10-06  Bruno Haible  <bruno@clisp.org>
67195
67196         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
67197         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
67198         int.
67199         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
67200         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
67201         Return an error indicator.
67202         Suggested by Eric Blake.
67203
67204 2006-10-06  Bruno Haible  <bruno@clisp.org>
67205
67206         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
67207         Reported by Eric Blake.
67208
67209 2006-10-06  Bruno Haible  <bruno@clisp.org>
67210
67211         * modules/closeout (Description): Mention stderr too.
67212
67213 2006-10-06  Bruno Haible  <bruno@clisp.org>
67214         and Paul Eggert  <eggert@cs.ucla.edu>
67215
67216         * lib/closeout.c (close_stdout): Also close stderr.
67217         * lib/closeout.h: Update comment.
67218
67219 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
67220
67221         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
67222         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
67223         * lib/dirchownmod.c: Include lchown.h.
67224         * lib/lchown.c: Don't include files that lchown.h now includes.
67225         Don't declare chown, since lchown.h now does that.
67226         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
67227         (lchown): Define to rpl_chown if lchown is declared but
67228         does not exist.  Declare using a prototype if lchown is not
67229         declared.  Add a copyright notice.
67230         * lib/mkstemp.h: Include <unistd.h>.
67231         * lib/openat.c: Include lchown.h.
67232
67233         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
67234         we now test for that separately.
67235         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
67236         rather than O_NOFOLLOW, when testing whether it's possible to
67237         avoid a race condition reliably.
67238         * lib/savewd.c (savewd_chdir): Likewise.
67239
67240         Remove macros that are no longer needed now that stdint.h is
67241         reliable.
67242         * lib/fsusage.c (UINTMAX_MAX): Remove.
67243         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
67244         * lib/utimecmp.c (SIZE_MAX): Remove.
67245
67246         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
67247
67248         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
67249         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
67250         O_NOATIME works.
67251
67252 2006-10-05  Bruno Haible  <bruno@clisp.org>
67253
67254         * lib/gl_list.h (gl_sortedlist_search_from_to,
67255         gl_sortedlist_indexof_from_to): New declarations.
67256         (gl_list_implementation): New fields sortedlist_search_from_to,
67257         sortedlist_indexof_from_to.
67258         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
67259         inline functions.
67260         * lib/gl_list.c (gl_sortedlist_search_from_to,
67261         gl_sortedlist_indexof_from_to): New functions.
67262         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
67263         function.
67264         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
67265         (gl_array_sortedlist_search_from_to): New function.
67266         (gl_array_list_implementation): Update.
67267         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
67268         function.
67269         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
67270         (gl_carray_sortedlist_search_from_to): New function.
67271         (gl_carray_list_implementation): Update.
67272         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
67273         gl_linked_sortedlist_indexof_from_to): New functions.
67274         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
67275         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
67276         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
67277         gl_tree_sortedlist_indexof_from_to): New functions.
67278         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
67279         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
67280         Update.
67281         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
67282         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
67283         Update.
67284
67285 2006-10-05  Bruno Haible  <bruno@clisp.org>
67286
67287         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
67288         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
67289         (struct gl_list_implementation): Add fields search_from_to,
67290         indexof_from_to. Remove fields search, indexof.
67291         (gl_list_search): Use the search_from_to method.
67292         (gl_list_search_from, gl_list_search_from_to): New functions.
67293         (gl_list_indexof): Use the indexof_from_to method.
67294         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
67295         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
67296         (gl_list_search_from, gl_list_search_from_to): New functions.
67297         (gl_list_indexof): Use the indexof_from_to method.
67298         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
67299         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
67300         gl_array_indexof. Add start_index, end_index arguments.
67301         (gl_array_search_from_to): Renamed from gl_array_search. Add
67302         start_index, end_index arguments.
67303         (gl_array_remove, gl_array_list_implementation): Update.
67304         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
67305         gl_carray_indexof. Add start_index, end_index arguments.
67306         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
67307         start_index, end_index arguments.
67308         (gl_carray_remove, gl_carray_list_implementation): Update.
67309         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
67310         gl_linked_search. Add start_index, end_index arguments.
67311         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
67312         start_index, end_index arguments.
67313         (gl_linked_remove): Update.
67314         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
67315         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
67316         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
67317         field to 'size_t'.
67318         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
67319         gl_tree_search. Add start_index, end_index arguments.
67320         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
67321         start_index, end_index arguments.
67322         (gl_tree_remove): Update.
67323         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
67324         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
67325         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
67326         function.
67327         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
67328         gl_tree_search. Add start_index, end_index arguments.
67329         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
67330         start_index, end_index arguments.
67331         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
67332         Update.
67333         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
67334
67335 2006-10-05  Bruno Haible  <bruno@clisp.org>
67336
67337         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
67338
67339         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
67340         fwriteerror_temp): New declarations.
67341         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
67342         (descriptors): New variable.
67343         (cleanup): First, close the descriptors.
67344         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
67345         fclose_temp, fwriteerror_temp): New functions.
67346
67347 2006-10-04  Jim Meyering  <jim@meyering.net>
67348
67349         * lib/fts.c (fts_open): Tiny comment change.
67350
67351 2006-10-04  Bruno Haible  <bruno@clisp.org>
67352
67353         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
67354         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
67355         gl_LOCK_BODY.
67356         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
67357         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
67358         gl_LOCK_EARLY_BODY.
67359         (gl_LOCK): Require gl_LOCK_BODY.
67360
67361 2006-10-04  Bruno Haible  <bruno@clisp.org>
67362
67363         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
67364         (gl_oset_search_atleast): New declaration.
67365         (struct gl_oset_implementation): Add field 'search_atleast'.
67366         (gl_oset_search_atleast): New inline function.
67367         * lib/gl_oset.c (gl_oset_search_atleast): New function.
67368         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
67369         (gl_array_oset_implementation): Update.
67370         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
67371         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
67372         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
67373
67374 2006-10-04  Bruno Haible  <bruno@clisp.org>
67375
67376         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
67377
67378 2006-10-03  Bruno Haible  <bruno@clisp.org>
67379
67380         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
67381         from gl_avltreehash_list_implementation.
67382
67383 2006-10-03  Bruno Haible  <bruno@clisp.org>
67384
67385         * lib/gl_oset.c (gl_oset_add): Fix return type.
67386
67387 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
67388
67389         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
67390
67391 2006-10-02  Eric Blake  <ebb9@byu.net>
67392
67393         * modules/strnlen (Depends-on): Add extensions.
67394
67395 2006-10-02  Eric Blake  <ebb9@byu.net>
67396
67397         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
67398         definition in 2.60+.
67399
67400 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
67401
67402         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
67403         checks.
67404
67405 2006-10-02  Bruno Haible  <bruno@clisp.org>
67406
67407         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
67408         to the AUTOMAKE_OPTIONS.
67409         Reported by Jim Meyering.
67410
67411 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
67412
67413         Work around bug in Solaris 10 /proc file system:
67414         /proc/self/fd/NNN/.. isn't the parent directory of
67415         the directory whose file descriptor is NNN.  This needs to
67416         be worked around at run time, not compile time, since a
67417         program might be built on Solaris 8, where things work, and
67418         run on Solaris 10.
67419         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
67420         to use the following interface instead:
67421         (OPENAT_BUFFER_SIZE): New macro.
67422         (openat_proc_name): New function.
67423         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
67424         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
67425         Likewise.
67426         * lib/openat-proc.c: New file.
67427         * modules/openat (Files): Add lib/openat-proc.c.
67428         (Depends-on): Add same-inode, stdbool.
67429         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
67430
67431 2006-09-29  Bruno Haible  <bruno@clisp.org>
67432
67433         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
67434         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
67435         argument. Set stdout_closed before testing for ferror, not after.
67436         (fwriteerror, fwriteerror_no_ebadf): New functions.
67437
67438 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67439
67440         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
67441
67442 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
67443
67444         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
67445         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
67446
67447 2006-09-28  Jim Meyering  <jim@meyering.net>
67448
67449         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
67450         Include <unistd.h>.
67451
67452 2006-09-28  Bruno Haible  <bruno@clisp.org>
67453
67454         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
67455         * modules/linkedhash-list (Depends-on): Likewise.
67456         * modules/rbtreehash-list (Depends-on): Likewise.
67457
67458 2006-09-28  Bruno Haible  <bruno@clisp.org>
67459
67460         * lib/strndup.h: Simplify the redefinition of strndup.
67461         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
67462         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
67463
67464 2006-09-28  Bruno Haible  <bruno@clisp.org>
67465
67466         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
67467         * lib/gl_linkedhash_list.c: Likewise.
67468         * lib/gl_rbtreehash_list.c: Likewise.
67469
67470 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
67471
67472         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
67473         getaddrinfo.
67474
67475         * lib/__fpending.h: Don't include <stdio_ext.h> unless
67476         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
67477         it causes <stdio_ext.h> to cause a compile-time error.
67478         Problem reported by Nelson H. F. Beebe.
67479         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
67480         of HAVE_DECL___PENDING.
67481
67482         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
67483         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
67484         declaration.
67485
67486 2006-09-27  Jim Meyering  <jim@meyering.net>
67487
67488         This file could end up with a definition for a function
67489         named __strndup, rather than rpl_strndup on a system with
67490         incomplete weak_alias support.
67491         * lib/strndup.c (strndup): Rename from __strndup.
67492         Remove #defines that used to map __strndup to strndup.
67493         Don't use K&R prototypes.
67494         Remove LIBC-related code, since this file is not sync'd with glibc.
67495         * lib/strndup.h: Revamp, accordingly.
67496         * m4/strndup.m4: Modernize.
67497
67498 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
67499
67500         * modules/savewd (Depends-on): Add 'raise'.
67501         * lib/savewd.c: Include <signal.h>, for 'raise'.
67502
67503 2006-09-26  Jim Meyering  <jim@meyering.net>
67504
67505         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
67506         when we detect Darwin 8.7.0's acl_get_file bug.
67507         Rearrange to perform the new (below) run-test while $LIBS
67508         contains any acl-related library.  Set USE_ACL at the end.
67509         (gl_ACL_GET_FILE): New function.
67510
67511 2006-09-26  Eric Blake  <ebb9@byu.net>
67512
67513         * lib/verror.c: Include <config.h> unconditionally.
67514
67515 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
67516
67517         * modules/clock-time (Maintainer): Add self.
67518         * modules/getlogin_r (Depends-on): Add extensions.
67519
67520 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67521
67522         * modules/clock-time: New module.
67523         * modules/nanosleep (Depends-on): Add clock-time.
67524         * modules/gethrxtime (Depends-on): Likewise.
67525         * modules/gettime (Depends-on): Likewise.
67526         * modules/settime (Depends-on): Likewise.
67527
67528         * modules/fts-lgpl: Depend on openat.
67529         * modules/mkancesdirs: Depend on savewd.
67530         * modules/mkdir-p: Likewise.
67531
67532 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67533
67534         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
67535
67536         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
67537         `gl_have_arbitrary_file_name_length_limit' to
67538         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
67539         actually works between configure runs.
67540
67541 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67542             Bruno Haible  <bruno@clisp.org>
67543
67544         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
67545
67546 2006-09-25  Jim Meyering  <jim@meyering.net>
67547
67548         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
67549         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
67550
67551 2006-09-25  Eric Blake  <ebb9@byu.net>
67552
67553         * gnulib-tool (func_import, func_create_testdir): Fix typos in
67554         exec's in 2006-09-18 patch when shuffling fds.
67555
67556 2006-09-25  Bruno Haible  <bruno@clisp.org>
67557
67558         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
67559         Reported by Jim Meyering.
67560
67561 2006-09-24  Jim Meyering  <jim@meyering.net>
67562
67563         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
67564         compare a pointer against a literal "0".  That caused failures with
67565         at least HP-UX's hpcc.
67566
67567 2006-09-22  Simon Josefsson  <jas@extundo.com>
67568
67569         * modules/gc-sha1:
67570         * modules/gc-md4:
67571         * modules/gc-hmac-sha1:
67572         * modules/gc-hmac-md5:
67573         * modules/gc-des:
67574         * modules/gc-arcfour: Distribute more files.
67575
67576 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67577
67578         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
67579         (gl_linked_iterator_from_to): Initialize struct completely.
67580         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
67581         (gl_tree_iterator_from_to): Likewise
67582         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
67583         * lib/gl_array_list.c [lint] (gl_array_iterator)
67584         (gl_array_iterator_from_to): Likewise.
67585         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
67586         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
67587         (gl_carray_iterator_from_to): Likewise.
67588
67589         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
67590         * lib/md4.c (md4_process_block): Remove unused variable.
67591         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
67592         parentheses for clarity.
67593
67594 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67595
67596         * modules/bison-i18n (Depends-on): Add gettext.
67597
67598 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67599
67600         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
67601         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
67602         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
67603         also add missing comma that caused broken test.
67604         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
67605         stdlib.h, for `abort'.
67606         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
67607         variables.
67608         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
67609         include unistd.h if present, for `rmdir'.
67610         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
67611         variables.
67612         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
67613         in the process include standard headers for prototypes.
67614         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
67615         gets declared on GNU/Linux.
67616         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
67617         unistd.h, for `rmdir'.
67618         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
67619
67620         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
67621         always true.
67622         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
67623
67624         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
67625
67626 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67627
67628         * gnulib-tool (func_version): Create output all at once.  This
67629         may help avoid triggering unnecessary SIGPIPEs, and at any
67630         rate it doesn't hurt.
67631
67632 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67633             Bruno Haible  <bruno@clisp.org>
67634
67635         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
67636         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
67637         * m4/signed.m4 (bh_C_SIGNED): Likewise.
67638
67639         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
67640         (gl_FUNC_VASPRINTF): Invoke it.
67641
67642 2006-09-22  Bruno Haible  <bruno@clisp.org>
67643
67644         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
67645         getloadavg.c as first argument.
67646
67647 2006-09-22  Bruno Haible  <bruno@clisp.org>
67648
67649         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
67650         at the beginning of the gl_INIT macro.
67651         * modules/getloadavg (configure.ac): Pass $gl_source_base to
67652         gl_GETLOADAVG.
67653
67654 2006-09-22  Bruno Haible  <bruno@clisp.org>
67655
67656         * gnulib-tool (func_create_megatestdir): Don't include the config-h
67657         module.
67658         Suggested by Ralf Wildenhues.
67659
67660 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
67661
67662         Import this patch from libc:
67663
67664         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
67665
67666         * lib/regex_internal.c (re_string_reconstruct): Handle
67667         offset < pstr->valid_raw_len && pstr->offsets_needed case.
67668         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
67669         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
67670         re_string_context_at.
67671
67672         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
67673         now requires it.
67674         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
67675         gl_REGEX now does it for us.
67676         (gl_REGEX): Add test taken from
67677         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
67678
67679         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
67680         Check that large offsets work.  Modernize Autoconf usages.
67681         Prefer "yes" to mean a good thing rather than a bad.
67682         Don't put "#define mkstemp" in config.h, as this might interfere
67683         with standard system headers that "#define mkstemp mkstemp64".
67684
67685         * modules/mkstemp (Depends-on): Add extensions, so that
67686         mkstemp is visible on some platforms.
67687         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
67688         (Include): Change to "mkstemp.h" from <stdlib.h>.
67689         (Files): Add mkstemp.h.
67690
67691         * lib/mkstemp.h: New file, since some standard headers
67692         #define mkstemp.
67693         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
67694         Include "mkstemp.h".
67695         Make the _LIBC code resemble glibc original more,
67696         e.g., use K&R style.
67697         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
67698         (mkstemp): Remove, since mkstemp.h does this for us.
67699         * lib/stdlib--.h: Include mkstemp.h.
67700
67701         Import this patch from libc:
67702
67703         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
67704
67705         * lib/tempname.c (__gen_tempname): Change attempts_min
67706         into a macro.  Use preprocessor to decide how to initialize
67707         attempts [Coverity CID 67].
67708
67709 2006-09-20  Bruno Haible  <bruno@clisp.org>
67710
67711         * lib/mkdtemp.c: Import from libc.
67712         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
67713                 * sysdeps/posix/tempname.c (__gen_tempname): Change
67714                 attempts_min into a macro.  Use preprocessor to decide how to
67715                 initialize attempts [Coverity CID 67].
67716         2001-11-27  Paul Eggert  <eggert@twinsun.com>
67717                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
67718                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
67719
67720 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67721
67722         * gnulib-tool (func_exit): New function, to allow to pass the
67723         exit status portably through the trap.  Use everywhere.
67724         (--help, --version): Signal a write error.
67725         (trap): catch SIGPIPE, for write errors.
67726         Exit at the end of the trap, with the correct exit status.
67727
67728 2006-09-19  Karl Berry  <karl@gnu.org>
67729
67730         * doc/gnulib.texi: note about the license texinfo files.
67731
67732 2006-09-19  Eric Blake  <ebb9@byu.net>
67733
67734         * gnulib-tool: Avoid space-tab.
67735
67736 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
67737
67738         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
67739         that prevented coreutils 6.1 from building.  Problem reported
67740         by Petter Reinholdtsen.
67741
67742 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
67743
67744         * gnulib-tool (avoidlist): Fix typo that broke options like
67745         --avoid=lock that are used by coreutils bootstrap.
67746
67747 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
67748
67749         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
67750         more systematically.
67751
67752 2006-09-18  Jim Meyering  <jim@meyering.net>
67753
67754         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
67755
67756 2006-09-18  Bruno Haible  <bruno@clisp.org>
67757
67758         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
67759
67760 2006-09-18  Bruno Haible  <bruno@clisp.org>
67761
67762         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
67763         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
67764         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
67765         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
67766         * m4/gettext.m4: Require autoconf >= 2.52.
67767         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
67768         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
67769         of gl_cv_header_inttypes_h.
67770
67771 2006-09-18  Bruno Haible  <bruno@clisp.org>
67772
67773         * lib/javaversion.c: Include configmake.h.
67774
67775 2006-09-18  Bruno Haible  <bruno@clisp.org>
67776
67777         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
67778         avoid that the while loops be executed in a subshell.
67779
67780 2006-09-18  Bruno Haible  <bruno@clisp.org>
67781
67782         * MODULES.html.sh (func_module): Break long lines.
67783         Suggested by Bruce Korb <bkorb@gnu.org>.
67784
67785 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67786
67787         Speed up by a factor of 1.12.
67788         * gnulib-tool (nl): New variable.
67789         (func_import): Rewrite include directive extraction to only read each
67790         directive once.
67791
67792 2006-09-17  Bruno Haible  <bruno@clisp.org>
67793
67794         * modules/javaversion (Makefile.am): Remove DEFS setting.
67795         (Depends-on): Add configmake, for PKGDATADIR definition.
67796
67797 2006-09-17  Bruno Haible  <bruno@clisp.org>
67798
67799         * gnulib-tool (func_create_testdir): Rewrite all files at once.
67800
67801 2006-09-17  Bruno Haible  <bruno@clisp.org>
67802
67803         * gnulib-tool (func_append): New function, stolen from libtool.m4.
67804         (func_modules_transitive_closure, func_modules_add_dummy,
67805         func_modules_to_filelist, func_import, func_create_testdir,
67806         func_create_megatestdir, ...): Use it wherever possible.
67807         Suggested by Ralf Wildenhues.
67808
67809 2006-09-16  Karl Berry  <karl@gnu.org>
67810
67811         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
67812         to avoid sectioning errors.
67813         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
67814         [ifinfo]: blank line after @center-ed titles.
67815         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
67816         Spell FSF address consistently with others.
67817         (These changes approved by rms.)
67818
67819 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67820
67821         Speed up by a factor of 1.61.
67822         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
67823         already checked module names again.
67824
67825 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67826
67827         Speed up by a factor of 1.13.
67828         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
67829         for new_files, and the input to func_add_or_update.
67830
67831 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67832
67833         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
67834         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
67835
67836 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
67837
67838         * modules/mkancesdirs (Depends-on): Add fcntl.
67839         * modules/savewd: New file.
67840         * MODULES.html.sh (File system functions): Add savewd.
67841
67842         * modules/configmake (Makefile.am): Add support for the
67843         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
67844
67845 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
67846
67847         * m4/savewd.m4: New file.
67848
67849 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
67850
67851         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
67852         (dirchownmod): New arg FD.  All callers changed.
67853         Use FD rather than opening the directory ourself, as opening is
67854         now the caller's responsibility.
67855         * lib/dirchownmod.h: Likewise.
67856         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
67857         hosts that require <sys/types.h> before <sys/stat.h>.  Include
67858         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
67859         (test_dir): Remove.
67860         (mkancesdirs): Return length of prefix of FILE that has already
67861         been made, or -2 if there is a child doing the work.  Redo
67862         algorithm so that it is O(N) rather than O(N**2).  Optimize away
67863         ".", and treat ".." specially since it might stray back into
67864         already-created areas.  Use a subprocess if necessary.  New arg
67865         WD; all users changed.  MAKE_DIR function should now return 1
67866         if it creates a directory that is not readable.  Return -2 if
67867         a child process is spun off.
67868         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
67869         Adjust signature to match code.
67870         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
67871         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
67872         all users changed.
67873         * lib/savewd.c, lib/savewd.h: New files.
67874
67875 2006-09-15  Jim Meyering  <jim@meyering.net>
67876
67877         * modules/rename-dest-slash: New module.
67878         * MODULES.html.sh (posix_compat): Add it here.
67879
67880         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
67881
67882 2006-09-15  Jim Meyering  <jim@meyering.net>
67883
67884         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
67885         file.
67886
67887         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
67888
67889 2006-09-15  Jim Meyering  <jim@meyering.net>
67890
67891         * lib/rename-dest-slash.c (has_trailing_slash): Use
67892         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
67893         (rpl_rename_dest_slash): Perform the cheaper trailing slash
67894         test before testing whether SRC is a directory.
67895         Suggestions from Bruno Haible.
67896
67897         Avoid a warning about an unused variable.
67898         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
67899         into the #ifdef block where it's used.
67900
67901         * lib/rename-dest-slash.c: New file.
67902
67903 2006-09-14  Bruno Haible  <bruno@clisp.org>
67904
67905         * lib/allocsa.c: Include <config.h> unconditionally.
67906         * lib/asnprintf.c: Likewise.
67907         * lib/asprintf.c: Likewise.
67908         * lib/c-strcasecmp.c: Likewise.
67909         * lib/c-strcasestr.c: Likewise.
67910         * lib/c-strncasecmp.c: Likewise.
67911         * lib/c-strstr.c: Likewise.
67912         * lib/classpath.c: Likewise.
67913         * lib/clean-temp.c: Likewise.
67914         * lib/concatpath.c: Likewise.
67915         * lib/copy-file.c: Likewise.
67916         * lib/csharpcomp.c: Likewise.
67917         * lib/csharpexec.c: Likewise.
67918         * lib/execute.c: Likewise.
67919         * lib/fatal-signal.c: Likewise.
67920         * lib/findprog.c: Likewise.
67921         * lib/fwriteerror.c: Likewise.
67922         * lib/gl_array_list.c: Likewise.
67923         * lib/gl_array_oset.c: Likewise.
67924         * lib/gl_avltree_list.c: Likewise.
67925         * lib/gl_avltree_oset.c: Likewise.
67926         * lib/gl_avltreehash_list.c: Likewise.
67927         * lib/gl_carray_list.c: Likewise.
67928         * lib/gl_linked_list.c: Likewise.
67929         * lib/gl_linkedhash_list.c: Likewise.
67930         * lib/gl_list.c: Likewise.
67931         * lib/gl_oset.c: Likewise.
67932         * lib/gl_rbtree_list.c: Likewise.
67933         * lib/gl_rbtree_oset.c: Likewise.
67934         * lib/gl_rbtreehash_list.c: Likewise.
67935         * lib/imaxabs.c: Likewise.
67936         * lib/imaxdiv.c: Likewise.
67937         * lib/javacomp.c: Likewise.
67938         * lib/javaexec.c: Likewise.
67939         * lib/javaversion.c: Likewise.
67940         * lib/linebreak.c: Likewise.
67941         * lib/localcharset.c: Likewise.
67942         * lib/lock.c: Likewise.
67943         * lib/mbchar.c: Likewise.
67944         * lib/mbswidth.c: Likewise.
67945         * lib/mkdtemp.c: Likewise.
67946         * lib/pipe.c: Likewise.
67947         * lib/printf-args.c: Likewise.
67948         * lib/printf-parse.c: Likewise.
67949         * lib/progname.c: Likewise.
67950         * lib/progreloc.c: Likewise.
67951         * lib/readlink.c: Likewise.
67952         * lib/sh-quote.c: Likewise.
67953         * lib/stpcpy.c: Likewise.
67954         * lib/stpncpy.c: Likewise.
67955         * lib/strcasecmp.c: Likewise.
67956         * lib/strcasestr.c: Likewise.
67957         * lib/strcspn.c: Likewise.
67958         * lib/striconv.c: Likewise.
67959         * lib/strncasecmp.c: Likewise.
67960         * lib/strnlen1.c: Likewise.
67961         * lib/strstr.c: Likewise.
67962         * lib/strtok_r.c: Likewise.
67963         * lib/tls.c: Likewise.
67964         * lib/tmpdir.c: Likewise.
67965         * lib/unicodeio.c: Likewise.
67966         * lib/unsetenv.c: Likewise.
67967         * lib/vasnprintf.c: Likewise.
67968         * lib/vasprintf.c: Likewise.
67969         * lib/wait-process.c: Likewise.
67970         * lib/xallocsa.c: Likewise.
67971         * lib/xsetenv.c: Likewise.
67972         * lib/xstriconv.c: Likewise.
67973
67974 2006-09-13  Simon Josefsson  <jas@extundo.com>
67975
67976         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
67977         that internally, suggested by Ralf Wildenhues
67978         <Ralf.Wildenhues@gmx.de>.
67979
67980 2006-09-13  Simon Josefsson  <jas@extundo.com>
67981
67982         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
67983         @LIBOBJS@.
67984         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
67985
67986 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
67987
67988         * lib/_fpending.c: Include <config.h> unconditionally, since we no
67989         longer worry about uses that don't define HAVE_CONFIG_H.
67990         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
67991         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
67992         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
67993         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
67994         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
67995         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
67996         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
67997         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
67998         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
67999         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
68000         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
68001         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
68002         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
68003         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
68004         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
68005         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
68006         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
68007         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
68008         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
68009         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
68010         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
68011         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
68012         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
68013         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
68014         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
68015         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
68016         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
68017         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
68018         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
68019         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
68020         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
68021         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
68022         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
68023         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
68024         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
68025         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
68026         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
68027         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
68028         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
68029         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
68030         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
68031         Likewise.
68032
68033 2006-09-13  Eric Blake  <ebb9@byu.net>
68034
68035         * lib/getopt.c: Fix typo in last commit.
68036
68037 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
68038
68039         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
68040         dgettext.
68041
68042 2006-09-12  Jim Meyering  <jim@meyering.net>
68043
68044         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
68045         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
68046         Reported by Nelson H. F. Beebe.
68047
68048 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
68049
68050         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
68051         program_invocation_name and program_invocation_short_name are
68052         initialized.
68053         * lib/argp-namefrob.h: Move declarations of program_invocation_name
68054         and program_invocation_short_name to argp.h, so they are visible
68055         to user programs.
68056         * lib/argp.h: Likewise
68057
68058 2006-09-10  Bruno Haible  <bruno@clisp.org>
68059
68060         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
68061         m4/inttypes_h.m4, m4/uintmax_t.m4.
68062
68063 2006-09-10  Bruno Haible  <bruno@clisp.org>
68064
68065         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
68066         gl_AC_TYPE_UINTMAX_T.
68067
68068 2006-09-10  Bruno Haible  <bruno@clisp.org>
68069
68070         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
68071
68072 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
68073
68074         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
68075         convention.  Text proposed by Bruno Haible.
68076         (struct argp_option): Document the use of N_() wrappers.
68077
68078         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
68079         '\v', and translate the two parts separately, instead of feeding
68080         the whole string to gettext.  This allows to exclude
68081         '\v' from the strings visible to the translator by writing doc
68082         strings as N_("..") "\v" N_("..").
68083
68084 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
68085
68086         * config/srclist.txt: Undo latest change; the bug was fixed.
68087
68088 2006-09-09  Bruno Haible  <bruno@clisp.org>
68089
68090         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
68091         assignments if building a library without libtool.
68092         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
68093         in func_emit_lib_Makefile_am.
68094         (func_import): When building a static library libfoo.a, arrange to
68095         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
68096         (func_create_testdir): Likewise.
68097         * modules/gc (configure.ac, Makefile.am): If building statically,
68098         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
68099         * modules/iconvme (configure.ac, Makefile.am): Likewise.
68100         * modules/striconv (configure.ac, Makefile.am): Likewise.
68101         Based on a suggestion by Ralf Wildenhues.
68102
68103 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
68104
68105         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
68106         Check for unistd.h too, since Autoconf doesn't assume POSIX.
68107         Also:
68108
68109         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
68110         Add year_2050_test to catch glibc bug 2821
68111         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
68112
68113         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
68114         Prefer #ifdef to #if.
68115
68116         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
68117         Return from 'main' instead of calling 'exit'.
68118
68119 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
68120
68121         * lib/mktime.c (guess_time_tm): Fix bug where mktime
68122         returned the maximum time_t value rather than (time_t) -1.
68123         Problem originally reported by William Bardwell
68124         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
68125
68126         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
68127         Moved to here ...
68128         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
68129         ... from here.
68130
68131 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
68132
68133         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
68134         2821 is fixed.
68135
68136 2006-09-08  Jim Meyering  <jim@meyering.net>
68137
68138         Don't make generated files read-only.  That would bother too many
68139         people.  However, do retain the ability to work when targets are
68140         read-only: remove the destination and temporary files before writing
68141         them (when generated via sed or echo), or by using the -f option for
68142         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
68143         * modules/alloca-opt, modules/argz, modules/arpa_inet:
68144         * modules/byteswap, modules/configmake, modules/fcntl:
68145         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
68146         * modules/localcharset, modules/netinet_in, modules/poll:
68147         * modules/stdbool, modules/stdint, modules/sys_select:
68148         * modules/sys_socket, modules/sys_stat, modules/sysexits:
68149
68150 2006-09-08  Jim Meyering  <jim@meyering.net>
68151
68152         Avoid new build failure on FreeBSD 6.0.
68153         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
68154         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
68155         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
68156
68157 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68158
68159         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
68160
68161 2006-09-07  Jim Meyering  <jim@meyering.net>
68162
68163         Fix global typo in last change: use chmod u-w, not chmod u-x.
68164         Spotted by Paul Eggert and Bruce Korb.
68165         * modules/alloca-opt, modules/argz, modules/arpa_inet:
68166         * modules/byteswap, modules/configmake, modules/fcntl:
68167         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
68168         * modules/localcharset, modules/netinet_in, modules/poll:
68169         * modules/stdbool, modules/stdint, modules/sys_select:
68170         * modules/sys_socket, modules/sys_stat, modules/sysexits:
68171
68172 2006-09-06  Jim Meyering  <jim@meyering.net>
68173
68174         Make generated files be read-only.
68175         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
68176         Ensure that each generated file is now read-only.
68177         * modules/argz: Likewise.
68178         * modules/arpa_inet: Likewise.
68179         * modules/byteswap: Likewise.
68180         * modules/configmake: Likewise.
68181         * modules/fcntl: Likewise.
68182         * modules/fnmatch: Likewise.
68183         * modules/getopt: Likewise.
68184         * modules/glob: Likewise.
68185         * modules/inttypes: Likewise.
68186         * modules/netinet_in: Likewise.
68187         * modules/poll: Likewise.
68188         * modules/stdbool: Likewise.
68189         * modules/stdint: Likewise.
68190         * modules/sys_select: Likewise.
68191         * modules/sys_socket: Likewise.
68192         * modules/sys_stat: Likewise.
68193         * modules/sysexits: Likewise.
68194         * modules/localcharset: Same as above, but continue using temporary
68195         file named "t-$@" (why different?) rather than the "$@-t" used
68196         everywhere else.
68197
68198         * modules/sysexits (Makefile.am): Replace literal occurrences
68199         of "sysexit.h" more readable, and more consistent, "$@".
68200
68201 2006-09-06  Bruno Haible  <bruno@clisp.org>
68202
68203         * modules/striconv: New file.
68204         * modules/xstriconv: New file.
68205         * MODULES.html.sh (Internationalization functions): Add striconv,
68206         xstriconv.
68207
68208 2006-09-06  Bruno Haible  <bruno@clisp.org>
68209
68210         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
68211         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
68212         not using libtool correctly.
68213
68214 2006-09-06  Bruno Haible  <bruno@clisp.org>
68215
68216         * lib/striconv.h: New file.
68217         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
68218         iconvstring.c.
68219         * lib/xstriconv.h: New file.
68220         * lib/xstriconv.c: New file.
68221
68222 2006-09-06  Bruno Haible  <bruno@clisp.org>
68223
68224         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
68225         lib_..._LDFLAGS.
68226
68227 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68228
68229         * lib/argz_.h: Sync from Libtool.
68230
68231         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
68232                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
68233
68234         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
68235
68236 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
68237
68238         * modules/trim: New file.
68239
68240 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
68241
68242         * lib/trim.h: New file.
68243         * lib/trim.c: New file.
68244
68245 2006-09-05  Bruno Haible  <bruno@clisp.org>
68246
68247         * MODULES.html.sh (String handling): Add trim.
68248
68249 2006-09-04  Karl Berry  <karl@gnu.org>
68250
68251         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
68252         until next release.
68253
68254 2006-09-03  Bruno Haible  <bruno@clisp.org>
68255
68256         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
68257         correctly.
68258
68259 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
68260
68261         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
68262         not gl_GETLOADAVG.  Omit unneeded semicolons.
68263         Problems reported by Ralf Wildenhues in
68264         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
68265         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
68266         at the end, which is the usual gnulib style.
68267
68268         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
68269         of doing all the work ourselves.
68270         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
68271         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
68272
68273 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
68274
68275         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
68276         Problem reported by Ralf Wildenhues in
68277         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
68278
68279         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
68280         HAVE_STRUCT_STATFS_F_FSTYPENAME.
68281
68282 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
68283
68284         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
68285         yesterday's patch by changing test -n to test -z.
68286
68287 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
68288
68289         * modules/getloadavg (Files): Add m4/getloadavg.m4.
68290         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
68291         the former is now obsolescent.
68292
68293         * modules/chdir-long (Depends-on): Add fcntl.
68294
68295 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
68296
68297         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
68298         obsolescent, and programs should use gnulib instead.
68299         * m4/getloadavg.m4: New file, with contents taken from Autoconf
68300         but with prefixes changed.
68301
68302 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
68303
68304         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
68305         or stdbool.h, because they might not exist while configuring.
68306
68307         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
68308         Don't include unistd.h or limits.h; not needed, since chdir-long.h
68309         does that for us.
68310         (O_DIRECTORY): Remove.
68311
68312 2006-08-31  Eric Blake  <ebb9@byu.net>
68313
68314         * gnulib-tool: Don't let emacs change spaces to TAB.
68315
68316 2006-08-31  Bruno Haible  <bruno@clisp.org>
68317
68318         * gnulib-tool: When calling func_import more than once, do it in a
68319         subshell.
68320         Reported by Eric Blake <ebb9@byu.net>.
68321
68322 2006-08-31  Bruno Haible  <bruno@clisp.org>
68323
68324         * gnulib-tool (nl): Remove variable.
68325         (sed_transform_lib_file): Use more robust test for config-h module.
68326         (func_import): Fix typo in 2006-08-25 patch.
68327
68328 2006-08-31  Bruno Haible  <bruno@clisp.org>
68329
68330         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
68331         specified, augment Makefile.am variables instead of assigning them.
68332
68333 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
68334
68335         Work around a bug in both the Linux and SunOS 64-bit kernels:
68336         nanosleep mishandles sleeps for longer than 2**31 seconds.
68337         Problem reported by Frank v Waveren in
68338         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
68339         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
68340         Check for nanosleep bug.
68341         (LIB_NANOSLEEP): Append clock_gettime library if needed.
68342
68343 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
68344
68345         Work around a bug in both the Linux and SunOS 64-bit kernels:
68346         nanosleep mishandles sleeps for longer than 2**31 seconds.
68347         Problem reported by Frank v Waveren in
68348         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
68349         * lib/nanosleep.c (BILLION): New constant.
68350         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
68351         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
68352         implementation.
68353
68354 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
68355
68356         * modules/nanosleep (Depends-on): Add gettime.
68357
68358 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
68359         and Simon Josefsson  <jas@extundo.com>
68360         and Oskar Liljeblad  <oskar@osk.mine.nu>
68361
68362         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
68363         * gnulib-tool (func_import): New license type 'unmodifiable license
68364         text'.
68365         * modules/fdl: Use it.  Longer description.
68366         * module/gpl, module/lgpl: New files.
68367
68368 2006-08-30  Jim Meyering  <jim@meyering.net>
68369
68370         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
68371         shadowing the parameter.
68372
68373 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68374
68375         Sync from Libtool:
68376
68377         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68378
68379         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
68380         sharing with gnulib.  Report by Eric Blake.
68381
68382 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
68383
68384         * modules/isapipe: New file.
68385         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
68386
68387 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
68388
68389         * modules/configmake (Makefile.am): Add a comment, and omit
68390         the CONFIGMAKE_ prefix from generated macro names.  Suggested
68391         by Bruno Haible.
68392
68393 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
68394
68395         * m4/isapipe.m4: New file.
68396
68397 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
68398
68399         * lib/isapipe.c, lib/isapipe.h: New files.
68400
68401 2006-08-29  Jim Meyering  <jim@meyering.net>
68402
68403         * modules/configmake (Makefile.am): Make configmake.h depend on
68404         Makefile.  Otherwise, a stale configmake.h could hang around.
68405
68406 2006-08-29  Eric Blake  <ebb9@byu.net>
68407
68408         * lib/error.c (error_at_line, print_errno_message): Match libc, after
68409         resolution of upstream bug 3044.
68410
68411 2006-08-29  Bruno Haible  <bruno@clisp.org>
68412
68413         * modules/localcharset (Depends-on): Add configmake.
68414         (Makefile.am): Remove setting of LIBDIR through DEFS.
68415
68416 2006-08-29  Bruno Haible  <bruno@clisp.org>
68417
68418         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
68419         defined.
68420
68421 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
68422
68423         * modules/fcntl: New file.
68424         * modules/chdir-safer (Depends-on): Add fcntl.
68425         * modules/fts: Likewise.
68426         * modules/mkdir-p: Likewise.
68427
68428         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
68429         This undoes the most recent change, since we're now addressing the
68430         problem in a different way.
68431
68432         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
68433         into output, since the output might be called Makefile.am even
68434         if $makefile_name is something different.
68435         (func_import): Use $makefile_am rather than
68436         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
68437         empty.
68438
68439         * modules/inttypes (Files): Add m4/inttypes-h.m4.
68440
68441 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
68442
68443         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
68444         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
68445         recent change to stdint.m4, since we're now addressing the problem in a
68446         different way.
68447
68448 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
68449
68450         * m4/fcntl_h.m4: New file.
68451
68452 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
68453
68454         * lib/fcntl_.h: New file.
68455         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
68456         the fcntl module.
68457         * lib/dirchownmod.c: Likewise.
68458         * lib/fts.c: Likewise.
68459
68460         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
68461         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
68462         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
68463         just before including <inttypes.h>, to avoid circular inclusion.
68464
68465 2006-08-28  Jim Meyering  <jim@meyering.net>
68466
68467         * doc/visibility.texi: Actually read and correct the grammar of the
68468         sentence affected by yesterday's change.
68469
68470 2006-08-28  Eric Blake  <ebb9@byu.net>
68471
68472         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
68473         needs wrapper.
68474
68475 2006-08-28  Eric Blake  <ebb9@byu.net>
68476
68477         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
68478
68479 2006-08-28  Eric Blake  <ebb9@byu.net>
68480
68481         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
68482
68483 2006-08-28  Bruno Haible  <bruno@clisp.org>
68484
68485         * modules/c-strstr: New file, from GNU gettext.
68486         * MODULES.html.sh (String handling): Add c-strstr.
68487
68488 2006-08-28  Bruno Haible  <bruno@clisp.org>
68489
68490         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
68491         macros.
68492         Reported by Eric Blake.
68493
68494 2006-08-28  Bruno Haible  <bruno@clisp.org>
68495
68496         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
68497         (VASNPRINTF): Return a string of length > INT_MAX without failing.
68498         * lib/vasprintf.c: Include errno.h, limits.h.
68499         (EOVERFLOW): New fallback definition.
68500         (vasprintf): Test here whether the string length is > INT_MAX.
68501         * lib/vsnprintf.c: Include errno.h, limits.h.
68502         (EOVERFLOW): New fallback definition.
68503         (vsnprintf): Fix bug when generated string was too long for the buffer.
68504         Test here whether the string length is > INT_MAX.
68505
68506 2006-08-28  Bruno Haible  <bruno@clisp.org>
68507
68508         * lib/inttypes_.h (SCNX*): Remove definitions.
68509         Reported by Eric Blake.
68510
68511 2006-08-28  Bruno Haible  <bruno@clisp.org>
68512
68513         * lib/c-strstr.h: New file, from GNU gettext.
68514         * lib/c-strstr.c: New file, from GNU gettext.
68515
68516 2006-08-28  Bruno Haible  <bruno@clisp.org>
68517
68518         * gnulib-tool: Reorder some statements.
68519
68520 2006-08-28  Bruno Haible  <bruno@clisp.org>
68521
68522         * gnulib-tool: New option --makefile-name.
68523         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
68524         $makefile_name.
68525         (func_import): Write $makefile_name to the cache file, and read it from
68526         there unless explicitly specified. Use $makefile_name as file name
68527         instead of Makefile.am. Adjust the recommendations accordingly.
68528
68529 2006-08-28  Bruno Haible  <bruno@clisp.org>
68530
68531         * gnulib-tool (func_verify_module): Check against misapplying patch.
68532
68533 2006-08-28  Bruno Haible  <bruno@clisp.org>
68534
68535         * gnulib-tool (func_relativize, func_relconcat): New functions.
68536         Give an error if --local-dir is given with --update.
68537         Remove trailing slashes from $local_gnulib_dir.
68538         (func_import): Store the relativized $local_gnulib_dir in
68539         gnulib-cache.m4, and read it from there if not specified explicitly.
68540
68541 2006-08-28  Bruno Haible  <bruno@clisp.org>
68542
68543         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
68544         is the current directory. Respect also $local_gnulib_dir.
68545
68546 2006-08-28  Bruno Haible  <bruno@clisp.org>
68547             Simon Josefsson  <jas@extundo.com>
68548
68549         BeOS portability.
68550         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
68551
68552 2006-08-27  Jim Meyering  <jim@meyering.net>
68553
68554         * doc/visibility.texi: Remove duplicate word: "pointer".
68555
68556 2006-08-26  Bruno Haible  <bruno@clisp.org>
68557
68558         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
68559         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
68560         (Makefile.am): Create inttypes.h from inttypes_.h.
68561         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
68562
68563         * modules/imaxabs: New file.
68564
68565         * modules/imaxdiv: New file.
68566
68567 2006-08-26  Bruno Haible  <bruno@clisp.org>
68568
68569         * m4/inttypes.m4: New file.
68570         * m4/_inttypes_h.m4: Remove file.
68571         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
68572         PRI_MACROS_BROKEN.
68573         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
68574
68575         * m4/imaxabs.m4: New file.
68576
68577         * m4/imaxdiv.m4: New file.
68578
68579 2006-08-26  Bruno Haible  <bruno@clisp.org>
68580
68581         * lib/inttypes_.h: New file.
68582         * lib/inttypes.h: Remove file.
68583         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
68584
68585         * lib/imaxabs.c: New file.
68586
68587         * lib/imaxdiv.c: New file.
68588
68589 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
68590
68591         New config-h module, so that "make" output needn't be cluttered
68592         by -DHAVE_CONFIG_H.
68593         * MODULES.html.sh (Support for building libraries and executables):
68594         Add config-h.
68595         * modules/config-h: New file.
68596         * gnulib-tool (nl, sed_transform_lib_file): New vars.
68597         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
68598         the config-h module is used.
68599
68600         New configmake module, so that "make" output needn't be cluttered
68601         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
68602         * MODULES.html.sh (Support for building libraries and executables):
68603         Add configmake.
68604         * modules/configmake: New file.
68605
68606 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
68607
68608         * m4/config-h.m4: New file.
68609
68610 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
68611
68612         * config/srclist.txt: Add elisp-comp.
68613
68614 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
68615
68616         * MODULES.html.sh (Support for building libraries and executables):
68617         Add elisp-comp.
68618         * build-aux/elisp-comp: New file.
68619         * modules/elisp-comp: New file.
68620
68621 2006-08-24  Bruno Haible  <bruno@clisp.org>
68622
68623         * gnulib-tool (func_create_testdir): Use non-default values of
68624         sourcebase and m4base.
68625
68626 2006-08-24  Bruno Haible  <bruno@clisp.org>
68627
68628         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
68629         HTML structure.
68630
68631 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
68632
68633         * modules/openat (Depends-on): Add lchown.
68634
68635 2006-08-23  Bruno Haible  <bruno@clisp.org>
68636
68637         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
68638         of gl_LOCK_EARLY instead of gl_LOCK.
68639
68640 2006-08-23  Bruno Haible  <bruno@clisp.org>
68641
68642         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
68643         on OSF/1 to no.
68644         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
68645
68646 2006-08-23  Bruno Haible  <bruno@clisp.org>
68647
68648         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
68649         as unusable.
68650
68651         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
68652         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
68653         (gl_LOCK): New macro.
68654
68655 2006-08-22  Simon Josefsson  <jas@extundo.com>
68656
68657         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
68658         to md5 module.
68659
68660 2006-08-22  Simon Josefsson  <jas@extundo.com>
68661
68662         * MODULES.html.sh: Add "Support for maintaining and release
68663         projects".
68664
68665         * build-aux/gnupload: New file, from coreutils.
68666
68667 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
68668
68669         Avoid the need for AC_LIBSOURCES in m4 macros.
68670         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
68671         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
68672         * modules/check-version (EXTRA_DIST): Add check-version.h.
68673         * modules/crc (EXTRA_DIST): Add crc.h.
68674         * modules/des (EXTRA_DIST): Add des.h.
68675         * modules/gc (EXTRA_DIST): Add gc.h.
68676         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
68677         * modules/getline (EXTRA_DIST): Add getline.h.
68678         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
68679         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
68680         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
68681         * modules/md2 (EXTRA_DIST): Add md2.h.
68682         * modules/md4 (EXTRA_DIST): Add md4.h.
68683         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
68684         * modules/read-file (EXTRA_DIST): Add read-file.h.
68685         * modules/readline (EXTRA_DIST): Add readline.h.
68686         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
68687         rijndael-api-fst.h.
68688
68689 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
68690
68691         * m4/rijndael.m4 (gl_ARCFOUR):
68692         * m4/arctwo.m4 (gl_ARCTWO):
68693         * m4/check-version.m4 (gl_CHECK_VERSION):
68694         * m4/crc.m4 (gl_CRC):
68695         * m4/des.m4 (gl_DES):
68696         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
68697         * m4/gc.m4 (gl_GC):
68698         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
68699         * m4/getline.m4 (gl_FUNC_GETLINE):
68700         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
68701         * m4/hmac-md5.m4 (gl_HMAC_MD5):
68702         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
68703         * m4/md2.m4 (gl_MD2):
68704         * m4/md4.m4 (gl_MD4):
68705         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
68706         * m4/read-file.m4 (gl_FUNC_READ_FILE):
68707         * m4/readline.m4 (gl_FUNC_READLINE):
68708         * m4/rijndael.m4 (gl_RIJNDAEL):
68709         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
68710         to get the necessary .h files and whatnot.
68711
68712 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
68713
68714         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
68715         gnulib rather than the other way around.
68716         * config/srclistvars.sh (COREUTILS): Remove.
68717
68718 2006-08-22  Jim Meyering  <jim@meyering.net>
68719
68720         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
68721
68722         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
68723
68724 2006-08-22  Eric Blake  <ebb9@byu.net>
68725
68726         * modules/regexprops-generic: New file.
68727         * MODULES.html.sh (Support for building documentation): List it.
68728
68729 2006-08-22  Eric Blake  <ebb9@byu.net>
68730
68731         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
68732         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
68733         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
68734         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
68735
68736 2006-08-22  Bruno Haible  <bruno@clisp.org>
68737
68738         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
68739         and lib_LTLIBRARIES like the other lib_* variables.
68740
68741 2006-08-22  Bruno Haible  <bruno@clisp.org>
68742
68743         * build-aux/x-to-1.in: New file, from GNU gettext.
68744
68745 2006-08-22  Bruno Haible  <bruno@clisp.org>
68746
68747         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
68748         <utmpx.h> exists.
68749
68750 2006-08-22  Bruno Haible  <bruno@clisp.org>
68751
68752         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
68753         <utmpx.h> exists.
68754
68755 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
68756
68757         BeOS portability.
68758         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
68759         exist.
68760         Problem reported by Bruno Haible.
68761
68762 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
68763
68764         Avoid the need for AC_LIBSOURCES in m4 macros.
68765         * modules/acl (EXTRA_DIST): Add acl.h.
68766         * modules/argmatch (Files): Add m4/argmatch.m4.
68767         (configure.ac): Add gl_ARGMATCH.
68768         (EXTRA_DIST): Renamed from lib_SOURCES, for
68769         consistency with the other modules.  Remove argmatch.c.
68770         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
68771         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
68772         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
68773         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
68774         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
68775         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
68776         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
68777         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
68778         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
68779         * modules/closeout (EXTRA_DIST): Add closeout.h.
68780         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
68781         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
68782         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
68783         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
68784         dirname.h; remove basename.c and stripslash.c.
68785         * modules/exclude (EXTRA_DIST): Add exclude.h.
68786         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
68787         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
68788         * modules/file-type (EXTRA_DIST): Add file-type.h.
68789         * modules/filemode (EXTRA_DIST): Add filemode.h.
68790         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
68791         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
68792         * modules/fpending (EXTRA_DIST): Add __fpending.h.
68793         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
68794         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
68795         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
68796         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
68797         * modules/getdate (EXTRA_DIST): Add getdate.c.
68798         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
68799         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
68800         * modules/getpass (EXTRA_DIST): Add getpass.h.
68801         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
68802         * modules/group-member (EXTRA_DIST): Add group-member.h.
68803         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
68804         * modules/hash (EXTRA_DIST): Add hash.h.
68805         * modules/human (EXTRA_DIST): Add human.h.
68806         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
68807         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
68808         * modules/lchown (EXTRA_DIST): Add lchown.h.
68809         * modules/long-options (EXTRA_DIST): Add long-options.h.
68810         * modules/lstat (EXTRA_DIST): Add lstat.h.
68811         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
68812         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
68813         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
68814         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
68815         * modules/memxor (EXTRA_DIST): Add memxor.h.
68816         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
68817         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
68818         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
68819         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
68820         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
68821         * modules/physmem (EXTRA_DIST): Add physmem.h.
68822         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
68823         * modules/posixver (EXTRA_DIST): Add posixver.h.
68824         * modules/quote (EXTRA_DIST): Add quote.h.
68825         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
68826         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
68827         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
68828         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
68829         regex_internal.h regexec.c.
68830         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
68831         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
68832         * modules/same (EXTRA_DIST): Add same.h.
68833         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
68834         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
68835         * modules/savedir (EXTRA_DIST): Add savedir.h.
68836         * modules/sha1 (EXTRA_DIST): Add sha1.h.
68837         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
68838         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
68839         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
68840         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
68841         * modules/strdup (EXTRA_DIST): Add strdup.h.
68842         * modules/strftime (EXTRA_DIST): Add strftime.h.
68843         * modules/strndup (EXTRA_DIST): Add strndup.h.
68844         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
68845         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
68846         * modules/time_r (EXTRA_DIST): Add time_r.h.
68847         * modules/timespec (EXTRA_DIST): Add timespec.h.
68848         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
68849         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
68850         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
68851         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
68852         * modules/userspec (EXTRA_DIST): Add userspec.h.
68853         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
68854         * modules/utimens (EXTRA_DIST): Add utimens.h.
68855         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
68856         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
68857         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
68858         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
68859         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
68860         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
68861         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
68862         * modules/yesno (EXTRA_DIST): Add yesno.h.
68863
68864 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
68865
68866         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
68867
68868         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
68869         * m4/dev-ino.m4, same-inode.m4: Remove.
68870
68871         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
68872         * m4/acl.m4 (AC_FUNC_ACL):
68873         * m4/backupfile.m4 (gl_BACKUPFILE):
68874         * m4/c-strtod.m4 (gl_C99_STRTOLD):
68875         * m4/canon-host.m4 (gl_CANON_HOST):
68876         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
68877         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
68878         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
68879         * m4/cloexec.m4 (gl_CLOEXEC):
68880         * m4/close-stream.m4 (gl_CLOSE_STREAM):
68881         * m4/closeout.m4 (gl_CLOSEOUT):
68882         * m4/dirfd.m4 (gl_FUNC_DIRFD):
68883         * m4/dirname.m4 (gl_DIRNAME):
68884         * m4/exclude.m4 (gl_EXCLUDE):
68885         * m4/exitfail.m4 (gl_EXITFAIL):
68886         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
68887         * m4/file-type.m4 (gl_FILE_TYPE):
68888         * m4/filemode.m4 (gl_FILEMODE):
68889         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
68890         * m4/fpending.m4 (gl_FUNC_FPENDING):
68891         * m4/fprintftime.m4 (gl_FPRINTFTIME):
68892         * m4/fts.m4 (gl_FUNC_FTS):
68893         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
68894         * m4/getdate.m4 (gl_GETDATE):
68895         * m4/gethrxtime.m4 (gl_GETHRXTIME):
68896         * m4/getpagesize.m4 (gl_GETPAGESIZE):
68897         * m4/getpass.m4 (gl_FUNC_GETPASS):
68898         * m4/gettime.m4 (gl_GETTIME):
68899         * m4/getugroups.m4 (gl_GETUGROUPS):
68900         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
68901         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
68902         * m4/hard-locale.m4 (gl_HARD_LOCALE):
68903         * m4/hash.m4 (gl_HASH):
68904         * m4/idcache.m4 (gl_IDCACHE):
68905         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
68906         * m4/lchown.m4 (gl_FUNC_LCHOWN):
68907         * m4/long-options.m4 (gl_LONG_OPTIONS):
68908         * m4/lstat.m4 (gl_FUNC_LSTAT):
68909         * m4/md5.m4 (gl_MD5):
68910         * m4/memcasecmp.m4 (gl_MEMCASECMP):
68911         * m4/memcoll.m4 (gl_MEMCOLL):
68912         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
68913         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
68914         * m4/memxor.m4 (gl_MEMXOR):
68915         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
68916         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
68917         * m4/modechange.m4 (gl_MODECHANGE):
68918         * m4/mountlist.m4 (gl_MOUNTLIST):
68919         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
68920         * m4/openat.m4 (gl_FUNC_OPENAT):
68921         * m4/pathmax.m4 (gl_PATHMAX):
68922         * m4/physmem.m4 (gl_PHYSMEM):
68923         * m4/posixtm.m4 (gl_POSIXTM):
68924         * m4/posixver.m4 (gl_POSIXVER):
68925         * m4/quote.m4 (gl_QUOTE):
68926         * m4/quotearg.m4 (gl_QUOTEARG):
68927         * m4/readtokens.m4 (gl_READTOKENS):
68928         * m4/readutmp.m4 (gl_READUTMP):
68929         * m4/regex.m4 (gl_REGEX):
68930         * m4/safe-read.m4 (gl_SAFE_READ):
68931         * m4/safe-write.m4 (gl_SAFE_WRITE):
68932         * m4/same.m4 (gl_SAME):
68933         * m4/save-cwd.m4 (gl_SAVE_CWD):
68934         * m4/savedir.m4 (gl_SAVEDIR):
68935         * m4/settime.m4 (gl_SETTIME):
68936         * m4/sha1.m4 (gl_SHA1):
68937         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
68938         * m4/stat-macros.m4 (gl_STAT_MACROS):
68939         * m4/stat-time.m4 (gl_STAT_TIME):
68940         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
68941         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
68942         * m4/strdup.m4 (gl_FUNC_STRDUP):
68943         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
68944         * m4/strndup.m4 (gl_FUNC_STRNDUP):
68945         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
68946         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
68947         * m4/time_r.m4 (gl_TIME_R):
68948         * m4/timespec.m4 (gl_TIMESPEC):
68949         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
68950         * m4/unlinkdir.m4 (gl_UNLINKDIR):
68951         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
68952         * m4/userspec.m4 (gl_USERSPEC):
68953         * m4/utimecmp.m4 (gl_UTIMECMP):
68954         * m4/utimens.m4 (gl_UTIMENS):
68955         * m4/xalloc.m4 (gl_XALLOC):
68956         * m4/xgetcwd.m4 (gl_XGETCWD):
68957         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
68958         * m4/xreadlink.m4 (gl_XREADLINK):
68959         * m4/xstrtod.m4 (gl_XSTRTOD):
68960         * m4/yesno.m4 (gl_YESNO):
68961         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
68962         to get the necessary .h files and whatnot.
68963
68964 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
68965             Bruno Haible  <bruno@clisp.org>
68966
68967         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
68968         /bin/sh understanding of '!' conditional negation.
68969
68970 2006-08-21  Jim Meyering  <jim@meyering.net>
68971
68972         * modules/openat (Depends-on): Really alphabetize.
68973
68974         * modules/acl (Depends-on): Add error and quote.
68975
68976         * check-module (find_included_lib_files): Add at-func.c to the
68977         ok-to-include-more-than-once white list.
68978
68979         * modules/openat (Depends-on): Add lstat.  Alphabetize.
68980
68981 2006-08-21  Bruno Haible  <bruno@clisp.org>
68982
68983         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
68984         Emit a pkgdata_DATA variable only if some snippets add contents to it.
68985         Reported by Martin Lambers <marlam@marlam.de>.
68986
68987 2006-08-21  Bruno Haible  <bruno@clisp.org>
68988
68989         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
68990         specify an installation location, don't emit a noinst_LIBRARIES or
68991         noinst_LTLIBRARIES assignment.
68992
68993 2006-08-21  Bruno Haible  <bruno@clisp.org>
68994
68995         BeOS portability.
68996         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
68997         BeOS has mbrtowc() but no <wctype.h>.
68998
68999 2006-08-21  Bruno Haible  <bruno@clisp.org>
69000
69001         BeOS portability.
69002         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
69003         exist.
69004
69005 2006-08-21  Bruno Haible  <bruno@clisp.org>
69006
69007         BeOS portability.
69008         * lib/mbchar.h: Include <wctype.h> only if it exists.
69009
69010 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
69011
69012         Remove files that are no longer needed by their respective modules.
69013         * m4/obstack.m4: Remove.
69014         * m4/strerror_r.m4: Remove.
69015         * m4/uint32_t.m4: Remove.
69016         * m4/uintptr_t.m4: Remove.
69017         * m4/ullong_max.m4: Remove.
69018         * m4/xstrtoimax.m4: Remove.
69019         * m4/xstrtoumax.m4: Remove.
69020
69021         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
69022         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
69023         dependencies now capture this.
69024
69025         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
69026         Do not use AC_LIBSOURCES, since gnulib modules now do this.
69027         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
69028         * m4/human.m4 (gl_HUMAN): Likewise.
69029         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
69030         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
69031
69032         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
69033
69034         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
69035         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
69036         stdint.
69037         * m4/human.m4 (gl_HUMAN): Likewise.
69038         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
69039         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
69040         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
69041         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
69042         * m4/xstrtol (gl_XSTRTOL): Likewise.
69043
69044         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
69045         AC_TYPE_LONG_LONG_INT.
69046         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
69047         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
69048         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
69049         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
69050
69051         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
69052         on stdbool.
69053
69054         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
69055         (gl_PREREQ_XSTRTOUL): Remove.
69056
69057         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
69058
69059         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
69060         mode.
69061
69062 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
69063
69064         Add and change modules to make it easier for coreutils to use
69065         gnulib-tool.
69066         * modules/backupfile (Files): Remove m4/d-ino.m4.
69067         (Depends-on): Add d-ino.
69068         * modules/cycle-check (Depends-on): Add stdint.
69069         (lib_SOURCES): Add cycle-check.h.
69070         * modules/d-ino: New module.
69071         * modules/d-type: New module.
69072         * modules/error (Files): Remove m4/strerror_r.m4.
69073         * modules/filemode (Files): Add m4/st_dm_mode.m4.
69074         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
69075         m4/inttypes_h.m4, m4/uintmax_t.m4.
69076         (Depends-on): Add stdint.
69077         (lib_SOURCES): Add fsusage.h.
69078         * modules/getcwd (Files): Remove d-ino.m4.
69079         (Depends-on): Add d-ino.
69080         * modules/getndelim2 (Depends-on): Add stdint.
69081         * modules/glob (Files): Remove m4/d-type.m4.
69082         (Depends-on): Add d-type.
69083         * modules/host-os: New module.
69084         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
69085         m4/inttypes_h.m4, m4/uintmax_t.m4.
69086         * Depends-on: Add stdint.
69087         (lib_SOURCES): Add human.h.
69088         * modules/inttostr (Files): Remove m4/intmax_t.m4,
69089         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
69090         m4/uintmax_t.m4, m4/ulonglong.m4.
69091         (Depends-on): Add stdint.
69092         (EXTRA_DIST): Add inttostr.h.
69093         * modules/lchmod: New module.
69094         * modules/link-follow: New module.
69095         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
69096         (Depends-on): Add lchmod.
69097         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
69098         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
69099         (Depends-on): Add stdint.
69100         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
69101         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
69102         (Depends-on): Add stdint.
69103         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
69104         * modules/perl: New module.
69105         * modules/regex (Depends-on): Add stdint.
69106         * modules/rmdir-errno: New module.
69107         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
69108         m4/intmax_t.m4.
69109         (Depends-on): Add stdint.
69110         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
69111         m4/uintmax_t.m4.
69112         (Depends-on): Add stdint.
69113         * modules/unlink-busy: New module.
69114         * modules/utimecmp (Depends-on): Add stdint.
69115         * modules/uptime: New module.
69116         * modules/winsz-ioctl: New module.
69117         * modules/winsz-termios: New module.
69118         * modules/xnanosleep (Depends-on): Add nanosleep.
69119         * modules/ullong_max: Remove.
69120         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
69121         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
69122         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
69123         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
69124         (Depends-on): Add inttypes.
69125         (lib_SOURCES): Add xstrtol.h.
69126         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
69127         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
69128         * MODULES.html.sh: Move 'assert' into the assert section.
69129         Move 'dummy' into the linking section.
69130         Remove ullong_max.
69131         Add section for compatibility checks for POSIX:2001 functions,
69132         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
69133         winsz-ioctl, and winsz-termios into it.
69134         Add lchmod.
69135         Add top-level Misc section and put host-os, perl, and uptime
69136         into it.
69137
69138 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
69139
69140         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
69141         now assume the stdint module.  Do not include inttypes.h.
69142         * lib/fsusage.h: Likewise.
69143         * lib/getndelim2.c: Likewise.
69144         * lib/human.h: Likewise.
69145         * lib/inttostr.h: Likewise.
69146         * lib/obstack.c: Likewise.
69147         * lib/regex_internal.h: Likewise.
69148         * lib/tempname.c: Likewise.
69149         * lib/utimecmp.c: Likewise.
69150         * lib/xstrtol.h: Likewise.
69151
69152         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
69153
69154         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
69155         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
69156         * lib/xtime.h: Likewise.
69157
69158 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
69159
69160         * modules/openat (Files): Add lib/fchmodat.c.
69161         Fixes problem reported by Jay Youngman.
69162
69163 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
69164
69165         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
69166         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
69167
69168 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
69169             Bruno Haible  <bruno@clisp.org>
69170
69171         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
69172         and is a script that invokes bison. Tighten the code. Add comments.
69173
69174 2006-08-18  Jim Meyering  <jim@meyering.net>
69175
69176         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
69177         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
69178         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
69179         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
69180
69181 2006-08-18  Bruno Haible  <bruno@clisp.org>
69182
69183         * modules/bison-i18n: New file.
69184         * MODULES.html.sh (Internationalization functions): Add it.
69185
69186 2006-08-18  Bruno Haible  <bruno@clisp.org>
69187
69188         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
69189         sys/statvfs.h. When getmntinfo was found, check its declaration and
69190         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
69191
69192 2006-08-18  Bruno Haible  <bruno@clisp.org>
69193
69194         * m4/bison-i18n.m4: New file, from bison.
69195
69196 2006-08-18  Bruno Haible  <bruno@clisp.org>
69197
69198         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
69199         (ME_DUMMY): Treat "kernfs" as a dummy.
69200         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
69201
69202 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
69203
69204         Update from coreutils.
69205
69206         2006-08-15  Jim Meyering  <jim@meyering.net>
69207
69208         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
69209
69210         2006-01-17  Jim Meyering  <jim@meyering.net>
69211
69212         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
69213
69214         2006-01-11  Jim Meyering  <jim@meyering.net>
69215
69216         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
69217         Check for the lchmod function.
69218
69219 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
69220
69221         Update from coreutils.
69222
69223         * lib/__fpending.h: Add copyright notice.
69224         * lib/fprintftime.h: Likewise.
69225         * lib/savedir.c: Use (C) in copyright notice.
69226         * lib/savedir.h: Likewise.
69227
69228         2006-08-15  Jim Meyering  <jim@meyering.net>
69229
69230         * lib/at-func.c: New file, with the logic of all emulated at-functions.
69231         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
69232         in support of the EXPECTED_ERRNO macro.
69233         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
69234         definitions.  Instead, define the appropriate symbols and include
69235         "at-func.c".
69236         * lib/mkdirat.c (mkdirat): Likewise.
69237         * lib/fchmodat.c (fchmodat): Likewise.
69238         (ENOSYS): Remove definition.
69239         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
69240         it.  Don't include "unistd--.h" -- it wasn't ever used.
69241
69242         2006-01-17  Jim Meyering  <jim@meyering.net>
69243
69244         Rewrite fts.c not to change the current working directory,
69245         by using openat, fstatat, fdopendir, etc..
69246
69247         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
69248         (HAVE_OPENAT_SUPPORT): Define.
69249         [_LIBC] (fchdir): Don't undef or define; no longer used.
69250         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
69251         Now, this `function' always succeeds, and consumes its file descriptor
69252         parameter -- so callers must not close such FDs.  Update callers.
69253         (diropen_fd, opendirat, cwd_advance_fd): New functions.
69254         (diropen): Add parameter, SP.  Adjust all callers.
69255         Implement using diropen_fd, rather than open.
69256         (fts_open): Initialize new member, fts_cwd_fd.
69257         Remove fts_rft-setting code.
69258         (fts_close): Close fts_cwd_fd, if necessary.
69259         (__opendir2): Define in terms of opendir or opendirat,
69260         depending on whether the FST_NOCHDIR flag is set.
69261         (fts_build): Since fts_safe_changedir consumes its FD, and since
69262         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
69263         and close the dup'd file descriptor upon failure.
69264         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
69265         (fts_safe_changedir): Tweak semantics to reflect that this function
69266         now calls cwd_advance_fd and hence consumes its FD argument.
69267         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
69268         [struct FTS] (fts_rft): Remove now-unused member.
69269         [struct FTS] (fts_cycle.state): Improve comment.
69270
69271         * lib/openat.c (openat_needs_fchdir): New function.
69272         * lib/openat.h (openat_needs_fchdir): Declare it.
69273
69274 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
69275
69276         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
69277         Problem and fix reported by Pádraig Brady in
69278         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
69279
69280 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
69281
69282         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
69283
69284 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
69285
69286         * lib/memcoll.c (memcoll): Optimize for the common case where the
69287         arguments are bytewise equal.
69288
69289 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
69290
69291         * doc/regexprops-generic.texi: Add a copyright notice.
69292
69293 2006-08-15  Bruno Haible  <bruno@clisp.org>
69294
69295         * modules/tmpdir (License): Change to LGPL.
69296
69297 2006-08-15  Bruno Haible  <bruno@clisp.org>
69298
69299         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
69300         module.
69301
69302 2006-08-14  Simon Josefsson  <jas@extundo.com>
69303
69304         * config/srclist.txt: Add gnupload.
69305
69306 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
69307
69308         Change copyright notice from LGPL 2 to GPL 2, since that's the
69309         standard form used in the gnulib repository.
69310         * tests/test-lock.c: Likewise.
69311         * tests/test-stdint.c: Likewise.
69312         * tests/test-tls.c: Likewise.
69313
69314         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
69315         prelude-manager.  User shorter URLs for GNU projects, without '?'.
69316         Add copyright notice.
69317
69318         * check-module: Add copyright notice.  Output a copyright
69319         notice if "--version" is specified.
69320         * modules/COPYING: New file.
69321         * tests/test-getaddrinfo.c: Add copyright notice.
69322         * tests/test-verify.c: Likewise.
69323
69324 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
69325
69326         Change copyright notice from LGPL 2 to GPL 2, since that's the
69327         standard form used in the gnulib repository.
69328         * lib/lock.c: LGPL -> GPL.
69329         * lib/lock.h: Likewise.
69330         * lib/strnlen1.c: Likewise.
69331         * lib/strnlen1.h: Likewise.
69332         * lib/tls.c: Likewise.
69333         * lib/tls.h: Likewise.
69334         * lib/tmpdir.c: Likewise.
69335
69336         * lib/TODO: Remove; this belongs only in coreutils.
69337
69338 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
69339
69340         Add copyright notices to long-enough files that lack them, since
69341         otherwise the files aren't clearly free.  Use the same notice that
69342         getdate.texi already uses.
69343         * doc/alloca-opt.texi: Add copyright notice.
69344         * doc/alloca.texi: Likewise.
69345         * doc/ctime.texi: Likewise.
69346         * doc/functions.texi: Likewise.
69347         * doc/gcd.texi: Likewise.
69348         * doc/gnulib-tool.texi: Likewise.
69349         * doc/inet_ntoa.texi: Likewise.
69350         * doc/visibility.texi: Likewise.
69351
69352         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
69353         * doc/quote.texi: Add copyright notice.
69354
69355         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
69356         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
69357         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
69358         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
69359         is now obsolete, and give a pointer to the Sun list.
69360         Add copyright notice.
69361
69362 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
69363
69364         * config/srclistvars.sh: Add copyright notice.
69365
69366 2006-08-14  Eric Blake  <ebb9@byu.net>
69367
69368         Import the following change from libc:
69369
69370         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
69371
69372         Upstream bug 2997.
69373         * lib/misc/error.c: Add space between program name and message if file
69374         name is missing.
69375
69376 2006-08-12  Karl Berry  <karl@gnu.org>
69377
69378         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
69379         remove, these originate in gnulib now.
69380
69381 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69382
69383         * doc/Makefile (standards.info standards.html standards.dvi):
69384         Also depend on make-stds.texi.
69385
69386 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
69387
69388         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
69389         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
69390
69391         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
69392         in wchar_t.  Problem reported by Eric Blake.
69393
69394         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
69395         LEN is smaller than SIZE.  Suggested by Bruno Haible.
69396         Also, help the compiler to keep LEN in a register.
69397
69398 2006-08-11  Eric Blake  <ebb9@byu.net>
69399
69400         * users.txt: Sort.  Add tar.
69401
69402 2006-08-11  Bruno Haible  <bruno@clisp.org>
69403
69404         * users.txt: New file.
69405
69406 2006-08-11  Bruno Haible  <bruno@clisp.org>
69407
69408         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
69409         before <wchar.h>. Needed for OSF/1 and BSD/OS.
69410
69411 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
69412
69413         * modules/snprintf (Depends-on): Remove minmax.
69414         (Maintainer): Add self and Bruno.
69415
69416 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
69417
69418         * lib/.cppi-disable: Add snprintf.h, socket_.h.
69419         * lib/snprintf.c: Include <errno.h> and <limits.h>.
69420         (EOVERFLOW): Define if the system does not.
69421         Do not include "minmax.h"; it wasn't used.
69422         (snprintf): Don't assume size_t promotes to an unsigned type.
69423         Fix bug when generated string was too long for the buffer: the
69424         buffer's contents are supposed to be the initial prefix of the
69425         output.  Don't assume vasnprintf returns EOVERFLOW if the size
69426         exceeds INT_MAX; do the check ourselves.
69427
69428         Import the following changes from libc:
69429
69430         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
69431
69432         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
69433         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
69434         set wc to the byte which couldn't be converted.
69435         (re_string_reconstruct): Don't clear valid_raw_len before calling
69436         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
69437         tip_context using re_string_context_at.
69438
69439         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
69440
69441         * lib/posix/regex.h: g++ still cannot handled [restrict].
69442
69443         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
69444
69445         * lib/posix/regex.h: Remove special handling for VMS.
69446
69447 2006-08-10  Jim Meyering  <jim@meyering.net>
69448
69449         * modules/same-inode: New module.
69450         * modules/dev-ino: New module.
69451         * modules/cycle-check: Depend on these modules, rather than simply
69452         including their .h files.
69453         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
69454         required via m4/cycle-check.m4.
69455         * modules/same: Depend on new same-inode module, rather than
69456         including same-inode.h.
69457         * modules/chdir-safer: New file.
69458
69459         * modules/chown (Depends-on): Add stat-macros.
69460
69461 2006-08-10  Jim Meyering  <jim@meyering.net>
69462
69463         * m4/cycle-check.m4: New file.
69464         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
69465         * m4/dev-ino.m4, m4/same-inode.m4: New files.
69466
69467 2006-08-10  Eric Blake  <ebb9@byu.net>
69468
69469         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
69470         in from original proposal.
69471
69472 2006-08-10  Eric Blake  <ebb9@byu.net>
69473         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
69474
69475         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
69476         namespace.
69477
69478 2006-08-10  Bruno Haible  <bruno@clisp.org>
69479
69480         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
69481         as well.
69482
69483 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
69484
69485         Sync from coreutils.
69486
69487         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
69488
69489         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
69490         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
69491
69492 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
69493
69494         * modules/restrict: Remove; no longer needed now that we assume
69495         Autoconf 2.59 or later.
69496         * MODULES.html.sh: Remove 'restrict'.
69497         * modules/argp (Depends-on): Remove 'restrict'.
69498         * modules/base64 (Depends-on): Likewise.
69499         * modules/gc (Depends-on): Likewise.
69500         * modules/getaddrinfo (Depends-on): Likewise.
69501         * modules/glob (Depends-on): Likewise.
69502         * modules/inet_ntop (Depends-on): Likewise.
69503         * modules/inet_pton (Depends-on): Likewise.
69504         * modules/memxor (Depends-on): Likewise.
69505         * modules/regex (Depends-on): Likewise.
69506         * modules/strtok_r (Depends-on): Likewise.
69507         * modules/time_r (Depends-on): Likewise.
69508
69509 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
69510
69511         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
69512         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
69513         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
69514         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
69515         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
69516         * m4/memxor.m4 (gl_MEMXOR): Likewise.
69517         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
69518         gl_C_RESTRICT replaced by AC_C_RESTRICT.
69519
69520         Merge from coreutils.
69521         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
69522         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
69523         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
69524         * m4/time_r.m4 (gl_TIME_R): Likewise.
69525
69526 2006-08-09  Karl Berry  <karl@gnu.org>
69527
69528         * config/srclist.txt: no more gettext-tools, per Bruno.
69529
69530 2006-08-08  Eric Blake  <ebb9@byu.net>
69531
69532         * modules/verror: New module.
69533         * MODULES.html.sh: Document it.
69534
69535 2006-08-08  Eric Blake  <ebb9@byu.net>
69536
69537         * lib/verror.h, lib/verror.c: New files.
69538
69539 2006-08-08  Eric Blake  <ebb9@byu.net>
69540
69541         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
69542         verror_at_line output complies with GNU Coding Standards even when
69543         file is NULL.
69544
69545 2006-08-07  Bruno Haible  <bruno@clisp.org>
69546
69547         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
69548         versions of AIX.
69549         Reported by Ralf Wildenhues.
69550
69551 2006-08-07  Bruno Haible  <bruno@clisp.org>
69552
69553         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
69554         in an AC_DEFUN. Needed so that the autoconf snippets can use
69555         AC_REQUIRE.
69556
69557 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69558
69559         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
69560         Initialize pkgdata_DATA.
69561         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
69562         overriding it.
69563
69564 2006-08-06  Eric Blake  <ebb9@byu.net>
69565
69566         * lib/error.h: Fold in some upstream changes from glibc.
69567         * lib/error.c: Likewise.
69568
69569 2006-08-04  Bruno Haible  <bruno@clisp.org>
69570
69571         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
69572         Make the mostlyclean-local rule depend on mostlyclean-generic.
69573         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
69574
69575 2006-07-31  Bruno Haible  <bruno@clisp.org>
69576
69577         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
69578         <stdlib.h>, <string.h>.
69579
69580 2006-07-30  Bruno Haible  <bruno@clisp.org>
69581
69582         * modules/readlink (License): Change to LGPL.
69583
69584 2006-07-30  Bruno Haible  <bruno@clisp.org>
69585
69586         * modules/javaversion (Makefile.am): Distribute javaversion.java and
69587         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
69588         set PKGDATADIR to point to it.
69589
69590 2006-07-30  Bruno Haible  <bruno@clisp.org>
69591
69592         * modules/csharpexec (configure.ac): Comment out macro invocation.
69593         * modules/javaexec (configure.ac): Likewise.
69594         * modules/javacomp-script (configure.ac): Likewise.
69595
69596         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
69597
69598 2006-07-30  Bruno Haible  <bruno@clisp.org>
69599
69600         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
69601         linked-list.
69602
69603 2006-07-30  Bruno Haible  <bruno@clisp.org>
69604
69605         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
69606
69607 2006-07-30  Bruno Haible  <bruno@clisp.org>
69608
69609         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
69610         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
69611         get removed.
69612
69613 2006-07-29  Bruno Haible  <bruno@clisp.org>
69614
69615         Make it possible for gnulib-tool to work with locally modified or
69616         augmented gnulib repositories.
69617         * gnulib-tool (func_usage): Document --local-dir option.
69618         (local_gnulib_dir): New variable.
69619         Handle --local-dir option.
69620         (func_lookup_file): New function.
69621         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
69622         (func_get_description, func_get_filelist, func_get_description,
69623         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
69624         func_get_automake_snippet, func_get_include_directive,
69625         func_get_license, func_get_maintainer): Use func_lookup_file.
69626         (func_import, func_create_testdir): Use func_lookup_file.
69627
69628 2006-07-29  Bruno Haible  <bruno@clisp.org>
69629
69630         * modules/setenv (Depends-on): Add unistd.
69631
69632 2006-07-29  Bruno Haible  <bruno@clisp.org>
69633
69634         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
69635
69636 2006-07-29  Bruno Haible  <bruno@clisp.org>
69637
69638         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
69639
69640 2006-07-29  Bruno Haible  <bruno@clisp.org>
69641
69642         * gnulib-tool (import, update): If there is no Makefile.am, look at
69643         aclocal.m4, instead of bailing out.
69644
69645 2006-07-29  Bruno Haible  <bruno@clisp.org>
69646
69647         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
69648         Categorize the options by when they are useful.
69649
69650 2006-07-29  Bruno Haible  <bruno@clisp.org>
69651
69652         * gnulib-tool (func_usage): Document option --no-libtool.
69653         Handle option --no-libtool.
69654         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
69655         for changed semantics of $libtool variable.
69656         (func_import): Likewise. If libtool is not used, show this through
69657         an option --no-libtool.
69658         (func_create_testdir): Update.
69659
69660 2006-07-29  Bruno Haible  <bruno@clisp.org>
69661
69662         * gnulib-tool (func_import): Extend error message about missing
69663         --doc-base.
69664
69665 2006-07-29  Bruno Haible  <bruno@clisp.org>
69666
69667         * gnulib-tool (func_import): Don't create the $docbase directory if
69668         there is no file to store there.
69669
69670 2006-07-29  Bruno Haible  <bruno@clisp.org>
69671
69672         * gnulib-tool (autoconf_minversion): If a --dir option is given and
69673         relevant, look for configure.ac there, not in the current directory.
69674         Also use a simple search for AC_PREREQ, not "autoconf --trace".
69675
69676 2006-07-29  Bruno Haible  <bruno@clisp.org>
69677
69678         * gnulib-tool (SORT): New variable.
69679         (func_usage): Undocument --assume-autoconf option.
69680         Remove --assume-autoconf option handling.
69681         (autoconf_minversion): Determine from the contents of configure.ac.
69682         (func_import): Remove autoconf_minversion handling.
69683         Suggested by Eric Blake.
69684
69685 2006-07-29  Bruno Haible  <bruno@clisp.org>
69686
69687         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
69688
69689 2006-07-29  Bruno Haible  <bruno@clisp.org>
69690
69691         * config/srclist.txt (*setenv.[ch]): Remove rules.
69692
69693 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
69694
69695         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
69696
69697 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
69698
69699         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
69700         arpa/inet.h.
69701
69702 2006-07-28  Simon Josefsson  <jas@extundo.com>
69703
69704         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
69705         * modules/inet_pton (Depends-on): Likewise.
69706
69707 2006-07-28  Simon Josefsson  <jas@extundo.com>
69708
69709         * m4/netinet_in_h.m4: New file.
69710
69711 2006-07-28  Simon Josefsson  <jas@extundo.com>
69712
69713         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
69714         #include's.
69715
69716 2006-07-28  Simon Josefsson  <jas@extundo.com>
69717
69718         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
69719         #include's.
69720
69721 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
69722
69723         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
69724         setgid on directories only if they set these bits.
69725         * lib/modechange.h: Remove obsolete comment about masks.
69726
69727 2006-07-28  Eric Blake  <ebb9@byu.net>
69728
69729         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
69730         macro expansion.
69731
69732 2006-07-28  Bruno Haible  <bruno@clisp.org>
69733
69734         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
69735
69736 2006-07-28  Bruno Haible  <bruno@clisp.org>
69737
69738         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
69739
69740 2006-07-28  Bruno Haible  <bruno@clisp.org>
69741
69742         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
69743         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
69744         Define fallbacks.
69745         Avoids link error on FreeBSD 4.x.
69746         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
69747
69748         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
69749         encoding.
69750         * lib/mbswidth.c (iswcntrl): Likewise.
69751
69752 2006-07-27  Bruno Haible  <bruno@clisp.org>
69753
69754         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
69755         test.
69756
69757 2006-07-27  Bruno Haible  <bruno@clisp.org>
69758
69759         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
69760         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
69761         defined.
69762
69763 2006-07-26  Eric Blake  <ebb9@byu.net>
69764
69765         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
69766
69767 2006-07-26  Eric Blake  <ebb9@byu.net>
69768
69769         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
69770         like mingw that lack mkstemp.
69771         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
69772         avoid compilation warning on mingw.
69773
69774 2006-07-26  Bruno Haible  <bruno@clisp.org>
69775
69776         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
69777         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
69778         INT_FAST*_MIN, INTPTR_MIN.
69779
69780 2006-07-25  Bruno Haible  <bruno@clisp.org>
69781
69782         * modules/version-etc (Depends-on): Add stdarg.
69783
69784 2006-07-25  Bruno Haible  <bruno@clisp.org>
69785
69786         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
69787         complex commands.
69788
69789 2006-07-25  Bruno Haible  <bruno@clisp.org>
69790
69791         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
69792         defined in <stdarg.h> or config.h.
69793
69794 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
69795
69796         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
69797         (gl_STDIO_SAFER): Remove.
69798
69799 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
69800
69801         * MODULES.html.sh (File stream based Input/Output):
69802         Add fopen-safer, tmpfile-safer; remove stdio-safer.
69803         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
69804         * modules/fopen-safer, modules/tmpfile-safer: New files.
69805         * modules/stdio-safer: Remove.
69806
69807 2006-07-24  Bruno Haible  <bruno@clisp.org>
69808
69809         * modules/tmpdir: New file.
69810         * MODULES.html.sh (File system functions): Add it.
69811
69812 2006-07-24  Bruno Haible  <bruno@clisp.org>
69813
69814         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
69815         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
69816
69817 2006-07-24  Bruno Haible  <bruno@clisp.org>
69818
69819         * modules/clean-temp: New file.
69820
69821 2006-07-24  Bruno Haible  <bruno@clisp.org>
69822
69823         * m4/tmpdir.m4: New file, from GNU gettext.
69824
69825 2006-07-24  Bruno Haible  <bruno@clisp.org>
69826
69827         * lib/tmpdir.h: New file, from GNU gettext.
69828         * lib/tmpdir.c: New file, from GNU gettext.
69829
69830 2006-07-24  Bruno Haible  <bruno@clisp.org>
69831
69832         * lib/clean-temp.h: New file, from GNU gettext.
69833         * lib/clean-temp.c: New file, from GNU gettext.
69834
69835 2006-07-23  Eric Blake  <ebb9@byu.net>
69836
69837         * modules/stdio-safer (Files): Add tmpfile-safer.c.
69838         (Depends-on): Add binary-io.
69839
69840 2006-07-23  Eric Blake  <ebb9@byu.net>
69841
69842         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
69843
69844 2006-07-23  Eric Blake  <ebb9@byu.net>
69845
69846         * lib/tmpfile-safer.c: New file.
69847         * lib/stdio-safer.h (fopen_safer): Add prototype.
69848         * lib/stdio--.h (tmpfile): Make safer.
69849
69850 2006-07-23  Bruno Haible  <bruno@clisp.org>
69851
69852         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
69853         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
69854         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
69855         gl_linked_remove_at): Use it.
69856
69857 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
69858         and Simon Josefsson <jas@extundo.com>
69859
69860         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
69861
69862         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
69863
69864 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
69865
69866         * modules/close-stream: New file.
69867         * modules/closeout (Description): Make it clear that it exits
69868         with a diagnostic on error.
69869         (Depends-on): Add close-stream.  Remove fpending, stdbool.
69870         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
69871
69872 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
69873
69874         * m4/close-stream.m4: New file.
69875
69876 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
69877
69878         * lib/close-stream.c, lib/close-stream.h: New files.
69879
69880 2006-07-22  Bruno Haible  <bruno@clisp.org>
69881
69882         Merge from GNU gettext 0.15.
69883
69884         2006-05-01  Bruno Haible  <bruno@clisp.org>
69885
69886                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
69887
69888         2006-07-22  Bruno Haible  <bruno@clisp.org>
69889
69890                 * modules/javaversion: New file.
69891                 * MODULES.html.sh (Java): Add javaversion.
69892
69893         2006-03-12  Bruno Haible  <bruno@clisp.org>
69894
69895                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
69896
69897         2005-12-04  Bruno Haible  <bruno@clisp.org>
69898
69899                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
69900                 (untested).
69901
69902         2006-06-21  Bruno Haible  <bruno@clisp.org>
69903
69904                 Avoid warnings from recent versions of mcs.
69905                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
69906                 -o, -L, -r any more. Use options documented since mcs-1.0
69907                 instead. Similarly for -g.
69908
69909         2005-12-04  Bruno Haible  <bruno@clisp.org>
69910
69911                 * build-aux/csharpcomp.sh.in: Suffix for resources is
69912                 .resources, not .resource.
69913
69914         2005-07-09  Bruno Haible  <bruno@clisp.org>
69915
69916                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
69917                 add a .dll suffix.
69918                 Reported by Mark Junker <mjscod@gmx.de>.
69919
69920         2006-07-22  Bruno Haible  <bruno@clisp.org>
69921
69922                 * modules/gettext: Upgrade to gettext-0.15.
69923                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
69924                 m4/visibility.m4.
69925                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
69926
69927 2006-07-22  Bruno Haible  <bruno@clisp.org>
69928
69929         Merge from GNU gettext 0.15.
69930
69931         2006-03-25  Bruno Haible  <bruno@clisp.org>
69932
69933                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
69934
69935         2006-07-21  Bruno Haible  <bruno@clisp.org>
69936
69937                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
69938                 "1.1".
69939
69940         2006-05-09  Bruno Haible  <bruno@clisp.org>
69941
69942                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
69943                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
69944                 for the conftestver execution.
69945
69946         2006-05-01  Bruno Haible  <bruno@clisp.org>
69947
69948                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
69949                 optional target-version argument. Verify that the compiler
69950                 groks source of the specified source-version, or add -source
69951                 option as necessary. Verify that the compiler produces
69952                 bytecode in the specified target-version, or add -target and
69953                 -source options as necessary. Make the result of the test
69954                 available as variable CONF_JAVAC. Also log error output in
69955                 config.log.
69956
69957         2006-03-11  Bruno Haible  <bruno@clisp.org>
69958
69959                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
69960
69961         2006-05-09  Bruno Haible  <bruno@clisp.org>
69962
69963                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
69964                 CLASSPATH_SEPARATOR to a semicolon.
69965
69966         2006-03-12  Bruno Haible  <bruno@clisp.org>
69967
69968                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
69969                 available as variable CONF_JAVA, for subsequent autoconf
69970                 tests. Also log error output in config.log.
69971
69972         2006-07-19  Bruno Haible  <bruno@clisp.org>
69973
69974                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
69975                 that getline works on glibc2 systems. Needed to avoid trouble
69976                 in relocatable.c.
69977                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
69978
69979         2005-12-04  Bruno Haible  <bruno@clisp.org>
69980
69981                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
69982                 launcher (untested).
69983
69984         2005-12-04  Bruno Haible  <bruno@clisp.org>
69985
69986                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
69987
69988         2006-07-22  Bruno Haible  <bruno@clisp.org>
69989
69990                 * gettext.m4: Update from GNU gettext-0.15.
69991                 * nls.m4: Likewise.
69992                 * po.m4: Likewise.
69993                 * inttypes-pri.m4: Likewise.
69994                 * inttypes-h.m4: Renamed from inttypes.m4.
69995                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
69996
69997 2006-07-22  Bruno Haible  <bruno@clisp.org>
69998
69999         Merge from GNU gettext 0.15.
70000
70001         2005-07-05  Bruno Haible  <bruno@clisp.org>
70002
70003                 * printf-args.c (printf_fetchargs): Work around broken
70004                 definition of wint_t on mingw.
70005
70006         2005-02-12  Bruno Haible  <bruno@clisp.org>
70007
70008                 * xallocsa.h: Add extern "C" for C++.
70009
70010         2006-05-17  Bruno Haible  <bruno@clisp.org>
70011
70012                 Cygwin portability.
70013                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
70014
70015         2006-04-30  Bruno Haible  <bruno@clisp.org>
70016
70017                 * progreloc.c: Include <mach-o/dyld.h> if available.
70018                 (find_executable): Use _NSGetExecutablePath when possible.
70019
70020         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
70021
70022                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
70023                 function.
70024
70025         2005-12-29  Bruno Haible  <bruno@clisp.org>
70026
70027                 * progreloc.c (set_program_name_and_installdir): Fix
70028                 compilation error.
70029
70030         2005-12-04  Bruno Haible  <bruno@clisp.org>
70031
70032                 Cygwin portability.
70033                 * progreloc.c: Include <windows.h> also on Cygwin.
70034                 (find_executable): Add support for Cygwin.
70035                 (set_program_name_and_installdir): Handle also platforms with
70036                 nonempty EXEEXT.
70037
70038         2006-07-11  Bruno Haible  <bruno@clisp.org>
70039
70040                 * javacomp.c: Fix a comment.
70041                 Reported by Jim Meyering.
70042
70043         2006-04-30  Bruno Haible  <bruno@clisp.org>
70044
70045                 * javacomp.h (compile_java_class): Add source_version,
70046                 target_version arguments.
70047                 * javacomp.c: Rewritten to choose only a compiler that
70048                 respects the specified source_version and target_version.
70049
70050         2006-06-27  Bruno Haible  <bruno@clisp.org>
70051
70052                 Assume correct S_ISDIR macro.
70053                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
70054
70055         2006-07-22  Bruno Haible  <bruno@clisp.org>
70056
70057                 * javaversion.h: New file, from GNU gettext.
70058                 * javaversion.c: New file, from GNU gettext.
70059                 * javaversion.java: New file, from GNU gettext.
70060                 * javaversion.class: New file, from GNU gettext.
70061
70062         2006-05-17  Bruno Haible  <bruno@clisp.org>
70063
70064                 Cygwin portability.
70065                 * javaexec.c (execute_java_class): Test for jview program
70066                 also on Cygwin.
70067
70068         2006-04-09  Bruno Haible  <bruno@clisp.org>
70069
70070                 * fatal-signal.c: Don't include string.h.
70071                 (at_fatal_signal): Use a copying loop instead of memcpy.
70072
70073         2005-12-04  Bruno Haible  <bruno@clisp.org>
70074
70075                 * csharpexec.c: Add support for 'clix' launcher (untested).
70076                 (execute_csharp_using_sscli): New function.
70077                 (execute_csharp_program): Call it.
70078
70079         2006-06-21  Bruno Haible  <bruno@clisp.org>
70080
70081                 Avoid warnings from recent versions of mcs.
70082                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
70083                 -o, -L, -r any more. Use options documented since mcs-1.0
70084                 instead. Similarly for -g.
70085
70086         2005-07-09  Bruno Haible  <bruno@clisp.org>
70087
70088                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
70089                 add a .dll suffix.
70090                 Reported by Mark Junker <mjscod@gmx.de>.
70091
70092         2006-06-17  Bruno Haible  <bruno@clisp.org>
70093
70094                 * config.charset: Update for NetBSD 3.0.
70095
70096         2006-05-17  Bruno Haible  <bruno@clisp.org>
70097
70098                 Cygwin portability.
70099                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
70100
70101         2006-05-16  Bruno Haible  <bruno@clisp.org>
70102
70103                 * localcharset.c [CYGWIN]: Include <windows.h>.
70104                 (get_charset_aliases): For Cygwin, return the same CPxxx
70105                 aliases list as under WIN32.
70106                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
70107                 the environment variables. Fall back to GetACP().
70108
70109         2006-04-05  Bruno Haible  <bruno@clisp.org>
70110
70111                 * config.charset: Update Juan Manuel Guerrero's address.
70112
70113         2005-02-12  Bruno Haible  <bruno@clisp.org>
70114
70115                 * allocsa.h: Add extern "C" for C++.
70116
70117         2005-02-10  Bruno Haible  <bruno@clisp.org>
70118
70119                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
70120                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
70121
70122         2006-07-22  Bruno Haible  <bruno@clisp.org>
70123
70124                 * gettext.h: Update to GNU gettext-0.15.
70125
70126 2006-07-22  Bruno Haible  <bruno@clisp.org>
70127
70128         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
70129         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
70130         lib-prefix.m4, longdouble.m4, ssize_t.m4.
70131
70132 2006-07-21  Eric Blake  <ebb9@byu.net>
70133
70134         * modules/stdlib-safer: New file.
70135         * MODULES.html.sh (File stream based Input/Output): Add
70136         stdlib-safer.
70137
70138 2006-07-21  Eric Blake  <ebb9@byu.net>
70139
70140         * lib/stdlib-safer.h: New file from coreutils, required by
70141         stdlib--.h.
70142
70143 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
70144
70145         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
70146
70147 2006-07-20  Bruno Haible  <bruno@clisp.org>
70148
70149         * gnulib-tool: Recognize new option --assume-autoconf.
70150         (autoconf_minversion): New variable.
70151         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
70152
70153 2006-07-20  Bruno Haible  <bruno@clisp.org>
70154
70155         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
70156
70157 2006-07-19  Derek R. Price  <derek@ximbiot.com>
70158
70159         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
70160         Reindent and repaginate.
70161
70162 2006-07-19  Derek Price  <derek@ximbiot.com>
70163
70164         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
70165         Correct grammar.
70166
70167 2006-07-17  Bruno Haible  <bruno@clisp.org>
70168
70169         * modules/list: New file.
70170         * modules/array-list: New file.
70171         * modules/carray-list, modules/carray-list-tests: New files.
70172         * modules/linked-list, modules/linked-list-tests: New files.
70173         * modules/avltree-list, modules/avltree-list-tests: New files.
70174         * modules/rbtree-list, modules/rbtree-list-tests: New files.
70175         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
70176         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
70177         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
70178         * modules/oset: New file.
70179         * modules/array-oset: New file.
70180         * modules/avltree-oset, modules/avltree-oset-tests: New files.
70181         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
70182         * tests/test-carray_list.c: New file.
70183         * tests/test-linked_list.c: New file.
70184         * tests/test-avltree_list.c: New file.
70185         * tests/test-rbtree_list.c: New file.
70186         * tests/test-linkedhash_list.c: New file.
70187         * tests/test-avltreehash_list.c: New file.
70188         * tests/test-rbtreehash_list.c: New file.
70189         * tests/test-avltree_oset.c: New file.
70190         * tests/test-rbtree_oset.c: New file.
70191         * MODULES.html.sh (Container data structures): New section.
70192
70193 2006-07-17  Bruno Haible  <bruno@clisp.org>
70194
70195         * m4/gl_list.m4: New file.
70196
70197 2006-07-17  Bruno Haible  <bruno@clisp.org>
70198
70199         * lib/gl_list.h: New file.
70200         * lib/gl_list.c: New file.
70201         * lib/gl_array_list.h: New file.
70202         * lib/gl_array_list.c: New file.
70203         * lib/gl_carray_list.h: New file.
70204         * lib/gl_carray_list.c: New file.
70205         * lib/gl_linked_list.h: New file.
70206         * lib/gl_linked_list.c: New file.
70207         * lib/gl_anylinked_list1.h: New file.
70208         * lib/gl_anylinked_list2.h: New file.
70209         * lib/gl_avltree_list.h: New file.
70210         * lib/gl_avltree_list.c: New file.
70211         * lib/gl_anyavltree_list1.h: New file.
70212         * lib/gl_anyavltree_list2.h: New file.
70213         * lib/gl_rbtree_list.h: New file.
70214         * lib/gl_rbtree_list.c: New file.
70215         * lib/gl_anyrbtree_list1.h: New file.
70216         * lib/gl_anyrbtree_list2.h: New file.
70217         * lib/gl_anytree_list1.h: New file.
70218         * lib/gl_anytree_list2.h: New file.
70219         * lib/gl_linkedhash_list.h: New file.
70220         * lib/gl_linkedhash_list.c: New file.
70221         * lib/gl_anyhash_list1.h: New file.
70222         * lib/gl_anyhash_list2.h: New file.
70223         * lib/gl_avltreehash_list.h: New file.
70224         * lib/gl_avltreehash_list.c: New file.
70225         * lib/gl_rbtreehash_list.h: New file.
70226         * lib/gl_rbtreehash_list.c: New file.
70227         * lib/gl_anytreehash_list1.h: New file.
70228         * lib/gl_anytreehash_list2.h: New file.
70229
70230         * lib/gl_oset.h: New file.
70231         * lib/gl_oset.c: New file.
70232         * lib/gl_array_oset.h: New file.
70233         * lib/gl_array_oset.c: New file.
70234         * lib/gl_avltree_oset.h: New file.
70235         * lib/gl_avltree_oset.c: New file.
70236         * lib/gl_rbtree_oset.h: New file.
70237         * lib/gl_rbtree_oset.c: New file.
70238         * lib/gl_anytree_oset.h: New file.
70239
70240 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
70241
70242         * m4/mkancesdirs.m4: New file.
70243         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
70244         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
70245         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
70246         it.
70247
70248 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
70249
70250         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
70251         * lib/mkancesdirs.h: New files.
70252         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
70253         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
70254         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
70255         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
70256         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
70257         callers changed.  Revamp internals significantly, by not
70258         attempting to create directories that are temporarily more
70259         permissive than the final results.  Do not attempt to use
70260         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
70261         This removes some race conditions, fixes some bugs, and simplifies
70262         things.  Use new dirchownmod function to do owner and mode changes.
70263         * lib/mkdir-p.h: Likewise.
70264         * lib/modechange.c (octal_to_mode): New function.
70265         (struct mode_change): New member mentioned.
70266         (make_node_op_equals): New arg mentioned.  All callers changed.
70267         (mode_compile): Keep track of which mode bits the user has explicitly
70268         mentioned.
70269         (mode_adjust): New arg DIR, so that we implement the X op correctly.
70270         New arg PMODE_BITS, to keep track of which mode bits the user
70271         mentioned; it treats S_ISUID and S_ISGID speciall.
70272         All callers changed.
70273         * lib/modechange.h: Likewise.
70274
70275 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
70276
70277         * MODULES.html.sh: Add mkancestors.
70278         * modules/mkancesdirs: New module.
70279         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
70280         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
70281         The chdir-safer and afs files are now orphans; I'll remove them
70282         unless someone speaks up.
70283         Add lib/dirchownmod.c, lib/dirchownmod.h.
70284         (Depends-on): Remove alloca, chown, save-cwd, dirname.
70285         Add lchown, mkancesdirs.
70286         (Maintainer): Add self.
70287
70288 2006-07-15  Karl Berry  <karl@gnu.org>
70289
70290         * gnulib-tool: help message wording/arrangement.
70291
70292 2006-07-14  Simon Josefsson  <jas@extundo.com>
70293
70294         * doc/gnulib.texi (Libtool and Windows): New section.
70295
70296 2006-07-12  Simon Josefsson  <jas@extundo.com>
70297
70298         * modules/gendocs (License): Fix license, approved by Karl.
70299
70300 2006-07-12  Eric Blake  <ebb9@byu.net>
70301
70302         * MODULES.html.sh: Add gendocs.
70303
70304 2006-07-11  Eric Blake  <ebb9@byu.net>
70305
70306         * modules/fdl: New module, to install doc/fdl.texi.
70307         * MODULES.html.sh: Add new section for documentation modules.
70308         * gnulib-tool: Avoid space-tab.
70309         (--doc-base): New option, to manage files from doc.
70310
70311 2006-07-11  Eric Blake  <ebb9@byu.net>
70312
70313         * m4/absolute-header.m4: Fix comments to match recent change.
70314
70315 2006-07-11  Eric Blake  <ebb9@byu.net>
70316
70317         * gnulib-tool: List --doc-base before --tests-base.
70318
70319 2006-07-11  Derek R. Price  <derek@ximbiot.com>
70320
70321         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
70322
70323 2006-07-11  Bruno Haible  <bruno@clisp.org>
70324
70325         * README: Mention where to put documentation.
70326
70327 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70328
70329         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
70330
70331 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
70332
70333         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
70334         to stdint.m4.
70335
70336 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
70337
70338         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
70339         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
70340         "no/such/file/stdint.h" when there is no such file, so that
70341         the resulting C code can be parsed by dodgy compilers.
70342         Problems reported by Bob Proulx.
70343
70344 2006-07-10  Derek R. Price  <derek@ximbiot.com>
70345
70346         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
70347         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
70348         macros into the GNU _D_EXACT_NAMLEN.
70349         * lib/savedir.c:  Likewise.
70350         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
70351
70352 2006-07-10  Derek R. Price  <derek@ximbiot.com>
70353         and Paul Eggert  <eggert@cs.ucla.edu>
70354
70355         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
70356         * m4/savedir.m4:
70357         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
70358         macros into the GNU _D_EXACT_NAMLEN.
70359
70360 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
70361
70362         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
70363         around the absolute name, to work around a problem with the HP-UX
70364         11.23 native C compiler, reported by Bob Proulx.
70365
70366 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
70367
70368         * doc/maintain.texi, make-stds.texi: Sync from
70369         <http://savannah.gnu.org/projects/gnustandards>.
70370
70371 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
70372
70373         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
70374
70375 2006-07-09  Jim Meyering  <jim@meyering.net>
70376
70377         * m4/glob.m4: Remove a doubled word in a comment.
70378
70379 2006-07-09  Jim Meyering  <jim@meyering.net>
70380
70381         * lib/argp-pv.c: Remove a doubled word in a comment.
70382         * lib/check-version.c (check_version): Likewise.
70383         * lib/javacomp.c (compile_java_class): Likewise.
70384
70385 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
70386
70387         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
70388         for the benefit of people using Autoconf 2.60.  If you want to
70389         support older Autoconf versions you can copy m4/onceonly_2_57.m4
70390         (or m4/onceonly.m4, if pre-2.57) manually.
70391
70392 2006-07-08  Jim Meyering  <jim@meyering.net>
70393
70394         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
70395         comment.
70396         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
70397         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
70398         comment.
70399
70400 2006-07-08  Jim Meyering  <jim@meyering.net>
70401
70402         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
70403
70404 2006-07-07  Simon Josefsson  <jas@extundo.com>
70405
70406         * tests/test-crc.c: Change expected crc value, the test vector
70407         were probably computed using the old broken crc.c?
70408
70409 2006-07-06  Simon Josefsson  <jas@extundo.com>
70410
70411         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
70412         now the canonical place for the M4 file).
70413
70414         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
70415         from the sys_socket dependency now.
70416
70417         * modules/inet_pton (Files): Ditto.
70418
70419         * modules/inet_ntop (Files): Ditto.
70420
70421 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
70422
70423         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
70424         not gl_PREREQ_GETUSERSHELL.
70425
70426 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70427
70428         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
70429         with only one argument, for Autoconf 2.60.
70430         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
70431         expand to nothing, so add a shell command to avoid syntax error.
70432         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
70433
70434 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70435
70436         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
70437
70438 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
70439
70440         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
70441         no longer needed.  Check for isblank decl.
70442         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
70443         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
70444         of existence.
70445
70446 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
70447
70448         * lib/getloadavg.c: Use __VMS, not VMS.
70449         * lib/getopt.c: Likewise.
70450         * lib/getpagesize.h: Likewise.
70451         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
70452         and probably does not work.
70453
70454 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
70455
70456         * lib/.cppi-disable: Add wcwidth.
70457         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
70458         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
70459         (ISGRAPH): Remove.  All uses changed to isgraph.
70460         (FOLD) [!defined _LIBC]: Remove special case.
70461         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
70462         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
70463         HAVE_ISBLANK.
70464         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
70465         case.
70466
70467 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
70468
70469         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
70470         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
70471         brackets.  Other minor changes to suppress some compiler
70472         warnings.
70473
70474 2006-07-06  Derek R. Price  <derek@ximbiot.com>
70475         and Paul Eggert  <eggert@cs.ucla.edu>
70476
70477         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
70478         of invoking obsolescent AC_HEADER_DIRENT macro.
70479         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
70480         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
70481         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
70482         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
70483         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
70484         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
70485         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
70486         * m4/readdir.m4: Remove; no longer needed.
70487
70488 2006-07-06  Derek R. Price  <derek@ximbiot.com>
70489         and Paul Eggert  <eggert@cs.ucla.edu>
70490
70491         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
70492         Don't worry about this obsolete case any more.
70493         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
70494         directories.
70495         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
70496         worry about this obsolete case any more.
70497         * lib/fts.c: Likewise.
70498         * lib/getcwd.c: Likewise.
70499         * lib/glob.h: Likewise.
70500         * lib/savedir.c: Likewise.
70501
70502 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
70503
70504         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
70505         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
70506         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
70507         needed.
70508         All uses removed.
70509         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
70510         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
70511         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
70512         needed.
70513         * m4/getdate.m4 (gl_GETDATE): Likewise.
70514         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
70515         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
70516         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
70517         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
70518         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
70519         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
70520         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
70521         needed.
70522
70523 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
70524
70525         * lib/memcasecmp.c: Include <limits.h>.
70526         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
70527         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
70528         Don't assume isdigit succeeds only on '0' through '9'.
70529
70530 2006-07-05  Eric Blake  <ebb9@byu.net>
70531
70532         * modules/getaddrinfo (Depends-on): Add snprintf.
70533
70534 2006-07-05  Eric Blake  <ebb9@byu.net>
70535
70536         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
70537         to avoid 'header present but could not be compiled' on cygwin.
70538
70539 2006-07-05  Eric Blake  <ebb9@byu.net>
70540
70541         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
70542         missing from netdb.h.
70543         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
70544
70545 2006-07-05  Derek R. Price  <derek@ximbiot.com>
70546
70547         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
70548         no longer needed.
70549         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
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/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
70556
70557 2006-07-05  Derek R. Price  <derek@ximbiot.com>
70558
70559         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
70560         All uses of is_space replaced by isspace.
70561         * lib/exit.h: Don't talk about STDC_HEADERS.
70562         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
70563         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
70564         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
70565         replaced by isprint etc.
70566         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
70567         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
70568         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
70569         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
70570         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
70571         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
70572
70573 2006-07-05  Bruno Haible  <bruno@clisp.org>
70574
70575         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
70576         the function exists, before testing against AIX.
70577         Reported by Martin Lambers <marlam@marlam.de>.
70578
70579 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
70580
70581         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
70582         From Mark D. Baushke.
70583
70584 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
70585
70586         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
70587         to the absolute name, not just one, to bypass Sun C 5.8's
70588         "warning: #include of /usr/include/... may be non-portable".
70589
70590 2006-07-04  Eric Blake  <ebb9@byu.net>
70591
70592         * modules/dirname-tests: New test module.
70593         * tests/test-dirname.c: New file, replacing dirname.c
70594         TEST_DIRNAME section that was recently deleted.
70595
70596 2006-07-04  Bruno Haible  <bruno@clisp.org>
70597
70598         Assume ANSI C header files and <ctype.h> functions.
70599         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
70600         (mbsnwidth): Use isprint, iscntrl instead.
70601
70602 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
70603
70604         Merge from coreutils.
70605         * MODULES.html.sh: Add xstrtold.
70606         * modules/xstrtold: New file.
70607         * modules/cycle-check (Files): Add lib/same-inode.h.
70608         * modules/dirname (Files): Add m4/double-slash-root.m4.
70609         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
70610         * modules/mkdir-p (Files): Add lib/same-inode.h.
70611         * modules/same (Files): Add lib/same-inode.h.
70612
70613 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
70614
70615         * m4/absolute-header.m4: Renamed from full-header-path.m4.
70616         This is to keep the terminology clean; POSIX talks about
70617         "absolute pathnames", not "full pathnames", but the GNU
70618         Coding Standards say to use "path" for something else;
70619         so use "absolute" to keep both sides happy.
70620         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
70621         Set gl_absolute_header, not gl_full_header_path.
70622         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
70623         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
70624         All uses changed.
70625
70626         Merge from coreutils.
70627
70628         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
70629
70630         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
70631         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
70632         want to require the building of c-strtod.o.
70633         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
70634         needs -lm directly.
70635         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
70636
70637         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
70638
70639         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
70640         --as-needed option if available.  Problem reported by Albert Chin in
70641         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
70642         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
70643         cc merely issues a bunch of annoying warnings for --as-needed
70644         (this problem was reported by Bob Proulx).  Also, try linking with
70645         -lm to detect a bug in binutils 2.16 (this problem was reported
70646         by Ralf Wildenhues).
70647
70648         2006-06-18  Jim Meyering  <jim@meyering.net>
70649
70650         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
70651         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
70652         macro.
70653         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
70654         also check for glibc-2.4's abort-inducing bug.
70655
70656         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
70657         Low-probability clean-up should be to use rmdir to get rid of
70658         the just-created directory, not unlink.
70659
70660         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
70661         configure fail, and request a bug report to inform us about it.
70662         Add a comment that, barring reports to the contrary, in 2007 we'll
70663         assume ftruncate is universally available.
70664
70665         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
70666
70667         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
70668
70669         2006-03-12  Jim Meyering  <jim@meyering.net>
70670
70671         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
70672         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
70673         * m4/same.m4 (gl_SAME): Likewise.
70674         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
70675
70676         2006-03-11  Eric Blake  <ebb9@byu.net>
70677
70678         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
70679         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
70680         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
70681         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
70682
70683 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
70684
70685         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
70686         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
70687         reported by Mark D. Baushke, one in
70688         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
70689
70690         Merge from coreutils.
70691
70692         * lib/.cppi-disable: Add stdint_.h.
70693         * lib/.cvsignore: Add stdint.h.
70694
70695         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
70696
70697         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
70698         both double and long double versions.
70699         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
70700         * lib/xstrtold.c: New file.
70701         * lib/xstrtod.h (xstrtold): New decl.
70702
70703         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
70704
70705         * lib/filemode.c (setst): Remove.
70706         (strmode): Rewrite to avoid setst.  This makes the code shorter,
70707         (arguably) clearer, and the generated code is a bit smaller on my
70708         Debian GNU/Linux stable x86 host.
70709
70710         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
70711
70712         * lib/filemode.c: Include "filemode.h" first, to test the interface.
70713         Assume that filemode.h includes sys/types.h and sys/stat.h.
70714         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
70715         (ftypelet): Reorder to put common cases first, for efficiency.
70716         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
70717         to do 'M'.
70718         (strmode): Renamed from mode_string, and now stores 12 bytes instead
70719         of 10, for compatibility with FreeBSD.  All callers changed.
70720         (filemodestring): Now stores 12 bytes instead of 10, and sets file
70721         types that can't be deduced solely from st_mode.  First arg is now a
70722         const pointer.
70723         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
70724         (strmode): Renamed from mode_string.
70725         (filemodestring): New decl.
70726         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
70727         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
70728         needed.
70729         (S_ISPORT, S_ISWHT): New macros, if not already defined.
70730
70731         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
70732
70733         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
70734         fsusage.h now does that.  Include fsusage.h first, to test interface.
70735         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
70736         at most one method (the old code could have generated decls that
70737         didn't conform to C89, not that this was ever exercised).
70738         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
70739
70740         2006-03-19  Jim Meyering  <jim@meyering.net>
70741
70742         Work even in a chroot where d_ino values for entries in "/"
70743         don't match the stat.st_ino values for the same names.
70744         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
70745         number, iterate through all entries again, using lstat instead.
70746         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
70747         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
70748
70749         * lib/getcwd.c (__getcwd): Clarify a comment.
70750         Use memcpy in place of a call to strcpy.
70751
70752         2006-03-12  Jim Meyering  <jim@meyering.net>
70753
70754         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
70755         matches that of the current directory (which we're about to chdir ".."
70756         out of), then save the dev-ino of the parent, instead.
70757
70758         * lib/same-inode.h (SAME_INODE): New file/macro.
70759         * lib/chdir-safer.c (SAME_INODE): Remove definition.
70760         Include "same-inode.h", instead.
70761         * lib/same.c: Likewise.
70762         * lib/cycle-check.h: Include "same-inode.h".
70763         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
70764         * lib/cycle-check.c (SAME_INODE): Remove definition.
70765         * lib/root-dev-ino.h: Include "same-inode.h".
70766
70767         2006-03-11  Eric Blake  <ebb9@byu.net>
70768
70769         * lib/same.c (same_name): s/base_name/last_component/
70770         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
70771         * lib/filenamecat.c (file_name_concat): Likewise.
70772
70773         2006-03-11  Eric Blake  <ebb9@byu.net>,
70774                     Paul Eggert  <eggert@cs.ucla.edu>
70775
70776         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
70777         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
70778         drive prefix.
70779         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
70780         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
70781         (last_component): New method.
70782         * lib/dirname.c (dir_len): Determine when drive letters need a
70783         subsequent slash.  Preserve // when it is special.
70784         (dir_name): Don't append dot when drive letter is absolute.
70785         [TEST_DIRNAME]: Move into a full-blown gnulib test.
70786         * lib/basename.c (base_name): New semantics - malloc the result.
70787         Preserve // when it is special.  Preserve relative files that look
70788         like drive letters.
70789         (base_len): Preserve // when it is special.
70790         (last_component): New method, similar to old base_name semantics.
70791         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
70792         base_name.  Strip redundant slashes from ///.
70793
70794 2006-07-03  Jim Meyering  <jim@meyering.net>
70795
70796         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
70797         macro is used before the first cycle_check call.
70798
70799 2006-07-03  Eric Blake  <ebb9@byu.net>
70800
70801         * modules/dirname (Depends-on): Add xstrndup.
70802
70803 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
70804
70805         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
70806         test cases, so that config.log is a bit easier to follow.
70807
70808 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
70809
70810         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
70811         both are 64 bits, since this seems to be the tradition, and this
70812         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
70813         we ever run into a host that prefers long long to long in this
70814         case, we'll need another configure-time test.  Problem reported by
70815         Jim Meyering.
70816
70817 2006-07-02  Eric Blake  <ebb9@byu.net>
70818
70819         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
70820
70821 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
70822
70823         * modules/inttypes (Depends-on): No longer depends on stdint.
70824         * modules/stdint (Description): Say more about assumptions.
70825         Say that the fast types might differ.  Say macros are used.
70826         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
70827         (Makefile.am): Revise list of substituted symbols to match
70828         new stdint.m4.
70829         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
70830         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
70831         * tests/test-stdint.c (verify_same_types)
70832         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
70833         the code conforms to C99/C89.
70834         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
70835         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
70836
70837 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
70838
70839         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
70840         but fix a bug, by requiring at least 64 bits.
70841         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
70842         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
70843         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
70844         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
70845
70846         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
70847         changes.  Make 2.59 a prerequisite.  Check and substitute for
70848         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
70849         inttypes.h.  Do not use special include files; just use the
70850         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
70851         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
70852         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
70853         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
70854         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
70855         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
70856         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
70857         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
70858         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
70859         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
70860         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
70861         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
70862         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
70863         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
70864         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
70865         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
70866         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
70867         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
70868         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
70869         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
70870         WINT_MAX.  Check for C99 conformance more strictly, by detecting
70871         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
70872         not check for things that C99 does not require, e.g., int8_t.  If
70873         a test isn't needed unless <stdint.h> isn't working, and is
70874         unlikely to be needed for any other reason, then don't do it
70875         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
70876         size_t, since we assume C89 freestanding at least.  Do not check
70877         for sig_atomic_t, wchar_t, or wint_t, since the code now does
70878         the right thing even if the types are not defined.  Instead use:
70879         (gl_STDINT_TYPE_PROPERTIES): New macro.
70880         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
70881         testing whether <sys/types.h> clashes, as Autoconf does this for
70882         us now.  All uses removed.
70883         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
70884         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
70885         (gl_CHECK_TYPE_SAME):
70886         Remove; no longer needed.
70887         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
70888         exists, since we'll return 0 anyway in that case.
70889         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
70890
70891 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
70892
70893         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
70894         possible collision with system files.
70895         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
70896         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
70897         WCHAR_MIN and WCHAR_MAX in this case.
70898         (<stddef.h>): Do not include; no longer needed.
70899         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
70900         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
70901         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
70902         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
70903         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
70904         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
70905         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
70906         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
70907         !defined(__c99))]: Include in this case too, since it's harmless
70908         now.
70909         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
70910         dangerous to do so.
70911         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
70912         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
70913         (_STDINT_MIN, _STDINT_MAX): New macros.
70914         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
70915         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
70916         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
70917         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
70918         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
70919         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
70920         macros, not typedefs; this simplifies things quite a bit.
70921         Use long int for all types narrower than int64_t.
70922         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
70923         Define in terms of long long int or int64_t or long int,
70924         not int64_t or int32_t.  This saves some compile-time testing.
70925         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
70926         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
70927         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
70928         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
70929         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
70930         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
70931         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
70932         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
70933         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
70934         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
70935         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
70936         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
70937         undef any previous version and define our own version, for
70938         simplicity and consistency with the new macros for types.
70939         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
70940         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
70941         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
70942         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
70943         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
70944         @WINT_T_SUFFIX@ to keep things simple here.
70945         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
70946         Simplify by assuming typical 8/16/32/64 host, since we're
70947         already doing that elsewhere anyway.
70948         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
70949         and assume long long int is 64 bits if available.  This
70950         speeds up 'configure'.
70951
70952 2006-07-01  Eric Blake  <ebb9@byu.net>
70953
70954         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
70955         Reported by Andreas Buening.
70956
70957 2006-07-01  Eric Blake  <ebb9@byu.net>
70958
70959         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
70960
70961 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
70962
70963         * lib/getaddrinfo.c: fixed typo
70964
70965 2006-06-29  Jim Meyering  <jim@meyering.net>
70966
70967         * modules/strftime (Maintainer): Add my name, since with the
70968         FPRINTFTIME changes strftime.c has forked from glibc.
70969
70970 2006-06-29  Eric Blake  <ebb9@byu.net>
70971
70972         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
70973
70974 2006-06-29  Eric Blake  <ebb9@byu.net>
70975
70976         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
70977
70978 2006-06-29  Eric Blake  <ebb9@byu.net>
70979
70980         * lib/stat_.h: New file.
70981
70982 2006-06-29  Eric Blake  <ebb9@byu.net>
70983
70984         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
70985         unused static function.
70986
70987 2006-06-29  Eric Blake  <ebb9@byu.net>
70988
70989         * doc/functions.texi (Function Portability): Document missing lstat
70990         on mingw.
70991
70992 2006-06-29  Eric Blake  <ebb9@byu.net>
70993
70994         * MODULES.html.sh: Add sys_stat.
70995         * modules/sys_stat: New module.
70996         * modules/mkstemp (Depends-on): Add sys_stat.
70997
70998 2006-06-29  Derek R. Price  <derek@ximbiot.com>
70999
71000         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
71001
71002 2006-06-29  Derek R. Price  <derek@ximbiot.com>
71003
71004         * m4/c-bs-a.m4: Removed.
71005
71006 2006-06-29  Derek R. Price  <derek@ximbiot.com>
71007
71008         * lib/strftime.c: Assume strftime() exists.
71009
71010 2006-06-29  Derek Price  <derek@ximbiot.com>
71011
71012         * modules/c-bs-a: Removed - \a is C89.
71013         * MODULES.html.sh: Remove c-bs-a.
71014
71015 2006-06-29  Bruno Haible  <bruno@clisp.org>
71016
71017         * modules/wcwidth (License): Change to LGPL.
71018
71019 2006-06-28  Simon Josefsson  <jas@extundo.com>
71020
71021         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
71022         on _WIN32.
71023
71024         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
71025         getnameinfo.
71026
71027 2006-06-28  Simon Josefsson  <jas@extundo.com>
71028
71029         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
71030
71031 2006-06-28  Simon Josefsson  <jas@extundo.com>
71032
71033         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
71034         functions there.  It will succeed on Windows XP, but on Windows
71035         2000 and (presumably) earlier, it will fail, and use the internal
71036         re-implementation.
71037         (use_win32_p): New function.
71038         (getaddrinfo): Use strtoul on servname, to support numeric ports.
71039         Support AI_NUMERICSERV to disable getservbyname.
71040         (getnameinfo): New function, only supports
71041         NI_NUMERICHOST|NI_NUMERICSERV for now.
71042
71043         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
71044         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
71045         getnameinfo.
71046
71047 2006-06-28  Eric Blake  <ebb9@byu.net>
71048
71049         * modules/wcwidth: New file.
71050         * modules/mbchar (Depends-on): Add wcwidth.
71051         * modules/mbswidth (Depends-on): Add wcwidth.
71052         * MODULES.html.sh: Add wcwidth.
71053
71054 2006-06-28  Eric Blake  <ebb9@byu.net>
71055
71056         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
71057         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
71058
71059 2006-06-28  Eric Blake  <ebb9@byu.net>
71060
71061         * lib/xvasprintf.h: Fix comments.
71062
71063 2006-06-28  Eric Blake  <ebb9@byu.net>
71064
71065         * lib/mbchar.h (wcwidth): Include wcwidth.h.
71066         * lib/mbswidth.c (wcwidth): Move from here...
71067         * lib/wcwidth.h: ...to this new file.
71068
71069 2006-06-28  Derek R. Price  <derek@ximbiot.com>
71070
71071         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
71072
71073         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
71074         it's obsolete.
71075         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
71076
71077 2006-06-28  Derek R. Price  <derek@ximbiot.com>
71078
71079         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
71080         Autoconf 2.60 says this stuff was obsolete.
71081
71082 2006-06-28  Bruno Haible  <bruno@clisp.org>
71083
71084         * modules/wcwidth (Files): Add m4/wchar_t.m4.
71085
71086 2006-06-28  Bruno Haible  <bruno@clisp.org>
71087
71088         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
71089         gt_TYPE_WCHAR_T.
71090
71091 2006-06-28  Bruno Haible  <bruno@clisp.org>
71092
71093         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
71094         declaration for wcwidth.
71095         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
71096
71097 2006-06-28  Bruno Haible  <bruno@clisp.org>
71098
71099         * lib/mkdtemp.c [MINGW]: Include <io.h>.
71100         (mkdir): Define using _mkdir.
71101
71102 2006-06-28  Bruno Haible  <bruno@clisp.org>
71103
71104         * lib/getaddrinfo.h: Fix POSIX URL.
71105         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
71106         _WIN32.
71107         (use_win32_p): Make static.
71108         (getaddrinfo): Reject service name if it is empty or does not consist
71109         solely of decimal digits, or if its value is > 65535.
71110         (getnameinfo): Remove useless casts.
71111
71112 2006-06-27  Simon Josefsson  <jas@extundo.com>
71113
71114         * modules/sys_select: New file, suggested by Bruno Haible, Paul
71115         Eggert and Martin Lambers.
71116
71117 2006-06-27  Simon Josefsson  <jas@extundo.com>
71118
71119         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
71120         Eggert and Martin Lambers.
71121
71122 2006-06-27  Bruno Haible  <bruno@clisp.org>
71123
71124         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
71125         result to 0, not to empty.
71126         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
71127
71128 2006-06-27  Bruno Haible  <bruno@clisp.org>
71129
71130         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
71131
71132 2006-06-26  Simon Josefsson  <jas@extundo.com>
71133
71134         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
71135         present.
71136
71137 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
71138
71139         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
71140         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
71141         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
71142
71143 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
71144
71145         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
71146
71147 2006-06-26  Bruno Haible  <bruno@clisp.org>
71148
71149         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
71150
71151 2006-06-26  Bruno Haible  <bruno@clisp.org>
71152
71153         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
71154
71155 2006-06-26  Bruno Haible  <bruno@clisp.org>
71156
71157         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
71158         SGI C compiler in pre-C99 mode.
71159         Suggested by Mark D. Baushke and Larry Jones.
71160
71161 2006-06-26  Bruno Haible  <bruno@clisp.org>
71162
71163         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
71164         WCHAR_MAX.
71165         Reported by Mark D. Baushke and Larry Jones.
71166
71167 2006-06-26  Bruno Haible  <bruno@clisp.org>
71168
71169         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
71170         in pre-C99 mode.
71171         Suggested by Mark D. Baushke and Larry Jones.
71172
71173 2006-06-23  Simon Josefsson  <jas@extundo.com>
71174             Bruno Haible  <bruno@clisp.org>
71175
71176         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
71177         Emit mostlyclean-local rule.
71178         (func_emit_tests_Makefile_am): Likewise.
71179         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
71180
71181 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
71182
71183         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
71184
71185 2006-06-23  Bruno Haible  <bruno@clisp.org>
71186
71187         * tests/test-stdint.c: Update to match ISO C 99 Technical
71188         Corrigendum 1.
71189
71190 2006-06-23  Bruno Haible  <bruno@clisp.org>
71191
71192         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
71193
71194 2006-06-23  Bruno Haible  <bruno@clisp.org>
71195
71196         * lib/stdint_.h: Treat IRIX like OpenBSD.
71197
71198 2006-06-23  Bruno Haible  <bruno@clisp.org>
71199
71200         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
71201         ISO C 99 Technical Corrigendum 1.
71202
71203 2006-06-22  Simon Josefsson  <jas@extundo.com>
71204
71205         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
71206         MinGW.
71207
71208 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
71209
71210         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
71211         needed.  Some compiler complained about some of them.  Problem reported
71212         by Larry Jones in
71213         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
71214
71215 2006-06-21  Simon Josefsson  <jas@extundo.com>
71216
71217         * tests/test-getaddrinfo.c: New file.
71218
71219         * modules/getaddrinfo-tests: New file.
71220
71221         * MODULES.html.sh: Add inet_pton.
71222
71223         * modules/inet_pton: New file.
71224
71225 2006-06-21  Simon Josefsson  <jas@extundo.com>
71226
71227         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
71228         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
71229         of using the (limited) gnulib implementation on Windows XP.
71230
71231         * m4/inet_pton.m4: New file.
71232
71233 2006-06-21  Simon Josefsson  <jas@extundo.com>
71234
71235         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
71236         variable.
71237
71238         * lib/socket_.h: Don't define WINVER.
71239
71240         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
71241         slightly modified to work in gnulib.
71242
71243 2006-06-21  Simon Josefsson  <jas@extundo.com>
71244
71245         * doc/gnulib.texi (Windows sockets): Add.
71246
71247 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
71248
71249         * lib/read-file.c (fread_file): Start with buffer allocation of
71250         0 bytes rather than 1 byte; this simplifies the code.
71251         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
71252         code to free buffer and save/restore errno.
71253         (internal_read_file): Remove unused local.
71254
71255 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
71256
71257         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
71258         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
71259         Problem reported by Denis Excoffier in
71260         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
71261
71262 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
71263
71264         * modules/sys_socket, modules/socklen: Include sys/types since
71265         FreeBSD 4.x's sys/socket.h needs it.
71266
71267 2006-06-19  Simon Josefsson  <jas@extundo.com>
71268
71269         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
71270
71271 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
71272
71273         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
71274
71275 2006-06-19  Bruno Haible  <bruno@clisp.org>
71276
71277         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
71278         and FULL_PATH_INTTYPES_H in angle brackets.
71279         Reported by Mark D. Baushke <mdb@gnu.org>.
71280
71281 2006-06-17  Eric Blake  <ebb9@byu.net>
71282
71283         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
71284         errno.
71285
71286 2006-06-17  Bruno Haible  <bruno@clisp.org>
71287
71288         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
71289         <sys/inttypes.h>.
71290
71291 2006-06-17  Bruno Haible  <bruno@clisp.org>
71292
71293         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
71294         whether errno is declared. Assume <errno.h> declares errno.
71295
71296 2006-06-17  Bruno Haible  <bruno@clisp.org>
71297
71298         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
71299
71300 2006-06-17  Bruno Haible  <bruno@clisp.org>
71301
71302         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
71303         problem on Solaris 2.5.1.
71304
71305 2006-06-16  Eric Blake  <ebb9@byu.net>
71306
71307         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
71308         * lib/unicodeio.c [!defined errno]: Likewise.
71309         * lib/strtol.c [!defined errno]: Likewise.
71310         * lib/strtod.c [!defined errno]: Likewise.
71311
71312 2006-06-15  Eric Blake  <ebb9@byu.net>
71313
71314         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
71315
71316 2006-06-15  Eric Blake  <ebb9@byu.net>
71317
71318         * config/srclist.txt (ssize_t.m4): Lose sync.
71319
71320 2006-06-15  Bruno Haible  <bruno@clisp.org>
71321
71322         * modules/stdint (Files): Include m4/full-header-path.m4,
71323         m4/size_max.m4, m4/wchar_t.m4.
71324         (Makefile.am): Many more substitutions.
71325         * modules/stdint-tests: New file.
71326         * tests/test-stdint.c: New file.
71327
71328 2006-06-15  Bruno Haible  <bruno@clisp.org>
71329
71330         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
71331         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
71332         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
71333         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
71334         gl_CHECK_TYPE_SAME): New macros.
71335
71336 2006-06-15  Bruno Haible  <bruno@clisp.org>
71337
71338         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
71339
71340 2006-06-15  Bruno Haible  <bruno@clisp.org>
71341
71342         * lib/stdint_.h: Rewritten to be fully auto-configured.
71343         Fixes bug on HP-UX/IA64.
71344
71345 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
71346
71347         * lib/getdate.y (__attribute__): Don't define if already defined.
71348         Problem reported by Larry Jones.
71349         * lib/utimens.c (__attribute__): Likewise.
71350
71351 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
71352
71353         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
71354         reported by Andreas Schwab.
71355
71356 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71357             Bruno Haible  <bruno@clisp.org>
71358
71359         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
71360         check for the declaration of strnlen and a run test that exposes the
71361         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
71362         rpl_strndup.
71363
71364 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71365             Bruno Haible  <bruno@clisp.org>
71366
71367         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
71368
71369 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71370
71371         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
71372         compile test, for Tru64 4.0D.
71373
71374 2006-05-28  Karl Berry  <karl@gnu.org>
71375
71376         * config/srclist.txt (printf-args.c): lose sync.
71377
71378 2006-05-26  Martin Lambers  <marlam@marlam.de>
71379
71380         * lib/getpass.c: Updates the test for the native W32 API, and adds
71381         missing includes, thus fixing compilation warnings.
71382
71383 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
71384
71385         * lib/exclude.c (exclude_fnmatch): New function.
71386         (excluded_file_name): Call exclude_fnmatch.
71387         * lib/exclude.h (excluded_file_name): New prototype
71388
71389 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
71390
71391         * lib/tempname.c (small_open, large_open): New macros.
71392         (__open, __open64) [!_LIBC]: Remove.
71393         (__gen_tempname): Use small_open and large_open instead of __open
71394         and __open64.  This fixes a portability bug on HP-UX 11.11i
71395         reported by Simon Wing-Tang in
71396         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
71397
71398 2006-05-24  Bruno Haible  <bruno@clisp.org>
71399
71400         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
71401         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
71402         Reported by Thorsten Maerz <torte@netztorte.de> via
71403         Aaron Stone <aaron@serendipity.cx>.
71404
71405 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
71406
71407         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
71408         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
71409         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
71410         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
71411         not really conditional on the cache.
71412         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
71413
71414 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
71415
71416         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
71417         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
71418         (my_usleep): Don't mishandle maximum value.
71419
71420 2006-05-19  Jim Meyering  <jim@meyering.net>
71421
71422         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
71423
71424 2006-05-17  Bruno Haible  <bruno@clisp.org>
71425
71426         Cygwin portability.
71427         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
71428
71429 2006-05-17  Bruno Haible  <bruno@clisp.org>
71430
71431         * lib/stdint_.h: Fix recognition of Cygwin.
71432
71433 2006-05-15  Bruno Haible  <bruno@clisp.org>
71434
71435         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
71436         on libtool patch by Ralf Wildenhues.
71437
71438 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
71439
71440         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
71441         test for C99 conformance; (bool) 0.5 is an integer constant
71442         expression, but (bool) -0.5 is not.  Problem reported by Fedor
71443         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
71444
71445 2006-05-11  Simon Josefsson  <jas@extundo.com>
71446
71447         * m4/xvasprintf.m4: Fix obvious typo.
71448
71449 2006-05-11  Jim Meyering  <jim@meyering.net>
71450
71451         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
71452         James Lemley.
71453
71454 2006-05-10  Simon Josefsson  <jas@extundo.com>
71455
71456         * lib/md4.c: Typo fix, update copyright years.
71457         (K1, K2): Don't use L because it turn computations into 64-bit on
71458         64-bit platforms.
71459
71460 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
71461
71462         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
71463         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
71464         unwanted sign propagation, e.g., on hosts with 64-bit int.
71465         There still are some problems with reeelly weird theoretical hosts
71466         (e.g., 33-bit int) but it's not worth worrying about now.
71467         * lib/sha1.c (rol): Likewise.
71468         (K1, K2, K3, K4): Remove unnecessary L suffix.
71469
71470 2006-05-10  Bruno Haible  <bruno@clisp.org>
71471
71472         * lib/des.c: Cast to avoid warnings.
71473
71474 2006-05-09  Bruno Haible  <bruno@clisp.org>
71475
71476         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
71477         (Depends-on): Depend also on xsize, stdarg.
71478         (configure.ac): Add gl_XVASPRINTF.
71479
71480 2006-05-09  Bruno Haible  <bruno@clisp.org>
71481
71482         * m4/xvasprintf.m4: New file.
71483
71484 2006-05-09  Bruno Haible  <bruno@clisp.org>
71485
71486         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
71487         (EOVERFLOW): Define fallback value.
71488         (xstrcat): New function.
71489         (xvasprintf): Recognize the special case of a string concatenation.
71490
71491 2006-05-08  Eric Blake  <ebb9@byu.net>
71492
71493         * gnulib-tool (func_version): Base copyright year on CVS date.
71494         (func_emit_copyright_notice): New function.
71495         (func_emit_lib_Makefile_am): Use it.
71496         (func_emit_tests_Makefile_am): Likewise.
71497         (func_import): Likewise.
71498
71499 2006-05-08  Bruno Haible  <bruno@clisp.org>
71500
71501         * modules/stdarg: New file.
71502         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
71503
71504 2006-05-08  Bruno Haible  <bruno@clisp.org>
71505
71506         * m4/stdarg.m4: New file, from GNU gettext.
71507
71508 2006-05-08  Bruno Haible  <bruno@clisp.org>
71509
71510         * config/srclist.txt (build-aux/config.rpath): different from latest
71511         release.
71512
71513 2006-05-08  Bruno Haible  <bruno@clisp.org>
71514
71515         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
71516
71517 2006-05-05  Jim Meyering  <jim@meyering.net>
71518
71519         * m4/warning.m4: New file, derived from bison's file by the same name.
71520
71521 2006-05-03  Bruno Haible  <bruno@clisp.org>
71522
71523         * lib/stdint_.h: Shorter URL.
71524         * lib/inttypes.h: Likewise.
71525
71526 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
71527
71528         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
71529
71530 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
71531
71532         * lib/verify.h: Document the internals better.  Most of this change
71533         was written by Bruno Haible.
71534
71535 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
71536
71537         * doc/verify.texi: New file, partly based on a proposal by
71538         Bruno Haible.
71539
71540 2006-05-02  Bruno Haible  <bruno@clisp.org>
71541
71542         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
71543         test from here...
71544         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
71545
71546 2006-04-29  Bruno Haible  <bruno@clisp.org>
71547
71548         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
71549         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
71550
71551 2006-04-29  Bruno Haible  <bruno@clisp.org>
71552
71553         * gnulib-tool: Make --update option actually work.
71554
71555 2006-04-29  Bruno Haible  <bruno@clisp.org>
71556
71557         * doc/gcd.texi: New file.
71558         * doc/gnulib.texi: Include it.
71559
71560 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
71561
71562         * lib/getdate.y (get_date): When adding relative date, start with the
71563         initial time, not with the result of the first mktime call.
71564
71565 2006-04-25  Bruno Haible  <bruno@clisp.org>
71566
71567         * gnulib-tool (func_import): Output the include directives in three
71568         blocks, sorted separately.
71569         Reported by Ben Pfaff <blp@cs.stanford.edu>.
71570
71571 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
71572
71573         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
71574         to define main with arguments, for C++.  Reported by Eric Blake.
71575         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
71576         Prefer 'int main ()' to 'int main (void)', for C++.
71577         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
71578         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
71579         for 'main', for C99 and C++.
71580
71581 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
71582
71583         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
71584         Don't assume that exit status -1 is valid.
71585         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
71586         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
71587         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
71588         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
71589         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
71590         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
71591         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
71592         functions can be used without declaring them, or that you can
71593         exit with status -1.
71594         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
71595
71596 2006-04-24  Karl Berry  <karl@gnu.org>
71597
71598         * config/srclist.txt (longdouble.m4): sync lost.
71599
71600 2006-04-24  Eric Blake  <ebb9@byu.net>
71601
71602         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
71603
71604 2006-04-24  Bruno Haible  <bruno@clisp.org>
71605
71606         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
71607         poll() implementation in AIX.
71608         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
71609
71610 2006-04-24  Bruno Haible  <bruno@clisp.org>
71611
71612         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
71613         assigned exactly once.
71614
71615 2006-04-23  Claudio Fontana  <claudio@gnu.org>
71616             Bruno Haible  <bruno@clisp.org>
71617
71618         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
71619         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
71620         for AM_CPPFLAGS.
71621
71622 2006-04-23  Bruno Haible  <bruno@clisp.org>
71623
71624         * modules/copy-file: Depend on unistd.
71625         * modules/execute: Likewise.
71626         * modules/fatal-signal: Likewise.
71627         * modules/findprog: Likewise.
71628         * modules/mkdtemp : Likewise.
71629         * modules/pipe: Likewise.
71630         * modules/wait-process: Likewise.
71631
71632 2006-04-23  Bruno Haible  <bruno@clisp.org>
71633
71634         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
71635         condition was already detected.
71636         Reported by Ben Pfaff <blp@cs.stanford.edu>.
71637
71638 2006-04-23  Bruno Haible  <bruno@clisp.org>
71639
71640         * lib/copy-file.c: Include <unistd.h> unconditionally.
71641         * lib/execute.c: Likewise.
71642         * lib/fatal-signal.c: Likewise.
71643         * lib/findprog.c: Likewise.
71644         * lib/mkdtemp.c: Likewise.
71645         * lib/pipe.h: Likewise.
71646         * lib/pipe.c: Likewise.
71647         * lib/wait-process.h: Likewise.
71648
71649 2006-04-23  Bruno Haible  <bruno@clisp.org>
71650
71651         * gnulib-tool (func_usage): Fix --import description. Document
71652         --update.
71653         (func_import): Create temporary file in a temporary directory, if
71654         --dry-run is specified. Silence errors from 'grep' when there are no
71655         m4 files in $m4dir.
71656         (func_create_testdir): Silence errors from 'grep' when there are no
71657         m4 files in $m4dir.
71658         Reported by Karl Berry <karl@freefriends.org>.
71659
71660 2006-04-20  Bruno Haible  <bruno@clisp.org>
71661
71662         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
71663         one argument, so that the code will be portable to Autoconf 2.60.
71664         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
71665         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
71666         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
71667
71668 2006-04-19  Derek Price  <derek@ximbiot.com>
71669             Eric Blake  <ebb9@byu.net>
71670
71671         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
71672         rather than "/full/path.h".  Update comment to match.  Shorten &
71673         generalize m4_translit call via AS_TR_CPP.
71674
71675 2006-04-19  Derek Price  <derek@ximbiot.com>
71676             Eric Blake  <ebb9@byu.net>
71677
71678         * lib/inttypes.h: Correct grammar in comment.
71679
71680 2006-04-18  Derek Price  <derek@ximbiot.com>
71681             Paul Eggert  <eggert@cs.ucla.edu>
71682
71683         * modules/inttypes: New file.
71684         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
71685
71686 2006-04-18  Derek Price  <derek@ximbiot.com>
71687             Paul Eggert  <eggert@cs.ucla.edu>
71688
71689         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
71690         New files.
71691
71692 2006-04-18  Derek Price  <derek@ximbiot.com>
71693             Paul Eggert  <eggert@cs.ucla.edu>
71694
71695         * lib/inttypes.h: New file.
71696         * lib/strtoimax.c: Assume <inttypes.h>.
71697
71698 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
71699
71700         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
71701         isn't mounted.  Problem reported by Kir Kolyshkin.
71702
71703 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
71704
71705         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
71706         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
71707         Derek R. Price.
71708         * lib/regex.h (RE_DUP_MAX): Update comment to match current
71709         implementation.
71710
71711 2006-04-12  Eric Blake  <ebb9@byu.net>
71712
71713         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
71714         is now done automatically by the corresponding Autoconf macro.
71715
71716 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
71717
71718         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
71719         time_r.h.
71720
71721 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
71722
71723         Merge regex changes from libc, removing some of our
71724         POSIX-conformance changes that were rejected and redoing them in a
71725         less-intrusive way.
71726
71727         * lib/regcomp.c (re_compile_internal, init_dfa):
71728         Length arg is now size_t, not Idx.  All uses changed.
71729         (peek_token): Forward decl now says internal_function.
71730         (__re_error_msgid, __re_error_msgid_idx):
71731         Now static rather than extern with attribute_hidden.
71732         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
71733         For some reason libc prefers K&R style defns for external functions.
71734         (regerror) [!defined _LIBC]: Likewise.
71735         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
71736         (seek_collating_symbol_entry, lookup_collation_sequence_value):
71737         (build_range_exp, build_collating_symbol):
71738         Use K&R-style defn.
71739         (re_compile_fastmap): Use '\0' to memset, not 0.
71740         (utf8_sb_map): Make the calculations more obvious.
71741         (init_dfa, parse_bracket_exp, build_charclass_op):
71742         Call calloc and cast result, as glibc does.
71743         (init_word_char, fetch_token, peek_token, peek_token_bracket):
71744         (build_range_exp, build_collating_symbol):
71745         Now internal functions.
71746
71747         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
71748
71749         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
71750         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
71751         Don't depend on VMS; depend on __VMS instead, for POSIX
71752         namespace cleanness.
71753         (regoff_t): Define to ssize_t, not long int.
71754
71755         Remove the REG_ macros named below.  Instead, make the old names
71756         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
71757         __USE_GNU_REGEX.
71758         (REG_BACKSLASH_ESCAPE_IN_LISTS):
71759         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
71760         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
71761         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
71762         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
71763         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
71764         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
71765         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
71766         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
71767         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
71768         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
71769         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
71770         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
71771         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
71772         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
71773         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
71774         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
71775         (REG_NREGS):
71776         Remove.  All uses replaced by the old RE_* names.
71777         (RE_BACKSLASH_ESCAPE_IN_LISTS):
71778         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
71779         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
71780         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
71781         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
71782         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
71783         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
71784         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
71785         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
71786         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
71787         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
71788         Don't bother having these macros be independent of each others'
71789         values, since they no longer exist in the POSIX name space.
71790
71791         Rename the following member names back to their old names,
71792         unless !__USE_GNU_REGEX.  All uses changed back.
71793         (buffer): Renamed from re_buffer.
71794         (allocated): Renamed from re_allocated.
71795         (used): Renamed from re_used.
71796         (syntax): Renamed from re_syntax.
71797         (fastmap): Renamed from re_fastmap.
71798         (translate): Renamed from re_translate.
71799         (can_be_null): Renamed from re_can_be_null.
71800         (regs_allocated): Renamed from re_regs_allocated.
71801         (fastmap_accurate): Renamed from re_fastmap_accurate.
71802         (no_sub): Renamed from re_no_sub.
71803         (not_bol): Renamed from re_not_bol.
71804         (not_eol): Renamed from re_not_eol.
71805         (newline_anchor): Renamed from re_newline_anchor.
71806         (num_regs): Renamed from rm_num_regs.
71807         (start): Renamed from rm_start.
71808         (end): Renamed from rm_end.
71809
71810         (free_state): Move up a bit.
71811
71812         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
71813         #define to be empty.
71814         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
71815         when that is what is intended.
71816         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
71817         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
71818         (MAX): New macro.
71819         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
71820         All uses changed back to re_malloc, etc.  It's now the caller's
71821         responsibility to check for overflow; all callers changed.
71822         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
71823         (re_x2nrealloc): Remove.
71824         (free_state): Remove decl.
71825
71826         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
71827         (re_set_registers, re_exec):
71828         Use K&R-style defn.
71829
71830         2006-01-31  Roland McGrath  <roland@redhat.com>
71831
71832         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
71833         Reported by Mike Frysinger <vapier@gentoo.org>.
71834
71835         2006-01-15  Andreas Jaeger  <aj@suse.de>
71836
71837         [BZ #1950]
71838         * lib/regex_internal.c (re_string_reconstruct): Adjust for
71839         build_wcs_upper_buffer change.
71840         (build_wcs_upper_buffer): Change return type.
71841
71842         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
71843
71844         * lib/regex_internal.h: Include <stdint.h> if available.
71845
71846         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
71847
71848         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
71849
71850         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
71851
71852         * lib/regcomp.c: Adjust for changed secondary hash function.
71853
71854         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
71855
71856         * lib/regex.h: Pretty printing.
71857         Clean up namespace a bit.
71858
71859         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
71860
71861         * lib/regexec.c (update_cur_sifted_state, check_arrival,
71862         check_arrival_add_next_nodes): Avoid using uninitialized variable.
71863
71864         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
71865                     Ulrich Drepper  <drepper@redhat.com>
71866
71867         [BZ #1302]
71868         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
71869         changed.
71870         (bitset_word_t): Renamed from bitset_word.  All uses changed.
71871
71872         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
71873
71874         [BZ #281]
71875         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
71876         * lib/regcomp.c: Remove unnecessary uses of
71877         unsigned RE_TRANSLATE_TYPE.
71878         * lib/regex_internal.h: Likewise.
71879         * lib/regex_internal.c: Likewise.
71880         * lib/regexec.c: Likewise.
71881         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
71882
71883         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
71884
71885         * lib/regexec.c (find_recover_state): Remove unnecessary
71886         initialization.
71887         (transit_state_bkref): Make DFA a const pointer.
71888         (get_subexp): Likewise.
71889         (check_arrival): Likewise.
71890         (update_cur_sifted_state): Likewise.
71891         (re_search_internal): Likewise.
71892         (prune_impossible_nodes): Likewise.
71893         (acquire_init_state_context): Likewise.
71894         (proceed_next_node): Likewise.
71895         (set_regs): Likewise.
71896         (free_fail_stack_return): Likewise.
71897         (check_arrival_expand_ecl): Mark DFA parameter as const.
71898         (check_arrival_expand_ecl_sub): Likewise.
71899         (check_subexp_limits): Likewise.
71900         (sub_epsilon_src_nodes):  Likewise.
71901         (add_epsilon_src_nodes):  Likewise.
71902         (merge_state_array): Likewise.
71903         (update_regs): Likewise.
71904         (build_trtable): Likewise.
71905         (sift_states_backward): Mark MCTX parameter as const.
71906         (build_sifted_states): Likewise.
71907         (update_cur_sifted_state): Likewise.
71908         (sift_states_mkref): Likewise.
71909         (check_arrival_expand_ecl): Mark eclosure as const.
71910         (check_dst_limits_calc_pos_1): Likewise.
71911         * lib/regex_internal.h (re_match_context_t): Make dfa a const
71912         pointer.
71913
71914         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
71915
71916         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
71917         (transit_state_sb): Likewise.
71918         (transit_state_mb): Likewise.
71919         (sift_states_iter_mb): Likewise.
71920         (check_arrival_add_next_nodes): Likewise.
71921         (check_node_accept_bytes): Change first parameter to pointer-to-const.
71922         [_LIBC] (re_search_2_stub): Use mempcpy.
71923
71924         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
71925         mbrtowc for very simple UTF-8 case.
71926
71927         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
71928         a pointer-to-const.
71929         (re_acquire_state_context): Likewise.
71930         * lib/regex_internal.h: Adjust prototypes.
71931
71932         * lib/regex.c: Prevent using C++ compilers.
71933
71934         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
71935         (re_acquire_state_context): Likewise.
71936
71937 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
71938
71939         * modules/regex (Depends-on): Add ssize_t.
71940
71941 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
71942
71943         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
71944         translation table.
71945
71946 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
71947
71948         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
71949
71950 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
71951             Bruno Haible  <bruno@clisp.org>
71952
71953         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
71954         <sys/types.h> and <inttypes.h>.
71955
71956 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71957
71958         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
71959         `__error_t_defined', so argp.h will not typedef the former.
71960
71961 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
71962
71963         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
71964         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
71965         glibc names.  Even if glibc is changed to conform to POSIX, the
71966         traditional names will be available anyway, since regex depends on
71967         the extensions module.  Also, fix a longstanding typo in the
71968         implementation of Spencer ERE test #75 from grep 2.3.  Problems
71969         reported by Emanuele Giaquinta.  Also, change sense of cached
71970         variable, so that the message makes sense.
71971
71972 2006-03-24  Simon Josefsson  <jas@extundo.com>
71973
71974         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
71975         including some doc fixes.
71976         (base64_encode_alloc): Fix +1 bug on allocation failures.
71977
71978 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71979
71980         * lib/base64.c (base64_encode): Do not read past end of array with
71981         unsanitized input on systems with CHAR_BIT > 8.
71982
71983 2006-03-24  Eric Blake  <ebb9@byu.net>
71984
71985         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
71986
71987 2006-03-22  Karl Berry  <karl@gnu.org>
71988
71989         * config/srclist.txt (*setenv.[ch]): get from coreutils.
71990         * config/srclistvars.sh (COREUTILS): new var.
71991
71992 2006-03-17  Jim Meyering  <jim@meyering.net>
71993
71994         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
71995         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
71996
71997 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
71998
71999         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
72000         no longer needs it.  Instead, check that regoff_t is as least
72001         as wide as ptrdiff_t.
72002
72003         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
72004         so that our regex.h stays compatible with the installed regex.
72005         This is helpful for installers who configure --without-included-regex.
72006         Problem reported by Emanuele Giaquinta.
72007
72008 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
72009
72010         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
72011         Typedef to long int, not to off_, as POSIX will likely change
72012         in that direction.
72013
72014 2006-03-15  Eric Blake  <ebb9@byu.net>
72015
72016         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
72017
72018 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
72019
72020         * lib/argp-help.c (validate_uparams): Fix typo
72021         * lib/argp-parse.c (argp_default_options): Consistently begin help
72022         messages with a lowercase letter.
72023
72024 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
72025
72026         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
72027         overrun buffers and shouldn't be used (much as gets shouldn't be
72028         used).
72029         * lib/time_r.c (asctime_r, ctime_r): Likewise.
72030
72031 2006-03-08  Simon Josefsson  <jas@extundo.com>
72032
72033         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
72034         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
72035
72036 2006-03-08  Simon Josefsson  <jas@extundo.com>
72037
72038         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
72039         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
72040
72041 2006-03-08  Simon Josefsson  <jas@extundo.com>
72042
72043         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
72044         signal that configure disabled the device.
72045
72046 2006-03-08  Simon Josefsson  <jas@extundo.com>
72047
72048         * build-aux/maint.mk: Fix refresh-po, to handle no translated
72049         languages.
72050
72051 2006-03-07  Simon Josefsson  <jas@extundo.com>
72052
72053         * modules/getopt (Depends-on): Add unistd.
72054
72055         * modules/unistd: New file.
72056
72057 2006-03-07  Simon Josefsson  <jas@extundo.com>
72058
72059         * modules/gc-random: New file.
72060
72061 2006-03-07  Simon Josefsson  <jas@extundo.com>
72062
72063         * m4/unistd_h.m4: New file.
72064
72065 2006-03-07  Simon Josefsson  <jas@extundo.com>
72066
72067         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
72068         test to be side-effect free by storing the result in the cache
72069         variable gl_cv_lib_readline, and moving the assignment of
72070         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
72071         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
72072
72073 2006-03-07  Simon Josefsson  <jas@extundo.com>
72074
72075         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
72076         error on missing devices (the functions will return an error).
72077
72078         * m4/gc.m4: Move random stuff to gc-random.m4
72079
72080 2006-03-07  Simon Josefsson  <jas@extundo.com>
72081
72082         * lib/unistd_.h: New file.
72083
72084 2006-03-07  Simon Josefsson  <jas@extundo.com>
72085
72086         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
72087
72088 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
72089
72090         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
72091         Problem reported by Juan Manuel Guerrero.
72092
72093 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
72094
72095         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
72096         the unistd module.
72097         * lib/getlogin_r.c: Likewise.
72098         * lib/getlogin_r.h: Likewise.
72099         * lib/glob.c: Likewise.
72100         * lib/pagealign_alloc.c: Likewise.
72101         * lib/unistd_.h: Remove; no longer needed.
72102
72103 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
72104
72105         * MODULES.html.sh (Support for systems lacking POSIX:2001):
72106         Add unistd.
72107         * modules/c-stack (Depends-on): Add unistd.
72108         * modules/getlogin_r: Likewise.
72109         * modules/glob: Likewise.
72110         * modules/pagealign_alloc: Likewise.
72111         * modules/unistd (Files): Remove lib/unistd_.h.
72112         (EXTRA_DIST): Remove.
72113         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
72114         need unistd_.h.
72115         (MOSTLYCLEANFILES): Remove unistd.h-t.
72116
72117 2006-03-03  Simon Josefsson  <jas@extundo.com>
72118
72119         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
72120
72121 2006-03-03  Simon Josefsson  <jas@extundo.com>
72122
72123         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
72124         libidn and bison.
72125
72126 2006-03-03  Simon Josefsson  <jas@extundo.com>
72127
72128         * build-aux/maint.mk: Add indent target.
72129
72130 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
72131
72132         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
72133         our replacement poll.h in any case, to avoid a differing
72134         declaration from a system header.  Seen on AIX.
72135
72136 2006-03-01  Simon Josefsson  <jas@extundo.com>
72137
72138         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
72139         <kasal@ucw.cz>.
72140
72141 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
72142
72143         * modules/gettime (Depends-on): Add extensions module.
72144         * modules/nanosleep (Depends-on): Likewise.
72145         * modules/settime (Depends-on): Likewise.
72146
72147 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
72148
72149         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
72150         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
72151         pedantically.
72152         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
72153         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
72154
72155         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
72156         not "==".  Reported by Ralf Wildenhues.
72157
72158 2006-03-01  Karl Berry  <karl@gnu.org>
72159
72160         * doc/Copyright/request-*: new files, synced from gnuorg.
72161
72162 2006-03-01  Karl Berry  <karl@gnu.org>
72163
72164         * config/srclist.txt (Copyright/*): new entries.
72165
72166 2006-02-28  Simon Josefsson  <jas@extundo.com>
72167
72168         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
72169
72170 2006-02-27  Simon Josefsson  <jas@extundo.com>
72171
72172         * lib/base64.h: Indent #define's.  From Jim Meyering
72173         <jim@meyering.net>.
72174
72175 2006-02-27  Jim Meyering  <jim@meyering.net>
72176
72177         Revert the change of 2006-02-24, so these files can continue
72178         to be sync'd from gettext.
72179         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
72180         of `config.h'.
72181
72182 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
72183
72184         * modules/intprops: New file.
72185         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
72186         Add intprops.
72187         * modules/getloadavg (Files): Remove lib/intprops.h.
72188         (Depends-on): Add intprops.
72189         * modules/human: Likewise.
72190         * modules/inttostr: Likewise.
72191         * modules/openat: Likewise.
72192         * modules/sig2str: Likewise.
72193         * modules/userspec: Likewise.
72194         * modules/utimecmp: Likewise.
72195         * modules/xnanosleep: Likewise.
72196         * modules/xstrtol: Likewise.
72197
72198 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
72199
72200         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
72201         * modules/lock-tests (TESTS): Use $(EXEEXT).
72202         * modules/tls-tests: Likewise.
72203         * modules/argp-tests: Likewise.
72204         (check_PROGRAMS): New var, replacing...
72205         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
72206
72207 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72208
72209         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
72210         `config.h'.
72211
72212 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
72213
72214         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
72215
72216 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72217
72218         Sync from coreutils.
72219         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
72220         gl_CHDIR_SAFER.
72221
72222 2006-02-22  Jim Meyering  <jim@meyering.net>
72223
72224         Sync from coreutils.
72225         * m4/chdir-safer.m4: New file.
72226
72227 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
72228
72229         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
72230         AT_FDCWD exceeds INT_MAX.
72231         * lib/openat.h (AT_FDCWD): Likewise.
72232
72233 2006-02-17  Eric Blake  <address@hidden>
72234
72235         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
72236
72237 2006-02-16  Simon Josefsson  <jas@extundo.com>
72238
72239         * modules/getaddrinfo (Depends-on): Add sys_socket.
72240
72241 2006-02-15  Simon Josefsson  <jas@extundo.com>
72242
72243         * build-aux/maint.mk: Add dsyntax-check rule.
72244
72245 2006-02-15  Eric Blake  <ebb9@byu.net>
72246
72247         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
72248         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
72249         'present but cannot compile' warnings on cygwin.
72250         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
72251         use ws2tcpip.h if sys/socket.h works.
72252         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
72253         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
72254
72255 2006-02-14  Simon Josefsson  <jas@extundo.com>
72256
72257         * modules/maintainer-makefile (Files): Rename.
72258
72259         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
72260         and (the local) Makefile.cfg to maint-cfg.mk.
72261
72262         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
72263         to the latter.
72264
72265         * modules/maintainer-makefile: New module.
72266
72267         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
72268         severaly stripped to make it possible to build it up from scratch
72269         with reliable tests.
72270
72271         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
72272         fixes to permit overriding the default actions when configure and
72273         makefile are not available.
72274
72275 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
72276
72277         Sync from coreutils.
72278         * modules/lstat (Depends-on): Don't depend on xalloc.
72279         (License): Change from GPL to LGPL, since this is now simply a
72280         replacement for a libc function.
72281
72282 2006-02-14  Jim Meyering  <jim@meyering.net>
72283
72284         Sync from coreutils.
72285
72286         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
72287         failure on deficient systems, and simplify gnulib lgpl dependencies.
72288         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
72289         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
72290
72291         * lib/xalloc-die.c: Remove unused definition of N_.
72292
72293 2006-02-14  Jim Meyering  <jim@meyering.net>
72294
72295         Sync from coreutils.
72296         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
72297         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
72298         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
72299         double-quote uses of that variable, to accommodate the rare case in
72300         which getmntent is available in none of the libraries checked.  This
72301         happens at least on FreeBSD 5.0.
72302
72303 2006-02-13  Simon Josefsson  <jas@extundo.com>
72304
72305         * gnulib-tool (Usage): Fix --import, from
72306         karl@freefriends.org (Karl Berry).
72307
72308 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
72309
72310         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
72311
72312 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
72313
72314         * lib/argp-namefrob.h: Restore changes accidentally lost during the
72315         "autoupdate" on 2005-12-12.
72316
72317 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
72318
72319         * modules/closeout (Depends-on): Remove atexit.
72320
72321 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
72322
72323         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
72324         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
72325
72326 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
72327
72328         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
72329         __EXTENSIONS__ if this causes compilation to fail.  Problem
72330         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
72331         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
72332
72333 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
72334
72335         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
72336         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
72337         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
72338         All uses changed.
72339
72340 2006-01-26  Simon Josefsson  <jas@extundo.com>
72341
72342         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
72343         prototype is visible on mingw32.
72344
72345         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
72346         for mingw32.
72347
72348         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
72349         mingw32).
72350
72351 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
72352
72353         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
72354         attempt to open for write; this always fails, at least on POSIX
72355         hosts.  This reinstates the 2006-01-09 change, which was
72356         inadvertently removed.
72357
72358 2006-01-26  Bruno Haible  <bruno@clisp.org>
72359
72360         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
72361         Reported by Paul Eggert.
72362
72363 2006-01-26  Bruno Haible  <bruno@clisp.org>
72364             Paul Eggert  <eggert@cs.ucla.edu>
72365
72366         * lib/stdbool_.h (_Bool)
72367         [(! (defined __cplusplus || defined __BEOS__)
72368           && !defined __GNUC__
72369           && !(defined __HP_cc || defined __xlc__
72370                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
72371                || defined __sgi))]:
72372         #define to signed char in these cases too; this simplifies
72373         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
72374         etc., separately) and makes it more conservative.
72375
72376 2006-01-25  Simon Josefsson  <jas@extundo.com>
72377
72378         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
72379         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
72380         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
72381
72382 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
72383
72384         * lib/argp-namefrob.h: Bugfix. Remove stray #
72385
72386 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
72387
72388         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
72389         so that we test the test.
72390         Check for yet another HP-UX cc bug involving *bool |= bool.
72391
72392 2006-01-25  Karl Berry  <karl@gnu.org>
72393
72394         * config/srclist.txt (vasnprintf.c): sync lost.
72395
72396 2006-01-25  Jim Meyering  <jim@meyering.net>
72397
72398         Sync from the stable (b5) branch of coreutils:
72399
72400         * lib/fts.c (fts_children): Don't let close() clobber errno from
72401         failed fchdir().
72402
72403         * lib/fts.c (fts_stat): When following a symlink-to-directory,
72404         don't necessarily interpret stat-fails+lstat-succeeds as indicating
72405         a dangling symlink.  That can also happen at least for ELOOP.
72406         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
72407         FYI, this bug predates the inclusion of fts.c in coreutils.
72408
72409         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
72410         in their own block, so pre-c99 compilers don't object.
72411
72412         Avoid the double-free (first in fts_read, second in fts_close) that
72413         would occur when an `active' directory is made inaccessible (e.g.,
72414         via chmod a-x) during a traversal.
72415         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
72416         before returning.  Reproduce this failure by
72417         mkdir -p a/b; cd a; chmod a-x . b
72418         Reported by Stavros Passas.
72419
72420 2006-01-25  Jim Meyering  <jim@meyering.net>
72421
72422         * lib/fileblocks.c: Remove more useless parentheses.
72423         * lib/readutmp.h: Likewise.
72424
72425 2006-01-25  Bruno Haible  <bruno@clisp.org>
72426
72427         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
72428         warnings.
72429         Reported by Paul Eggert.
72430
72431 2006-01-25  Bruno Haible  <bruno@clisp.org>
72432
72433         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
72434         rid of a trap command. For Solaris sh.
72435         Reported by Mark D. Baushke <mdb@gnu.org>.
72436
72437 2006-01-24  Simon Josefsson  <jas@extundo.com>
72438
72439         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
72440         Bruno.
72441
72442 2006-01-24  Karl Berry  <karl@gnu.org>
72443
72444         * config/srclist.txt (argp-namefrob.h): sync lost.
72445
72446 2006-01-24  Jim Meyering  <jim@meyering.net>
72447
72448         * modules/openat (Files): Add lib/intprops.h.
72449         From Mark D. Baushke.
72450
72451 2006-01-24  Jim Meyering  <jim@meyering.net>
72452
72453         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
72454         Reported by Mark D. Baushke.
72455
72456 2006-01-24  Jim Meyering  <jim@meyering.net>
72457
72458         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
72459
72460 2006-01-24  Bruno Haible  <bruno@clisp.org>
72461
72462         * modules/strnlen (Maintainer): Change from glibc to all.
72463
72464 2006-01-24  Bruno Haible  <bruno@clisp.org>
72465
72466         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
72467         Patch by Paul Eggert.
72468
72469 2006-01-24  Bruno Haible  <bruno@clisp.org>
72470
72471         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
72472         already has it.
72473         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
72474         2005-11-26.
72475
72476         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
72477         'signed char' to avoid problems with the built-in _Bool type.
72478         Reported by Paul Eggert on 2005-11-26.
72479
72480 2006-01-24  Bruno Haible  <bruno@clisp.org>
72481
72482         * gnulib-tool (func_import): Avoid constructing complicated sed
72483         expressions inside backquote.
72484         Report and solution by Mark D. Baushke <mdb@gnu.org>.
72485
72486 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
72487
72488         These changes imported from libc.
72489         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
72490         test and two separate function calls.
72491         * lib/strndup.c (__strndup): Add libc_hidden_def.
72492
72493 2006-01-23  Simon Josefsson  <jas@extundo.com>
72494
72495         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
72496         Remove the test_*_SOURCES variable: automake infers it by default.
72497         * modules/tls-tests: Likewise.
72498
72499 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
72500
72501         Work around porting bugs reported by Dieter in
72502         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
72503         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
72504         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
72505         Include "getopt.h" first, to check interface.
72506         (getenv): Declare only if defined HAVE_DECL_GETENV &&
72507         !HAVE_DECL_GETENV.
72508         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
72509         (__strndup): Revert to K&R-style function dfns, the glibc style.
72510         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
72511         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
72512         Include strnlen.h first, to get prototype properly.
72513         (strnlen): Renamed from __strnlen.
72514         Remove weak alias.
72515
72516 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
72517
72518         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
72519
72520 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
72521
72522         * config/srclist.txt: Adjust to reflect glibc reorganization.
72523         This affects only comments.
72524
72525 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
72526
72527          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
72528          Reported by Bruce Korb <bkorb@gnu.org>.
72529
72530 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
72531
72532         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
72533         to pacify gcc -Wswitch-default.
72534
72535 2006-01-22  Bruno Haible  <bruno@clisp.org>
72536
72537         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
72538         temporary buffer for sprintf, take into account the precision also
72539         for 'd', 'i', 'u', 'o', 'x', 'X'.
72540
72541 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
72542
72543         * modules/argp-tests: New module
72544         * tests/test-argp.c: New file
72545         * tests/test-argp-2.sh: New file
72546
72547 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
72548
72549         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
72550         (__argp_base_name): Removed
72551         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
72552         typo.
72553         (__argp_base_name): Provide macro definition or extern declaration
72554         depending on the configuration
72555
72556 2006-01-20  Simon Josefsson  <jas@extundo.com>
72557
72558         * modules/inet_ntop (Depends-on): Depend on sys_socket.
72559
72560 2006-01-20  Simon Josefsson  <jas@extundo.com>
72561
72562         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
72563
72564 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
72565
72566         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
72567         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
72568         Suggested by Bruno Haible.
72569
72570 2006-01-20  Karl Berry  <karl@gnu.org>
72571
72572         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
72573         until changes propagate, I guess.
72574
72575 2006-01-19  Simon Josefsson  <jas@extundo.com>
72576
72577         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
72578
72579 2006-01-19  Simon Josefsson  <jas@extundo.com>
72580
72581         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
72582
72583 2006-01-19  Simon Josefsson  <jas@extundo.com>
72584
72585         * gnulib-tool: Set check_PROGRAMS.
72586
72587         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
72588         modules/des-tests, modules/gc-arcfour-tests,
72589         modules/gc-arctwo-tests, modules/gc-des-tests,
72590         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
72591         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
72592         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
72593         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
72594         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
72595         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
72596         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
72597         test_*_SOURCES.
72598
72599 2006-01-18  Simon Josefsson  <jas@extundo.com>
72600
72601         * modules/socklen (Depends-on): Depend on sys_socket.
72602
72603 2006-01-18  Simon Josefsson  <jas@extundo.com>
72604
72605         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
72606         modules/des-tests, modules/gc-arcfour-tests,
72607         modules/gc-arctwo-tests, modules/gc-des-tests,
72608         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
72609         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
72610         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
72611         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
72612         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
72613         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
72614         $(EXEEXT) to automake TESTS variable, for mingw32.
72615
72616 2006-01-17  Simon Josefsson  <jas@extundo.com>
72617
72618         * modules/socklen (Include): Need sys/socket.h.
72619
72620 2006-01-17  Bruno Haible  <bruno@clisp.org>
72621
72622         * modules/ssize_t (Include): Add <sys/types.h>.
72623
72624 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
72625
72626         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
72627         it's not portable and it doesn't work with cross-compiles.
72628         Problem reported by Bruno Haible.  Fix missing-$ typo in
72629         'test "gl_cv_ignore_unused_libraries" ...' that prevented
72630         -zignore from being used with Sun's C compiler.
72631
72632 2006-01-12  Simon Josefsson  <jas@extundo.com>
72633
72634         * lib/base64.c: Fix warning, reported by Bruno Haible
72635         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
72636
72637 2006-01-12  Bruno Haible  <bruno@clisp.org>
72638
72639         * modules/ldd: New file.
72640         * build-aux/ldd.sh.in: New file.
72641         * MODULES.html.sh (Support for building libraries and executables): Add
72642         ldd.
72643
72644 2006-01-12  Bruno Haible  <bruno@clisp.org>
72645
72646         * m4/ldd.m4: New file.
72647
72648 2006-01-12  Bruno Haible  <bruno@clisp.org>
72649
72650         * gnulib-tool (func_import, func_create_testdir): Don't go into an
72651         endless loop while replacing $auxdir with build-aux.
72652
72653 2006-01-11  Simon Josefsson  <jas@extundo.com>
72654
72655         * lib/stdint_.h (SIZE_MAX): Add missing (.
72656
72657 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
72658
72659         Sync from coreutils.
72660         * lib/md5.c: Fix commentary typos.
72661         (alignof, UNALIGNED_P): No need for a GCC-specific version.
72662         * lib/md5.h (__attribute__): Remove; unused.
72663         * lib/sha1.c: Fix commentary to match md5 better.
72664         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
72665         so that we don't need to worry about alignment.  All uses changed.
72666         This merges the 2005-10-28 md5 change into sha1.
72667
72668 2006-01-11  Jim Meyering  <jim@meyering.net>
72669
72670         Sync from coreutils.
72671         * lib/md5.c (OP): Fix spacing.
72672
72673 2006-01-11  Bruno Haible  <bruno@clisp.org>
72674
72675         Ensure automatic ordering between gl_LOCK and gl_ARGP.
72676         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
72677         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
72678
72679 2006-01-11  Bruno Haible  <bruno@clisp.org>
72680
72681         Ensure automatic ordering between gl_LOCK and gl_ARGP.
72682         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
72683         the "early" section as well.
72684
72685 2006-01-11  Bruno Haible  <bruno@clisp.org>
72686
72687         Avoid "ar: no archive members specified" error on MacOS X.
72688         * gnulib-tool (func_modules_add_dummy): New function.
72689         (func_import, func_create_testdir): Invoke it.
72690
72691 2006-01-11  Bruno Haible  <bruno@clisp.org>
72692
72693         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
72694         with $auxdir in AC_CONFIG_FILES statements.
72695
72696 2006-01-11  Bruno Haible  <bruno@clisp.org>
72697
72698         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
72699         Initialize also noinst_HEADERS to empty.
72700
72701 2006-01-11  Bruno Haible  <bruno@clisp.org>
72702
72703         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
72704         variables.
72705         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
72706         autoreconf.
72707
72708 2006-01-11  Bruno Haible  <bruno@clisp.org>
72709
72710         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
72711         overridable by the user.
72712         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
72713
72714 2006-01-10  Simon Josefsson  <jas@extundo.com>
72715
72716         * modules/sys_socket: New file.
72717
72718 2006-01-10  Simon Josefsson  <jas@extundo.com>
72719
72720         * m4/sys_socket_h.m4: New file.
72721
72722 2006-01-10  Simon Josefsson  <jas@extundo.com>
72723
72724         * lib/socket_.h: New file.
72725
72726 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
72727
72728         * modules/readutmp (Maintainer): Add myself.
72729
72730 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
72731
72732         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
72733         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
72734         People who are still concerned with buggy memcmp implementations
72735         can invoke gl_FUNC_MEMCMP themselves.
72736
72737 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
72738
72739         * lib/regex_internal.h (BITSET_WORD_BITS):
72740         Work around a bug in 64-bit PGC (before version 6.1-2), where the
72741         preprocessor mishandles large unsigned values as if they were signed.
72742         Problem reported by Claudio Fontana in
72743         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
72744
72745 2006-01-10  Jim Meyering  <jim@meyering.net>
72746
72747         Avoid the double-free (first in fts_read, second in fts_close) that
72748         would occur when an `active' directory is made inaccessible (e.g.,
72749         via chmod a-x) during a traversal.
72750         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
72751         before returning.  Reproduce this failure by
72752         mkdir -p a/b; cd a; chmod a-x . b
72753         Reported by Stavros Passas.
72754
72755         Sync from coreutils.
72756         * lib/sha1.c: Tweak grammar in a comment.
72757
72758 2006-01-10  Jim Meyering  <jim@meyering.net>
72759
72760         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
72761         Patch by Joerg Sonnenberger.
72762
72763 2006-01-10  Bruno Haible  <bruno@clisp.org>
72764
72765         * modules/readutmp: Depend on module free.
72766         * modules/strtok_r: Depend on module restrict.
72767
72768 2006-01-10  Bruno Haible  <bruno@clisp.org>
72769
72770         * modules/gettext (configure.ac): Add an invocation of
72771         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
72772
72773 2006-01-10  Bruno Haible  <bruno@clisp.org>
72774
72775         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
72776         Reported by Werner Lemberg <wl@gnu.org>.
72777
72778 2006-01-10  Bruno Haible  <bruno@clisp.org>
72779
72780         * lib/localcharset.c: Update from GNU gettext.
72781
72782 2006-01-10  Bruno Haible  <bruno@clisp.org>
72783
72784         * lib/argp.h (__const): Remove macro. Use const instead.
72785         * lib/argp-fmtstream.h (__const): Likewise.
72786         * lib/glob_.h (__const): Remove macro.
72787         * lib/glob-libc.h: Use const instead of __const.
72788
72789 2006-01-10  Bruno Haible  <bruno@clisp.org>
72790
72791         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
72792         variable.
72793         Needed to avoid an automake error regarding the 'gettext' module.
72794
72795 2006-01-09  Simon Josefsson  <jas@extundo.com>
72796
72797         * modules/inet_ntop (Depends-on): Add restrict.
72798
72799 2006-01-09  Simon Josefsson  <jas@extundo.com>
72800
72801         * modules/gc-rijndael-tests (License): Put under LGPL.
72802
72803         * modules/gc-des-tests (License): Likewise.
72804
72805         * modules/gc-arcfour-tests (License): Likewise.
72806
72807         * modules/gc-arctwo-tests (License): Likewise.
72808
72809         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
72810
72811         * modules/gc-hmac-sha1-tests (Files): Likewise.
72812
72813         * modules/gc-hmac-md5-tests (License): Likewise.
72814
72815         * modules/gc-sha1-tests (License): Likewise.
72816
72817         * modules/gc-md5-tests (License): Likewise.
72818
72819         * modules/gc-md4-tests (License): Likewise.
72820
72821         * modules/gc-md2-tests (License): Likewise.
72822
72823         * modules/gc-tests (License): Likewise.
72824
72825         * modules/des-tests (License): Likewise.
72826
72827         * modules/md4-tests (License): Likewise.
72828
72829         * modules/md2-tests (License): Likewise.
72830
72831 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
72832
72833         Sync from coreutils:
72834
72835         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
72836         * modules/lib-ignore: New file.
72837         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
72838         chdir-safer.m4, lchmod.m4.
72839         * modules/openat: Add mkdirat.c, openat-priv.h.
72840
72841 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
72842
72843         Sync from coreutils.
72844         * m4/lib-ignore.m4: New file.
72845         * m4/lchmod.m4: New file.
72846
72847 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
72848
72849         Sync from coreutils.
72850         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
72851         for write access: POSIX says that must fail.
72852         * lib/fts.c (diropen): Likewise.
72853         * lib/save-cwd.c (save_cwd): Likewise.
72854         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
72855         well, for minor improvements on hosts that lack O_DIRECTORY.
72856         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
72857         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
72858         Fall back on chown if open failed with EACCES.
72859
72860         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
72861         Report an error at compile-time if only a 1-second nominal clock
72862         resolution is found.
72863
72864         * lib/lchmod.h: New file.
72865         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
72866         (make_dir_parents): Use lchown rather than chown, and
72867         lchmod rather than chmod.
72868
72869         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
72870         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
72871         "proc" reported by n0dalus.
72872
72873         * lib/mountlist.c: Include <limits.h>.
72874         (dev_from_mount_options)
72875         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
72876         New function.  It no longer assumes "dev=" has the System V meaning
72877         on Linux (since it doesn't).  It also parses "dev=" more carefully.
72878         (read_file_system_list)
72879         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
72880         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
72881         dev= in that case.
72882
72883         * lib/posixtm.h (PDS_PRE_2000): New macro.
72884         * lib/posixtm.c (year): Arg is now syntax_bits rather than
72885         allow_century.  All usages changed.  Reject dates outside the range
72886         1969-1999 if PDS_PRE_2000 is used.
72887
72888 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
72889
72890         Sync from coreutils.
72891         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
72892         (Time of day items): Mention the possibility of leap seconds.
72893         Problem reported by Dr. David Alan Gilbert.
72894
72895 2006-01-09  Jim Meyering  <jim@meyering.net>
72896
72897         Sync from coreutils.
72898
72899         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
72900
72901         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
72902
72903         * lib/modechange.c (mode_compile): Reject an invalid mode string
72904         that starts with an octal digit.  From Andreas Gruenbacher.
72905
72906         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
72907         and dup to open_safer and dup_safer, respectively.
72908         (openat_permissive): Fix typo in comment.
72909
72910         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
72911         "gettext.h"; either no longer needed or are guaranteed by openat.h.
72912         (_): Remove; no longer needed.
72913         (openat): Renamed from rpl_openat; no need for rpl_openat
72914         since openat.h renames openat for us.
72915         Replace most of the body with a call to openat_permissive,
72916         to avoid duplicate code.
72917         Port to (probably hypothetical) environments were mode_t is
72918         wider than int.
72919         (openat_permissive): Require mode arg, so that we can check
72920         types better.  Put it just after flags.  Change cwd failure
72921         indicator from pointer-to-bool to pointer-to-errno-value.
72922         All callers changed.
72923         Invoke openat_save_fail and/or openat_restore_fail if
72924         cwd_errno is null, so that openat can call us.
72925         (openat_permissive, fdopendir, fstatat, unlinkat):
72926         Simplify errno handling to avoid some duplicate code,
72927         as it's OK to set errno on success.
72928         * lib/openat.h: Revamp code so that function macros depend on
72929         __OPENAT_PREFIX only, not also on AT_FDCWD.
72930         (openat_ro): Remove.  Caller changed to use openat_permissive.
72931         (openat_permissive): Now a macro, if not a function.
72932         (openat_restore_fail, openat_save_fail): Now always functions,
72933         since mkdirat needs them even if __OPENAT_PREFIX is defined.
72934
72935         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
72936         and openat.c.
72937         * lib/mkdirat.c: Include openat-priv.h.
72938         Remove definitions of macros defined therein.
72939         * lib/openat.c: Likewise.
72940
72941         * lib/mkdirat.c (mkdirat): New file and function.
72942         * lib/openat.h (mkdirat): Declare.
72943
72944         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
72945
72946         * lib/openat.h (openat_permissive): Declare.
72947         (openat_ro): Define.
72948
72949         * lib/openat.c (EXPECTED_ERRNO): New macro.
72950         (openat_permissive): New function -- used in remove.c rewrite.
72951         (all functions): Set errno just before returning, only if there
72952         was an actual failure.
72953         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
72954
72955         Emulate openat-family functions using Linux's procfs, if possible.
72956         Idea and some code based on Ulrich Drepper's glibc changes.
72957
72958         * lib/openat.c: (BUILD_PROC_NAME): New macro.
72959         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
72960         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
72961         before falling back on save_cwd and restore_cwd.
72962         (fdopendir, fstatat, unlinkat): Likewise.
72963
72964         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
72965         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
72966
72967         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
72968         as second argument to va_arg.  Otherwise, some versions of gcc
72969         warn that `if this code is reached, the program will abort'.
72970
72971 2006-01-09  Jim Meyering  <jim@meyering.net>
72972
72973         Sync from coreutils.
72974         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
72975         Require openat-priv.h.
72976
72977 2006-01-09  Bruno Haible  <bruno@clisp.org>
72978
72979         * modules/strnlen (Include): Use strnlen.h.
72980
72981 2006-01-09  Bruno Haible  <bruno@clisp.org>
72982
72983         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
72984
72985 2006-01-09  Bruno Haible  <bruno@clisp.org>
72986
72987         * lib/sysexit_.h (EX_OK): New macro.
72988         Suggested by Martin Lambers <marlam@marlam.de>.
72989
72990 2006-01-09  Bruno Haible  <bruno@clisp.org>
72991
72992         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
72993         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
72994
72995 2006-01-09  Bruno Haible  <bruno@clisp.org>
72996
72997         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
72998         numbers.
72999
73000 2006-01-09  Bruno Haible  <bruno@clisp.org>
73001
73002         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
73003         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
73004         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
73005         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
73006
73007 2006-01-09  Bruno Haible  <bruno@clisp.org>
73008
73009         * build-aux/javacomp.sh.in: New file, moved from lib/.
73010         * modules/javacomp-script (Files): Update.
73011         (configure.ac): Add AC_CONFIG_FILES invocation.
73012         (EXTRA_DIST): Remove variable.
73013
73014         * build-aux/javaexec.sh.in: New file, moved from lib/.
73015         * modules/javaexec (Files): Update.
73016         (configure.ac): Add AC_CONFIG_FILES invocation.
73017         (EXTRA_DIST): Remove javaexec.sh.in.
73018
73019         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
73020         * modules/csharpcomp-script (Files): Update.
73021         (configure.ac): Add AC_CONFIG_FILES invocation.
73022         (EXTRA_DIST): Remove variable.
73023
73024         * build-aux/csharpexec.sh.in: New file, moved from lib/.
73025         * modules/csharpexec (Files): Update.
73026         (configure.ac): Add AC_CONFIG_FILES invocation.
73027         (EXTRA_DIST): Remove csharpexec.sh.in.
73028
73029 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
73030
73031         Sync from coreutils.
73032
73033         Add POSIX ACL support
73034         * lib/acl.h (copy_acl, set_acl): Add declarations.
73035         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
73036         systems other than Linux.
73037         (chmod_or_fchmod): New function: use fchmod when possible,
73038         and chmod otherwise.
73039         (file_has_acl): Add a POSIX ACL implementation, with a
73040         Linux-specific subcase.
73041         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
73042         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
73043         acls are unsupported.
73044         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
73045         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
73046         are unsupported.
73047
73048 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
73049
73050         Sync from coreutils.
73051         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
73052
73053 2006-01-07  Bruno Haible  <bruno@clisp.org>
73054
73055         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
73056         gl_EARLY.
73057
73058 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
73059
73060         * lib/strftime.c (tzname): Don't declare if it is already #defined.
73061         Problem reported for Mingw by Mark Junker.
73062
73063 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
73064
73065         * README: Gnulib normally doesn't generate a tarball.
73066
73067 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
73068
73069         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
73070         long int, not int, for nanosecond counts, so that people who are
73071         used to POSIX struct timespec won't be surprised.  Reported by Jim
73072         Meyering.
73073
73074 2005-12-28  Bruno Haible  <bruno@clisp.org>
73075
73076         * build-aux/config.rpath: Update from GNU gettext.
73077
73078 2005-12-16  Jim Meyering  <jim@meyering.net>
73079
73080         * modules/fprintftime: New module.
73081         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
73082
73083 2005-12-16  Jim Meyering  <jim@meyering.net>
73084
73085         * m4/fprintftime.m4: New file.
73086
73087 2005-12-16  Jim Meyering  <jim@meyering.net>
73088
73089         * lib/fprintftime.c, lib/fprintftime.h: New files.
73090
73091 2005-12-15  Simon Josefsson  <jas@extundo.com>
73092
73093         * modules/socklen (configure.ac): Fix M4 macro name, to align with
73094         new m4/socklen.m4.
73095
73096 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
73097
73098         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
73099         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
73100
73101 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
73102
73103         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
73104         * lib/argp-help.c (fill_in_uparams): Check if the constructed
73105         struct uparams is valid. Fall back to the default values if it is
73106         not.
73107
73108 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
73109
73110         * modules/argp (Files): Add argp-pin.c
73111         (Depends-on): dirname
73112         (lib_SOURCES): Add argp-pin.c
73113
73114 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
73115
73116         * m4/argp.m4:  Check if program_invocation_name and
73117         program_invocation_short_name are declared and define appropriate
73118         macros if they are not.
73119
73120 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
73121
73122         * lib/argp-help.c (__argp_base_name): New function
73123         (__argp_short_program_name): Rewrite using __argp_base_name
73124         * lib/argp-namefrob.h: Define program_invocation_name and
73125         program_invocation_short_name if requested
73126         (__argp_base_name): Add prototype
73127         * lib/argp-parse.c (argp_def): Use gettext wrappers
73128         (argp_default_parser): Use __argp_base_name
73129         * lib/argp-pin.c: New file. Defines program_invocation_name and
73130         program_invocation_short_name on systems that lack them.
73131
73132 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
73133
73134         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
73135         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
73136         porting problem reported by Georg Schwarz in
73137         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
73138
73139 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
73140
73141         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
73142         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
73143         porting problem reported by Georg Schwarz in
73144         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
73145
73146 2005-12-05  Bruno Haible  <bruno@clisp.org>
73147
73148         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
73149         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
73150         Reported by Mark Junker <mjscod@gmx.de>.
73151
73152 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
73153
73154         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
73155         Use implementation from Albert Chin, with some
73156         comments/corrections by Stepan Kasal and myself.
73157
73158 2005-12-02  Bruno Haible  <bruno@clisp.org>
73159
73160         * gnulib-tool (func_import): Accept GPLed build tool modules when
73161         --lgpl is given.
73162         * modules/csharpcomp-script: New file.
73163         * modules/csharpcomp: Depend on it.
73164         * modules/javacomp-script: New file.
73165         * modules/javacomp: Depend on it.
73166         Suggested by Simon Josefsson.
73167
73168 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
73169
73170         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
73171         statement, to work around an HP-UX 10.20 compiler bug reported by
73172         Peter O'Gorman.
73173
73174 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
73175
73176         * modules/savedir (Depends-on): Add openat.
73177
73178 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
73179
73180         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
73181         (uintmax_t) [defined uintmax_t]: Do not declare.
73182         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
73183         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
73184         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
73185         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
73186         sake of portability to weird hosts that C allows (though we don't
73187         know of any practical examples).
73188
73189         * lib/savedir.h (fdsavedir): New decl.
73190         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
73191         contains most of the former guts of savedir.
73192         (savedir): Use savedirstream.
73193         Include "openat.h".
73194
73195 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
73196
73197         * modules/obstack (Files): Add m4/ulonglong.m4.
73198         Problem reported by Davide Angelocola.
73199
73200 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
73201
73202         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
73203         coreutils no longer futzes with rounding modes.
73204
73205 2005-11-14  Jim Meyering  <jim@meyering.net>
73206
73207         * lib/mkstemp-safer.c: Include <config.h>, required for possible
73208         replacement of mkstemp.
73209
73210 2005-11-10  Simon Josefsson  <jas@extundo.com>
73211
73212         * lib/readline.c: Remove EOL.
73213
73214 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
73215
73216         * modules/gethrxtime (Depends-on): Add gettime.
73217
73218 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
73219
73220         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
73221         or gettimeofday; no longer needed.
73222
73223 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
73224
73225         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
73226         time business.
73227         (gethrxtime) [! (HAVE_NANOUPTIME
73228         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
73229         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
73230         our own approximation.
73231
73232 2005-11-08  Eric Blake  <ebb9@byu.net>
73233
73234         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
73235
73236 2005-11-08  Eric Blake  <ebb9@byu.net>
73237
73238         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
73239
73240 2005-11-04  Bruno Haible  <bruno@clisp.org>
73241
73242         * gnulib-tool: Implement --update mode.
73243
73244 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
73245
73246         Fix porting problem reported by Theodoros V. Kalamatianos.
73247         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
73248         Don't assume that futimes failing means we must fail.
73249
73250 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
73251
73252         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
73253         variables to suggest the intended function of the PATH_MAX check.
73254
73255 2005-10-30  Kean Johnston  <jkj@sco.com>
73256
73257         Trivial changes to support SCO systems.
73258         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
73259         as PATH_MAX.
73260         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
73261         where __ptr is null when no I/O is pending.
73262
73263 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
73264
73265         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
73266         leave errno alone.  Problem reported by Dmitry V. Levin.
73267
73268 2005-10-28  Simon Josefsson  <jas@extundo.com>
73269
73270         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
73271         Test more.
73272
73273         * tests/test-gc-md2.c, tests/test-md2.c: New files.
73274
73275         * modules/md2, modules/md2-tests: New files.
73276
73277 2005-10-28  Simon Josefsson  <jas@extundo.com>
73278
73279         * m4/inet_ntop.m4: More tests.
73280
73281         * m4/gc-md2.m4, md2.m4: New file.
73282
73283 2005-10-28  Simon Josefsson  <jas@extundo.com>
73284
73285         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
73286         "restrict" keywords, as per POSIX.  Protect the function
73287         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
73288         Don't use K&R prototypes.  Check the sprintf return values.
73289         Re-define EAFNOSUPPORT if not present.  Indent.
73290
73291         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
73292         suggested by Bruno Haible <bruno@clisp.org>.
73293
73294         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
73295
73296         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
73297
73298         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
73299         libgcrypt).
73300
73301         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
73302
73303         * lib/md2.h, lib/md2.c: New files.
73304
73305 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
73306
73307         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
73308         errno alone.  Problem reported by Frederic Jolliton.
73309
73310 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
73311
73312         * modules/verify (License): Change from GPL to LGPL.  This is a
73313         tiny module and there are apparently near-equivalents that are
73314         under the BSD license.
73315
73316 2005-10-24  Simon Josefsson  <jas@extundo.com>
73317
73318         * modules/sha1: Relicense to LGPL.
73319
73320 2005-10-24  Simon Josefsson  <jas@extundo.com>
73321
73322         * lib/md4.h: Shrink buffer size, now that we changed the type.
73323
73324 2005-10-23  Simon Josefsson  <jas@extundo.com>
73325
73326         * gnulib-tool (func_import): Fix --tests-base.
73327
73328 2005-10-22  Simon Josefsson  <jas@extundo.com>
73329
73330         * modules/arcfour (Depends-on): Need stdint.
73331
73332 2005-10-22  Simon Josefsson  <jas@extundo.com>
73333
73334         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
73335         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
73336
73337 2005-10-22  Simon Josefsson  <jas@extundo.com>
73338
73339         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
73340         suggested by Bruno Haible <bruno@clisp.org>.
73341
73342 2005-10-22  Simon Josefsson  <jas@extundo.com>
73343
73344         * lib/crc.h: Include stddef.h, for size_t.
73345
73346 2005-10-22  Simon Josefsson  <jas@extundo.com>
73347
73348         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
73349         arcfour_context struct (simplify test vector testing in GNU
73350         Shishi).
73351
73352 2005-10-21  Simon Josefsson  <jas@extundo.com>
73353
73354         * modules/des, modules/des-tests: New files.
73355
73356         * modules/gc-des, modules/gc-des-tests: New files.
73357
73358         * tests/test-des.c, tests/test-gc-des.c: New file.
73359
73360 2005-10-21  Simon Josefsson  <jas@extundo.com>
73361
73362         * modules/arctwo, modules/arctwo-tests: New files.
73363
73364         * tests/test-arctwo.c: New file.
73365
73366         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
73367
73368         * tests/test-gc-arctwo.c: New file.
73369
73370 2005-10-21  Simon Josefsson  <jas@extundo.com>
73371
73372         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
73373         Bruno Haible <bruno@clisp.org>.
73374
73375         * m4/gc-des.m4: New file.
73376
73377 2005-10-21  Simon Josefsson  <jas@extundo.com>
73378
73379         * m4/arctwo.m4: New file.
73380
73381         * m4/gc-arctwo.m4: New file.
73382
73383 2005-10-21  Simon Josefsson  <jas@extundo.com>
73384
73385         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
73386         block.
73387
73388 2005-10-21  Simon Josefsson  <jas@extundo.com>
73389
73390         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
73391         <bruno@clisp.org>.
73392
73393         * lib/hmac-sha1.c (hmac_sha1): Likewise.
73394
73395         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
73396         Bruno Haible <bruno@clisp.org>.
73397
73398         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
73399         <bruno@clisp.org>.
73400
73401 2005-10-21  Simon Josefsson  <jas@extundo.com>
73402
73403         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
73404
73405 2005-10-21  Simon Josefsson  <jas@extundo.com>
73406
73407         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
73408
73409 2005-10-21  Simon Josefsson  <jas@extundo.com>
73410
73411         * lib/des.h, lib/des.c: New files.
73412
73413         * lib/gc-gnulib.c: Support DES.c
73414
73415 2005-10-21  Simon Josefsson  <jas@extundo.com>
73416
73417         * lib/arctwo.h, lib/arctwo.c: New files.
73418
73419         * lib/gc-gnulib.c: Support ARCTWO.
73420
73421 2005-10-21  Simon Josefsson  <jas@extundo.com>
73422
73423         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
73424         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
73425
73426 2005-10-21  Simon Josefsson  <jas@extundo.com>
73427
73428         * gnulib-tool (func_import, func_create_testdir): Define automake
73429         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
73430         Makefile.am snippet),
73431         suggested by Bruno Haible <bruno@clisp.org>.
73432
73433         * modules/gc (Makefile.am): Use it.
73434
73435 2005-10-21  Bruno Haible  <bruno@clisp.org>
73436
73437         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
73438         patch.
73439
73440 2005-10-19  Simon Josefsson  <jas@extundo.com>
73441
73442         * tests/test-gc-rijndael.c: New file.
73443
73444         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
73445
73446 2005-10-19  Simon Josefsson  <jas@extundo.com>
73447
73448         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
73449         interface too.
73450
73451 2005-10-19  Simon Josefsson  <jas@extundo.com>
73452
73453         * tests/test-gc-arcfour.c: New file.
73454
73455         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
73456
73457 2005-10-19  Simon Josefsson  <jas@extundo.com>
73458
73459         * modules/gc-md4, modules/gc-md4-tests: New file.
73460
73461         * tests/test-gc-md4.c: New file.
73462
73463 2005-10-19  Simon Josefsson  <jas@extundo.com>
73464
73465         * m4/gc-md4.m4: New file.
73466
73467 2005-10-19  Simon Josefsson  <jas@extundo.com>
73468
73469         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
73470         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
73471         <kasal@ucw.cz>.
73472
73473 2005-10-19  Simon Josefsson  <jas@extundo.com>
73474
73475         * m4/gc-arcfour.m4: New file.
73476
73477         * m4/gc-rijndael.m4: New file.
73478
73479 2005-10-19  Simon Josefsson  <jas@extundo.com>
73480
73481         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
73482
73483 2005-10-19  Simon Josefsson  <jas@extundo.com>
73484
73485         * lib/gc-gnulib.c: Support ARCFOUR.
73486
73487 2005-10-19  Simon Josefsson  <jas@extundo.com>
73488
73489         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
73490         support.
73491
73492         * lib/gc.h: Add ECB enum type.
73493
73494         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
73495
73496 2005-10-18  Simon Josefsson  <jas@extundo.com>
73497
73498         * tests/test-md5.c: New file.
73499
73500         * modules/md5-tests: New file.
73501
73502 2005-10-18  Simon Josefsson  <jas@extundo.com>
73503
73504         * tests/test-md4.c: New file.
73505
73506         * modules/md4, modules/md4-tests: New files.
73507
73508 2005-10-18  Simon Josefsson  <jas@extundo.com>
73509
73510         * m4/md4.m4: New file.
73511
73512 2005-10-18  Simon Josefsson  <jas@extundo.com>
73513
73514         * lib/md4.h, lib/md4.c: New files, based on md5.?.
73515
73516 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
73517
73518         * gnulib-tool (func_create_testdir): Omit the second check whether
73519         BUILT_SOURCES in nonempty.
73520
73521 2005-10-17  Simon Josefsson  <jas@extundo.com>
73522
73523         * tests/test-rijndael.c: New file.
73524
73525 2005-10-17  Simon Josefsson  <jas@extundo.com>
73526
73527         * modules/sha1: Depend on stdint instead of md5.
73528
73529         * modules/md5: Depend on stdint, remove uint32_t.
73530
73531 2005-10-17  Simon Josefsson  <jas@extundo.com>
73532
73533         * modules/gc-sha1-tests: New file.
73534
73535         * tests/test-gc-sha1.c: New file.
73536
73537 2005-10-17  Simon Josefsson  <jas@extundo.com>
73538
73539         * m4/md5.m4: Remove call to uint32_t.m4.
73540
73541 2005-10-17  Simon Josefsson  <jas@extundo.com>
73542
73543         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
73544
73545         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
73546         md5.h.
73547
73548         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
73549
73550         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
73551
73552 2005-10-17  Simon Josefsson  <jas@extundo.com>
73553
73554         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
73555
73556 2005-10-17  Simon Josefsson  <jas@extundo.com>
73557
73558         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
73559
73560 2005-10-17  Simon Josefsson  <jas@extundo.com>
73561
73562         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
73563
73564         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
73565
73566 2005-10-17  Bruno Haible  <bruno@clisp.org>
73567
73568         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
73569         that it can also be used in a test.
73570
73571 2005-10-16  Bruno Haible  <bruno@clisp.org>
73572
73573         * gnulib-tool (func_emit_tests_Makefile_am): Also define
73574         TESTS_ENVIRONMENT, so that individual tests can augment it.
73575
73576         * gnulib-tool (func_create_testdir): Use an intermediate target for
73577         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
73578         macros, like $(ALLOCA_H), which cannot be passed through the command
73579         line.
73580
73581 2005-10-15  Simon Josefsson  <jas@extundo.com>
73582
73583         * modules/rijndael-tests: New file.
73584
73585         * modules/rijndael: New file.
73586
73587 2005-10-15  Simon Josefsson  <jas@extundo.com>
73588
73589         * m4/rijndael.m4: New file.
73590
73591 2005-10-15  Simon Josefsson  <jas@extundo.com>
73592
73593         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
73594
73595         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
73596
73597 2005-10-14  Simon Josefsson  <jas@extundo.com>
73598
73599         * tests/test-arcfour.c: New file.
73600
73601         * modules/arcfour, modules/arcfour-tests: New files.
73602
73603 2005-10-14  Simon Josefsson  <jas@extundo.com>
73604
73605         * m4/arcfour.m4: New file.
73606
73607 2005-10-14  Simon Josefsson  <jas@extundo.com>
73608
73609         * lib/arcfour.h, lib/arcfour.c: New files.
73610
73611 2005-10-14  Roland McGrath  <roland@redhat.com>
73612
73613         Import from libc.  [BZ #1331]
73614         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
73615         macro argument.
73616         Reported by Matej Vela <vela@debian.org>.
73617
73618 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
73619
73620         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
73621         include <wchar.h>; no longer needed.
73622
73623 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
73624
73625         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
73626
73627 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
73628         and  Ulrich Drepper  <drepper@redhat.com>
73629
73630         Import from libc.
73631         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
73632         instead of inline stream orientation test and two separate
73633         function calls.  Pay no attention to USE_IN_LIBIO.
73634
73635 2005-10-13  Simon Josefsson  <jas@extundo.com>
73636
73637         * modules/gc-hmac-md5-tests: New file.
73638
73639         * tests/test-gc-hmac-sha1.c: New file.
73640
73641         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
73642
73643         * modules/gc-hmac-md5-tests: New file.
73644
73645         * tests/test-gc-md5.c: New file.
73646
73647         * modules/gc-md5-tests: New file.
73648
73649 2005-10-13  Simon Josefsson  <jas@extundo.com>
73650
73651         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
73652         Move memory allocation outside of loop.
73653
73654 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
73655
73656         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
73657         intermediate directory is in a read-only file system.  Problem
73658         reported by Eric Blake.
73659
73660 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
73661
73662         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
73663
73664 2005-10-12  Simon Josefsson  <jas@extundo.com>
73665
73666         * tests/test-hmac-sha1.c: New file.
73667
73668         * modules/hmac-sha1-tests: New file.
73669
73670         * modules/hmac-sha1: New file.
73671
73672 2005-10-12  Simon Josefsson  <jas@extundo.com>
73673
73674         * modules/gc-sha1: New file.
73675
73676 2005-10-12  Simon Josefsson  <jas@extundo.com>
73677
73678         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
73679
73680         * tests/test-gc-pbkdf2-sha1.c: New file.
73681
73682 2005-10-12  Simon Josefsson  <jas@extundo.com>
73683
73684         * modules/gc-md5, modules/gc-hmac-md5: New files.
73685
73686         * modules/gc (Files): Remove md5, memxor and hmac files.
73687
73688 2005-10-12  Simon Josefsson  <jas@extundo.com>
73689
73690         * m4/gc-pbkdf2-sha1.m4: New file.
73691
73692         * m4/gc-hmac-sha1.m4: New file.
73693
73694         * m4/gc-sha1: New file.
73695
73696         * m4/hmac-sha1.m4: New file.
73697
73698 2005-10-12  Simon Josefsson  <jas@extundo.com>
73699
73700         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
73701
73702         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
73703
73704 2005-10-12  Simon Josefsson  <jas@extundo.com>
73705
73706         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
73707         suggested by Bruno Haible <bruno@clisp.org>.
73708
73709 2005-10-12  Simon Josefsson  <jas@extundo.com>
73710
73711         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
73712
73713 2005-10-12  Simon Josefsson  <jas@extundo.com>
73714
73715         * lib/gc-pbkdf2-sha1.c: New file.
73716
73717         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
73718
73719 2005-10-12  Simon Josefsson  <jas@extundo.com>
73720
73721         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
73722
73723         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
73724
73725 2005-10-12  Simon Josefsson  <jas@extundo.com>
73726
73727         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
73728         GC_USE_HMAC_MD5, respectively.
73729
73730         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
73731         (gc_md5): Fix typo.
73732
73733         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
73734
73735         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
73736
73737         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
73738
73739 2005-10-12  Bruno Haible  <bruno@clisp.org>
73740
73741         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
73742         Reported by Stepan Kasal <kasal@ucw.cz>.
73743
73744 2005-10-11  Simon Josefsson  <jas@extundo.com>
73745
73746         * tests/test-crc.c: New file.
73747
73748         * modules/crc, modules/crc-tests: New files.
73749
73750 2005-10-11  Simon Josefsson  <jas@extundo.com>
73751
73752         * m4/crc.m4: New file.
73753
73754 2005-10-11  Simon Josefsson  <jas@extundo.com>
73755
73756         * lib/gc.h: Add gc_hash and gc_hash_buffer.
73757
73758         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
73759
73760         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
73761
73762 2005-10-11  Simon Josefsson  <jas@extundo.com>
73763
73764         * lib/crc.h, lib/crc.c: New files.
73765
73766         * lib/gc.h (gc_hash_buffer): Add doc.
73767
73768 2005-10-11  Bruno Haible  <bruno@clisp.org>
73769
73770         * modules/c-strcasestr: New file.
73771         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
73772
73773 2005-10-11  Bruno Haible  <bruno@clisp.org>
73774
73775         * modules/c-strcase: New file.
73776         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
73777
73778 2005-10-11  Bruno Haible  <bruno@clisp.org>
73779
73780         * lib/strcasecmp.c: Include limits.h.
73781         (strcasecmp): Avoid integer overflow on exotic platforms.
73782         * lib/strncasecmp.c: Include limits.h.
73783         (strncasecmp): Avoid integer overflow on exotic platforms.
73784         Reported by Paul Eggert.
73785
73786 2005-10-11  Bruno Haible  <bruno@clisp.org>
73787
73788         * lib/c-strcasestr.h: New file, from GNU gettext.
73789         * lib/c-strcasestr.c: New file, from GNU gettext.
73790
73791 2005-10-11  Bruno Haible  <bruno@clisp.org>
73792
73793         * lib/c-strcase.h: New file, from GNU gettext.
73794         * lib/c-strcasecmp.c: New file, from GNU gettext.
73795         * lib/c-strncasecmp.c: New file, from GNU gettext.
73796
73797 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
73798
73799         * modules/mempcpy (License): GPL -> LGPL.
73800         * modules/strchrnul (License): Likewise.
73801         * modules/sysexits (License): Likewise.
73802
73803 2005-10-08  Simon Josefsson  <jas@extundo.com>
73804
73805         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
73806
73807 2005-10-07  Simon Josefsson  <jas@extundo.com>
73808
73809         * m4/memxor.m4: Remove gl_C_RESTRICT call.
73810
73811 2005-10-06  Simon Josefsson  <jas@extundo.com>
73812
73813         * tests/test-hmac-md5.c: New file.
73814
73815         * modules/hmac-md5-tests: New file.
73816
73817         * modules/hmac-md5: New file.
73818
73819 2005-10-06  Simon Josefsson  <jas@extundo.com>
73820
73821         * m4/hmac-md5.m4: New file.
73822
73823         * m4/memxor.m4: Require gl_C_RESTRICT.
73824
73825 2005-10-06  Simon Josefsson  <jas@extundo.com>
73826
73827         * lib/memxor.c (memxor): Avoid casts and warnings.
73828
73829 2005-10-06  Simon Josefsson  <jas@extundo.com>
73830
73831         * lib/hmac-md5.c: New file.
73832
73833         * lib/hmac.h: New file.
73834
73835 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
73836
73837         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
73838         promotes to int, not unsigned int, to catch the AIX 5.3
73839         compiler bug.
73840
73841 2005-10-05  Simon Josefsson  <jas@extundo.com>
73842
73843         * modules/memxor: New file.
73844
73845         * modules/iconv (Files): Move config.rpath to havelib, it is used
73846         there.
73847
73848         * modules/havelib (Files): Add config.rpath.
73849
73850 2005-10-05  Simon Josefsson  <jas@extundo.com>
73851
73852         * m4/memxor.m4: New file.
73853
73854 2005-10-05  Simon Josefsson  <jas@extundo.com>
73855
73856         * lib/memxor.c (memxor): Fix compiler error.
73857
73858         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
73859         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
73860
73861         * lib/memxor.h, lib/memxor.c: New files.
73862
73863         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
73864         we assume all systems have it, suggested by Jim Meyering
73865         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
73866         any systems lack sys/socket.h; mingw32 is known to lack it, but we
73867         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
73868         same reasons.
73869
73870 2005-10-05  Simon Josefsson  <jas@extundo.com>
73871
73872         * config/srclist.txt: Add glibc bug 1423 for md5.h.
73873
73874 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
73875
73876         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
73877         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
73878         needed, since the source code now assumes these .h files.
73879
73880 2005-10-05  Derek Price  <derek@ximbiot.com>
73881
73882         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
73883
73884 2005-10-05  Bruno Haible  <bruno@clisp.org>
73885
73886         * modules/stdint (License): Change to LGPL.
73887
73888 2005-10-04  Simon Josefsson  <jas@extundo.com>
73889
73890         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
73891         D. Baushke" <mdb@gnu.org>.
73892
73893 2005-10-04  Bruno Haible  <bruno@clisp.org>
73894
73895         * lib/verify.h (verify_true): Provide alternative definition for C++.
73896
73897 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
73898
73899         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
73900         (SSIZE_MAX): New macro, if not already defined.
73901         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
73902         than 2 GiB.
73903
73904 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
73905
73906         Sync from coreutils.
73907         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
73908         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
73909         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
73910         ULLONG_MAX doesn't work with 2.7.2.1.
73911
73912 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
73913
73914         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
73915         From Ben Pfaff.
73916
73917         * modules/exclude (Depends-on): Depend on verify.
73918         * modules/strtoimax (Depends-on): Likewise.
73919         * modules/utimecmp (Depends-on): Likewise.
73920
73921 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
73922
73923         * lib/exclude.c: Include verify.h.
73924         (verify): Remove.  All callers changed to use verify.h's version.
73925         * lib/strtoimax.c: Likewise.
73926         * lib/utimecmp.c: Likewis.e
73927
73928         Sync from coreutils.
73929         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
73930         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
73931         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
73932         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
73933         bother returning ENOSYS if settimeofday or stime fails; just let
73934         them return whatever errno they want to return.
73935         * lib/utimens.c: Include unistd.h, for dup2.
73936         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
73937         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
73938
73939 2005-10-02  Jim Meyering  <jim@meyering.net>
73940
73941         Sync from coreutils.
73942         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
73943         from glibc-2.2.5 that fails for read-only files.
73944
73945 2005-10-02  Jim Meyering  <jim@meyering.net>
73946
73947         Sync from coreutils.
73948         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
73949         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
73950         `#if HAVE_CONFIG_H'.
73951         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
73952         Remove AT_FDCWD test.
73953         Do not consume the fd unless successful.
73954         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
73955         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
73956         block, so that we don't even try to compile it if settimeofday is
73957         available.  This works around a compilation failure on OSF1 V5.1,
73958         due to stime requiring a `long int*' while tv_sec is `int'.
73959
73960 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
73961
73962         Sync from coreutils.
73963         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
73964         against `yes', rather than just testing for nonempty.
73965
73966 2005-10-01  Simon Josefsson  <jas@extundo.com>
73967
73968         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
73969         and Darwin.
73970
73971         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
73972         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
73973         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
73974         freeaddrinfo and gai_strerror are declared by the POSIX headers.
73975         Check if struct addrinfo is declared.
73976
73977 2005-10-01  Simon Josefsson  <jas@extundo.com>
73978
73979         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
73980         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
73981         AI_* and EAI_* definitions.  Protect function declarations.
73982
73983 2005-10-01  Jim Meyering  <jim@meyering.net>
73984
73985         Sync from coreutils.
73986
73987         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
73988         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
73989         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
73990         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
73991         in the inet and nsl libraries.  Required on Solaris 5.7.
73992
73993 2005-10-01  Jim Meyering  <jim@meyering.net>
73994
73995         Sync from coreutils.
73996         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
73997         in the inet and nsl libraries.  Required on Solaris 5.7.
73998
73999 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
74000
74001         * lib/getdelim.c (getdelim): Remove unused variables.
74002
74003 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
74004
74005         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
74006         so that the code works even with ancient cpp.  Portability problem
74007         with GCC 2.7.2.1 reported by Thomas M.Ott.
74008
74009 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
74010
74011         * modules/regex (Depends-on): Add strcase.
74012
74013         * modules/gethostname (Licence): Change from GPL to LGPL, since
74014         gethostname.c is a trivial implementation of a standard library
74015         function.
74016         * modules/poll (License): Change from GPL to LGPL, since it's
74017         derived from LGPL code.
74018
74019 2005-09-27  Jim Meyering  <jim@meyering.net>
74020
74021         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
74022         HAVE_CONFIG_H.
74023
74024         * lib/intprops.h (signed_type_or_expr__): Define.
74025         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
74026         for unsigned types.
74027
74028 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
74029
74030         * lib/verify.h (verify_expr): Remove, replacing with:
74031         (verify_true): New macro that returns true instead of void.
74032         (verify_type__): Remove.
74033         (verify): Use verify_true rather than verify_type__.
74034
74035 2005-09-26  Bruno Haible  <bruno@clisp.org>
74036
74037         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
74038         is necessary.
74039         (lib_SOURCES): Remove mbchar.c.
74040         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
74041         (Files): Add m4/mbrtowc.m4.
74042         * modules/mbiter: Likewise.
74043         * modules/mbuiter: Likewise.
74044
74045 2005-09-26  Bruno Haible  <bruno@clisp.org>
74046
74047         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
74048         compile mbchar.c if they are not both present.
74049         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
74050         * m4/mbiter.m4 (gl_MBITER): Likewise.
74051         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
74052         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
74053         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
74054
74055 2005-09-25  Jim Meyering  <jim@meyering.net>
74056
74057         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
74058         also uses socklen_t.
74059
74060 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
74061
74062         * lib/utimens.c (ENOSYS): Define if not already defined.
74063         (futimens): Support having a null PATH if the file descriptor
74064         is nonnegative.
74065
74066         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
74067         Remove.
74068         (__attribute): Define to empty unless GCC 3.1 or later.
74069         This works around a core dump on OpenBSD 3.4, which has GCC
74070         2.95.3, which dumps core when given __attribute__(()).  It also
74071         simplifies other tests, since we really don't want to bother with
74072         worrying about which ancient version of GCC supported what.
74073         Original problem reported by Yoann Vandoorselaere, with part of
74074         the fix suggested by Derek Price.
74075
74076 2005-09-24  Jim Meyering  <jim@meyering.net>
74077
74078         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
74079         so we can once again use a positive bitfield width of 1 -- now we
74080         don't have to explain why we were using a bitfield width of 2.
74081
74082 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
74083
74084         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
74085         and similarly for the other external symbols.  Problem reported
74086         by James Gallager.
74087
74088         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
74089         bug reported by Jim Meyering.
74090
74091         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
74092         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
74093         not needed, since socklen is a prerequisite module.
74094
74095 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
74096
74097         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
74098         Problem reported by Eric Blake.
74099         (getaddrinfo): Initialize se so that it's not garbage.
74100         Redo internal storage allocation so that it doesn't make unportable
74101         assumptions about alignment.
74102         Fix a memory leak.
74103
74104         * lib/utimens.c (futimens): Use futimesat if available.
74105         Prefer it to futimes since it doesn't have the futimes bug.
74106
74107         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
74108         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
74109         Instead, declare a function that returns a pointer to an array,
74110         and use verify_type__ to declare the size of the array.
74111         Problem and germ of a solution reported by Bruno Haible.
74112         (verify_type__): Use 2, not 1, for bitfield size, to avoid
74113         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
74114
74115 2005-09-23  Jim Meyering  <jim@meyering.net>
74116
74117         Sync from coreutils.
74118         Correct build failure (socklen_t not defined) on at least
74119         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
74120         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
74121
74122 2005-09-23  Jim Meyering  <jim@meyering.net>
74123
74124         * modules/getaddrinfo (Depends-on): Add socklen.
74125
74126 2005-09-23  Bruno Haible  <bruno@clisp.org>
74127
74128         * tests/test-verify.c: New file.
74129
74130 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
74131
74132         Sync from coreutils.
74133
74134         * modules/argmatch (Depends-on): Add verify.
74135         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
74136         unistd-safer.
74137         * modules/save-cwd (Depends-on): Likewise.
74138
74139         * modules/openat (Files): Add lib/openat-die.c.
74140         (Depends-on): Remove error, exitfail.
74141         Add dirname.
74142
74143         * modules/verify: New file.
74144         * MODULES.html.sh (Diagnostics <assert.h>): New section,
74145         with "verify" module.
74146
74147 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
74148
74149         Sync from coreutils.
74150
74151         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
74152         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
74153         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
74154         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
74155         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
74156         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
74157         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
74158         Don't bother checking for string.h, stdlib.h, unistd.h.
74159         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
74160         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
74161         module's job.
74162         * m4/jm-macros.m4 (gl_MACROS): Likewise.
74163         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
74164
74165         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
74166         (gl_GETDATE): Use it.
74167
74168         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
74169
74170 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
74171
74172         Sync from coreutils.
74173
74174         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
74175         stat-time.h.
74176         * lib/argmatch.h: Include verify.h
74177         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
74178         (ARGMATCH_ASSERT): Remove; unused.
74179         * lib/canonicalize.c: Assume STDC_HEADERS.
74180         * lib/exclude.c: Include "strcase.h".
74181         * lib/regex_internal.h [!defined _LIBC]: Likewise.
74182         * lib/getusershell.c: Include stdio--.h rather than stdio.h
74183         and stdio-safer.h.
74184         (getusershell): Call fopen, not fopen_safer.
74185         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
74186         Do not include unistd-safer.h.
74187         (save_cwd): Don't call fd_safer; no longer needed
74188         now that we include fcntl--.h.
74189
74190         * lib/getdate.y (relative_time): New type.
74191         (RELATIVE_TIME_0): New constant.
74192         (parser_control): Use relative_time instead of doing it ourselves.
74193         (%union): Add new relative_time rel member.
74194         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
74195         Now typeless.
74196         (relunit, relunit_snumber): Now of type rel.
74197         (zone, rel, relunit, get_date): Adjust to above changes.
74198
74199         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
74200         Do not include unistd-safer.h.
74201         (getloadavg): Don't call fd_safer; no longer needed
74202         now that we include fcntl--.h.
74203
74204         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
74205         (make_dir_parents): Treat ENOSYS like EEXIST.
74206
74207         Improve quality of diagnostics on restore_cwd failure.
74208         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
74209         (make_dir_parents): Last arg is now int * (for errno), not bool *.
74210         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
74211         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
74212         each time through the loop.  Do not diagnose restore_cwd failure;
74213         that is the caller's job (and perhaps the caller does not care).
74214
74215         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
74216         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
74217         If the file already exists but is not a directory, don't bother
74218         to try to make its parents.
74219         Close potential file descriptor leak if we can't chdir("/") (!).
74220         Don't always return true if chdir($PWD) fails; return true only
74221         if the requested action was done successfully (except for the
74222         chdir($PWD)).
74223         Don't log final directory unless we actually made it.
74224         Refactor to avoid duplicate code to fix up permissions.
74225         Don't attempt to fix up parent permissions if chdir($PWD) fails.
74226
74227         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
74228         to make it a bit faster and (I hope) clearer.
74229         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
74230         Fix bug in formats like %2N.
74231
74232         * lib/verify.h: New file.
74233
74234 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
74235
74236         Sync from coreutils.
74237         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
74238
74239 2005-09-22  Jim Meyering  <jim@meyering.net>
74240
74241         Sync from coreutils.
74242
74243         * m4/lstat.m4 (gl_FUNC_LSTAT):
74244         Use AC_LIBSOURCES to require lstat.c and lstat.h.
74245         Remove obsolete comment.
74246         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
74247         * m4/xstrtod.m4: Likewise.
74248
74249         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
74250
74251 2005-09-22  Jim Meyering  <jim@meyering.net>
74252
74253         Sync from coreutils.
74254
74255         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
74256
74257         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
74258         the .tm_year member, since otherwise gcc-4.0 would now warn about
74259         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
74260
74261         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
74262         order to avoid an unsuppressible warning from gcc on 64-bit systems.
74263
74264         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
74265         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
74266         when run in a time zone for which daylight savings time is in effect
74267         for the starting date.
74268
74269         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
74270         stop us from restricting permissions of just-created absolute-named
74271         directories.
74272         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
74273         to restore initial working directory.
74274         * lib/mkdir-p.c (make_dir_parents): New parameter:
74275         different_working_dir, to tell caller if/when we change the working
74276         directory and are unable to return to the initial one.
74277         * lib/mkdir-p.h (make_dir_parents): Update prototype.
74278         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
74279         `return false'.  This fixes a bug introduced on 2004-07-30.
74280
74281         * lib/openat.c (fdopendir): Be sure to close the supplied
74282         file descriptor before returning.  This makes our replacement
74283         implementation a little closer to Solaris's, where fdopendir
74284         ties the file descriptor to the returned DIR* pointer.
74285         * lib/openat.c (unlinkat): New function.
74286         * lib/openat.h (unlinkat): Add prototype.
74287         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
74288         (openat_restore_fail): Rename from openat_restore_die.
74289         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
74290
74291         Provide an alternative to exiting immediately upon save_cwd or
74292         restore_cwd failure.  Now, an application can arrange e.g.,
74293         to perform a longjump in that case.
74294         * lib/openat.c: Include dirname.h.
74295         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
74296         (rpl_openat, fdopendir, fstatat): Call openat_save_die
74297         and openat_restore_die rather than calling error directly.
74298         Don't include "error.h" or "exitfail.h"; they're no longer needed.
74299
74300         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
74301         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
74302         define.
74303
74304         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
74305         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
74306                             int utc, int nanoseconds);
74307         Background:
74308         date should not have to allocate a megabyte of virtual memory to
74309         handle a format argument like +%1048575T.  When implemented with
74310         strftime, it must allocate such a buffer, use strftime to fill it
74311         in, print it, then free it.
74312         With fprintftime, it simply prints everything and exits.
74313         With no need for memory allocation, that's one fewer way to fail.
74314         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
74315         optional field width, not before, so we accept %9:z, not %:9z.
74316         (my_strftime): Be sure to use L_('x') for literals.
74317
74318         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
74319         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
74320         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
74321         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
74322         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
74323         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
74324         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
74325         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
74326         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
74327         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
74328         * lib/xgethostname.c, lib/xreadlink.c:
74329         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
74330
74331         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
74332         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
74333         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
74334         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
74335         and don't include <sys/file.h>).
74336
74337 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
74338
74339         Sync from coreutils.
74340
74341         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
74342         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
74343         [!LDAV_DONE]: Avoid unused variable warning.
74344
74345 2005-09-21  Bruno Haible  <bruno@clisp.org>
74346
74347         * lib/unicodeio.h (unicode_to_mb): New declaration.
74348
74349 2005-09-20  Derek Price  <derek@ximbiot.com>
74350
74351         * lib/getaddrinfo.c: Don't include <netdb.h> included from
74352         getaddrinfo.h.
74353
74354 2005-09-20  Bruno Haible  <bruno@clisp.org>
74355
74356         * gnulib-tool: Remove trailing slashes from the values specified for
74357         --source-base, --m4-base, --tests-base, --aux-dir.
74358         Suggested by Simon Josefsson <jas@extundo.com>.
74359
74360 2005-09-20  Bruno Haible  <bruno@clisp.org>
74361
74362         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
74363         func_modules_to_filelist, func_import, func_create_testdir): Make all
74364         sorting results locale-independent, so that gnulib-cache.m4 doesn't
74365         change when gnulib-tool is invoked in a different locale.
74366
74367 2005-09-19  Simon Josefsson  <jas@extundo.com>
74368
74369         * m4/socklen.m4: Fix typo.
74370
74371 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74372
74373         Use a consistent style for including <config.h>.
74374         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
74375         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
74376         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
74377         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
74378         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
74379         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
74380         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
74381         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
74382         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
74383         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
74384         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
74385         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
74386         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
74387         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
74388         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
74389         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
74390         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
74391         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
74392         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
74393         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
74394         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
74395         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
74396         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
74397         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
74398         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
74399         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
74400         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
74401         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
74402         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
74403         lib/xstrtoumax.c, lib/yesno.c:
74404         Standardize inclusion of config.h.
74405         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
74406         lib/inttostr.h:  Removed inclusion of config.h from header files.
74407         * lib/inttostr.c:  Adjusted in-tree users.
74408         * lib/timespec.h: Remove superfluous warning to include config.h.
74409         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
74410         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
74411         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
74412         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
74413         config.h with HAVE_CONFIG_H.
74414
74415 2005-09-19  Jim Meyering  <jim@meyering.net>
74416
74417         * modules/pathmax (License): Change to LGPL.
74418
74419 2005-09-19  Derek Price  <derek@ximbiot.com>
74420
74421         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
74422
74423 2005-09-19  Bruno Haible  <bruno@clisp.org>
74424
74425         * gnulib-tool (import): Provide default for --tests-base.
74426
74427 2005-09-19  Bruno Haible  <bruno@clisp.org>
74428
74429         * doc/quote.texi: New file, extracted from gnulib.texi.
74430         * doc/ctime.texi: New file, extracted from gnulib.texi.
74431         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
74432         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
74433         * doc/gnulib.texi: Include them.
74434
74435 2005-09-18  Bruno Haible  <bruno@clisp.org>
74436
74437         Portability fix.
74438         * gnulib-tool (func_readlink): New function.
74439         (func_ln_if_changed): Use it.
74440
74441 2005-09-18  Bruno Haible  <bruno@clisp.org>
74442
74443         * gnulib-tool: Support --with-tests also with --import.
74444         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
74445         (func_import): Use variables $testsbase and $inctests. Emit a
74446         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
74447         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
74448         SUBDIRS += $testsdir.
74449         (func_create_testdir): Update.
74450
74451 2005-09-18  Bruno Haible  <bruno@clisp.org>
74452
74453         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
74454         instead of $dry_run.
74455         (func_cp_if_changed, func_mv_if_changed): Remove functions.
74456         (func_ln_if_changed): Don't handle dry-run here.
74457         (func_import): In dry-run mode, detect more precisely which actions
74458         would be performed, and don't use "...ing" verbs.
74459
74460 2005-09-18  Bruno Haible  <bruno@clisp.org>
74461
74462         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
74463         (func_import): Use join on two temporary files instead of three nested
74464         loops, in order to determine which files are new or old.
74465
74466 2005-09-18  Bruno Haible  <bruno@clisp.org>
74467
74468         * gnulib-tool (func_import): Comment out code that spits out the
74469         new files with --dry-run.
74470
74471 2005-09-18  Bruno Haible  <bruno@clisp.org>
74472
74473         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
74474
74475 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
74476
74477         * lib/stat-time.h: New file.
74478         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
74479         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
74480         in a different way.
74481         (timespec_cmp): New function.
74482         * lib/utimecmp.c: Include stat-time.h.
74483         (SYSCALL_RESOLUTION): Depend on whether various struct stat
74484         members exist, not on the obsolescent ST_MTIM_NSEC.
74485         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
74486
74487 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
74488
74489         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
74490
74491 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
74492
74493         * MODULES.html.sh (File system functions): Add stat-time.
74494         * modules/stat-time: New file.
74495         * modules/timespec (Files): Remove m4/st_mtim.m4; this
74496         is now done in a different way, by the stat-time module.
74497         * modules/utimecmp (Depends-on): Add stat-time.
74498
74499 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
74500
74501         * m4/st_mtim.m4: Remove.  Superseded by...
74502         * m4/stat-time.m4: New file.
74503         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
74504         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
74505
74506 2005-09-15  Derek Price  <derek@ximbiot.com>
74507
74508         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
74509
74510 2005-09-15  Derek Price  <derek@ximbiot.com>
74511
74512         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
74513         * lib/regex_internal.c: Ditto, using this...
74514         (__GNUC_PREREQ): ...new macro.
74515         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
74516         using...
74517         (__GNUC_PREREQ): ...this new macro.
74518
74519         * lib/strstr.h: Include string.h. Define strstr as a macro here.
74520
74521 2005-09-15  Derek Price  <derek@ximbiot.com>
74522             Paul Eggert  <eggert@cs.ucla.edu>
74523
74524         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
74525         changes, consolidating in...
74526         * lib/regex_internal.h: ...this file.
74527
74528 2005-09-13  Jim Meyering  <jim@meyering.net>
74529
74530         * lib/canon-host.c: Filter through gnu indent and reword comments
74531         slightly.
74532         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
74533
74534 2005-09-13  Derek Price  <derek@ximbiot.com>
74535
74536         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
74537         failure.
74538         Reported by Jim Meyering  <jim@meyering.net>.
74539
74540 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
74541
74542         * lib/base64.c: Typo.
74543         (base64_encode): Put b64str in initialized data section.
74544
74545 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
74546
74547         Merge glibc and coreutils changes into gnulib, plus a few
74548         extra fixes.
74549         * lib/md5.c: Use #error rather than a string.
74550         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
74551         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
74552         (__attribute__): Define to empty for non recent-GCC.
74553         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
74554         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
74555         Renamed from their non-__ counterparts, with new macros replacing
74556         them if not _LIBC.  Add __THROW attribute.
74557         (rol): Remove.
74558         (struct md5_ctx): Align buffer if using GCC.
74559         * lib/sha1.h (struct sha1_ctx): Likewise.
74560         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
74561         The old name was backwards.
74562         (NOTSWAP): Remove; not used.
74563         (rol): New macro, moved here from md5.h.
74564         (sha1_process_block): Remove a FIXME that doesn't make sense.
74565
74566 2005-09-12  Derek Price  <derek@ximbiot.com>
74567
74568         Return usable errors from canon-host.
74569         * lib/canon-host.h: New file.
74570         * lib/canon-host.c (canon_host): Wrap...
74571         (canon_host_r): ...this new function, which now relies exclusively on
74572         getaddrinfo.
74573         (ch_strerror): New function.
74574         (last_cherror): New global.
74575         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
74576         interface.
74577         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
74578         void *.
74579         (freeaddrinfo): Free ai->ai_canonname when set.
74580
74581 2005-09-12  Derek Price  <derek@ximbiot.com>
74582
74583         Make canon-host require getaddrinfo.
74584         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
74585         AC_LIBSOURCE canon-host.h.  Call...
74586         (gl_PREREQ_CANON_HOST): ...this new function, which requires
74587         gl_GETADDRINFO.
74588         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
74589
74590 2005-09-12  Derek Price  <derek@ximbiot.com>
74591
74592         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
74593         LGPL.
74594         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
74595
74596 2005-09-12  Derek Price  <derek@ximbiot.com>
74597
74598         * lib/gai_strerror.c: Include config.h when available.  Include
74599         getaddrinfo.h before other headers to test interface.
74600         Reported by Larry Jones <lawrence.jones@ugs.com>.
74601
74602 2005-09-12  Derek Price  <derek@ximbiot.com>
74603             Paul Eggert  <eggert@cs.ucla.edu>
74604
74605         * modules/glob (Files): Add glob-libc.h.
74606
74607 2005-09-12  Derek Price  <derek@ximbiot.com>
74608             Paul Eggert  <eggert@cs.ucla.edu>
74609
74610         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
74611         glob_.h, glob-libc.h.
74612         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
74613
74614 2005-09-12  Derek Price  <derek@ximbiot.com>
74615             Paul Eggert  <eggert@cs.ucla.edu>
74616
74617         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
74618         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
74619         protecting things that should be done only in gnulib contexts.
74620         * lib/glob_.h: New file, containing only the glob things needed for
74621         gnulib.
74622         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
74623         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
74624         (glob, globfree, glob_pattern_p): Now defined simply in terms of
74625         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
74626         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
74627         and to respect the namespace rules better.
74628
74629 2005-09-08  Simon Josefsson  <jas@extundo.com>
74630
74631         * modules/socklen: New file.
74632
74633 2005-09-08  Simon Josefsson  <jas@extundo.com>
74634
74635         * m4/socklen.m4: New file.
74636
74637 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
74638
74639         * modules/utimens (Files): Add m4/utimbuf.m4, since
74640         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
74641         Reported by Sergey Poznyakoff.
74642
74643 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
74644
74645         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
74646         definitions, since that's the preferred style in glibc.
74647         Fix a minor spacing issue, and update copyright notice to match
74648         glibc's.
74649
74650 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
74651
74652         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
74653
74654 2005-09-06  Simon Josefsson  <jas@extundo.com>
74655
74656         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
74657         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
74658
74659 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
74660
74661         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
74662         warning.
74663
74664 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
74665
74666         * config/srclist.txt: Add glibc bug 1302.
74667
74668 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
74669
74670         Change bitset word type from unsigned int to unsigned long int,
74671         as this has better performance on typical 64-bit hosts.
74672         Port bitset code to hosts with unusual word sizes.
74673         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
74674         (build_collating_symbol):
74675         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
74676         argument is a bitset.  This is merely a style issue, but it makes
74677         it clearer that an entire array is expected.
74678         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
74679         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
74680         Port to the case where bitset_word is not the same as unsigned int.
74681         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
74682         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
74683         Likewise.
74684         * lib/regexec.c (check_dst_limits_calc_pos_1,
74685         check_subexp_matching_top):
74686         (build_trtable, group_nodes_into_DFAstates):
74687         Likewise.
74688         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
74689         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
74690         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
74691         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
74692         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
74693         * lib/regcomp.c (optimize_subexps, lower_subexp):
74694         Work even if bitset_word has holes in its bitwise representation.
74695         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
74696         * lib/regexec.c (check_dst_limits_calc_pos_1,
74697         check_subexp_matching_top):
74698         Likewise.
74699         * lib/regex_internal.c (re_string_reconstruct):
74700         Don't assume UCHAR_MAX == 255.
74701         * lib/regex_internal.h (bitset_set_all): Likewise.
74702         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
74703         All uses changed.
74704         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
74705         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
74706         All uses changed.
74707         (BITSET_WORD_MAX): New macro.
74708         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
74709         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
74710         (bitset_empty, bitset_copy):
74711         Prefer sizeof (bitset) to multiplying it out ourselves.
74712         (bitset_not_merge): Remove; unused.
74713         (bitset_contain): Return bool, not unsigned int with one bit on.
74714         All callers changed.
74715         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
74716         alignment than re_node_set; do this by defining a new internal
74717         type struct dests_alloc and using it to allocate memory.
74718
74719 2005-09-05  Bruno Haible  <bruno@clisp.org>
74720
74721         * gnulib-tool (func_import): Fix comparison in handling of symbolic
74722         links.
74723
74724 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
74725
74726         * modules/size_max (Makefile.am): Add size_max.h
74727
74728 2005-09-04  Derek Price  <derek@ximbiot.com>
74729
74730         * gnulib-tool (func_import): Fix reversed $symbolic logic.
74731
74732 2005-09-03  Simon Josefsson  <jas@extundo.com>
74733
74734         * gnulib-tool: Fix typo.
74735
74736 2005-09-03  Simon Josefsson  <jas@extundo.com>
74737
74738         * config/srclist.txt: Add glibc bug 1293.
74739
74740 2005-09-03  Derek Price  <derek@ximbiot.com>
74741
74742         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
74743         From Larry Jones <lawrence.jones@ugs.com>.
74744
74745 2005-09-02  Simon Josefsson  <jas@extundo.com>
74746
74747         * modules/socklen: New file.
74748
74749 2005-09-02  Simon Josefsson  <jas@extundo.com>
74750
74751         * modules/havelib: New module.
74752
74753         * modules/gettext, modules/iconv, modules/lock, modules/readline:
74754         Use havelib.
74755
74756 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
74757
74758         Check for arithmetic overflow when calculating sizes, to prevent
74759         some buffer-overflow issues.  These patches are conservative, in the
74760         sense that when I couldn't determine whether an overflow was possible,
74761         I inserted a run-time check.
74762         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
74763         macros.
74764         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
74765         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
74766         (re_xnrealloc, re_x2nrealloc): New inline functions.
74767         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
74768         parse_bracket_exp):
74769         (build_equiv_class, build_charclass): Check for arithmetic overflow
74770         in size expression calculations.
74771         * lib/regex_internal.c (re_string_realloc_buffers):
74772         (build_wcs_upper_buffer, re_node_set_add_intersect):
74773         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
74774         (re_dfa_add_node, register_state): Likewise.
74775         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
74776         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
74777         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
74778         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
74779
74780 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
74781
74782         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
74783         m4/ulonglong.m4.  Problem reported by Martin Lambers.
74784
74785 2005-09-02  Bruno Haible  <bruno@clisp.org>
74786
74787         Support for lib vs. lib64 distinction on biarch platforms.
74788         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
74789         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
74790         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
74791
74792 2005-09-02  Bruno Haible  <bruno@clisp.org>
74793
74794         * gnulib-tool (import): In the other first-use case, provide defaults
74795         as well.
74796
74797 2005-09-02  Bruno Haible  <bruno@clisp.org>
74798
74799         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
74800         patches not yet found in the latest gettext release.
74801
74802 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
74803
74804         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
74805         to avoid a collision with bits/local_lim.h in glibc.
74806         All uses changed.  Problem reported by Dmitry V. Levin in
74807         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
74808
74809         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
74810         bugs in int versus size_t comparisons.
74811         (re_string_context_at): Fix bug where the code assumed that
74812         Idx is signed.
74813
74814         Use bool where appropriate.
74815         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
74816         All callers changed.
74817         (calc_eclosure_iter): Likewise, for ROOT arg.
74818         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
74819         (build_charclass_op): Likewise, for NON_MATCH arg.
74820         * lib/regex_internal.c (re_string_allocate, re_string_construct):
74821         (re_string_construct_common): Likewise, for ICASE arg.
74822         * lib/regexec.c (re_search_2_stub, re_search_stub):
74823         Likewise, for RET_LEN arg.
74824         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
74825         (set_regs): Likewise, for FL_BACKTRACK arg.
74826         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
74827         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
74828         (calc_eclosure_iter, parse_bracket_exp):
74829         Use bool for internal variables that are booleans.
74830         * lib/regexec.c (re_search_internal, check_matching,
74831         proceed_next_node):
74832         (set_regs, build_sifted_states, sift_states_bkref):
74833         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
74834         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
74835         (find_collation_sequence_value):
74836         Likewise.
74837         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
74838         (re_node_set_compare):
74839         Return bool, not int. All callers changed.
74840         * lib/regexec.c (check_halt_node_context, check_dst_limits):
74841         (build_trtable, check_node_accept): Likewise.
74842         * lib/regex_internal.h: Include stdbool.h.
74843
74844         Fix bugs uncovered when converting to bool.
74845         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
74846         failure instead of charging ahead blindly.
74847         * lib/regex_internal.c (register_state): Likewise.
74848         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
74849         for freeing internal storage.
74850         (group_nodes_into_DFA_states): Use unsigned int, not int, for
74851         bitset pieces used as boolean, to avoid undefined behavior
74852         on hosts that do int overflow checking.
74853
74854 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
74855
74856         * config/srclist.txt: Add glibc bugs 1285-1287.
74857
74858 2005-09-01  Jim Meyering  <jim@meyering.net>
74859
74860         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
74861         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
74862         Require gl_STAT_MACROS, too.
74863
74864 2005-09-01  Bruno Haible  <bruno@clisp.org>
74865
74866         * gnulib-tool (import): In the first-use case, provide defaults.
74867
74868 2005-09-01  Bruno Haible  <bruno@clisp.org>
74869
74870         * gnulib-tool (func_import): Remove the .tmp files.
74871
74872 2005-09-01  Bruno Haible  <bruno@clisp.org>
74873
74874         * gnulib-tool (func_import): Fix handling of symbolic links.
74875
74876 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
74877
74878         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
74879         old glibc regex code mishandles strings longer than 2**31 bytes.
74880         This patch fixes this when the regex code is used in gnulib
74881         (i.e., outside glibc).
74882
74883         This patch should not affect the use of the regex code inside
74884         glibc.  No doubt this problem also needs to be handled for glibc
74885         as well, but the result will be an incompatible change to the
74886         glibc ABI, and the old ABI will have to be supported too.  That
74887         can be the the subject for another patch.
74888
74889         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
74890         governing whether the rest of this patch is active.  By default,
74891         the macro is disabled and the patch has no effect.
74892         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
74893         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
74894         (struct re_pattern_buffer, re_search, re_search_2, re_match):
74895         (re_match_2, re_set_registers): Use the new types.
74896         * lib/regex_internal.h (Idx, re_hashval_t): New types.
74897         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
74898         New macros.
74899         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
74900         (re_string_context_at, bin_tree_t, re_dfastate_t):
74901         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
74902         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
74903         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
74904         (re_string_char_size_at, re_string_wchar_at):
74905         (re_string_elem_size_at):
74906         Use the new types and macros to port to 64-bit hosts.
74907         Use unsigned types for internal values, so that the code
74908         mostly works even for arrays larger than SSIZE_MAX.
74909         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
74910         (search_duplicated_node, calc_eclosure_iter, fetch_number):
74911         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
74912         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
74913         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
74914         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
74915         (calc_inveclosure, parse_dup_op, build_range_exp):
74916         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
74917         (fetch_number, create_token_tree, mark_opt_subexp):
74918         Likewise.
74919         * lib/regex_internal.c (re_string_construct_common,
74920         create_ci_newstate):
74921         (create_cd_newstate, re_string_allocate, re_string_construct):
74922         (re_string_realloc_buffers, build_wcs_upper_buffer):
74923         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
74924         (re_string_reconstruct, re_string_peek_byte_case):
74925         (re_string_fetch_byte_case, re_string_context_at):
74926         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
74927         (re_node_set_init_copy, re_node_set_add_intersect):
74928         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
74929         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
74930         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
74931         (re_acquire_state, re_acquire_state_context, register_state):
74932         Likewise.
74933         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
74934         search_cur_bkref_entry):
74935         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
74936         (re_search_internal, re_search_2_stub, re_search_stub)
74937         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
74938         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
74939         (update_cur_sifted_state, check_dst_limits):
74940         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
74941         (check_subexp_limits, sift_states_bkref, merge_state_array):
74942         (check_subexp_matching_top, get_subexp, get_subexp_sub):
74943         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
74944         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
74945         (expand_bkref_cache, check_node_accept_bytes):
74946         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
74947         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
74948         (acquire_init_state_context, check_halt_node_context):
74949         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
74950         (sift_states_backward, clean_state_log_if_needed):
74951         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
74952         (find_recover_state, transit_state_sb, transit_state_mb):
74953         (transit_state_bkref, build_trtable, match_ctx_clean):
74954         Likewise.
74955         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
74956         to work around an assumption that REG_MISSING is negative.
74957
74958         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
74959         (seek_collating_symbol_entry) [defined _LIBC]:
74960         (lookup_collation_sequence_value) [defined _LIBC]:
74961         (build_range_exp, build_collating_symbol) [defined _LIBC]:
74962         Use prototypes rather than old-style function definitions.
74963         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
74964         (transit_state_sb) [0]:
74965         (find_collation_sequence_value) [defined _LIBC]: Likewise.
74966
74967         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
74968         rm_eo.
74969
74970         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
74971         (optimize_subexps, lower_subexp):
74972         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
74973         since the signed shift might overflow.  Use 1u<<31 instead.
74974         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
74975         Likewise.
74976         * lib/regexec.c (check_dst_limits_calc_pos_1,
74977         check_subexp_matching_top): Likewise.
74978
74979         * lib/regcomp.c (optimize_subexps, lower_subexp):
74980         Use CHAR_BIT rather than 8, for clarity.
74981         * lib/regexec.c (check_dst_limits_calc_pos_1):
74982         (check_subexp_matching_top): Likewise.
74983         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
74984         have to worry about portability issues when shifting it left.
74985         Remove no-longer-needed test for table_size > 0.
74986         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
74987         in a word, as the resulting behavior is undefined.
74988         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
74989         in one case, a <= should have been an <, and in another case the
74990         whole test was missing.
74991         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
74992         the standard name CHAR_BIT.
74993         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
74994         this is not true on one's complement and signed-magnitude hosts.
74995
74996         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
74997         next_last_offset.
74998         (struct re_dfa_t): Remove unused member states_alloc.
74999         * lib/regcomp.c (init_dfa): Don't initialize unused members.
75000
75001 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
75002
75003         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
75004         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
75005         and large-file glibc and in 32-bit large-file Solaris.
75006
75007 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
75008
75009         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
75010         lengths fit in regoff_t; this isn't true if regoff_t is the same
75011         width as size_t.
75012         * lib/regex.c (re_search_internal): 5th arg is LAST_START
75013         (= START + RANGE) instead of RANGE.  This avoids overflow
75014         problems when regoff_t is the same width as size_t.
75015         All callers changed.
75016         (re_search_2_stub): Check for overflow when adding the
75017         sizes of the two strings.
75018         (re_search_stub): Check for overflow when adding START
75019         to RANGE; if it occurs, substitute the extreme value.
75020
75021 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
75022
75023         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
75024
75025 2005-08-31  Jim Meyering  <jim@meyering.net>
75026
75027         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
75028         a pointer-to-const.
75029         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
75030         (register_state): Likewise.
75031         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
75032         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
75033         (group_nodes_into_DFAstates): Likewise.
75034
75035 2005-08-31  Jim Meyering  <jim@meyering.net>
75036
75037         * check-module: Add a FIXME comment.
75038
75039 2005-08-31  Eric Blake  <ebb9@byu.net>
75040
75041         * modules/unistd-safer (Files): Add unistd--.h.
75042         * modules/stdio-safer (Files): Add stdio--.h.
75043
75044 2005-08-31  Derek Price  <derek@ximbiot.com>
75045
75046         * lib/getdelim.c (getdelim): Return EOF on EOF.
75047         Reported by Larry Jones <lawrence.jones@ugs.com>.
75048
75049 2005-08-31  Bruno Haible  <bruno@clisp.org>
75050
75051         Avoid unnecessary diffs in the generated lib/Makefile.am.
75052         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
75053         the generated files.
75054         (func_import): Don't set cmd.
75055
75056 2005-08-31  Bruno Haible  <bruno@clisp.org>
75057
75058         * lib/strstr.c: Include <stddef.h>, for NULL.
75059         * lib/strcasestr.c: Likewise.
75060         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
75061
75062 2005-08-31  Bruno Haible  <bruno@clisp.org>
75063
75064         * gnulib-tool: New option --macro-prefix.
75065         (func_import): Use macro_prefix.
75066         (import): Handle option --macro-prefix.
75067
75068 2005-08-31  Bruno Haible  <bruno@clisp.org>
75069
75070         * gnulib-tool (import): Rename most ac_* variables to cached_*.
75071         Also use new variables cached_lgpl, cached_libtool.
75072
75073 2005-08-31  Bruno Haible  <bruno@clisp.org>
75074
75075         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
75076         always instantiating them.
75077
75078 2005-08-31  Bruno Haible  <bruno@clisp.org>
75079
75080         * gnulib-tool (func_import): Read the previous cached settings
75081         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
75082         earlier added by gnulib but are now dropped. Warn when a gnulib file
75083         overwrites a non-gnulib file.
75084
75085 2005-08-31  Bruno Haible  <bruno@clisp.org>
75086
75087         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
75088         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
75089         projects that don't keep autogenerated files in CVS. Put into
75090         actioncmd only the specified modules, not the transitive closure.
75091
75092 2005-08-31  Bruno Haible  <bruno@clisp.org>
75093
75094         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
75095         Create directories that shall be filled.
75096         (import): Don't look for gl_* macros in configure.ac. Recurse across
75097         all directories containing a gnulib-cache.m4 files, if meaningful.
75098
75099 2005-08-31  Bruno Haible  <bruno@clisp.org>
75100
75101         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
75102         (import): Set seen_libtool when we see gl_LIBTOOL.
75103
75104 2005-08-31  Bruno Haible  <bruno@clisp.org>
75105
75106         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
75107         declaration macro definitions from generated gnulib.m4.
75108
75109 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
75110
75111         * lib/iconvme.h: Add prototype for iconv_alloc.
75112
75113 2005-08-29  Simon Josefsson  <jas@extundo.com>
75114
75115         * lib/iconvme.c: Fix errno.
75116
75117 2005-08-29  Bruno Haible  <bruno@clisp.org>
75118
75119         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
75120         that it works when the directory contains spaces.
75121
75122 2005-08-29  Bruno Haible  <bruno@clisp.org>
75123
75124         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
75125
75126 2005-08-29  Bruno Haible  <bruno@clisp.org>
75127
75128         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
75129         Emit more advice.
75130
75131 2005-08-29  Bruno Haible  <bruno@clisp.org>
75132         and Stepan Kasal  <kasal@ucw.cz>
75133
75134         * check-module: If more parameters are given, check each of them
75135         separately; add more exceptions, as noted by Jim Meyering.
75136         (check_module): New procedure.
75137         (%exempt_header): Now contains all exceptions.
75138
75139 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
75140
75141         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
75142
75143 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
75144
75145         * lib/iconvme.c: Split iconv_string into iconv_alloc.
75146
75147 2005-08-28  Bruno Haible  <bruno@clisp.org>
75148
75149         * m4/gnulib-tool.m4: New file.
75150
75151 2005-08-27  Jim Meyering  <jim@meyering.net>
75152
75153         * modules/unistd-safer (Files): Add pipe-safer.c.
75154         * modules/fcntl-safer (Files): Add creat-safer.c.
75155
75156 2005-08-27  Jim Meyering  <jim@meyering.net>
75157
75158         * m4/stdlib-safer.m4: New file.  From coreutils.
75159         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
75160         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
75161         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
75162         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
75163         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
75164
75165 2005-08-27  Jim Meyering  <jim@meyering.net>
75166
75167         * lib/fopen-safer.c: Merge minor changes from coreutils.
75168         * lib/dup-safer.c: Likewise.
75169         * lib/fd-safer.c: Likewise.
75170
75171         Merge from coreutils.
75172         * lib/stdio--.h: New file.
75173         * lib/stdlib--.h: New file.
75174         * lib/mkstemp-safer.c: New file.
75175
75176         GNU tar needs these.
75177         * lib/pipe-safer.c: New file.
75178         * lib/creat-safer.c: New file.
75179         * lib/fcntl--.h (creat): Define to creat_safer.
75180         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
75181         * lib/unistd--.h (pipe): Define to pipe_safer.
75182         * lib/unistd-safer.h: Declare pipe_safer.
75183
75184 2005-08-26  Simon Josefsson  <jas@extundo.com>
75185
75186         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
75187         Haible <bruno@clisp.org>.
75188
75189 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
75190
75191         * lib/regex_internal.h: Remove all references to
75192         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
75193         or better.
75194         (bitset_not, bitset_merge, bitset_not_merge):
75195         (bitset_mask, re_string_allocate, re_string_construct):
75196         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
75197         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
75198         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
75199         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
75200         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
75201         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
75202         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
75203         (re_acquire_state_context):
75204         Remove unnecessary forward decls.
75205         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
75206         Put __attribute at function definition,
75207         now that the function decl has been removed.
75208         * lib/regex_internal.c (re_string_peek_byte_case):
75209         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
75210         Likewise.
75211
75212 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
75213
75214         * m4/regex.m4: Add AC_PREREQ(2.50).
75215         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
75216
75217 2005-08-25  Simon Josefsson  <jas@extundo.com>
75218
75219         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
75220         __fsetlocking.
75221
75222 2005-08-25  Simon Josefsson  <jas@extundo.com>
75223
75224         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
75225         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
75226         GLIBC specific code.
75227
75228 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
75229
75230         Make regex safe for g++.  This fixes one real bug (an "err"
75231         that should have been "*err").  g++ problem reported by
75232         Sam Steingold.
75233         * lib/regex_internal.h (re_calloc): New macro, consistent with
75234         re_malloc etc.  All callers of calloc changed to use re_calloc.
75235         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
75236         not int.  All callers changed.
75237         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
75238         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
75239         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
75240         (find_recover_state): Change "err" to "*err"; this fixes what
75241         appears to be a real bug.
75242         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
75243         versus int.
75244
75245 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
75246
75247         * modules/regex (Depends-on): Add malloc, since the code
75248         assumes that !malloc(0) means failure.
75249
75250 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
75251
75252         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
75253
75254         alloca modernization/simplification for regex.
75255         * lib/regex.c: Remove portability cruft for alloca.  This no longer
75256         needs to be at the start of the file, and can be moved into
75257         regex_internal.h and simplified.
75258         * lib/regex_internal.h: Include <alloca.h>.
75259         (__libc_use_alloca) [!defined _LIBC]: New macro.
75260         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
75261         now works outside glibc.
75262
75263 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
75264
75265         * config/srclist.txt: Add glibc bugs 1241, 1245.
75266
75267 2005-08-25  Jim Meyering  <jim@meyering.net>
75268
75269         * lib/open-safer.c: Include <config.h>.
75270         Otherwise, we'd lose LARGEFILE support in any file using
75271         e.g. "fcntl--.h"
75272
75273 2005-08-25  Bruno Haible  <bruno@clisp.org>
75274
75275         * m4/minmax.m4: Require autoconf 2.52.
75276         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
75277         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
75278         alternatives of translit over the alphabet.
75279         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
75280
75281 2005-08-24  Simon Josefsson  <jas@extundo.com>
75282
75283         * tests/test-getpass.c: New file.
75284
75285 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
75286
75287         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
75288         for GNU regex features.
75289
75290 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
75291
75292         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
75293         * lib/regex.h (regerror): Likewise.
75294
75295         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
75296         requires this.  (The code never needed it.)
75297
75298         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
75299         All uses of recently-renamed identifiers changed to use the new,
75300         POSIX-compliant names.  The code will build and run just fine
75301         without these changes, but it's better to eat our own dog food
75302         and use the standard-conforming names.
75303
75304         * lib/regex.h: Fix a multitude of POSIX name space violations.
75305         These changes have an effect only for programs that define
75306         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
75307         do not change anything for programs compiled in the normal way.
75308         Also, there is no effect on the ABI.
75309
75310         (_REGEX_SOURCE): New macro.
75311         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
75312         defined and _GNU_SOURCE is not; this fixes a name space violation.
75313
75314         Rename the following macros to obey POSIX requirements.
75315         The old names are still visible as macros if _REGEX_SOURCE is defined.
75316         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
75317         RE_BACKSLASH_ESCAPE_IN_LISTS.
75318         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
75319         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
75320         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
75321         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
75322         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
75323         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
75324         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
75325         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
75326         (REG_INTERVALS): renamed from RE_INTERVALS.
75327         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
75328         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
75329         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
75330         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
75331         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
75332         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
75333         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
75334         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
75335         RE_UNMATCHED_RIGHT_PAREN_ORD.
75336         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
75337         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
75338         (REG_DEBUG): renamed from RE_DEBUG.
75339         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
75340         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
75341         unusual, since we can't clash with the POSIX REG_ICASE.
75342         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
75343         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
75344         (REG_NO_SUB): renamed from RE_NO_SUB.
75345         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
75346         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
75347         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
75348         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
75349         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
75350         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
75351         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
75352         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
75353         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
75354         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
75355         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
75356         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
75357         RE_SYNTAX_POSIX_MINIMAL_BASIC.
75358         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
75359         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
75360         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
75361         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
75362         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
75363         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
75364         (REG_FIXED): Renamed from REGS_FIXED.
75365         (REG_NREGS): Renamed from RE_NREGS.
75366
75367         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
75368         of other REG_* macros, since POSIX says the user is allowed to
75369         #undef these macros selectively.
75370
75371         (reg_errcode_t): Update comment stating what other tables need
75372         to be consistent.
75373
75374         Rename the following enum values to obey POSIX requirements.
75375         The old names are still visible as macros.
75376         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
75377         is not defined, since GNU is supposed to be a superset of POSIX as
75378         much as possible, and since we want reg_errcode_t to be a signed
75379         type for implementation consistency.
75380         (_REG_NOERROR): Renamed from REG_NOERROR.
75381         (_REG_NOMATCH): Renamed from REG_NOMATCH.
75382         (_REG_BADPAT): Renamed from REG_BADPAT.
75383         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
75384         (_REG_ECTYPE): Renamed from REG_ECTYPE.
75385         (_REG_EESCAPE): Renamed from REG_EESCAPE.
75386         (_REG_ESUBREG): Renamed from REG_ESUBREG.
75387         (_REG_EBRACK): Renamed from REG_EBRACK.
75388         (_REG_EPAREN): Renamed from REG_EPAREN.
75389         (_REG_EBRACE): Renamed from REG_EBRACE.
75390         (_REG_BADBR): Renamed from REG_BADBR.
75391         (_REG_ERANGE): Renamed from REG_ERANGE.
75392         (_REG_ESPACE): Renamed from REG_ESPACE.
75393         (_REG_BADRPT): Renamed from REG_BADRPT.
75394         (_REG_EEND): Renamed from REG_EEND.
75395         (_REG_ESIZE): Renamed from REG_ESIZE.
75396         (_REG_ERPAREN): Renamed from REG_ERPAREN.
75397         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
75398         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
75399         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
75400         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
75401
75402         (_REG_RE_NAME, _REG_RM_NAME): New macros.
75403         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
75404         changed.  But support the old name if the new one is not defined
75405         and if _REGEX_SOURCE.
75406
75407         Change the following member names in struct re_pattern_buffer.
75408         The old names are still supported if !_REGEX_SOURCE.
75409         The new names are always supported, regardless of _REGEX_SOURCE.
75410         (re_buffer): Renamed from buffer.
75411         (re_allocated): Renamed from allocated.
75412         (re_used): Renamed from used.
75413         (re_syntax): Renamed from syntax.
75414         (re_fastmap): Renamed from fastmap.
75415         (re_translate): Renamed from translate.
75416         (re_can_be_null): Renamed from can_be_null.
75417         (re_regs_allocated): Renamed from regs_allocated.
75418         (re_fastmap_accurate): Renamed from fastmap_accurate.
75419         (re_no_sub): Renamed from no_sub.
75420         (re_not_bol): Renamed from not_bol.
75421         (re_not_eol): Renamed from not_eol.
75422         (re_newline_anchor): Renamed from newline_anchor.
75423
75424         Change the following member names in struct re_registers.
75425         The old names are still supported if !_REGEX_SOURCE.
75426         The new names are always supported, regardless of _REGEX_SOURCE.
75427         (rm_num_regs): Renamed from num_regs.
75428         (rm_start): Renamed from start.
75429         (rm_end): Renamed from end.
75430
75431         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
75432         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
75433         Prepend __ to parameter names.
75434
75435         Undo yesterday's changes.
75436
75437 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
75438
75439         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
75440         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
75441         lib/regex.c.
75442
75443 2005-08-24  Jim Meyering  <jim@meyering.net>
75444
75445         Sync from coreutils.
75446         * m4/fcntl-safer.m4: New file.
75447
75448         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
75449         and object files for this module.
75450
75451 2005-08-24  Jim Meyering  <jim@meyering.net>
75452
75453         Sync from coreutils.
75454         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
75455
75456 2005-08-24  Jim Meyering  <jim@meyering.net>
75457
75458         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
75459         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
75460
75461 2005-08-24  Jim Meyering  <jim@meyering.net>
75462
75463         * modules/fcntl-safer: New module.
75464         * modules/fts (Depends-on): Add fcntl-safer.
75465         * MODULES.html.sh (File descriptor based Input/Output):
75466         Add fcntl-safer.
75467
75468 2005-08-24  Bruno Haible  <bruno@clisp.org>
75469
75470         Support for unit test modules.
75471         * modules/README: Mention tests modules.
75472         * modules/TEMPLATE-TESTS: New file.
75473         * gnulib-tool: New options --extract-tests-module, --with-tests and
75474         --tests-base (unused for the moment).
75475         (testsbase, inctests): New variables.
75476         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
75477         (func_verify_module): Exclude TEMPLATE-TESTS.
75478         (func_verify_nontests_module, func_verify_tests_module): New functions.
75479         (func_get_dependencies): Add implicit dependency for tests modules.
75480         (func_get_tests_module): New function.
75481         (func_modules_transitive_closure): When --with-tests was specified,
75482         include the unit tests as well, unless explicitly avoided.
75483         (func_emit_lib_Makefile_am): Ignore the tests modules here.
75484         (func_emit_tests_Makefile_am): New function.
75485         (func_create_testdir): When --with-tests was specified, emit a
75486         tests/ directory.
75487         * MODULES.html.sh (Future developments): Update.
75488
75489 2005-08-24  Bruno Haible  <bruno@clisp.org>
75490
75491         * modules/tls-tests: New file.
75492         * tests/test-tls.c: New file, from GNU gettext.
75493
75494 2005-08-24  Bruno Haible  <bruno@clisp.org>
75495
75496         * modules/lock-tests: New file.
75497         * tests/test-lock.c: New file, from GNU gettext.
75498
75499 2005-08-24  Bruno Haible  <bruno@clisp.org>
75500
75501         * lib/lock.h: Add multiple inclusion guard.
75502         * lib/tls.h: Add multiple inclusion guard.
75503
75504 2005-08-24  Bruno Haible  <bruno@clisp.org>
75505
75506         * gnulib-tool: Add support for the --aux-dir option to
75507         --create-testdir, --create-megatestdir, --test, --megatest.
75508         (func_create_testdir, func_create_megatestdir): Optionally emit a
75509         AC_CONFIG_AUX_DIR directive.
75510         (create-testdir, create-megatestdir, test, megatest): Provide a
75511         default value for $auxdir.
75512
75513 2005-08-24  Bruno Haible  <bruno@clisp.org>
75514
75515         * gnulib-tool (import): Use compound statement instead of subshell
75516         where possible.
75517
75518 2005-08-24  Bruno Haible  <bruno@clisp.org>
75519
75520         * gnulib-tool (import): Change --aux-dir default to "build-aux".
75521
75522 2005-08-24  Bruno Haible  <bruno@clisp.org>
75523
75524         * gnulib-tool (func_version): Update.
75525
75526 2005-08-24  Bruno Haible  <bruno@clisp.org>
75527
75528         * gnulib-tool (func_import, func_create_testdir,
75529         func_create_megatestdir): Quote all autoconf macro arguments.
75530
75531 2005-08-24  Bruno Haible  <bruno@clisp.org>
75532
75533         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
75534         option --force, because --force causes the aclocal.m4 of each
75535         subdirectory to be newer than the corresponding config.h.in.
75536
75537 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
75538
75539         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
75540         All contents moved to gl_REGEX.
75541         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
75542         assume that it does.
75543
75544 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
75545
75546         * lib/regex.h (REG_NOSYS)
75547         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
75548         Define, since POSIX requires it as of 2001.
75549         (_REG_ENOSYS)
75550         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
75551         New private symbol, used to keep the enum signed in all cases.
75552         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
75553         Youngman in
75554         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
75555
75556         * lib/regex_internal.c (re_string_skip_chars, register_state):
75557         (calc_state_hash):
75558         Remove forward decls; no longer needed now that we use prototypes.
75559         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
75560         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
75561         (clean_state_log_if_needed): Likewise.
75562
75563 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
75564
75565         * config/srclist.txt: Add glibc bugs 1231-1233.
75566
75567 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
75568
75569         Fix problems reported by Sam Steingold in
75570         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
75571         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
75572         assumed that reg_errcode_t is a signed type, which is not
75573         necessarily true if _XOPEN_SOURCE is not defined.
75574         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
75575         since some compilers warn about it otherwise.
75576
75577 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
75578
75579         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
75580         (init_word_char, create_initial_state, duplicate_node_closure):
75581         (fetch_token, peek_token_bracket, build_range_exp):
75582         (build_collating_symbol): Remove forward decls; no longer needed
75583         now that we use prototypes.
75584
75585         * lib/regcomp.c:
75586         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
75587         (re_compile_fastmap_iter, regcomp, regerror, regfree):
75588         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
75589         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
75590         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
75591         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
75592         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
75593         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
75594         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
75595         (build_range_exp, build_collating_symbol, parse_bracket_exp):
75596         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
75597         (build_charclass, build_charclass_op, fetch_number, create_tree):
75598         (create_token_tree, mark_opt_subexp, duplicate_tree):
75599         Use prototypes rather than old-style definitions.
75600
75601         * lib/regex_internal.c:
75602         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
75603         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
75604         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
75605         (re_string_reconstruct, re_string_peek_byte_case):
75606         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
75607         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
75608         (re_node_set_init_copy, re_node_set_add_intersect):
75609         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
75610         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
75611         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
75612         (re_acquire_state, re_acquire_state_context, register_state):
75613         (create_ci_newstate, create_cd_newstate, free_state):
75614         Likewise.
75615         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
75616         re_search_2):
75617         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
75618         (re_search_internal, prune_impossible_nodes):
75619         (acquire_init_state_context, check_matching, static):
75620         (check_halt_node_context, check_halt_state_context, proceed_next_node):
75621         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
75622         (update_regs, sift_states_backward, build_sifted_states):
75623         (clean_state_log_if_needed, merge_state_array):
75624         (update_cur_sifted_state, add_epsilon_src_nodes):
75625         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
75626         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
75627         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
75628         (find_recover_state, check_subexp_matching_top, transit_state_mb):
75629         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
75630         (check_arrival, check_arrival_add_next_nodes):
75631         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
75632         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
75633         (check_node_accept_bytes, check_node_accept, extend_buffers):
75634         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
75635         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
75636         (sift_ctx_init):
75637         Likewise.
75638
75639         * lib/regex_internal.h:
75640         (re_string_allocate, re_string_construct, re_string_reconstruct):
75641         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
75642         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
75643         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
75644         (re_string_context_at, re_string_peek_byte_case):
75645         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
75646         is defined, since we now use prototypes always.
75647
75648         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
75649         C89 or better.  All uses removed.
75650
75651 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
75652
75653         * config/srclist.txt: Add glibc bugs 1220-1227.
75654
75655 2005-08-20  Jim Meyering  <jim@meyering.net>
75656
75657         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
75658         of unused local, dfa.
75659
75660 2005-08-20  Bruno Haible  <bruno@clisp.org>
75661
75662         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
75663
75664 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
75665
75666         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
75667         (re_node_set_insert_last, re_dfa_add_node):
75668         Rename local variables to avoid GCC shadowing warnings.
75669
75670 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
75671
75672         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
75673         [defined lint]: Suppress bogus uninitialized-variable warnings.
75674
75675         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
75676         and let the caller return REG_ESPACE if out of space.  This
75677         removes an uninitialied-variable warning with GCC 4.0.1, and also
75678         avoids taking the address of a local variable.  All callers
75679         changed.
75680
75681 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
75682
75683         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
75684         $LIBCSRC/posix/regexec.c.
75685         Add glibc bug 1217 for regcomp.c.
75686
75687 2005-08-19  Jim Meyering  <jim@meyering.net>
75688
75689         * lib/regexec.c (proceed_next_node): Redo local variables to
75690         avoid GCC shadowing warnings.
75691
75692 2005-08-18  Bruno Haible  <bruno@clisp.org>
75693
75694         * lib/strstr.c (strstr): Fix return value in multibyte case.
75695         * lib/strcasestr.c (strcasestr): Likewise.
75696
75697 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
75698
75699         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
75700
75701 2005-08-17  Jim Meyering  <jim@meyering.net>
75702
75703         Make the %s format (seconds since the epoch) work for a negative
75704         number and when used with a zero-padded field width, e.g. %015s.
75705
75706         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
75707         label so that it precedes the code to set `digits'.  Otherwise,
75708         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
75709         print `00-22'.  Now, it prints `-0022', as it should.
75710
75711 2005-08-17  Bruno Haible  <bruno@clisp.org>
75712
75713         * modules/strstr (Files): Add m4/mbrtowc.m4.
75714         (Depends-on): Add mbuiter.
75715
75716 2005-08-17  Bruno Haible  <bruno@clisp.org>
75717
75718         * modules/strcasestr: New file.
75719         * MODULES.html.sh (String handling, based on ANSI C 89): Add
75720         strcasestr.
75721
75722 2005-08-17  Bruno Haible  <bruno@clisp.org>
75723
75724         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
75725
75726 2005-08-17  Bruno Haible  <bruno@clisp.org>
75727
75728         * modules/mbuiter: New file.
75729         * MODULES.html.sh (Extended multibyte and wide character utilities):
75730         Add mbuiter.
75731
75732 2005-08-17  Bruno Haible  <bruno@clisp.org>
75733
75734         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
75735         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
75736
75737 2005-08-17  Bruno Haible  <bruno@clisp.org>
75738
75739         * m4/strcasestr.m4: New file.
75740
75741 2005-08-17  Bruno Haible  <bruno@clisp.org>
75742
75743         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
75744         * lib/strstr.c: Completely rewritten, with multibyte locale support.
75745
75746 2005-08-17  Bruno Haible  <bruno@clisp.org>
75747
75748         * lib/strcasestr.h: New file.
75749         * lib/strcasestr.c: New file.
75750
75751 2005-08-17  Bruno Haible  <bruno@clisp.org>
75752
75753         * lib/strcasecmp.c: Use mbuiter.h.
75754
75755 2005-08-17  Bruno Haible  <bruno@clisp.org>
75756
75757         * lib/mbuiter.h: New file.
75758
75759 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
75760
75761         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
75762         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
75763         and gl_GETOPT are both invoked via different paths (as happens
75764         with GNU tar CVS because it uses both argp and getopt), the former
75765         wins.
75766
75767 2005-08-16  Bruno Haible  <bruno@clisp.org>
75768
75769         * modules/tls: New file.
75770         * MODULES.html.sh (Multithreading): Add tls.
75771
75772 2005-08-16  Bruno Haible  <bruno@clisp.org>
75773
75774         * modules/strnlen1: New file.
75775         * MODULES.html.sh (String handling): Add strnlen1.
75776
75777 2005-08-16  Bruno Haible  <bruno@clisp.org>
75778
75779         * modules/strcase (Files): Add m4/mbrtowc.m4.
75780         (Depends-on): Add strnlen1, mbchar.
75781
75782 2005-08-16  Bruno Haible  <bruno@clisp.org>
75783
75784         * modules/mbiter: New file.
75785         * MODULES.html.sh (Extended multibyte and wide character utilities):
75786         Add mbiter.
75787
75788 2005-08-16  Bruno Haible  <bruno@clisp.org>
75789
75790         * modules/mbfile: New file.
75791         * MODULES.html.sh (Extended multibyte and wide character utilities):
75792         Add mbfile.
75793
75794 2005-08-16  Bruno Haible  <bruno@clisp.org>
75795
75796         * modules/mbchar: New file.
75797         * MODULES.html.sh (Extended multibyte and wide character utilities):
75798         New section.
75799
75800 2005-08-16  Bruno Haible  <bruno@clisp.org>
75801
75802         * m4/tls.m4: New file, from GNU gettext.
75803
75804 2005-08-16  Bruno Haible  <bruno@clisp.org>
75805
75806         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
75807         always.
75808         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
75809
75810 2005-08-16  Bruno Haible  <bruno@clisp.org>
75811
75812         * m4/mbiter.m4: New file.
75813
75814 2005-08-16  Bruno Haible  <bruno@clisp.org>
75815
75816         * m4/mbfile.m4: New file.
75817
75818 2005-08-16  Bruno Haible  <bruno@clisp.org>
75819
75820         * m4/mbchar.m4: New file.
75821
75822 2005-08-16  Bruno Haible  <bruno@clisp.org>
75823
75824         * lib/tls.h: New file, from GNU gettext.
75825         * lib/tls.c: New file, from GNU gettext.
75826
75827 2005-08-16  Bruno Haible  <bruno@clisp.org>
75828
75829         * lib/strnlen1.h: New file.
75830         * lib/strnlen1.c: New file.
75831
75832 2005-08-16  Bruno Haible  <bruno@clisp.org>
75833
75834         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
75835         (mbi_init): Update.
75836         (mbi_avail, mbi_advance): Let the iteration end before the terminating
75837         NUL byte, not after it.
75838
75839 2005-08-16  Bruno Haible  <bruno@clisp.org>
75840
75841         * lib/strcase.h (strcasecmp): Add note in comments.
75842         * lib/strncasecmp.c: Use code from strcasecmp.c.
75843         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
75844         (strcasecmp): Work correctly in multibyte locales.
75845
75846 2005-08-16  Bruno Haible  <bruno@clisp.org>
75847
75848         * lib/mbiter.h: New file.
75849
75850 2005-08-16  Bruno Haible  <bruno@clisp.org>
75851
75852         * lib/mbfile.h: New file.
75853
75854 2005-08-16  Bruno Haible  <bruno@clisp.org>
75855
75856         * lib/mbchar.h: New file.
75857         * lib/mbchar.c: New file.
75858
75859 2005-08-16  Bruno Haible  <bruno@clisp.org>
75860
75861         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
75862         the valid ones. Makes the comparison operations transitive:
75863         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
75864         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
75865
75866 2005-08-15  Simon Josefsson  <jas@extundo.com>
75867
75868         * modules/ssize_t (License): Change to 'unlimited'.
75869
75870         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
75871
75872 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
75873
75874         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
75875         Add comments for each pending glibc patch.
75876
75877 2005-08-15  Bruno Haible  <bruno@clisp.org>
75878
75879         * lib/regex.h (__restrict_arr): Don't define to __restrict if
75880         __cplusplus is defined.
75881
75882 2005-08-14  Jim Meyering  <jim@meyering.net>
75883
75884         Sync from coreutils.
75885
75886         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
75887         Use the hash-table-based cycle-detection code not just when
75888         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
75889         Reported by James Youngman in
75890         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
75891         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
75892         FTS_TIGHT_CYCLE_CHECK.
75893         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
75894         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
75895         once again.
75896         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
75897         * lib/fts.c (fd_safer): Remove decl.
75898         Include fcntl--.h rather than unistd-safer.h
75899         (fts_safe_changedir): Don't call fd_safer; no longer needed
75900         now that we include fcntl--.h.
75901
75902 2005-08-12  Simon Josefsson  <jas@extundo.com>
75903
75904         * modules/getndelim2: Use ssize_t module.
75905         * modules/getnline: Likewise.
75906         * modules/safe-read: Likewise.
75907         * modules/xreadlink: Likewise.
75908
75909         * modules/ssize_t: New file.
75910
75911 2005-08-12  Simon Josefsson  <jas@extundo.com>
75912
75913         * m4/readline.m4: Look for termcap, curses or ncurses if required.
75914
75915 2005-08-12  Simon Josefsson  <jas@extundo.com>
75916
75917         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
75918         ssize_t.
75919
75920 2005-08-12  Simon Josefsson  <jas@extundo.com>
75921
75922         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
75923         readline, getdelim and check_version.
75924         (Support for systems lacking ISO C 99: Sizes of integer types):
75925         Add size_max.
75926
75927 2005-08-12  Bruno Haible  <bruno@clisp.org>
75928
75929         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
75930
75931 2005-08-11  Simon Josefsson  <jas@extundo.com>
75932
75933         * modules/readline: New file.
75934
75935         * modules/strnlen (Files): Add strnlen.h.
75936
75937 2005-08-11  Simon Josefsson  <jas@extundo.com>
75938
75939         * m4/readline.m4: New file.
75940
75941 2005-08-11  Simon Josefsson  <jas@extundo.com>
75942
75943         * lib/readline.h, readline.c: New file.
75944
75945 2005-08-11  Simon Josefsson  <jas@extundo.com>
75946
75947         * doc/gnulib.texi (Initial import, Finishing touches): Mention
75948         gl_AVOID.
75949
75950 2005-08-11  Bruno Haible  <bruno@clisp.org>
75951
75952         * lib/strnlen.h (strnlen): Change parameter name to match comment.
75953
75954 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
75955
75956         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
75957
75958 2005-08-10  Simon Josefsson  <jas@extundo.com>
75959
75960         * tests/test-iconvme.c: New file.
75961
75962 2005-08-10  Simon Josefsson  <jas@extundo.com>
75963
75964         * m4/strnlen.m4: New file.
75965
75966         * m4/strndup.m4: Don't check for strnlen declaration, done in
75967         strnlen.m4.
75968
75969 2005-08-10  Simon Josefsson  <jas@extundo.com>
75970
75971         * lib/strndup.c: Use strnlen.h.
75972
75973         * lib/strnlen.h: New file.
75974
75975 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
75976
75977         * README: Typos.
75978
75979 2005-08-02  Simon Josefsson  <jas@extundo.com>
75980
75981         * modules/readline: New file.
75982
75983 2005-08-02  Simon Josefsson  <jas@extundo.com>
75984
75985         * modules/getdelim: New file.
75986
75987         * modules/getline: Rewrite, don't use getndelim2.
75988
75989 2005-08-02  Simon Josefsson  <jas@extundo.com>
75990
75991         * m4/getline.m4: Separate out getdelim stuff into separate module.
75992
75993         * m4/getdelim.m4: New file.
75994
75995 2005-08-02  Simon Josefsson  <jas@extundo.com>
75996
75997         * lib/getline.h, getline.c: Rewrite.
75998
75999         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
76000
76001 2005-07-31  Bruno Haible  <bruno@clisp.org>
76002
76003         * lib/lock.h (gl_lock_initializer): New macro.
76004         (gl_lock_define_initialized): Use it.
76005         (gl_rwlock_initializer): New macro.
76006         (gl_rwlock_define_initialized): Use it.
76007         (gl_recursive_lock_initializer): New macro.
76008         (gl_recursive_lock_define_initialized): Use it.
76009
76010 2005-07-30  Karl Berry  <karl@gnu.org>
76011
76012         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
76013         Report from Ben Pfaff, regarding getopt.
76014
76015 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
76016
76017         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
76018         normal way.
76019         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
76020         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
76021         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
76022         (gl_GETOPT): Use the new macros.  Most of the implementation
76023         is moved to the new macros.  This is for programs like Emacs
76024         that don't want all the functionality of gl_GETOPT.
76025
76026 2005-07-26  Bruno Haible  <bruno@clisp.org>
76027
76028         * m4/lock.m4: Update from GNU gettext.
76029
76030 2005-07-26  Bruno Haible  <bruno@clisp.org>
76031
76032         * lib/lock.h: Update from GNU gettext.
76033         * lib/lock.c: Update from GNU gettext.
76034
76035 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
76036
76037         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
76038         obsolescent AC_TRY_RUN.  Include the default includes files, for
76039         'exit'.
76040
76041 2005-07-24  Bruno Haible  <bruno@clisp.org>
76042
76043         * modules/visibility: New file.
76044         * MODULES.html.sh (Misc): Add visibility.
76045
76046 2005-07-24  Bruno Haible  <bruno@clisp.org>
76047
76048         * m4/visibility.m4: New file.
76049
76050 2005-07-24  Bruno Haible  <bruno@clisp.org>
76051
76052         * doc/visibility.texi: New file.
76053
76054 2005-07-22  Bruno Haible  <bruno@clisp.org>
76055
76056         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
76057         $(ALLOCA_H), redundant through BUILT_SOURCES.
76058         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
76059         redundant through BUILT_SOURCES.
76060         * modules/byteswap (Makefile.am): Remove explicit dependency on
76061         $(BYTESWAP_H), redundant through BUILT_SOURCES.
76062         * modules/fnmatch (Makefile.am): Remove explicit dependency on
76063         $(FNMATCH_H), redundant through BUILT_SOURCES.
76064         * modules/getopt (Makefile.am): Remove explicit dependency on
76065         $(GETOPT_H), redundant through BUILT_SOURCES.
76066         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
76067         redundant through BUILT_SOURCES.
76068         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
76069         redundant through BUILT_SOURCES.
76070         * modules/stdbool (Makefile.am): Remove explicit dependency on
76071         $(STDBOOL_H), redundant through BUILT_SOURCES.
76072         * modules/stdint (Makefile.am): Remove explicit dependency on
76073         $(STDINT_H), redundant through BUILT_SOURCES.
76074         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
76075         Remove explicit dependency on $(SYSEXITS_H).
76076         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
76077
76078 2005-07-18  Simon Josefsson  <jas@extundo.com>
76079
76080         * lib/check-version.c (check_version): Accept identical versions too.
76081
76082 2005-07-18  Bruno Haible  <bruno@clisp.org>
76083
76084         * modules/lock: New file.
76085         * MODULES.html.sh (Multithreading): New section.
76086
76087 2005-07-18  Bruno Haible  <bruno@clisp.org>
76088
76089         * m4/lock.m4: New file, from GNU gettext.
76090
76091 2005-07-18  Bruno Haible  <bruno@clisp.org>
76092
76093         * lib/lock.h: New file, from GNU gettext.
76094         * lib/lock.c: New file, from GNU gettext.
76095
76096 2005-07-18  Bruno Haible  <bruno@clisp.org>
76097
76098         * lib/lock.h (gl_once_t): New type.
76099         (gl_once_define, gl_once): New macros.
76100         * lib/lock.c (fresh_once): New variable.
76101         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
76102         functions.
76103
76104 2005-07-16  Simon Josefsson  <jas@extundo.com>
76105
76106         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
76107         workaround, suggested by Bruno.
76108
76109 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
76110
76111         * modules/xalloc (Depends-on): Add xalloc-die.
76112         * modules/xvasprintf (Depends-on): Add xalloc-die.
76113
76114 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
76115
76116         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
76117         with a minor change.
76118
76119 2005-07-15  Bruno Haible  <bruno@clisp.org>
76120
76121         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
76122         When using lib/poll.c, define poll as rpl_poll.
76123
76124 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
76125
76126         * modules/argp (Depends-on): Remove unlocked-io.
76127
76128 2005-07-14  Derek Price  <derek@ximbiot.com>
76129
76130         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
76131         for glob symlink bug.
76132
76133 2005-07-14  Bruno Haible  <bruno@clisp.org>
76134
76135         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
76136         Instead, test for *_unlocked function declarations directly.
76137
76138 2005-07-11  Simon Josefsson  <jas@extundo.com>
76139
76140         * modules/size_max: New file.
76141
76142         * modules/xsize: Depend on size_max module for size_max.m4.
76143
76144 2005-07-11  Simon Josefsson  <jas@extundo.com>
76145
76146         * lib/size_max.h: New file.
76147
76148 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
76149
76150         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
76151         copyright symbol and the year.
76152         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
76153         (version_etc_va): Use parameterized copyright notice.
76154         Reword to conform to the current GNU coding standards.
76155
76156 2005-07-11  Karl Berry  <karl@gnu.org>
76157
76158         * doc/gnulib.texi (Quoting): new node.
76159         (Initial import): more info, from Patrice.
76160
76161 2005-07-11  Bruno Haible  <bruno@clisp.org>
76162
76163         * gnulib-tool (func_usage): Document option --avoid.
76164         (Command line options): Handle --avoid.
76165         (func_acceptable): New function.
76166         (func_modules_transitive_closure): Use it.
76167
76168 2005-07-11  Bruno Haible  <bruno@clisp.org>
76169
76170         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
76171         Reported by Jim Meyering.
76172
76173 2005-07-10  Bruno Haible  <bruno@clisp.org>
76174
76175         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
76176         Needed when size_t is smaller than 'unsigned int'.
76177         Reported by Paul Eggert.
76178
76179 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
76180
76181         * modules/argp (Depends-on): Add unlocked-io
76182
76183 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
76184
76185         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
76186         block of defines.
76187
76188 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
76189
76190         * config/srclist.txt: Comment out regcomp.c, since we have a porting
76191         fix now.
76192
76193 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
76194         and Paul Eggert  <eggert@cs.ucla.edu>
76195
76196         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
76197         in wint_t, not wchar_t.  Remove now-unnecessary cast.
76198
76199 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
76200
76201         * modules/regex (Files): Add lib/regex_internal.c,
76202         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
76203         (Depends-on): Add extensions.
76204         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
76205
76206 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
76207
76208         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
76209         pathconf.
76210         * m4/same.m4 (gl_SAME): Likewise.
76211         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
76212
76213         * m4/regex.m4: Adjust to new libc regex implementation.
76214         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
76215         all the .c and .h parts of (the new) regex.
76216         Quote the m4 stuff better.
76217         Check for RE_ICASE bug of old gnulib.
76218         Check for REG_STARTEND of recent libc.
76219         Rename local variables from jm_* to gl_*.
76220         Quote operand of "test -f".
76221         Say "recent enough" version of libc, not "version 2".
76222         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
76223         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
76224         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
76225         Remove check for btowc, isascii.
76226         Require AM_LANGINFO_CODESET.
76227
76228 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
76229
76230         * lib/regex.c, regex.h: Sync from libc.
76231         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
76232         * lib/regexec.c:
76233         New files, synced from libc, except that regex_internal.h
76234         currently has a small porting fix.
76235
76236 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
76237
76238         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
76239         regex_internal.c, regexec.c.
76240         Add regex_internal.h too, but as a comment, since the libc version
76241         is currently broken in gnulib mode.
76242
76243 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
76244
76245         Support programs like Emacs that use gnulib but not gettext.
76246         * MODULES.html.sh (Internationalization functions): Add gettext-h.
76247         * modules/gettext-h: New file.
76248         * modules/gettext (Files): Remove lib/gettext.h.
76249         (Depends-on): Add gettext-h.
76250         (Makefile.am): Remove lib_SOURCES.
76251         * modules/argmatch, modules/c-stack, modules/closeout:
76252         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
76253         * modules/execute, modules/file-type, modules/getaddrinfo:
76254         * modules/getopt, modules/human, modules/javacomp:
76255         * modules/javaexec, modules/mkdir-p, modules/obstack:
76256         * modules/openat, modules/pagealign_alloc, modules/pipe:
76257         * modules/quotearg, modules/regex, modules/rpmatch:
76258         * modules/unicodeio, modules/userspec, modules/version-etc:
76259         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
76260         * modules/xsetenv:
76261         Depend on gettext-h, not gettext.
76262
76263 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
76264
76265         * gnulib-tool (func_import): Add support for 'public domain' license.
76266         * modules/alloca, modules/atexit, modules/memmove:
76267         Now public domain, not GPL.
76268         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
76269         * modules/realloc, modules/strerror, modules/strtod:
76270         Now LGPL, not GPL.
76271
76272 2005-07-05  Bruno Haible  <bruno@clisp.org>
76273
76274         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
76275         autoconf CVS. Needed for mingw.
76276
76277 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
76278
76279         Remove the dependency of the strftime module on the tzset module.
76280         * modules/strftime (Depends-on): Remove dependency on tzset.
76281
76282 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
76283
76284         Remove the dependency of the strftime module on the tzset module.
76285         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
76286         gl_FUNC_TZSET_CLOBBER.
76287
76288 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
76289
76290         Remove the dependency of the strftime module on the tzset module.
76291         * lib/strftime.c (my_strftime)
76292         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
76293         Copy the input structure, to work around some of the bug with
76294         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
76295         Solaris releases, you should also use the tzset module, but we won't
76296         require it as a dependency any more since we don't want LGPLed code
76297         to depend on GPLed code.
76298
76299 2005-07-02  Jim Meyering  <jim@meyering.net>
76300
76301         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
76302         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
76303         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
76304         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
76305
76306 2005-07-02  Jim Meyering  <jim@meyering.net>
76307
76308         * lib/backupfile.c (backup_args): Change a `0' to NULL.
76309
76310 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
76311
76312         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
76313         declares only 'struct timespec;' (!).
76314
76315 2005-07-01  Jim Meyering  <jim@meyering.net>
76316
76317         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
76318         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
76319         * lib/save-cwd.c, tempname.c:
76320         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
76321         and don't include <sys/file.h>).
76322
76323 2005-06-29  Jim Meyering  <jim@meyering.net>
76324
76325         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
76326         type name.  Use the variable name instead.
76327         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
76328         Likewise.
76329
76330 2005-06-28  Simon Josefsson  <jas@extundo.com>
76331
76332         * modules/check-version (Files): Add check-version.m4.
76333
76334 2005-06-28  Simon Josefsson  <jas@extundo.com>
76335
76336         * m4/check-version.m4: New file, suggested by Jim Meyering
76337         <jim@meyering.net>.
76338
76339 2005-06-28  Simon Josefsson  <jas@extundo.com>
76340
76341         * lib/check-version.h, lib/check-version.c: New files.
76342
76343 2005-06-28  Simon Josefsson  <jas@extundo.com>
76344
76345         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
76346         collision with global variable.  Better indentation.  Don't
76347         increment buffer pointer beyond buffer end.  Based on comments
76348         from Paul Eggert <eggert@cs.ucla.edu>.
76349
76350         * lib/base64.h: Indent.
76351
76352 2005-06-28  Simon Josefsson  <jas@extundo.com>
76353
76354         * doc/gnulib.texi (Library version handling): New section.
76355
76356 2005-06-28  Jim Meyering  <jim@meyering.net>
76357
76358         * check-module (find_included_lib_files): Hard-code another
76359         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
76360         but modules/fts-lgpl (correctly) does not list those files.
76361
76362         * modules/canonicalize (Files): Add lib/pathmax.h.
76363
76364 2005-06-25  Simon Josefsson  <jas@extundo.com>
76365
76366         * modules/check-version: New file.
76367
76368 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
76369
76370         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
76371         initializer of struct addrinfo, as an indication that we don't
76372         care how many members the structure has.
76373
76374 2005-06-24  Derek Price  <derek@ximbiot.com>
76375         and Bruno Haible  <bruno@clisp.org>
76376
76377         Remove stat module & update lstat.
76378         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
76379         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
76380         * m4/stat.m4: Remove this file.
76381
76382 2005-06-24  Derek Price  <derek@ximbiot.com>
76383         and Bruno Haible  <bruno@clisp.org>
76384
76385         Remove stat module & update lstat.
76386         * lib/stat.c: Remove this file...
76387         (slash_aware_lstat): ...moving this content and its support...
76388         * lib/lstat.c (rpl_lstat): ...into here.
76389         * lib/lstat.h: New file.
76390
76391 2005-06-24  Derek Price  <derek@ximbiot.com>
76392         and Bruno Haible  <bruno@clisp.org>
76393
76394         Remove stat module & update lstat.
76395         * config/srclist.txt (libc sources): Remove stat.
76396
76397 2005-06-24  Derek Price  <derek@ximbiot.com>
76398         and Bruno Haible  <bruno@clisp.org>
76399
76400         Remove stat module & update lstat.
76401         * MODULES.html.sh (stat): Remove.
76402         * MODULES.html: Regenerated.
76403         * modules/lstat (Description): Correct function name.
76404         (Files): Add "lstat.h".
76405         (Depends-on): Remove stat, add xalloc, stat-macros.
76406         * modules/stat: Remove this file.
76407         (Include): Add "lstat.h", remove <sys/stat.h>.
76408
76409 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
76410
76411         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
76412         (ranged_convert): Don't save conversion in a temporary struct.
76413         This causes a warning with GCC 4.0.0, and anyway in the typical
76414         case it's not worth the extra 100 bytes or so of code.
76415         (ranged_convert, __mktime_internal): When calling a function via a
76416         pointer P, use P () rather than (*P) (), as we now assume C89 or
76417         better.
76418
76419 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
76420
76421         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
76422         "who -r" failed to give output.  Problem reported by Tim Waugh.
76423
76424         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
76425         (xcalloc): Use it to avoid needless tests.
76426         Problem reported by Jim Meyering.
76427
76428 2005-06-20  Derek Price  <derek@ximbiot.com>
76429
76430         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
76431         unnecessary for Autoconfs > 2.59c.
76432
76433 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
76434
76435         * lib/argp.h (__option_is_short): Check upper limit of
76436         __key. Isprint() requires its argument to have the value
76437         of an unsigned char or EOF.
76438
76439 2005-06-16  Jim Meyering  <jim@meyering.net>
76440
76441         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
76442         when either N or S is zero.
76443
76444 2005-06-16  Derek Price  <derek@ximbiot.com>
76445
76446         * m4/bison.m4: Declare YACC & YFLAGS precious.
76447
76448 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
76449
76450         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
76451         multibyte string or pattern, fall back on unibyte matching.
76452         Problem reported by James Youngman.
76453
76454 2005-06-08  Bruno Haible  <bruno@clisp.org>
76455
76456         * modules/csharpcomp: New file.
76457         * MODULES.html.sh (C#): Add csharpcomp.
76458
76459 2005-06-08  Bruno Haible  <bruno@clisp.org>
76460
76461         * m4/csharpcomp.m4: New file, from GNU gettext.
76462
76463 2005-06-08  Bruno Haible  <bruno@clisp.org>
76464
76465         * lib/csharpcomp.h: New file, from GNU gettext.
76466         * lib/csharpcomp.c: New file, from GNU gettext.
76467         * lib/csharpcomp.sh.in: New file, from GNU gettext.
76468
76469 2005-06-08  Bruno Haible  <bruno@clisp.org>
76470
76471         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
76472         warning on mingw.
76473
76474 2005-06-07  Derek Price  <derek@ximbiot.com>
76475
76476         Sync from CVS.
76477         * lib/glob_.h: Indent nested #ifdef.
76478
76479 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
76480
76481         Sync from coreutils.
76482         Use "file name" when talking about file names, instead of "filename"
76483         or "path", as per the GNU coding standards.
76484         * lib/mkdir-p.c: Renamed from makepath.c.
76485         (make_dir_parents): Renamed from make_path.  All callers changed.
76486         * lib/mkdir-p.h: Likewise.  All includers changed.
76487         * lib/filenamecat.c: Renamed from path-concat.c.
76488         (file_name_concat): Renamed from path_concat.  All callers changed.
76489         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
76490         * lib/filenamecat.h: Likewise.  All includers changed.
76491         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
76492         in comments or local variable names.
76493         * lib/basename.c: Likewise.
76494         * lib/canonicalize.c, canonicalize.h: Likewise.
76495         * lib/dirname.c, dirname.h: Likewise.
76496         * lib/euidaccess.c: Likewise.
76497         * lib/exclude.c: Likewise
76498         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
76499         * lib/fsusage.c, fsuage.h: Likewise.
76500         * lib/fts.c, fts_.h: Likewise.
76501         * lib/getcwd.c: Likewise.
76502         * lib/getloadavg.c: Likewise.
76503         * lib/mkstemp.c: Likewise.
76504         * lib/mountlist.c, mountlist.h: Likewise.
76505         * lib/openat.c, openat.h: Likewise.
76506         * lib/readlink-stub.c: Likewise.
76507         * lib/readutmp.c, readutmp.h: Likewise.
76508         * lib/rename.c: Likewise.
76509         * lib/rmdir.c: Likewise.
76510         * lib/same.c: Likewise.
76511         * lib/savedir.c: Likewise.
76512         * lib/stripslash.c: Likewise.
76513         * lib/tempname.c: Likewise.
76514         * lib/xreadlink.c: Likewise.
76515         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
76516         All uses changed.
76517         * lib/exclude.h: Likewise.
76518
76519         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
76520         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
76521         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
76522         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
76523         * lib/pathmax.h: Include <limits.h> unconditionally, since other
76524         files have been getting away with it for years (MORE/BSD 4.3
76525         is extinct now).
76526         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
76527         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
76528
76529         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
76530         Define to 256, not 255, as per modern POSIX.
76531
76532 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
76533
76534         Sync from coreutils.
76535         Use "file name" when talking about file names, instead of "filename"
76536         or "path", as per the GNU coding standards.
76537         * MODULES.html.sh: mkdir-p renamed from makepath.
76538         filenamecat renamed from path-concat.
76539         * modules/filenamecat: Renamed from modules/path-concat.
76540         (Files): filenamecat.h and filenamecat.c renamed from
76541         path-concat.h and path-concat.c.
76542         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
76543         (Include): filenamecat.h, not path-concat.h.
76544         * modules/mkdir-p: Renamed from modules/makepath.
76545         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
76546         makepath.c.
76547         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
76548         (Include): mkdir-p.h, not makepath.h.
76549
76550 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
76551
76552         Sync from coreutils.
76553         * m4/mkdir-p.m4: Renamed from makepath.m4.
76554         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
76555         Rename files from makepath.c to mkdir-p.c, and from
76556         makepath.h to mkdir-p.h.
76557         * m4/filenamecat.m4: Renamed from path-concat.m4.
76558         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
76559         Rename files from path-concat.c to filenamecat.c,
76560         and from path-concat.h to filenamecat.h.
76561         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
76562         "file name" in local variables or comments.
76563         * m4/rename.m4: Likewise.
76564
76565 2005-06-01  Bruno Haible  <bruno@clisp.org>
76566
76567         * modules/csharpexec: New file.
76568         * MODULES.html.sh (C#): New section.
76569
76570 2005-06-01  Bruno Haible  <bruno@clisp.org>
76571
76572         * m4/csharp.m4: New file, from GNU gettext.
76573         * m4/csharpexec.m4: New file, from GNU gettext.
76574
76575 2005-06-01  Bruno Haible  <bruno@clisp.org>
76576
76577         * lib/csharpexec.h: New file, from GNU gettext.
76578         * lib/csharpexec.c: New file, from GNU gettext.
76579         * lib/csharpexec.sh.in: New file, from GNU gettext.
76580
76581 2005-05-31  Derek Price  <derek@ximbiot.com>
76582             Paul Eggert  <eggert@cs.ucla.edu>
76583
76584         Sync from cvs.
76585         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
76586
76587 2005-05-31  Derek Price  <derek@ximbiot.com>
76588             Paul Eggert  <eggert@cs.ucla.edu>
76589
76590         Sync from cvs.
76591         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
76592
76593 2005-05-29  Derek Price  <derek@ximbiot.com>
76594
76595         * config/srclist.txt (glob_.h, glob.c): Add these files.
76596
76597 2005-05-29  Derek Price  <derek@ximbiot.com>
76598
76599         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
76600         * modules/glob: New file.
76601         * modules/getlogin_r: Add link to POSIX spec in description.
76602
76603 2005-05-29  Derek Price  <derek@ximbiot.com>
76604             Paul Eggert  <eggert@cs.ucla.edu>
76605
76606         * m4/glob.m4: New file.
76607
76608 2005-05-29  Derek Price  <derek@ximbiot.com>
76609             Paul Eggert  <eggert@cs.ucla.edu>
76610
76611         * lib/glob_.h, lib/glob.c: New files.
76612
76613 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
76614
76615         * modules/fts (Files): Remove m4/inttypes-pri.m4.
76616         * modules/fts-lgpl (Depends-on): Remove gettext.
76617
76618 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
76619
76620         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
76621         and don't require gt_INTTYPES_PRI.
76622
76623 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
76624
76625         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
76626
76627         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
76628         the configuration hassle isn't worth it.
76629         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
76630         (LONGEST_MODIFIER, PRIuMAX): Remove.
76631
76632 2005-05-27  Bruno Haible  <bruno@clisp.org>
76633
76634         * lib/getlogin_r.h: Remove second include of <stddef.h>.
76635
76636 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
76637
76638         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
76639         _POSIX_PTHREAD_SEMANTICS for Solaris.
76640
76641 2005-05-25  Derek Price  <derek@ximbiot.com>
76642
76643         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
76644
76645 2005-05-25  Derek Price  <derek@ximbiot.com>
76646             Paul Eggert  <eggert@cs.ucla.edu>
76647
76648         * modules/getlogin_r, m4/getlogin_r.m4: New files.
76649         * lib/getlogin_r.c, getlogin_r.h: New files.
76650
76651 2005-05-25  Bruno Haible  <bruno@clisp.org>
76652             Derek Price  <derek@ximbiot.com>
76653
76654         * lib/getlogin_r.h: Simplify API documentation.
76655
76656 2005-05-23  Derek Price  <derek@ximbiot.com>
76657
76658         * modules/minmax (Files): Add m4/minmax.m4.
76659         (configure.ac): Add gl_MINMAX.
76660
76661 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
76662
76663         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
76664         so that unistd-safer.h (GPL'ed code) need not be included.
76665
76666 2005-05-22  Bruno Haible  <bruno@clisp.org>
76667
76668         * m4/minmax.m4: New file.
76669         Based on a patch by Derek Price <derek@ximbiot.com>.
76670
76671 2005-05-22  Bruno Haible  <bruno@clisp.org>
76672
76673         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
76674         (INT64_MIN): Fix definition.
76675         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
76676
76677         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
76678         NEED_SIGNED_INT_TYPES.
76679
76680         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
76681         HAVE_SYSTEM_INTTYPES.
76682
76683 2005-05-22  Bruno Haible  <bruno@clisp.org>
76684
76685         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
76686         Also include <sys/param.h> if it defines MIN, MAX.
76687         Based on a patch by Derek Price <derek@ximbiot.com>.
76688
76689 2005-05-21  Jim Meyering  <jim@meyering.net>
76690
76691         * modules/fts (Files): Add m4/inttypes-pri.m4.
76692         (Depends-on): Add lstat and remove gettext.  Alphabetize.
76693
76694 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
76695
76696         New fts module.
76697         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
76698         (setup_dir, free_dir): New functions.
76699         (enter_dir, leave_dir): Define trivial
76700         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
76701         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
76702         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
76703         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
76704         Move to fts-cycle.c.
76705         (fts_open): Use setup_dir.
76706         (fts_close): Use free_dir.
76707         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
76708         This adds a label and some gotos, but the alternatives were messier.
76709         Check for memory allocation failure when entering a dir.
76710         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
76711         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
76712         (FTS): New member fts_cycle, that is a union that contains the
76713         old active_dir_ht and cycle_state.  All uses changed to mention
76714         fts_cycle.ht and fts_cycle.state.
76715         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
76716         fts.c, with the following changes:
76717         (setup_dir, free_dir): New functions.
76718         (enter_dir): Now returns bool.  Return true if successful, false
76719         if memory exhausted.  All callers changed.
76720         Do not bother partly cleaning up on
76721         memory allocation failure; that is free_dir's job.
76722         However, free ad if hash_insert fails, to avoid memory leak.
76723         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
76724         fts->fts_options to see which union member to use.
76725
76726 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
76727
76728         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
76729         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
76730
76731 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
76732
76733         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
76734
76735 2005-05-20  Jim Meyering  <jim@meyering.net>
76736
76737         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
76738         Now a macro, to pacify GCC.
76739
76740 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
76741
76742         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
76743         of -1.
76744
76745 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
76746
76747         * lib/chown.c (rpl_chown): Return -1 on failure.
76748
76749 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
76750
76751         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
76752         Don't check for stddef.h.
76753         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
76754         don't use its results.
76755         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
76756         since we include them unconditionally.  Don't require
76757         AM_STDBOOL_H, since stdbool is a prerequisite.
76758         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
76759         since we assume C89 or better.
76760         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
76761         as we don't use their results.
76762         Don't check for fchdir, memmove, memset, strrchr, as we use
76763         them unconditionally.
76764         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
76765         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
76766
76767 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
76768
76769         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
76770         Include <stddef.h> unconditionally, since we assume C89 now.
76771         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
76772         * lib/fts.c: Include fts_.h first, to check interface.
76773         Do not include intprops.h; no longer needed.
76774         Include cycle-check.h and hash.h, since fts_.h no longer does.
76775         Remove unnecessary casts of closedir to void.
76776         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
76777         decide whether to decrement nlinks.
76778         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
76779         (FTS): Use struct hash_table * instead of Hash_table, so that
76780         we no longer need to include hash.h here.
76781
76782 2005-05-18  Jim Meyering  <jim@meyering.net>
76783
76784         * modules/dirfd (License): Change to LGPL.  Most of the code
76785         is already in the public domain.
76786
76787 2005-05-18  Jim Meyering  <jim@meyering.net>
76788
76789         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
76790         Reported by Yoann Vandoorselaere.
76791
76792 2005-05-17  Jim Meyering  <jim@meyering.net>
76793
76794         * m4/fts.m4: New file, from coreutils.
76795
76796 2005-05-17  Jim Meyering  <jim@meyering.net>
76797
76798         * lib/fts.c, lib/fts_.h: New files, from coreutils.
76799
76800 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
76801
76802         Sync from coreutils.
76803         * m4/unlinkdir.m4: New file.
76804
76805 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
76806
76807         Sync from coreutils.
76808         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
76809         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
76810         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
76811         White space changes only.
76812         * lib/makepath.c (make_path): Port to hosts where leading "//" is
76813         special.
76814         * lib/yesno.c: Include getline.h, not ctype.h.
76815         (yesno): Don't remove leading white space; POSIX doesn't allow it.
76816         Use getline to remove arbitrary restriction on response length.
76817
76818 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
76819
76820         * config/srclist-update: Spell out "Street" in FSF postal
76821         mail address; this is the style the FSF seems to prefer.
76822
76823         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
76824         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
76825         this updates FSF postal mail address.
76826
76827         Sync from coreutils.
76828         * modules/unlinkdir: New file.
76829         * modules/yesno (Depends-on): Add getline.
76830         * MODULES.html.sh (File system functions): Add unlinkdir.
76831
76832 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
76833
76834         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
76835         lib/strsep.h:
76836         Change the initial comment to refer to GPL, not LGPL.
76837         gnulib-tool will change it to LGPL as needed.
76838
76839         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
76840         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
76841         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
76842         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
76843         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
76844         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
76845         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
76846         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
76847         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
76848         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
76849         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
76850         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
76851         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
76852         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
76853         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
76854         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
76855         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
76856         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
76857         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
76858         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
76859         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
76860         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
76861         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
76862         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
76863         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
76864         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
76865         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
76866         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
76867         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
76868         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
76869         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
76870         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
76871         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
76872         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
76873         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
76874         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
76875         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
76876         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
76877         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
76878         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
76879         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
76880         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
76881         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
76882         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
76883         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
76884         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
76885         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
76886         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
76887         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
76888         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
76889         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
76890         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
76891         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
76892         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
76893         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
76894         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
76895         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
76896         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
76897         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
76898         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
76899         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
76900         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
76901         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
76902         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
76903         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
76904         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
76905         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
76906         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
76907         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
76908         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
76909         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
76910         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
76911         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
76912         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
76913         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
76914         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
76915         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
76916         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
76917         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
76918         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
76919         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
76920         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
76921         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
76922         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
76923         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
76924         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
76925         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
76926         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
76927         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
76928         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
76929         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
76930         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
76931         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
76932         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
76933         lib/yesno.c, lib/yesno.h:
76934         Update FSF postal mail address.
76935
76936 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
76937
76938         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
76939         tests/test-memmem.c, tests/test-stpncpy.c:
76940         Update FSF postal mail address.
76941
76942 2005-05-13  Bruno Haible  <bruno@clisp.org>
76943
76944         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
76945         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
76946         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
76947         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
76948         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
76949         Add support for 64-bit integers in the MSVC compiler.
76950
76951 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
76952
76953         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
76954
76955 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
76956
76957         * gnulib-tool (func_import): Sort and uniquify recommended includes.
76958
76959 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
76960
76961         * doc/getdate.texi (General date syntax): Don't say that date
76962         date --iso-8601=ns generates acceptable dates; it doesn't yet.
76963         Problem reported by Nic Ferrier.
76964
76965 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
76966
76967         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
76968         specified in ai_socktype. Fix invalid ai_protocol
76969         check. ai_protocol is usually set to 0 or depending on
76970         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
76971         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
76972         ai_socktype / ai_protocol in the returned addrinfo structure.
76973
76974 2005-05-10  Simon Josefsson  <jas@extundo.com>
76975
76976         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
76977         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
76978
76979 2005-05-10  Karl Berry  <karl@gnu.org>
76980
76981         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
76982         (from http://www.gnu.org/licenses).
76983         * doc/COPYING.LIB: also rename to COPYING.LESSER.
76984         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
76985         fdl.texi suffices.
76986
76987 2005-05-10  Karl Berry  <karl@gnu.org>
76988
76989         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
76990         (COPYING.DOC): remove.
76991
76992         * config/srclist-update: new FSF address.
76993
76994 2005-05-10  Derek Price  <derek@ximbiot.com>
76995
76996         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
76997         possible.
76998
76999 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
77000             Bruno Haible  <bruno@clisp.org>
77001
77002         * modules/inet_ntop: New file.
77003         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
77004         inet_ntop.
77005
77006 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
77007             Bruno Haible  <bruno@clisp.org>
77008
77009         * m4/inet_ntop.m4: New file.
77010
77011 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
77012             Bruno Haible  <bruno@clisp.org>
77013
77014         * lib/inet_ntop.h: New file.
77015         * lib/inet_ntop.c: New file, from glibc with modifications.
77016
77017 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
77018
77019         * modules/time_r (License): Change to LGPL.
77020         * modules/extensions (License): Change to LGPL.  Actually,
77021         the license is more permissive than that, but currently gnulib-tool
77022         doesn't know how to handle more-permissive licenses.
77023
77024         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
77025         Problem reported by Dave Love.
77026
77027 2005-05-08  Jim Meyering  <jim@meyering.net>
77028
77029         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
77030         blank.
77031
77032 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
77033
77034         * modules/argmatch (Depends-on): Add stdbool.
77035         * modules/backupfile (Depends-on): Likewise.
77036         * modules/chdir-long (Depends-on): Likewise.
77037         * modules/closeout (Depends-on): Likewise.
77038         * modules/cycle-check (Depends-on): Likewise.
77039         * modules/dirname (Depends-on): Likewise.
77040         * modules/fnmatch (Depends-on): Likewise.
77041         * modules/fsusage (Depends-on): Likewise.
77042         * modules/fwriteerror (Depends-on): Likewise.
77043         * modules/getcwd (Depends-on): Likewise.
77044         * modules/getloadavg (Depends-on): Likewise.
77045         * modules/hard-locale (Depends-on): Likewise.
77046         * modules/makepath (Depends-on): Likewise.
77047         * modules/mountlist (Depends-on): Likewise.
77048         * modules/nanosleep (Depends-on): Likewise.
77049         * modules/posixtm (Depends-on): Likewise.
77050         * modules/quotearg (Depends-on): Likewise.
77051         * modules/readtokens (Depends-on): Likewise.
77052         * modules/readtokens0 (Depends-on): Likewise.
77053         * modules/readutmp (Depends-on): Likewise.
77054         * modules/save-cwd (Depends-on): Likewise.
77055         * modules/strftime (Depends-on): Likewise.
77056         * modules/userspec (Depends-on): Likewise.
77057         * modules/utimecmp (Depends-on): Likewise.
77058         * modules/xgetcwd (Depends-on): Likewise.
77059         * modules/xnanosleep (Depends-on): Likewise.
77060         * modules/xstrtod (Depends-on): Likewise.
77061         * modules/yesno (Depends-on): Likewise.
77062
77063 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
77064
77065         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
77066         needless checks.
77067
77068 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
77069
77070         Merge from coreutils.  Among other things,
77071         add bulletproofing for cases where stdin, stdout, or stderr are closed.
77072         * lib/fd-safer.c: New file.
77073         * lib/fcntl-safer.h, open-safer.c: Remove.
77074         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
77075         * lib/dup-safer.c: Include unistd-safer.h first.
77076         Don't include errno.h.
77077         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
77078         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
77079         * lib/file-type.c: Rely on file-type.h change.
77080         * lib/getloadavg.c: Include unistd-safer.h.
77081         (getloadavg): Use safer open.
77082         * lib/getusershell.c: Include "stdio-safer.h".
77083         (getusershell): Use safer fopen.
77084         * lib/long-options.c (long_options): Use NULL rather than 0.
77085         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
77086         'free'.
77087         * lib/modechange.c: Likewise.
77088         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
77089         (MODE_DONE): New constant.
77090         (struct mode_change): Remove 'next' member.
77091         (make_node_op_equals): New function; like the old one of the
77092         same name, except it allocates an array.
77093         (mode_compile, mode_create_from_ref): Use it.
77094         (mode_compile): Allocate result as an array, not a linked list.
77095         Parse octal string ourself, so that we catch mistakes like "+0".
77096         (mode_adjust): Arg is an array, not a linked list.
77097         * lib/modechange.c: Include stat-macros.h, xalloc.h.
77098         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
77099         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
77100         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
77101         Remove.  This is now stat-macros.h's job.
77102         (talloc): Remove.  All callers replaced by xalloc, so that
77103         our invokers don't have to worry about reporting memory failures.
77104         (make_node_op_equals): Remove.
77105         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
77106         New constants.
77107         (struct mode_change): Moved here from modechange.h.
77108         (mode_append_entry): Remove.
77109         (mode_compile): Remove MASKED_OPS arg, since it encouraged
77110         apps to have incorrect behavior.  Use simpler algorithm for head
77111         and tail.  Don't futz with umask; that's now the job of mode_adjust.
77112         Detect more invalid usages rather than having somewhat-random behavior.
77113         Don't insert an "a=" action, as that leads to incorrect behavior.
77114         (mode_compile, mode_create_from_ref): Return NULL on error instead
77115         of an enum, since now there's only one way to have an error.  All
77116         callers changed.
77117         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
77118         at the correct time.  Simplify calculation of "+u" and its ilk.
77119         Don't mishandle "+X".
77120         (mode_free): Remove "register" and localize decls.
77121         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
77122         (struct mode_change): Move to modechange.c; callers don't
77123         need to see this stuff.
77124         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
77125         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
77126         (mode_change, mode_adjust): Reflect the new signatures noted above.
77127         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
77128         that might redefine system include files.
77129         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
77130         (my_usleep): Use NULL rather than (void *) 0.
77131         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
77132         Use siginterrupt to specify that system calls should be interrupted.
77133         (rpl_nanosleep): Move initialization of suspended closer to call of
77134         my_usleep.
77135         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
77136         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
77137         (desirable_utmp_entry): New function.
77138         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
77139         using x2nrealloc, to simplify logic.
77140         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
77141         size calculation.  Do not assume utmp file is a regular file.
77142         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
77143         (READ_UTMP_CHECK_PIDS): New constant.
77144         * lib/save-cwd.c: Include unistd-safer.h.
77145         (save_cwd): Use fd_safer.
77146         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
77147         [!_LIBC] Include "stat-macros.h" instead.
77148         * lib/unistd-safer.h (fd_safer): New decl.
77149
77150 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
77151
77152         * modules/getloadavg (Depends-on): Add unistd-safer.
77153         * modules/getusershell (Depends-on): Add stdio-safer.
77154         * modules/lstat (Depends-on): Remove xalloc.
77155         * modules/mkstemp (Depends-on): Add stat-macros.
77156         * modules/modechange (Depends-on): Remove xstrtol.
77157         Add stat-macros, xalloc.
77158         * modules/save-cwd (Depends-on): Add unistd-safer.
77159         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
77160         * modules/unistd-safer (Files): Add lib/fd-safer.c
77161         (Makefile.am): Remove lib_SOURCES.
77162
77163         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
77164         Remove fcntl-safer; unistd-safer supersedes it.
77165
77166 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
77167
77168         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
77169         AC_HEADER_STAT.
77170         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
77171         (gl_PREREQ_CHOWN): Remove.
77172         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
77173         it.  Don't require AC_HEADER_STAT.
77174         (gl_PREREQ_LSTAT): Remove.
77175         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
77176         Don't require AC_HEADER_STAT.
77177         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
77178         (gl_PREREQ_RMDIR): Remove.
77179         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
77180         mention stat-macros.h or AC_HEADER_STAT, since we'll make
77181         the stat-macros module a prerequisite.
77182         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
77183         * m4/filemode.m4 (gl_FILEMODE): Likewise.
77184         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
77185         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
77186         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
77187         variable names.
77188         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
77189         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
77190         variable prefixes.
77191         * m4/fcntl-safer.m4: Remove.
77192         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
77193         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
77194         Invoke gl_PREREQ_FD_SAFER.
77195         (gl_PREREQ_FD_SAFER): New macro.
77196         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
77197         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
77198         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
77199         Remove duplicate call to AC_LIBOBJ(readutmp).
77200         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
77201
77202         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
77203         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
77204
77205 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
77206
77207         * MODULES.html.sh (Misc): Add byteswap.
77208
77209 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
77210
77211         * modules/getcwd (Depends-on): Add extensions.
77212         * modules/openat (Depends-on): Likewise.
77213
77214 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
77215
77216         * modules/byteswap: New file.
77217
77218 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
77219
77220         * m4/byteswap.m4: New file.
77221
77222 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
77223
77224         * lib/byteswap_.h: New file.
77225
77226 2005-04-25  Karl Berry  <karl@gnu.org>
77227
77228         * m4/gettext.m4: Update from GNU gettext 0.14.4.
77229
77230 2005-04-25  Albert Chin  <china@thewrittenword.com>
77231
77232         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
77233         Toolkit C bug.
77234
77235 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
77236
77237         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
77238         (func_ln_if_changed): Remove forcibly for no error message
77239         in case file does not exist.
77240
77241 2005-04-19  Simon Josefsson  <jas@extundo.com>
77242
77243         * gnulib-tool (Options): Make --symlink mean --symbolic.
77244
77245 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
77246
77247         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
77248
77249 2005-04-16  Simon Josefsson  <jas@extundo.com>
77250
77251         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
77252
77253 2005-04-15  Simon Josefsson  <jas@extundo.com>
77254
77255         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
77256
77257 2005-04-15  Simon Josefsson  <jas@extundo.com>
77258
77259         * gnulib-tool: Rename --symlink to --symbolic.
77260
77261 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
77262
77263         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
77264         symbolic links to files instead of copying/moving.  Add --aux-dir,
77265         specifying directory relative --dir where auxiliary build tools
77266         are placed.
77267
77268 2005-04-14  Bruno Haible  <bruno@clisp.org>
77269
77270         * modules/allocsa (License): Change to LGPL.
77271         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
77272
77273 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
77274
77275         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
77276         that "UTC +1 second" continues to work.  Problem reported
77277         by Dmitry V. Levin.
77278         (relunit_snumber): New rule.
77279         (relunit): Use it.
77280
77281 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
77282
77283         * lib/getdate.y (universal_time_zone_table): New constant.
77284         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
77285         universal_time_zone_table.
77286         (lookup_zone): Prefer universal_time_zone_table to
77287         local_time_zone_table, so that "GMT" time stamps are allowed in
77288         London during the summer.  Problem reported by Ian Abbott.
77289
77290 2005-04-12  Jim Meyering  <jim@meyering.net>
77291
77292         * lib/human.c (humblock): Set *options even when returning due to
77293         xstrtoumax conversion failure.  Thanks to a used-uninitialized
77294         warning from gcc-4.
77295
77296 2005-04-09  Jim Meyering  <jim@meyering.net>
77297
77298         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
77299         -Wuninitialized: initialize tm0.tm_year.
77300
77301 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
77302
77303         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
77304         count, since there's no maximum.  All uses changed.
77305         Add member dsts_seen.
77306         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
77307         not being INT_MAX.
77308         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
77309         Use pc_rels_seen to decide whther a date is absolute.
77310
77311         * lib/getdate.y (number): Don't overwrite year.
77312         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
77313         check.
77314
77315 2005-04-02  Simon Josefsson  <jas@extundo.com>
77316
77317         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
77318         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
77319
77320 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
77321
77322         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
77323         where no absolute path name can be longer than PATH_MAX.
77324
77325 2005-03-27  Jim Meyering  <jim@meyering.net>
77326
77327         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
77328
77329 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
77330
77331         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
77332         "one's complement" -> "ones' complement" in comment, as per Knuth.
77333         "value of type" -> "type or expression" in comment.
77334         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
77335
77336 2005-03-26  Jim Meyering  <jim@meyering.net>
77337
77338         Comment nits.
77339         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
77340         Correct typos: s/or/of/.
77341
77342 2005-03-26  Jim Meyering  <jim@meyering.net>
77343
77344         * modules/check-include-files: Move to ../ and rename to...
77345         * check-module: ...this.
77346
77347 2005-03-25  Jim Meyering  <jim@meyering.net>
77348
77349         * modules/xvasprintf (Files): Add xalloc.h.
77350
77351 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
77352
77353         * modules/gettext (Files): config/config.rpath ->
77354         build-aux/config.rpath
77355         * modules/iconv (Files): Likewise.
77356         Problem reported by Oskar Liljeblad.
77357
77358 2005-03-23  Jim Meyering  <jim@meyering.net>
77359
77360         * modules/check-include-files: New script to check for
77361         missing dependencies, multiple includes, etc.
77362
77363         * modules/c-strtold (Depends-on): Add xalloc.
77364         * modules/c-strtod (Depends-on): Add xalloc.
77365         * modules/hash (Depends-on): Add xalloc.
77366         (Files): Remove lib/xalloc.h.
77367
77368         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
77369         * modules/userspec (Files): Add lib/inttostr.h.
77370
77371 2005-03-23  Jim Meyering  <jim@meyering.net>
77372
77373         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
77374
77375 2005-03-22  Jim Meyering  <jim@meyering.net>
77376
77377         * modules/stat-macros: New module.
77378         * modules/canonicalize, modules/euidaccess, modules/file-type,
77379         * modules/filemode, modules/lchown, modules/makepath,
77380         * modules/rmdir, modules/stat: Depend on new stat-macros module
77381         rather than listing lib/stat-macros.h manually.
77382         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
77383
77384 2005-03-22  Jim Meyering  <jim@meyering.net>
77385
77386         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
77387
77388 2005-03-22  Bruno Haible  <bruno@clisp.org>
77389
77390         * config/srclist.txt: Replace target directory 'config' with
77391         'build-aux'.
77392         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
77393         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
77394         ../build-aux/.
77395
77396 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
77397
77398         * modules/chdir-long (Depends-on): Add mempcpy.
77399
77400         * modules/acl, modules/backupfile, modules/c-strtod,
77401         modules/c-strtold, modules/canon-host, modules/canonicalize,
77402         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
77403         modules/exclude, modules/exitfail, modules/file-type,
77404         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
77405         modules/getdate, modules/getline, modules/getpagesize,
77406         modules/getpass, modules/getugroups, modules/group-member,
77407         modules/hard-locale, modules/hash, modules/human, modules/idcache,
77408         modules/inttostr, modules/long-options, modules/makepath,
77409         modules/md5, modules/memcasecmp, modules/memcoll,
77410         modules/modechange, modules/mountlist, modules/path-concat,
77411         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
77412         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
77413         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
77414         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
77415         modules/strftime, modules/strndup, modules/strverscmp,
77416         modules/timespec, modules/unlocked-io, modules/userspec,
77417         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
77418         modules/yesno:
77419         Remove lib_SOURCES line from Makefile.am section, as this is now
77420         done automatically by the corresponding Autoconf macro.
77421
77422 2005-03-21  Jim Meyering  <jim@meyering.net>
77423
77424         Changes imported from coreutils.
77425
77426         * lib/cycle-check.c: Don't include xalloc.h.
77427
77428         * lib/path-concat.c: Don't include assert.h.
77429         (path_concat): Remove assertion that would have triggered
77430         for ABASE starting with more than one slash.
77431         Reported by Andreas Schwab.
77432
77433         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
77434         properly when ABASE is an absolute file name.
77435         Correct the description of this function.
77436         Include <assert.h>.
77437         Add an assertion and a test driver.
77438         This fixes a bug introduced on 2004-07-02.
77439         Andreas Schwab reported the resulting failure of cp --parents:
77440         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
77441
77442 2005-03-21  Jim Meyering  <jim@meyering.net>
77443
77444         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
77445         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
77446
77447 2005-03-21  Jim Meyering  <jim@meyering.net>
77448         and  Paul Eggert  <eggert@cs.ucla.edu>
77449
77450         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
77451         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
77452         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
77453         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
77454         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
77455         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
77456         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
77457         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
77458         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
77459         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
77460         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
77461         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
77462         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
77463         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
77464         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
77465         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
77466         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
77467         for these modules.
77468
77469 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
77470
77471         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
77472         (which shouldn't happen), generate nothing instead of returning 0
77473         immediately, so that nstrftime (NULL, ...) doesn't return 0.
77474
77475 2005-03-16  Bruno Haible  <bruno@clisp.org>
77476
77477         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
77478         HAVE_LONGLONG_64BIT.
77479
77480 2005-03-16  Bruno Haible  <bruno@clisp.org>
77481
77482         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
77483         HAVE_LONGLONG_64BIT.
77484
77485 2005-03-16  Bruno Haible  <bruno@clisp.org>
77486
77487         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
77488         HAVE_LONGLONG_64BIT.
77489
77490 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
77491
77492         * lib/strftime.c (my_strftime): Prepend space to format so that we can
77493         reliably distinguish strftime failure from empty output on POSIX
77494         hosts.
77495
77496 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
77497
77498         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
77499         (iconv_string): Don't guess a size-zero buffer, as that might cause
77500         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
77501         result would be 'too large', where 'too large' is (heuristically)
77502         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
77503         overflow concerns.  This will prevent some unwanted malloc failures
77504         when the inputs are very large.
77505
77506 2005-03-15  Karl Berry  <karl@gnu.org>
77507
77508         * config/srclist.txt (config.rpath): from gettext.
77509         * config/config.rpath: update.
77510
77511 2005-03-15  Bruno Haible  <bruno@clisp.org>
77512
77513         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
77514         to 'negate'.
77515
77516         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
77517         variable.
77518
77519         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
77520         results.
77521
77522 2005-03-14  Simon Josefsson  <jas@extundo.com>
77523
77524         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
77525         <fx@gnu.org>.
77526
77527 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
77528
77529         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
77530         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
77531         intprops.h.
77532         * lib/strtol.c: Likewise.
77533
77534 2005-03-14  Jim Meyering  <jim@meyering.net>
77535
77536         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
77537         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
77538         to be nonzero so that we (and caller) can detect the difference
77539         between a valid zero-length expansion and an error return, even
77540         when the underlying strftime fails before writing anything into
77541         that location.
77542
77543 2005-03-14  Bruno Haible  <bruno@clisp.org>
77544
77545         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
77546         Update from GNU gettext 0.14.3.
77547
77548 2005-03-10  Jim Meyering  <jim@meyering.net>
77549
77550         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
77551
77552 2005-03-10  Jim Meyering  <jim@meyering.net>
77553
77554         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
77555         so that this module works on systems without fchdir.
77556
77557 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
77558
77559         Factor int-properties macros into a single file, except for
77560         glibc-related files.
77561         * lib/intprops.h: New file.
77562         * lib/getloadavg.c: Include it instead of limits.h.
77563         (INT_STRLEN_BOUND): Remove.
77564         * lib/human.c: Include intprops.h.
77565         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
77566         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
77567         302/1000.
77568         * lib/inttostr.h: Include intprops.h instead of limits.h.
77569         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
77570         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
77571         for consistency with intprops.h.
77572         (time_t_is_integer, twos_complement_arithmetic): Use them.
77573         * lib/sig2str.h: Include <signal.h>, intprops.h.
77574         (INT_STRLEN_BOUND): Remove.
77575         * lib/strftime.c (TYPE_SIGNED): Remove.
77576         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
77577         * lib/strtol.c: Adjust comments to match intprops.h.
77578         * lib/userspec.c: Include intprops.h.
77579         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
77580         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
77581         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
77582         instead of rolling our own expressions.
77583         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
77584
77585         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
77586         instead of int.
77587         (my_strftime): Do not mishandle years close to INT_MAX, by doing
77588         the right thing even if adding 1900 would overflow.  Similarly
77589         for tm_mon + 1 and tm_yday + 1.
77590         Make %Y always equivalent to %C%y, and similarly for %G and %g.
77591         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
77592         (DO_SIGNED_NUMBER): New macro.
77593         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
77594
77595 2005-03-07  Bruno Haible  <bruno@clisp.org>
77596
77597         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
77598
77599 2005-03-07  Bruno Haible  <bruno@clisp.org>
77600
77601         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
77602
77603 2005-03-04  Derek R. Price  <derek@ximbiot.com>
77604
77605         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
77606         (func_import): Only replace files via --import when they have actually
77607         changed.
77608
77609 2005-03-03  Derek R. Price  <derek@ximbiot.com>
77610
77611         * m4/mmap-anon.m4: New file.
77612         * m4/pagealign_alloc.m4: New file.
77613
77614 2005-03-03  Derek R. Price  <derek@ximbiot.com>
77615             Bruno Haible  <bruno@clisp.org>
77616
77617         * modules/pagealign_alloc: New file.
77618         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
77619
77620 2005-03-03  Derek R. Price  <derek@ximbiot.com>
77621             Bruno Haible  <bruno@clisp.org>
77622
77623         * lib/pagealign_alloc.h: New file.
77624         * lib/pagealign_alloc.c: New file.
77625
77626 2005-03-03  Bruno Haible  <bruno@clisp.org>
77627
77628         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
77629         Use an all-permissive copyright notice, recommended by RMS.
77630
77631 2005-03-02  Bruno Haible  <bruno@clisp.org>
77632
77633         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
77634         of AIX, the replacement has to be done only after <string.h> is
77635         included, therefore not in config.h. stpncpy.h does the replacement,
77636         and stpncpy.c uses it.
77637
77638 2005-03-02  Bruno Haible  <bruno@clisp.org>
77639
77640         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
77641         stpncpy.c uses it.
77642
77643 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
77644
77645         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
77646         The workaround isn't strictly needed for POSIX conformance, and
77647         it's too much of a pain to configure and maintain.  We'll ask
77648         people to fix their kernels instead.
77649         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
77650         (NANOSLEEP_BUG_WORKAROUND): Remove.
77651         (xnanosleep): Remove the workaround.
77652
77653 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
77654
77655         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
77656         Reported by Derek Price.
77657         (Include): Add "timespec.h".
77658
77659         * modules/xnanosleep (Depends-on): Remove gethrxtime.
77660
77661 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
77662
77663         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
77664         to detect nanosleep bug.
77665
77666 2005-03-01  Bruno Haible  <bruno@clisp.org>
77667
77668         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
77669
77670 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
77671
77672         * modules/gethrxtime: New file.
77673         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
77674         (Depends-on): Add gethrxtime.
77675         (configure.ac): Add gl_XNANOSLEEP.
77676         (Makefile.am): Remove lib_SOURCES line.
77677
77678 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
77679
77680         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
77681         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
77682
77683 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
77684
77685         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
77686         * lib/timespec.h (gettime): Return void, since it always
77687         succeeds now.  All uses changed.
77688         * lib/gettime.c (gettime): Likewise.
77689         [HAVE_NANOTIME]: Prefer nanotime.
77690         Assume gettimeofday succeeds, as POSIX requires.
77691         Assime time () succeeds, since other code already does.
77692         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
77693         (timespec_subtract): Remove.
77694         (NANOSLEEP_BUG_WORKAROUND): New constant.
77695         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
77696         things considerably.  Use it only on GNU/Linux hosts, since the
77697         workaround shouldn't be needed elsewhere.
77698
77699 2005-02-24  Bruno Haible  <bruno@clisp.org>
77700
77701         * modules/gettext (Files): Add m4/glibc2.m4.
77702
77703 2005-02-24  Bruno Haible  <bruno@clisp.org>
77704
77705         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
77706         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
77707         * m4/progtest.m4:
77708         Update from GNU gettext 0.14.2.
77709         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
77710
77711 2005-02-24  Bruno Haible  <bruno@clisp.org>
77712
77713         * lib/localcharset.c: Update from GNU gettext 0.14.2.
77714         * lib/config.charset: Update from GNU gettext 0.14.2.
77715
77716 2005-02-24  Bruno Haible  <bruno@clisp.org>
77717
77718         * lib/gettext.h: Update from GNU gettext 0.14.2.
77719
77720 2005-02-23  Simon Josefsson  <jas@extundo.com>
77721
77722         * m4/iconvme.m4: New file.
77723
77724 2005-02-23  Jim Meyering  <jim@meyering.net>
77725
77726         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
77727         change.
77728         Thanks to Bruno Haible for catching it.
77729
77730 2005-02-22  Simon Josefsson  <jas@extundo.com>
77731
77732         * modules/iconvme: New file.
77733
77734         * MODULES.html.sh: Add iconvme.
77735
77736 2005-02-22  Simon Josefsson  <jas@extundo.com>
77737
77738         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
77739
77740 2005-02-22  Simon Josefsson  <jas@extundo.com>
77741
77742         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
77743
77744 2005-02-22  Jim Meyering  <jim@meyering.net>
77745
77746         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
77747         s/ifndef/ifdef/.
77748
77749 2005-02-20  Neil Conway  <neilc@samurai.com>
77750
77751         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
77752         returned by OSX/Darwin if the specified buffer is not large
77753         enough for the hostname.
77754
77755 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
77756
77757         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
77758         pass it to _help, otherwise the latter coredumps trying to
77759         dereference state.root_argp.
77760
77761 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
77762
77763         * modules/chdir-long (Depends-on): Add memrchr.
77764         * modules/memrchr (Files): Add lib/memrchr.h.
77765         (Include): "memrchr.h".
77766
77767 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
77768
77769         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
77770
77771 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
77772
77773         * lib/memrchr.h: New file.
77774         * lib/chdir-long.c: Include it.
77775         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
77776         Don't bother including stddef.h.
77777
77778 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
77779
77780         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
77781         inclusion.
77782         Include <sys/types.h>, for dev_t.
77783         (ME_DUMMY, ME_REMOTE): Move from here....
77784         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
77785         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
77786         Dmitry V. Levin.
77787         Include mountlist.h first, to test the interface.
77788
77789 2005-01-29  Bruno Haible  <bruno@clisp.org>
77790
77791         * lib/progname.c (program_name): Initialize.
77792         Needed when linking statically on MacOS X.
77793
77794 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
77795
77796         Sync from coreutils.
77797         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
77798         (Depends-on): Add c-strtod.
77799         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
77800
77801 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
77802
77803         Sync from coreutils.
77804         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
77805
77806         Remove files that are specific to coreutils.
77807         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
77808
77809 2005-01-28  Bruno Haible  <bruno@clisp.org>
77810
77811         * modules/javacomp: New file.
77812         * MODULES.html.sh (Java): Add javacomp.
77813
77814 2005-01-28  Bruno Haible  <bruno@clisp.org>
77815
77816         * m4/javacomp.m4: New file, from GNU gettext.
77817
77818 2005-01-28  Bruno Haible  <bruno@clisp.org>
77819
77820         * lib/javacomp.sh.in: New file, from GNU gettext.
77821         * lib/javacomp.h: New file, from GNU gettext.
77822         * lib/javacomp.c: New file, from GNU gettext.
77823
77824 2005-01-26  Simon Josefsson  <jas@extundo.com>
77825
77826         * lib/gai_strerror.c: Use GPL in header.
77827
77828 2005-01-26  Bruno Haible  <bruno@clisp.org>
77829
77830         * modules/javaexec: New file.
77831         * MODULES.html.sh (Java): Add javaexec.
77832
77833 2005-01-26  Bruno Haible  <bruno@clisp.org>
77834
77835         * m4/javaexec.m4: New file, from GNU gettext.
77836
77837 2005-01-26  Bruno Haible  <bruno@clisp.org>
77838
77839         * lib/javaexec.sh.in: New file, from GNU gettext.
77840         * lib/javaexec.h: New file, from GNU gettext.
77841         * lib/javaexec.c: New file, from GNU gettext.
77842
77843 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
77844
77845         * modules/lchown (Depends-on): Remove lchown.h
77846
77847 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
77848
77849         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
77850         must be defined if the header file was not found, in order
77851         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
77852
77853 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
77854
77855         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
77856         initializers for struct pentry_state.
77857         (__argp_error): Check return value of __asprintf
77858         (__argp_failure): Translate error message
77859
77860         * lib/argp-parse.c: Removed braces around the expansion of N_()
77861
77862 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
77863
77864         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
77865         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
77866         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
77867         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
77868         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
77869         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
77870         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
77871         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
77872         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
77873         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
77874         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
77875         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
77876         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
77877         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
77878         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
77879         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
77880         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
77881         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
77882         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
77883         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
77884         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
77885         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
77886         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
77887         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
77888         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
77889         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
77890         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
77891         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
77892         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
77893         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
77894         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
77895         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
77896         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
77897         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
77898         xstrtol.m4, xstrtoumax.m4, yesno.m4:
77899         Use an all-permissive copyright notice, recommended by RMS.
77900
77901 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
77902
77903         * modules/chdir-long (Depends-on): Remove mempcpy.
77904
77905 2005-01-21  Jim Meyering  <jim@meyering.net>
77906
77907         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
77908         same value as for Solaris 9.
77909
77910         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
77911         component length.  This included changing the parameter to be
77912         of type `char *' rather than `char const *'.
77913         * lib/chdir-long.h (chdir_long): Update prototype.
77914
77915         * lib/openat.c (fdopendir, fstatat): New functions.
77916         * lib/openat.h: Include headers required for use of DIR and struct
77917         stat.
77918         [AT_SYMLINK_NOFOLLOW]: Define.
77919         (fdopendir, fstatat): Add prototypes.
77920
77921 2005-01-21  Bruno Haible  <bruno@clisp.org>
77922
77923         * modules/classpath: New file.
77924         * MODULES.html.sh (Java): Add classpath.
77925
77926 2005-01-21  Bruno Haible  <bruno@clisp.org>
77927
77928         * lib/classpath.h: New file, from GNU gettext.
77929         * lib/classpath.c: New file, from GNU gettext.
77930
77931 2005-01-20  Simon Josefsson  <jas@extundo.com>
77932
77933         * modules/version-etc-fsf: New file.
77934
77935 2005-01-20  Simon Josefsson  <jas@extundo.com>
77936
77937         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
77938         * lib/version-etc.c: Remove version_etc_copyright.
77939         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
77940         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
77941
77942 2005-01-20  Simon Josefsson  <jas@extundo.com>
77943
77944         * lib/base64.h (isbase64): Add.
77945
77946         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
77947         using a unsigned prototype, don't inline.
77948         (base64_decode): Use it.
77949
77950 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
77951
77952         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
77953         it.
77954
77955 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
77956
77957         * lib/save-cwd.c (save_cwd): Remove code to support the case
77958         where fchdir is missing or flaky.
77959
77960 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
77961
77962         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
77963
77964 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
77965
77966         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
77967         AC_LIBSOURCES now does this.
77968         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
77969         with new ullong_max module.
77970
77971 2005-01-19  Bruno Haible  <bruno@clisp.org>
77972
77973         * modules/sh-quote: New file.
77974         * MODULES.html.sh (Executing programs): Add sh-quote.
77975
77976 2005-01-19  Bruno Haible  <bruno@clisp.org>
77977
77978         * lib/sh-quote.h: New file, from GNU gettext.
77979         * lib/sh-quote.c: New file, from GNU gettext.
77980
77981 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
77982
77983         Merge from coreutils.
77984         * m4/ullong_max.m4: New file.
77985         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
77986         (gl_MACROS): Assume localeconv exists.
77987
77988 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
77989
77990         Merge changes from coreutils, as described below in several
77991         changelogs dated today.
77992
77993         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
77994         (O_DIRECTORY): Remove; not needed here, since "." must be
77995         a directory.  All uses removed.
77996         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
77997         universal on Suns, and we also need to test for IRIX.
77998         Revamp code to use 'if' rather than '#if'.
77999         Avoid unnecessary comparison of cwd->desc to 0.
78000
78001         * lib/utimens.c (futimens): Robustify the previous patch, by checking
78002         for known valid error numbers rather than observed invalid ones.
78003
78004 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
78005
78006         * modules/ullong_max: New file.
78007
78008         * modules/chdir-long, modules/openat: New files.
78009         * modules/save-cwd (Depends-on): Depend on chdir-long.
78010         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
78011
78012 2005-01-18  Jim Meyering  <jim@meyering.net>
78013
78014         Merge from coreutils.
78015         * m4/chdir-long.m4, m4/openat.m4: New files.
78016         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
78017         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
78018         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
78019         is sane and DOES follow symlinks.  Besides, testing 20 different
78020         systems found no broken chown implementations.
78021         Prompted by a change in rsync's copy of this macro.
78022         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
78023
78024         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
78025
78026         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
78027         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
78028         NULL-means-set-to-current-time semantics.
78029         Remove temporary file immediately, rather than waiting
78030         for configure's at-exit trap code to do it.
78031
78032 2005-01-18  Jim Meyering  <jim@meyering.net>
78033
78034         * lib/version-etc.c (version_etc_copyright): Update copyright date.
78035
78036         * lib/utimens.c (futimens): Account for the fact that futimes
78037         can also fail with errno == ENOSYS or errno == ENOENT.
78038         Patch from Dmitry V. Levin.
78039
78040         Change the name of the robust chdir function from chdir to chdir_long.
78041         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
78042         (restore_cwd): Use chdir_long, not chdir.
78043         * lib/chdir-long.c: Renamed from chdir.c.
78044         * lib/chdir-long.h: Renamed from chdir.h.
78045         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
78046         Hurd.
78047
78048 2005-01-18  Bruno Haible  <bruno@clisp.org>
78049
78050         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
78051         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
78052         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
78053         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
78054         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
78055         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
78056         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
78057         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
78058         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
78059         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
78060         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
78061         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
78062         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
78063         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
78064         Use an all-permissive copyright notice, recommended by RMS.
78065
78066 2005-01-18  Bob Proulx  <bob@proulx.com>
78067
78068         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
78069         simplify offsetof() macro construct to avoid compile failure with
78070         native HP-UX 11.0 ANSI C compiler.
78071
78072 2005-01-17  Bruno Haible  <bruno@clisp.org>
78073
78074         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
78075         redundant because stpncpy.m4 takes care of it.
78076
78077 2005-01-17  Bruno Haible  <bruno@clisp.org>
78078
78079         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
78080
78081 2005-01-17  Bruno Haible  <bruno@clisp.org>
78082
78083         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
78084         used.
78085
78086 2005-01-17  Bruno Haible  <bruno@clisp.org>
78087
78088         * lib/fwriteerror.h (fwriteerror): Change specification to include
78089         fclose.
78090         * lib/fwriteerror.c: Include <stdbool.h>.
78091         (fwriteerror): At the end, close the file stream. Record whether
78092         stdout was already closed.
78093
78094 2005-01-17  Bruno Haible  <bruno@clisp.org>
78095
78096         * lib/execute.c (environ): Declare if needed.
78097         * lib/pipe.c (environ): Likewise.
78098         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
78099
78100 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
78101
78102         * modules/argp: Depend on vsnprintf
78103
78104 2005-01-10  Jim Meyering  <jim@meyering.net>
78105
78106         * modules/closeout (Depends-on): Add atexit.
78107
78108 2005-01-06  Bruno Haible  <bruno@clisp.org>
78109
78110         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
78111
78112 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
78113
78114         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
78115         definitions to be after all include files, to avoid collisions.
78116         Problem reported by Bob Proulx.
78117
78118 2005-01-04  Jim Meyering  <jim@meyering.net>
78119
78120         Changes imported from coreutils.
78121         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
78122         as the mkstemp template, use a temporary directory and an
78123         8.3-friendly template to avoid trouble on systems like DJGPP.
78124         Reported by Juan M. Guerrero via Stepan Kasal.
78125         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
78126         close. Remove the temporary directory right away, rather than waiting
78127         for configure's at-exit trap code to do it.
78128         Suggestion from Stepan Kasal.
78129
78130 2005-01-01  Simon Josefsson  <jas@extundo.com>
78131
78132         * gnulib-tool: Print #include directives when --import'ing.
78133
78134 2004-12-28  Simon Josefsson  <jas@extundo.com>
78135
78136         * tests/test-base64.c: Include required header files.  Remove
78137         unused variables.
78138
78139 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
78140
78141         * modules/error (Depends-on): Remove gettext.
78142
78143 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
78144
78145         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
78146         not needed.  This removes a dependency on the gettext module.
78147         [defined _LIBC]: Do not include <libintl.h>; not needed.
78148
78149 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
78150
78151         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
78152         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
78153
78154 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
78155
78156         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
78157         HAVE_DECL_STRTOLD.
78158
78159 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
78160
78161         * modules/getdate (Depends-on): Remove alloca-opt.
78162
78163 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
78164
78165         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
78166
78167 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
78168
78169         * lib/argp-parse.c: Include <stddef.h>.
78170         (alignof, alignto): New macros.
78171         (parser_init): Don't assume that void * is aligned sufficiently
78172         for struct option.
78173
78174         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
78175         need to extend the stack.
78176         (YYINITDEPTH): New macro, so that the initial stack isn't overly
78177         large.
78178
78179 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
78180
78181         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
78182
78183 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
78184
78185         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
78186         (2004-10-24) change.  Apparently this was a false alarm.
78187
78188         * modules/getdate: Depend on alloca-opt, not alloca.
78189
78190 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
78191
78192         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
78193         Remove now-obsolete comment about AIX.
78194         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
78195         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
78196         (YYMAXDEPTH): New macro.
78197
78198 2004-12-18  Simon Josefsson  <jas@extundo.com>
78199
78200         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
78201
78202 2004-12-18  Bruno Haible  <bruno@clisp.org>
78203
78204         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
78205
78206 2004-12-18  Bruno Haible  <bruno@clisp.org>
78207
78208         * lib/fatal-signal.c (fatal_signals): Make non-const.
78209         (init_fatal_signals): New function.
78210         (uninstall_handlers, install_handlers): Ignore signals that were set to
78211         SIG_IGN.
78212         (at_fatal_signal): Call init_fatal_signals.
78213         (init_fatal_signal_set): Likewise. Ignore signals that were set to
78214         SIG_IGN.
78215         Reported by Paul Eggert.
78216
78217 2004-12-18  Bruno Haible  <bruno@clisp.org>
78218
78219         * doc/alloca.texi: New file.
78220         * doc/alloca-opt.texi: New file.
78221
78222 2004-12-17  Jim Meyering  <jim@meyering.net>
78223
78224         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
78225         Otherwise, install-sh could exit with improper exit status when
78226         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
78227
78228 2004-12-16  Simon Josefsson  <jas@extundo.com>
78229
78230         * tests/test-base64.c: Add license.
78231
78232 2004-12-15  Stepan Kasal  <address@hidden>
78233
78234         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
78235
78236 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
78237
78238         * modules/getcwd (Files): Add m4/d-ino.m4.
78239         Suggested by Mark D. Baushke.
78240
78241 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
78242
78243         * lib/getdate.y (textint): New member "negative".
78244         (time_zone_hhmm): New function.
78245         Expect 14 shift-reduce conflicts, not 13.
78246         (o_colon_minutes): New rule.
78247         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
78248         (yylex): Set the "negative" member of signed numbers.
78249
78250 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
78251
78252         * doc/getdate.texi (Time of day items, Time zone items):
78253         Describe new formats +00:00, UTC+00:00.
78254
78255 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
78256
78257         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
78258         spurious "-l"s.  Problem reported by Stepan Kasal.
78259
78260 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
78261
78262         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
78263         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
78264
78265 2004-12-04  Simon Josefsson  <jas@extundo.com>
78266
78267         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
78268         Vandoorselaere <yoann@prelude-ids.org>.
78269
78270 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
78271
78272         Changes imported from coreutils.
78273         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
78274         exist.
78275         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
78276
78277 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
78278
78279         Changes imported from coreutils.
78280         * lib/hard-locale.c: Assume <locale.h> exists.
78281         Include "strdup.h".
78282         (GLIBC_VERSION): New macro.
78283         (hard_locale): Assume setlocale exists.
78284         Rewrite to avoid #ifdef.
78285         Use strdup rather than malloc + strcpy.
78286         * lib/human.c: Assume <locale.h> exists.
78287         (human_readable): Assume localeconv exists.
78288
78289 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
78290
78291         * modules/hard-locale (Depends-on): Add strdup.
78292
78293 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
78294
78295         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
78296         convert T2, not T.  (Imported from libc.)
78297
78298 2004-11-30  Simon Josefsson  <jas@extundo.com>
78299
78300         * modules/restrict (License): Change to LGPL.
78301
78302 2004-11-30  Simon Josefsson  <jas@extundo.com>
78303
78304         * m4/restrict.m4: Add copyright and copying conditions.
78305
78306 2004-11-30  Simon Josefsson  <jas@extundo.com>
78307
78308         * m4/base64.m4: New file.
78309
78310 2004-11-30  Simon Josefsson  <jas@extundo.com>
78311
78312         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
78313         base64.
78314
78315         * tests/test-base64.c: New file.
78316
78317         * modules/base64: New file.
78318
78319 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
78320
78321         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
78322         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
78323
78324         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
78325
78326 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
78327
78328         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
78329         (__getcwd.c): Don't restore errno; glibc doesn't.
78330         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
78331         first, falling back to our code only if its results look suspicious.
78332         Ensure that the resulting buffer is only as large as necessary.
78333
78334         * lib/readutmp.c: Include readutmp.h first.
78335         Include <errno.h>, since readutmp.h no longer does that.
78336         * lib/readutmp.h: Don't include <errno.h>,
78337         <sys/param.h>, <time.h>; not needed to establish interface.
78338         (errno): Remove decl.
78339         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
78340         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
78341         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
78342
78343 2004-11-28  Simon Josefsson  <jas@extundo.com>
78344
78345         * lib/base64.h, base64.c: New file.
78346
78347 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
78348
78349         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
78350
78351 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
78352
78353         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
78354         (Depends-on): Remove pathmax, same.  Add mempcpy.
78355         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
78356         (Makefile.am): Append getcwd.h to lib_SOURCES.
78357         (Include): Add getcwd.h.
78358         (Maintainer): Change from Jim Meyering to "all, glibc",
78359         since getdate now uses intended-for-glibc code.
78360         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
78361         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
78362
78363 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
78364
78365         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
78366         HP's ANSI C compiler.
78367         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
78368         Declaring int functions causes warnings on some modern systems and
78369         shouldn't be needed to compile on ancient ones.
78370         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
78371         defined.
78372
78373         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
78374         with the following changes.
78375         (__set_errno): Parenthesize properly.
78376         Include <stdbool.h>.
78377         (MIN, MAX, MATCHING_INO): New macros.
78378         (__getcwd): Define with prototype, not K&R form.
78379         Use heuristics to allocate default buffer on stack if possible.
78380         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
78381         behavior, and to avoid the PATH_MAX limit when computing
78382         ../../../../...
78383         Use MATCHING_INO to compare inode number to file.
78384         Check for arithmetic overflow in size calculations.
78385         Fix bug in reallocation of dot array that caused getcwd to fail
78386         on directories nested deeper than 75.
78387         Be more careful about saving errno on error.
78388         Do not use realloc; use only free+malloc, as this is a bit
78389         more flexible and avoids a needless copy operation.
78390         Do not inspect st_dev and st_ino for symbolic links; POSIX
78391         doesn't specify the latter.
78392         Check for closedir errors.
78393         Avoid needless casts.
78394         Use "#ifdef weak_alias" around weak_alias, to be like other
78395         glibc code.
78396         The following changes to getcwd.c have effect only when used in
78397         gnulib; they have no effect inside glibc proper.
78398         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
78399         as alloca isn't used.
78400         (alloca, __alloca): Likewise.
78401         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
78402         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
78403         unconditionally, as gnulib assumes C89 or better.
78404         Do not include <sys/param.h>.
78405         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
78406         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
78407         better.
78408         (NULL) [!defined NULL]: Remove; we assume C89 or better.
78409         Include <dirent.h> in a way that is compatible with modern Autoconf.
78410         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
78411         New macros, if not already defined.
78412         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
78413         Use "_LIBC", not "defined _LIBC", for consistency.
78414         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
78415         a mempcpy module.
78416         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
78417         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
78418         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
78419         credit only to Jim Meyering and adjust the copyright dates.
78420         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
78421         <stdlib.h>, <unistd.h>, "pathmax.h".
78422         Instead, include "xgetcwd.h" (first) and "getcwd.h".
78423         (INITIAL_BUFFER_SIZE): Remove.
78424         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
78425
78426 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
78427
78428         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
78429         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
78430         Use the _ONCE methods, for efficiency.
78431         Check for fcntl.h.  In test program, include <errno.h>
78432         and <fcntl.h> if available.  Remove old K&R cruft from
78433         test program.  Check for common errors in GNU/Linux,
78434         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
78435         don't do AC_LIBOBJ, as that's getcwd.m4's job.
78436         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
78437         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
78438         name accordingly.
78439         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
78440         accommodate new getcwd.c.
78441         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
78442         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
78443         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
78444         that's all we need now.
78445
78446 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
78447
78448         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
78449         argp-parse.c depends on getopt internals, that means we should
78450         always use our getopt, to be on the safe side.
78451         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
78452         order not to spoil the result of an eventual previous invocation
78453         of gl_GETOPT_SUBSTITUTE.
78454
78455 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
78456
78457         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
78458         redefinition warnings. To avoid them, include the defines
78459         in `#if !defined __need_getopt ... #endif'. The only place
78460         where __getopt_argv_const is used is in definitions
78461         of getopt_long and getopt_long_only below, which are as well
78462         protected by `#ifndef __need_getopt'.
78463         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
78464         __need_getopt after including <stdio.h> and <unistd.h> These
78465         headers might have defined it.
78466
78467 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
78468
78469         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
78470
78471 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
78472
78473         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
78474         (futimens): New function, which uses futimes if available.
78475         (futimens, utimens): Support timespec==NULL, with same semantics
78476         as utime and utimens.
78477         * lib/utimens.h (futimens): New decl.
78478
78479 2004-11-23  Jim Meyering  <jim@meyering.net>
78480
78481         * lib/getopt_.h: Remove trailing blanks.
78482
78483 2004-11-23  Jim Meyering  <jim@meyering.net>
78484
78485         * lib/__fpending.c: Add comment.
78486
78487 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
78488
78489         * modules/canonicalize (Depends-on): Add xreadlink.
78490         Problem reported by James Youngman.
78491
78492 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
78493
78494         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
78495         New macros.
78496         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
78497         optopt): Use them instead of invoking ## directly; otherwise, the
78498         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
78499
78500 2004-11-19  Bruno Haible  <bruno@clisp.org>
78501
78502         * lib/strtok_r.c: Move comments from here...
78503         * lib/strtok_r.h: ... to here.
78504
78505 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
78506
78507         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
78508         implementations that mishandle size_t overflow.
78509
78510 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
78511
78512         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
78513         might fail.  Problem reported by Yoann Vandoorselaere.
78514         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
78515         implementations that mishandle size_t overflow.
78516
78517 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
78518
78519         * modules/canon-host (Depends-on): Add strdup.
78520
78521 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
78522
78523         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
78524
78525 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
78526
78527         * lib/canon-host.c: Include "strdup.h".
78528         (canon_host): Use getaddrinfo if available, so that IPv6 works.
78529         Use strdup instead of malloc/strcpy to duplicate strings.
78530
78531         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
78532         (human_space_before_unit): New constant.
78533         * lib/human.c (human_readable): Support it.
78534
78535         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
78536         (xgetcwd): Set errno correctly when failing.
78537         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
78538         the failure is actually due to a PATH_MAX problem.
78539
78540         Further getopt changes to make it more likely that glibc will
78541         buy the changes back.
78542         * lib/getopt.c (POSIXLY_CORRECT): New constant.
78543         (getopt): Use it, so to preserve glibc semantic
78544         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
78545         when compiling for libc.
78546         * lib/getopt_.h (__getopt_argv_const): Bring it back.
78547         (getopt_long, getopt_long_only): Use it.
78548
78549         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
78550         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
78551         (getopt): Argv is now char * const *, as per standard.
78552         (_getopt_internal_r, _getopt_internal): Argv is now char **,
78553         not char *__getopt_argv_const *.
78554         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
78555         _getopt_long_only_r): Likewise.
78556         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
78557         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
78558         _getopt_long_r, _getopt_long_only_r): Likewise.
78559         * lib/getopt_.h (__getopt_argv_const): Remove.
78560         (getopt): Argv is now char * const *, as per standard.
78561
78562         * lib/getdate.y (tORDINAL): New token.
78563         (day, relunit): Allow it for relative times.
78564         (relative_time_table): Use tORDINAL for ordinals.
78565
78566 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
78567
78568         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
78569         Document that "second" isn't allowed as an ordinal number.
78570
78571 2004-11-16  Jim Meyering  <jim@meyering.net>
78572
78573         * modules/closeout (Depends-on): Add fpending.
78574
78575 2004-11-15  Jim Meyering  <jim@meyering.net>
78576
78577         * lib/closeout.c: Include "__fpending.h" once again.
78578         Include <stdbool.h>.
78579         (close_stdout): Don't fail just because stdout was closed initially,
78580         since some programs don't write to stdout in the normal course of
78581         operation (other than --version and --help), and we don't want this
78582         function to make e.g. `touch file >&-' fail.
78583         But do fail if it was closed and someone has tried to write to it.
78584         E.g., `printf foo >&-' must fail.
78585
78586 2004-11-13  Jim Meyering  <jim@meyering.net>
78587
78588         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
78589
78590 2004-11-12  Simon Josefsson  <jas@extundo.com>
78591
78592         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
78593         small doc fix is still pending.
78594
78595 2004-11-11  Simon Josefsson  <jas@extundo.com>
78596
78597         * modules/strtok_r: New file.
78598
78599         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
78600         strtok_r.
78601
78602 2004-11-11  Simon Josefsson  <jas@extundo.com>
78603
78604         * m4/strtok_r.m4: New file.
78605
78606         * m4/getopt.m4: Replace opterr.
78607
78608 2004-11-11  Simon Josefsson  <jas@extundo.com>
78609
78610         * lib/strtok_r.h, strtok_r.c: New file.
78611
78612 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
78613
78614         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
78615         of replacing opterr, getopt, etc.  This should handle the
78616         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
78617
78618 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
78619
78620         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
78621         we can stop lying to compilers about the constness of argv when we
78622         are compiled outside glibc.
78623         (getopt, getopt_long, getopt_long_only): Use it.
78624         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
78625         _getopt_internal, getopt): Likewise.
78626         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
78627         _getopt_long_only_r): Likewise.
78628         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
78629         _getopt_long_r, _getopt_long_only_r): Likewise.
78630
78631         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
78632         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
78633         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
78634         the other external symbols.
78635         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
78636         declaration, since the above renaming now works around collisions.
78637
78638 2004-11-11  Jim Meyering  <jim@meyering.net>
78639
78640         * lib/linebreak.c: Remove trailing blanks.
78641         * lib/alloca_.h: Likewise.
78642         * lib/acosl.c: Likewise.
78643         * lib/euidaccess.c: Likewise.
78644         * lib/allocsa.h: Likewise.
78645
78646 2004-11-10  Simon Josefsson  <jas@extundo.com>
78647
78648         * m4/getaddrinfo.m4: New file.
78649
78650 2004-11-10  Simon Josefsson  <jas@extundo.com>
78651
78652         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
78653
78654 2004-11-10  Simon Josefsson  <jas@extundo.com>
78655
78656         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
78657         getaddrinfo.
78658
78659         * modules/getaddrinfo: New file.
78660
78661 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
78662
78663         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
78664
78665 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
78666
78667         * lib/mktime.c (SHR): New macro, which is a portable
78668         substitute for >> that should work even on Crays.
78669         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
78670         Problem reported by Mark D. Baushke in
78671         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
78672         * lib/getdate.y (SHR): Likewise.
78673         (tm_diff): Use it.
78674         * lib/strftime.c (SHR): Likewise.
78675         (tm_diff): Use it.
78676         * lib/quotearg.c (struct quoting_options): Use unsigned int for
78677         quote_these_too, so that right shifts are well defined.  All uses
78678         changed.
78679
78680 2004-11-10  Jim Meyering  <jim@meyering.net>
78681
78682         Ensure that no close failure goes unreported.
78683         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
78684         return early when it seems there's nothing to flush.
78685         Don't include __fpending.h.
78686
78687 2004-11-10  Jim Meyering  <jim@meyering.net>
78688
78689         * modules/closeout (Depends-on): Remove fpending.
78690
78691 2004-11-10  Jim Meyering  <jim@meyering.net>
78692
78693         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
78694
78695 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
78696
78697         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
78698         gl_FUNC_STRFTIME.
78699         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
78700         and AC_REQUIRE when possible, to avoid duplicate checks.
78701         Check for <wchar.h>.
78702
78703 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
78704
78705         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
78706
78707 2004-11-09  Bruno Haible  <bruno@clisp.org>
78708
78709         * m4/sockpfaf.m4: New file.
78710
78711 2004-11-05  Bruno Haible  <bruno@clisp.org>
78712
78713         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
78714         Reported by Mark D. Baushke <mdb@cvshome.org>.
78715
78716 2004-11-04  Bruno Haible  <bruno@clisp.org>
78717
78718         2004-09-11  Bruno Haible  <bruno@clisp.org>
78719                 * allocsa.valgrind: New file.
78720         2004-02-06  Bruno Haible  <bruno@clisp.org>
78721                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
78722                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
78723                 Reported by Christopher Seip <chris.seip@hp.com>.
78724
78725 2004-11-04  Bruno Haible  <bruno@clisp.org>
78726
78727         * modules/allocsa (Files): Add lib/allocsa.valgrind.
78728         (Makefile.am): Distribute it.
78729
78730 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
78731
78732         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
78733         with errno == ERANGE if the buffer is too small.
78734         Problem reported by Mark D. Baushke.
78735
78736 2004-11-03  Albert Chin  <china@thewrittenword.com>
78737             Paul Eggert  <eggert@cs.ucla.edu>
78738
78739         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
78740         equivalent, substitute $ac_type for equivalent type rather than
78741         blindly using uint32_t *always* which won't work if uint32_t is not
78742         available.  Define _UINT32_T to work around typedef of uint32_t if
78743         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
78744         2.5.1.
78745
78746 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
78747
78748         * m4/jm-macros.m4: Sync from coreutils.
78749         (gl_MACROS): Check for mbrlen, for pathchk.
78750         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
78751
78752 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
78753
78754         * lib/xreadlink.c (MAXSIZE): New macro.
78755         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
78756         size does not exceed MAXSIZE.  Avoid cast.
78757         As suggested by Mark D. Baushke in
78758         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
78759         if readlink fails with buffer size just under MAXSIZE, try again
78760         with MAXSIZE.
78761
78762 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
78763
78764         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
78765
78766 2004-11-02  Derek R. Price  <derek@ximbiot.com>
78767         and  Paul Eggert  <eggert@cs.ucla.edu>
78768
78769         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
78770         (get_date): Overparenthesize to avoid GCC warning.
78771
78772 2004-11-02  Bruno Haible  <bruno@clisp.org>
78773
78774         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
78775         returns void.
78776
78777 2004-11-02  Bruno Haible  <bruno@clisp.org>
78778
78779         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
78780         function returns void.
78781
78782 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
78783
78784         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
78785         fflush_unlocked, flockfile, funlockfile, funlockfile,
78786         fputs_unlocked, putc_unlocked.
78787
78788 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
78789
78790         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
78791         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
78792         already declared.
78793
78794 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
78795
78796         * modules/getdate (Files): Add doc/getdate.texi.
78797         (Depends-on): Add setenv, xalloc.
78798
78799 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
78800
78801         * lib/getdate.y: Add support for TZ="foo" within a date string.
78802         Fix some bugs near time_t boundaries.  Reject dates with
78803         out-of-range components, e.g., "Sept 31".
78804         Include <stdlib.h>, "setenv.h", "xalloc.h".
78805         (ISDIGIT_LOCALE): Remove; unused.
78806         Note that the TZ and time functions used here are not reentrant.
78807         (mktime_ok, get_tz): New functions.
78808         (TZBUFSIZE): New constant.
78809         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
78810         This requires that we sometimes generate our own TZ="XXX..." setting.
78811
78812 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
78813
78814         * doc/getdate.texi: New file, from coreutils with modifications for
78815         the new TZ parsing.
78816
78817 2004-10-27  Derek R. Price  <derek@ximbiot.com>
78818
78819         * lib/mktime.c (not_equal_tm): Remove redundant check.
78820
78821 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
78822
78823         * modules/regex (lib_SOURCES): Add regex.c.
78824         Reported by James Youngman in
78825         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
78826
78827 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
78828
78829         * lib/getdate.y: Use Bison 1.875 features, and some minor
78830         code cleanups.  This change does not affect semantics.
78831         Don't include <stdlib.h>; no longer needed.
78832         Don't include unlocked-io.h; only the "#if TEST" code uses
78833         stdio, and performance isn't crucial there.
78834         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
78835         Bison 1.875 features as described below.
78836         All uses of "PC." replaced by "pc->".
78837         (YYSTYPE): Add a forward declaration.
78838         (yylex, yyerror): Use full prototypes in forward decls.
78839         Use "%pure-parser" rather than obsolescent "%pure_parser".
78840         Use %parse-param and %lex-param instead of obsolescent
78841         YYPARSE_PARAM and YYLEX_PARAM.
78842         (meridian_table, month_and_day_table, time_units_table,
78843         relative_time_table, time_zone_table, military_table,
78844         lookup_zone, lookup_word, get_date):
78845         Use NULL instead of 0 where appropriate.
78846         (to_hour): Avoid abort (), to avoid a dependency on
78847         stdlib.h.
78848         (yyerror, yylex): Now accepts parser_control * arg.
78849         (main) [TEST]: Use '\0' rather than 0 for char.
78850
78851 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
78852
78853         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
78854
78855 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
78856
78857         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
78858         It's now the caller's responsibility to handle the case where
78859         !HAVE_GETPAGESIZE && !defined getpagesize.
78860
78861         * lib/mktime.c (leapyear): Arg is long int, not int.
78862
78863 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
78864
78865         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
78866
78867 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
78868
78869         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
78870         missing.  Problem reported by James Youngman.
78871
78872 2004-10-16  Simon Josefsson  <jas@extundo.com>
78873
78874         * gnulib-tool: Fix comments.  Fix parse problem.
78875         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
78876
78877 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
78878
78879         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
78880         implementation of getopt_long.  Problem reported by Alexander Taler in:
78881         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
78882
78883 2004-10-15  Bruno Haible  <bruno@clisp.org>
78884
78885         * gnulib-tool: Untabify. Initialize supplied_libname.
78886         (func_usage): More homogenous output.
78887         (func_modules_transitive_closure, func_modules_to_filelist,
78888         func_emit_lib_Makefile_am): New functions.
78889         (func_import): New function, extracted from big case statement. Use
78890         func_get_license, func_modules_transitive_closure,
78891         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
78892         opt_lgpl. Don't use test -a, as it's not portable.
78893         (func_create_testdir): Use func_modules_transitive_closure,
78894         func_modules_to_filelist, func_emit_lib_Makefile_am.
78895
78896 2004-10-15  Bruno Haible  <bruno@clisp.org>
78897
78898         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
78899
78900 2004-10-15  Bruno Haible  <bruno@clisp.org>
78901
78902         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
78903         the portions belonging to each module.
78904         Suggested by Derek Robert Price <derek@ximbiot.com>.
78905
78906 2004-10-12  Simon Josefsson  <jas@extundo.com>
78907
78908         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
78909         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
78910         to real functions.
78911
78912 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
78913
78914         * modules/vsnprintf: New file.
78915
78916 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
78917
78918         * m4/vsnprintf.m4: New file.
78919
78920 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
78921
78922         * lib/vsnprintf.h: New file.
78923         * lib/vsnprintf.c: New file.
78924
78925 2004-10-11  Bruno Haible  <bruno@clisp.org>
78926
78927         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
78928         vsnprintf.
78929
78930 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
78931
78932         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
78933
78934 2004-10-07  Bruno Haible  <bruno@clisp.org>
78935
78936         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
78937         fits into the provided buffer.
78938
78939 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
78940
78941         * lib/diacrit.c, diacrit.h: Add GPL notice.
78942
78943         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
78944         notice.
78945         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
78946         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
78947         This avoids a potential constant-folding bug.
78948
78949 2004-10-05  Bruno Haible  <bruno@clisp.org>
78950
78951         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
78952         for the declaration of strsep.
78953
78954 2004-10-05  Bruno Haible  <bruno@clisp.org>
78955
78956         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
78957
78958 2004-10-04  Simon Josefsson  <jas@extundo.com>
78959
78960         * modules/memmem: New file.
78961         * tests/test-memmem.c: New file.
78962         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
78963
78964 2004-10-04  Simon Josefsson  <jas@extundo.com>
78965
78966         * m4/memmem.m4: New file.
78967
78968 2004-10-04  Simon Josefsson  <jas@extundo.com>
78969
78970         * lib/memmem.h: New file.
78971         * lib/memmem.c: New file, taken from glibc.
78972
78973 2004-10-04  Simon Josefsson  <jas@extundo.com>
78974
78975         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
78976         '#ifdef USE_UNLOCKED_IO'.
78977
78978 2004-10-04  Simon Josefsson  <jas@extundo.com>
78979
78980         * config/srclist.txt: Add memmem from glibc.
78981
78982 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
78983
78984         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
78985
78986         * modules/argmatch, modules/argp, modules/closeout, modules/error,
78987         modules/exclude, modules/getdate, modules/getline,
78988         modules/getndelim2, modules/getpass, modules/getpass-gnu,
78989         modules/getusershell, modules/linebuffer, modules/md5,
78990         modules/mountlist, modules/posixtm, modules/readtokens,
78991         modules/readutmp, modules/regex, modules/sha1,
78992         modules/version-etc, modules/yesno:
78993         Remove dependency on unlocked-io.
78994
78995 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
78996
78997         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
78998
78999         * m4/unlocked-io.m4: Add copyright notice.
79000         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
79001
79002 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
79003
79004         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
79005         * lib/xmalloc.c (xmemdup): Likewise.
79006         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
79007         XFREE): Remove these long-obsolescent macros.
79008         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
79009         * lib/xstrdup.c: Remove.
79010
79011         * lib/regex.c (re_comp): Cast gettext return value to char *,
79012         Problem reported by Martin Neitzel via Mark D. Baushke.
79013
79014 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
79015
79016         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
79017         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
79018         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
79019         regex.c, sha1.c, version-etc.c, yesno.c:
79020         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
79021         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
79022         the includer's responsibility.
79023
79024         Sync from coreutils.
79025
79026         * lib/modechange.c (mode_compile): Don't decrement a pointer that
79027         points to the start of a string, as the C Standard says the
79028         resulting behavior is undefined.
79029
79030         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
79031         simple -> simple_backups, numbered_existing ->
79032         numbered_existing_backups, numbered -> numbered_backups
79033         to avoid shadowing problems.  All uses changed.
79034         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
79035         * lib/backupfile.c (check_extension, numbered_backup):
79036         Rename locals to avoid shadowing 'basename'.
79037         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
79038         once.
79039
79040         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
79041         * lib/.cvsignore: Add getopt.h.
79042
79043 2004-10-04  Bruno Haible  <bruno@clisp.org>
79044
79045         * modules/README: New file.
79046         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
79047         not a module.
79048
79049 2004-10-02  Jim Meyering  <jim@meyering.net>
79050
79051         * lib/dirfd.h, getpagesize.h: Add copyright notice.
79052
79053 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
79054
79055         * modules/strsep: New file.
79056
79057 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
79058
79059         * m4/strsep.m4: New file.
79060
79061 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
79062
79063         * lib/strsep.h: New file.
79064         * lib/strsep.c: New file.
79065
79066 2004-10-01  Simon Josefsson  <jas@extundo.com>
79067
79068         * lib/snprintf.c (snprintf): Handle size==0.
79069
79070 2004-10-01  Simon Josefsson  <jas@extundo.com>
79071             Bruno Haible  <bruno@clisp.org>
79072
79073         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
79074         (snprintf): Declare 'args'.
79075
79076 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
79077
79078         * lib/snprintf.c: Remove comments as to why each header is needed.
79079
79080 2004-10-01  Bruno Haible  <bruno@clisp.org>
79081
79082         * MODULES.html.sh: Add strsep.
79083
79084 2004-09-30  Simon Josefsson  <jas@extundo.com>
79085
79086         * modules/snprintf: New file.
79087
79088 2004-09-30  Simon Josefsson  <jas@extundo.com>
79089
79090         * m4/snprintf.m4: New file.
79091
79092 2004-09-30  Simon Josefsson  <jas@extundo.com>
79093
79094         * lib/snprintf.h, lib/snprintf.c: New files.
79095
79096 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
79097
79098         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
79099         (hol_entry_help): Never translate an empty string.
79100         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
79101         * lib/argp.h (OPTION_NO_TRANS): New option.
79102
79103 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
79104
79105         * modules/argp (Maintainer): Replace Simon Josefsson
79106         by Sergey Poznyakoff.
79107
79108 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
79109
79110         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
79111         changes merged back into glibc.
79112
79113 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
79114
79115         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
79116
79117 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
79118
79119         * lib/xvasprintf.c: Include xalloc.h.
79120         (xvasprintf): Use xalloc_die, not xmalloc_die.
79121
79122 2004-09-29  Bruno Haible  <bruno@clisp.org>
79123
79124         * modules/alloca-opt: New file, derived from modules/alloca.
79125         * modules/allocsa: Depend on alloca-opt instead of alloca.
79126         * modules/setenv: Likewise.
79127         * modules/vasnprintf: Likewise.
79128         * MODULES.html.sh: Add alloca-opt.
79129
79130 2004-09-28  Simon Josefsson  <jas@extundo.com>
79131
79132         * gnulib-tool: New parameter --lgpl, to asseert that modules are
79133         LGPL, and to replace license template from GPL to LGPL.
79134
79135 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
79136
79137         * modules/dummy: Change license to LGPL.
79138
79139 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
79140
79141         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
79142
79143 2004-09-24  Simon Josefsson  <jas@extundo.com>
79144
79145         * modules/minmax (License): Change from GPL to LGPL.
79146
79147 2004-09-23  Simon Josefsson  <jas@extundo.com>
79148
79149         * gnulib-tool (--import): Typo.
79150
79151 2004-09-23  Simon Josefsson  <jas@extundo.com>
79152
79153         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
79154
79155 2004-09-22  Bruno Haible  <bruno@clisp.org>
79156
79157         * modules/*: Add 'License' field.
79158         * gnulib-tool: Accept --extract-license option.
79159         (func_get_license): New function.
79160
79161 2004-09-21  Bruno Haible  <bruno@clisp.org>
79162
79163         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
79164         Reported by Simon Josefsson.
79165
79166 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
79167
79168         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
79169         gl_AC_TYPE_LONG_LONG.
79170
79171 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
79172
79173         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
79174
79175 2004-09-18  Simon Josefsson  <jas@extundo.com>
79176         and  Paul Eggert  <eggert@cs.ucla.edu>
79177
79178         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
79179         calls with autoreconf.  Define GL_LIB.
79180
79181 2004-09-14  Karl Berry  <karl@gnu.org>
79182
79183         * config/srclist.txt: unsync setenv.c, sigh.
79184
79185 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
79186
79187         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
79188         Problem reported by Bruno Haible in:
79189         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
79190
79191 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
79192
79193         * config/srclist.txt: Comment out argp-pvh.c.
79194
79195 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
79196
79197         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
79198         in case some system header has #define'd it.  Problem reported by
79199         Soeren D. Schulze in
79200         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
79201
79202 2004-09-09  Karl Berry  <karl@gnu.org>
79203
79204         * regex.[ch]: delete from the root.  These were supposed to be
79205                 synced with emacs cvs, but this has not happened for about
79206                 a year, and anyway nothing else uses emacs regex.[ch].
79207                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
79208                 lib/regex[.ch] is untouched.
79209
79210 2004-09-09  Bruno Haible  <bruno@clisp.org>
79211
79212         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
79213
79214 2004-09-09  Bruno Haible  <bruno@clisp.org>
79215
79216         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
79217         modifications.
79218         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
79219
79220 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
79221
79222         * modules/xvasprintf: New file.
79223         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
79224
79225 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
79226
79227         * lib/xvasprintf.h: New file.
79228         * lib/xvasprintf.c: New file.
79229         * lib/xasprintf.c: New file.
79230
79231 2004-09-08  Bruno Haible  <bruno@clisp.org>
79232
79233         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
79234
79235 2004-09-08  Bruno Haible  <bruno@clisp.org>
79236
79237         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
79238         length is > INT_MAX.
79239         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
79240         more.
79241
79242 2004-09-08  Bruno Haible  <bruno@clisp.org>
79243
79244         * lib/stdint_.h: New file, taken from GNU clisp.
79245
79246 2004-09-08  Bruno Haible  <bruno@clisp.org>
79247             Oskar Liljeblad  <oskar@osk.mine.nu>
79248
79249         * modules/stdint: New file.
79250         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
79251
79252 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
79253
79254         Import from coreutils.
79255         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
79256         strings on unbounded length.  alloca's performance benefits aren't
79257         that important here.
79258         (V_STRDUP): Remove.
79259         (parse_with_separator): New function, with most of the internals
79260         of the old parse_user_spec.  Allow user to omit both user and group,
79261         for compatibility with FreeBSD.
79262         Clone only the user name, not the entire spec.
79263         Do not set *uid, *gid unless entirely successful.
79264         Avoid memory leak in some failing cases.
79265         Fix regression for USER.GROUP reported by Dmitry V. Levin in
79266         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
79267         (parse_user_spec): Rewrite to use parse_with_separator.
79268
79269 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
79270
79271         * modules/userspec: Don't depend on alloca.
79272
79273 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
79274
79275         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
79276
79277 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
79278
79279         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
79280         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
79281         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
79282
79283 2004-08-16  Simon Josefsson  <jas@extundo.com>
79284
79285         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
79286         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
79287         Add --dry-run for --import.
79288         Let user provided command line parameters override configure.ac
79289         settings.
79290
79291 2004-08-12  Simon Josefsson  <jas@extundo.com>
79292
79293         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
79294         as discussed with Paul Eggert in threads rooted at
79295         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
79296         and
79297         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
79298         Before, the test was empty, and relied on ELIDE_CODE in source
79299         code.)
79300         (gl_PREREQ_GETOPT): New macro.
79301         (gl_GETOPT): Use them.
79302
79303 2004-08-12  Simon Josefsson  <jas@extundo.com>
79304
79305         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
79306         * lib/getopt_.h: Renamed from getopt.h.
79307
79308 2004-08-12  Simon Josefsson  <jas@extundo.com>
79309
79310         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
79311         Change default library name from libfoo to libgnu.
79312         Now, if you have a configure.ac that says:
79313                 gl_SOURCE_BASE(gl)
79314                 gl_M4_BASE(gl/m4)
79315                 gl_MODULES(error getopt etcetera)
79316                 gl_INIT
79317         you can import all you need by running:
79318                 ../gnulib/gnulib-tool --import
79319
79320         * modules/getopt (Files): Rename getopt.h to getopt_.h.
79321         (Makefile.am): Rewrite, use logic from argz.
79322         (Include): Use <getopt.h> instead of "getopt.h".
79323
79324 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
79325
79326         * modules/argp (Files): Add m4/unlocked-io.m4.
79327         (Depends-on): Add extensions.
79328
79329 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
79330
79331         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
79332         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
79333         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
79334         Check for program_invocation_name, program_invocation_short_name,
79335         flockfile, funlockfile, features.h, _getopt_long_only_r.
79336
79337 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
79338
79339         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
79340         its complicated substitute.
79341         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
79342         and program_invocation_name.
79343         (__argp_basename) [!_LIBC]: Remove; the only use was
79344         replaced by its body.
79345         (__argp_short_program_name): Change condition from
79346         !defined __argp_short_program_name to
79347         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
79348         to match argp-namefrob.h.
79349         (__argp_failure): Don't assume strerror_r returns char *.
79350         * lib/argp-parse.c (N_): Define unconditionally.
79351         (argp_default_options): Fill out initializers with 0 to avoid
79352         gcc warnings.
79353
79354 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
79355
79356         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
79357         getopt1.c.
79358
79359 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
79360
79361         Merge from coreutils.
79362
79363         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
79364
79365         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
79366         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
79367
79368 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
79369
79370         Merge from coreutils.
79371
79372         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
79373         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
79374         for Reliant Unix 5.43.
79375
79376         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
79377         (union fooround): Use uintmax_t, not long int.
79378         The rest is a merge from libc:
79379         [defined _LIBC]: Include <shlib-compat.h>.
79380         (_obstack) [defined _LIBC]: Remove after 2.3.4.
79381
79382         * lib/settime.c (settime): Recode to avoid warning with
79383         Sun Forte C 6U2.
79384
79385         * lib/strverscmp.c: Convert to UTF-8.
79386
79387 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
79388
79389         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
79390         m4/uintmax_t.m4.
79391
79392 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
79393
79394         * modules/xalloc-die: New file.
79395         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
79396
79397         * modules/md5 (Files): Add m4/uint32_t.m4.
79398         * modules/sha1: Renamed from modules/sha.
79399         (Files):
79400         Rename lib/sha.h to lib/sha1.h.
79401         Rename lib/sha.c to lib/sha1.c.
79402         Rename m4/sha.m4 to m4/sha1.m4.
79403         (lib_SOURCES): Likewise.
79404         (configure.ac): Rename gl_SHA to gl_SHA1.
79405         (Include): sha.h -> sha1.h.
79406
79407 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
79408
79409         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
79410         * m4/sha1.m4: Renamed from sha.m4.
79411         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
79412
79413 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
79414
79415         * lib/obstack.h (obstack_empty_p):
79416         Don't assume that chunk->contents is suitably aligned.
79417         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
79418         Likewise. Problem reported by Benno in
79419         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
79420
79421         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
79422         readable.  This could be improved further but it'd take some work.
79423
79424 2004-08-08  Simon Josefsson  <jas@extundo.com>
79425
79426         * modules/xgethostname (Depends-on): Remove exit and error (not
79427         used).
79428
79429         * modules/getpass-gnu: Add getpass.h.
79430         (Depends-on): Add stdbool.
79431         * modules/getpass: Add getpass.h.
79432
79433 2004-08-08  Simon Josefsson  <jas@extundo.com>
79434
79435         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
79436         Check getpass declaration.
79437
79438 2004-08-08  Simon Josefsson  <jas@extundo.com>
79439
79440         * lib/xgethostname.c: Don't include error.h (not used).
79441
79442         * lib/getpass.h: Add.
79443         * lib/getpass.c: Include getpass.h first.
79444
79445 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
79446
79447         * lib/xalloc-die.c: New file.
79448         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
79449         All uses removed.
79450         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
79451         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
79452         xalloc-die.c.
79453         (_, N_, xalloc_die): Move to xalloc-die.c.
79454         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
79455         so that we needn't mess with xalloc_msg_memory_exhausted.
79456
79457         * lib/sha1.h: Renamed from sha.h.
79458         (SHA1_H): Renamed from _SHA_H.
79459         (sha1_ctx): Renamed from sha_ctx.
79460         (sha1_init_ctx): Renamed from sha_init_ctx.
79461         (sha1_process_block): Renamed from sha_process_block.
79462         (sha1_process_bytes): Renamed from sha_process_bytes.
79463         (sha1_finish_ctx): Renamed from sha_finish_ctx.
79464         (sha1_read_ctx): Renamed from sha_read_ctx.
79465         (sha1_stream): Renamed from sha_stream.
79466         (sha1_buffer): Renamed from sha_buffer.
79467         * lib/sha1.c: Likewise; renamed from sha.c.
79468         Do not include <sys/types.h>.
79469         Include <stddef.h> rather than <stdlib.h>.
79470
79471 2004-08-08  Bruno Haible  <bruno@clisp.org>
79472
79473         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
79474         FILESYSTEM_PREFIX_LEN.
79475         * lib/progreloc.c: Likewise.
79476         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
79477
79478 2004-08-06  Simon Josefsson  <jas@extundo.com>
79479
79480         * modules/progname (Depends-on): Don't depend on stdbool.
79481
79482 2004-08-06  Simon Josefsson  <jas@extundo.com>
79483
79484         * modules/getsubopt: New file.
79485         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
79486         getsubopt.
79487
79488 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
79489
79490         More merge from coreutils.
79491
79492         * m4/utimens.m4, m4/utimecmp.m4: New files.
79493         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
79494         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
79495         prereq.m4, sha.m4: Import changes from coreutils.
79496
79497 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
79498
79499         More merge from coreutils.
79500         * modules/raise, modules/readtokens0, modules/utimens:
79501         * modules/utimecmp, module/xnanosleep: New files.
79502         * modules/strftime: Add lib/strftime.h.
79503         Change include from <time.h> to "strftime.h".
79504         * modules/yesno: Add lib/yesno.h.
79505         * modules/backupfile: Remove lib/addext.c.
79506         * modules/euidaccess: Add stat-macros.h.
79507         * modules/canonicalize, modules/euidaccess,
79508         modules/filemode, modules/lchown, modules/makepath,
79509         modules/rmdir, modules/stat: Likewise.
79510
79511 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
79512
79513         Merge from tar.
79514         * lib/argp-help.c (make_hol, hol_append): Don't assume that
79515         SIZE_MAX is a valid preprocessor constant.
79516         (__argp_basename): Change from "#ifndef _LIBC"
79517         to "#ifndef __argp_short_program_name", so that
79518         we don't compile these functions for tar.
79519
79520         More merges from coreutils.
79521         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
79522         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
79523         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
79524         * lib/addext.c: Remove; no longer needed.
79525         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
79526         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
79527         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
79528         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
79529         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
79530         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
79531         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
79532         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
79533         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
79534         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
79535         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
79536         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
79537         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
79538         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
79539         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
79540         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
79541         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
79542         Import changes from coreutils.
79543
79544 2004-08-05  Simon Josefsson  <jas@extundo.com>
79545
79546         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
79547
79548 2004-08-05  Simon Josefsson  <jas@extundo.com>
79549
79550         * m4/getsubopt.m4: New file.
79551
79552 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
79553
79554         Merge from coreutils.
79555
79556         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
79557         * m4/getcwd-path-max.m4: New files.
79558
79559         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
79560         FILESYSTEM_PREFIX_LEN ->
79561         FILE_SYSTEM_PREFIX_LEN.
79562         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
79563         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
79564         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
79565         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
79566
79567         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
79568         prerequisite modules now handle the DOS stuff.
79569         Don't check for unistd.h.
79570
79571 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
79572
79573         Merge from coreutils.
79574
79575         * lib/.gdb-history: Remove; this doesn't belong here.
79576
79577         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
79578         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
79579         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
79580         * lib/getcwd.c: New files.
79581
79582         * lib/dirname.h: Include <stdbool.h>.
79583         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
79584         for consistency with POSIX terminology.  All uses changed.
79585         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
79586         (strip_trailing_slashes): Use bool for booleans.
79587         * lib/stripslash.c (strip_trailing_slashes): Likewise.
79588
79589         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
79590         sometimes returns a positive errno value even when it succeeds.
79591         (print_errno_message) [!LIBC]: Fall back on strerror if
79592         __strerror_r fails.
79593
79594         * lib/path-concat.c (mempcpy): Don't define if a system header defines
79595         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
79596         (longest_relative_suffix): New function.
79597         (path_concat): Use it.  Assume first argument is not NULL.
79598         Port to DOS.  Omit redundant separators.
79599         Report an error instead of returning NULL.
79600         Use mempcpy instead of memcpy.
79601         (xpath_concat): Remove: not declared or used.
79602
79603         * lib/same.h: Include <stdbool.h>
79604         (same_name): Return bool, not int.
79605         * lib/same.c (same_name): Likewise.
79606         (errno): Don't declare; we assume C89 or better now.
79607
79608         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
79609         if not already defined.
79610
79611         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
79612         * lib/dup-safer.c (errno): Likewise.
79613
79614 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
79615
79616         Merge from coreutils.
79617         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
79618         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
79619         * modules/path-concat: Don't depend on strdup.
79620
79621 2004-08-03  Simon Josefsson  <jas@extundo.com>
79622
79623         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
79624         * lib/progname.h: Don't include stdbool.h.
79625
79626 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
79627
79628         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
79629         * MODULES.html.sh (func_all_modules): Remove fatal.
79630
79631 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
79632
79633         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
79634
79635 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
79636
79637         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
79638         working.
79639
79640 2004-08-02  Simon Josefsson  <jas@extundo.com>
79641
79642         * lib/getsubopt.h: New file, with comments from Bruno Haible.
79643         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
79644         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
79645
79646 2004-08-01  Simon Josefsson  <jas@extundo.com>
79647
79648         * lib/xgetdomainname.c: Include stdlib.h, for free().
79649
79650 2004-07-19  Bruno Haible  <bruno@clisp.org>
79651
79652         * MODULES.html.sh (func_all_modules): Add dummy.
79653
79654 2004-07-16  Simon Josefsson  <jas@extundo.com>
79655
79656         * modules/dummy: New file.
79657
79658 2004-07-16  Simon Josefsson  <jas@extundo.com>
79659
79660         * lib/dummy.c: New file.
79661
79662 2004-07-16  Bruno Haible  <bruno@clisp.org>
79663
79664         * lib/backupfile.h: Add extern "C" for C++.
79665         * lib/closeout.h: Likewise.
79666         * lib/copy-file.h: Likewise.
79667         * lib/findprog.h: Likewise.
79668         * lib/full-write.h: Likewise.
79669         * lib/pathname.h: Likewise.
79670         * lib/progname.h: Likewise.
79671         * lib/stpcpy.h: Likewise.
79672         * lib/stpncpy.h: Likewise.
79673         * lib/strcase.h: Likewise.
79674         * lib/strstr.h: Likewise.
79675         * lib/xalloc.h: Likewise.
79676
79677         * lib/mbswidth.h: Add extern "C" for C++.
79678         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
79679
79680 2004-07-13  Robert Millan  <robertmh@gnu.org>
79681
79682         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
79683
79684 2004-07-09  Simon Josefsson  <jas@extundo.com>
79685
79686         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
79687         failed without this.)
79688
79689 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
79690
79691         * modules/chown (Files): Add lib/fchown-stub.c, since
79692         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
79693
79694 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
79695
79696         * lib/fchown-stub.c: New file.
79697
79698 2004-06-24  Jim Meyering  <jim@meyering.net>
79699
79700         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
79701
79702 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
79703
79704         * modules/argz: Omit "#include".
79705
79706         * MODULES.html.sh (func_all_modules): Add calloc, to match
79707         2004-06-01 addition of calloc module.
79708
79709 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
79710
79711         * m4/argz.m4: New file, which is autoupdated from libtool.
79712
79713 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
79714
79715         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
79716         libtool.
79717
79718 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
79719
79720         * config/srclist-update: Don't insist on "USA." before the
79721         close-comment, as libtool omits the period and puts the */ on a
79722         separate line.
79723         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
79724         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
79725
79726 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
79727
79728         * modules/argz: New file.
79729         * MODULES.html.sh (func_all_modules): Add argz.
79730
79731 2004-06-12  Jim Meyering  <jim@meyering.net>
79732         and  Paul Eggert  <eggert@cs.ucla.edu>
79733
79734         * modules/hash (Files): Add lib/xalloc.h.
79735         * modules/pipe (Depends-on): Add wait-process.
79736         * modules/stat (Depends-on): Add xalloc.
79737         * modules/userspec (Files): Add lib/userspec.h.
79738         * modules/xstrto
79739
79740         Upgrade from gettext-0.13.
79741         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
79742         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
79743         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
79744
79745 2004-06-10  Jim Meyering  <jim@meyering.net>
79746
79747         * lib/calloc.c: New file.
79748
79749 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
79750
79751         * lib/getdate.y (yylex): Allow space between sign and number.
79752         Problem reported by Dan Jacobson.
79753
79754 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
79755
79756         Merge from coreutils CVS.
79757
79758         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
79759         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
79760         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
79761         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
79762         xstrtol.m4: Fix copyright date and/or serial number.
79763
79764         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
79765         See if we need an fchown replacement.
79766         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
79767         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
79768         and use the replacement function if we detect either defect.
79769
79770         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
79771         gl_UTIMECMP.
79772
79773 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
79774         and  Jim Meyering  <jim@meyering.net>
79775
79776         Merge from coreutils CVS.
79777
79778         * lib/stat-macros.h: New file, with contents from file-type.h
79779         and coreutils' system.h.
79780         * lib/file-type.c: Include "stat-macros.h".
79781         * lib/file-type.h (file_type): Move all macro definitions to new file,
79782         stat-macros.h.
79783
79784         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
79785         Wrap old code with this conditional.
79786         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
79787         function that does not dereference symlinks.
79788         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
79789
79790         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
79791         dependency problems.
79792         (xreadlink): Accept new arg SIZE, for efficiency.
79793         All decls and uses changed.
79794         * lib/xreadlink.h: Include <stddef.h>, for size_t.
79795
79796         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
79797         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
79798
79799         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
79800         sysexits.h.
79801
79802 2004-06-01  Jim Meyering  <jim@meyering.net>
79803
79804         * m4/calloc.m4: New file.
79805
79806 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
79807
79808         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
79809         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
79810         Also, fix a typo in a diagnostic.
79811
79812 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
79813
79814         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
79815         or AC_FUNC_REALLOC.
79816
79817 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
79818
79819         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
79820         macros to be defined.
79821         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
79822         the allocator returns NULL because the requested size is zero.
79823
79824 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
79825
79826         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
79827         var.  Add comment explaining why libc still defines it.  This
79828         merges the following patch from glibc:
79829         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
79830
79831 2004-05-20  Andreas Schwab  <schwab@suse.de>
79832
79833         * m4/free.m4: Replace free if it not known to work, not the other
79834         way round.
79835
79836 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
79837
79838         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
79839         present in glibc since revision 1.1 of this file.
79840         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
79841         obstack_alignment_mask, obstack_alloc, obstack_base,
79842         obstack_blank, obstack_blank_fast, obstack_chunk_size,
79843         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
79844         obstack_grow0, obstack_init, obstack_int_grow,
79845         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
79846         obstack_next_free, obstack_object_size, obstack_ptr_grow,
79847         obstack_ptr_grow_fast, obstack_room): Remove declarations of
79848         nonexistent functions.
79849
79850 2004-05-18  Karl Berry  <karl@gnu.org>
79851
79852         * config/srclist.txt: break link for vasnprintf.c.
79853
79854 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
79855
79856         Port obstack to the AS/400, where pointers are 16 bytes wide and
79857         you cannot cast an integer to a valid pointer.  This patch is
79858         currently waiting to be integrated into glibc; see
79859         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
79860
79861         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
79862         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
79863         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
79864         (struct obstack): temp member is now a union of a pointer and
79865         an integer, instead of an integer.  All integer uses changed.
79866         This does not affect the physical layout of struct obstack,
79867         except on hosts (like the AS/400) where the size or alignment of
79868         void * is greater than that of ptrdiff_t.
79869         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
79870         __STDC__)]: Store temporary in pointer member of union, not
79871         integer member.
79872         * lib/obstack.c: Include <stddef.h>, for offsetof.
79873         (struct fooalign): Remove; it doesn't need a name.
79874         (union fooround): Change double to long double, and add void *.
79875         (DEFAULT_ALIGNMENT): Use offsetof to compute.
79876         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
79877         not a macro.  Hence the values are always int; so remove all
79878         casts-to-int in uses.
79879
79880 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
79881
79882         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
79883         we can get this patch merged into glibc.
79884
79885 2004-05-17  Derek R. Price  <derek@ximbiot.com>
79886             Paul Eggert  <eggert@cs.ucla.edu>
79887
79888         * m4/argp: Depend on alloca.
79889
79890 2004-05-17  Derek R. Price  <derek@ximbiot.com>
79891             Paul Eggert  <eggert@cs.ucla.edu>
79892
79893         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
79894         freecoding.
79895
79896 2004-05-17  Bruno Haible  <bruno@clisp.org>
79897
79898         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
79899         precision that consists of a '.' followed by an empty digit string.
79900         Patch by Tor Lillqvist <tml@iki.fi>.
79901
79902 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
79903
79904         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
79905         for backward compatibility with older code.  We need our own
79906         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
79907         it under some other name, and our alloca.h will define it.
79908
79909 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
79910             Derek Price  <derek@ximbiot.com>
79911
79912         * lib/alloca.c: Include <alloca.h>, to get our interface.
79913         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
79914         include <alloca.h> first.  Use C89 prototype for alloca; this
79915         requires including <stddef.h> for size_t.  Use extern "C" if C++.
79916         Use #elif for simplicity, since we can assume C89 now.
79917         Don't try to source the system alloca.h since it will not be found
79918         and to prevent recursively including its replacement.
79919         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
79920         * lib/regex.c: Likewise.
79921
79922 2004-05-16  Derek Price  <derek@ximbiot.com>
79923             Paul Eggert  <eggert@cs.ucla.edu>
79924
79925         getline cleanup.  This changes the getndelim2 API: both order of
79926         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
79927         no delimiter).
79928
79929         * lib/getline.c: Don't include stddef.h or stdio.h, since our
79930         interface does that.
79931         (getline): Always use getdelim, so that we don't have two
79932         copies of this code.
79933         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
79934         if available.
79935         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
79936         (GETNDELIM2_MAXIMUM): New macro.
79937         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
79938         instead of the old practice of delim2==0.  All callers changed.
79939         Return -1 on overflow, instead of returning junk.
79940         Do not set *linesize unless allocation succeeds.
79941         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
79942         that we include sys/types.h.
79943         * lib/getnline.h: Likewise.
79944         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
79945         (getndelim2): Reorder arguments.
79946         * lib/getnline.c (getnline, getndelim):
79947         Don't discard the NMAX argument.
79948         (getnline): Invoke getndelim, to avoid code duplication.
79949         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
79950         of (size_t) -1 by callers of the getnline family.
79951
79952 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
79953
79954         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
79955         Check for gettimeofday.
79956         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
79957         Check for settimeofday, stime.
79958
79959 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
79960
79961         * lib/nanosleep.c (suspended): Change its type from int to
79962         sig_atomic_t volatile.
79963         (first_call): Make it private to rpl_nanosleep, and have it
79964         be zero initially as that's a bit faster.
79965         (my_usleep): Round up fractional times instead of truncating them,
79966         as this is the usual meaning for 'sleep'.
79967
79968         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
79969         doesn't work.
79970         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
79971         (ENOSYS): Define if not defined.
79972         (settime): Fall back on stime if it exists and settimeofday fails.
79973         But don't bother with fallbacks if a method fails with errno == EPERM.
79974
79975 2004-05-11  Jim Meyering  <jim@meyering.net>
79976
79977         Prior to this change, the save_cwd caller required read access to the
79978         current directory on most systems (ones with the fchdir function).
79979
79980         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
79981         fails, try write-only, and finally, resort to using xgetcwd.
79982
79983 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
79984
79985         * lib/obstack.c, obstack.h: Import changes from libc.
79986
79987 2004-04-28  Bruno Haible  <bruno@clisp.org>
79988
79989         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
79990         also implicitly appends .exe to executables.
79991         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
79992         accepts Windows pathnames.
79993         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
79994         Treat Cygwin like Windows, since it now accepts Windows pathnames.
79995         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
79996         Treat Cygwin like Windows, since it now accepts Windows pathnames.
79997         Reported by Derek Robert Price <derek@ximbiot.com>.
79998
79999 2004-04-21  Karl Berry  <karl@gnu.org>
80000
80001         * config/srclist.txt (localcharset.c): break sync.
80002
80003 2004-04-20  Paul Eggert  <eggert@twinsun.com>
80004
80005         * m4/host-os.m4: Add a copyright notice.
80006
80007 2004-04-20  Jim Meyering  <jim@meyering.net>
80008
80009         Change UTILS_ to gl_ in AC_DEFINE'd names.
80010         Change utils_- and jm_-prefixed variables, too.
80011         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
80012         UTILS_FUNC_MKDIR_TRAILING_SLASH.
80013         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
80014
80015         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
80016         Don't emit trailing blanks.
80017         Also rename jm_-prefixed variables to have gl_ prefix.
80018
80019         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
80020         Also rename jm_-prefixed variables to have gl_ prefix.
80021
80022         * m4/jm-macros.m4: Reflect the renamings.
80023         * m4/prereq.m4: Likewise.
80024
80025 2004-04-20  Jim Meyering  <jim@meyering.net>
80026
80027         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
80028         memory.
80029
80030 2004-04-20  Jim Meyering  <jim@meyering.net>
80031             Bruno Haible  <bruno@clisp.org>
80032
80033         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
80034         memory when realloc fails.
80035
80036 2004-04-19  Jim Meyering  <jim@meyering.net>
80037
80038         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
80039         now that readutmp.c may call `free (0)'.
80040
80041 2004-04-19  Bruno Haible  <bruno@clisp.org>
80042
80043         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
80044         * m4/inttypes_h.m4: Likewise.
80045         * m4/stdint_h.m4: Likewise.
80046         * m4/intmax_t.m4: Likewise.
80047         * m4/uintmax_t.m4: Likewise.
80048
80049 2004-04-18  Jim Meyering  <jim@meyering.net>
80050
80051         * m4/prereq.m4: Don't forbid jm_ prefix.
80052
80053         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
80054         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
80055         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
80056         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
80057         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
80058         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
80059         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
80060         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
80061         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
80062         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
80063         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
80064         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
80065         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
80066         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
80067         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
80068         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
80069         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
80070         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
80071         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
80072
80073 2004-04-18  Jim Meyering  <jim@meyering.net>
80074
80075         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
80076         failure, don't leak memory and do call END_UTMP_ENT.
80077
80078 2004-04-16  Jim Meyering  <jim@meyering.net>
80079
80080         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
80081         coreutils' stat program.
80082         (gl_PREREQ): Don't require jm_PREREQ_STAT.
80083
80084 2004-04-11  Paul Eggert  <eggert@twinsun.com>
80085
80086         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
80087         C89.
80088         (CHAR_BIT): Remove, since we assume C89.
80089         Include <stdint.h> if available, as per current Autoconf CVS advice.
80090
80091 2004-03-31  Jim Meyering  <jim@meyering.net>
80092
80093         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
80094         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
80095         * m4/xalloc.m4: Likewise.
80096
80097 2004-03-30  Paul Eggert  <eggert@twinsun.com>
80098
80099         Merge from coreutils.
80100
80101         * m4/inttostr.m4: New file.
80102         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
80103         Require AM_STDBOOL_H and gl_TIMESPEC instead.
80104         Require gl_CLOCK_TIME.
80105         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
80106
80107 2004-03-30  Paul Eggert  <eggert@twinsun.com>
80108
80109         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
80110         not bool, to be more consistent with Unix conventions.
80111         Suggested by Bruno Haible.
80112
80113         Merge from coreutils.
80114
80115         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
80116         * lib/umaxtostr.c: New files.
80117
80118         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
80119         the usual <time.h> dance.
80120         (get_date): Change signature to support fractional time stamps.
80121         All callers changed.
80122         * lib/getdate.y: Include "getdate.h" first, as we can now
80123         assume C89 and don't need to worry about 'const'.
80124         Similarly, include "unlocked-io.h" near start, not in middle.
80125         Include <limits.h>.
80126         (textint.value): Use long int rather than int.
80127         (textint.digits): Use size_t rather than int.
80128         (BILLION, LOG10_BILLION): New constants.
80129         (parser_control): New member rel_ns.  Members day_ordinal,
80130         time_zone, month, day, hour, minutes, rel_year, rel_month,
80131         rel_day, rel_hour, rel_minutes, rel_seconds
80132         are now long int, not int.  Member seconds is now struct timespec,
80133         not int.  New member timespec_seen.  Members dates_seen, days_seen,
80134         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
80135         not int.
80136         (%union.intval): Now long int, not int.
80137         New member timespec.
80138         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
80139         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
80140         (spec): Now is a timespec or an item list.
80141         (timespec, items): New nonterminals.
80142         (time, rel, relunit, number, get_date):
80143         Add support for fractional seconds.
80144         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
80145         (gmtime, localtime, mktime): Remove decls; not needed with C89.
80146         (to_hour): First arg is now long int, not int.
80147         (to_year): Returns long int, not int.
80148         Don't treat year -70 like 70.
80149         (tm_diff): Returns long int, not int.
80150         (lookup_word): Use bool instead of int when appropriate.
80151         (yylex): Use size_t for count, not int.
80152         Detect overflow when parsing large integer constants.
80153         Add support for fractions.
80154         (get_date): Make pointers 'const' if possible.
80155         Use more-portable code to detect integer overflow.
80156         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
80157         Don't use ctime; it's not reliable if the year has >4 digits.
80158
80159         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
80160         This is for compatibility with BSD.
80161
80162         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
80163         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
80164         From coreutils' system.h.
80165
80166         * lib/userspec.c: Don't include "posixver.h".
80167         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
80168         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
80169         compatible extension.  Simplify code by removing a boolean int
80170         that was always nonzero if a string was nonnull.
80171
80172 2004-03-30  Jim Meyering  <jim@meyering.net>
80173
80174         Merge from coreutils.
80175
80176         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
80177         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
80178         on some systems one must include <grp.h> before it.
80179         Reported by Christian Krackowizer.
80180
80181 2004-03-30  Jim Meyering  <jim@meyering.net>
80182
80183         Merge from coreutils.
80184
80185         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
80186
80187         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
80188         an empty input stream.
80189
80190         * lib/readtokens.c: Include <stdbool.h>.
80191         (readtoken): Use `size_t' rather than int/long.
80192         All callers adjusted.
80193         Use `bool' rather than `int' where appropriate.
80194         Use memset rather than an explicit loop.
80195         Use x2nrealloc rather than xrealloc.
80196         Allow the use of `\0' as a delimiter.
80197         (readtokens): Likewise.
80198         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
80199
80200 2004-03-30  Jim Meyering  <jim@meyering.net>
80201
80202         * m4/realloc.m4: Remove file, since now it does no more than
80203         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
80204         the `configure.ac' section of module/realloc.
80205         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
80206
80207 2004-03-30  Bruno Haible  <bruno@clisp.org>
80208
80209         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
80210         nonnull.
80211
80212 2004-03-29  Paul Eggert  <eggert@twinsun.com>
80213
80214         Merge changes to getloadavg.c from coreutils and Emacs.
80215
80216         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
80217         Define to an expression, not to the empty string.
80218         Include cloexec.h and xalloc.h.
80219         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
80220         Use set_cloexec_flag rather than rolling our own.
80221         * lib/cloexec.c, lib/cloexec.h: New files.
80222
80223 2004-03-29  Paul Eggert  <eggert@twinsun.com>
80224
80225         * m4/cloexec.m4: New file.
80226
80227 2004-03-18  Paul Eggert  <eggert@twinsun.com>
80228
80229         * lib/getopt.h: Sync with libc CVS.
80230
80231 2004-03-18  Paul Eggert  <eggert@twinsun.com>
80232             Bruno Haible  <bruno@clisp.org>
80233
80234         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
80235         mbswidth.
80236
80237 2004-03-18  Paul Eggert  <eggert@twinsun.com>
80238             Bruno Haible  <bruno@clisp.org>
80239
80240         * lib/mbswidth.h: Include <wchar.h> only if
80241         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
80242         <wchar.h>.
80243         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
80244
80245 2004-03-09  Paul Eggert  <eggert@twinsun.com>
80246
80247         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
80248         Sync with libc CVS.
80249         * lib/getopt_int.h: New file, also synced from libc.
80250
80251 2004-03-09  Paul Eggert  <eggert@twinsun.com>
80252
80253         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
80254         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
80255         Bring back getopt.c, getopt.h, getopt1.c.
80256
80257 2004-03-07  Paul Eggert  <eggert@twinsun.com>
80258
80259         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
80260         All uses changed.  Check for sa_sigaction member; this fixes
80261         a bug first reported by Jason Andrade in
80262         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
80263
80264 2004-03-07  Paul Eggert  <eggert@twinsun.com>
80265
80266         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
80267         '#if' expressions.  Unlike the code it replaces, it does not
80268         depend on (defined _SC_PAGESIZE).  However, it does depend on
80269         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
80270         first reported by Jason Andrade in
80271         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
80272
80273 2004-02-25  Simon Josefsson  <jas@extundo.com>
80274
80275         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
80276
80277 2004-02-25  Simon Josefsson  <jas@extundo.com>
80278
80279         * lib/strdup.h: New file.
80280         * lib/strdup.c: Include it.
80281         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
80282         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
80283
80284 2004-02-23  Karl Berry  <karl@gnu.org>
80285
80286         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
80287         (from fencepost.gnu.org:/gd/gnuorg).
80288
80289 2004-02-23  Karl Berry  <karl@gnu.org>
80290
80291         * config/srclistvars.sh (GNUORG) [karl]: redefine.
80292         * config/srclist.txt: add maintain/standards documents.
80293
80294 2004-02-18  Bruno Haible  <bruno@clisp.org>
80295
80296         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
80297         Reported by Derek Robert Price <derek@ximbiot.com>.
80298
80299 2004-02-16  Karl Berry  <karl@gnu.org>
80300
80301         * config/mkinstalldirs, install-sh: update from automake.
80302
80303 2004-02-06  Karl Berry  <karl@gnu.org>
80304
80305         * m4/po.m4: update from gettext 0.14.1.
80306
80307 2004-02-06  Karl Berry  <karl@gnu.org>
80308
80309         * lib/config.charset: update from gettext 0.14.1.
80310
80311 2004-02-05  Paul Eggert  <eggert@twinsun.com>
80312
80313         Add comments and code, prompted by suggestions from Bruno Haible
80314         for sh-quote.
80315         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
80316         describing the enum quoting_style values.
80317         * lib/quotearg.c (quotearg_alloc): New function.
80318         (quotearg_buffer_restyled): Treat lone { and } as special.
80319         Treat = as special.  Work around bug with older shells
80320         that "see" a '\' that is really the 2nd byte of a multibyte char.
80321         Quote empty string with shell_quoting_style.
80322
80323 2004-02-03  Bruno Haible  <bruno@clisp.org>
80324
80325         * m4/pipe.m4: New file, from GNU gettext.
80326
80327 2004-02-03  Bruno Haible  <bruno@clisp.org>
80328
80329         * lib/pipe.h: New file, from GNU gettext.
80330         * lib/pipe.c: New file, from GNU gettext.
80331
80332 2004-01-27  Bruno Haible  <bruno@clisp.org>
80333
80334         * m4/execute.m4: New file, from GNU gettext.
80335
80336 2004-01-27  Bruno Haible  <bruno@clisp.org>
80337
80338         * lib/execute.h: New file, from GNU gettext.
80339         * lib/execute.c: New file, from GNU gettext.
80340         * lib/w32spawn.h: New file, from GNU gettext.
80341
80342 2004-01-24  Paul Eggert  <eggert@twinsun.com>
80343
80344         Merge from diffutils.
80345
80346         * lib/file-type.c (file_type): Add typed memory objects.
80347         * lib/file-type.h (S_TYPEISTMO): New macro.
80348
80349         * lib/c-stack.h (c_stack_action): Remove argv argument.
80350         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
80351         (die): Don't calculate message unless segv_action returns.
80352         (get_stack_location, min_address_from_argv, max_address_from_argv,
80353         volatile stack_base, volatile_stack_size): Remove.
80354         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
80355         that every segmentation violation is a stack overflow.  (Ouch!)
80356         See Debian bug 136249 (still outstanding) for more info about why
80357         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
80358
80359 2004-01-24  Paul Eggert  <eggert@twinsun.com>
80360
80361         Exit-status fix from coreutils.
80362
80363         Use exit_failure consistently in place of EXIT_FAILURE,
80364         so that program exit statuses are consistent on failure.
80365
80366         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
80367         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
80368         * lib/argmatch.h: Comment fix to match the above.
80369         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
80370         Now a macro referring to exit_failure, instead of a separate
80371         variable.  Include "exitfail.h" to get it.
80372         * lib/xstrtol.h: Include "exitfail.h".
80373         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
80374
80375         * lib/long-options.c (parse_long_options): Use prototype
80376         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
80377         for clarity.
80378
80379 2004-01-21  Jim Meyering  <jim@meyering.net>
80380
80381         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
80382         so as not to conflict with a different-sized __mktime_internal
80383         function in GNU libc.
80384         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
80385         Problem building statically-linked `ls' reported by Michael Brunnbauer.
80386
80387 2004-01-20  Karl Berry  <karl@gnu.org>
80388
80389         * config/config.guess: update from config.
80390
80391         * config/srclistvars.sh: GNUWWWLICENSES for karl.
80392
80393 2004-01-20  Bruno Haible  <bruno@clisp.org>
80394
80395         Safer stack allocation.
80396         * lib/setenv.c: Include allocsa.h.
80397         (alloca): Remove fallback definition.
80398         (freea): Remove macro.
80399         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
80400         instead of freea.
80401
80402 2004-01-20  Bruno Haible  <bruno@clisp.org>
80403
80404         * m4/eealloc.m4: New file, from GNU gettext.
80405
80406 2004-01-20  Bruno Haible  <bruno@clisp.org>
80407
80408         * m4/allocsa.m4: New file, from GNU gettext.
80409
80410 2004-01-20  Bruno Haible  <bruno@clisp.org>
80411
80412         * lib/xallocsa.h: New file, from GNU gettext.
80413         * lib/xallocsa.c: New file, from GNU gettext.
80414
80415 2004-01-20  Bruno Haible  <bruno@clisp.org>
80416
80417         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
80418
80419 2004-01-20  Bruno Haible  <bruno@clisp.org>
80420
80421         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
80422         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
80423         specially.
80424
80425 2004-01-20  Bruno Haible  <bruno@clisp.org>
80426
80427         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
80428         patch.
80429
80430 2004-01-20  Bruno Haible  <bruno@clisp.org>
80431
80432         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
80433
80434 2004-01-20  Bruno Haible  <bruno@clisp.org>
80435
80436         * lib/eealloc.h: New file.
80437
80438 2004-01-20  Bruno Haible  <bruno@clisp.org>
80439
80440         * lib/binary-io.h: Avoid warnings on Cygwin.
80441
80442 2004-01-20  Bruno Haible  <bruno@clisp.org>
80443
80444         * lib/allocsa.h: New file, from GNU gettext.
80445         * lib/allocsa.c: New file, from GNU gettext.
80446
80447 2004-01-18  Karl Berry  <karl@gnu.org>
80448
80449         * doc/gpl.texi, doc/lgpl.texi: new files.
80450
80451 2004-01-18  Karl Berry  <karl@gnu.org>
80452
80453         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
80454         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
80455
80456 2004-01-15  Paul Eggert  <eggert@twinsun.com>
80457
80458         Merge from coreutils.
80459
80460         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
80461         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
80462         (gl_DEFAULT_POSIX2_VERSION): Move
80463         the documentation from 'configure' into 'config.hin',
80464         so that 'configure --help' isn't burdened by it and
80465         we don't have to worry about its formatting there.
80466         Reword the documentation so that it's more succinct
80467         and can be run together into a single paragraph.
80468         * m4/same.m4 (gl_SAME): Check for pathconf.
80469
80470 2004-01-15  Paul Eggert  <eggert@twinsun.com>
80471
80472         Merge from coreutils.
80473
80474         * lib/posixver.c: Include posixver.h.
80475
80476         * lib/same.c: Include <stdbool.h>, <limits.h>.
80477         (_POSIX_NAME_MAX): Define if not defined.
80478         (MIN): New macro.
80479         (same_name): If file names are silently truncated, report
80480         that the file names are the same if they are the same after
80481         the silent truncation.
80482
80483         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
80484         conversion function.
80485         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
80486         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
80487         longer needed.
80488
80489 2004-01-15  Jim Meyering  <jim@meyering.net>
80490
80491         Merge from coreutils.
80492
80493         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
80494         if no library is required.
80495         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
80496         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
80497         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
80498         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
80499         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
80500         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
80501         value, $ac_cv_search_crypt, if it's "none required".
80502         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
80503         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
80504         not gl_FUNC_GETLOADAVG.
80505         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
80506         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
80507
80508 2004-01-15  Jim Meyering  <jim@meyering.net>
80509
80510         Merge from coreutils.
80511
80512         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
80513         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
80514         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
80515
80516         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
80517         optional configure-time default.
80518
80519         * lib/version-etc.c (version_etc_copyright): Update copyright date.
80520
80521         * lib/xreadlink.c (xreadlink): Correct outdated comment.
80522
80523 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
80524
80525         Merge from coreutils.
80526
80527         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
80528         value, $ac_cv_search_nanosleep, if it's "none required".
80529
80530 2004-01-14  Paul Eggert  <eggert@twinsun.com>
80531
80532         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
80533         with like-named macro in fnmatch.c.
80534         (EXT): Use an internal constant instead.
80535
80536         Merge fnmatch patches from glibc.
80537         * lib/fnmatch.c (mbsinit): Remove define.
80538         Add libc_hidden_ver (__fnmatch, fnmatch).
80539         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
80540         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
80541
80542 2004-01-14  Karl Berry  <karl@gnu.org>
80543
80544         * config/install-sh: update from automake.
80545
80546 2004-01-13  Karl Berry  <karl@gnu.org>
80547
80548         * config/install-sh: update from automake.
80549
80550 2004-01-09  Karl Berry  <karl@gnu.org>
80551
80552         * config/install-sh: update from automake.
80553
80554 2004-01-05  Karl Berry  <karl@gnu.org>
80555
80556         * config/config.{sub,guess}: update from config.
80557
80558 2003-12-31  Karl Berry  <karl@gnu.org>
80559
80560         * config/depcomp: update from automake.
80561
80562 2003-12-14  Karl Berry  <karl@gnu.org>
80563
80564         * lib/config.charset: update from gettext-runtime.
80565
80566 2003-12-03  Paul Eggert  <eggert@twinsun.com>
80567
80568         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
80569         Bug reported by Alfred M. Szmidt.
80570
80571 2003-12-03  Bruno Haible  <bruno@clisp.org>
80572
80573         * m4/gettext.m4: Upgrade from gettext-0.13.
80574         * m4/po.m4: Upgrade from gettext-0.13.
80575         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
80576         * m4/intmax.m4: New file, from gettext-0.13.
80577         * m4/printf-posix.m4: New file, from gettext-0.13.
80578
80579 2003-11-29  Karl Berry  <karl@gnu.org>
80580
80581         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
80582
80583 2003-11-25  Paul Eggert  <eggert@twinsun.com>
80584             Bruno Haible  <bruno@clisp.org>
80585
80586         * lib/printf-parse.h: Don't include sys/types.h.
80587         (ARG_NONE): New macro.
80588         (char_directive): Change type of *arg_index fields to size_t.
80589         * lib/printf-parse.c: Don't include sys/types.h.
80590         (SSIZE_MAX): Remove macro.
80591         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
80592         Remove unnecessary overflow check.
80593         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
80594         fields.
80595
80596 2003-11-25  Bruno Haible  <bruno@clisp.org>
80597
80598         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
80599
80600 2003-11-25  Bruno Haible  <bruno@clisp.org>
80601
80602         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
80603         gt_TYPE_SSIZE_T.
80604
80605 2003-11-24  Paul Eggert  <eggert@twinsun.com>
80606
80607         * modules/alloca: Remove dependency on xalloc.
80608
80609 2003-11-24  Paul Eggert  <eggert@twinsun.com>
80610
80611         * lib/alloca.c: Remove dependency on xalloc module.
80612         (xalloc_die): Remove.
80613         (memory_full) [!defined emacs]: New macro.
80614         [!defined emacs]: Don't include xalloc.h.
80615         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
80616         address arithmetic overflows.  Change datatypes a bit to avoid
80617         unnecessary casts.
80618
80619 2003-11-22  Jim Meyering  <jim@meyering.net>
80620
80621         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
80622         s/size/size_t/.
80623
80624 2003-11-21  Karl Berry  <karl@gnu.org>
80625
80626         * config/config.{sub,guess}: update from config.
80627
80628 2003-11-18  Karl Berry  <karl@gnu.org>
80629
80630         * config/config.{sub,guess}: update from config.
80631
80632         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
80633
80634 2003-11-17  Paul Eggert  <eggert@twinsun.com>
80635
80636         * README: Mention that S+T cannot overflow if S is the size of
80637         an existing object and T is sufficiently small.
80638
80639 2003-11-17  Jim Meyering  <jim@meyering.net>
80640
80641         On systems without utime and without a utimes function capable of
80642         dealing with a NULL struct utimbuf* argument, this utime replacement
80643         could -- in unusual circumstances -- leak a file descriptor.
80644         * lib/utime.c: Include <unistd.h> and <errno.h>.
80645         (utime_null): Be sure to close `fd' and to preserve errno.
80646         Reported by Geoff Collyer via Arnold Robbins.
80647
80648 2003-11-17  Bruno Haible  <bruno@clisp.org>
80649
80650         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
80651         (Depends-on): Add xsize.
80652
80653 2003-11-17  Bruno Haible  <bruno@clisp.org>
80654
80655         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
80656
80657 2003-11-17  Bruno Haible  <bruno@clisp.org>
80658
80659         * lib/vasnprintf.c (alloca): Remove fallback definition.
80660         (freea): Remove definition.
80661         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
80662         Reported by Paul Eggert.
80663
80664 2003-11-16  Paul Eggert  <eggert@twinsun.com>
80665             Bruno Haible  <bruno@clisp.org>
80666
80667         Protect against address arithmetic overflow.
80668         * lib/printf-args.h: Include stddef.h.
80669         (arguments): Change type of field 'count' to size_t.
80670         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
80671         'unsigned int' where appropriate.
80672         * lib/printf-parse.h: Include sys/types.h.
80673         (char_directive): Change type of *arg_index fields to ssize_t.
80674         (char_directives): Change type of fields 'count', max_*_length to
80675         size_t.
80676         * lib/printf-parse.c: Include sys/types.h and xsize.h.
80677         (SSIZE_MAX): Define fallback value.
80678         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
80679         instead of 'int' where appropriate. Check a_allocated, d_allocated
80680         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
80681         * lib/vasnprintf.c: Include xsize.h.
80682         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
80683         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
80684         overflow. Avoid wraparound when converting a width or precision from
80685         decimal to binary.
80686
80687 2003-11-16  Bruno Haible  <bruno@clisp.org>
80688
80689         Update from GNU gettext.
80690         * lib/printf-parse.c: Generalize to it can be compiled for wide
80691         strings.
80692         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
80693         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
80694         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
80695         SNPRINTF): New macros.
80696         Don't include <alloca.h> if the file is used inside libintl.
80697         (local_wcslen): New function, for Solaris 2.5.1.
80698         (VASNPRINTF): Use it instead of wcslen.
80699
80700 2003-11-16  Bruno Haible  <bruno@clisp.org>
80701
80702         * lib/xsize.h (xmax): New function.
80703         (xsum, xsum3, xsum4): Declare as "pure" functions.
80704
80705 2003-11-12  Paul Eggert  <eggert@twinsun.com>
80706
80707         * modules/xalloc (Files): Undo latest change, since xalloc.h
80708         no longer needs SIZE_MAX or PTRDIFF_MAX.
80709
80710 2003-11-12  Paul Eggert  <eggert@twinsun.com>
80711
80712         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
80713         gl_PTRDIFF_MAX.
80714
80715 2003-11-12  Paul Eggert  <eggert@twinsun.com>
80716
80717         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
80718         "return", to pacify some unknown compiler.  Problem reported
80719         by Joerg Schilling.
80720
80721 2003-11-12  Paul Eggert  <eggert@twinsun.com>
80722
80723         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
80724         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
80725         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
80726         heuristic is just as accurate as far as we know, and it removes a
80727         dependency on size_max.m4 and ptrdiff_max.m4.
80728
80729 2003-11-11  Bruno Haible  <bruno@clisp.org>
80730
80731         * modules/xsize (Files): Add m4/size_max.m4.
80732         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
80733
80734 2003-11-11  Bruno Haible  <bruno@clisp.org>
80735
80736         * m4/size_max.m4: New file.
80737         * m4/ptrdiff_max.m4: New file.
80738         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
80739         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
80740         (gl_XALLOC): Invoke it.
80741
80742 2003-11-11  Bruno Haible  <bruno@clisp.org>
80743
80744         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
80745         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
80746         defined.
80747
80748 2003-11-10  Paul Eggert  <eggert@twinsun.com>
80749
80750         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
80751         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
80752         rejected some allocations of exactly SIZE_MAX - 2 bytes.
80753         From Bruno Haible.
80754         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
80755         not (size_t) -1, since it's defined here.
80756
80757 2003-11-09  Karl Berry  <karl@gnu.org>
80758
80759         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
80760
80761 2003-11-06  Paul Eggert  <eggert@twinsun.com>
80762
80763         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
80764         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
80765         Reject sizes of exactly SIZE_MAX bytes.
80766         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
80767         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
80768
80769 2003-11-05  Bruno Haible  <bruno@clisp.org>
80770
80771         * lib/xsize.h: Include limits.h, to avoid a possible collision with
80772         SIZE_MAX defined in <limits.h> on Solaris.
80773
80774 2003-11-04  Jim Meyering  <jim@meyering.net>
80775
80776         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
80777         variable names, rather than @VAR@.
80778         * modules/poll: Likewise.
80779
80780 2003-11-04  Bruno Haible  <bruno@clisp.org>
80781
80782         * modules/xsize: New file.
80783         * modules/linebreak: Depend on xsize.
80784         * MODULES.html.sh (func_all_modules): Add xsize.
80785
80786 2003-11-04  Bruno Haible  <bruno@clisp.org>
80787
80788         * m4/xsize.m4: New file.
80789
80790 2003-11-04  Bruno Haible  <bruno@clisp.org>
80791
80792         * lib/xsize.h: New file.
80793         * lib/linebreak.c: Include xsize.h.
80794         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
80795         argument for overflow.
80796         Suggested by Paul Eggert.
80797
80798 2003-11-03  Karl Berry  <karl@gnu.org>
80799
80800         * config/config.{guess,sub}: update from config.
80801
80802 2003-11-03  Jim Meyering  <jim@meyering.net>
80803
80804         * modules/userspec (lib_SOURCES): Add userspec.h.
80805         (Include): Add "userspec.h".
80806         Improve description.
80807
80808 2003-11-03  Jim Meyering  <jim@meyering.net>
80809
80810         * lib/userspec.c: Include "userspec.h".
80811         * lib/userspec.h: New file.
80812
80813 2003-11-03  Bruno Haible  <bruno@clisp.org>
80814
80815         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
80816
80817 2003-11-03  Bruno Haible  <bruno@clisp.org>
80818
80819         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
80820         available, to avoid (extremely rare) race condition.
80821         Suggested by Paul Eggert.
80822
80823 2003-11-02  Karl Berry  <karl@gnu.org>
80824
80825         * config/srclist.txt (vasprintf.c): sync broken, sigh.
80826
80827 2003-10-31  Paul Eggert  <eggert@twinsun.com>
80828
80829         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
80830         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
80831         (read_filesystem_list): Set and use me_type_malloced.
80832         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
80833         whatever the type happens to be), for brevity and consistency.
80834         Check for size calculation overflow on Alphas running OSF/1.
80835
80836 2003-10-31  Jim Meyering  <jim@meyering.net>
80837
80838         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
80839
80840         * lib/linebuffer.c: Include <string.h> for declaration of memset.
80841
80842 2003-10-30  Paul Eggert  <eggert@twinsun.com>
80843             Bruno Haible  <bruno@clisp.org>
80844
80845         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
80846         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
80847
80848 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
80849
80850         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
80851         netbsd*-gnu*.  Suggested by Robert Millan.
80852
80853 2003-10-29  Paul Eggert  <eggert@twinsun.com>
80854
80855         * modules/group-member: Depend on stdbool.
80856
80857 2003-10-29  Paul Eggert  <eggert@twinsun.com>
80858
80859         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
80860
80861 2003-10-29  Paul Eggert  <eggert@twinsun.com>
80862
80863         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
80864         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
80865         after the 'gnu' in these cases.  This fixes some bugs in the
80866         previous change, and is based on suggestions by Robert Millan.
80867
80868 2003-10-29  Paul Eggert  <eggert@twinsun.com>
80869
80870         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
80871         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
80872         no longer needed.
80873         * lib/quotearg.c (quotearg_n_options): Use it.
80874         * lib/group-member.c: Include <stdbool.h>.
80875         (free_group_info): Arg is now const *; don't free arg.
80876         (get_group_info): Now returns bool and accepts struct group_info *,
80877         rather than returning a malloc'ed struct group_info *.
80878         All uses changed.  Check for overflow in internal size calculation.
80879
80880         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
80881         rather than xmalloc/xrealloc.
80882         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
80883         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
80884         conformance bug: the old code used a pointer after freeing the
80885         storage that it addressed.
80886         * lib/hash.c (hash_initialize): Simplify the code by using
80887         xalloc_oversized rather than doing it by hand.
80888         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
80889         the buffer preserved.  Use free and xmalloc instead.
80890         * lib/quotearg.c (quotearg_n_options): Likewise.
80891         Use a simpler test for size overflow.  Don't use xalloc_oversized
80892         because unsigned int might be wider than size_t (!); this suggests
80893         that we should switch from unsigned int to size_t for slot numbers.
80894
80895 2003-10-28  Paul Eggert  <eggert@twinsun.com>
80896
80897         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
80898         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
80899         NetBSD kernels.  Requested by Richard Stallman.
80900
80901 2003-10-27  Paul Eggert  <eggert@twinsun.com>
80902
80903         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
80904         to allocate the returned structure.  Do not allocate a subarray,
80905         as x2nrealloc will do that.
80906         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
80907         instead of xnrealloc.
80908         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
80909
80910 2003-10-27  Bruno Haible  <bruno@clisp.org>
80911
80912         * lib/stdbool_.h: Better support for BeOS.
80913
80914 2003-10-26  Paul Eggert  <eggert@twinsun.com>
80915
80916         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
80917         now uses inline.
80918
80919 2003-10-26  Paul Eggert  <eggert@twinsun.com>
80920
80921         * lib/xalloc.h (xalloc_oversized): New static inline function, for
80922         callers that want to do their own size-overflow checking.  Include
80923         <stdbool.h>, since xalloc_oversized returns bool.
80924         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
80925         to use xalloc_oversized.
80926
80927         Add two functions x2realloc, x2nrealloc, for programs that grow
80928         arrays dynamically by doubling their sizes.
80929         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
80930         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
80931         New functions.
80932
80933         Port to C99 semantics for 'inline' of external functions.
80934         Bug reported by Bruno Haible.
80935         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
80936         with the old contents of xnmalloc.
80937         (xnmalloc, xmalloc): Use it.
80938         (xnrealloc_inline): New static inline function,
80939         with the old contents of xnrealloc.
80940         (xnrealloc, xrealloc): Use it.
80941
80942         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
80943         that.
80944
80945 2003-10-26  Karl Berry  <karl@gnu.org>
80946
80947         * config/srclist.txt (COPYING.DOC): no longer available from
80948         /gd/gnuorg; don't know where the ultimate source is.
80949
80950 2003-10-25  Paul Eggert  <eggert@twinsun.com>
80951
80952         Fix several address-calculation bugs in the hash modules,
80953         plus some minor code cleanup.
80954
80955         * lib/hash.h: Include <stdbool.h>, for bool.
80956         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
80957         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
80958         hash_get_n_entries, hash_get_max_bucket_length,
80959         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
80960         hash_rehash): Use size_t rather than unsigned.
80961         * lib/hash.c (struct hash_table, hash_get_n_buckets,
80962         hash_get_n_buckets_used, hash_get_n_entries,
80963         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
80964         hash_get_entries, hash_do_for_each, hash_string, is_prime,
80965         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
80966         Likewise.
80967         (SIZE_MAX): Define if not defined.
80968         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
80969         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
80970         hash_print):
80971         Use const * when possible.
80972         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
80973         (check_tuning): Fix bug: if tuning parameters were very close to
80974         0 or 1, rounding errors could have caused subscript violations.
80975         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
80976         (hash_initialize): Add 'fail:' label
80977         to free table and return NULL, and use it to simplify code.
80978         Use calloc rather than clearing the storage ourself.
80979         (hash_initialize, hash_rehash): Check for arithmetic overflow in
80980         buffer size calculations.
80981         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
80982         Include <stddef.h>, for size_t.
80983         * lib/hash-pjw.c (hash_pjw): Likewise.
80984         Switch to method described by Bruno Haible.
80985         Include <limits.h>, for CHAR_BIT.
80986         (SIZE_BITS): New macro.
80987
80988 2003-10-23  Paul Eggert  <eggert@twinsun.com>
80989
80990         * m4/getline.m4 (AM_FUNC_GETLINE):
80991         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
80992         hosts.  Problem reported by Derek Robert Price in
80993         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
80994         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
80995         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
80996
80997 2003-10-21  Paul Eggert  <eggert@twinsun.com>
80998
80999         * lib/getndelim2.c (getndelim2): When size calculation overflows,
81000         ceiling the allocation at NMAX bytes rather than silently
81001         discarding input bytes before NMAX is reached.  This makes
81002         a difference only if NMAX exceeds SIZE_MAX / 2.
81003
81004         * lib/obstack.c: Merge from glibc.
81005         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
81006         Add libc_hidden_def (_obstack_newchunk).
81007         (_obstack_free) [! defined _LIBC]: Remove.
81008         [defined _LIBC]: Make a strong alias from obstack_free, rather than
81009         a clone of the function body.
81010         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
81011         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
81012
81013         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
81014         glibc.
81015         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
81016         arg to memcpy.
81017
81018         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
81019         (obstack_ptr_grow_fast, obstack_int_grow_fast):
81020         Don't use lvalue casts, as GCC plans to remove support for them
81021         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
81022         was also present in the non-GCC version, indicating that this
81023         code had always been buggy and had never been widely used.
81024         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
81025         Use the fast variant of each macro, rather than copying the
81026         definiens of the fast variant; that way, we'll be more likely to
81027         catch future bugs in the fast variants.
81028
81029 2003-10-20  Bruno Haible  <bruno@clisp.org>
81030
81031         * modules/wait-process: New file.
81032         * MODULES.html.sh (func_all_modules): Add wait-process.
81033
81034 2003-10-20  Bruno Haible  <bruno@clisp.org>
81035
81036         * m4/wait-process.m4: New file.
81037
81038 2003-10-20  Bruno Haible  <bruno@clisp.org>
81039
81040         * lib/wait-process.h: New file, from GNU gettext.
81041         * lib/wait-process.c: New file, from GNU gettext.
81042
81043 2003-10-19  Jim Meyering  <jim@meyering.net>
81044
81045         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
81046         HPUX 10.20.
81047
81048 2003-10-18  Karl Berry  <karl@gnu.org>
81049
81050         * config/config.guess: update from config.
81051
81052 2003-10-16  Paul Eggert  <eggert@twinsun.com>
81053
81054         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
81055         (getgroups): First arg is int, not size_t.
81056         Don't let 'free' mangle errno.
81057
81058 2003-10-16  Paul Eggert  <eggert@twinsun.com>
81059
81060         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
81061
81062 2003-10-16  Karl Berry  <karl@gnu.org>
81063
81064         * config/config.{guess,sub}: update from config.
81065
81066 2003-10-16  Jim Meyering  <jim@meyering.net>
81067
81068         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
81069         memcpy.
81070
81071 2003-10-15  Paul Eggert  <eggert@twinsun.com>
81072
81073         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
81074         (SIZE_MAX): Remove.
81075         (new_exclude, add_exclude_file): Initial size no longer needs to
81076         be a power of 2.
81077         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
81078         our own address arithmetic overflow checking.
81079
81080         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
81081         (fnmatch): Do not alloca more than 2000 wide characters;
81082         instead, use malloc for large buffers.
81083         Check for address arithmetic overflow, and return -1
81084         with errno set to ENOMEM in that case.
81085         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
81086         (NEW_PATTERN): Do not alloca more than 8000 bytes;
81087         instead, return -1.  Check for address arithmetic overflow.
81088
81089 2003-10-14  Paul Eggert  <eggert@twinsun.com>
81090
81091         Handle invalid suffixes and overflow independently, so that
81092         callers can treat them independently as needed.  Fix some bugs in
81093         suffix handling, e.g., "100k@" was not diagnosed as an invalid
81094         suffix for a human-readable blocksize.  The major caller-visible
81095         change is the addition of a new
81096         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
81097         that both overflow and suffix chars were found.
81098
81099         * lib/human.c (humblock): Don't check separately for invalid suffix
81100         char; that is xstrtoumax's job (now that its bug is fixed).
81101         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
81102         INTMAX_MAX]: New macros.
81103         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
81104         TYPE_MAXIMUM): New macros.
81105         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
81106         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
81107         if overflow occurs, as it's what __strtol does and it's more useful
81108         in practice.
81109         (__xstrtol): If __strtol reports some error other than ERANGE,
81110         reflect it to the caller as LONGINT_INVALID.  If it reports
81111         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
81112         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
81113         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
81114         value.
81115         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
81116         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
81117         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
81118         [defined UINTMAX_MAX]: New macros.
81119
81120 2003-10-14  Bruno Haible  <bruno@clisp.org>
81121
81122         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
81123
81124 2003-10-14  Bruno Haible  <bruno@clisp.org>
81125
81126         * m4/sig_atomic_t: New file, from GNU gettext.
81127         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
81128
81129 2003-10-14  Bruno Haible  <bruno@clisp.org>
81130
81131         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
81132         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
81133         Also use volatile where needed.
81134
81135 2003-10-12  Paul Eggert  <eggert@twinsun.com>
81136
81137         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
81138         Change maintainer from Bruno Haible to 'all'.
81139
81140 2003-10-12  Paul Eggert  <eggert@twinsun.com>
81141
81142         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
81143
81144 2003-10-12  Paul Eggert  <eggert@twinsun.com>
81145
81146         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
81147         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
81148         and define in terms of the other primitives.
81149         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
81150         (SIZE_MAX): Define if not already defined.
81151         (array_size_overflow): New function.
81152         (xalloc_die): Abort instead of exiting if 'error' returns.
81153         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
81154         (xmalloc, xrealloc): Use them.
81155         (xcalloc): Check for address arithmetic overflow.
81156         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
81157         a bit faster than strcpy.
81158
81159 2003-10-10  Simon Josefsson  <jas@extundo.com>
81160
81161         * modules/argp (Depends-on): Add restrict and strcase.
81162
81163 2003-10-10  Simon Josefsson  <jas@extundo.com>
81164
81165         * m4/argp.m4: Add AC_C_INLINE.
81166
81167 2003-10-08  Paul Eggert  <eggert@twinsun.com>
81168
81169         Merge getpass from libc, plus a few fixes.
81170
81171         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
81172         Include <stdbool.h>.
81173         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
81174         __fsetlocking to empty.
81175         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
81176         do include <bits/libc-lock.h>.
81177         Do not include <fcntl.h>; not needed.
81178         [_LIBC]: Include <wchar.h>.
81179         (NOTCANCEL_MODE): New macro.
81180         (flockfile, funlockfile) [_LIBC]: New macros.
81181         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
81182         [!_LIBC]: New macros.
81183         (call_fclose): New function.
81184         (getpass): Use it.  Save tty stream separately; this simplifies the
81185         code and makes it more reliable if stdin happens to equal stdout.
81186         Invoke __fsetlocking on tty.
81187         Handle thread cancellation if needed.
81188         Namespace cleanup (use __tcgetattr, __getline).
81189         Use bool for Booleans.
81190         [USE_IN_LIBIO]: Handle wide streams.
81191         [!_LIBC]: Unconditionally do the fseek, since we don't know what
81192         stream might go where.
81193
81194         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
81195         doesn't have to include <stdio.h> before us.
81196         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
81197         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
81198         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
81199         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
81200         if not declared, so that we can use getpass.c code from libc without
81201         rewriting it.
81202         (flockfile, ftrylockfile, funlockfile): New macros.
81203
81204 2003-10-08  Paul Eggert  <eggert@twinsun.com>
81205
81206         * modules/getpass: Depend on stdbool.
81207
81208 2003-10-08  Paul Eggert  <eggert@twinsun.com>
81209
81210         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
81211
81212 2003-10-07  Karl Berry  <karl@gnu.org>
81213
81214         * config/config.{guess,sub}: update from config.
81215
81216 2003-10-06  Jim Meyering  <jim@meyering.net>
81217             Bruno Haible  <bruno@clisp.org>
81218
81219         This lets translators provide better translations for the
81220         "Written by ..." part of --version output.
81221         * lib/version-etc.h: Include stdarg.h.
81222         (version_etc_copyright): Declare as readonly.
81223         (version_etc): Make this function variadic with a NULL-terminated list
81224         of author name strings.
81225         (version_etc_va): New declaration.
81226         * lib/version-etc.c: Include stdarg.h, stdlib.h.
81227         (version_etc_copyright): Declare as readonly.
81228         (version_etc_va): New function. Provide a different translatable string
81229         for each possible number of authors < 10. Abbreviate when there are 10
81230         authors or more.
81231         (version_etc): Make this function variadic. Call version_etc_va.
81232         Suggestion from Gary V. Vaughan.
81233
81234         * lib/long-options.h (parse_long_options): Change prototype: the
81235         authors string is moved to the end and becomes variadic.
81236         * lib/long-options.c: Include stdarg.h.
81237         (parse_long_options): Make this function variadic, too.
81238         Call version_etc_va, not version_etc.
81239
81240 2003-10-06  Bruno Haible  <bruno@clisp.org>
81241
81242         * modules/version-etc-2: Remove file.
81243         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
81244
81245 2003-10-06  Bruno Haible  <bruno@clisp.org>
81246
81247         * modules/fatal-signal: New file.
81248         * MODULES.html.sh (func_all_modules): Add fatal-signal.
81249
81250 2003-10-06  Bruno Haible  <bruno@clisp.org>
81251
81252         * m4/fatal-signal.m4: New file.
81253         * m4/signalblocking.m4: New file, from GNU gettext.
81254
81255 2003-10-06  Bruno Haible  <bruno@clisp.org>
81256
81257         * lib/version-etc-2.h: Remove file.
81258         * lib/version-etc-2.c: Remove file.
81259
81260 2003-10-06  Bruno Haible  <bruno@clisp.org>
81261
81262         * lib/fatal-signal.h: New file, from GNU gettext.
81263         * lib/fatal-signal.c: New file, from GNU gettext.
81264
81265 2003-10-05  Paul Eggert  <eggert@twinsun.com>
81266
81267         * README: Rework advice for preventing empty .o files.
81268         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
81269         not <sys/types.h>.
81270
81271 2003-10-04  Karl Berry  <karl@gnu.org>
81272
81273         * lib/argp*: update from libc.
81274
81275 2003-10-04  Karl Berry  <karl@gnu.org>
81276
81277         * config/config.{guess,sub}: update from config.
81278
81279 2003-10-02  Bruno Haible  <bruno@clisp.org>
81280
81281         * modules/lchown (Include): Add lchown.h.
81282         * modules/time_r (Include): Use "..." syntax.
81283         * modules/xgetdomainname (Include): Add xgetdomainname.h.
81284
81285 2003-10-01  Simon Josefsson  <jas@extundo.com>
81286
81287         * MODULES.html.sh (func_all_modules): Move gethostname from section
81288         'based on' to section 'lacking' POSIX:2001.
81289
81290 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
81291
81292         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
81293         to output mode on the same stream.
81294
81295 2003-09-29  Paul Eggert  <eggert@twinsun.com>
81296
81297         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
81298         Fix arg typo in previous patch.
81299
81300 2003-09-28  Jim Meyering  <jim@meyering.net>
81301
81302         * lib/error.c: Correct cpp indentation.
81303
81304 2003-09-27  Paul Eggert  <eggert@twinsun.com>
81305
81306         * modules/free: New file.
81307
81308 2003-09-27  Paul Eggert  <eggert@twinsun.com>
81309
81310         * m4/free.m4: New file.
81311
81312 2003-09-27  Paul Eggert  <eggert@twinsun.com>
81313
81314         * lib/minmax.h (MIN, MAX)
81315         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
81316         Omit the special code that used __typeof__, since we worry that
81317         it could be more trouble than it's worth.  See:
81318         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
81319         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
81320
81321         * lib/free.c: New file.
81322
81323 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
81324
81325         Trivial fixes to Makefile.am parts of module listings.
81326         * modules/strstr: Append strstr.h to lib_SOURCES.
81327         * modules/strcase: Likewise, for strcase.h.
81328
81329 2003-09-27  Karl Berry  <karl@gnu.org>
81330
81331         * config/mkinstalldirs: update from automake.
81332
81333 2003-09-26  Paul Eggert  <eggert@twinsun.com>
81334
81335         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
81336         (error_tail): Do not loop, reallocating temporary buffer, since
81337         the output cannot contain more wide characters than the input
81338         contains bytes, the size must be big enough already.  This avoids
81339         one potential size overflow calculation.  Check for size overflow
81340         when calculating temporary buffer size.  Free temporary buffer
81341         when done, if it was allocated with malloc; this plugs a memory
81342         leak.  Remove casts from void * to pointers, that are no longer
81343         needed now that we're assuming C89 or better.
81344
81345         Merge error changes from glibc.
81346
81347         * lib/error.c, error.h: Update copyright notice header to match glibc.
81348         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
81349         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
81350         Disable cancellation while printing error.
81351         * lib/error.h: Prepend __ to parameter names.
81352
81353 2003-09-26  Jim Meyering  <jim@meyering.net>
81354
81355         * lib/error.c (error_tail): Move some declarations
81356         into inner scope where the local variables are used.
81357
81358 2003-09-26  Bruno Haible  <bruno@clisp.org>
81359
81360         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
81361         stpncpy().
81362         Don't define stpncpy through config.h; it's now done through stpncpy.h.
81363
81364 2003-09-26  Bruno Haible  <bruno@clisp.org>
81365
81366         * lib/stpncpy.h (gnu_stpncpy): New declaration.
81367         (stpncpy): Define as alias for gnu_stpncpy.
81368         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
81369
81370 2003-09-25  Simon Josefsson  <jas@extundo.com>
81371
81372         * lib/xgetdomainname.h: New file.
81373         * lib/xgetdomainname.c: New file.
81374
81375 2003-09-25  Simon Josefsson  <jas@extundo.com>
81376             Bruno Haible  <bruno@clisp.org>
81377
81378         * modules/getdomainname: New file.
81379         * modules/xgetdomainname: New file.
81380         * MODULES.html.sh (func_all_modules): Add getdomainname,
81381         xgetdomainname.
81382
81383 2003-09-25  Simon Josefsson  <jas@extundo.com>
81384             Bruno Haible  <bruno@clisp.org>
81385
81386         * m4/getdomainname.m4: New file.
81387
81388 2003-09-25  Simon Josefsson  <jas@extundo.com>
81389             Bruno Haible  <bruno@clisp.org>
81390
81391         * lib/getdomainname.h: New file.
81392         * lib/getdomainname.c: New file.
81393
81394 2003-09-25  Karl Berry  <karl@gnu.org>
81395
81396         * lib/argp-fmtstream.c, argp-help.c: update from libc.
81397
81398 2003-09-25  Karl Berry  <karl@gnu.org>
81399
81400         * config/install-sh: update from automake.
81401
81402 2003-09-25  Bruno Haible  <bruno@clisp.org>
81403
81404         * modules/version-etc-2: New file, from modules/version-etc with
81405         modifications.
81406         * MODULES.html.sh (func_all_modules): Add version-etc-2.
81407
81408 2003-09-25  Bruno Haible  <bruno@clisp.org>
81409
81410         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
81411         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
81412
81413 2003-09-24  Simon Josefsson  <jas@extundo.com>
81414
81415         * modules/xgethostname: Add xgethostname.h.
81416
81417 2003-09-24  Paul Eggert  <eggert@twinsun.com>
81418
81419         * lib/linebuffer.c (freebuffer): Don't free the argument, just
81420         the buffer associated with the argument.  Bug reported by
81421         Simon Josefsson.
81422
81423 2003-09-24  Paul Eggert  <eggert@twinsun.com>
81424
81425         * README: Document assumptions that 'int' is at least 32 bits
81426         wide, that integer arithmetic is 2's complement without overflow,
81427         that there are no holes in integer values, that adding sizes of
81428         two nonoverlapping objects can't overflow, and that all-bits-zero
81429         yields scalar zero.  Fix spelling and capitalization typos.
81430
81431 2003-09-19  Karl Berry  <karl@gnu.org>
81432
81433         * lib/argp.h: update from libc.
81434
81435 2003-09-17  Paul Eggert  <eggert@twinsun.com>
81436
81437         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
81438         to avoid spurious warnings like "AC_RUN_IFELSE was called before
81439         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
81440
81441 2003-09-17  Paul Eggert  <eggert@twinsun.com>
81442
81443         * gnulib-tool: Use "test -h", not "test -L", for portability
81444         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
81445         (tags_regexp): Remove, since \| doesn't conform to POSIX.
81446         (sed_extract_prog): Issue s commands one-by-one, rather than
81447         using \| in one s command.
81448
81449 2003-09-16  Paul Eggert  <eggert@twinsun.com>
81450
81451         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
81452         input error, instead of returning NULL the next time we are called
81453         (and therefore losing track of errno).
81454
81455 2003-09-16  Bruno Haible  <bruno@clisp.org>
81456
81457         * gnulib-tool (func_create_testdir): Warn about duplicated
81458         dependencies.
81459
81460 2003-09-15  Paul Eggert  <eggert@twinsun.com>
81461
81462         * modules/argmatch, modules/fatal, modules/obstack,
81463         modules/xalloc, modules/xgethostname: Sort dependencies by
81464         importance, not alphabetically.
81465
81466 2003-09-15  Paul Eggert  <eggert@twinsun.com>
81467
81468         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
81469         fails, so that the caller gets the proper errno.
81470
81471         * lib/readutmp.c (read_utmp): Likewise.
81472         Check for fstat error.  Close stream and free storage
81473         when failing.
81474
81475 2003-09-14  Karl Berry  <karl@gnu.org>
81476
81477         * config/srclist.txt (strdup.c): disable for c89 changes.
81478
81479 2003-09-14  Jim Meyering  <jim@meyering.net>
81480
81481         * lib/getloadavg.c: Correct cpp indentation.
81482         * lib/strdup.c: Likewise.
81483         * lib/vasnprintf.c: Likewise.
81484
81485 2003-09-14  Bruno Haible  <bruno@clisp.org>
81486
81487         * modules/fwriteerror: New file.
81488         * MODULES.html.sh (func_all_modules): Add fwriteerror.
81489
81490 2003-09-14  Bruno Haible  <bruno@clisp.org>
81491
81492         * lib/fwriteerror.h: New file.
81493         * lib/fwriteerror.c: New file.
81494
81495 2003-09-12  Paul Eggert  <eggert@twinsun.com>
81496
81497         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
81498         modules/xgethostname, modules/xalloc: Depend on exit.
81499
81500 2003-09-12  Paul Eggert  <eggert@twinsun.com>
81501
81502         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
81503
81504         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
81505         and AC_MINIX, too, so that their extensions are available.
81506
81507         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
81508         This macro has been superseded by gl_BACKUPFILE.
81509
81510         More patches to assume C89 or better.
81511
81512         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
81513
81514         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
81515         unconditionally.
81516         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
81517         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
81518         Include <string.h>, <stdlib.h> unconditionally.
81519         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
81520         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
81521         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
81522         headers or for string.h.
81523         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
81524         or strtoul.
81525
81526         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
81527         headers.
81528         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
81529         * m4/userspec.m4 (gl_USERSPEC): Likewise.
81530         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
81531         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
81532         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
81533         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
81534         memcpy, memset.
81535         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
81536         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
81537         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
81538         strtol.
81539         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
81540         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
81541         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
81542         strtoul.
81543
81544 2003-09-12  Paul Eggert  <eggert@twinsun.com>
81545
81546         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
81547         * lib/obstack.c [!defined _LIBC]: Likewise.
81548         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
81549         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
81550         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
81551
81552         More changes to assume C89 or better.
81553
81554         * lib/error.c (error_tail): Assume vprintf.
81555
81556         * lib/argmatch.c (getenv): Remove decl.
81557         * lib/progreloc.c (get_full_program_name): Define via prototype.
81558         * lib/setenv.c (clearenv): Likewise.
81559         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
81560         needed.
81561         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
81562         (malloc, memcpy): Remove decls.
81563         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
81564         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
81565         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
81566         (memcpy): Remove macro.
81567         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
81568         (__P): Remove.  All uses removed.
81569         (PTR): Remove.  All uses changed to void *.
81570         (CHAR_BIT, NULL): Remove.
81571         (spaces, zeros, memset_space, memset_zero)
81572         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
81573         Remove.
81574         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
81575         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
81576         Define with prototype.
81577         Remove now-unnecessary prototype decl.
81578         (extra_args_spec): Assume ANSI C.  All uses changed.
81579         (extra_args_spec_iso): Remove.
81580         (my_strftime, emacs_strftimeu): Define via prototype.
81581         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
81582         unconditionally.
81583         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
81584         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
81585         (strtoul, strtol): Remove decls.
81586         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
81587         LONG_MAX): Remove.
81588         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
81589         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
81590         (LOCALE_PARAM_PROTO): New macro.
81591         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
81592         (INTERNAL (strtol), strtol): Define with a prototype.
81593         (PARAMS): Remove.  All uses removed.
81594         * lib/tempname.c: Include <string.h> unconditionally.
81595         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
81596         * lib/xgethostname.c (main): Define with a prototype.
81597         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
81598         Include <stdlib.h> unconditionally.
81599         (calloc, malloc, realloc, free): Remove decls.
81600         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
81601         Include <stdlib.h> unconditionally.  Sort include file names.
81602         (strtod): Remove.
81603         (xstrtod): Define with a prototype.
81604         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
81605         (strtol, strtoul): Remove decls.
81606
81607 2003-09-11  Paul Eggert  <eggert@twinsun.com>
81608
81609         More patches to assume C89 or better.
81610         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
81611         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
81612         string.h, memchr, STDC_HEADERS.
81613
81614 2003-09-11  Paul Eggert  <eggert@twinsun.com>
81615
81616         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
81617         Include <stdlib.h>, <string.h> unconditionally.
81618         Remove now-unnecessary cast to char *.
81619         * lib/strnlen.c: Include <string.h> unconditionally.
81620         * lib/yesno.c (yesno): Define with a prototype.
81621
81622 2003-09-11  Bruno Haible  <bruno@clisp.org>
81623
81624         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
81625
81626 2003-09-10  Jim Meyering  <jim@meyering.net>
81627
81628         * lib/error.c: Correct indentation of cpp directives.
81629
81630 2003-09-10  Bruno Haible  <bruno@clisp.org>
81631
81632         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
81633         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
81634         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
81635         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
81636         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
81637         <stdlib.h> and <string.h> checks.
81638         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
81639         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
81640
81641 2003-09-10  Bruno Haible  <bruno@clisp.org>
81642
81643         * lib/strcspn.c: Include <string.h> unconditionally.
81644         * lib/strpbrk.c: Include <string.h> unconditionally.
81645         * lib/strstr.c: Include <string.h> unconditionally.
81646         * lib/unicodeio.c: Include <string.h> unconditionally.
81647         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
81648         * lib/unsetenv.c: Likewise.
81649         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
81650         * lib/yesno.c: Include <stdlib.h> unconditionally.
81651         (rpmatch): Add prototype.
81652
81653 2003-09-09  Paul Eggert  <eggert@twinsun.com>
81654
81655         More patches to assume C89 or better.
81656         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
81657         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
81658         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
81659         or for string.h.
81660         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
81661         stdlib.h.
81662         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
81663         C headers.
81664         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
81665         string.h.
81666         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
81667         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
81668         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
81669         or for string.h.
81670         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
81671         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
81672         C headers.
81673         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
81674         memcpy.
81675         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
81676         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
81677         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
81678         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
81679         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
81680         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
81681         string.h, free.
81682         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
81683         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
81684         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
81685         C headers, or for string.h.
81686         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
81687         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
81688         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
81689         headers, memory.h, stdlib.h, string.h, strings.h.
81690         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
81691         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
81692         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
81693         strchr.
81694         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
81695         headers, memory.h, string.h.
81696         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
81697         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
81698         free.
81699         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
81700         headers.
81701         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
81702         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
81703         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
81704         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
81705         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
81706
81707 2003-09-09  Paul Eggert  <eggert@twinsun.com>
81708
81709         More K&R removal.
81710
81711         * lib/acosl.c (main): Use a prototype.
81712         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
81713         tanl.c: Likewise.
81714
81715         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
81716
81717         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
81718         (getopt, etopt_long, getopt_long_only, _getopt_internal)
81719         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
81720         with a prototype.
81721         * lib/getopt.c (const): Remove macro.
81722         Include <string.h> unconditionally.
81723         (my_index): Remove; all uses changed to strchr.
81724         (strlen): Remove decl.
81725         (exchange): Remove forward decl; no longer needed.
81726         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
81727         Define with prototype.
81728         * lib/getopt1.c (const): Remove macro.
81729         (getopt_long, getopt_long_only, main): Define with prototype.
81730
81731         * lib/getugroups.c: Include <string.h> unconditionally.
81732
81733         * lib/getusershell.c: Include <stdlib.h> unconditionally.
81734         (getusershell, setusershell, endusershell, readname, main):
81735         Define with prototypes.
81736
81737         * lib/group-member.c: Include group-member.h first.
81738         Include <stdlib.h> unconditionally.
81739
81740         * lib/hard-locale.c: Include hard-locale.h first.
81741         Include <stdlib.h>, <string.h> unconditionally.
81742
81743         * lib/hash.c (free, malloc): Remove decls.
81744         Include <stdlib.h> unconditionally.
81745
81746         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
81747         (getenv): Do not declare.
81748
81749         * lib/idcache.c: Include <string.h> unconditionally.
81750
81751         * lib/long-options.c: Include long-options.h first, to test interface.
81752         Include <stdlib.h> unconditionally.
81753
81754         * lib/makepath.c: Include makepath.h first, to test interface.
81755         Include <stdlib.h> and <string.h> unconditionally.
81756
81757         * lib/linebuffer.c: Include <stdlib.h>.
81758         (free): Remove decl.
81759
81760         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
81761         stddef.h. rpl_malloc returns void *, not char *.
81762         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
81763         prototype.
81764
81765         * lib/md5.h: Include <limits.h> unconditionally.
81766         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
81767         (__P): Remove; all uses removed.
81768         * lib/md5.c: Include "md5.h" first.
81769         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
81770         md5_buffer, md5_process_bytes, md5_process_block):
81771         Define with prototypes.
81772         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
81773         * lib/sha.c: Include "sha.h" first.
81774         Include <stdlib.h>, <string.h> unconditionally.
81775
81776         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
81777         * lib/memcmp.c (__ptr_t): Likewise.
81778         * lib/memrchr.c (__ptr_t): Likewise.
81779         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
81780         Include <string.h> unconditionally.
81781         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
81782         * lib/memchr.c: Include <stdlib.h> unconditionally.
81783         * lib/memchr.c (LONG_MAX): Remove.
81784         * lib/memrchr.c (LONG_MAX): Likewise.
81785         * lib/memchr.c (__memchr): Define via a prototype.
81786         * lib/memrchr.c (__memrchr): Likewise.
81787         * lib/memcmp.c (__P): Remove, and remove all uses.
81788         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
81789         Remove forward decls; no longer needed.
81790         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
81791         Use types required by C89 in prototype.
81792
81793         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
81794         * lib/savedir.c: Likewise.
81795         * lib/mkdir.c (free): Remove decl.
81796         * lib/rmdir.c (rmdir): Define with a prototype.
81797         * lib/savedir.c: Include savedir.h first, to test interface.
81798
81799         * lib/mktime.c (STDC_HEADERS): Remove.
81800         Include <stdlib.h>, <string.h> unconditionally.
81801
81802         * lib/modechange.c: Include <stdlib.h> unconditionally.
81803         (malloc): Remove decl.
81804
81805         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
81806         (free): Remove decl.
81807
81808         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
81809         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
81810         (This type really should be intptr_t, but that's a C99ism.)
81811         (_obstack_memcpy): Remove: all uses changed to memcpy.
81812         Include <string.h> unconditionally.
81813         (struct obstack): Assume __STDC__ for types of members
81814         chunkfun, freefun, extra_arg.
81815         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
81816         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
81817         obstack_begin, obstack_specify_allocation,
81818         obstack_specify_allocation_with_arg, obstack_chunkfun,
81819         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
81820         Remove unprototyped decls and the macros that use them.
81821         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
81822         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
81823         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
81824         (defined __STDC__ && __STDC__)]:
81825         Remove nonprototyped code.
81826         Include <stdlib.h> unconditionally.
81827         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
81828         _obstack_allocated_p, _obstack_free, obstack_free,
81829         _obstack_memory_used, print_and_abort):
81830         Define using prototypes.
81831         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
81832         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
81833         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
81834         obstack_next_free, obstack_object_size, obstack_room) [0]:
81835         Remove unused, unprototyped code.
81836
81837         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
81838
81839         * lib/physmem.c (physmem_total, physmem_available, main): Define
81840         with prototypes.
81841
81842         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
81843         (main): Define with a prototype.
81844
81845         * lib/posixver.c (getenv): Remove decl.
81846
81847         * lib/putenv.c (malloc): Returns void *, not char *.
81848         Include <string.h> unconditionally.
81849         (strchr, memcpy, NULL): Do not define.
81850
81851         * lib/readtokens.c: Include readtokens.h first, to test interface.
81852         Include <stdlib.h>, <string.h> unconditionally.
81853         (init_tokenbuffer): Define with a prototype.
81854
81855         * lib/regex.c (PARAMS): Remove.  All uses removed.
81856         All uses of _RE_ARGS removed, too.
81857         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
81858         unconditionally.
81859         (bzero): Assume memset exists.
81860         (memcmp, memcpy, NULL): Remove.
81861         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
81862         char, or assignments to local vars of type signed char.
81863         (init_syntax_once, PREFIX(extract_number_and_incr),
81864         PREFIX(print_partial_compiled_pattern),
81865         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
81866         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
81867         PREFIX(regex_grow_registers), PREFIX(regex_compile),
81868         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
81869         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
81870         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
81871         wcs_compile_range, byte_compile_range, truncate_wchar,
81872         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
81873         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
81874         count_mbs_length, wcs_re_match_2_internal,
81875         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
81876         PREFIX(alt_match_null_string_p),
81877         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
81878         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
81879         regfree, PREFIX(extract_number)): Define with prototype.  Remove
81880         now-unnecessary declaration, if any.
81881         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
81882         regcomp, regexec):
81883         Remove now-unnecessary casts among pointer types.
81884         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
81885
81886         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
81887         (free): Remove decl.
81888
81889         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
81890
81891         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
81892         (free): Remove decl.
81893
81894         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
81895         * lib/xgetcwd.c: Likewise.
81896
81897         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
81898         (free): Remove decl.
81899
81900         * lib/strchrnul.c (strchrnul): Define with a prototype.
81901         Fix bug: c_in was not converted to char before searching.
81902
81903         The following changes are not K&R related:
81904
81905         * lib/group-member.h: Include <sys/types.h>, so that this file is
81906         self-contained.
81907         * lib/makepath.h: Likewise.
81908
81909         * lib/getusershell.c (readname, default_index, line_size, readname):
81910         Use size_t, not int, for sizes.
81911         (readname): If the size overflows, report an error instead of
81912         looping forever.
81913
81914 2003-09-09  Paul Eggert  <eggert@twinsun.com>
81915
81916         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
81917         libc.
81918
81919 2003-09-09  Paul Eggert  <eggert@twinsun.com>
81920
81921         * README: New section: portability guidelines.
81922
81923 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
81924
81925         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
81926         C89 spec.
81927
81928 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
81929
81930         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
81931
81932 2003-09-08  Paul Eggert  <eggert@twinsun.com>
81933
81934         Assume C89 or better; remove K&R cruft.
81935         A few of these changes were first proposed by Derek Robert Price
81936         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
81937
81938         * lib/addext.c: Include <string.h> unconditionally.
81939         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
81940         Don't declare getenv or malloc.
81941
81942         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
81943         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
81944         (NULL): Remove.
81945         (find_stack_direction, alloca): Use prototypes.
81946
81947         * lib/atexit.c (atexit): Define using a prototype.
81948
81949         * lib/basename.c, dirname.c, stripslash.c:
81950         Include <string.h> unconditionally.
81951
81952         * lib/bcopy.c: Include <stddef.h>.
81953         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
81954
81955         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
81956
81957         * lib/error.h (error, error_at_line, error_print_progname)
81958         [! (defined (__STDC__) && __STDC__)]: Remove decls.
81959         * lib/error.c: Include error.h first, to check interface.
81960         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
81961         (VA_START): Remove; all uses changeed to va_start.
81962         (exit, strerror): Remove decls.
81963         (error_print_progname): Prototype uncondionally.
81964         Don't include <errno.h>; no longer needed.
81965         (private_strerror): Remove.
81966         (error_tail): Always define.
81967         (error, error_at_line): Assume C89 or better; always use prototypes.
81968         * lib/fatal.c: Include "fatal.h" first, to test interface.
81969         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
81970         (VA_START): Remove; all uses changed to va_start.
81971         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
81972         this case.
81973         (exit): Remove decl.
81974         (fatal): Prototype unconditionally.  Assume va_start works.
81975         Abort at end, to pacify gcc.
81976
81977         * lib/euidaccess.c (main): Define with a prototype.
81978
81979         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
81980
81981         * lib/exitfail.c: Include <stdlib.h> unconditionally.
81982
81983         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
81984         prototypes.
81985         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
81986         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
81987         (getenv): Remove decl.
81988         (fnmatch): Define using a prototype.
81989         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
81990         (FCT): Define using a prototype.
81991
81992         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
81993
81994         * lib/gethostname.c: Include <stddef.h>.
81995         (gethostname): Define with prototype.  Length is size_t, not int.
81996
81997 2003-09-08  Paul Eggert  <eggert@twinsun.com>
81998
81999         Assume C89 or better; remove K&R cruft.
82000         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
82001         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
82002         string.h, getenv, malloc.
82003         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
82004         headers.
82005         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
82006         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
82007         do not check for strerror.
82008         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
82009         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
82010         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
82011         do not check for doprnt or vprintf.
82012         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
82013         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
82014
82015 2003-09-08  Paul Eggert  <eggert@twinsun.com>
82016
82017         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
82018         getversion.c should have been removed then, but was accidentally
82019         preserved.
82020
82021         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
82022         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
82023
82024 2003-09-08  Karl Berry  <karl@gnu.org>
82025
82026         * config/config.sub, config.guess, srclistvars.sh: update from savannah
82027                 config, forget about prep.
82028
82029         * config/depcomp, missing: update from automake.
82030
82031 2003-09-07  Paul Eggert  <eggert@twinsun.com>
82032
82033         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
82034         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
82035
82036 2003-09-07  Paul Eggert  <eggert@twinsun.com>
82037
82038         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
82039         copy_tm_result.  Bug reported by Simon Josefsson in
82040         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
82041
82042 2003-09-06  Paul Eggert  <eggert@twinsun.com>
82043
82044         * m4/time_r.m4: New file.
82045         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
82046         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
82047         is. Check for timegm declaration.
82048         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
82049         Do not check for gmtime_r.
82050         Replace mktime if __mktime_internal does not exist and if mktime
82051         hasn't been replaced already.
82052
82053 2003-09-06  Paul Eggert  <eggert@twinsun.com>
82054
82055         * lib/time_r.c, lib/time_r.h: New files.
82056
82057         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
82058         __localtime_r.
82059         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
82060         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
82061
82062         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
82063         __gmtime_r.
82064         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
82065         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
82066         Include <time_r.h>.
82067
82068         * lib/timegm.c: Switch to glibc implementation, with the following
82069         changes:
82070         [defined HAVE_CONFIG_H]: Include <config.h>.
82071         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
82072         (__mktime_internal) [!defined _LIBC]: New decl.
82073         (__gmtime_r) [!defined _LIBC]: New macro and function.
82074         (timegm): Use a prototype, since gnulib assumes C89.
82075         Do not bother declaring tmp to be const, as it's not really usefu.
82076         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
82077         (timegm): Declare only if HAVE_DECL_TIMEGM.
82078
82079 2003-09-06  Paul Eggert  <eggert@twinsun.com>
82080
82081         * MODULES.html.sh (func_all_modules): Add time_r.
82082         * modules/time_r: New file.
82083         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
82084         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
82085
82086 2003-09-03  Paul Eggert  <eggert@twinsun.com>
82087
82088         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
82089         Bug reported by Lute Kamstra in
82090         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
82091
82092         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
82093         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
82094         course with correspondingly smaller numbers for tomorrow and
82095         yesterday.  From Tadayoshi Funaba.  Originally installed into
82096         sh-utils on 1999-08-07, but the patch got lost (I guess during the
82097         coreutils merge?).
82098
82099 2003-08-31  Simon Josefsson  <jas@extundo.com>
82100
82101         * modules/timegm: New file.
82102         * MODULES.html.sh (func_all_modules): Add timegm.
82103
82104 2003-08-31  Simon Josefsson  <jas@extundo.com>
82105
82106         * m4/timegm.m4: New file.
82107
82108 2003-08-31  Simon Josefsson  <jas@extundo.com>
82109
82110         * lib/timegm.h: New file.
82111         * lib/timegm.c: New file.  Based on
82112         wget-1.8.2/src/http.c:mktime_from_utc.
82113
82114 2003-08-31  Karl Berry  <karl@gnu.org>
82115
82116         * lib/argp.h: update from libc.
82117
82118 2003-08-28  Bruno Haible  <bruno@clisp.org>
82119
82120         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
82121         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
82122         followed by '#define fnmatch fnmatch_posix' gives an error.
82123
82124 2003-08-28  Bruno Haible  <bruno@clisp.org>
82125
82126         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
82127         warning on QNX, which defines O_BINARY to 000000.
82128
82129 2003-08-27  Jim Meyering  <jim@meyering.net>
82130
82131         * m4/mkstemp.m4: Require that the system mkstemp be able to create
82132         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
82133         would fail after 32.  Reported by Danny Levinson.  Details here:
82134         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
82135
82136 2003-08-24  Bruno Haible  <bruno@clisp.org>
82137
82138         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
82139         MSVC7 <stdio.h> is included later.
82140
82141 2003-08-22  Simon Josefsson  <jas@extundo.com>
82142
82143         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
82144
82145 2003-08-20  Karl Berry  <karl@gnu.org>
82146
82147         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
82148
82149 2003-08-20  Bruno Haible  <bruno@clisp.org>
82150
82151         * modules/progname: New file.
82152         * MODULES.html.sh (func_all_modules): Add progname.
82153
82154 2003-08-20  Bruno Haible  <bruno@clisp.org>
82155
82156         * lib/progname.h: New file, from GNU gettext.
82157         * lib/progname.c: New file, from GNU gettext.
82158         * lib/progreloc.c: New file, from GNU gettext.
82159
82160 2003-08-19  Jim Meyering  <jim@meyering.net>
82161
82162         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
82163         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
82164
82165 2003-08-19  Bruno Haible  <bruno@clisp.org>
82166
82167         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
82168         more.
82169
82170 2003-08-19  Bruno Haible  <bruno@clisp.org>
82171
82172         * lib/xstrdup.c: Assume <string.h> exists.
82173
82174 2003-08-18  Paul Eggert  <eggert@twinsun.com>
82175
82176         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
82177         in makefile rules.
82178
82179 2003-08-18  Jim Meyering  <jim@meyering.net>
82180
82181         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
82182         * m4/lib-ld.m4: Likewise.
82183
82184 2003-08-18  Jim Meyering  <jim@meyering.net>
82185
82186         * lib/setenv.h: Indent nested cpp directive.
82187         * lib/vasnprintf.c: Remove trailing blanks.
82188
82189 2003-08-17  Simon Josefsson  <jas@extundo.com>
82190
82191         * modules/xstrndup: New file.
82192         * MODULES.html.sh (func_all_modules): Add xstrndup.
82193
82194 2003-08-17  Simon Josefsson  <jas@extundo.com>
82195
82196         * modules/argp: Fix autoconf macro name. Add more dependencies.
82197
82198 2003-08-17  Simon Josefsson  <jas@extundo.com>
82199
82200         * m4/xstrndup.m4: New file.
82201
82202 2003-08-17  Simon Josefsson  <jas@extundo.com>
82203
82204         * m4/argp.m4: New file.
82205
82206 2003-08-17  Simon Josefsson  <jas@extundo.com>
82207             Bruno Haible  <bruno@clisp.org>
82208
82209         * lib/xstrndup.h: New file.
82210         * lib/xstrndup.c: New file.
82211
82212 2003-08-17  Bruno Haible  <bruno@clisp.org>
82213
82214         * modules/strndup (Files, Include): Add lib/strndup.h.
82215
82216 2003-08-17  Bruno Haible  <bruno@clisp.org>
82217
82218         * modules/euidaccess (Files): Add lib/euidaccess.h.
82219
82220 2003-08-17  Bruno Haible  <bruno@clisp.org>
82221
82222         * lib/strndup.h: New file.
82223
82224 2003-08-17  Bruno Haible  <bruno@clisp.org>
82225
82226         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
82227         like AC_GNU_SOURCE.
82228         * modules/extensions (configure.ac): Comment out the invocation of
82229         gl_USE_SYSTEM_EXTENSIONS.
82230
82231 2003-08-16  Paul Eggert  <eggert@twinsun.com>
82232
82233         Merges from coreutils, etc.
82234         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
82235         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
82236         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
82237         fixing a typo.
82238         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
82239         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
82240
82241 2003-08-16  Paul Eggert  <eggert@twinsun.com>
82242
82243         Document merge from coreutils.
82244         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
82245         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
82246         * modules/utime: Add m4/utimes-null.m4.
82247
82248 2003-08-16  Paul Eggert  <eggert@twinsun.com>
82249
82250         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
82251         space, undoing this 2003-08-12 change:
82252         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
82253
82254 2003-08-16  Paul Eggert  <eggert@twinsun.com>
82255
82256         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
82257         strtoul.c from libc, undoing this 2003-08-12 change:
82258         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
82259
82260 2003-08-16  Jim Meyering  <jim@meyering.net>
82261
82262         Merges from coreutils.
82263         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
82264         prefix.  Adjust cache variables similarly.  Create 500 rather than
82265         just 300 files, to exercise bug on Darwin6.5, too.
82266         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
82267         $missing_dir.
82268         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
82269         AM_SYS_POSIX_TERMIOS.
82270         Reported by mkc@mathdogs.com.
82271         Also change use of $am_cv_sys_posix_termios
82272         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
82273         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
82274         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
82275         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
82276         in /proc/mounts until it finds one with matching device number.  This
82277         is unnecessary when the FILE argument *is* a mount point.  No stat call
82278         is necessary in that case.  So, disable the statvfs-testing code on
82279         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
82280         as RedHat bug# 84846.
82281         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
82282         to 1MB, so as not to render systems with no stack size limit (e.g.,
82283         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
82284         Include <unistd.h>.  On some systems,
82285         it is required for the definition of _SC_PAGESIZE.
82286
82287 2003-08-16  Jim Meyering  <jim@meyering.net>
82288
82289         Merge from coreutils.
82290         * lib/xstrtoimax.c: #else #if -> #elif.
82291         * lib/xstrtoumax.c: Likewise.
82292
82293 2003-08-16  Jim Meyering  <jim@meyering.net>
82294
82295         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
82296         * m4/utimes.m4: Removed.
82297         * m4/utimes-null.m4: Renamed from utimes.m4.
82298
82299         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
82300         to 1MB, so as not to render systems with no stack size limit (e.g.,
82301         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
82302         Include <unistd.h>.  On some systems,
82303         it is required for the definition of _SC_PAGESIZE.
82304
82305 2003-08-16  Jim Meyering  <jim@meyering.net>
82306         and Paul Eggert  <eggert@cs.ucla.edu>
82307
82308         Merges from coreutils, etc.
82309
82310         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
82311         using the latest version from cvs.  This avoids problems with #line
82312         directives using a vendor (Sun) compiler.
82313         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
82314         Don't set GETGROUPS_LIB here; now it's
82315         done via getgroups.m4's wrapper function.
82316         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
82317         rather than just in sh-util/configure.in, so that the
82318         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
82319         same.
82320         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
82321         AC_FUNC_GETLOADAVG where to find getloadavg.c.
82322         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
82323         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
82324         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
82325         Remove code that is now done by the newly-required macros.
82326         Append $(EXEEXT) to DF_PROG.
82327         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
82328         Do not invoke or require the following here,
82329         since prereq.m4 or some gnulib .m4 now does this for us:
82330         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
82331         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
82332         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
82333         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
82334         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
82335         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
82336         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
82337         AC_FUNC_OBSTACK.
82338         Do not replace the following functions, as this is now the job
82339         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
82340         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
82341         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
82342         atexit getpass, strdup, getpagesize.
82343         Replace 'raise'.
82344         Do not check for the following functions, as this is now the job
82345         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
82346         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
82347         setregid.
82348         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
82349         Check for sys/sysctl.h.
82350         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
82351         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
82352         of checking for ssize_t ourselves.
82353
82354         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
82355         Require every macro that gnulib/modules/* suggests for us.
82356         (jm_PREREQ_ADDEXT): New macro.
82357         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
82358         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
82359
82360         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
82361         (gl_PHYSMEM): Use it.
82362         Also check for `table' function.
82363         Check for new headers and functions.
82364         Add check for sys/sysmp.h.
82365         With suggestions from Kaveh Ghazi.
82366         Ignore headers that are present but cannot be compiled.  This
82367         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
82368         C 5.4.
82369
82370 2003-08-15  Paul Eggert  <eggert@twinsun.com>
82371
82372         Document merge from coreutils.
82373         * modules/userspec: Depend on posixver.
82374         * modules/strftime: Depend on tzset.
82375
82376 2003-08-15  Paul Eggert  <eggert@twinsun.com>
82377
82378         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
82379         rather than tab, after '#' in shell-script copyright notices.
82380         Suggested by Bruno Haible.
82381
82382 2003-08-15  Paul Eggert  <eggert@twinsun.com>
82383
82384         * config/srclist-update: Use three spaces, rather than tab, after '#'
82385         in shell-script copyright notices.  Suggested by Bruno Haible.
82386         Remove unnecessary parenthesization in regular expression.
82387
82388 2003-08-15  Jim Meyering  <jim@meyering.net>
82389
82390         Merge from coreutils.
82391         * lib/xgethostname.c: Include <stdlib.h>.
82392         (xghostname): Don't exit for anything other than memory-related
82393         failure; just return NULL.
82394         * lib/userspec.c: Include "posixver.h".
82395         (parse_user_spec): Accept `.' as a separator only
82396         in pre-POSIX-200112 mode.
82397         * lib/strtoimax.c: Use #elif rather than #else #if.
82398         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
82399         Remove function, now that we can rely on a working tzset function.
82400         [!_LIBC]: Ensure that the required autoconf test has been run.
82401         [!defined _NL_CURRENT && HAVE_STRFTIME]:
82402         Use underlying_strftime for %r.
82403         * lib/sha.c: Merge in some clean-up and optimization changes from
82404         glibc.
82405         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
82406         Ensure that it is a multiple of 64.
82407         Rearrange loop exit tests so as to avoid performing an
82408         additional fread after encountering an error or EOF.
82409         * lib/realloc.c: Update copyright date.
82410
82411 2003-08-15  Jim Meyering  <jim@meyering.net>
82412         and Paul Eggert  <eggert@twinsun.com>
82413
82414         Merge from coreutils.
82415         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
82416         member but strut utmpx does not.  Needed for AIX 4.3.3.
82417         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
82418
82419 2003-08-15  Jim Meyering  <jim@meyering.net>
82420         and Paul Eggert  <eggert@cs.ucla.edu>
82421
82422         Merges from coreutils, etc.
82423         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
82424         Require gl_FUNC_TZSET_CLOBBER.
82425         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
82426         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
82427         members.
82428
82429 2003-08-14  Paul Eggert  <eggert@twinsun.com>
82430
82431         Help the merge from coreutils.
82432         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
82433         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
82434         * m4/tzset.m4: Use it too.
82435
82436 2003-08-14  Paul Eggert  <eggert@twinsun.com>
82437
82438         * modules/tzset: New file.
82439
82440 2003-08-14  Jim Meyering  <jim@meyering.net>
82441
82442         Merges from coreutils.
82443         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
82444         variable names, rather than @FNMATCH_H@.
82445         * modules/alloca: Likewise for $(ALLOCA_H).
82446
82447         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
82448         the three copies of the literal target, `fnmatch.h'.
82449         * modules/alloca (alloca.h): Likewise.
82450
82451 2003-08-14  Jim Meyering  <jim@meyering.net>
82452
82453         Merge from coreutils.
82454         * m4/tzset.m4: New file.
82455         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
82456         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
82457         otherwise, AIX 5.1 systems would end up using the latter.
82458         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
82459         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
82460         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
82461         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
82462
82463 2003-08-14  Jim Meyering  <jim@meyering.net>
82464
82465         Merge from coreutils.
82466         * lib/obstack.h: Whitespace changes.
82467         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
82468         and xcalloc return values.
82469         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
82470         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
82471         hang on OSF/1 5.1 for DIR on both local and remote file systems.
82472         Reported by (and fix confirmed by) Nelson H. F. Beebe.
82473         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
82474         error from mntctl.
82475         Use mntctl's return value to drive the entry-processing loop, since
82476         we can't rely on the value of the vmt_length member in the last
82477         entry.  On some systems doing so could result in exhausting
82478         virtual memory.  Based in part on a patch from Mike Jetzer.
82479
82480 2003-08-14  Jim Meyering  <jim@meyering.net>
82481         and Paul Eggert  <eggert@twinsun.com>
82482
82483         Merges from coreutils, plus other fixes.
82484         * lib/physmem.c: Merge in portability changes from gcc/libiberty
82485         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
82486         for credits and details.  Thanks to Kaveh Ghazi for helping
82487         to keep these files in sync.
82488         (ARRAY_SIZE): Define it.
82489         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
82490         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
82491         (memcasecmp): Don't assume size_t fits in unsigned int.
82492         Remove casts and duplicate code.
82493         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
82494         (memcpy): Remove definition.
82495         Merge in some clean-up and optimization changes from glibc.
82496         [BLOCKSIZE]: Move definition to top of file.
82497         Ensure that it is a multiple of 64.
82498         Rearrange loop exit tests so as to avoid performing an
82499         additional fread after encountering an error or EOF.
82500         * lib/md5.h (md5_uintptr): Define.
82501         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
82502         return to the initial working directory.  Preserve errno
82503         for caller.
82504         * lib/idcache.c: Include "xalloc.h".
82505         (xmalloc, xrealloc): Remove decls.
82506         (getuser): Remove casts no longer required in C89.
82507         * lib/human.c: Include stdio.h, for sprintf.
82508         * lib/group-member.c: Include "xalloc.h".
82509         (xmalloc, xrealloc): Remove decls.
82510         (get_group_info): Remove casts no longer required in C89.
82511         * lib/getusershell.c (readname): Remove casts no longer required in
82512         C89.
82513         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
82514         * lib/getline.c: Whitespace fix, from coreutils.
82515
82516 2003-08-13  Paul Eggert  <eggert@twinsun.com>
82517
82518         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
82519         Check for isascii.
82520
82521         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
82522         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
82523         Undo previous (whitespace-only) change.
82524
82525 2003-08-13  Paul Eggert  <eggert@twinsun.com>
82526
82527         * lib/exclude.c: Include <ctype.h>
82528         (IN_CTYPE_DOMAIN): New macro.
82529         (is_space): New fn.
82530         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
82531         and empty lines.
82532
82533         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
82534         Undo previous (whitespace-only) change.
82535
82536 2003-08-13  Paul Eggert  <eggert@twinsun.com>
82537
82538         * config/srclist-update: Change update back to the old behavior,
82539         leaving whitespace alone.  Use one 'sed' command rather than a
82540         pipeline.
82541         (fixlicense): Now a variable, not a function.
82542         (remove_trailing_blanks): Remove.
82543         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
82544         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
82545         Undo previous (whitespace-only) change.
82546
82547 2003-08-12  Paul Eggert  <eggert@twinsun.com>
82548
82549         Merge from coreutils.
82550         * modules/euidaccess: Add lib_SOURCES, include for new
82551         file euidaccess.h
82552
82553 2003-08-12  Paul Eggert  <eggert@twinsun.com>
82554
82555         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
82556         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
82557         Normalize leading white space and remove trailing white space.
82558
82559         Merge from coreutils
82560         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
82561
82562         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
82563         0.12.1.  These files are now being upgraded automatically by
82564         ../config/srclist-update.
82565
82566 2003-08-12  Paul Eggert  <eggert@twinsun.com>
82567
82568         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
82569         Normalize leading white space and remove trailing white space.
82570         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
82571         notice, as per ../config/srclist-update.
82572
82573         Merge from coreutils.
82574         * lib/euidaccess.h: New file.
82575         * lib/euidaccess.c: Include it.
82576         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
82577         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
82578         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
82579
82580 2003-08-12  Paul Eggert  <eggert@twinsun.com>
82581
82582         * config/srclist-update: Add copyright notice.
82583         (remove_id_lines, remove_trailing_blanks): New constants.
82584         (fixfile): Use them to normalize spacing a bit in copied files.
82585         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
82586         Normalize leading white space and remove trailing white space.
82587
82588         * config/texinfo.tex: Sync with texinfo.
82589
82590         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
82591         strtoul.c from libc, to merge coreutils whitespace changes.
82592
82593         * config/srclist.txt: Get the following m4 files from gettext:
82594         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
82595         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
82596         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
82597         wint_t.m4.
82598
82599 2003-08-12  Karl Berry  <karl@gnu.org>
82600
82601         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
82602         been made.
82603
82604 2003-08-11  Paul Eggert  <eggert@twinsun.com>
82605
82606         * modules/gnu-source, m4/gnu-source.m4:
82607         Remove; we're assuming Autoconf 2.54 or later now.
82608         Suggested by Bruno Haible.
82609         * MODULES.html.sh (func_all_modules): Remove gnu-source.
82610
82611 2003-08-11  Bruno Haible  <bruno@clisp.org>
82612
82613         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
82614
82615 2003-08-11  Bruno Haible  <bruno@clisp.org>
82616
82617         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
82618         (vasnprintf): Use it instead of wcslen.
82619
82620 2003-08-11  Bruno Haible  <bruno@clisp.org>
82621
82622         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
82623         value to ensure that _Bool promotes to int. Use #define for _Bool when
82624         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
82625
82626 2003-08-10  Karl Berry  <karl@gnu.org>
82627
82628         * lib/regex.h: update from libc (whitespace fix).
82629
82630 2003-08-09  Paul Eggert  <eggert@twinsun.com>
82631
82632         Merge some files from coreutils.  These changes were
82633         originally made by Jim Meyering.
82634         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
82635         many older Unixes require this.
82636         * lib/alloca.c (alloca): Remove cast to argument of free;
82637         no longer needed in C89.
82638         * lib/alloca_.h, regex.h: Fix white space to match
82639         what GNU indent does.
82640
82641 2003-08-09  Paul Eggert  <eggert@twinsun.com>
82642
82643         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
82644         apparently Emacs's Unicode mode got confused before my 2003-08-05
82645         checkin.
82646
82647 2003-08-08  Paul Eggert  <eggert@twinsun.com>
82648
82649         * m4/extensions.m4: New file.
82650         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
82651         Require gl_USE_SYSTEM_EXTENSIONS.
82652         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
82653         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
82654
82655 2003-08-08  Paul Eggert  <eggert@twinsun.com>
82656
82657         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
82658         * modules/extensions, modules/gnu-source: New files.
82659         * modules/timespec, modules/unlocked-io: Depend on extensions.
82660
82661 2003-08-07  Paul Eggert  <eggert@twinsun.com>
82662
82663         * modules/restrict: New file.
82664         * MODULES.html.sh (func_all_modules): Add restrict.
82665         * modules/regex: Depend on restrict.
82666
82667 2003-08-07  Paul Eggert  <eggert@twinsun.com>
82668
82669         * m4/restrict.m4: New file.
82670         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
82671
82672 2003-08-07  Bruno Haible  <bruno@clisp.org>
82673
82674         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
82675         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
82676
82677 2003-08-07  Bruno Haible  <bruno@clisp.org>
82678
82679         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
82680         makes the module 'getndelim2' compatible with the module 'getline'.
82681
82682 2003-08-05  Paul Eggert  <eggert@twinsun.com>
82683
82684         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
82685         byte with "\201" to avoid glitches when editing that source file
82686         with multi-gnome-terminal.
82687
82688 2003-08-05  Paul Eggert  <eggert@twinsun.com>
82689
82690         * lib/bumpalloc.h: Remove.
82691
82692 2003-08-05  Paul Eggert  <eggert@twinsun.com>
82693
82694         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
82695         * modules/bumpalloc: Remove.
82696
82697 2003-08-04  Paul Eggert  <eggert@twinsun.com>
82698
82699         * lib/getloadavg.c: Change copyright notice and spacing to conform to
82700         GNU coding style.
82701
82702         Merge from coreutils.
82703         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
82704         1. From glibc.
82705         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
82706         from Karl Berry, implemented by Jim Meyering.
82707         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
82708         from Dmitry V. Levin.
82709         Remove anachronistic cast of xrealloc.
82710         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
82711         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
82712         type. Otherwise, it wouldn't compile with at least /bin/cc on
82713         ymp-cray-unicos9.0.2.X.
82714         Combine two mostly-identical uses of alloca into one.
82715         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
82716
82717 2003-08-04  Dave Love  <d.love@dl.ac.uk>
82718
82719         [From Emacs.]
82720
82721         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
82722         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
82723         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
82724         obsolete NLIST_NAME_UNION.
82725         [__GNU__]: Undef BSD and FSCALE.
82726         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
82727
82728 2003-08-03  Paul Eggert  <eggert@twinsun.com>
82729
82730         * lib/stdbool_.h (_Bool): Make it signed char, instead of
82731         an enum type, so that it's guaranteed to promote to int.  See:
82732         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
82733
82734 2003-08-03  Karl Berry  <karl@gnu.org>
82735
82736         * config/depcomp: update from automake.
82737
82738 2003-07-31  Paul Eggert  <eggert@twinsun.com>
82739
82740         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
82741         (strerror): Don't assume that a printable int fits in 14 bytes.
82742
82743 2003-07-31  Bruno Haible  <bruno@clisp.org>
82744
82745         * modules/getpass-gnu: New file.
82746         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
82747
82748 2003-07-31  Bruno Haible  <bruno@clisp.org>
82749
82750         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
82751
82752 2003-07-24  Karl Berry  <karl@gnu.org>
82753
82754         * config/missing: update from automake.
82755
82756 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
82757             Bruno Haible  <bruno@clisp.org>
82758
82759         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
82760         * lib/getline.c (getline, getdelim): Likewise.
82761         Remove _GNU_SOURCE define; now it's defined in config.h through
82762         m4/getline.m4.
82763
82764 2003-07-23  Karl Berry  <karl@gnu.org>
82765
82766         * config/config.sub: update from prep.
82767
82768 2003-07-22  Paul Eggert  <eggert@twinsun.com>
82769
82770         * modules/xalloc (Depends-on): Add exitfail.
82771         * modules/xmemcoll: Likewise.
82772
82773 2003-07-22  Paul Eggert  <eggert@twinsun.com>
82774
82775         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
82776         over-parenthesization in macros.
82777
82778         Sync with coreutils.
82779
82780         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
82781         required by C99.
82782
82783         Use `exit_failure' for xalloc and xmemcoll instead of their own
82784         private exit-failure variables.
82785         * lib/xalloc.h (xalloc_exit_failure): Remove.
82786         * lib/xmalloc.c: Likewise.  Include exitfail.h.
82787         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
82788         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
82789         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
82790         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
82791
82792 2003-07-20  Jim Meyering  <jim@meyering.net>
82793
82794         * modules/closeout (Depends-on): Add exitfail.
82795         Suggestion from Bruno Haible.
82796
82797 2003-07-19  Karl Berry  <karl@gnu.org>
82798
82799         * config/config.sub: update from prep.
82800
82801 2003-07-18  Paul Eggert  <eggert@twinsun.com>
82802
82803         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
82804         Remove.
82805         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
82806         to test that it can stand by itself.  Include "exitfail.h".
82807         Clients should set exit_failure instead.
82808         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
82809
82810 2003-07-18  Bruno Haible  <bruno@clisp.org>
82811
82812         * modules/getndelim2: New file.
82813         * modules/getline: Share files with module getndelim2.
82814         * modules/getnline: Depend on getndelim2 instead of sharing files with
82815         it. Add getnline.c to lib_SOURCES.
82816         * MODULES.html.sh (func_all_modules): Add getndelim2.
82817
82818 2003-07-18  Bruno Haible  <bruno@clisp.org>
82819
82820         * m4/getndelim2.m4: New file.
82821         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
82822         invoke gl_PREREQ_GETNDELIM2.
82823         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
82824         gl_PREREQ_GETNDELIM2.
82825         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
82826         gl_GETNDELIM2.
82827
82828 2003-07-18  Bruno Haible  <bruno@clisp.org>
82829
82830         * lib/getndelim2.h: New file.
82831         * lib/getndelim2.c: Make into a module of its own. Include config.h,
82832         getndelim2.h.
82833         (getndelim2): Make non-static. Change return type to ssize_t.
82834         * lib/getline.h: Change argument names.
82835         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
82836         * lib/getnline.c: Include getndelim2.h.
82837
82838 2003-07-18  Andreas Schwab  <schwab@suse.de>
82839
82840         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
82841
82842 2003-07-17  Karl Berry  <karl@gnu.org>
82843
82844         * config/config.sub: update from prep.
82845
82846 2003-07-17  Bruno Haible  <bruno@clisp.org>
82847
82848         * modules/getnline: New file.
82849         * modules/getline: Add lib/getndelim2.c to source file list.
82850         * MODULES.html.sh (func_all_modules): Add getnline.
82851
82852 2003-07-17  Bruno Haible  <bruno@clisp.org>
82853
82854         * m4/getnline.m4: New file.
82855
82856 2003-07-17  Bruno Haible  <bruno@clisp.org>
82857
82858         * m4/Makefile.am.in: Remove file.
82859         * m4/Makefile.am: Remove file.
82860         * m4/Makefile.in: Remove file.
82861
82862 2003-07-17  Bruno Haible  <bruno@clisp.org>
82863
82864         * lib/getnline.h: New file.
82865         * lib/getnline.c: New file.
82866         * lib/getndelim2.c: New file, extracted from getline.c.
82867         (getndelim2): Renamed from getdelim2, with added nmax argument.
82868         * lib/getline.c: Include getndelim2.c.
82869         (getdelim2): Moved out to getndelim2.c.
82870         (getline, getdelim): Update.
82871
82872 2003-07-17  Bruno Haible  <bruno@clisp.org>
82873
82874         * lib/Makefile.am: Remove file.
82875         * lib/Makefile.in: Remove file.
82876
82877 2003-07-17  Bruno Haible  <bruno@clisp.org>
82878
82879         * configure.in: Remove file.
82880         * Makefile.in: Remove file.
82881
82882 2003-07-17  Bruno Haible  <bruno@clisp.org>
82883
82884         * MODULES.html.sh: Put the </BODY> right before </HTML>.
82885
82886 2003-07-16  Karl Berry  <karl@gnu.org>
82887
82888         * config/srclist-update: was running fixlicense twice, which caused
82889                 texinfo.tex to be nullified for some reason.  Simplify,
82890                 $gplsrc is no longer needed as far as I can see?
82891
82892 2003-07-16  Jim Meyering  <jim@meyering.net>
82893
82894         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
82895
82896 2003-07-15  Paul Eggert  <eggert@twinsun.com>
82897
82898         * config/srclist.txt: Get the following files from gettext-runtime/intl
82899         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
82900         ref-del.sin.  From Bruno Haible.
82901         * config/srclist-update (fixfile): Change grep pattern again, since the
82902         previous fix didn't work (there was another trailing $).  Use
82903         '[$]' to escape the $s.
82904
82905 2003-07-15  Karl Berry  <karl@gnu.org>
82906
82907         * lib/vasnprintf.c: update from gettext.
82908
82909 2003-07-15  Karl Berry  <karl@gnu.org>
82910
82911         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
82912         gets expanded when surrounded by '$'.
82913
82914 2003-07-15  Jim Meyering  <jim@meyering.net>
82915
82916         * modules/save-cwd: Don't depend on error.  From Derek Price.
82917
82918 2003-07-15  Jim Meyering  <jim@meyering.net>
82919
82920         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
82921
82922 2003-07-14  Simon Josefsson  <jas@extundo.com>
82923
82924         * modules/mempcpy: New file.
82925         * MODULES.html.sh (func_all_modules): Add mempcpy.
82926
82927 2003-07-14  Simon Josefsson  <jas@extundo.com>
82928
82929         * m4/mempcpy.m4: New file.
82930
82931 2003-07-14  Simon Josefsson  <jas@extundo.com>
82932
82933         * lib/mempcpy.h: New file.
82934         * lib/mempcpy.c: New file.
82935
82936 2003-07-14  Paul Eggert  <eggert@twinsun.com>
82937
82938         * modules/getdate, modules/posixtm: Depend on mktime.
82939
82940 2003-07-14  Paul Eggert  <eggert@twinsun.com>
82941
82942         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
82943         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
82944         unicodeio.c, unicodeio.h, unlocked-io.h:
82945         Switch from LGPL to GPL.
82946
82947 2003-07-14  Paul Eggert  <eggert@twinsun.com>
82948
82949         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
82950         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
82951         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
82952         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
82953         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
82954         updated automatically by ../config/srclist-update.  This changes
82955         their license from LPGL to GPL.
82956
82957 2003-07-14  Paul Eggert  <eggert@twinsun.com>
82958
82959         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
82960         assumed to refer to the root of the most recent stable gettext version.
82961         * config/srclistvars.sh: Add defaults for eggert.
82962         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
82963         Match "This program" as well as "The program".  This is needed
82964         for gettext.
82965
82966 2003-07-14  Jim Meyering  <jim@meyering.net>
82967
82968         Don't emit diagnostics.  Let callers do that.
82969         * lib/save-cwd.c: Don't include "error.h".
82970         (save_cwd): Don't call error.  Ensure that errno is valid
82971         when returning nonzero.
82972
82973         * lib/save-cwd.h (restore_cwd): Update prototype.
82974         * lib/save-cwd.c (restore_cwd): Remove two parameters.
82975         Simplify.  Don't call error upon failure.  Let callers do that.
82976         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
82977         when auditing is enabled.  But don't bother updating the #if.
82978
82979 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
82980
82981         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
82982         it breaks C++ compilation.
82983         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
82984
82985 2003-07-10  Simon Josefsson  <jas@extundo.com>
82986
82987         * modules/strchrnul (Makefile.am): Add strchrnul.h.
82988
82989 2003-07-10  Jim Meyering  <jim@meyering.net>
82990
82991         * m4/clock_time.m4: Remove trailing blank.
82992         * m4/intmax_t.m4: Likewise.
82993
82994 2003-07-10  Jim Meyering  <jim@meyering.net>
82995
82996         * lib/vasnprintf.c: Remove trailing blanks.
82997         Make cpp indentation consistent.
82998
82999 2003-07-09  Paul Eggert  <eggert@twinsun.com>
83000
83001         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
83002         posixver.c, strftime.c, strnlen.c, strverscmp.c:
83003         Switch from LGPL to GPL.
83004
83005 2003-07-09  Paul Eggert  <eggert@twinsun.com>
83006
83007         * config/srclist.txt: Sort sublists.  Add
83008         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
83009         that differ from gnulib for one reason or another; we'd like this list
83010         to be smaller but for now let's document what we have.
83011
83012 2003-07-08  Paul Eggert  <eggert@twinsun.com>
83013
83014         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
83015         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
83016         and sweeter "eval x=$x".
83017         * config/srclist.txt: Get lib/argp* from glibc.
83018
83019 2003-07-07  Paul Eggert  <eggert@twinsun.com>
83020
83021         * lib/mktime.c: Fix some boundary cases and remove need for floating
83022         point.
83023
83024         Issue a compile-time diagnostic if time_t is floating point, or if
83025         two's complement arithmetic is not in effect, or if arithmetic
83026         right shift does not propagate the sign.  These assumptions were
83027         all in the original code but they weren't checked.
83028
83029         (TIME_T_MIDPOINT, verify): New macros.
83030         (__isleap): Remove; it has integer overflow problems.
83031         (leapyear): New function, without those problems.
83032         (ydhms_tm_diff): Remove; splitting into two parts.
83033         (ydhms_diff): New function, containing the arithmetic part of
83034         the old ydhms_tm_diff function.  Issue a compile-time
83035         diagnostic if we are not using C99 integer division.
83036         Avoid casts when possible.
83037         (guess_time_tm): New function, containing the checking part of
83038         the old ydhms_tm_diff function.  Return the new value, rather than
83039         the difference between it and the old.  Accept a new argument T
83040         so that *T specifies the old value.  Check for overflow in the result.
83041
83042         (__mktime_internal): Use a time_t offset, not a long int offset.
83043         This undoes the 2003-06-04 change, which is no longer needed now
83044         that we have better overflow checking.
83045         (localtime_offset): Likewise.
83046
83047         (__mktime_internal): Avoid harmful overflow on hosts where time_t
83048         and long are 64-bit but int is only 32-bit.
83049         (ydhms_diff): Use long int to store year1 and yday1.
83050         Issue a compile-time diagnostic if long int is not wide enough.
83051
83052         (__mktime_internal): Use long int to store adjusted year and yday.
83053         Use plain C rather than preprocessor commands, if that doesn't
83054         affect efficiency.
83055         Check for overflow (and try to repair) after each probe
83056         rather than checking only at the very end.  This avoids some bugs
83057         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
83058         does not equal GMT offset at maximum time).
83059         Use integer to check for overflow rather than floating point; this
83060         is more portable to non-IEEE hosts, and is a tad faster.
83061         When we detect that we are oscillating between two values,
83062         don't check whether tm_isdst has the requested value, since
83063         we already know the answer.  When tm_isdst has the wrong value,
83064         use a different heuristic to find the right one, based on the
83065         extreme values actually observed in practice in tz2003a,
83066         rather than the (overly optimistic) "previous 3 calendar quarters".
83067
83068         (not_equal_tm, print_tm, check_result): Use "const T" rather than
83069         "T const" to accommodate glibc style.
83070         (check_result): Use less-confusing report format.  "long" -> "long int.
83071         (main): Likewise.
83072         Don't loop if the iteration overflows time_t.
83073         Allow a negative step in the iteration.
83074
83075 2003-07-06  Karl Berry  <karl@gnu.org>
83076
83077         * config/depcomp: update from automake.
83078         * config/config.sub: update from prep.
83079
83080 2003-07-03  Karl Berry  <karl@gnu.org>
83081
83082         * config/config.guess: update from prep.
83083
83084 2003-07-01  Paul Eggert  <eggert@twinsun.com>
83085
83086         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
83087         xreadlink.c now includes it unconditionally.
83088
83089 2003-07-01  Paul Eggert  <eggert@twinsun.com>
83090
83091         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
83092         having it depend on HAVE_SYS_TYPES_H.
83093
83094 2003-07-01  Bruno Haible  <bruno@clisp.org>
83095
83096         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
83097         <sys/types.h> should be sufficient.
83098         Reported by Paul Eggert.
83099
83100 2003-06-26  Karl Berry  <karl@gnu.org>
83101
83102         * config/depcomp: update from automake.
83103
83104 2003-06-26  Bruno Haible  <bruno@clisp.org>
83105
83106         * modules/human: Depend on module stdbool.
83107
83108 2003-06-25  Bruno Haible  <bruno@clisp.org>
83109
83110         * modules/readlink: New file.
83111         * modules/xreadlink: Depend on it.
83112         * MODULES.html.sh (func_all_modules): Add readlink.
83113
83114 2003-06-25  Bruno Haible  <bruno@clisp.org>
83115
83116         * m4/readlink.m4: New file.
83117
83118 2003-06-25  Bruno Haible  <bruno@clisp.org>
83119
83120         * lib/readlink.c: New file.
83121
83122 2003-06-22  Karl Berry  <karl@gnu.org>
83123
83124         * config/srclist.txt: update mkinstalldirs from automake.
83125         * config/mkinstalldirs: update.
83126
83127 2003-06-22  Bruno Haible  <bruno@clisp.org>
83128
83129         Portability to mingw32.
83130         * m4/ssize_t.m4: New file, from GNU gettext.
83131         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
83132         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
83133
83134 2003-06-22  Bruno Haible  <bruno@clisp.org>
83135
83136         * modules/safe-read: Add m4/ssize_t.m4.
83137         * modules/xreadlink: Add m4/ssize_t.m4.
83138
83139 2003-06-20  Bruno Haible  <bruno@clisp.org>
83140
83141         Assume C89, so PARAMS isn't needed.
83142         * lib/unicodeio.h (PARAMS): Remove.
83143         * lib/unicodeio.c: Don't use PARAMS.
83144
83145 2003-06-18  Karl Berry  <karl@gnu.org>
83146
83147         * config/config.{guess,sub}: update from prep.
83148
83149 2003-06-18  Jim Meyering  <jim@meyering.net>
83150
83151         Merge changes from coreutils.
83152         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
83153         Remove explicit declarations of xmalloc and realloc.
83154         Include xalloc.h.
83155         (read_utmp): Remove anachronistic cast of xmalloc.
83156
83157 2003-06-17  Paul Eggert  <eggert@twinsun.com>
83158
83159         Assume C89, so PARAMS isn't needed.
83160         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
83161         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
83162         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
83163         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
83164         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
83165         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
83166         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
83167         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
83168         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
83169         lib/xstrtod.h, lib/xstrtol.h: Likewise.
83170         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
83171         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
83172         no longer needed. Anyway, config.h should always be included before any
83173         other file.
83174
83175 2003-06-11  Simon Josefsson  <jas@extundo.com>
83176
83177         * modules/sysexits: New file.
83178         * MODULES.html.sh (func_all_modules): Add sysexits.
83179
83180 2003-06-11  Simon Josefsson  <jas@extundo.com>
83181
83182         * lib/sysexit_.h: New file.
83183
83184 2003-06-11  Derek Price  <derek@ximbiot.com>
83185
83186         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
83187         necessary.
83188
83189 2003-06-11  Bruno Haible  <bruno@clisp.org>
83190
83191         * m4/sysexits.m4: New file.
83192
83193 2003-06-10  Simon Josefsson  <jas@extundo.com>
83194
83195         * lib/argp.h: New file, from glibc.
83196         * lib/argp-ba.c: New file, from glibc.
83197         * lib/argp-eexst.c: New file, from glibc.
83198         * lib/argp-fmtstream.c: New file, from glibc.
83199         * lib/argp-fmtstream.h: New file, from glibc.
83200         * lib/argp-fs-xinl.c: New file, from glibc.
83201         * lib/argp-help.c: New file, from glibc.
83202         * lib/argp-namefrob.h: New file, from glibc.
83203         * lib/argp-parse.c: New file, from glibc.
83204         * lib/argp-pv.c: New file, from glibc.
83205         * lib/argp-pvh.c: New file, from glibc.
83206         * lib/argp-xinl.c: New file, from glibc.
83207
83208 2003-06-10  Simon Josefsson  <jas@extundo.com>
83209
83210         * modules/strchrnul: New file.
83211
83212 2003-06-10  Simon Josefsson  <jas@extundo.com>
83213
83214         * modules/argp: New file.
83215
83216 2003-06-10  Simon Josefsson  <jas@extundo.com>
83217
83218         * m4/strchrnul.m4: New file.
83219
83220 2003-06-10  Simon Josefsson  <jas@extundo.com>
83221
83222         * lib/strchrnul.h: New file.
83223         * lib/strchrnul.c: New file.
83224
83225 2003-06-10  Bruno Haible  <bruno@clisp.org>
83226
83227         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
83228
83229 2003-06-07  Karl Berry  <karl@gnu.org>
83230
83231         * config/config.{guess,sub}: update from prep.
83232
83233 2003-06-07  Jim Meyering  <jim@meyering.net>
83234
83235         * modules/strtod: Use $(...) notation, not @...@ for
83236         AC_REPLACE'd variables.
83237         * modules/localcharset: Likewise.
83238
83239 2003-06-07  Jim Meyering  <jim@meyering.net>
83240
83241         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
83242         in place of my name in the copyright comment.
83243         Remove definition and uses of __P.
83244
83245         From coreutils.
83246         * lib/stat.c: Don't declare xmalloc explicitly.
83247         Instead, include "xalloc.h".
83248         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
83249         xrealloc, and xcalloc return values.
83250         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
83251         Improve comment.
83252         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
83253
83254 2003-06-07  Bruno Haible  <bruno@clisp.org>
83255
83256         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
83257         avoid AC_CONFIG_LINKS.
83258         * modules/fnmatch (Makefile.am): Use explicit creation rule for
83259         fnmatch.h, to avoid AC_CONFIG_LINKS.
83260         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
83261
83262 2003-06-07  Bruno Haible  <bruno@clisp.org>
83263
83264         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
83265         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
83266         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
83267         directory.
83268         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
83269         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
83270         directory.
83271
83272 2003-06-06  Jim Meyering  <jim@meyering.net>
83273
83274         Merge from coreutils.
83275         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
83276         Consolidate declarations and initializations of *_base* locals.
83277
83278         Merge from coreutils.
83279         This avoids a core dump on systems without GNU putenv,
83280         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
83281         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
83282         (unsetenv): New static function, from GNU libc.
83283         (rpl_putenv): Use it.
83284
83285         * lib/modechange.c: Remove trailing blanks.
83286
83287         Merge from coreutils.
83288         * lib/fsusage.c: Remove declaration of statfs.
83289         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
83290
83291         * lib/posixtm.c: Include <stdbool.h> unconditionally.
83292
83293 2003-06-06  Jim Meyering  <jim@meyering.net>
83294
83295         * lib/stdbool_.h: Renamed from stdbool.h.in.
83296
83297 2003-06-06  Jim Meyering  <jim@meyering.net>
83298             Bruno Haible  <bruno@clisp.org>
83299
83300         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
83301         Adjust Makefile.am snippet not to redirect directly to target.
83302         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
83303
83304 2003-06-05  Paul Eggert  <eggert@twinsun.com>
83305
83306         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
83307         mismatch, look in future quarters as well as past.  This fixes a
83308         bug when processing fall-backwards gaps immediately after a long
83309         period of daylight-saving time.
83310
83311         * lib/mktime.c: Assume freestanding C89 or better.
83312         (HAVE_LIMITS_H): Remove.  Assume it's 1.
83313         (__P): Remove; not used.
83314         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
83315         (mktime, not_equal_tm, print_tm, check_result,
83316         main): Use prototypes.  Use const * where appropriate.
83317         (main): Fix typo in testing code that uncovered by above changes.
83318         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
83319
83320 2003-06-04  Paul Eggert  <eggert@twinsun.com>
83321
83322         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
83323         locale.h, localeconv.  This merges changes from coreutils.
83324
83325         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
83326         It can be removed after the next Autoconf is released.
83327         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
83328         needed.
83329
83330 2003-06-04  Paul Eggert  <eggert@twinsun.com>
83331
83332         * lib/mktime.c: Fix Debian bug 177940
83333         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
83334         (localtime_offset): Now long int, not time_t, because we want it
83335         to be guaranteed to be signed.  All uses changed.
83336         (__mktime_internal): If overflow would occur when adding offset,
83337         don't add it.
83338
83339         Merge 'human' changes from coreutils.  Rewrite to support
83340         locale-specific notations like thousands separators.
83341         * lib/human.c: Simplify authorship notice.
83342         Include human.h immediately after config.h.
83343         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
83344         <limits.h>: Do not include, since human.h does.
83345         (SIZE_MAX, UINTMAX_MAX): New macros.
83346         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
83347         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
83348         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
83349         (power_letter): Renamed from suffixes.
83350         (generate_suffix_backwards): Remove.
83351         (adjust_value): Now takes int style (because of human.h changes)
83352         and long double value (for greater precision on some platforms).
83353         (group_number): New function.
83354         (human_readable): Use it.  Use integer options, not enum.
83355         Put the options before the sizes in the arg list.
83356         Support all the new options.
83357         The old human_readable function has been removed;
83358         use inttostr.h instead.
83359         (human_readable, default_block_size, humblock):
83360         Use uintmax_t, not int, for block sizes.
83361         (human_readable_inexact, block_size_types): Remove.
83362         (block_size_opts): New constant.
83363         (human_options): Renamed from human_block_size, with new signature
83364         that allows block sizes up to UINTMAX_MAX.  All callers changed.
83365         * lib/human.h: Add copyright and authorship notice.
83366         Include <limits.h> and <stdbool.h> unconditionally.
83367         (PARAMS): Remove.  All uses removed.
83368         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
83369         (enum human_inexact_style): Remove tag; now a nameless enum.
83370         (human_floor, human_ceiling, human_round_to_even): Now have
83371         values 2, 0, 1 rather than -1, 1, 0.
83372         (human_group_digits, human_suppress_point_zero, human_autoscale,
83373         human_base_1024, human_SI, human_B): New constants.
83374         (human_readable_inexact, human_block_size): Remove.
83375         (human_readable): Size args are now uintmax_t, not int.
83376         (human_options): New decl.
83377
83378         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
83379         unnecessary now that we assume C89 or better.  This change
83380         imported from coreutils.
83381
83382         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
83383         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
83384         in the 2003-05-30 sync from glibc.
83385
83386         .h files should stand alone, but we shouldn't include <sys/types.h>
83387         if we can get away with just <stddef.h>.
83388
83389         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
83390         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
83391         rather than <sys/types.h>, as we merely need size_t.
83392         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
83393         to get size_t.
83394         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
83395         Include <stdio.h>, to get FILE.
83396         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
83397         memcasecmp.h has included <stddef.h> and all we need is size_t.
83398         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
83399         our interface, instead of including <sys/types.h>
83400
83401 2003-06-04  Paul Eggert  <eggert@twinsun.com>
83402
83403         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
83404         now, as glibc mktime is buggy on non-glibc systems.
83405
83406 2003-06-03  Karl Berry  <karl@gnu.org>
83407
83408         * config/config.sub: update from prep.
83409
83410 2003-06-02  Paul Eggert  <eggert@twinsun.com>
83411
83412         [from coreutils]
83413         Fix some minor time-related bugs with POSIX time arguments.
83414         Some valid time stamps were being rejected (notably -1, and
83415         time stamps before 1900 on 64-bit hosts).  And some invalid
83416         time stamps were being accepted, e.g. September 31.
83417
83418         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
83419         that we can return (time_t) -1 successfully.
83420         * lib/posixtm.c: Likewise.
83421         [HAVE_STDBOOL_H]: Include <stdbool.h>.
83422         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
83423         (t): Remove static var.
83424         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
83425         of static var.  All uses changed.
83426         (year): Do not reject years before 1900; they can occur with
83427         64-bit time_t.
83428         (posix_time_parse): Do not check for out-of-range components;
83429         that is now the caller's responsibility, since our checks were
83430         only approximations.
83431         (posixtime): Use mktime to check for out-of-range components,
83432         since it knows them exactly.
83433         If mktime returns (time_t) -1, check whether an error actually occurred
83434         by invoking localtime on -1.
83435         (main) [TEST_POSIXTIME]: Check for input data errors, and report
83436         posixtime failures better.
83437         Improve the test data (in comments only).
83438
83439 2003-06-02  Karl Berry  <karl@gnu.org>
83440
83441         * config/mkinstalldirs (version): new variable.
83442         (--version): new option.
83443         (usage): improve message.
83444
83445 2003-05-30  Karl Berry  <karl@gnu.org>
83446
83447         * lib/mktime.c: update from libc.
83448
83449 2003-05-30  Bruno Haible  <bruno@clisp.org>
83450
83451         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
83452         * config/config.rpath: Upgrade to gettext-0.12.1.
83453
83454 2003-05-30  Bruno Haible  <bruno@clisp.org>
83455
83456         * m4/gettext.m4: Upgrade to gettext-0.12.1.
83457         * m4/nls.m4: New file, from gettext-0.12.1.
83458         * m4/po.m4: New file, from gettext-0.12.1.
83459         * m4/progtest.m4: Upgrade to gettext-0.12.1.
83460
83461 2003-05-30  Bruno Haible  <bruno@clisp.org>
83462
83463         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
83464         * lib/localcharset.h: Likewise.
83465         * lib/localcharset.c: Likewise.
83466
83467 2003-05-29  Karl Berry  <karl@gnu.org>
83468
83469         * config/config.rpath: update from gettext.
83470
83471 2003-05-28  Paul Eggert  <eggert@twinsun.com>
83472
83473         Assume the headers required for C89 freestanding compilers.
83474         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
83475         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
83476         * m4/human.m4 (gl_HUMAN): Likewise.
83477         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
83478         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
83479         * m4/userspec.m4 (gl_USERSPEC): Likewise.
83480         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
83481         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
83482         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
83483
83484 2003-05-28  Paul Eggert  <eggert@twinsun.com>
83485
83486         Assume the headers required for C89 freestanding compilers.
83487         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
83488         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
83489         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
83490         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
83491         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
83492         define, since <limits.h> is guaranteed to do that.
83493         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
83494         * lib/exclude.c: Include <stdbool.h> unconditionally.
83495         * lib/tempname.c: Include <stddef.h> unconditionally.
83496         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
83497         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
83498         <stddef.h> does that.
83499         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
83500         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
83501         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
83502         needed.
83503         * lib/xstrtol.c: Likewise.
83504         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
83505         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
83506
83507         * lib/addext.c (addext): Use assignment rather than cast, to avoid
83508         warnings on some platforms.
83509
83510         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
83511         arbitrarily.
83512
83513 2003-05-26  Jim Meyering  <jim@meyering.net>
83514
83515         Merge in a change from coreutils:
83516         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
83517         that is guaranteed to be `no'.  Use `no_such_member' to indicate
83518         that condition, rather than `-1' which is slightly misleading.
83519         Change the name of the cache variable to have the gl_ prefix.
83520         Prompted by a patch from Richard Dawe for DJGPP.
83521
83522 2003-05-24  Karl Berry  <karl@gnu.org>
83523
83524         * config/config.guess: update from prep.
83525
83526 2003-05-22  Karl Berry  <karl@gnu.org>
83527
83528         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
83529
83530 2003-05-20  Karl Berry  <karl@gnu.org>
83531
83532         * config/config.guess: update from prep.
83533
83534 2003-05-18  Karl Berry  <karl@gnu.org>
83535
83536         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
83537         might actually be set by the user.
83538
83539         * config/depcomp, install-sh, mdate-sh: update from automake.
83540
83541 2003-05-17  Bruno Haible  <bruno@clisp.org>
83542
83543         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
83544         invalid expansion for AC_EGREP_CPP.
83545         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
83546         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
83547         Suggested by Akim Demaille <akim@epita.fr> in
83548         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
83549
83550 2003-05-12  Jim Meyering  <jim@meyering.net>
83551
83552         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
83553         the space-padded-by-default conversion specifiers, %e, %k, %l.
83554
83555 2003-05-12  Bruno Haible  <bruno@clisp.org>
83556
83557         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
83558         the string is longer than 4 KB.
83559
83560 2003-05-11  Karl Berry  <karl@gnu.org>
83561
83562         * config/config.{guess,sub}: update from prep.
83563
83564 2003-05-09  Bruno Haible  <bruno@clisp.org>
83565
83566         * modules/error: Add m4/strerror_r.m4 to file list.
83567
83568 2003-05-03  Bruno Haible  <bruno@clisp.org>
83569
83570         Upgrade to Unicode-4.0.
83571         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
83572         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
83573         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
83574         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
83575         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
83576         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
83577         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
83578         Change width of U+E0100..U+E01EF from 1 to 0.
83579
83580 2003-04-25  Jim Meyering  <jim@meyering.net>
83581
83582         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
83583         of type size_t, not int.
83584
83585 2003-04-25  Bruno Haible  <bruno@clisp.org>
83586
83587         * lib/copy-file.c: Include <stddef.h>, for size_t.
83588
83589 2003-04-21  Paul Eggert  <eggert@twinsun.com>
83590
83591         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
83592         code which expansion is under static control.  Patch imported from
83593         Akim Demaille's patch to Bison; see
83594         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
83595
83596 2003-04-14  Bruno Haible  <bruno@clisp.org>
83597
83598         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
83599
83600 2003-04-11  Jim Meyering  <jim@meyering.net>
83601
83602         Merge changes from Coreutils.
83603
83604         2003-03-22  Jim Meyering  <jim@meyering.net>
83605
83606         * lib/strftime.c (widen): Cast alloca return value to proper type.
83607
83608         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
83609
83610         From GNU libc.
83611         * lib/strftime.c (my_strftime): Handle very large width
83612         specifications for numeric values correctly.  Improve checks for
83613         overflow.
83614
83615         2003-01-19  Jim Meyering  <jim@meyering.net>
83616
83617         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
83618         definitions.
83619         (nl_get_alt_digit) [! defined my_strftime]: Define.
83620         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
83621         _nl_get_alt_digit and _nl_get_walt_digit.
83622
83623         * lib/strftime.c (my_strftime): Merge in locale-related changes from
83624         libc. These changes have no effect outside of _LIBC.
83625
83626 2003-04-10  Bruno Haible  <bruno@clisp.org>
83627
83628         * modules/findprog: New file.
83629         * MODULES.html.sh (func_all_modules): Add it.
83630
83631 2003-04-10  Bruno Haible  <bruno@clisp.org>
83632
83633         * m4/findprog.m4: New file.
83634         * m4/eaccess.m4: New file.
83635
83636 2003-04-10  Bruno Haible  <bruno@clisp.org>
83637
83638         * lib/findprog.h: New file, from GNU gettext.
83639         * lib/findprog.c: New file, from GNU gettext.
83640
83641 2003-04-05  Jim Meyering  <jim@meyering.net>
83642
83643         Merge changes from Coreutils.
83644
83645         * lib/exclude.h (PARAMS): Remove definition and uses.
83646         * lib/exclude.c: Remove uses of `PARAMS'.
83647
83648         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
83649         Add test-cases for DOS filenames. Declare program_name.
83650         (main): Set up program_name.  Patch by Rich Dawe.
83651
83652         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
83653         error from mntctl.
83654         Use mntctl's return value to drive the entry-processing loop, since
83655         we can't rely on the value of the vmt_length member in the last
83656         entry.  On some systems doing so could result in exhausting
83657         virtual memory.  Based in part on a patch from Mike Jetzer.
83658
83659 2003-04-04  Bruno Haible  <bruno@clisp.org>
83660
83661         * modules/linebreak: New file.
83662         * MODULES.html.sh (func_all_modules): Add it.
83663
83664 2003-04-04  Bruno Haible  <bruno@clisp.org>
83665
83666         * m4/linebreak.m4: New file.
83667
83668 2003-04-04  Bruno Haible  <bruno@clisp.org>
83669
83670         * lib/linebreak.h: New file, from GNU gettext.
83671         * lib/linebreak.c: New file, from GNU gettext with slight
83672         modifications.
83673         * lib/lbrkprop.h: New file, from GNU gettext.
83674
83675 2003-04-03  Bruno Haible  <bruno@clisp.org>
83676
83677         * modules/utf8-ucs4: New file.
83678         * modules/utf16-ucs4: New file.
83679         * modules/ucs4-utf8: New file.
83680         * modules/ucs4-utf16: New file.
83681         * MODULES.html.sh (func_all_modules): Add them.
83682
83683 2003-04-03  Bruno Haible  <bruno@clisp.org>
83684
83685         * m4/utf-ucs4.m4: New file.
83686         * m4/ucs4-utf.m4: New file.
83687
83688 2003-04-03  Bruno Haible  <bruno@clisp.org>
83689
83690         * lib/utf8-ucs4.h: New file, from GNU gettext.
83691         * lib/utf16-ucs4.h: New file, from GNU gettext.
83692         * lib/ucs4-utf8.h: New file, from GNU gettext.
83693         * lib/ucs4-utf16.h: New file, from GNU gettext.
83694
83695 2003-04-02  Bruno Haible  <bruno@clisp.org>
83696
83697         * modules/binary-io: New file.
83698         * MODULES.html.sh (func_all_modules): Add it.
83699
83700 2003-04-02  Bruno Haible  <bruno@clisp.org>
83701
83702         * lib/binary-io.h: New file, from GNU gettext.
83703
83704 2003-04-01  Bruno Haible  <bruno@clisp.org>
83705
83706         * modules/pathname: New file.
83707         * MODULES.html.sh (func_all_modules): Add it.
83708
83709 2003-04-01  Bruno Haible  <bruno@clisp.org>
83710
83711         * lib/pathname.h: New file, from GNU gettext.
83712         * lib/concatpath.c: New file, from GNU gettext.
83713
83714 2003-03-30  Bruno Haible  <bruno@clisp.org>
83715
83716         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
83717
83718 2003-03-30  Bruno Haible  <bruno@clisp.org>
83719
83720         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
83721         function chown() doesn't exist.
83722
83723 2003-03-28  Bruno Haible  <bruno@clisp.org>
83724
83725         * modules/copy-file: New file.
83726         * MODULES.html.sh (func_all_modules): Add it.
83727
83728 2003-03-28  Bruno Haible  <bruno@clisp.org>
83729
83730         * m4/copy-file.m4: New file.
83731
83732 2003-03-28  Bruno Haible  <bruno@clisp.org>
83733
83734         * lib/copy-file.h: New file, from GNU gettext.
83735         * lib/copy-file.c: New file, from GNU gettext.
83736
83737 2003-03-18  Jim Meyering  <jim@meyering.net>
83738
83739         * lib/quote.c (quote_n): Fix typo in comment.
83740
83741 2003-03-18  Bruno Haible  <bruno@clisp.org>
83742
83743         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
83744         checking.
83745         * m4/onceonly_2_57.m4: Likewise.
83746
83747 2003-03-17  Bruno Haible  <bruno@clisp.org>
83748
83749         * m4/onceonly.m4: Require autoconf 2.54 or newer.
83750         (m4_quote): Remove macro.
83751         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
83752
83753 2003-03-14  Jim Meyering  <jim@meyering.net>
83754
83755         Merge changes from Coreutils.
83756         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
83757         to be const, in order to avoid warnings.
83758         (obstack_room): Likewise.
83759         (obstack_empty_p): Likewise.
83760
83761 2003-03-14  Bruno Haible  <bruno@clisp.org>
83762
83763         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
83764         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
83765
83766 2003-03-13  Paul Eggert  <eggert@twinsun.com>
83767
83768         Merge changes from Bison.
83769         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
83770         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
83771         when compiling Bison 1.875's `bitset bset = obstack_alloc
83772         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
83773         * lib/hash.c: Include <stdbool.h> unconditionally.
83774
83775 2003-03-13  Paul Eggert  <eggert@twinsun.com>
83776
83777         * m4/onceonly.m4 (m4_quote): New macro.
83778         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
83779         Quote AC_FOREACH variable-expansions properly.
83780
83781 2003-03-13  Paul Eggert  <eggert@twinsun.com>
83782
83783         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
83784
83785 2003-03-09  Paul Eggert  <eggert@twinsun.com>
83786
83787         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
83788         Reported by Bruce Becker; see:
83789         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
83790
83791 2003-03-03  Paul Eggert  <eggert@twinsun.com>
83792             Bruno Haible  <bruno@clisp.org>
83793
83794         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
83795         Reported by John Hughes, see
83796         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
83797
83798 2003-02-20  Bruno Haible  <bruno@clisp.org>
83799
83800         * MODULES.html.sh (func_all_modules): Add poll.
83801
83802 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
83803
83804         * modules/poll: New file.
83805
83806 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
83807
83808         * lib/poll_.h: New file.
83809         * lib/poll.c: New file.
83810
83811 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
83812
83813         * m4/poll.m4: New file.
83814
83815 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
83816
83817         * modules/mathl: New file.
83818
83819 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
83820
83821         * lib/mathl.h: New file.
83822         * lib/acosl.c: New file.
83823         * lib/asinl.c: New file.
83824         * lib/atanl.c: New file.
83825         * lib/ceill.c: New file.
83826         * lib/cosl.c: New file.
83827         * lib/expl.c: New file.
83828         * lib/floorl.c: New file.
83829         * lib/frexpl.c: New file.
83830         * lib/ldexpl.c: New file.
83831         * lib/logl.c: New file.
83832         * lib/sincosl.c: New file.
83833         * lib/sinl.c: New file.
83834         * lib/sqrtl.c: New file.
83835         * lib/tanl.c: New file.
83836         * lib/trigl.c: New file.
83837         * lib/trigl.h: New file.
83838
83839 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
83840
83841         * m4/mathl.m4: New file.
83842
83843 2003-02-18  Bruno Haible  <bruno@clisp.org>
83844
83845         * MODULES.html.sh (func_all_modules): Add mathl.
83846
83847 2003-02-17  Bruno Haible  <bruno@clisp.org>
83848
83849         * modules/mkdtemp: New module.
83850         * MODULES.html.sh (func_all_modules): Add it.
83851
83852 2003-02-17  Bruno Haible  <bruno@clisp.org>
83853
83854         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
83855
83856 2003-02-17  Bruno Haible  <bruno@clisp.org>
83857
83858         * lib/mkdtemp.h: New file, from GNU gettext.
83859         * lib/mkdtemp.c: New file, from GNU gettext.
83860
83861 2003-02-02  Jim Meyering  <jim@meyering.net>
83862
83863         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
83864         e.g. glibc-2.2.93.
83865
83866 2003-01-31  Bruno Haible  <bruno@clisp.org>
83867
83868         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
83869         'rpl_rename'.
83870         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
83871         'rpl_strnlen'.
83872         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
83873         'rpl_strtod'.
83874         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
83875         'rpl_utime'.
83876
83877 2003-01-31  Bruno Haible  <bruno@clisp.org>
83878
83879         * lib/rename.c: #undef rename before defining rpl_rename.
83880         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
83881
83882 2003-01-30  Bruno Haible  <bruno@clisp.org>
83883
83884         * modules/vasnprintf, modules/vasprintf: New modules.
83885         * MODULES.html.sh (func_all_modules): Add them.
83886
83887 2003-01-30  Bruno Haible  <bruno@clisp.org>
83888
83889         * m4/signed.m4: New file, from GNU gettext.
83890         * m4/longdouble.m4: New file, from GNU gettext.
83891         * m4/wchar_t.m4: New file, from GNU gettext.
83892         * m4/wint_t.m4: New file, from GNU gettext.
83893         * m4/vasnprintf.m4: New file.
83894         * m4/vasprintf.m4: New file.
83895
83896 2003-01-30  Bruno Haible  <bruno@clisp.org>
83897
83898         * lib/printf-args.h: New file, from GNU gettext.
83899         * lib/printf-args.c: New file, from GNU gettext.
83900         * lib/printf-parse.h: New file, from GNU gettext.
83901         * lib/printf-parse.c: New file, from GNU gettext.
83902         * lib/vasnprintf.h: New file, from GNU gettext.
83903         * lib/vasnprintf.c: New file, from GNU gettext.
83904         * lib/asnprintf.c: New file, from GNU gettext.
83905         * lib/vasprintf.h: New file, from GNU gettext with modifications.
83906         * lib/vasprintf.c: New file, from GNU gettext.
83907         * lib/asprintf.c: New file, from GNU gettext.
83908
83909 2003-01-29  Bruno Haible  <bruno@clisp.org>
83910
83911         * modules/stpncpy: New module.
83912         * MODULES.html.sh (func_all_modules): Add it.
83913
83914 2003-01-29  Bruno Haible  <bruno@clisp.org>
83915
83916         * m4/stpncpy.m4: New file.
83917
83918 2003-01-29  Bruno Haible  <bruno@clisp.org>
83919
83920         * lib/stpncpy.h: New file, from GNU gettext with modifications.
83921         * lib/stpncpy.c: New file, from GNU gettext with modifications.
83922
83923 2003-01-28  Bruno Haible  <bruno@clisp.org>
83924
83925         * modules/c-ctype: New module.
83926         * MODULES.html.sh (func_all_modules): Add it.
83927
83928 2003-01-28  Bruno Haible  <bruno@clisp.org>
83929
83930         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
83931         Paul Eggert.
83932         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
83933         Paul Eggert.
83934
83935 2003-01-27  Bruno Haible  <bruno@clisp.org>
83936
83937         * modules/xsetenv: New module.
83938         * MODULES.html.sh (func_all_modules): Add it.
83939
83940 2003-01-27  Bruno Haible  <bruno@clisp.org>
83941
83942         * lib/xsetenv.h: New file, from GNU gettext.
83943         * lib/xsetenv.c: New file, from GNU gettext.
83944
83945 2003-01-23  Jim Meyering  <jim@meyering.net>
83946
83947         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
83948         from working on systems without dirfd (at least Irix and OSF1/Tru64).
83949
83950 2003-01-23  Bruno Haible  <bruno@clisp.org>
83951
83952         * modules/minmax: New module.
83953         * MODULES.html.sh (func_all_modules): Add it.
83954
83955 2003-01-23  Bruno Haible  <bruno@clisp.org>
83956
83957         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
83958         Eggert.
83959
83960 2003-01-22  Bruno Haible  <bruno@clisp.org>
83961
83962         * modules/exit: New module.
83963         * MODULES.html.sh (func_all_modules): Add it.
83964
83965 2003-01-22  Bruno Haible  <bruno@clisp.org>
83966
83967         * lib/exit.h: New file, from GNU gettext.
83968
83969 2003-01-19  Bruno Haible  <bruno@clisp.org>
83970
83971         * gnulib-tool: Recognize option --extract-maintainer.
83972         (func_get_maintainer): New function.
83973         * modules/*: Add Maintainer entry.
83974
83975 2003-01-16  Jim Meyering  <jim@meyering.net>
83976
83977         * m4/regex.m4: The `regex' struct is both input and output.
83978         Initialize it before each use.  Patch by Tim Waugh.
83979
83980 2003-01-16  Bruno Haible  <bruno@clisp.org>
83981
83982         * MODULES.html.sh: Add a table of contents. Add the module name as
83983         leftmost column. Add hyperlinks.
83984
83985 2003-01-15  Bruno Haible  <bruno@clisp.org>
83986
83987         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
83988
83989 2003-01-15  Bruno Haible  <bruno@clisp.org>
83990
83991         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
83992         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
83993         suffix.
83994
83995 2003-01-15  Bruno Haible  <bruno@clisp.org>
83996
83997         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
83998
83999 2003-01-15  Bruno Haible  <bruno@clisp.org>
84000
84001         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
84002         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
84003
84004 2003-01-14  Jim Meyering  <jim@meyering.net>
84005
84006         * lib/same.c (same_name): Tweak a comment.
84007
84008 2003-01-14  Bruno Haible  <bruno@clisp.org>
84009
84010         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
84011         when a string comparison is sufficient.
84012
84013 2003-01-14  Bruno Haible  <bruno@clisp.org>
84014
84015         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
84016         'unsigned int'.
84017
84018 2003-01-14  Bruno Haible  <bruno@clisp.org>
84019
84020         * lib/hash-pjw.c: Add comment about low quality of this function.
84021
84022 2003-01-13  Bruno Haible  <bruno@clisp.org>
84023
84024         * modules/stpcpy: Distribute lib/stpcpy.h.
84025         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
84026
84027 2003-01-13  Bruno Haible  <bruno@clisp.org>
84028
84029         * modules/*: Add a description.
84030         * modules/strpbrk: Fix Makefile.am snippet.
84031         * modules/strtoimax: Fix dependencies.
84032         * modules/strtoumax: Likewise.
84033
84034 2003-01-13  Bruno Haible  <bruno@clisp.org>
84035
84036         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
84037         * modules/alloca (Makefile.am): All object files depend on alloca.h.
84038         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
84039
84040 2003-01-13  Bruno Haible  <bruno@clisp.org>
84041
84042         * gnulib-tool (func_create_testdir): Store config/* files in the main
84043         directory.
84044         * config.rpath: Move to ...
84045         * config/config.rpath: ... here.
84046         * modules/gettext: Contains config/config.rpath, not config.rpath.
84047         * modules/iconv: Likewise.
84048
84049 2003-01-12  Paul Eggert  <eggert@twinsun.com>
84050
84051         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
84052         to avoid collisions with libcurses and libreadline.
84053
84054         * m4/getstr.m4: Remove.
84055         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
84056
84057 2003-01-12  Paul Eggert  <eggert@twinsun.com>
84058
84059         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
84060         to avoid collisions with libcurses and libreadline.
84061
84062         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
84063         * lib/getstr.h, getstr.c: Remove.
84064         * lib/getline.c: Include "getline.h", to check interface.
84065         Move body of old getstr.c here: this defines MIN_CHUNK and
84066         declares getdelim2, which is renamed from getstr.
84067         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
84068
84069         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
84070         All uses changed.
84071         * lib/linebuffer.h: Likewise.
84072         (readline): Remove backward-compatibility macro.
84073
84074 2003-01-12  Paul Eggert  <eggert@twinsun.com>
84075
84076         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
84077         to avoid collisions with libcurses and libreadline.
84078         * getstr: Remove.
84079         * MODULES.html.sh: Remove getstr.
84080         * modules/getline: Depend on unlocked-io, not getstr.
84081
84082 2003-01-12  Jim Meyering  <jim@meyering.net>
84083
84084         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
84085
84086 2003-01-10  Bruno Haible  <bruno@clisp.org>
84087
84088         * modules/alloca: Change Makefile.am requirements. Simplify Include
84089         requirements. Add lib/alloca_.h to file list.
84090
84091 2003-01-10  Bruno Haible  <bruno@clisp.org>
84092
84093         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
84094
84095 2003-01-10  Bruno Haible  <bruno@clisp.org>
84096
84097         * lib/alloca_.h: New file.
84098         * lib/getdate.y: Unconditionally include alloca.h.
84099         * lib/makepath.c: Likewise.
84100         * lib/setenv.c: Likewise.
84101         * lib/userspec.c: Likewise.
84102
84103 2003-01-09  Karl Berry  <karl@gnu.org>
84104
84105         * MODULES.html.sh: include `dirname $0` in PATH, to find
84106         gnulib-tool.
84107
84108 2003-01-09  Bruno Haible  <bruno@clisp.org>
84109
84110         * modules/stdbool: Change configure.ac, Makefile.am requirements.
84111         Simplify Include requirements. Add lib/stdbool.h.in to file list.
84112
84113 2003-01-09  Bruno Haible  <bruno@clisp.org>
84114
84115         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
84116
84117 2003-01-09  Bruno Haible  <bruno@clisp.org>
84118
84119         * lib/stdbool.h.in: New file.
84120
84121 2003-01-09  Bruno Haible  <bruno@clisp.org>
84122
84123         * gnulib-tool (func_all_modules): Ignore files ending in ~.
84124         * MODULES.html.sh: Likewise.
84125
84126 2003-01-08  Jim Meyering  <jim@meyering.net>
84127
84128         * lib/full-write.c: Undefine and define-away `const' after inclusion
84129         of errno.h, not before.  Suggestion from Bruno Haible.
84130
84131 2003-01-08  Bruno Haible  <bruno@clisp.org>
84132
84133         * modules/full-read: Depend on full-write.
84134
84135 2003-01-08  Bruno Haible  <bruno@clisp.org>
84136
84137         * lib/safe-read.c: Include specification header first, to ensure its
84138         selfcontainedness.
84139         * lib/full-write.c: Likewise.
84140
84141 2003-01-07  Jim Meyering  <jim@meyering.net>
84142
84143         * lib/full-write.c: Rework so that it may serve to define full_read,
84144         too.
84145         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
84146
84147 2003-01-07  Bruno Haible  <bruno@clisp.org>
84148
84149         * lib/strtoimax.c: Include <stdint.h> as an alternative to
84150         <inttypes.h>.
84151         * lib/xstrtol.h: Likewise.
84152         * lib/xstrtoimax.c: Likewise.
84153         * lib/xstrtoumax.c: Likewise.
84154         * lib/human.h: Likewise.
84155
84156         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
84157         on systems that have <inttypes.h> but not <stdint.h>.
84158
84159 2003-01-07  Bruno Haible  <bruno@clisp.org>
84160
84161         * MODULES.html.sh: Add copyright notice.
84162         (missed_files): Omit CVS directory entries.
84163         (func_module): Make it work with sed-3.02.
84164         * MODULES.txt: Remove file.
84165
84166 2003-01-06  Jim Meyering  <jim@meyering.net>
84167
84168         * lib/version-etc.c: Update year in translatable copyright string.
84169
84170 2003-01-03  Karl Berry  <karl@gnu.org>
84171
84172         * config/config.{guess,sub}: update from prep.
84173
84174 2003-01-02  Karl Berry  <karl@gnu.org>
84175
84176         * doc/COPYING.DOC: belatedly updated to 1.2.
84177
84178 2003-01-01  Karl Berry  <karl@gnu.org>
84179
84180         * gnulib-tool (func_verify_module): report module name $module in
84181         error message, not $1.
84182         * gnulib-tool (create-testdir): don't complain if destdir couldn't
84183         be created, only if it doesn't exist.
84184         * gnulib-tool (last_checkin_date): don't expand the $Date here.
84185
84186 2002-12-31  Paul Eggert  <eggert@twinsun.com>
84187
84188         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
84189
84190 2002-12-31  Paul Eggert  <eggert@twinsun.com>
84191
84192         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
84193         memcmp if strcoll doesn't work.
84194
84195 2002-12-31  Bruno Haible  <bruno@clisp.org>
84196
84197         * lib/utime.c (utime_null): No need to call ftruncate if the file was
84198         nonempty.
84199
84200 2002-12-31  Bruno Haible  <bruno@clisp.org>
84201
84202         * lib/memcoll.c (STRCOLL): New macro.
84203         (memcoll): Use it.
84204
84205 2002-12-31  Bruno Haible  <bruno@clisp.org>
84206
84207         * lib/localcharset.h: New file.
84208         * lib/localcharset.c: Include it.
84209         * lib/unicodeio.c: Likewise.
84210
84211 2002-12-31  Bruno Haible  <bruno@clisp.org>
84212
84213         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
84214         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
84215
84216 2002-12-31  Bruno Haible  <bruno@clisp.org>
84217
84218         * lib/getline.h: Include <stddef.h>, for size_t.
84219
84220         * lib/unicodeio.h: Include <stddef.h>, for size_t.
84221         * lib/unicodeio.c: Don't include <stddef.h>.
84222
84223 2002-12-31  Bruno Haible  <bruno@clisp.org>
84224
84225         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
84226         HAVE_TM_ZONE.
84227
84228 2002-12-24  Karl Berry  <karl@gnu.org>
84229
84230         * config/config.guess: update from prep.
84231
84232 2002-12-24  Bruno Haible  <bruno@clisp.org>
84233
84234         General infrasructure.
84235         * m4/README: Rewritten.
84236         * m4/onceonly.m4: New file.
84237         * m4/onceonly_2_57.m4: New file.
84238
84239         Module atexit.
84240         * m4/atexit.m4: New file.
84241
84242         Module strtod.
84243         * m4/strtod.m4: New file.
84244
84245         Module strtol.
84246         * m4/strtol.m4: New file.
84247
84248         Module strtoul.
84249         * m4/strtoul.m4: New file.
84250
84251         Module memchr.
84252         * m4/memchr.m4: New file.
84253
84254         Module memcmp.
84255         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
84256         (jm_FUNC_MEMCMP): Invoke it.
84257
84258         Module memcpy.
84259         * m4/memcpy.m4: New file.
84260
84261         Module memmove.
84262         * m4/memmove.m4: New file.
84263
84264         Module memset.
84265         * m4/memset.m4: New file.
84266
84267         Module strcspn.
84268         * m4/strcspn.m4: New file.
84269
84270         Module strpbrk.
84271         * m4/strpbrk.m4: New file.
84272
84273         Module strstr.
84274         * m4/strstr.m4: New file.
84275
84276         Module strerror.
84277         * m4/strerror.m4: New file.
84278
84279         Module mktime.
84280         * m4/mktime.m4: Renamed from jm-mktime.m4.
84281         (gl_PREREQ_MKTIME): New macro.
84282         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
84283
84284         Module malloc.
84285         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
84286         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
84287         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
84288
84289         Module realloc.
84290         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
84291         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
84292         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
84293
84294         Module strftime.
84295         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
84296         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
84297         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
84298         gl_TM_GMTOFF.
84299         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
84300
84301         Module xalloc.
84302         * m4/xalloc.m4: New file.
84303
84304         Module alloca.
84305         * m4/alloca.m4: New file.
84306
84307         Module putenv.
84308         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
84309         (jm_FUNC_PUTENV): Invoke it.
84310
84311         Module setenv.
84312         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
84313         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
84314         when invoked twice.
84315         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
84316         gt_FUNC_SETENV.
84317
84318         Module memrchr.
84319         * m4/memrchr.m4: New file.
84320
84321         Module stpcpy.
84322         * m4/stpcpy.m4: New file.
84323
84324         Module strcase.
84325         * m4/strcase.m4: New file.
84326
84327         Module strdup.
84328         * m4/strdup.m4: New file.
84329
84330         Module strnlen.
84331         * m4/strnlen.m4: New file.
84332
84333         Module strndup.
84334         * m4/strndup.m4: New file.
84335
84336         Module xstrtod.
84337         * m4/xstrtod.m4: New file.
84338
84339         Module xstrtol.
84340         * m4/xstrtol.m4: New file.
84341
84342         Module getdate.
84343         * m4/getdate.m4: New file.
84344
84345         Module unlocked-io.
84346         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
84347         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
84348         * m4/jm-glibc-io.m4n: Remove file.
84349
84350         Module long-options.
84351         * m4/long-options.m4: New file.
84352
84353         Module md5.
84354         * m4/md5.m4: New file.
84355
84356         Module sha.
84357         * m4/sha.m4: New file.
84358
84359         Module getstr.
84360         * m4/getstr.m4: New file.
84361
84362         Module getline.
84363         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
84364         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
84365         <sys/types.h>, for size_t. Use the function name gnu_getline, not
84366         simply getline. Infoke gl_PREREQ_GETLINE.
84367
84368         Module obstack.
84369         * m4/obstack.m4: New file.
84370
84371         Module hash.
84372         * m4/hash.m4: New file.
84373
84374         Module readtokens.
84375         * m4/readtokens.m4: New file.
84376
84377         Module strverscmp.
84378         * m4/strverscmp.m4: New file.
84379
84380         Module stdbool.
84381         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
84382         OSF/1.
84383
84384         Module strtoll.
84385         * m4/strtoll.m4: New file.
84386
84387         Module strtoull.
84388         * m4/strtoull.m4: New file.
84389
84390         Module strtoimax.
84391         * m4/strtoimax.m4: New file.
84392
84393         Module strtoumax.
84394         * m4/strtoumax.m4: New file.
84395
84396         Module xstrtoimax.
84397         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
84398         jm_AC_PREREQ_XSTRTOIMAX.
84399         Moved the strtol prerequisites to strtol.m4.
84400         Moved the strtoll prerequisites to strtoll.m4.
84401         Moved the strtoimax prerequisites to strtoimax.m4.
84402
84403         Module xstrtoumax.
84404         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
84405         jm_AC_PREREQ_XSTRTOUMAX.
84406         Moved the strtoul prerequisites to strtoul.m4.
84407         Moved the strtoull prerequisites to strtoull.m4.
84408         Moved the strtoumax prerequisites to strtoumax.m4.
84409
84410         Module chown.
84411         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
84412         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
84413
84414         Module dup2.
84415         * m4/dup2.m4: New file.
84416
84417         Module ftruncate.
84418         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
84419         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
84420
84421         Module getgroups.
84422         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
84423         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
84424
84425         Module gettimeofday.
84426         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
84427         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
84428         gl_PREREQ_GETTIMEOFDAY.
84429
84430         Module mkdir.
84431         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
84432         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
84433
84434         Module mkstemp.
84435         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
84436         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
84437         jm_AC_TYPE_UINTMAX_T.
84438         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
84439
84440         Module stat.
84441         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
84442         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
84443
84444         Module lstat.
84445         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
84446         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
84447
84448         Module timespec.
84449         * m4/timespec.m4 (gl_TIMESPEC): New macro.
84450         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
84451         * m4/st_mtim.m4: Indentation.
84452
84453         Module nanosleep.
84454         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
84455         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
84456         gl_PREREQ_NANOSLEEP.
84457
84458         Module regex.
84459         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
84460         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
84461         (gl_REGEX): New macro.
84462
84463         Module rename.
84464         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
84465         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
84466
84467         Module rmdir.
84468         * m4/rmdir.m4: New file.
84469
84470         Module utime.
84471         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
84472         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
84473         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
84474
84475         Module dirname.
84476         * m4/dirname.m4: New file.
84477
84478         Module getopt.
84479         * m4/getopt.m4: New file.
84480
84481         Module unistd-safer.
84482         * m4/unistd-safer.m4: New file.
84483
84484         Module fnmatch.
84485         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
84486         declaration.
84487         (gl_PREREQ_FNMATCH_EXTRA): New macro.
84488         (gl_FUNC_FNMATCH_POSIX): New macro.
84489         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
84490         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
84491         simply fnmatch.
84492
84493         Module exclude.
84494         * m4/exclude.m4: New file.
84495
84496         Module human.
84497         * m4/human.m4: New file.
84498
84499         Module acl.
84500         * m4/acl.m4: Nop.
84501
84502         Module backupfile.
84503         * m4/backupfile.m4: New file.
84504         * m4/d-ino.m4: Indentation.
84505
84506         Module fsusage.
84507         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
84508         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
84509         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
84510
84511         Module dirfd.
84512         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
84513         requirements.
84514
84515         Module euidaccess.
84516         * m4/euidaccess.m4: New file.
84517
84518         Module file-type.
84519         * m4/file-type.m4: New file.
84520
84521         Module fileblocks.
84522         * m4/fileblocks.m4: New file.
84523
84524         Module filemode.
84525         * m4/filemode.m4: New file.
84526
84527         Module isdir.
84528         * m4/isdir.m4: New file.
84529
84530         Module lchown.
84531         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
84532         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
84533
84534         Module makepath.
84535         * m4/makepath.m4: New file.
84536
84537         Module modechange.
84538         * m4/modechange.m4: New file.
84539
84540         Module mountlist.
84541         * m4/mountlist.m4: New file.
84542         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
84543         Indentation.
84544
84545         Module path-concat.
84546         * m4/path-concat.m4: New file.
84547
84548         Module pathmax.
84549         * m4/pathmax.m4: New file.
84550
84551         Module same.
84552         * m4/same.m4: New file.
84553
84554         Module save-cwd.
84555         * m4/save-cwd.m4: New file.
84556
84557         Module savedir.
84558         * m4/savedir.m4: New file.
84559
84560         Module xgetcwd.
84561         * m4/xgetcwd.m4: New file.
84562         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
84563
84564         Module xreadlink.
84565         * m4/xreadlink.m4: New file.
84566
84567         Module safe-read.
84568         * m4/safe-read.m4: New file.
84569
84570         Module safe-write.
84571         * m4/safe-write.m4: New file.
84572
84573         Module closeout.
84574         * m4/closeout.m4: New file.
84575
84576         Module stdio-safer.
84577         * m4/stdio-safer.m4: New file.
84578
84579         Module getpass.
84580         * m4/getpass.m4: New file.
84581
84582         Module getugroups.
84583         * m4/getugroups.m4: New file.
84584
84585         Module group-member.
84586         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
84587         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
84588
84589         Module idcache.
84590         * m4/idcache.m4: New file.
84591
84592         Module userspec.
84593         * m4/userspec.m4: New file.
84594
84595         Module gettime.
84596         * m4/clock_time.m4: New file.
84597         * m4/gettime.m4: New file.
84598
84599         Module settime.
84600         * m4/settime.m4: New file.
84601
84602         Module posixtm.
84603         * m4/posixtm.m4: New file.
84604
84605         Module gethostname.
84606         * m4/gethostname.m4: New file.
84607
84608         Module canon-host.
84609         * m4/canon-host.m4: New file.
84610
84611         Module gettext.
84612         * m4/codeset.m4: New file, from gettext-0.11.5.
84613         * m4/gettext.m4: New file, from gettext-0.11.5.
84614         * m4/glibc21.m4: New file, from gettext-0.11.5.
84615         * m4/iconv.m4: New file, from gettext-0.11.5.
84616         * m4/intdiv0.m4: New file, from gettext-0.11.5.
84617         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
84618         * m4/inttypes.m4: New file, from gettext-0.11.5.
84619         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
84620         * m4/isc-posix.m4: New file, from gettext-0.11.5.
84621         * m4/lcmessage.m4: New file, from gettext-0.11.5.
84622         * m4/lib-ld.m4: New file, from gettext-0.11.5.
84623         * m4/lib-link.m4: New file, from gettext-0.11.5.
84624         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
84625         * m4/progtest.m4: New file, from gettext-0.11.5.
84626         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
84627         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
84628         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
84629
84630         Module localcharset.
84631         * m4/localcharset.m4: New file.
84632
84633         Module hard-locale.
84634         * m4/hard-locale.m4: New file.
84635
84636         Module mbswidth.
84637         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
84638         onceonly macros.
84639         * m4/mbrtowc.m4: Add comment.
84640
84641         Module memcasecmp.
84642         * m4/memcasecmp.m4: New file.
84643
84644         Module memcoll.
84645         * m4/memcoll.m4: New file.
84646
84647         Module unicodeio.
84648         * m4/unicodeio.m4: New file.
84649
84650         Module rpmatch.
84651         * m4/rpmatch.m4: New file.
84652
84653         Module yesno.
84654         * m4/yesno.m4: New file.
84655
84656         Module exitfail.
84657         * m4/exitfail.m4: New file.
84658
84659         Module c-stack.
84660         * m4/c-stack.m4 (gl_C_STACK): New macro.
84661         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
84662
84663         Module error.
84664         * m4/error.m4 (gl_ERROR): New macro.
84665         (jm_PREREQ_ERROR): Use onceonly macros.
84666
84667         Module fatal.
84668         * m4/fatal.m4: New file.
84669
84670         Module getloadavg.
84671         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
84672         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
84673
84674         Module getpagesize.
84675         * m4/getpagesize.m4: New file.
84676
84677         Module getusershell.
84678         * m4/getusershell.m4: New file.
84679
84680         Module physmem.
84681         * m4/physmem.m4: New file.
84682
84683         Module posixver.
84684         * m4/posixver.m4: New file.
84685
84686         Module quotearg.
84687         * m4/quotearg.m4: New file.
84688
84689         Module quote.
84690         * m4/quote.m4: New file.
84691
84692         Module readutmp.
84693         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
84694
84695         Module sig2str.
84696         * m4/sig2str.m4: New file.
84697
84698         Other.
84699         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
84700         ulonglong.m4.
84701         * m4/intmax_t.m4: New file.
84702         * m4/d-type.m4: Indentation.
84703         * m4/jm-macros.m4: Update.
84704         * m4/prereq.m4 (jm_PREREQ): Update.
84705         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
84706         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
84707         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
84708         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
84709         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
84710         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
84711         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
84712         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
84713         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
84714         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
84715         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
84716         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
84717         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
84718         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
84719         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
84720         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
84721         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
84722         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
84723         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
84724
84725 2002-12-24  Bruno Haible  <bruno@clisp.org>
84726
84727         * MODULES.txt: Update according to m4/ changes.
84728
84729         Module gettext.
84730         * config.rpath: New file, from gettext-0.11.5.
84731
84732         * modules/*: New module descriptions.
84733         * gnulib-tool: New file.
84734         * MODULES.html.sh: New file.
84735
84736 2002-12-21  Karl Berry  <karl@gnu.org>
84737
84738         * doc/fdl.texi: update to version 1.2.
84739
84740 2002-12-19  Karl Berry  <karl@gnu.org>
84741
84742         * config/config.guess: update from prep.
84743
84744 2002-12-18  Bruno Haible  <bruno@clisp.org>
84745
84746         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
84747         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
84748
84749 2002-12-17  Bruno Haible  <bruno@clisp.org>
84750
84751         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
84752         stdlib.h, string.h.
84753
84754 2002-12-17  Bruno Haible  <bruno@clisp.org>
84755
84756         * lib/canon-host.c (strdup): Remove unused declaration.
84757
84758         * lib/fsusage.c: Include full_read.h.
84759         (get_fs_usage): Use full_read instead of safe_read.
84760
84761         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
84762
84763 2002-12-12  Karl Berry  <karl@gnu.org>
84764
84765         * config/config.guess: update from prep.
84766
84767 2002-12-11  Bruno Haible  <bruno@clisp.org>
84768
84769         * m4/setenv.m4: New file, from gettext-0.11.5.
84770
84771 2002-12-11  Bruno Haible  <bruno@clisp.org>
84772
84773         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
84774         not unsetenv().
84775         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
84776         modifications:
84777
84778         2002-12-11  Bruno Haible  <bruno@clisp.org>
84779
84780                 * setenv.c (alloca): Fall back to malloc.
84781                 (freea): New macro.
84782                 (setenv): Use freea() to free memory allocated with alloca().
84783
84784         2002-11-13  Bruno Haible  <bruno@clisp.org>
84785
84786                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
84787                 function declarations.
84788                 * unsetenv.c (unsetenv): Likewise.
84789
84790         2002-03-04  Bruno Haible  <bruno@clisp.org>
84791
84792                 Portability to AIX 4.3.3.
84793                 * unsetenv.c: New file, extracted from setenv.c.
84794                 * setenv.c: Move the unsetenv() function to unsetenv.c.
84795
84796         2001-12-20  Bruno Haible  <bruno@clisp.org>
84797
84798                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
84799                 use malloc instead. For SunOS 4.
84800
84801         2001-12-11  Bruno Haible  <bruno@clisp.org>
84802
84803                 * setenv.c: Declare alloca.
84804                 (compar_fn_t): New typedef.
84805                 (KNOWN_VALUE, STORE_VALUE): Use it.
84806
84807         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
84808         setenv.h.
84809
84810 2002-12-10  Paul Eggert  <eggert@twinsun.com>
84811
84812         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
84813         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
84814         Choose values that are less likely to collide with system fnmatch
84815         options.
84816         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
84817         defined (e.g., a pure POSIX system).
84818         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
84819         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
84820
84821 2002-12-06  Paul Eggert  <eggert@twinsun.com>
84822
84823         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
84824         a pain in practice to deal with generated m4 files.  This change
84825         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
84826
84827         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
84828         and jm-glibc-io.m4, as they are no longer a special case.
84829         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
84830         kludge and the auto-generation stuff.  Check only whether the
84831         functions are declared, not whether they exist, since older hosts
84832         that don't declare the functions can't use the optimization anyway.
84833
84834 2002-12-06  Jim Meyering  <jim@meyering.net>
84835
84836         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
84837
84838         Merge in changes from libc's misc/error.c, in preparation
84839         for the merge of gnulib's changes back into libc.
84840
84841         * lib/error.c (_): Define only if not already defined.
84842         Move definition to follow all #include directives.
84843         Include unlocked-io.h only if !_LIBC.
84844         [_LIBC]: Include <libio/libioP.h>.
84845         [USE_IN_LIBIO]: Include <libio/iolibio.h>
84846         (fflush): Tweak definition to use INTUSE.
84847         (putc): Define.
84848
84849 2002-12-05  Paul Eggert  <eggert@twinsun.com>
84850
84851         * lib/alloca.c [defined emacs]: Include "lisp.h".
84852         (xalloc_die) [defined emacs]: New macro.
84853         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
84854         [! defined emacs]: Include <xalloc.h>.
84855         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
84856         (pointer): Typedef to POINTER_TYPE *.
84857         (malloc): Remove decl; we now always use xmalloc.
84858         (alloca): Use old-style definition, since Emacs needs this.
84859         Check for arithmetic overflow when computing combined size.
84860
84861 2002-12-04  Paul Eggert  <eggert@twinsun.com>
84862
84863         Do not generate unlocked-io.h automatically, since it's easier to
84864         maintain it by hand.
84865
84866         * lib/unlocked-io.h: New file, from GNU diffutils,
84867         but with proper copyright notice and attribution.
84868         * lib/gen-uio: Remove.
84869         * lib/Makefile.am: Add copyright notice.
84870         (libfetish_a_SOURCES): Add unlocked-io.h.
84871         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
84872         (DISTCLEANFILES, io_functions): Remove macros.
84873         (EXTRA_DIST): Remove gen_uio.
84874         (unlocked-io.h): Remove rule.
84875
84876 2002-12-04  Jim Meyering  <jim@meyering.net>
84877
84878         Reflect the fact that stat.c and lstat.c are no longer generated.
84879         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
84880         (DISTCLEANFILES): Likewise.
84881         (EXTRA_DIST): Likewise.
84882         (all_local): Don't depend on stat.c or lstat.c.
84883         (stat.c, lstat.c): Remove rules.
84884         (EXTRA_DIST): Remove xstat.in.
84885
84886         * lib/xstat.in: Remove file.  Contents moved into stat.c.
84887         * lib/stat.c: New file.  Contents mostly from xstat.in.
84888         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
84889         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
84890
84891         * lib/safe-read.c: Rework so that it may serve to define safe_write,
84892         too.
84893         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
84894
84895 2002-12-03  Jim Meyering  <jim@meyering.net>
84896
84897         * lib/safe-read.c, safe-write.c: Change variable names and comments,
84898         but not semantics, to minimize the differences between these two files.
84899         (safe_read): Change comment to mention SAFE_READ_ERROR.
84900
84901         * lib/safe-read.c (IS_EINTR): Define.
84902         (safe_read): Use IS_EINTR in place of in-function cpp directives.
84903
84904 2002-12-02  Jim Meyering  <jim@meyering.net>
84905
84906         * lib/safe-read.c (EINTR): Define.
84907         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
84908         (INT_MAX): Provide fallback.
84909         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
84910
84911         * lib/safe-read.h (SAFE_READ_ERROR): Define.
84912
84913 2002-12-02  Bruno Haible  <bruno@clisp.org>
84914
84915         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
84916         Define, taken from safe-read.c.
84917         (INT_MAX): Provide fallback.
84918         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
84919         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
84920
84921         * lib/safe-read.c (EINTR): Remove definition.
84922         (safe_read): Don't use EINTR if it is absent.
84923
84924 2002-12-01  Jim Meyering  <jim@meyering.net>
84925
84926         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
84927         zero.
84928         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
84929
84930 2002-11-27  Paul Eggert  <eggert@twinsun.com>
84931
84932         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
84933         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
84934         with `if (! (value < limit)) abort ();', for readability.
84935
84936 2002-11-26  Karl Berry  <karl@gnu.org>
84937
84938         * lib/strdup.c: copy from libc again, with jim's ok.
84939         * lib/.cppi-disable: re-add strdup.c
84940
84941 2002-11-25  Karl Berry  <karl@gnu.org>
84942
84943         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
84944         instead of "strtol.c".
84945
84946 2002-11-25  Karl Berry  <karl@gnu.org>
84947
84948         * config/install-sh: update from automake for variable quoting, $0 in
84949         error msgs, etc.
84950
84951         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
84952         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
84953         entry.
84954
84955 2002-11-25  Jim Meyering  <jim@meyering.net>
84956
84957         * lib/mktime.c: Sync from libc, now that it has the latest fix.
84958
84959 2002-11-24  Karl Berry  <karl@gnu.org>
84960
84961         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
84962         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
84963
84964 2002-11-24  Jim Meyering  <jim@meyering.net>
84965
84966         Update from coreutils:
84967
84968         * lib/mktime.c: Merge in changes from libc.
84969
84970         Avoid a link-time failure on some Linux systems.
84971         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
84972         (otherwise).
84973         (__mon_yday): Declare with the STATIC attribute.
84974         (__mktime_internal): Likewise.
84975         Based on a report from Greg Schafer.
84976
84977 2002-11-23  Jim Meyering  <jim@meyering.net>
84978
84979         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
84980         Use `unsigned', not `int', as type of index.
84981
84982         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
84983
84984         * lib/fsusage.c: Remove unneeded parentheses around operands of
84985         `defined'.
84986
84987 2002-11-22  Paul Eggert  <eggert@twinsun.com>
84988
84989         * lib/quotearg.h: Allow multiple inclusion by surrounding with
84990         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
84991         so that we can be included first.
84992         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
84993         * lib/quotearg.c: Include quotearg.h immediately after config.h.
84994         No need to include stddef.h or sys/types.h any more.
84995         Surround local include files with "", not "<>".
84996         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
84997         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
84998         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
84999         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
85000         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
85001         (ISPRINT): Remove; no longer needed now that we assume C89.
85002
85003         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
85004         Preserve errno.
85005
85006         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
85007         quotearg_char): Use SIZE_MAX rather than
85008         (size_t) -1 when we are talking about "infinity".
85009
85010         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
85011
85012 2002-11-22  Paul Eggert  <eggert@twinsun.com>
85013
85014         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
85015         hint that one should use `if (! x) abort ();' rather than `assert
85016         (x);', and anyway it's one less thing to worry about configuring.
85017         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
85018         hash_rehash, hash_insert): Use abort rather than assert.
85019
85020 2002-11-22  Bruno Haible  <bruno@clisp.org>
85021
85022         * lib/safe-read.h: Assume C89. Add comments.
85023         (safe_read): Change return type to size_t.
85024         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
85025         byte counts > SSIZE_MAX correctly.
85026         * lib/safe-write.h: New file.
85027         * lib/safe-write.c: New file.
85028         * lib/full-read.h: New file.
85029         * lib/full-read.c: New file.
85030         * lib/full-write.h: Assume C89. Add comments.
85031         * lib/full-write.c: Include safe-write.h.
85032         (full_write): Rewritten to use safe_write.
85033         Suggested by Jim Meyering and Paul Eggert.
85034
85035 2002-11-21  Jim Meyering  <jim@meyering.net>
85036
85037         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
85038
85039         Merge in changes from the coreutils.
85040
85041         2002-09-25  Paul Eggert  <eggert@twinsun.com>
85042         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
85043         <stdint.h>.
85044         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
85045         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
85046         int.  Work more efficiently if X is the same width as uintmax_t.
85047         Do not compare X to -1, to avoid bogus compiler warning.
85048         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
85049         Don't assume that f_frsize and f_bsize are the same type.
85050
85051         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
85052         warning on FreeBSD.
85053
85054         * lib/makepath.c (make_path): Restore umask *before* creating the final
85055         component.
85056         (make_path): Minor reformatting.
85057
85058         * lib/xmalloc.c: Adjust to work with new autoconf macros,
85059         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
85060         HAVE_MALLOC/HAVE_REALLOC.
85061
85062         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
85063         dummy ones.  At least on GNU/Linux systems, `auto' means something
85064         else.
85065         From Michael Stone.
85066
85067 2002-11-21  Bruno Haible  <bruno@clisp.org>
85068
85069         Remove case insensitive option matching.
85070         * lib/argmatch.h (argcasematch): Remove declaration.
85071         (ARGCASEMATCH): Remove macro.
85072         (__xargmatch_internal): Remove case_sensitive argument.
85073         (XARGMATCH): Update.
85074         (XARGCASEMATCH): Remove macro.
85075         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
85076         case_sensitive argument.
85077         (argcasematch): Remove function.
85078         (__xargmatch_internal): Remove case_sensitive argument.
85079         (main): Use XARGMATCH instead of XARGCASEMATCH.
85080
85081         * lib/xmalloc.c: Change compile-time error message. Add comment about
85082         required autoconf version.
85083
85084 2002-11-20  Paul Eggert  <eggert@twinsun.com>
85085
85086         Merge argmatch cleanups from Bison.  Assume C89.
85087
85088         * lib/argmatch.c: Include config.h here, not in argmatch.h.
85089         Include stdlib.h, for EXIT_FAILURE.
85090         Always include <string.h>, since we assume C89.
85091         (EXIT_FAILURE): Remove pre-C89 bug workaround.
85092         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
85093         Include <stddef.h> instead, since it's all we need for size_t.
85094         (PARAMS): Remove.  All uses removed.
85095         (ARRAY_CARDINALITY): Do not bother to #undef.
85096         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
85097         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
85098         Remove unnecessary parentheses.
85099         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
85100         Insert necessary parentheses.
85101         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
85102         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
85103
85104 2002-11-19  Bruno Haible  <bruno@clisp.org>
85105
85106         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
85107         * lib/mbswidth.h: Include <stddef.h>, for size_t.
85108
85109         * lib/mbswidth.h (PARAMS): Remove macro.
85110         (mbswidth, mbsnwidth): Use ANSI C function declarations.
85111         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
85112
85113         * lib/gcd.h (PARAMS): Remove macro.
85114         (gcd): Use ANSI C function declarations.
85115         * lib/gcd.c (gcd): Likewise.
85116
85117 2002-11-15  Bruno Haible  <bruno@clisp.org>
85118
85119         * lib/strcspn.c: Include <stddef.h>.
85120         (strcspn): Use ANSI C function declaration. Change return type to
85121         size_t. Use NULL.
85122         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
85123         (strpbrk): Use NULL.
85124         * lib/strpbrk.h (PARAMS): Remove macro.
85125         (strpbrk): Use ANSI C function declaration.
85126         * lib/strstr.c: Don't include <sys/types.h>.
85127         * lib/strstr.h (PARAMS): Remove macro.
85128         (strstr): Use ANSI C function declarations.
85129
85130 2002-11-14  Karl Berry  <karl@gnu.org>
85131
85132         * config/mkinstalldirs: `do' on separate line, instead of
85133         `for var; do'.
85134
85135 2002-11-06  Bruno Haible  <bruno@clisp.org>
85136
85137         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
85138         * lib/gcd.c (gcd): Likewise.
85139
85140 2002-11-05  Bruno Haible  <bruno@clisp.org>
85141
85142         * lib/gcd.h: New file, from gettext-0.11.5.
85143         * lib/gcd.c: New file, from gettext-0.11.5.
85144
85145 2002-11-05  Bruno Haible  <bruno@clisp.org>
85146
85147         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
85148         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
85149         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
85150         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
85151
85152         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
85153         <libintl.h>.
85154         * lib/makepath.c: Include gettext.h instead of <locale.h> and
85155         <libintl.h>.
85156
85157         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
85158         * lib/human.c: Include gettext.h instead of <libintl.h>.
85159         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
85160         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
85161         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
85162         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
85163         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
85164         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
85165         (textdomain): Remove definition.
85166         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
85167
85168         * lib/long-options.c: Remove include of <libintl.h> and definition of
85169         _.
85170         * lib/same.c: Remove include of <libintl.h> and definition of _.
85171
85172 2002-11-04  Owen Taylor  <otaylor@redhat.com>
85173
85174         * lib/config.charset: A few additions for Solaris.
85175
85176 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
85177
85178         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
85179         * lib/localcharset.c (locale_charset): Declare as extern "C".
85180
85181 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
85182
85183         * lib/config.charset: msdos in uk_UA uses CP1125.
85184
85185 2002-11-04  Bruno Haible  <bruno@clisp.org>
85186
85187         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
85188         * lib/strcase.h: New file, from GNU gettext-0.11.5.
85189         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
85190         * lib/strstr.h: New file, from GNU gettext-0.11.5.
85191         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
85192
85193 2002-11-04  Bruno Haible  <bruno@clisp.org>
85194
85195         * lib/localcharset.c (locale_charset): Don't return an empty string.
85196
85197 2002-11-04  Bruno Haible  <bruno@clisp.org>
85198
85199         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
85200         aliases.
85201
85202 2002-11-04  Bruno Haible  <bruno@clisp.org>
85203
85204         * lib/config.charset: Update for newest glibc. Add canonical names
85205         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
85206
85207 2002-11-04  Bruno Haible  <bruno@clisp.org>
85208
85209         * lib/config.charset: Add support for NetBSD.
85210
85211 2002-11-04  Bruno Haible  <bruno@clisp.org>
85212
85213         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
85214
85215 2002-11-01  Bruno Haible  <bruno@clisp.org>
85216
85217         * configure.in: Add AC_CONFIG_AUX_DIR call.
85218         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
85219         test/Makefile.
85220         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
85221
85222 2002-09-28  Karl Berry  <karl@gnu.org>
85223
85224         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
85225         installed automake until the next release, since changes have been
85226         made.
85227
85228 2002-09-25  Karl Berry  <karl@gnu.org>
85229
85230         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
85231         * lib/getopt*: copy from libc/posix.
85232         * lib/gettext.h: copy from gettext.
85233         * lib/.cppi-disable: add strdup.c, gettext.h.
85234
85235 2002-09-25  Karl Berry  <karl@gnu.org>
85236
85237         * config/srclist.txt: enable gettext.h check.
85238         * config/config.{guess,sub}: update from prep.
85239         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
85240                 from automake 1.6.3.
85241         See srclist*.
85242
85243 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
85244
85245         * regex.c (PATFETCH): Remove the translating fetch.
85246         (PATFETCH_RAW): Rename to PATFETCH.
85247         (set_image_of_range): New fun.
85248         (SET_RANGE_TABLE_WORK_AREA): Use it.
85249         (regex_compile): Don't translate the pattern chars so eagerly.
85250         Only do it when inserting an `exactn' bytecode or when handling
85251         a char-range.
85252         (mutually_exclusive_p): Avoid empty statement.
85253
85254 2002-07-06  Jim Meyering  <meyering@lucent.com>
85255
85256         * m4/README: Don't mention Makefile.am.in.
85257         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
85258
85259 2002-07-01  Jim Meyering  <meyering@lucent.com>
85260
85261         * lib/c-stack.c: Include sys/time.h.
85262         From Volker Borchert.
85263
85264 2002-06-26  Paul Eggert  <eggert@twinsun.com>
85265
85266         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
85267
85268 2002-06-26  Paul Eggert  <eggert@twinsun.com>
85269
85270         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
85271         New macro.  Use it uniformly instead of
85272         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
85273         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
85274         reported by Vin Shelton.
85275
85276 2002-06-22  Paul Eggert  <eggert@twinsun.com>
85277
85278         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
85279         Do not assume SA_SIGINFO behavior.
85280         Bug reported by Jim Meyering on NetBSD 1.5.2.
85281
85282 2002-06-22  Jim Meyering  <meyering@lucent.com>
85283
85284         * m4/c-stack.m4: New file, from diffutils-2.8.2.
85285         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
85286
85287         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
85288         now that configure.ac uses AC_GNU_SOURCE.
85289         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
85290         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
85291
85292         Update to latest tools.  Suggestions from Paul Eggert.
85293         * m4/stdbool.m4: New file, from diffutils-2.8.2.
85294         * m4/gnu-source.m4: Update from diffutils-2.8.2.
85295         * m4/fnmatch.m4: Likewise.
85296         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
85297         to AC_HEADER_STDBOOL
85298
85299 2002-06-22  Jim Meyering  <meyering@lucent.com>
85300
85301         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
85302         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
85303
85304 2002-06-22  Jim Meyering  <meyering@lucent.com>
85305
85306         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
85307
85308         * lib/exitfail.c, exitfail.h: Likewise.
85309         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
85310
85311         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
85312         of fnmatch.h.
85313         (EXTRA_DIST): Add fnmatch_loop.c.
85314         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
85315
85316         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
85317         * lib/fnmatch.c: Update from diffutils-2.8.2.
85318         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
85319         * lib/fnmatch.h: Remove file.
85320
85321 2002-06-21  Jim Meyering  <meyering@lucent.com>
85322
85323         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
85324         * m4/mbrtowc.m4: Likewise.
85325
85326         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
85327         * m4/mbswidth.m4: Reflect name change:
85328         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
85329         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
85330
85331         * m4/lib-link.m4: Update from gettext-0.11.2.
85332         * m4/gettext.m4: Likewise.
85333
85334         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
85335         From Alfred M. Szmidt.
85336
85337 2002-06-18  Paul Eggert  <eggert@twinsun.com>
85338
85339         * lib/file-type.h: Report an error if neither S_ISREG nor
85340         S_IFREG is defined, instead of using a test specific to glibc
85341         2.2.  This should be safe, since POSIX requires S_ISREG and
85342         Unix Version 7 had S_IFREG.  We don't need to check for
85343         <sys/types.h> since we don't use any symbols that it defines.
85344
85345 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
85346
85347         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
85348         $@-t, so that each temporary file name is unique and valid in the first
85349         8 characters, for operation under DOS.
85350
85351 2002-06-15  Paul Eggert  <eggert@twinsun.com>
85352
85353         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
85354
85355 2002-06-15  Jim Meyering  <meyering@lucent.com>
85356
85357         Work even with DJGPP 2.03, which lacks support for symlinks.
85358         From Richard Dawe.
85359         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
85360         is defined.
85361         * lib/lchown.c (S_ISLNK): Likewise.
85362
85363 2002-06-15  Jim Meyering  <meyering@lucent.com>
85364
85365         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
85366         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
85367         have been included before this file.
85368
85369 2002-06-14  Jim Meyering  <meyering@lucent.com>
85370
85371         * lib/file-type.h: Use the version from diffutils-2.8.2.
85372         * lib/file-type.c: Likewise.
85373
85374 2002-06-07  Jim Meyering  <meyering@lucent.com>
85375
85376         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
85377         They're needed at least for NetBSD 1.5.2.
85378         ($statxfs_includes): Include those same headers.
85379         ($statxfs_includes): Include sys/vfs.h if available.
85380         ($statxfs_includes): Likewise for sys/statvfs.h.
85381         Check for the following members in both structs statfs and statvfs:
85382         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
85383
85384 2002-06-01  Jim Meyering  <meyering@lucent.com>
85385
85386         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
85387         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
85388
85389 2002-05-28  Jim Meyering  <meyering@lucent.com>
85390
85391         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
85392         Reported by Volker Borchert.
85393
85394 2002-05-27  Jim Meyering  <meyering@lucent.com>
85395
85396         Fix a problem seen only on nonconforming systems whereby ls.c's
85397         use of localtime, and then of gettimeofday would cause trouble:
85398         the localtime call used to initialize rpl_gettimeofday's save
85399         mechanism would clobber ls's current local time information so
85400         that in any long listing the first file would always be listed
85401         with date 1970-01-01.  Analysis by Volker Borchert.
85402
85403         * lib/gettimeofday.c (localtime): Undefine.
85404         (rpl_localtime): New function.
85405
85406 2002-05-27  Jim Meyering  <meyering@lucent.com>
85407
85408         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
85409         localtime.
85410
85411         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
85412         use the replacement function; it wouldn't resolve at link time.
85413         Reported by Volker Borchert.
85414
85415 2002-05-22  Jim Meyering  <meyering@lucent.com>
85416
85417         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
85418         file-type.h.
85419         * lib/file-type.h: New file.
85420         * lib/file-type.c (file_type): New file/function.  Extracted from
85421         diffutils.
85422
85423 2002-04-30  Jim Meyering  <meyering@lucent.com>
85424
85425         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
85426
85427 2002-04-29  Paul Eggert  <eggert@twinsun.com>
85428
85429         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
85430
85431 2002-04-29  Paul Eggert  <eggert@twinsun.com>
85432
85433         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
85434         Do not check for alloca.h (no longer used) or stdbool.h (was never
85435         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
85436
85437 2002-04-29  Paul Eggert  <eggert@twinsun.com>
85438
85439         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
85440
85441 2002-04-29  Jim Meyering  <meyering@lucent.com>
85442
85443         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
85444         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
85445         Use AC_FUNC_STRNLEN here instead.
85446
85447         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
85448         With autoconf-2.53a, it's part of AC_PROG_CC.
85449
85450 2002-04-28  Paul Eggert  <eggert@twinsun.com>
85451
85452         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
85453         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
85454
85455 2002-04-28  Paul Eggert  <eggert@twinsun.com>
85456
85457         * lib/sig2str.h, lib/sig2str.c: New files.
85458         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
85459
85460 2002-04-28  Paul Eggert  <eggert@twinsun.com>
85461
85462         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
85463         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
85464         of 127, since 64 is the largest conceivable number for ancient
85465         nonstandard hosts.
85466         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
85467
85468 2002-04-28  Jim Meyering  <meyering@lucent.com>
85469
85470         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
85471
85472 2002-04-24  Jim Meyering  <meyering@lucent.com>
85473
85474         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
85475         (jm_PREREQ): Use it.
85476
85477         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
85478         mach/mach.h fcntl.h.
85479         Check for this function: setlocale.
85480
85481 2002-04-24  Jim Meyering  <meyering@lucent.com>
85482
85483         * lib/gettext.h: New file, from Gettext.
85484         * lib/Makefile.am (INCLUDES): Remove -I../intl.
85485         (libfetish_a_SOURCES): Add gettext.h.
85486
85487 2002-04-16  Jim Meyering  <meyering@lucent.com>
85488
85489         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
85490         ut_pid, ut_id, ut_exit.
85491
85492 2002-04-16  Jim Meyering  <meyering@lucent.com>
85493
85494         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
85495         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
85496         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
85497
85498 2002-04-12  Jim Meyering  <meyering@lucent.com>
85499
85500         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
85501         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
85502         existence of the getmntinfo function.  Needed for Darwin 5.3.
85503
85504         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
85505         This is necessary at least on Darwin 5.3.
85506
85507         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
85508         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
85509         strnlen.o in the library, and that makes some versions of ranlib
85510         object.
85511
85512 2002-04-12  Jim Meyering  <meyering@lucent.com>
85513
85514         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
85515
85516 2002-04-09  Jim Meyering  <meyering@lucent.com>
85517
85518         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
85519         to be more precise.  Rather than saying we're checking whether the
85520         function `works', say what we're testing.
85521         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
85522         Reported by Bruno Haible.
85523
85524 2002-03-10  Jim Meyering  <meyering@lucent.com>
85525
85526         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
85527         Suggestion from Santiago Vila.
85528
85529 2002-03-08  Jim Meyering  <meyering@lucent.com>
85530
85531         * lib/rename.c: Mention that this wrapper is needed also on
85532         mips-dec-ultrix4.4 systems.
85533
85534 2002-03-02  Jim Meyering  <meyering@lucent.com>
85535
85536         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
85537         not HAVE_CLOCK_SETTIME.
85538
85539 2002-02-27  Paul Eggert  <eggert@twinsun.com>
85540
85541         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
85542         Check for clock_settime.
85543
85544 2002-02-27  Paul Eggert  <eggert@twinsun.com>
85545
85546         * lib/nanosleep.h: Rename to....
85547         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
85548
85549         * lib/gettime.c: New file.
85550         * lib/settime.c: New file.
85551         * lib/stime.c: Remove.
85552
85553         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
85554         timespec.h.  Remove nanosleep.h.
85555
85556 2002-02-25  Paul Eggert  <eggert@twinsun.com>
85557
85558         * m4/acl.m4: New file.
85559         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
85560         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
85561
85562 2002-02-25  Paul Eggert  <eggert@twinsun.com>
85563
85564         * lib/acl.c, lib/acl.h: New files.
85565         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
85566
85567 2002-02-24  Jim Meyering  <meyering@lucent.com>
85568
85569         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
85570         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
85571         cause trouble.  Reported by Nelson Beebe.
85572
85573 2002-02-23  Paul Eggert  <eggert@twinsun.com>
85574
85575         * lib/path-concat.c (xpath_concat): Reorder code to pacify
85576         compilers that don't know that xalloc_die never returns.
85577
85578 2002-02-20  Jim Meyering  <meyering@lucent.com>
85579
85580         * lib/getdate.c: Regenerate using bison-1.33.
85581
85582 2002-02-17  Jim Meyering  <meyering@lucent.com>
85583
85584         * config/config.guess (main): Don't use `head -1'; it's no longer
85585         portable. Use `sed 1q' instead.
85586
85587 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
85588
85589         * m4/codeset.m4: Upgrade to gettext-0.11.
85590         * m4/gettext.m4: Upgrade to gettext-0.11.
85591         * m4/glibc21.m4: Upgrade to gettext-0.11.
85592         * m4/iconv.m4: Upgrade to gettext-0.11.
85593         * m4/isc-posix.m4: Upgrade to gettext-0.11.
85594         * m4/lcmessage.m4: Upgrade to gettext-0.11.
85595         * m4/lib-ld.m4: New file, from gettext-0.11.
85596         * m4/lib-link.m4: New file, from gettext-0.11.
85597         * m4/lib-prefix.m4: New file, from gettext-0.11.
85598         * m4/progtest.m4: Upgrade to gettext-0.11.
85599
85600 2002-02-15  Paul Eggert  <eggert@twinsun.com>
85601
85602         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
85603         (jm_PREREQ): Use it.
85604
85605 2002-02-15  Paul Eggert  <eggert@twinsun.com>
85606
85607         * lib/posixver.c, lib/posixver.h: New files.
85608         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
85609
85610 2002-02-02  Paul Eggert  <eggert@twinsun.com>
85611             Bruno Haible  <bruno@clisp.org>
85612
85613         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
85614         (fwrite_success_callback): New declaration.
85615         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
85616         print_unicode_char. Call failure callback instead of error.
85617         (fwrite_success_callback): New function.
85618         (exit_failure_callback): New function.
85619         (fallback_failure_callback): New function.
85620         (print_unicode_char): Call unicode_to_mb.
85621
85622 2002-01-26  Jim Meyering  <meyering@lucent.com>
85623
85624         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
85625         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
85626
85627 2002-01-26  Jim Meyering  <meyering@lucent.com>
85628
85629         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
85630
85631 2002-01-22  Paul Eggert  <eggert@twinsun.com>
85632
85633         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
85634
85635 2002-01-22  Jim Meyering  <meyering@lucent.com>
85636
85637         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
85638         Otherwise, some versions of automake would omit the rule that makes
85639         Makefile from Makefile.in.
85640
85641 2002-01-21  Paul Eggert  <eggert@twinsun.com>
85642
85643         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
85644         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
85645         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
85646         (memcoll): Set errno to zero if there is no error.
85647
85648         * lib/quotearg.c (quotearg_buffer_restyled):
85649         Fix bug with quoting buffers containing NUL when backslashing escapes.
85650         This bug was exposed by the other changes in this patch.
85651         (quotearg_n_options): New arg ARGSIZE.
85652         All callers changed.
85653         (quoting_options_from_style): New function.
85654         (quotearg_n_style): Use it.
85655         (quotearg_n_style_mem): New function.
85656
85657         * lib/quotearg.h (quotearg_n_style_mem): New function.
85658
85659 2002-01-19  Jim Meyering  <meyering@lucent.com>
85660
85661         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
85662         Remove useless quotes: DF_PROG="df".
85663         * m4/strnlen.m4: New file.
85664
85665 2002-01-16  Paul Eggert  <eggert@twinsun.com>
85666
85667         * lib/backupfile.c (ISDIGIT): Comment fix.
85668         * lib/getdate.y (ISDIGIT): Likewise.
85669         * lib/posixtm.c (ISDIGIT, year): Likewise.
85670         * lib/strverscmp.c (ISDIGIT): Likewise.
85671         * lib/userspec.c (ISDIGIT): Likewise.
85672
85673 2002-01-16  Jim Meyering  <meyering@lucent.com>
85674
85675         * lib/getdate.y: Add three semicolons, each just before a closing
85676         brace. Bison (as of version 1.31) no longer papers over that mistake.
85677
85678 2002-01-05  Jim Meyering  <meyering@lucent.com>
85679
85680         * lib/version-etc.c (version_etc_copyright): Update copyright year.
85681
85682 2001-12-19  Paul Eggert  <eggert@twinsun.com>
85683
85684         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
85685         not silently exit merely because the output buffer happens to
85686         have nothing pending.
85687
85688 2001-12-18  Paul Eggert  <eggert@twinsun.com>
85689
85690         See the big note in ../ChangeLog.
85691         * lib/human.c (suffixes): Prefer K to k for 1024.
85692         (generate_suffix_backwards): New function.
85693         (human_readable_inexact): Use it.
85694         * lib/xstrtol.c (__xstrtol): If there is no number but there
85695         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
85696         Accept 'K' as well as 'k'.
85697
85698 2001-12-15  Jim Meyering  <meyering@lucent.com>
85699
85700         * lib/regex.h (__restrict_arr): Update from libc.
85701
85702         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
85703         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
85704         (STREQ): Define.
85705
85706 2001-12-14  Jim Meyering  <meyering@lucent.com>
85707
85708         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
85709         Suggestion from Bruno Haible.
85710
85711 2001-12-10  Jim Meyering  <meyering@lucent.com>
85712
85713         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
85714         xrealloc, Instead, include "xalloc.h".
85715         (initbuffer): Don't cast xmalloc return value to char*.
85716         (readline): Reword comment.
85717         Don't cast xrealloc return value to char*
85718         Return NULL, not 0.
85719
85720 2001-12-09  Jim Meyering  <meyering@lucent.com>
85721
85722         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
85723         about `signed and unsigned type in conditional expression'.
85724         * lib/posixtm.c (posix_time_parse): Likewise.
85725
85726         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
85727
85728         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
85729         to avoid a pedantic warning.
85730
85731         * lib/getstr.c: Don't include assert.h.
85732         (getstr): Remove warning-evoking assertions.
85733         Return -1 if offset parameter is out of bounds.
85734         Change the type of a local from int to size_t.
85735
85736         * lib/strftime.c (my_strftime_localtime_r): Include this function
85737         definition in the `#if ! HAVE_TM_GMTOFF' block.
85738
85739         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
85740         Include xalloc.h instead.
85741
85742 2001-12-02  Jim Meyering  <meyering@lucent.com>
85743
85744         * lib/tempname.c: Don't declare getenv, thus reverting the change of
85745         2001-11-18.  It's no longer necessary, now that stdlib.h is always
85746         included.
85747
85748         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
85749         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
85750
85751 2001-11-30  Akim Demaille  <akim@epita.fr>
85752
85753         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
85754         before being defined.
85755
85756 2001-11-27  Paul Eggert  <eggert@twinsun.com>
85757
85758         * lib/quotearg.h (quotearg_n, quotearg_n_style):
85759         First arg is int, not unsigned.
85760         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
85761         (SIZE_MAX, UINT_MAX): New macros.
85762         (quotearg_n_options): Abort if N is negative.
85763         Avoid overflow check on hosts where size_t is 64 bits and int
85764         is 32 bits, as overflow is impossible there.
85765         Fix off-by-one typo that caused unnecessary reallocation.
85766
85767 2001-11-27  Jim Meyering  <meyering@lucent.com>
85768
85769         * lib/tempname.c: Merge with version from libc.
85770         * lib/regex.c: Likewise.
85771
85772         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
85773         systems for which STDC_HEADERS is 0, it was not included, resulting in
85774         a warning about an integer-to-pointer conversion problem with getenv.
85775         Reported by Volker Borchert.
85776
85777 2001-11-26  Jim Meyering  <meyering@lucent.com>
85778
85779         * lib/gtod.h: Remove file.
85780         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
85781         * lib/gettimeofday.c: Don't include gtod.h.
85782         (GTOD_init): Remove function.
85783         (rpl_gettimeofday): Do its job here instead, rather than aborting.
85784         Suggestion from Volker Borchert.
85785
85786 2001-11-23  Jim Meyering  <meyering@lucent.com>
85787
85788         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
85789         it.
85790         * lib/hash.c (struct hash_table): Define it here instead.
85791
85792 2001-11-22  Jim Meyering  <meyering@lucent.com>
85793
85794         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
85795
85796 2001-11-20  Jim Meyering  <meyering@lucent.com>
85797
85798         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
85799         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
85800
85801 2001-11-19  Jim Meyering  <meyering@lucent.com>
85802
85803         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
85804         directory.  Use "conftestXXXXXX" as the template.
85805         Suggestion from Paul Eggert.
85806
85807         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
85808         immediately, so the test doesn't mistakenly hit the max-open-files
85809         limit.
85810
85811 2001-11-18  Paul Eggert  <eggert@twinsun.com>
85812
85813         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
85814         (TEMPORARIES): New macro.
85815         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
85816         removes an artificial limitation (e.g. HP-UX 10.20, where
85817         TMP_MAX is 17576).
85818
85819 2001-11-18  Jim Meyering  <meyering@lucent.com>
85820
85821         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
85822
85823 2001-11-18  Jim Meyering  <meyering@lucent.com>
85824
85825         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
85826         on SunOS 4.
85827
85828         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
85829         files will be created before anything else.
85830
85831 2001-11-17  Paul Eggert  <eggert@twinsun.com>
85832
85833         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
85834         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
85835
85836 2001-11-17  Jim Meyering  <meyering@lucent.com>
85837
85838         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
85839         Prompted by a report from Bob Proulx.
85840
85841         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
85842         Instead, require UTILS_FUNC_MKSTEMP.
85843
85844 2001-11-17  Jim Meyering  <meyering@lucent.com>
85845
85846         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
85847         Now, that's done as part of AC_FUNC_STRTOD.
85848
85849 2001-11-17  Jim Meyering  <meyering@lucent.com>
85850
85851         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
85852         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
85853         rather than group writable.  Patch by Juan F. Codagnone.
85854
85855         * lib/readtokens.c: Remove explicit declarations of xmalloc and
85856         xrealloc, Instead, include "xalloc.h".
85857
85858         * lib/mountlist.c: Include unlocked-io.h after all system headers.
85859         Remove explicit declarations of xmalloc, xrealloc,
85860         and xstrdup.  Instead, include "xalloc.h".
85861
85862         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
85863         unlocked-io.h.
85864         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
85865         Likewise.
85866         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
85867
85868         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
85869         Reported by Padraig Brady.
85870
85871         * lib/mkstemp.c: #undef mkstemp.
85872         Include config.h.
85873         (rpl_mkstemp): Rename from mkstemp.
85874         Protoize.
85875
85876 2001-11-16  Jim Meyering  <meyering@lucent.com>
85877
85878         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
85879         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
85880         determine the amount of total physical memory, use pstat_getstatic.
85881         HPUX-11 doesn't define _SC_PHYS_PAGES.
85882         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
85883         If sysconf couldn't be used to determine the amount of available
85884         physical memory, use both pstat_getstatic and pstat_getdynamic.
85885         Based on a patch from Bob Proulx.
85886
85887 2001-11-10  Jim Meyering  <meyering@lucent.com>
85888
85889         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
85890         (jm_PREREQ): Use it.
85891
85892 2001-11-09  Jim Meyering  <meyering@lucent.com>
85893
85894         * m4/jm-macros.m4: Require autoconf-2.52f.
85895         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
85896         Use these AC_-prefixed names, not the AM_-prefixed ones.
85897
85898         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
85899
85900 2001-11-05  Jim Meyering  <meyering@lucent.com>
85901
85902         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
85903
85904 2001-11-04  Jim Meyering  <meyering@lucent.com>
85905
85906         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
85907         $DEFS.
85908
85909 2001-11-03  Jim Meyering  <meyering@lucent.com>
85910
85911         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
85912         of AC_DEFUN.
85913
85914         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
85915         know the name of the variable in the macro definition.
85916
85917 2001-11-03  Jim Meyering  <meyering@lucent.com>
85918
85919         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
85920         in argmatch_to_argument call.
85921
85922         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
85923         argument.
85924
85925         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
85926         e.g., a fault due to an attempt to free a NULL pointer.
85927
85928 2001-11-01  Jim Meyering  <meyering@lucent.com>
85929
85930         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
85931         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
85932
85933 2001-11-01  Jim Meyering  <meyering@lucent.com>
85934
85935         * lib/dirfd.c, lib/dirfd.h: New files.
85936         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
85937
85938         * lib/hash.c (hash_print) [TESTING]: Clean up.
85939
85940 2001-10-22  Paul Eggert  <eggert@twinsun.com>
85941
85942         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
85943         to avoid a warning if -Wall.
85944
85945 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
85946
85947         * README: New file
85948         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
85949         (per RMS's instructions, this is now the canonical source)
85950         * lgpl/, gpl/: New directories.
85951
85952 2001-10-21  Paul Eggert  <eggert@twinsun.com>
85953
85954         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
85955
85956 2001-10-21  Jim Meyering  <meyering@lucent.com>
85957
85958         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
85959         this code would end up calling gettext even in packages built
85960         with --disable-nls.
85961         * lib/getopt.c (_): Likewise.
85962         * lib/regex.c (_): Likewise.
85963
85964 2001-10-20  Paul Eggert  <eggert@twinsun.com>
85965
85966         * m4/error.m4 (jm_PREREQ_ERROR):
85967         Do not invoke AC_CHECK_FUNCS with strerror_r, as
85968         AC_FUNC_STRERROR_R does that.
85969         Check for strerror declaration.
85970
85971         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
85972         are supposed to have them these days.
85973         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
85974         Merge changes from latest Autoconf CVS.
85975         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
85976         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
85977         POSIX decided to standardize on the int flavor of strerror_r.
85978
85979 2001-10-20  Paul Eggert  <eggert@twinsun.com>
85980
85981         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
85982         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
85983         Use strerror_r that is only a macro, even if it is not a function.
85984         (strerror): Check for HAVE_DECL_STRERROR before declaring.
85985         (private_strerror): Use prototypes, not old-style function definition.
85986         (print_errno_message): New function.
85987         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
85988         char*-flavored one.
85989         (error_tail, error, error_at_line): Use it.
85990
85991 2001-10-11  Jim Meyering  <meyering@lucent.com>
85992
85993         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
85994         and quote_n (1, ... to avoid clobbering a buffer.
85995
85996 2001-10-05  Jim Meyering  <meyering@lucent.com>
85997
85998         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
85999         hash-pjw.h.
86000         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
86001         * lib/hash-pjw.h: New file.
86002
86003 2001-09-30  Jim Meyering  <meyering@lucent.com>
86004
86005         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
86006         `struct fsstat' has the `f_fstypename' member.
86007         Use that to define FS_TYPE, which is now used to make
86008         the getfsstat link test tighter.
86009
86010 2001-09-30  Jim Meyering  <meyering@lucent.com>
86011
86012         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
86013         Include <sys/ucred.h>, for Apple Darwin.
86014         Include sys/mount.h and sys/fs_types.h only if available.
86015         (FS_TYPE): Define.
86016         (read_filesystem_list): Use FS_TYPE.
86017
86018 2001-09-29  Paul Eggert  <eggert@twinsun.com>
86019
86020         * lib/exclude.c (excluded_filename): 0 -> false, since it's
86021         a boolean context.
86022
86023 2001-09-29  Jim Meyering  <meyering@lucent.com>
86024
86025         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
86026         [one-argument getmntent function]): Include stdio.h before mntent.h.
86027         SunOS 4.1.x needs it for the declaration of `FILE'.
86028         Patch by Volker Borchert.
86029
86030         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
86031         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
86032         sys/fs_types.h, and make the link-test for getfsstat guard #include
86033         directives with appropriate #if HAVE_*_H tests so that we can
86034         detect getfsstat on Apple Darwin1.3.7 systems.
86035         Reported by Nelson Beebe.
86036         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
86037
86038 2001-09-28  Paul Eggert  <eggert@twinsun.com>
86039
86040         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
86041         #defines strtoimax.  Also treat the other strto* functions
86042         like strtoimax.
86043
86044         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
86045         Check for strtoul and strtoumax,
86046         as those declarations are made even in the signed case.
86047         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
86048         Likewise, for strtol and strtoimax.
86049
86050 2001-09-28  Paul Eggert  <eggert@twinsun.com>
86051
86052         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
86053         #defines strtoimax.  Also treat the other strto* functions
86054         like strtoimax.
86055
86056         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
86057         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
86058         (strtoimax, strtoumax): Do not declare if already defined as a macro.
86059
86060 2001-09-26  Jim Meyering  <meyering@lucent.com>
86061
86062         Most macros in unlocked-io.h had the wrong number of arguments.
86063         * lib/gen-uio: New script.
86064         (USE_UNLOCKED_IO): Define to 1 if not already defined.
86065         * lib/unlocked-io.hin: Remove file.
86066         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
86067         rather than trying to embed it here.
86068         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
86069         Reported by Padraig Brady.
86070
86071 2001-09-25  Volker Borchert  <bt@teknon.de>
86072
86073         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
86074         `result'.
86075
86076 2001-09-24  Jim Meyering  <meyering@lucent.com>
86077
86078         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
86079
86080 2001-09-23  Jim Meyering  <meyering@lucent.com>
86081
86082         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
86083         instead of the mere test for existence of mntent.h.  The latter
86084         would get a false-positive on AIX 3.4 systems.
86085         In the outer getmntent if-block, don't die if neither of the getmntent
86086         tests succeeds.  Instead, just fall through and continue with the
86087         remaining tests.
86088
86089 2001-09-23  Jim Meyering  <meyering@lucent.com>
86090
86091         * lib/mountlist.c: Remove useless parentheses in #if directives.
86092         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
86093         the deprecated MOUNTED symbol is no longer defined in mntent.h.
86094
86095 2001-09-22  Jim Meyering  <meyering@lucent.com>
86096
86097         * m4/gettext.m4: New file.  From gettext.
86098         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
86099         * m4/progtest.m4: Likewise
86100         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
86101         * m4/glibc21.m4: Likewise.
86102
86103         * m4/libintl.m4: Remove.  No longer used.
86104
86105 2001-09-22  Jim Meyering  <meyering@lucent.com>
86106
86107         * lib/localcharset.c: Update from latest gettext.
86108         * lib/config.charset: Likewise.
86109
86110 2001-09-20  Jim Meyering  <meyering@lucent.com>
86111
86112         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
86113         strtoimax.
86114         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
86115         strtoumax.
86116
86117 2001-09-20  Jim Meyering  <meyering@lucent.com>
86118
86119         * lib/xstrtol.c (strtoimax): Guard declaration with
86120         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
86121         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
86122         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
86123         (strtoumax): Likewise, for completeness (it wasn't necessary).
86124
86125 2001-09-17  Paul Eggert  <eggert@twinsun.com>
86126
86127         * lib/strtoimax.c (HAVE_LONG_LONG):
86128         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
86129         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
86130         to work around bug in IBM C compiler.
86131
86132 2001-09-17  Jim Meyering  <meyering@lucent.com>
86133
86134         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
86135         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
86136         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
86137         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
86138         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
86139         whenever the right hand side need not be expanded by the shell.
86140
86141 2001-09-16  Paul Eggert  <eggert@twinsun.com>
86142
86143         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
86144         library.  It's not correct, as some older glibcs are buggy.
86145         fnmatch wasn't fixed until glibc 2.2.
86146
86147         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
86148         special shell magic here.
86149
86150 2001-09-16  Jim Meyering  <meyering@lucent.com>
86151
86152         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
86153         * m4/jm-macros.m4: Require it.
86154
86155 2001-09-16  Jim Meyering  <meyering@lucent.com>
86156
86157         * lib/mkdir.c: New file.
86158
86159 2001-09-15  Jim Meyering  <meyering@lucent.com>
86160
86161         * m4/jm-macros.m4: Check for help2man.
86162
86163 2001-09-11  Jim Meyering  <meyering@lucent.com>
86164
86165         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
86166         The body, by Paul Eggert, was moved here from configure.in.
86167         * m4/jm-macros.m4: Require UTILS_HOST_OS.
86168
86169 2001-09-04  Paul Eggert  <eggert@twinsun.com>
86170
86171         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
86172         (jm_PREREQ): Use it.
86173
86174 2001-09-04  Paul Eggert  <eggert@twinsun.com>
86175
86176         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
86177         Use ssize_t, not int, to store result of readlink.
86178         Check for ssize_t overflow as well as size_t overflow,
86179         as POSIX says the result of readlink is implementation-defined
86180         when ssize_t overflows.
86181         Remove unnecessary cast to char*.
86182         Use free+malloc instead of realloc, as the storage doesn't need
86183         to be preserved and it's clearer and can be more efficient that way.
86184         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
86185         * lib/xreadlink.h (xreadlink): Update prototype.
86186
86187 2001-09-04  Paul Eggert  <eggert@twinsun.com>
86188
86189         * lib/xgetcwd.c: Revert some of the previous change; intead,
86190         fix the HAVE_GETCWD_NULL code to behave more like the
86191         !HAVE_GETCWD_NULL code used to.
86192
86193         Include "xalloc.h".
86194         (xgetcwd): Do not return NULL when memory is exhausted; instead,
86195         invoke xalloc_die.
86196
86197 2001-09-03  Paul Eggert  <eggert@twinsun.com>
86198
86199         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
86200         sys/param.h, as pathmax.h includes them.
86201
86202 2001-09-03  Paul Eggert  <eggert@twinsun.com>
86203
86204         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
86205         (jm_PREREQ_XGETCWD): New macro.
86206
86207         * m4/getcwd.m4: New file.
86208
86209 2001-09-03  Paul Eggert  <eggert@twinsun.com>
86210
86211         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
86212         like the HAVE_GETCWD_NULL code.
86213         Include pathmax.h if not HAVE_GETCWD.
86214         Do not include xalloc.h.
86215         (INITIAL_BUFFER_SIZE): New symbol.
86216         Do not use xmalloc / xrealloc, since the caller is responsible for
86217         handling errors.  Preserve errno around `free' during failure.
86218         Do not overrun buffer when using getwd.
86219
86220 2001-09-03  Paul Eggert  <eggert@twinsun.com>
86221
86222         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
86223         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
86224         getcwd (NULL, 0).
86225
86226 2001-09-03  Paul Eggert  <eggert@twinsun.com>
86227
86228         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
86229         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
86230         spotted by Jim Meyering.
86231
86232 2001-09-03  Jim Meyering  <meyering@lucent.com>
86233
86234         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
86235         failure.
86236
86237 2001-09-02  Jim Meyering  <meyering@lucent.com>
86238
86239         * lib/error.c: Update from GNU libc.
86240
86241 2001-09-01  Jim Meyering  <meyering@lucent.com>
86242
86243         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
86244         Used by df.
86245
86246 2001-09-01  Jim Meyering  <meyering@lucent.com>
86247
86248         * lib/xreadlink.c: New file.
86249         * lib/xreadlink.h: New file.
86250         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
86251         xreadlink.h.
86252
86253         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
86254         doesn't conflict with sparc Solaris 7's definition in
86255         /usr/include/sys/int_types.h.
86256
86257         * lib/exclude.c: Use `""', not `<>' to #include non-system header
86258         files.
86259         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
86260         and strncasecmp as r-values.  Unixware didn't have declarations.
86261
86262 2001-08-31  Paul Eggert  <eggert@twinsun.com>
86263
86264         * lib/xstrtol.h: Add copyright notice.
86265         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
86266         LONGINT_INVALID_SUFFIX_CHAR.
86267
86268 2001-08-31  Paul Eggert  <eggert@twinsun.com>
86269
86270         * lib/xstrtol.c (strtoimax): New decl.
86271
86272 2001-08-31  Paul Eggert  <eggert@twinsun.com>
86273
86274         * lib/xgetcwd.c: Don't include pathmax.h.
86275         Include stdlib.h and unistd.h if available.
86276         Include xalloc.h.
86277         (xmalloc, xstrdup, free): Remove decls.
86278         (xgetcwd): Don't assume sizes fit in unsigned.
86279         Check for overflow when computing sizes.
86280         Simplify reallocation code.
86281
86282 2001-08-31  Paul Eggert  <eggert@twinsun.com>
86283
86284         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
86285         a directory's st_size can have an arbitrary value, so the old
86286         usage could waste an arbitrary amount of memory.  All uses
86287         changed.
86288         * lib/savedir.h: Update prototype.
86289
86290 2001-08-31  Paul Eggert  <eggert@twinsun.com>
86291
86292         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
86293
86294         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
86295         old strtoimax.c.
86296
86297         Also, make the following further changes to make this file's
86298         configuration more similar to that of strtol.c:
86299         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
86300         (strtoumax, uintmax_t, strtoull, strtol): Remove.
86301         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
86302         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
86303         changed to signed values.
86304
86305         And make the following changes as well:
86306         Fix copyright notice, as 1999 was missing.
86307         (verify): New macro.
86308         (strtoimax): Check sizes at compile-time, not run-time.
86309         Prefer strtol to strtoll if both work.
86310         (main): Remove; it was not that useful and was a pain to maintain.
86311
86312         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
86313
86314 2001-08-31  Jim Meyering  <meyering@lucent.com>
86315
86316         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
86317         Use an initial, malloc'd, buffer of length 128 rather than
86318         a statically allocated one of length 1024.
86319
86320 2001-08-30  Paul Eggert  <eggert@twinsun.com>
86321
86322         Simplify code, partly by assuming autoconf 2.52 semantics.
86323
86324         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
86325
86326         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
86327         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
86328         All uses removed.
86329         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
86330         Move AC_REQUIRE to next-to-top level, to avoid confusion.
86331         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
86332         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
86333         jm_AC_HEADER_INTTYPES_H.
86334         * m4/jm-macros.m4 (jm_MACROS): Likewise.
86335
86336         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
86337
86338         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
86339         Quote first arg of AC_DEFUN.
86340         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
86341         since they are needed to parse the include file even if we need
86342         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
86343         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
86344         but with opposite signedness.
86345
86346 2001-08-30  Paul Eggert  <eggert@twinsun.com>
86347
86348         Merge 'exclude' changes from tar 1.13.22.
86349         This fixes one or two unlikely storage allocation overflow bugs,
86350         but doesn't change user-visible behavior otherwise.
86351
86352 2001-08-30  Paul Eggert  <eggert@twinsun.com>
86353
86354         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
86355         (jm_PREREQ_EXCLUDE): New macro.
86356
86357 2001-08-30  Paul Eggert  <eggert@twinsun.com>
86358
86359         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
86360         tm to be declared.
86361
86362 2001-08-30  Paul Eggert  <eggert@twinsun.com>
86363
86364         * lib/hash.c: Remove '2001' from copyright notice.
86365
86366 2001-08-30  Paul Eggert  <eggert@twinsun.com>
86367
86368         * lib/full-write.h: New file.
86369         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
86370         * lib/full-write.c: Correct credits, as cccp.c no longer
86371         exists and anyway it was so heavily changed from the old cccp
86372         code as to be unrecognizable.  Include full-write.h.
86373         (full_write): Return size_t, with short writes meaning failure.
86374         All callers changed.  This fixes a bug with large buffers
86375         on 64-bit hosts.
86376         * lib/utime.c: Include full-write.h.
86377
86378 2001-08-30  Paul Eggert  <eggert@twinsun.com>
86379
86380         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
86381         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
86382         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
86383         Include if available.
86384         (<xalloc.h>): Include
86385         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
86386         (verify): New macro.  Use it to verify that EXCLUDE macros do not
86387         collide with FNM macros.
86388         (struct patopts): New struct.
86389         (struct exclude): Use it, as exclude patterns now come with options.
86390         (new_exclude): Support above changes.
86391         (new_exclude, add_exclude_file):
86392         Initial size must now be a power of two to simplify overflow checking.
86393         (free_exclude, fnmatch_no_wildcards): New function.
86394         (excluded_filename): No longer requires options arg, as the options
86395         are determined by add_exclude.  Now returns bool, not int.
86396         (excluded_filename, add_exclude):
86397         Add support for the fancy new exclusion options.
86398         (add_exclude, add_exclude_file): Now takes int options arg.
86399         Check for arithmetic overflow when computing sizes.
86400         (add_exclude_file): xrealloc might modify errno, so don't
86401         realloc until after errno might be used.
86402
86403         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
86404         New macros.
86405         (free_exclude): New decl.
86406         (add_exclude, add_exclude_file): Now takes int options arg.
86407         (excluded_filename): No longer requires options arg, as the options
86408         are determined by add_exclude.  Now returns bool, not int.
86409
86410 2001-08-30  Paul Eggert  <eggert@twinsun.com>
86411
86412         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
86413
86414 2001-08-27  Jim Meyering  <meyering@lucent.com>
86415
86416         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
86417
86418         * lib/version-etc.c (N_): Remove definition.
86419         Revert most of last change.
86420         Instead, simply don't mark the `Copyright...' string for translation.
86421         Based on advice from Paul Eggert.
86422
86423         * lib/strtoxmax.c: Tweak comment.
86424
86425 2001-08-26  Jim Meyering  <meyering@lucent.com>
86426
86427         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
86428
86429         * m4/xstrtoimax.m4: New file.
86430         * m4/xstrtoumax.m4: Add comments explaining why we
86431         AC_REPLACE_FUNCS(strtol).
86432
86433 2001-08-26  Jim Meyering  <meyering@lucent.com>
86434
86435         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
86436         of copyright with `%s' so translators don't get an untranslated
86437         message in 2002.
86438         (COPYRIGHT_YEAR): Define.
86439         (version_etc): Use fprintf rather than fputs.
86440         Suggestion from Ulrich Drepper.
86441
86442         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
86443
86444         * lib/strtoll.c: New file, from GNU libc.
86445         * lib/xstrtoimax.c: New file.
86446
86447         * lib/xstrtol.h: Add xstrtoimax.
86448         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
86449         * lib/strtoimax.c: New file.  Likewise, but first define
86450         STRTOUXMAX_SIGNED.
86451
86452         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
86453         ...
86454         * lib/strtoxmax.c: ... then renamed to this.
86455
86456 2001-08-18  Paul Eggert  <eggert@twinsun.com>
86457
86458         * m4/inttypes.m4: Add AC_PREREQ(2.13).
86459         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
86460         (jm_AC_TYPE_INTMAX_T): New macro.
86461         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
86462
86463         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
86464
86465         * m4/longlong.m4: Renamed from ulonglong.m4.
86466         * m4/inttypes.m4: Renamed from inttypes_h.m4.
86467         * m4/uintmax_t.m4: Removed.
86468
86469 2001-08-13  Paul Eggert  <eggert@twinsun.com>
86470
86471         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
86472         Port to Solaris 8, where 'sed' requires a space after the 'r'
86473         command, and where sh dislikes "$/".  Clean up the spacing a bit.
86474         Redirect output to $tmp just once.
86475
86476 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
86477
86478         * lib/addext.c (<errno.h>): Include.
86479         (errno): Declare if not defined.
86480         (addext): Work correctly when pathconf returns -1 and leaves
86481         errno alone because there is no limit.  Also, work even if
86482         pathconf returns a value greater than SIZE_MAX.
86483
86484 2001-08-12  Jim Meyering  <meyering@lucent.com>
86485
86486         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
86487         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
86488         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
86489         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
86490         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
86491         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
86492         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
86493         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
86494         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
86495         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
86496         utime.m4, utimes.m4, xstrtoumax.m4:
86497         Quote the first argument in each use of AC_DEFUN.
86498
86499 2001-08-12  Jim Meyering  <meyering@lucent.com>
86500
86501         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
86502         Simply `return getcwd (NULL, 0);'.
86503         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
86504         Use 1300 as initial value for length, not PATH_MAX.
86505
86506         * lib/pathmax.h: Clean up cpp syntax.
86507
86508 2001-08-12  Jim Meyering  <meyering@lucent.com>
86509
86510         * lib/gettimeofday.c: New file.
86511         * lib/gtod.h: New file.
86512         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
86513
86514 2001-08-05  Jim Meyering  <meyering@lucent.com>
86515
86516         * m4/jm-macros.m4: Require autoconf-2.52.
86517
86518 2001-08-04  Jim Meyering  <meyering@lucent.com>
86519
86520         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
86521         stmt, to get in sync with glibc.
86522
86523 2001-08-03  Paul Eggert  <eggert@twinsun.com>
86524
86525         The following changes are from gettext 0.10.39 as maintained by
86526         Bruno Haible.
86527
86528         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
86529         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
86530         with inverted sense.  All uses changed.
86531
86532         * lib/mbswidth.c: Don't include <limits.h>.
86533         Include <stdlib.h> and <string.h> unconditionally.
86534         (iswcntrl, mbsinit, ISCNTRL): New macros.
86535         (mbsnwidth): Use K&R style function declarations.
86536         Don't bother checking for MB_LEN_MAX == 1, since the compiler
86537         can optimize it when MB_CUR_MAX == 1.
86538         The width of control characters is zero, not 1.
86539
86540 2001-08-03  Paul Eggert  <eggert@twinsun.com>
86541
86542         The following changes are from gettext 0.10.39 as maintained by
86543         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
86544
86545         * m4/codeset.m4: Upgrade to serial AM1.
86546         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
86547         all uses changed.  Quote first arg of AC_DEFUN.
86548         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
86549
86550         * m4/iconv.m4: Upgrade to serial AM2.
86551         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
86552         Add --with-libconv-prefix.
86553         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
86554         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
86555         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
86556         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
86557         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
86558
86559         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
86560         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
86561         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
86562         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
86563         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
86564         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
86565         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
86566         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
86567         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
86568
86569         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
86570         string.h any more.
86571
86572         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
86573         not the default value.
86574
86575         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
86576         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
86577         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
86578         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
86579         Also check for iswcntrl, used for wcwidth fallback.
86580         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
86581         to Autoconf 2.13.
86582
86583 2001-08-03  Jim Meyering  <meyering@lucent.com>
86584
86585         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
86586         as it was in the original.  Reported by Paul Eggert.
86587
86588 2001-07-16  Jim Meyering  <meyering@lucent.com>
86589
86590         * m4/gettimeofday.m4: New file.
86591         Prompted by a report from Bernhard Baehr.
86592
86593 2001-07-15  Jim Meyering  <meyering@lucent.com>
86594
86595         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
86596         stuff. Now it's in ../Makefile.cfg.
86597
86598 2001-07-15  Jim Meyering  <meyering@lucent.com>
86599
86600         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
86601         (BUILT_SOURCES): Add unlocked-io.h.
86602         (io_functions): Define.
86603         (unlocked-io.h): New rule.
86604         (DISTCLEANFILES): Add unlocked-io.h.
86605         (all-local): Depend on unlocked-io.h, to ensure it is created.
86606
86607         * lib/unlocked-io.hin: New file
86608
86609         * lib/regex.c: Update from glibc.
86610
86611 2001-07-05  Jim Meyering  <meyering@lucent.com>
86612
86613         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
86614         recommendation.
86615         (libfetish_a_SOURCES): Put all .h files here instead.
86616         Remove a thus-exposed (better checks in automake) duplicate and
86617         two unnecessary .h files.
86618
86619 2001-07-04  Jim Meyering  <meyering@lucent.com>
86620
86621         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
86622         that generates jm-glibc-io.m4 so that it doesn't trigger any make
86623         distcheck failure.
86624
86625 2001-07-02  Jim Meyering  <meyering@lucent.com>
86626
86627         The following changes were prompted by suggestions from Bruno Haible.
86628
86629         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
86630         is now generated.
86631         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
86632         definition of EXTRA_DIST.
86633         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
86634         ensure that the generated file is created/updated whenever the list
86635         of $(unlocked_functions) is changed.
86636         (jm-glibc-io.m4): New rule.
86637         (unlocked-io.h): New rule -- currently unused.
86638
86639 2001-06-24  Jim Meyering  <meyering@lucent.com>
86640
86641         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
86642         unmatched right bracket, rather than kludging it with an extra,
86643         falsely-matching quote in a comment.  Patch by Akim Demaille.
86644
86645 2001-06-11  Jim Meyering  <meyering@lucent.com>
86646
86647         * lib/regex.c: Update from GNU libc.
86648
86649 2001-05-27  Jim Meyering  <meyering@lucent.com>
86650
86651         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
86652         Check for ut_type in struct utmp.
86653
86654 2001-05-27  Jim Meyering  <meyering@lucent.com>
86655
86656         * lib/readutmp.h (UT_TYPE): Define.
86657
86658 2001-05-24  Jim Meyering  <meyering@lucent.com>
86659
86660         * lib/argmatch.c: Include "quote.h".
86661         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
86662         quote function.  Reported by Göran Uddeborg.
86663
86664 2001-05-22  Jim Meyering  <meyering@lucent.com>
86665
86666         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
86667         now that we use the package-supplied version unconditionally.
86668         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
86669
86670 2001-05-21  Jim Meyering  <meyering@lucent.com>
86671
86672         * m4/regex.m4: Change a couple backticks to single quotes to avoid
86673         shell syntax errors.
86674
86675 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
86676
86677         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
86678
86679 2001-05-20  Paul Eggert  <eggert@twinsun.com>
86680
86681         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
86682         Don't bother to check library strftime, since
86683         we'll be using our own my_strftime function anyway.
86684         Define my_strftime instead of strftime.
86685
86686 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
86687
86688         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
86689         which is not yet declared.
86690
86691 2001-05-15  Jim Meyering  <meyering@lucent.com>
86692
86693         * m4/regex.m4: Use proper quoting so brackets appear in the test
86694         program.
86695         Reported by, and with help from, Bruno Haible.
86696
86697 2001-05-13  Jim Meyering  <meyering@lucent.com>
86698
86699         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
86700         undefined.
86701
86702 2001-05-11  Paul Eggert  <eggert@twinsun.com>
86703
86704         dirname code cleanup.  base_name now behaves more compatibly
86705         with POSIX basename when given file names that have trailing
86706         slashes, and similarly for dir_name.  Add new primitives
86707         base_len and dir_len.  Put the directory-name-related decls
86708         into dirname.h.
86709
86710         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
86711         * lib/backupfile.c (base_name): Likewise.
86712         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
86713         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
86714         * lib/makepath.c (strip_trailing_slashes): Likewise.
86715         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
86716         ISSLASH): Likewise.
86717         * lib/rename.c (strip_trailing_slashes): Likewise.
86718         * lib/same.c (base_name): Likewise.
86719         * lib/stripslash.c (ISSLASH): Likewise.
86720
86721         * lib/addext.c: Include <dirname.h> after size_t is defined.
86722         * lib/backupfile.c: Likewise.
86723
86724         * lib/addext.c (addext): Use base_len to trim redundant
86725         trailing slashes instead of doing it ourselves.
86726         But do not trim the last slash if it is not redundant.
86727
86728         * lib/backupfile.c (find_backup_file_name,
86729         max_backup_version): Use base_len instead of rolling it ourselves.
86730         Handle the case of "" and (on DOS) "C:" correctly.
86731
86732         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
86733         needed. Include <string.h>, <dirname.h>.
86734         (base_name): Allow file names ending in slashes, other than names
86735         that are all slashes.  In this case, return the basename followed
86736         by the slashes.  This is more general, and can be used in places
86737         where the original base_name purposely had an assertion failure.
86738         (base_len): New function.
86739
86740         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
86741         Do not include <assert.h>; no longer needed.
86742         Include xalloc.h.
86743         (memrchr): Remove decl.
86744         (dir_name_r): Remove.
86745         (dir_len): Renamed from dirlen.  All callers changed.
86746         Rewrite in terms of base_name, for simplicity and consistency.
86747         (dir_name): Never return NULL.  All callers changed.
86748         Do not include <stdlib.h> in test program; no longer needed.
86749         return 0; is fine for test program.
86750
86751         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
86752         New macros.
86753         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
86754
86755         * lib/path-concat.c (path_concat): Use base_len to compute
86756         base length, not strlen; this means we cannot rely on memcpy
86757         to null-terminate.
86758
86759         * lib/same.c (STREQ): Remove.
86760         (same_name): Handle the case where the basename ends in trailing '/'.
86761
86762         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
86763         a slash was stripped.  Do not strip the last slash after a
86764         file system prefix.
86765
86766 2001-05-11  Paul Eggert  <eggert@twinsun.com>
86767
86768         * lib/Makefile.am (libfetish_a_SOURCES):
86769         Add strftime.c, since we now compile it on all hosts.
86770
86771         * lib/strftime.c (my_strftime):
86772         Define to nstrftime if emacs, but only if my_strftime is not defined.
86773         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
86774         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
86775         Add one more extra argument: a nanoseconds value.
86776         All uses changed.
86777         (ns): New macro.
86778         (my_strftime function): Add %N format.
86779         (emacs_strftimeu): Renamed from emacs_strftime,
86780         with extra ut argument.
86781
86782 2001-05-09  Paul Eggert  <eggert@twinsun.com>
86783
86784         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
86785
86786 2001-04-21  Jim Meyering  <meyering@lucent.com>
86787
86788         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
86789         doesn't interfere.
86790
86791 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
86792
86793         * m4/ftruncate.m4: Check for chsize.
86794         Link with ftruncate.o unconditionally if ftruncate is missing.
86795         This was required when cross-compiling to i586-mingw32msvc.
86796
86797 2001-04-08  Jim Meyering  <meyering@lucent.com>
86798
86799         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
86800         recomputed; that's necessary when the offset spans a DST transition.
86801         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
86802
86803 2001-04-02  Jim Meyering  <meyering@lucent.com>
86804
86805         * lib/regex.h, regex.c: Update from GNU libc.
86806
86807 2001-03-24  Jim Meyering  <meyering@lucent.com>
86808
86809         * m4/jm-macros.m4: Require autoconf-2.49d.
86810
86811 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
86812
86813         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
86814
86815 2001-03-19  Paul Eggert  <eggert@twinsun.com>
86816
86817         * lib/version-etc.c (version_etc_copyright): Update to 2001.
86818
86819 2001-03-17  Jim Meyering  <meyering@lucent.com>
86820
86821         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
86822         now that the version in autoconf is equivalent.
86823         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
86824
86825         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
86826         Suggestion from Akim Demaille.
86827
86828         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
86829         (jm_PREREQ_TEMPNAME): New function.
86830
86831 2001-03-16  Paul Eggert  <eggert@twinsun.com>
86832
86833         * lib/tempname.c (uint64_t): Define to uintmax_t if
86834         not defined, and if UINT64_MAX is not defined.
86835         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
86836         Reported by John David Anglin.
86837
86838 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
86839
86840         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
86841         resolve alias if codeset is empty.
86842         * lib/config.charset (BeOS): Use wildcard syntax.
86843
86844 2001-03-13  Jim Meyering  <meyering@lucent.com>
86845
86846         * lib/path-concat.c (path_concat)
86847         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
86848         concatenating e.g., `C:' and `foo'.
86849         From Bruno Haible.
86850
86851 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
86852
86853         * lib/localcharset.c (locale_charset): Don't use
86854         setlocale(LC_CTYPE,NULL). Don't return NULL.
86855         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
86856
86857 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
86858
86859         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
86860         support for DOS/DJGPP.
86861
86862 2001-03-01  Paul Eggert  <eggert@twinsun.com>
86863
86864         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
86865         lacks mkstemp.  Compile our own tempname.c if we compile our own
86866         mkstemp.c, as mkstemp relies on tempname.
86867
86868 2001-03-01  Jim Meyering  <meyering@lucent.com>
86869
86870         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
86871         AH_VERBATIM really does output its argument verbatim.
86872
86873 2001-02-28  Paul Eggert  <eggert@twinsun.com>
86874
86875         * lib/Makefile.am (libfetish_a_SOURCES):
86876         Add dup-safer.c, fopen-safer.c.
86877         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
86878
86879         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
86880         * lib/unistd-safer.h: New files.
86881
86882 2001-02-25  Paul Eggert  <eggert@twinsun.com>
86883
86884         The mkstemp replacement is taken from glibc 2.2.2, with some
86885         portability fixes for use outside glibc, as follows:
86886
86887         * lib/tempname.c (struct_stat64): New macro.
86888         (direxists, __gen_tempname): Use it.
86889         This avoids a portability problem with Solaris 8.
86890
86891         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
86892         (<stddef.h>, <stdint.h>, <string.h>):
86893         Include only if STDC_HEADERS || _LIBC.
86894         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
86895         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
86896         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
86897         (__set_errno): Define this macro if <errno.h> doesn't.
86898         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
86899         Define these macros if <stdio.h> doesn't.
86900         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
86901         Define these macros if <sys/stat.h>
86902         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
86903         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
86904         __xstat64): Define if not _LIBC.
86905         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
86906         (__gen_tempname): Invoke gettimeofday only if
86907         HAVE_GETTIMEOFDAY || _LIBC;
86908         otherwise, fall back on plain "time".
86909         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
86910
86911         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
86912
86913         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
86914
86915 2001-02-18  Paul Eggert  <eggert@twinsun.com>
86916
86917         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
86918
86919 2001-02-17  Paul Eggert  <eggert@twinsun.com>
86920
86921         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
86922         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
86923         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
86924         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
86925
86926 2001-02-17  Paul Eggert  <eggert@twinsun.com>
86927
86928         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
86929         Remove workaround macros for hosts that have mbrtowc but not
86930         mbstate_t, as we now insist on proper declarations for both
86931         before using mbrtowc.
86932
86933 2001-02-17  Jim Meyering  <meyering@lucent.com>
86934
86935         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
86936         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
86937         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
86938         UnixWare 7.1.1.
86939
86940         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
86941         rather than AC_CACHE_VAL.
86942
86943 2001-02-17  Jim Meyering  <meyering@lucent.com>
86944
86945         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
86946         around included file name.
86947
86948         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
86949
86950         * lib/strftime.c: Update from GNU libc (the only changes were to
86951         comments).
86952
86953 2001-02-17  Jim Meyering  <meyering@lucent.com>
86954
86955         * lib/regex.c: Update from libc.
86956
86957 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
86958
86959         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
86960         clash.
86961
86962 2001-02-16  Paul Eggert  <eggert@twinsun.com>
86963
86964         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
86965         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
86966         Reported by Mark Hounschell via Paul Eggert.
86967
86968 2001-02-07  Jim Meyering  <meyering@lucent.com>
86969
86970         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
86971
86972 2001-02-05  Jim Meyering  <meyering@lucent.com>
86973
86974         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
86975         it includes the patch required for `large file' support with at least
86976         HP-UX's 10.20 /bin/cc.
86977
86978 2001-02-03  Jim Meyering  <meyering@lucent.com>
86979
86980         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
86981         AS_IF, now that it works once again (mysteriously).
86982         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
86983
86984 2001-01-30  Jim Meyering  <meyering@lucent.com>
86985
86986         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
86987         * m4/chown.m4: Rename conftestchown to conftest.chown.
86988         * m4/rename.m4: s/conftestdir/conftest.d1/ and
86989         s/conftestdir2/conftest.d2/.
86990         * m4/utimes.m4: s/conftestdata/conftest.data/
86991         Inspired by Pavel Roskin's change in autoconf.
86992
86993 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
86994
86995         * lib/config.charset: Update for FreeBSD 4.2.
86996
86997 2001-01-27  Jim Meyering  <meyering@lucent.com>
86998
86999         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
87000         a use of AS_IF.
87001         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
87002
87003 2001-01-26  Jim Meyering  <meyering@lucent.com>
87004
87005         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
87006         quotearg.c includes it.
87007
87008 2001-01-26  Jim Meyering  <meyering@lucent.com>
87009
87010         * lib/quotearg.c: Include stddef.h.
87011         * lib/quote.c: Include stddef.h.
87012         Reported by Axel Kittenberger.
87013
87014         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
87015         line in double quotes so that it evokes a better diagnostic.
87016         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
87017         Reported by Axel Kittenberger.
87018
87019 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
87020
87021         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
87022         as if it was a `charset'.
87023
87024 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
87025
87026         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
87027         has const.
87028
87029 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
87030
87031         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
87032         to avoid a warning.  Add back 'const' to inptr.
87033
87034 2001-01-20  Jim Meyering  <meyering@lucent.com>
87035
87036         Be sure that headers are checked before used in code compiled
87037         for the type checks.
87038         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
87039         In place of that, invoke jm_CHECK_ALL_TYPES.
87040         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
87041         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
87042         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
87043         The check for ssize_t was mistakenly run before the test for unistd.h.
87044
87045         The configure-time check for stdbool.h was missing.
87046         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
87047         (jm_PREREQ_HASH): New function.
87048
87049 2001-01-17  Jim Meyering  <meyering@lucent.com>
87050
87051         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
87052         for autoconf-2.49c.
87053         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
87054
87055 2001-01-16  Jim Meyering  <meyering@lucent.com>
87056
87057         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
87058         From Bruno Haible.
87059
87060 2001-01-14  Jim Meyering  <meyering@lucent.com>
87061
87062         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
87063         foo and bar.  Create conftestdir/ in the script, not in the C code.
87064         Remove directories in the script, not in the C code.
87065         Remove conftestdir{,2} before trying to create the directory.
87066         Make the entire configure script fail if the mkdir fails.
87067
87068 2001-01-14  Jim Meyering  <meyering@lucent.com>
87069
87070         * lib/rename.c: New file.  From Volker Borchert.
87071         Include stdlib.h, string.h or strings.h, and xalloc.h.
87072         Use strip_trailing_slashes rather than open-coding it.
87073
87074 2001-01-03  Paul Eggert  <eggert@twinsun.com>
87075
87076         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
87077
87078 2001-01-03  Jim Meyering  <meyering@lucent.com>
87079
87080         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
87081         of local `inptr' to avoid warning with some system declarations of
87082         iconv.
87083
87084 2001-01-02  Volker Borchert  <bt@teknon.de>
87085
87086         * m4/rename.m4: New file.
87087         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
87088
87089 2001-01-01  Jim Meyering  <meyering@lucent.com>
87090
87091         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
87092         even on systems with utmpx.h.  It's necessary for the declaration of
87093         utmp's ut_user member.  Reported by Andreas Jaeger.
87094
87095         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
87096         available. They are required for the declarations of getgrgid and
87097         getpwuid resp.
87098         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
87099         Reported by Andreas Jaeger.
87100
87101 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
87102
87103         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
87104         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
87105         so `make install' also works in VPATH builds.
87106
87107 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
87108
87109         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
87110         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
87111         can be used in subdirectories.
87112
87113 2000-12-29  Paul Eggert  <eggert@twinsun.com>
87114
87115         * lib/modechange.c: Do not assume that mode_t uses the
87116         traditional octal encoding.  E.g. "chmod 1 FOO" should set
87117         the other-execute bit of FOO even if S_IXOTH != 1.
87118
87119         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
87120         WOTH, XOTH, ALLM): New macros.
87121         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
87122          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
87123         Use them.
87124         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
87125         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
87126         (mode_compile):
87127         No need to use uintmax_t; unsigned long is long enough.
87128         Don't bother to get suffix since we don't use it.
87129
87130 2000-12-26  Jim Meyering  <meyering@lucent.com>
87131
87132         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
87133         better with autoheader.
87134
87135 2000-12-24  Jim Meyering  <meyering@lucent.com>
87136
87137         * lib/hash.c (is_prime): Return explicit boolean values.
87138         (hash_get_first): Return NULL to appease Irix5.6's 89.
87139         Reported by Nelson Beebe.
87140
87141 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
87142
87143         * lib/localcharset.c (locale_charset): Add support for Win32.
87144
87145 2000-12-18  Paul Eggert  <eggert@twinsun.com>
87146
87147         * lib/physmem.h, lib/physmem.c: New files.
87148
87149         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
87150         (noinst_HEADERS): Add physmem.h.
87151
87152         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
87153         't' for compatibility with Solaris 8 sort.
87154
87155 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
87156
87157         * lib/config.charset: Add support for BeOS.
87158
87159 2000-12-17  Jim Meyering  <meyering@lucent.com>
87160
87161         * m4/dos.m4 (jm_AC_DOS): New file and macro.
87162         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
87163
87164 2000-12-16  Jim Meyering  <meyering@lucent.com>
87165
87166         This bug had a serious impact on chown: `chown N:M FILE' (for integer
87167         N and M) would have treated it like `chown N:N FILE'.
87168
87169         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
87170
87171 2000-12-16  Jim Meyering  <meyering@lucent.com>
87172
87173         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
87174         SHELLS_FILE to a file name that's useful on djgpp systems.
87175         Include stdlib.h.
87176         (ADDITIONAL_DEFAULT_SHELLS): Define.
87177         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
87178         Based mostly on a patch from Prashant TR.
87179
87180 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
87181
87182         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
87183         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
87184         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
87185
87186 2000-12-08  Andreas Schwab  <schwab@suse.de>
87187
87188         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
87189         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
87190
87191 2000-12-07  Jim Meyering  <meyering@lucent.com>
87192
87193         * lib/stripslash.c (ISSLASH): Define.
87194         (strip_trailing_slashes): Use ISSLASH rather than comparing against
87195         `/'.
87196         From Prashant TR.
87197
87198         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
87199         (dir_name_r): Declare this function as static.
87200         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
87201         manifest itself on a name containing a mix of slashes and
87202         backslashes.
87203         Make this function work with names starting with a DOS-style
87204         drive letter and colon prefix.
87205         (dir_name): Append `.' if necessary.
87206         Based mostly on patches from Prashant TR and Eli Zaretskii.
87207
87208         * lib/dirname.h (dir_name_r): Remove prototype.
87209
87210 2000-12-06  Paul Eggert  <eggert@twinsun.com>
87211
87212         * m4/off_t-format.m4: Remove this file.
87213         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
87214
87215 2000-12-06  Jim Meyering  <meyering@lucent.com>
87216
87217         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
87218         replacement strtoull, we may well need the replacement strtoul, too.
87219         Check for declarations of strtoul and strtoull.
87220         Check for strtol.  Mainly as a cue to cause automake to include
87221         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
87222         Check for limits.h -- strtol.c needs it.
87223
87224 2000-12-05  Jim Meyering  <meyering@lucent.com>
87225
87226         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
87227
87228 2000-12-04  Jim Meyering  <meyering@lucent.com>
87229
87230         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
87231         Also include memory.h, stdlib.h, unistd.h if appropriate.
87232         Reported by Andreas Jaeger (conflicting declaration of malloc).
87233
87234 2000-12-02  Jim Meyering  <meyering@lucent.com>
87235
87236         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
87237         * m4/jm-macros.m4 (jm_MACROS): require it.
87238
87239 2000-12-02  Jim Meyering  <meyering@lucent.com>
87240
87241         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
87242
87243 2000-12-01  Paul Eggert  <eggert@twinsun.com>
87244
87245         * lib/memrchr.c: Include <config.h> before any system include file.
87246
87247 2000-11-30  Jim Meyering  <meyering@lucent.com>
87248
87249         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
87250
87251 2000-11-30  Jim Meyering  <meyering@lucent.com>
87252
87253         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
87254
87255 2000-11-29  Paul Eggert  <eggert@twinsun.com>
87256
87257         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
87258
87259 2000-11-26  Jim Meyering  <meyering@lucent.com>
87260
87261         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
87262
87263 2000-11-22  Paul Eggert  <eggert@twinsun.com>
87264
87265         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
87266         size of (size_t) -1; it's not portable.
87267
87268 2000-11-17  Jim Meyering  <meyering@lucent.com>
87269
87270         * lib/strstr.c: Update from GNU libc.
87271
87272 2000-11-17  Akim Demaille  <akim@epita.fr>
87273
87274         * lib/obstack.h: Formatting changes.
87275         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
87276         prevent type checking.
87277         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
87278         cast the value to (void *): assigning a `foo *' to a `void *'
87279         variable is valid.
87280         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
87281
87282 2000-11-16  Jim Meyering  <meyering@lucent.com>
87283
87284         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
87285
87286 2000-11-11  Jim Meyering  <meyering@lucent.com>
87287
87288         * lib/error.c: Add a couple #includes, merging from GNU libc version.
87289
87290 2000-11-10  Jim Meyering  <meyering@lucent.com>
87291
87292         * lib/obstack.h: Update from GNU libc.
87293         * lib/obstack.c: Likewise.
87294
87295 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
87296
87297         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
87298
87299 2000-11-06  Paul Eggert  <eggert@twinsun.com>
87300
87301         * lib/getusershell.c (setusershell): Use rewind rather than
87302         fseek/fseeko, to avoid configuration hassles with fseeko.
87303         Don't bother opening SHELLS_FILE if shellstream is NULL;
87304         it's not necessary.
87305
87306 2000-11-05  Jim Meyering  <meyering@lucent.com>
87307
87308         * lib/makepath.h (make_dir): Declare.
87309         * lib/makepath.c (make_dir): Remove `static' attribute.
87310         Tweak a comment.
87311
87312 2000-11-04  Jim Meyering  <meyering@lucent.com>
87313
87314         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
87315
87316 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
87317
87318         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
87319         last one in a bucket, advance to the next bucket.
87320
87321 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
87322
87323         * lib/fnmatch.c: Do not comment out all the code if we are using
87324         the GNU C library, because in some cases we are replacing buggy
87325         code in the GNU C library itself.
87326
87327 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
87328
87329         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
87330         (regex_compile): Catch bogus \(\1\).
87331
87332 2000-10-30  Paul Eggert  <eggert@twinsun.com>
87333
87334         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
87335         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
87336         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
87337
87338 2000-10-30  Paul Eggert  <eggert@twinsun.com>
87339
87340         * lib/error.h, getline.h, modechange.h:
87341         Remove "2000" from Copyright line, as the file hasn't been
87342         changed this year other than in the copyright notice.
87343
87344         * lib/xalloc.h: Add "2000" to Copyright line, as this file
87345         was changed this year.
87346
87347 2000-10-29  Jim Meyering  <meyering@lucent.com>
87348
87349         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
87350         renaming.
87351         * m4/ls-mntd-fs.m4: Likewise
87352
87353 2000-10-29  Jim Meyering  <meyering@lucent.com>
87354
87355         * lib/xstat.in: Fix grammar in comment.
87356
87357 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
87358
87359         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
87360         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
87361         doesn't define __restrict_arr.
87362
87363 2000-10-28  Jim Meyering  <meyering@lucent.com>
87364
87365         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
87366         (jm_PREREQ_MEMCHR): New function.
87367
87368 2000-10-28  Jim Meyering  <meyering@lucent.com>
87369
87370         * lib/memchr.c: Update from libc.
87371         Adjust for portability:
87372         [HAVE_STDLIB_H]: Include stdlib.h.
87373         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
87374         Undef __memchr, too.
87375         [!weak_alias]: Define __memchr to memchr.
87376
87377         * lib/regex.c: Update from libc.
87378         * lib/regex.h: Likewise.
87379         * lib/getopt1.c: Likewise.
87380         * lib/memcmp.c: Likewise.
87381
87382         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
87383         Avoid using fseek, when possible -- it's broken by design.
87384         Patch by Ulrich Drepper.
87385
87386 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
87387
87388         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
87389         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
87390         Giving in to popular pressure to shut up the compiler with casts.
87391
87392 2000-10-26  Jim Meyering  <meyering@lucent.com>
87393
87394         * lib/strftime.c: Update from libc.
87395
87396 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
87397
87398         * regex.c: More `unsigned char' -> `re_char' changes.
87399         Also change several `int' into `re_wchar_t'.
87400         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
87401         (PUSH_FAILURE_POINTER): Don't cast any more.
87402         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
87403         We want GCC to complain, since this piece of code makes
87404         re_match non-reentrant, which *should* be fixed.
87405         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
87406         (EXTEND_BUFFER): Use RETALLOC.
87407         (SET_LIST_BIT): Don't cast.
87408         (re_wchar_t): New type.
87409         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
87410         that those two functions will always properly return.
87411         (IMMEDIATE_QUIT_CHECK): Cast to void.
87412         (analyse_first): Use recursion rather than an explicit stack.
87413         (re_compile_fastmap): Can't fail anymore.
87414         (re_search_2): Don't check re_compile_fastmap for failure.
87415         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
87416         Now also sets the new value (passed in a new argument).
87417         (re_match_2_internal): Use it.
87418         Also, use a new var `reg' of type size_t when looping through regs
87419         rather than reuse the inappropriate `mcnt'.
87420
87421 2000-10-25  Jim Meyering  <meyering@lucent.com>
87422
87423         * lib/obstack.c: Update from libc.
87424
87425 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
87426
87427         * regex.c (regex_compile): Change the way of handling a range from
87428         a char less than 256 to a char not less than 256.
87429
87430 2000-10-24  Andrew Innes  <andrewi@gnu.org>
87431
87432         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
87433         NT-Emacs only.
87434         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
87435         so that re_search functions only quit when callers expect them to.
87436
87437 2000-10-23  Jim Meyering  <meyering@lucent.com>
87438
87439         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
87440         wrong.  That set_locale call must not have any side effects.
87441         From Paul Eggert.
87442
87443 2000-10-22  Jim Meyering  <meyering@lucent.com>
87444
87445         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
87446         [CYCLIC]: Remove now-unused definition.
87447
87448         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
87449         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
87450         Suggestion from Ulrich Drepper.
87451
87452 2000-10-21  Jim Meyering  <meyering@lucent.com>
87453
87454         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
87455         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
87456         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
87457
87458 2000-10-21  Jim Meyering  <meyering@lucent.com>
87459
87460         * lib/dirname.c (memrchr): Declare if necessary.
87461         (dir_name): Remove the restriction that there be no
87462         trailing slashes.  Now, this code skips past them, effectively
87463         ignoring them.
87464         [TEST_DIRNAME] (main): New unit tests.
87465
87466         * lib/memrchr.c: New file from GNU libc.
87467         Undef __memrchr, too.
87468         [!weak_alias]: Define __memrchr to memrchr.
87469         Guard weak_alias use with `#ifdef weak_alias'.
87470
87471 2000-10-21  Jim Meyering  <meyering@lucent.com>
87472
87473         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
87474         (dir_name): Use dir_name_r.
87475         * lib/dirname.h (dir_name_r): Declare it.
87476
87477 2000-10-17  Jim Meyering  <meyering@lucent.com>
87478
87479         * lib/quote.h (PARAMS): Define and use.
87480         Reported by Akim Demaille.
87481
87482         * lib/getopt.c: Update from libc.
87483
87484 2000-10-16  Jim Meyering  <meyering@lucent.com>
87485
87486         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
87487         setlocale.
87488         From Jan Fedak.
87489
87490 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
87491
87492         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
87493
87494 2000-09-25  Jim Meyering  <meyering@lucent.com>
87495
87496         * lib/md5.h (rol): Define (from GnuPG).
87497
87498         * lib/sha.c: Give credit (GnuPG) where due.
87499         (M): Use rol rather than open-coding it.
87500         Add a FIXME comment.
87501
87502 2000-09-21  Jim Meyering  <meyering@lucent.com>
87503
87504         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
87505         Reported by Michael Stone.
87506
87507 2000-09-20  Jim Meyering  <meyering@lucent.com>
87508
87509         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
87510         (noinst_HEADERS): Add sha.h.
87511         Based on code from Scott G. Miller and from GnuPG.
87512
87513 2000-09-18  Jim Meyering  <meyering@lucent.com>
87514
87515         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
87516         LIBS. Otherwise, everyone ends up linking with -lelf for some
87517         configurations.
87518         Reported by Mike Stone.
87519
87520 2000-09-15  Jim Meyering  <meyering@lucent.com>
87521
87522         * lib/regex.c: Update from libc.
87523
87524 2000-09-10  Jim Meyering  <meyering@lucent.com>
87525
87526         * lib/getopt.c (_getopt_internal): Update from glibc.
87527
87528 2000-09-09  Jim Meyering  <meyering@lucent.com>
87529
87530         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
87531         think it should be used as a general replacement for isascii.
87532         * lib/fnmatch.c: Likewise.
87533         * lib/mbswidth.c: Likewise
87534         * lib/regex.c: Likewise.
87535
87536         Don't use atoi.
87537         * lib/userspec.c: Include sys/param.h and limits.h.
87538         Include xstrtol.h.
87539         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
87540         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
87541         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
87542         UID, GID.  Check range.
87543
87544 2000-09-06  Jim Meyering  <meyering@lucent.com>
87545
87546         * lib/getopt.c (_getopt_internal): Update from glibc.
87547
87548 2000-08-30  Jim Meyering  <meyering@lucent.com>
87549
87550         * lib/strftime.c: Merge in changes from GNU libc.
87551
87552 2000-08-26  Jim Meyering  <meyering@lucent.com>
87553
87554         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
87555         * m4/fpending.m4: New file.
87556
87557 2000-08-26  Jim Meyering  <meyering@lucent.com>
87558
87559         * lib/closeout.c: Include "__fpending.h".
87560         (close_stdout_status): Return right away if there's nothing to flush.
87561
87562         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
87563         * lib/__fpending.c: New file.
87564         * lib/__fpending.h: New file.
87565
87566 2000-08-20  Jim Meyering  <meyering@lucent.com>
87567
87568         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
87569         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
87570         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
87571
87572 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
87573
87574         Improve fileutils installation on systems where running
87575         programs (like install) can't be unlinked.
87576         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
87577         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
87578
87579 2000-08-07  Paul Eggert  <eggert@twinsun.com>
87580
87581         Standardize on "memory exhausted" instead of "Memory exhausted"
87582         or "virtual memory exhausted".
87583         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
87584         "virtual memory exhausted".
87585         * lib/same.c (same_name): Invoke xalloc_die instead of printing
87586         our own message.
87587         * lib/userspec.c (parse_user_spec): Likewise.
87588         * lib/bumpalloc.h: comment fix
87589         * lib/same.c, userspec.c: Include xalloc.h.
87590
87591         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
87592         not char *const and pointing to a constant array.
87593         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
87594         (xrealloc): Comment fix.
87595
87596         * lib/userspec.c (parse_user_spec):
87597         Don't translate a message until just before returning,
87598         to avoid unnecessary translation.
87599
87600 2000-08-07  Jim Meyering  <meyering@lucent.com>
87601
87602         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
87603         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
87604         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
87605         getgroups.c, gethostname.c, getopt.h, group-member.c,
87606         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
87607         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
87608         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
87609         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
87610         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
87611         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
87612         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
87613         yesno.c: Back out Copyright date changes for each file with no change
87614         this year.  This eases coordination with other programs using the same
87615         source code modules.  From Paul Eggert.
87616
87617 2000-08-06  Paul Eggert  <eggert@twinsun.com>
87618
87619         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
87620         not char, for compatibility with glibc 2.1.3 strftime.c.
87621
87622 2000-08-03  Greg McGary  <greg@mcgary.org>
87623
87624         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
87625         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
87626         (EXTEND_BUFFER): Use them.
87627
87628 2000-08-01  Jim Meyering  <meyering@lucent.com>
87629
87630         * lib/dirname.c (ISSLASH): Define.
87631         (BACKSLASH_IS_PATH_SEPARATOR): Define.
87632         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
87633         both `\' and `/' may be use as path separators.
87634         Based on a patch from Prashant TR.
87635
87636 2000-07-31  Paul Eggert  <eggert@twinsun.com>
87637
87638         * lib/quotearg.c (quotearg_n_options): Don't make the initial
87639         slot vector a constant, since it might get modified.
87640
87641 2000-07-31  Jim Meyering  <meyering@lucent.com>
87642
87643         * lib/xmalloc.c: Use `virtual memory exhausted', not
87644         `Memory exhausted'.
87645         * lib/obstack.c (print_and_abort): Likewise.
87646
87647 2000-07-30  Paul Eggert  <eggert@twinsun.com>
87648
87649         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
87650         buffer, so that the caller can always quote one small
87651         component of a "memory exhausted" message in slot 0.
87652         From a suggestion by Jim Meyering.
87653
87654 2000-07-30  Jim Meyering  <meyering@lucent.com>
87655
87656         * lib/makepath.c (make_path): Quote the other instance, too.
87657
87658         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
87659         (STATIC_BUF_SIZE): Define.
87660         (quotearg_n_options): Use only statically allocated storage when
87661         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
87662         than STATIC_BUF_SIZE.
87663
87664 2000-07-29  Jim Meyering  <meyering@lucent.com>
87665
87666         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
87667         * lib/dirname.c (dir_name): Likewise.
87668
87669         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
87670         `/'.
87671
87672         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
87673         (dir_name): Assert that there are no trailing slashes.
87674
87675 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
87676
87677         * lib/mbswidth.h (mbswidth): Add a flags argument.
87678         (mbswidth): New declaration.
87679         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
87680         * lib/mbswidth.c (mbswidth): Add a flags argument.
87681         (mbsnwidth): New function.
87682
87683 2000-07-24  Jim Meyering  <meyering@lucent.com>
87684
87685         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
87686
87687 2000-07-23  Paul Eggert  <eggert@twinsun.com>
87688
87689         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
87690
87691 2000-07-23  Paul Eggert  <eggert@twinsun.com>
87692
87693         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
87694         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
87695         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
87696         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
87697         invoke multibyte primitives.
87698
87699 2000-07-23  Paul Eggert  <eggert@twinsun.com>
87700
87701         * lib/quotearg.c:
87702         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
87703         so that mbstate_t is always defined.
87704
87705         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
87706         be 1 in at least one GCC installation, and this configuration
87707         error is likely to be common.  Ignoring MB_LEN_MAX hurts
87708         performance on hosts that have mbrtowc but have only unibyte
87709         locales, but I assume these hosts are rare.
87710
87711 2000-07-23  Paul Eggert  <eggert@twinsun.com>
87712
87713         * lib/mbswidth.c (_XOPEN_SOURCE):
87714         Don't define; this causes problems on Solaris 7.
87715         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
87716
87717 2000-07-23  Jim Meyering  <meyering@lucent.com>
87718
87719         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
87720         too: getgrgid, getpwuid, getuid.
87721
87722 2000-07-23  Jim Meyering  <meyering@lucent.com>
87723
87724         * lib/basename.c (base_name): Add an assertion.
87725
87726 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
87727
87728         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
87729         shadow its mbsinit function.
87730
87731 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
87732
87733         * lib/mbswidth.h: New file.
87734         * lib/mbswidth.c: New file.
87735         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
87736         (noinst_HEADERS): Add mbswidth.h.
87737
87738 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
87739
87740         * lib/config.charset: Add support for FreeBSD. Improve support for
87741         HP-UX and IRIX 6.
87742
87743 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
87744
87745         * m4/mbswidth.m4: New file.
87746         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
87747
87748 2000-07-15  Jim Meyering  <meyering@lucent.com>
87749
87750         * lib/makepath.c: Include quote.h.
87751         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
87752         corresponding argument in a `quote (...)' call.
87753         Give better diagnostics.
87754
87755         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
87756         (noinst_HEADERS): Add quote.h.
87757
87758         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
87759         from tar's src/misc.c.
87760         * lib/quote.h: New file.  Prototypes for same.
87761
87762 2000-07-14  Paul Eggert  <eggert@twinsun.com>
87763
87764         From a suggestion by Bruno Haible.
87765         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
87766         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
87767         to decide whether to define the BeOS workaround macro;
87768         this adjusts to the change to AC_MBSTATE_T.
87769
87770 2000-07-14  Jim Meyering  <meyering@lucent.com>
87771
87772         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
87773         jm_AC_TYPE_UINTMAX_T.
87774
87775 2000-07-13  Paul Eggert  <eggert@twinsun.com>
87776
87777         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
87778
87779         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
87780         quotearg_buffer_restyled): Add support for
87781         clocale_quoting_style.  Undo previous change to
87782         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
87783         and "{RIGHT QUOTATION MARK}" msgids.
87784
87785 2000-07-10  Paul Eggert  <eggert@twinsun.com>
87786
87787         From a suggestion by Bruno Haible.
87788         * m4/mbstate_t.m4 (AC_MBSTATE_T):
87789         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
87790         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
87791         and mbstate_t, to a single-part test that simply defines mbstate_t.
87792         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
87793         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
87794
87795 2000-07-10  Jim Meyering  <meyering@lucent.com>
87796
87797         * m4/strerror_r.m4: Mirror the correction made in autoconf.
87798
87799         * m4/gnu-source.m4: Output to confdefs.h directly.
87800         Suggestion from Akim Demaille.
87801
87802 2000-07-09  Paul Eggert  <eggert@twinsun.com>
87803
87804         The old behavior of quoting `like this' doesn't look good with
87805         newer, ISO-style fonts.  See:
87806         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
87807
87808         Instead, quote "like this" by default.  Let the translator
87809         tailor the locale-specific quoting behavior by providing
87810         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
87811
87812         * lib/quotearg.c (N_): New macro.
87813         (gettext_default): New function.
87814         (quotearg_buffer_restyled): Use
87815         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
87816         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
87817
87818 2000-07-09  Jim Meyering  <meyering@lucent.com>
87819
87820         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
87821         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
87822
87823         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
87824         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
87825
87826 2000-07-09  Jim Meyering  <meyering@lucent.com>
87827
87828         * lib/Most files: Update copyright dates to include 2000.
87829
87830 2000-07-08  Jim Meyering  <meyering@lucent.com>
87831
87832         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
87833         if not defined.
87834         (xgethostname): Remove now-unnecessary #ifdef.
87835         Move declaration of `err' into loop where it's used.
87836
87837 2000-07-05  Paul Eggert  <eggert@twinsun.com>
87838         and Bruno Haible  <haible@clisp.cons.org>
87839
87840         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
87841         only if the test for an object-type mbstate_t fails.  This
87842         prevents us from mistakenly reporting that mbstate_t is a
87843         system object type after we "#define mbstate_t int" to work
87844         around its lack.
87845
87846 2000-07-05  Paul Eggert  <eggert@twinsun.com>
87847         and Bruno Haible  <haible@clisp.cons.org>
87848
87849         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
87850
87851 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
87852
87853         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
87854         to strerror_r.
87855         Include <ctype.h> for use of isalpha.
87856
87857 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
87858
87859         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
87860         by allocating a larger buffer. Test the gethostname return value for
87861         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
87862         returns an error and ENAMETOOLONG isn't defined.
87863
87864 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
87865
87866         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
87867         dimension.
87868
87869 2000-07-04  Jim Meyering  <meyering@lucent.com>
87870
87871         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
87872         of the deprecated AC_CHECKING.
87873
87874 2000-07-04  Jim Meyering  <meyering@lucent.com>
87875
87876         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
87877         Reported by Bruno Haible.
87878
87879 2000-07-04  Jim Meyering  <meyering@lucent.com>
87880
87881         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
87882         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
87883         lacks mbrtowc.
87884
87885 2000-07-03  Paul Eggert  <eggert@twinsun.com>
87886
87887         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
87888         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
87889
87890 2000-07-03  Paul Eggert  <eggert@twinsun.com>
87891         and Bruno Haible  <haible@clisp.cons.org>
87892
87893         * lib/quotearg.c (mbrtowc):
87894         Assign to *pwc, and return 1 only if result is nonzero.
87895         (iswprint): Use ISPRINT when substituting our own mbrtowc.
87896
87897 2000-07-03  Jim Meyering  <meyering@lucent.com>
87898
87899         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
87900
87901 2000-07-03  Jim Meyering  <meyering@lucent.com>
87902
87903         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
87904         This is necessary to get a definition of e.g., UTMP_FILE on
87905         HP-UX 10.20.
87906         From Bob Proulx.
87907
87908 2000-07-02  Jim Meyering  <meyering@lucent.com>
87909
87910         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
87911
87912         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
87913         AC_LIBOBJ(function_name).
87914         * m4/chown.m4: Likewise.
87915         * m4/fnmatch.m4: Likewise.
87916         * m4/ftruncate.m4: Likewise.
87917         * m4/getgroups.m4: Likewise.
87918         * m4/getline.m4: Likewise.
87919         * m4/group-member.m4: Likewise.
87920         * m4/jm-macros.m4: Likewise.
87921         * m4/lstat.m4: Likewise.
87922         * m4/malloc.m4: Likewise.
87923         * m4/memcmp.m4: Likewise.
87924         * m4/nanosleep.m4: Likewise.
87925         * m4/putenv.m4: Likewise.
87926         * m4/realloc.m4: Likewise.
87927         * m4/regex.m4: Likewise.
87928         * m4/stat.m4: Likewise.
87929         * m4/strftime.m4: Likewise.
87930
87931 2000-07-02  Jim Meyering  <meyering@lucent.com>
87932
87933         * lib/quotearg.c (mbstate_t): Don't define here.
87934
87935 2000-07-02  Jim Meyering  <meyering@lucent.com>
87936
87937         * lib/nanosleep.c (SIGCONT): Define if not already defined.
87938
87939 2000-07-01  Jim Meyering  <meyering@lucent.com>
87940
87941         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
87942
87943 2000-07-01  Jim Meyering  <meyering@lucent.com>
87944
87945         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
87946         problem.
87947
87948 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
87949
87950         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
87951         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
87952
87953 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
87954
87955         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
87956         per change in ../m4/ls-mntd-fs.m4.
87957         (read_filesystem_list): Ignore symbolic links.
87958
87959 2000-06-29  Jim Meyering  <meyering@lucent.com>
87960
87961         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
87962         for declaration of strcmp.
87963
87964         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
87965
87966         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
87967         Avoid warning by casting result to `char *' to remove `const'.
87968
87969 2000-06-28  Jim Meyering  <meyering@lucent.com>
87970
87971         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
87972         included by quotearg.c, for which we perform this test.  From
87973         Bruno Haible.
87974
87975 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
87976
87977         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
87978         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
87979         <utmpx.h> exists, put readutmp.o into LIBOBJS.
87980
87981 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
87982
87983         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
87984
87985 2000-06-26  Paul Eggert  <eggert@twinsun.com>
87986
87987         savedir now sets errno on failure and invokes xmalloc to get memory.
87988         Fix a couple of other minor bugs while we're at it.
87989
87990         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
87991         (NAMLEN): Remove macro.
87992         (malloc, realloc): Remove decls.
87993         (stpcpy): Likewise.
87994         ("xalloc.h"): Include.
87995         (NAME_SIZE_DEFAULT): New macro.
87996         (savedir): Use xmalloc / xrealloc to allocate memory.
87997         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
87998         Skip "" directory entries.
87999         Use strlen to calculate directory entry length, since the old method
88000         is rarely used these days and isn't worth supporting.
88001         Don't use a pointer after freeing it.
88002         Check for integer overflow when calculating allocation size.
88003         Use memcpy to copy entries, instead of stpcpy.
88004         Set errno properly when returning NULL.
88005         Check for readdir error.
88006
88007 2000-06-26  Jim Meyering  <meyering@lucent.com>
88008
88009         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
88010
88011 2000-06-25  Jim Meyering  <meyering@lucent.com>
88012
88013         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
88014         Linux header bug when _XOPEN_SOURCE is defined to 500.
88015
88016 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
88017
88018         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
88019         deficiency.
88020
88021 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
88022
88023         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
88024         Include xalloc.h.
88025         Don't include <stdlib.h>.  Don't declare malloc, realloc.
88026
88027 2000-06-24  Jim Meyering  <meyering@lucent.com>
88028
88029         * m4/strerror_r.m4: Revive this file -- to try out an experimental
88030         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
88031         for which strerror does return char*, but which lacks a conveniently
88032         accessible declaration of the function.  If the compile-test says
88033         strerror_r doesn't work, then resort to a `run'-test that works on
88034         BeOS and segfaults on DEC Unix.
88035
88036 2000-06-24  Jim Meyering  <meyering@lucent.com>
88037
88038         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
88039
88040 2000-06-23  Paul Eggert  <eggert@twinsun.com>
88041
88042         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
88043         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
88044
88045 2000-06-23  Paul Eggert  <eggert@twinsun.com>
88046
88047         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
88048         (mbrtowc, mbstate_t): Define substitutes if
88049         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
88050         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
88051         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
88052
88053 2000-06-23  Jim Meyering  <meyering@lucent.com>
88054
88055         * m4/afs.m4: Add missing AC_MSG_RESULT.
88056         Reported by Bruno Haible.
88057
88058         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
88059         Suggestion from Bruno Haible.
88060
88061 2000-06-23  Jim Meyering  <meyering@lucent.com>
88062
88063         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
88064
88065 2000-06-21  Jim Meyering  <meyering@lucent.com>
88066
88067         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
88068
88069 2000-06-21  Jim Meyering  <meyering@lucent.com>
88070
88071         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
88072         (noinst_HEADERS): Add getstr.h.
88073
88074         * lib/getline.c (getstr): Move into a separate file.
88075         * lib/getstr.c (getstr): New file, extracted from getline.c, with
88076         the following changes: new parameter, delim2; both delim[12]
88077         parameters have type `int', not `char'.  The latter would lose
88078         with 8-bit delimiters.
88079         * lib/getstr.h: New file.
88080
88081 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
88082
88083         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
88084         than 1024, return a memory chunk of least possible size, instead
88085         of size PATH_MAX + 2. In the loop, increment the size proportionally.
88086         Use free/xmalloc instead of xrealloc to avoid copying for very long
88087         paths.
88088
88089 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
88090
88091         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
88092         the empty string.
88093
88094 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
88095
88096         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
88097         address, not strdup.  Include <stdlib.h> and don't declare free().
88098
88099 2000-06-19  Jim Meyering  <meyering@lucent.com>
88100
88101         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
88102
88103 2000-06-18  Jim Meyering  <meyering@lucent.com>
88104
88105         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
88106
88107         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
88108         `checking whether...' message to be consistent with that of the
88109         lstat test.
88110
88111 2000-06-18  Jim Meyering  <meyering@lucent.com>
88112
88113         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
88114         Besides, these days every porting target provides a mkdir function.
88115
88116         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
88117         needed. (this snippet comes from src/system.h).
88118
88119 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
88120
88121         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
88122
88123 2000-06-15  Paul Eggert  <eggert@twinsun.com>
88124
88125         * lib/human.c (adjust_value): New function.
88126         (human_readable_inexact): Apply rounding style even when
88127         printing approximate values.
88128
88129 2000-06-14  Paul Eggert  <eggert@twinsun.com>
88130
88131         * lib/human.c (human_readable_inexact): Allow an input block
88132         size that is not a multiple of the output block size, and vice versa.
88133         Reported by Piergiorgio Sartor.
88134
88135 2000-06-14  Paul Eggert  <eggert@twinsun.com>
88136
88137         * lib/getdate.y (get_date): Apply relative times after time
88138         zone indicator, not before.  Reported by Todd A. Jacobs.
88139
88140 2000-06-13  Jim Meyering  <meyering@lucent.com>
88141
88142         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
88143
88144         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
88145
88146 2000-06-12  Paul Eggert  <eggert@twinsun.com>
88147
88148         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
88149
88150 2000-06-12  Jim Meyering  <meyering@lucent.com>
88151
88152         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
88153         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
88154         optional argument.
88155         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
88156         the optional argument, `lib'.
88157
88158 2000-06-08  Jim Meyering  <meyering@lucent.com>
88159
88160         * m4/largefile.m4: Remove file (now that it's part of autoconf).
88161
88162 2000-06-04  Paul Eggert  <eggert@twinsun.com>
88163
88164         Rewrite largefile configuration so that we don't need to run
88165         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
88166         AC_CANONICAL_HOST in configure.in -- jmm]
88167
88168         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
88169         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
88170         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
88171         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
88172         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
88173         All uses changed.
88174         Instead of inspecting the output of getconf, try to compile the
88175         test program without and with the macro definition.
88176         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
88177         for getconf.  Instead, check for the needed flags by compiling
88178         test programs.
88179
88180 2000-06-04  Paul Eggert  <eggert@twinsun.com>
88181
88182         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
88183
88184 2000-06-04  Jim Meyering  <meyering@lucent.com>
88185
88186         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
88187         SunOS 4.1.4 for which gid_t is an unsigned type.
88188
88189 2000-06-03  Jim Meyering  <meyering@lucent.com>
88190
88191         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
88192         now that autoconf requires that.
88193
88194         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
88195         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
88196         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
88197
88198 2000-06-03  Jim Meyering  <meyering@lucent.com>
88199
88200         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
88201
88202 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
88203
88204         * m4/glibc21.m4: New file.
88205         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
88206
88207 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
88208
88209         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
88210         newer, don't install charset.alias.
88211         * lib/config.charset: Change the Linux/glibc rules so they become empty
88212         on glibc-2.1 or newer.
88213
88214 2000-06-02  Jim Meyering  <meyering@lucent.com>
88215
88216         * lib/mountlist.c: Back out last change.  Instead, do this...
88217         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
88218         me_dummy member using the same `ignore'-testing code.
88219         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
88220         fs_type strings.
88221         From Mark D. Roth.
88222
88223 2000-05-29  Jim Meyering  <meyering@lucent.com>
88224
88225         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
88226         mounts with the `ignore' attribute.  Based on a patch from
88227         Mark D. Roth.
88228
88229 2000-05-28  Jim Meyering  <meyering@lucent.com>
88230
88231         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
88232         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
88233         * m4/stat.m4: Likewise.
88234         * m4/lstat.m4: Likewise.
88235         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
88236
88237         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
88238         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
88239
88240 2000-05-26  Jim Meyering  <meyering@lucent.com>
88241
88242         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
88243
88244 2000-05-24  Jim Meyering  <meyering@lucent.com>
88245
88246         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
88247         autoconf requires that.
88248         * m4/lib-check.m4: Likewise.
88249         * m4/jm-macros.m4: Likewise.
88250         * m4/strftime.m4: Likewise.
88251
88252         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
88253         AC_CHECK_DECLS, now that autoconf requires that.
88254
88255 2000-05-22  Jim Meyering  <meyering@lucent.com>
88256
88257         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
88258         * m4/lstat.m4: Likewise.
88259
88260 2000-05-22  Jim Meyering  <meyering@lucent.com>
88261
88262         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
88263
88264 2000-05-20  Jim Meyering  <meyering@lucent.com>
88265
88266         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
88267         (jm_PREREQ): Use it.
88268
88269 2000-05-18  Jim Meyering  <meyering@lucent.com>
88270
88271         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
88272         back, too, since it may have been modified by allocate_entry.
88273         (hash_delete): Rewrite to use neither the assignment operator
88274         nor the comma operator in an if-expression.
88275
88276 2000-05-15  Paul Eggert  <eggert@twinsun.com>
88277
88278         * lib/closeout.c:
88279         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
88280         Remove; no longer needed.
88281         "quotearg.h": Add include.
88282         (file_name): Do not bother to explicitly initialize to NULL; it's less
88283         efficient on some hosts.
88284         (close_stdout_status): Remove test as to whether stdout was already
88285         closed; it breaks for the case "echo x | sort >&-".
88286         Quote file name colons.
88287         Do not assume that _("write error") lacks format strings.
88288
88289 2000-05-15  Jim Meyering  <meyering@lucent.com>
88290
88291         * lib/version-etc.c (version_etc_copyright): Update the copyright
88292         string used in all --version output.
88293
88294 2000-05-14  Jim Meyering  <meyering@lucent.com>
88295
88296         * lib/closeout.c (close_stdout_set_file_name): New function.
88297         (close_stdout_status): Use new file-scoped global.
88298         Return right away if fstat says the stdout file descriptor is invalid.
88299         * lib/closeout.h (close_stdout_set_file_name): Declare.
88300
88301 2000-05-10  Jim Meyering  <meyering@lucent.com>
88302
88303         * lib/closeout.c [default_exit_status]: New file-scoped variable.
88304         (close_stdout_set_status): New function.
88305         * lib/closeout.h (close_stdout_set_status): Declare.
88306
88307 2000-05-09  Jim Meyering  <meyering@lucent.com>
88308
88309         * m4/gettext.m4: Rename this...
88310         * m4/libintl.m4: ...to this.
88311
88312 2000-05-08  Jim Meyering  <meyering@lucent.com>
88313
88314         * lib/long-options.c: Don't include closeout.h.
88315         (parse_long_options): Don't call close_stdout for --version.
88316
88317 2000-05-06  Paul Eggert  <eggert@twinsun.com>
88318
88319         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
88320         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
88321         2.1.3 bug.  This avoids a clash when files like regex.c define
88322         _GNU_SOURCE.
88323
88324 2000-05-06  Jim Meyering  <meyering@lucent.com>
88325
88326         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
88327         (AC_REPLACE_FUNCS): Add strnlen.
88328
88329         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
88330         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
88331
88332         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
88333         AC_SEARCH_LIBS call for nanosleep.
88334         (LIB_NANOSLEEP): Set and AC_SUBST.
88335
88336 2000-05-06  Jim Meyering  <meyering@lucent.com>
88337
88338         * lib/strnlen.c: Undefine __strnlen and strnlen.
88339         [!weak_alias]: Define __strnlen to strnlen.
88340
88341         * lib/atexit.c: New file, from libiberty.
88342
88343 2000-05-06  Jim Meyering  <meyering@lucent.com>
88344
88345         * lib/closeout.c (close_stdout_status): Also check for errors on the
88346         stderr stream.
88347
88348 2000-05-05  Jim Meyering  <meyering@lucent.com>
88349
88350         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
88351         AC_SEARCH_LIBS call for clock_gettime.
88352         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
88353
88354         * m4/search-libs.m4: Update from autoconf.
88355
88356         su doesn't work on Solaris 2.6.
88357         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
88358         <shadow.h>.  Reported by Dragos Harabor.
88359
88360 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
88361
88362         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
88363         memcpy instead of xmalloc, xrealloc, path_concat.
88364         (locale_charset): Treat empty environment variables as absent.
88365         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
88366
88367 2000-05-04  Jim Meyering  <meyering@lucent.com>
88368
88369         * lib/getopt.c: Update from glibc.
88370         * lib/obstack.c: Likewise.
88371         * lib/obstack.h: Likewise.
88372         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
88373         file
88374
88375         * lib/regex.h: Likewise.
88376         * lib/strndup.c: Likewise.
88377         * lib/strnlen.c: New file, from glibc.
88378
88379 2000-05-03  Jim Meyering  <meyering@lucent.com>
88380
88381         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
88382
88383 2000-05-02  Paul Eggert  <eggert@twinsun.com>
88384
88385         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
88386         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
88387         compile-time test, rather than inspecting host and OS, to
88388         decide whether to define _LARGEFILE_SOURCE.
88389
88390 2000-05-01  Jim Meyering  <meyering@lucent.com>
88391
88392         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
88393
88394         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
88395         Based on a patch from Bruno Haible.
88396
88397 2000-05-01  Jim Meyering  <meyering@lucent.com>
88398
88399         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
88400
88401 2000-04-29  Jim Meyering  <meyering@lucent.com>
88402
88403         * lib/path-concat.c: Declare strdup only if it's not defined.
88404         * lib/canon-host.c: Likewise.
88405
88406 2000-04-28  Jim Meyering  <meyering@lucent.com>
88407
88408         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
88409         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
88410         is included first, then limits.h is included by locale.h by libintl.h.
88411         From John David Anglin.
88412
88413 2000-04-25  Jim Meyering  <meyering@lucent.com>
88414
88415         * lib/makepath.c (S_IRWXUGO): Define.
88416         (make_path): Always perform explicit chmod if MODE specifies any
88417         of the `special' permission bits.  Prompted by a bug report against
88418         install from Mate Wierdl and Joost van Baal.
88419
88420 2000-04-18  Jim Meyering  <meyering@lucent.com>
88421
88422         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
88423         (jm_PREREQ): Use it.
88424
88425 2000-04-18  Jim Meyering  <meyering@lucent.com>
88426
88427         * lib/README: New file.
88428
88429         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
88430         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
88431
88432 2000-04-17  Jim Meyering  <meyering@lucent.com>
88433
88434         Get it right :-)
88435         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
88436         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
88437         Suggestion from Akim Demaille.
88438
88439 2000-04-17  Jim Meyering  <meyering@lucent.com>
88440
88441         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
88442         the definition of it to rpl_strftime also defined-away the system's
88443         declaration.
88444
88445 2000-04-15  Jim Meyering  <meyering@lucent.com>
88446
88447         Use `C' to denote so-called `contiguous' files, the same way
88448         that tar does.
88449         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
88450         (ftypelet): Use S_ISCTG.
88451         From Michael Deutschmann.
88452
88453 2000-04-14  Jim Meyering  <meyering@lucent.com>
88454
88455         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
88456         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
88457         clobbered.
88458
88459 2000-04-14  Jim Meyering  <meyering@lucent.com>
88460
88461         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
88462
88463 2000-04-13  Jim Meyering  <meyering@lucent.com>
88464
88465         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
88466         AH_VERBATIM to insert required #ifndef into config.h.in.
88467         Suggestion from Akim Demaille.
88468
88469 2000-04-12  Jim Meyering  <meyering@lucent.com>
88470
88471         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
88472         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
88473         Christian Krackowizer.
88474
88475         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
88476         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
88477         (AC_SYS_LARGEFILE): Require.
88478         (AM_C_PROTOTYPES): Require.
88479
88480 2000-04-08  Jim Meyering  <meyering@lucent.com>
88481
88482         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
88483         names don't conflict.  Reported by Eli Zaretskii.
88484
88485 2000-04-07  Jim Meyering  <meyering@lucent.com>
88486
88487         * lib/putenv.c: Move inclusion of errno.h so it follows that of
88488         sys/types.h, to work around system header problems on AIX 3.2.5.
88489         From Bruno Haible.
88490
88491 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
88492
88493         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
88494         bug.  Deal with the different error behavior of Irix iconv.
88495
88496 2000-04-05  Paul Eggert  <eggert@twinsun.com>
88497
88498         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
88499         IRIX if the installer said otherwise.
88500
88501 2000-04-05  Jim Meyering  <meyering@lucent.com>
88502
88503         Portability tweaks required for ultrix4.3.
88504         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
88505         (jm_CHECK_DECLS): Add getutent to the list of functions.
88506         (_jm_DECL_HEADERS): Add utmpx.h.
88507         From John David Anglin.
88508
88509         * m4/strftime.m4: Back out the 2000-04-02 change.
88510         Instead of that change, simply undefine putenv in the test program.
88511
88512 2000-04-05  Jim Meyering  <meyering@lucent.com>
88513
88514         Portability tweaks required for ultrix4.3.
88515         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
88516         getutent.
88517         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
88518         * lib/canon-host.c: Declare strdup.
88519         * lib/path-concat.c: Likewise.
88520         From John David Anglin.
88521
88522 2000-04-04  Jim Meyering  <meyering@lucent.com>
88523
88524         Be more DOS 8.3-friendly.
88525         * lib/ref-add.sin: Renamed from ref-add.sed.in.
88526         * lib/ref-del.sin: Renamed from ref-del.sed.in.
88527         * lib/Makefile.am: Reflect renaming.
88528         Reported by Eli Zaretskii.
88529
88530         Use a temporary file name that won't clash with `charset.alias'
88531         in the DOS 8.3 name space.
88532         * lib/Makefile.am (charset_tmp): Define.
88533         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
88534         (uninstall-local): Likewise.
88535         Reported by Eli Zaretskii.
88536
88537 2000-04-03  Jim Meyering  <meyering@lucent.com>
88538
88539         * m4/gettext.m4: Fix typo in comment.
88540
88541         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
88542         textutils/configure.in).  Suggestion from Paul Eggert.
88543         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
88544
88545 2000-04-02  Paul Eggert  <eggert@twinsun.com>
88546
88547         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
88548         variable in the shell rather than using putenv, which isn't
88549         portable.  This avoids the configure-time inter-test dependency
88550         on the potentially-renamed putenv function.
88551
88552 2000-03-30  Paul Eggert  <eggert@twinsun.com>
88553
88554         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
88555         before checking struct stat.st_blksize, so that
88556         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
88557
88558 2000-03-29  Paul Eggert  <eggert@twinsun.com>
88559
88560         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
88561         since strftime.c uses HAVE_STRFTIME to decide whether to use
88562         the underlying strftime.
88563
88564 2000-03-29  Paul Eggert  <eggert@twinsun.com>
88565
88566         * lib/time/strftime.c (my_strftime): Make sure we call the system
88567         strftime, not ourselves, when invoking the underlying strftime.
88568
88569 2000-03-24  Jim Meyering  <meyering@lucent.com>
88570
88571         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
88572         (charset_alias): Define.
88573         (install-exec-local): Factor out common code.
88574         (uninstall-local): Split lines longer than 80.
88575         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
88576         (SUFFIXES): Define.
88577         (.sed.in.sed): New rule.  Don't redirect directly to $@.
88578         (CLEANFILES): Add ref-add.sed and ref-del.sed.
88579
88580 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
88581
88582         * lib/config.charset: Output a line containing "Packages using this
88583         file".
88584         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
88585         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
88586         ref-del.sed): New rules.
88587
88588 2000-03-17  Jim Meyering  <meyering@lucent.com>
88589
88590         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
88591         Otherwise, include <strings.h>
88592
88593 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
88594
88595         * lib/unicodeio.c (utf8_wctomb): New function.
88596         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
88597         format instead of in UCS-4 with platform dependent endianness.
88598
88599 2000-03-10  Jim Meyering  <meyering@lucent.com>
88600
88601         * m4/lib-check.m4: Look for getspnam in -lgen, too.
88602         From Marco Franzen.
88603
88604 2000-03-07  Paul Eggert  <eggert@twinsun.com>
88605
88606         * lib/savedir.c (savedir): Work even if directory size is
88607         negative; this can happen with some screwy NFS configurations.
88608
88609 2000-03-06  Jim Meyering  <meyering@lucent.com>
88610
88611         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
88612         if it's NULL (because we ran out of memory).  From Bruno Haible.
88613
88614 2000-03-05  Jim Meyering  <meyering@lucent.com>
88615
88616         * lib/localcharset.c ("path-concat.h"): Include.
88617         (get_charset_aliases): Use path_concat instead of ANSI string
88618         concatenation.
88619
88620         * lib/unicodeio.h (PARAMS): Define.
88621         Use it to guard prototype.
88622
88623 2000-03-04  Jim Meyering  <meyering@lucent.com>
88624
88625         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
88626         for lib/localcharset.c.
88627
88628 2000-03-04  Jim Meyering  <meyering@lucent.com>
88629
88630         * lib/Makefile.am (install-exec-local): Create $(libdir) before
88631         installing into it.
88632         (uninstall-local): Uncomment this rule so `make distcheck' works
88633         once again.
88634
88635         * lib/unicodeio.c (<errno.h>): Include it.
88636         (errno): Declare if not defined.
88637
88638         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
88639
88640         * lib/config.charset: New version, incorporating remarks from a linux
88641         i18n mailing list.  From Bruno Haible.
88642
88643 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
88644
88645         * m4/codeset.m4: New file.
88646         * m4/iconv.m4: New file.
88647         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
88648
88649 2000-03-03  Jim Meyering  <meyering@lucent.com>
88650
88651         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
88652
88653 2000-03-02  Jim Meyering  <meyering@lucent.com>
88654
88655         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
88656         the messages come out on separate lines.
88657
88658         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
88659         rather than jm_CHECK_DECLARATIONS.
88660         * m4/decl.m4: Remove now-unused file.
88661
88662         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
88663         geteuid.
88664
88665 2000-03-02  Jim Meyering  <meyering@lucent.com>
88666
88667         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
88668
88669 2000-03-01  Jim Meyering  <meyering@lucent.com>
88670
88671         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
88672         * lib/unicodeio.c: Likewise.
88673
88674 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
88675
88676         * lib/config.charset: New file.
88677         * lib/localcharset.c: New file.
88678         * lib/unicodeio.h, lib/unicodeio.c: New files.
88679         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
88680         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
88681         (noinst_HEADERS): Add unicodeio.h.
88682         (all-local, install-exec-local, charset.alias): New targets.
88683
88684 2000-02-28  Paul Eggert  <eggert@twinsun.com>
88685
88686         * lib/quotearg.c (ALERT_CHAR): New macro.
88687         (quotearg_buffer_restyled): Use it.
88688
88689 2000-02-27  Jim Meyering  <meyering@lucent.com>
88690
88691         * m4/check-decl.m4: Add getenv to the list.
88692
88693 2000-02-27  Jim Meyering  <meyering@lucent.com>
88694
88695         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
88696         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
88697
88698         * lib/backupfile.c: Guard inclusion of stdlib.h with
88699         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
88700         Declare malloc if needed.
88701
88702         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
88703         `#ifndef HAVE_DECL..'
88704         now that autoconf always defines the HAVE_DECL_ symbols.
88705         * lib/human.c: Likewise.
88706         * lib/same.c: Likewise.
88707         * lib/strtoumax.c: Likewise.
88708
88709         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
88710         declaration check was not run.
88711         * lib/hash.c: Likewise.
88712         * lib/human.c: Likewise.
88713         * lib/same.c: Likewise.
88714         * lib/strtoumax.c: Likewise.
88715
88716         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
88717         `.', then first look up the entire `.'-containing string as a login
88718         name.
88719
88720 2000-02-23  Jim Meyering  <meyering@lucent.com>
88721
88722         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
88723         in place of my hack.
88724
88725 2000-02-18  Paul Eggert  <eggert@twinsun.com>
88726
88727         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
88728         (textint): New typedef.
88729         (parser_control): Member year changed from int to textint.
88730         All uses changed.
88731         (YYSTYPE): Removed; replaced by %union with int and textint members.
88732         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
88733         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
88734         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
88735         (tSNUMBER, tUNUMBER): Now of type <textintval>.
88736         (date, number, to_year): Use width of number in digits, not its value,
88737         to determine whether it's a 2-digit year, or a 2-digit time.
88738         (yylex): Store number of digits of numeric tokens.
88739         Reported by John Kendall.
88740
88741         (parser_control): Changed from struct parser_control to typedef (for
88742         consistency).  All uses changed.
88743
88744         (tID): Removed; not used.
88745         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
88746
88747 2000-02-14  Paul Eggert  <eggert@twinsun.com>
88748
88749         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
88750         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
88751
88752 2000-02-12  Jim Meyering  <meyering@lucent.com>
88753
88754         * lib/userspec.c (ISDIGIT): Define it.
88755         (isdigit): Remove definition.
88756         (is_number): Use ISDIGIT, not isdigit.
88757         <libintl.h>: Include.
88758         (_ and N_): Define.
88759         (parse_user_spec): Mark translatable strings.
88760
88761 2000-02-10  Jim Meyering  <meyering@lucent.com>
88762
88763         With these changes, nanosleep.[ch] are finally enough like the other
88764         lib/* replacement files to compile on a few more losing systems.
88765
88766         * lib/nanosleep.h: Don't include config.h.
88767         Remove prototype from declaration of nanosleep.
88768         (PARAMS): Remove now-unneeded definition.
88769         * lib/nanosleep.c: #undef nanosleep.
88770         (rpl_nanosleep): Rename from nanosleep.
88771
88772 2000-02-10  Jim Meyering  <meyering@lucent.com>
88773
88774         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
88775         gnu_nanosleep to rpl_nanosleep.
88776
88777 2000-02-09  Jim Meyering  <meyering@lucent.com>
88778
88779         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
88780         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
88781
88782 2000-02-08  Akim Demaille  <akim@epita.fr>
88783
88784         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
88785         `[' and `]' and remove uses of `changequote'.
88786         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
88787         (AC_SYS_LARGEFILE): Likewise.
88788         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
88789         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
88790         of changequote.
88791         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
88792         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
88793         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
88794         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
88795
88796 2000-02-05  Jim Meyering  <meyering@lucent.com>
88797
88798         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
88799         Remove explicit use of AC_HEADER_TIME.  It is required by
88800         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
88801         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
88802         in autoconf whereby the expansion of the latter ended up preceding
88803         the expansion of its prerequisite, AC_HEADER_TIME.
88804         Reported by Volker Borchert.
88805
88806 2000-02-03  Jim Meyering  <meyering@lucent.com>
88807
88808         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
88809
88810 2000-02-03  Jim Meyering  <meyering@lucent.com>
88811
88812         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
88813         rather than with `#if HAVE_UTMPNAME'.
88814
88815 2000-02-02  Jim Meyering  <meyering@lucent.com>
88816
88817         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
88818         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
88819         Reported by Eli Zaretskii.
88820
88821 2000-02-01  Jim Meyering  <meyering@lucent.com>
88822
88823         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
88824
88825 2000-01-31  Jim Meyering  <meyering@lucent.com>
88826
88827         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
88828         functions.  Add the time.h and sys/time.h headers along with the
88829         AC_REQUIRE'ment of AC_HEADER_TIME.
88830
88831 2000-01-31  Jim Meyering  <meyering@lucent.com>
88832
88833         * lib/nanosleep.h (nanosleep): Guard declaration with
88834         `#if ! HAVE_DECL_NANOSLEEP'.
88835         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
88836         the declaration in that vendor's sys/timers.h.
88837         Reported by Christian Krackowizer.
88838
88839         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
88840         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
88841         (ISPRINT): Likewise.
88842         Reported by Tom Tromey.
88843
88844 2000-01-30  Jim Meyering  <meyering@lucent.com>
88845
88846         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
88847
88848         * m4/prereq.m4 (utmp_includes): Define.
88849         Check for ut_user and ut_name members in both struct utmpx
88850         and struct utmp.
88851
88852 2000-01-30  Jim Meyering  <meyering@lucent.com>
88853
88854         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
88855         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
88856         header files where only utmpx.ut_user is declared.
88857
88858         * lib/readutmp.h (UT_USER): Define.
88859
88860 2000-01-29  Jim Meyering  <meyering@lucent.com>
88861
88862         * m4/lib-check.m4: New file containing library-related checks from
88863         fileutils and sh-utils (textutils had none).
88864
88865 2000-01-28  Jim Meyering  <meyering@lucent.com>
88866
88867         * m4/perl.m4: Change format of warning message to look more like that
88868         from the missing script.  Suggestion from François Pinard.
88869
88870 2000-01-25  Jim Meyering  <meyering@lucent.com>
88871
88872         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
88873         well as time.h in the compile check.
88874         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
88875         Fix typo in cross-compiling case: s/yes/no/.
88876
88877 2000-01-23  Jim Meyering  <meyering@lucent.com>
88878
88879         * m4/jm-macros.m4: Move df-related tests here from
88880         fileutils/configure.in
88881
88882         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
88883         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
88884
88885         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
88886         s/space/ac_fsusage_space/.
88887         (jm_FILE_SYSTEM_USAGE): Take two parameters.
88888
88889         * m4/ftruncate.m4: New file (derived from part of
88890         fileutils/configure.in).
88891         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
88892         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
88893
88894         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
88895         AC_SUBST these here, rather than just in sh-util/configure.in, so
88896         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
88897         all the same.
88898         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
88899         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
88900         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
88901         (AC_SUBST(POW_LIBM)): Likewise.
88902         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
88903
88904 2000-01-23  Jim Meyering  <meyering@lucent.com>
88905
88906         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
88907         obstack.c.
88908
88909 2000-01-22  Jim Meyering  <meyering@lucent.com>
88910
88911         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
88912
88913         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
88914
88915         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
88916         configure.in
88917         (AC_CHECK_HEADERS): Likewise for sh-utils.
88918         (AC_CHECK_HEADERS): Likewise for textutils.
88919         Merge the three lists of headers.
88920
88921         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
88922         from fileutils' configure.in.
88923
88924         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
88925         code. Moved tests into their own function (_jm_DECL_HEADERS) in
88926         check-decl.m4.
88927
88928         * m4/check-decl.m4: Use #if rather than #ifdef.
88929         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
88930         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
88931         (_jm_DECL_HEADERS): Define new function.
88932         (jm_CHECK_DECLARATIONS): Require it.
88933
88934 2000-01-22  Jim Meyering  <meyering@lucent.com>
88935
88936         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
88937         [! HAVE_DECL_STRTOULL]: Declare strtoull.
88938         Required for some AIX systems.  Reported by Christian Krackowizer.
88939         [TESTING] (main): New function.
88940
88941         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
88942         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
88943         letters.
88944
88945         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
88946         iswprint.
88947
88948         * lib/strverscmp.c (ISDIGIT): Define.
88949         (strverscmp): Use ISDIGIT, not isdigit.
88950
88951 2000-01-19  Jim Meyering  <meyering@lucent.com>
88952
88953         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
88954         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
88955         defines `struct timespec' in <sys/time.h>
88956
88957         * m4/c-bs-a.m4: Remove uses of changequote altogether.
88958         Thanks to Akim for explaining.
88959
88960 2000-01-17  Paul Eggert  <eggert@twinsun.com>
88961
88962         * lib/nanosleep.c (nanosleep):
88963         Don't use SA_INTERRUPT to decide whether to call sigaction, as
88964         POSIX.1 doesn't require SA_INTERRUPT and some systems
88965         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
88966         it's been part of POSIX.1 since day 1 (in 1988).
88967
88968 2000-01-17  Jim Meyering  <meyering@lucent.com>
88969
88970         * lib/interlock: Remove unused file.  Reported by François Pinard.
88971
88972 2000-01-16  Paul Eggert  <eggert@twinsun.com>
88973
88974         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
88975         alert, backslash, formfeed, and vertical tab unnecessarily in
88976         shell quoting style.
88977
88978 2000-01-16  Jim Meyering  <meyering@lucent.com>
88979
88980         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
88981         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
88982         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
88983         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
88984
88985 2000-01-16  Jim Meyering  <meyering@lucent.com>
88986
88987         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
88988         because the latter didn't work.
88989
88990 2000-01-15  Jim Meyering  <meyering@lucent.com>
88991
88992         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
88993         (AC_REPLACE_FUNCS): Add memcpy and memset.
88994         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
88995         Add strpbrk.
88996         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
88997
88998 2000-01-12  Jim Meyering  <meyering@lucent.com>
88999
89000         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
89001         (jm_PREREQ): Use it.
89002         (jm_PREREQ_READUTMP): New macro.
89003         (jm_PREREQ): Use it.
89004
89005 2000-01-11  Paul Eggert  <eggert@twinsun.com>
89006
89007         Quote multibyte characters correctly.
89008         * m4/c-bs-a.m4: New file.
89009         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
89010         (jm_PREREQ): Use it.
89011
89012 2000-01-11  Paul Eggert  <eggert@twinsun.com>
89013
89014         * m4/uintmax_t.m4: Port to autoconf 2.13.
89015
89016 2000-01-08  Jim Meyering  <meyering@ascend.com>
89017
89018         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
89019         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
89020
89021 2000-01-04  Jim Meyering  <meyering@ascend.com>
89022
89023         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
89024         jm_STRUCT_DIRENT_D_TYPE.
89025         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
89026         jm_STRUCT_DIRENT_D_INO.
89027         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
89028         jm_STRUCT_UTIMBUF.
89029         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
89030         renamings.
89031         * m4/utime.m4: Likewise.
89032
89033         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
89034         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
89035
89036 2000-01-03  Paul Eggert  <eggert@twinsun.com>
89037
89038         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
89039         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
89040
89041 2000-01-02  Jim Meyering  <meyering@ascend.com>
89042
89043         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
89044         remember if this is necessary.
89045
89046 1999-12-26  Jim Meyering  <meyering@ascend.com>
89047
89048         * m4/jm-macros.m4: Use it here.
89049         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
89050
89051 1999-12-23  Jim Meyering  <meyering@ascend.com>
89052
89053         * m4/jm-macros.m4: Check for clock_gettime (moved from
89054         fileutils/configure.in)
89055         Check for gettimeofday.
89056
89057 1999-12-20  Jim Meyering  <meyering@ascend.com>
89058
89059         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
89060         autoconf-2.14a-1999-12-20.
89061
89062 1999-12-19  Jim Meyering  <meyering@ascend.com>
89063
89064         * m4/lstat-slash.m4: New file.
89065         * m4/jm-macros.m4: Use the new macro:
89066         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
89067
89068 1999-12-07  Jim Meyering  <meyering@ascend.com>
89069
89070         * m4/perl.m4: Require that File::Compare be available, too.
89071         Too many systems seem to lack it.
89072
89073         * m4/strftime.m4: Add checks for most of the cpp macros tested in
89074         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
89075
89076 1999-11-18  Paul Eggert  <eggert@twinsun.com>
89077
89078         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
89079         problem with the QNX 4.25 shell, which doesn't propagate exit
89080         status of failed commands inside shell assignments.
89081
89082 1999-11-17  Jim Meyering  <meyering@ascend.com>
89083
89084         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
89085
89086 1999-11-07  Jim Meyering  <meyering@ascend.com>
89087
89088         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
89089
89090 1999-11-06  Jim Meyering  <meyering@ascend.com>
89091
89092         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
89093         * m4/jm-macros.m4 (jm_MACROS): Use it here.
89094
89095 1999-11-05  Jim Meyering  <meyering@ascend.com>
89096
89097         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
89098         configure.in of textutils, fileutils, and sh-utils into this one
89099         (shared between those packages) file.
89100         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
89101         AC_STRUCT_ST_BLKSIZE.
89102
89103 1999-11-03  Jim Meyering  <meyering@ascend.com>
89104
89105         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
89106         of AC_CHECK_TYPE checks includes unistd.h.
89107         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
89108         Suggestion from Akim Demaille.
89109
89110 1999-10-30  Jim Meyering  <meyering@ascend.com>
89111
89112         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
89113         m4-quoted string.
89114         * m4/ls-mntd-fs.m4: Likewise.
89115         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
89116         * m4/jm-winsz1.m4: Likewise.
89117
89118         * m4/const.m4: Remove file, since the fix made it into the experimental
89119         version of autoconf.
89120         * m4/mktime.m4: Likewise.
89121
89122         * m4/check-type.m4: Remove file, now that the latest version of
89123         AC_CHECK_TYPE takes a third arg to specify additional #includes.
89124
89125         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
89126         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
89127         AC_CHECK_TYPE.
89128
89129 1999-10-04  Jim Meyering  <meyering@ascend.com>
89130
89131         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
89132
89133 1999-09-22  Paul Eggert  <eggert@twinsun.com>
89134
89135         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
89136         2.95.1 bug with HP-UX 10.20.
89137
89138 1999-09-17  Jim Meyering  <meyering@ascend.com>
89139
89140         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
89141         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
89142         due to missing strdup (against sh-utils-2.0).
89143
89144 1999-08-29  Jim Meyering  <meyering@ascend.com>
89145
89146         * m4/jm-macros.m4: Require jm_BISON.
89147         * m4/bison.m4: New file.
89148
89149 1999-08-17  Paul Eggert  <eggert@twinsun.com>
89150
89151         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
89152         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
89153
89154 1999-08-05  Jim Meyering  <meyering@ascend.com>
89155
89156         * m4/getline.m4: Rename test file from conftestdata to conftest.data
89157         to avoid conflicts with `conftest' on 8+3 filesystems.
89158         Suggestion from Eli Zaretskii.
89159
89160 1999-08-04  Jim Meyering  <meyering@ascend.com>
89161
89162         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
89163         fileutils and sh-utils (textutils's getline test was inadequate).
89164         (AM_FUNC_GETLINE): Run this test.
89165         (AC_CHECK_FUNCS): Check for getdelim.
89166         Reported by Bob Proulx.
89167
89168 1999-08-02  Jim Meyering  <meyering@ascend.com>
89169
89170         * m4/jm-macros.m4: Add a comment.
89171
89172 1999-08-01  Paul Eggert  <eggert@twinsun.com>
89173
89174         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
89175         <inttypes.h> defines strtoumax as a macro (and not as a
89176         function).
89177
89178 1999-08-01  Paul Eggert  <eggert@twinsun.com>
89179
89180         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
89181         that we can shift, multiply and divide unsigned long long
89182         values; Ultrix cc can't do it.
89183
89184 1999-08-01  Paul Eggert  <eggert@twinsun.com>
89185
89186         * m4/mktime.m4: New file, which is a preview of what should appear
89187         in the next public autoconf release.
89188
89189 1999-08-01  Paul Eggert  <eggert@twinsun.com>
89190
89191         * m4/lfs.m4: Remove this file.
89192         * m4/largefile.m4: New file.  It contains the old contents of
89193         lfs.m4, except that all names with prefix AC_LFS have been
89194         changed to use the prefix AC_SYS_LARGEFILE instead, to be
89195         compatible with future autoconf versions.  Also, some minor m4
89196         quoting problems have been fixed.
89197
89198 1999-08-01  Paul Eggert  <eggert@twinsun.com>
89199
89200         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
89201         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
89202         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
89203         and simplify the shell code.
89204
89205 1999-08-01  Jim Meyering  <meyering@ascend.com>
89206
89207         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
89208         m4.
89209
89210 1999-07-20  Jim Meyering  <meyering@ascend.com>
89211
89212         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
89213
89214 1999-07-15  Jim Meyering  <meyering@ascend.com>
89215
89216         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
89217
89218 1999-05-22  Jim Meyering  <meyering@ascend.com>
89219
89220         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
89221
89222 1999-05-20  Jim Meyering  <meyering@ascend.com>
89223
89224         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
89225         Add a colon after each `then' in case $4 is empty.
89226
89227 1999-05-16  Jim Meyering  <meyering@ascend.com>
89228
89229         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
89230
89231 1999-05-10  Jim Meyering  <meyering@ascend.com>
89232
89233         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
89234
89235         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
89236         AC_FUNC_MKTIME.
89237
89238 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
89239
89240         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
89241
89242 1999-05-04  Paul Eggert  <eggert@twinsun.com>
89243
89244         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
89245         not CPPFLAGS, so that linking works correctly in IRIX.
89246
89247 1999-04-30  Paul Eggert  <eggert@twinsun.com>
89248
89249         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
89250
89251 1999-04-20  Paul Eggert  <eggert@twinsun.com>
89252
89253         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
89254         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
89255         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
89256         jm_AC_TYPE_UNSIGNED_LONG_LONG.
89257         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
89258
89259         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
89260
89261 1999-04-20  Jim Meyering  <meyering@ascend.com>
89262
89263         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
89264         AC_REPLACE xstroull if necessary.  From Paul Eggert.
89265         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
89266
89267 1999-04-18  Jim Meyering  <meyering@ascend.com>
89268
89269         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
89270         * m4/jm-macros.m4: Use it.
89271
89272 1999-04-06  Jim Meyering  <meyering@ascend.com>
89273
89274         * m4/strftime.m4: Remove test for %f.
89275
89276 1999-03-29  Jim Meyering  <meyering@ascend.com>
89277
89278         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
89279         superset of the AC_TYPE_* checks in the textutils, fileutils,
89280         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
89281         AC_TYPE_PID_T.
89282
89283 1999-03-28  Jim Meyering  <meyering@ascend.com>
89284
89285         * m4/jm-macros.m4: Define GNU_PACKAGE here.
89286         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
89287         replaced e.g., in the *.sh files of the sh-utils.
89288
89289 1999-03-20  Jim Meyering  <meyering@ascend.com>
89290
89291         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
89292         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
89293         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
89294
89295 1999-03-19  Jim Meyering  <meyering@ascend.com>
89296
89297         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
89298
89299 1999-03-12  Jim Meyering  <meyering@ascend.com>
89300
89301         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
89302
89303 1999-03-07  Jim Meyering  <meyering@ascend.com>
89304
89305         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
89306         declared.
89307
89308 1999-02-17  Jim Meyering  <meyering@ascend.com>
89309
89310         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
89311         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
89312
89313 1999-02-07  Jim Meyering  <meyering@ascend.com>
89314
89315         * m4/group-member.m4: New file -- extracted from sh-utils'
89316         configure.in.
89317
89318         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
89319         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
89320
89321 1999-02-06  Jim Meyering  <meyering@ascend.com>
89322
89323         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
89324         * m4/fnmatch.m4: Likewise.
89325         * m4/getgroups.m4: Likewise.
89326         * m4/lstat.m4: Likewise.
89327         * m4/malloc.m4: Likewise.
89328         * m4/putenv.m4: Likewise.
89329         * m4/realloc.m4: Likewise.
89330         * m4/regex.m4: Likewise.
89331         * m4/stat.m4: Likewise.
89332         * m4/strftime.m4: Likewise.
89333         Suggestion from Alain Magloire.
89334
89335         * m4/chown.m4: Use `.$ac_objext', not `.o'.
89336         * m4/fnmatch.m4: Likewise.
89337         * m4/getgroups.m4: Likewise.
89338         * m4/getline.m4: Likewise.
89339         * m4/lstat.m4: Likewise.
89340         * m4/malloc.m4: Likewise.
89341         * m4/memcmp.m4: Likewise.
89342         * m4/putenv.m4: Likewise.
89343         * m4/realloc.m4: Likewise.
89344         * m4/regex.m4: Likewise.
89345         * m4/stat.m4: Likewise.
89346         * m4/strftime.m4: Likewise.
89347         Suggestion from Alain Magloire.
89348
89349         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
89350         an argument.
89351
89352         * m4/regex.m4: Add a run-time Test for proper operation of
89353         re_compile_pattern.
89354
89355 1999-01-31  Jim Meyering  <meyering@ascend.com>
89356
89357         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
89358
89359 1999-01-30  Jim Meyering  <meyering@ascend.com>
89360
89361         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
89362
89363         * m4/jm-mktime.m4: Make this a wrapper around the official
89364         AM_FUNC_MKTIME rather than my private copy, now that the official one
89365         is up to date.
89366         * m4/mktime.m4: Remove file.
89367
89368         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
89369         * m4/uptime.m4: Likewise.
89370         * m4/uintmax_t.m4: Likewise.
89371
89372 1999-01-28  Jim Meyering  <meyering@ascend.com>
89373
89374         * m4/jm-macros.m4: Use jm_AFS.
89375         * m4/afs.m4: New file (from fileutils' configure.in).
89376
89377         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
89378         * m4/chown.m4: Likewise.
89379         * m4/d-ino.m4: Likewise.
89380         * m4/d-type.m4: Likewise.
89381         * m4/fnmatch.m4: Likewise.
89382         * m4/getgroups.m4: Likewise.
89383         * m4/gettext.m4: Likewise.
89384         * m4/jm-mktime.m4: Likewise.
89385         * m4/jm-winsz2.m4: Likewise.
89386         * m4/lcmessage.m4: Likewise.
89387         * m4/ls-mntd-fs.m4: Likewise.
89388         * m4/malloc.m4: Likewise.
89389         * m4/memcmp.m4: Likewise.
89390         * m4/putenv.m4: Likewise.
89391         * m4/realloc.m4: Likewise.
89392         * m4/st_mtim.m4: Likewise.
89393         * m4/strftime.m4: Likewise.
89394
89395 1999-01-16  Jim Meyering  <meyering@ascend.com>
89396
89397         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
89398         (ARGMATCH_DIE_DECL): Define.
89399
89400 1999-01-12  Jim Meyering  <meyering@ascend.com>
89401
89402         * m4/Makefile.am.in: Rewrite to avoid using fmt.
89403         Reported by Lars Hecking.
89404
89405 1999-01-10  Jim Meyering  <meyering@ascend.com>
89406
89407         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
89408         gross kludge.
89409         * m4/inttypes_h.m4: Likewise.
89410         * m4/lstat.m4: Likewise.
89411         * m4/malloc.m4: Likewise.
89412         * m4/readdir.m4: Likewise.
89413         * m4/realloc.m4: Likewise.
89414         * m4/st_dm_mode.m4: Likewise.
89415         * m4/stat.m4: Likewise.
89416         * m4/utimbuf.m4: Likewise.
89417         * m4/utimes.m4: Likewise.
89418
89419         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
89420         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
89421         comments in config.h.in are meaningful.
89422
89423         * m4/jm-macros.m4: Require autoconf-2.13 here.
89424
89425         * m4/regex.m4: By default, don't use the included regex.c on systems
89426         with glibc 2.  Suggestion from Uli Drepper.
89427
89428 1999-01-02  Jim Meyering  <meyering@ascend.com>
89429
89430         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
89431
89432 1998-12-18  Jim Meyering  <meyering@ascend.com>
89433
89434         * m4/Makefile.am.in (Makefile.am): Simplify rule.
89435         Based on a suggestion from Lars Hecking.
89436
89437 1998-11-16  Paul Eggert  <eggert@twinsun.com>
89438
89439         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
89440
89441 1998-11-16  Jim Meyering  <meyering@ascend.com>
89442
89443         * m4/lfs.m4: Double-quote the `uname...` expression.
89444
89445 1998-11-14  Jim Meyering  <meyering@ascend.com>
89446
89447         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
89448         * m4/stat.m4: Likewise.
89449
89450 1998-11-03  Jim Meyering  <meyering@ascend.com>
89451
89452         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
89453         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
89454
89455 1998-10-18  Jim Meyering  <meyering@ascend.com>
89456
89457         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
89458
89459 1998-10-17  Jim Meyering  <meyering@ascend.com>
89460
89461         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
89462         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
89463         calls for those previously hard-coded headers.  Instead, take a new
89464         parameter.
89465         (jm_CHECK_DECLARATIONS): Reflect interface change.
89466         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
89467         (jm_CHECK_DECL_LOCALTIME_R): New macro.
89468
89469         * m4/mktime.m4: Test for spring-forward gap before long-running test.
89470
89471 1998-10-14  Jim Meyering  <meyering@ascend.com>
89472
89473         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
89474         instead of "TZ=America/Vancouver".  From Paul Eggert.
89475
89476 1998-10-11  Jim Meyering  <meyering@ascend.com>
89477
89478         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
89479         This adds a test for a recently added compatibility fix for mktime.c.
89480         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
89481
89482 1998-09-27  Jim Meyering  <meyering@ascend.com>
89483
89484         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
89485
89486         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
89487         ../configure.in, including a change from Gordon Matzigkeit to allow
89488         cross-compiling for the Hurd.
89489
89490         * m4/glibc.m4: New file/macro to test for the GNU C Library
89491         versions 1 and 2.  From Gordon Matzigkeit.
89492         Indent.
89493
89494 1998-09-21  Jim Meyering  <meyering@ascend.com>
89495
89496         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
89497
89498 1998-08-18  Paul Eggert  <eggert@twinsun.com>
89499
89500         Port nanosecond-resolution times to UnixWare 2.1.2 and
89501         pedantic Solaris 2.6.
89502
89503         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
89504         AC_STRUCT_ST_MTIM.
89505         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
89506         Generate name of ns member, instead of just 1 or undef.
89507         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
89508
89509 1998-08-15  Jim Meyering  <meyering@ascend.com>
89510
89511         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
89512         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
89513         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
89514         instead of jm_TYPE_SSIZE_T.
89515
89516 1998-08-12  Jim Meyering  <meyering@ascend.com>
89517
89518         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
89519
89520 1998-08-02  Jim Meyering  <meyering@ascend.com>
89521
89522         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
89523         in acconfig.h manually.
89524
89525 1998-07-31  Paul Eggert  <eggert@twinsun.com>
89526
89527         * m4/st_mtim.m4: New file.
89528
89529 1998-07-28  Jim Meyering  <meyering@ascend.com>
89530
89531         * m4/utimes.m4: Undef stat.
89532
89533 1998-07-25  Jim Meyering  <meyering@ascend.com>
89534
89535         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
89536         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
89537
89538 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
89539
89540         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
89541         uid and gid actually remain unchanged.
89542
89543 1998-07-07  Jim Meyering  <meyering@ascend.com>
89544
89545         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
89546
89547 1998-07-04  Jim Meyering  <meyering@ascend.com>
89548
89549         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
89550         to prove that this macro can be used in packages without regex.c.
89551
89552 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
89553
89554         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
89555         is to be used.
89556
89557 1998-07-03  Jim Meyering  <meyering@ascend.com>
89558
89559         * m4/gettext.m4: Add -lintl if it's found to be necessary.
89560
89561         * m4/gettext.m4: New file -- from gettext-0.10.35.
89562         * m4/lcmessage.m4: Likewise.
89563         * m4/progtest.m4: Likewise.
89564
89565         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
89566         * m4/jm-macros.m4: Require the new macro.
89567
89568 1998-06-29  Jim Meyering  <meyering@ascend.com>
89569
89570         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
89571         for the definition of NGROUPS (used in a system header included
89572         by sys/mount.h).
89573
89574 1998-06-28  Jim Meyering  <meyering@ascend.com>
89575
89576         * m4/ls-mntd-fs.m4: New file.
89577         * m4/fstypename.m4: New file.
89578
89579         * m4/jm-macros.m4: Require the new macro.
89580         * m4/jm-glibc-io.m4: New file.
89581
89582 1998-05-19  Jim Meyering  <meyering@ascend.com>
89583
89584         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
89585         * m4/lchown.m4: New file.
89586
89587         * m4/Makefile.am.in: New file.
89588         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
89589
89590 1998-05-14  Jim Meyering  <meyering@ascend.com>
89591
89592         * m4/Makefile.am (EXTRA_DIST): Add them.
89593         * m4/jm-macros.m4: New file.
89594         * m4/utimbuf.m4: New file.
89595
89596 1998-05-12  Jim Meyering  <meyering@ascend.com>
89597
89598         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
89599
89600 1998-05-11  Jim Meyering  <meyering@ascend.com>
89601
89602         * m4/isc-posix.m4: New file.
89603
89604 1998-05-10  Jim Meyering  <meyering@ascend.com>
89605
89606         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
89607
89608 1998-05-09  Jim Meyering  <meyering@ascend.com>
89609
89610         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
89611         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
89612         with automake.
89613
89614         * m4/ssize_t.m4: New file.
89615         * m4/mktime.m4: Remove file -- the new automake has this now.
89616
89617 1998-04-26  Jim Meyering  <meyering@ascend.com>
89618
89619         * m4/assert.m4: New file.
89620         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
89621
89622 1998-04-05  Jim Meyering  <meyering@ascend.com>
89623
89624         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
89625         (jm_PREREQ): Use it here.
89626
89627 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
89628
89629         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
89630         in acconfig.h.
89631
89632 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
89633
89634         * m4/prereq.m4: New file.
89635         * m4/error.m4: New file.
89636         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
89637
89638 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
89639
89640         * m4/getline.m4: Don't set am_cv_func_working_getline before the
89641         cache-check for the same variable -- that defeated the purpose of
89642         the test; the test program was never run.  This was a problem only
89643         on systems with losing getline functions -- HP-UX 10.20 is one.
89644         Reported by Bjorn Helgaas.
89645
89646 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
89647
89648         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
89649
89650 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
89651
89652         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
89653
89654         * m4/const.m4: New file.  Use an initializer in this declaration
89655         typedef int charset[2]; const charset x;
89656         Reported by Bob Glickstein.
89657
89658 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
89659
89660         * m4/chown.m4: Fix reversed types on -1 args to chown.
89661         From Kaveh Ghazi.
89662
89663 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
89664
89665         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
89666         Add lseek and memchr.
89667
89668         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
89669         T.E.Dickey <dickey@clark.net> said that some older preprocessors
89670         have a 20-character limit on names.
89671
89672 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
89673
89674         * m4/inttypes_h.m4: New file.
89675         * m4/uintmax_t.m4: New file.
89676         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
89677
89678
89679         -----
89680
89681         Local Variables:
89682         coding: utf-8
89683         End:
89684
89685         Copyright (C) 1997-2011 Free Software Foundation, Inc.
89686
89687         Copying and distribution of this file, with or without
89688         modification, are permitted provided the copyright notice
89689         and this notice are preserved.