test-exclude2.sh, test-exclude5.sh: fail if test-exclude fails
[gnulib.git] / ChangeLog
1 2011-11-12  Jim Meyering  <meyering@redhat.com>
2
3         test-exclude2.sh, test-exclude5.sh: fail if test-exclude fails
4         These shell scripts ignored failure of the binary test-exclude,
5         so making the latter return 77 didn't cause them to be skipped.
6         * tests/test-exclude5.sh: Exit with test-exclude's error status
7         when that program fails.  Revamp to use init.sh.
8         * tests/test-exclude2.sh: Likewise.
9
10         test-exclude: fix a typo
11         * tests/test-exclude.c (main): Test for "leading_dir", not "leading-dir".
12
13 2011-11-11  Bruno Haible  <bruno@clisp.org>
14
15         obstack: Fix compilation error on MSVC 9.
16         * lib/obstack.c (print_and_abort): Declare with _Noreturn specifier.
17
18 2011-11-11  Jim Meyering  <meyering@redhat.com>
19
20         test-exclude: skip tests rather than failing on deficient systems
21         * tests/test-exclude.c (main): Skip tests that use FNM_CASEFOLD
22         and FNM_LEADING_DIR on systems that lack the definitions.  This affects
23         at least Solaris 9.  Reported and diagnosed by Dagobert Michelsen in
24         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/3947/focus=3950
25
26 2011-11-10  Bruno Haible  <bruno@clisp.org>
27
28         ptsname_r test: Avoid gcc warning on glibc systems.
29         * tests/test-ptsname_r.c (null_ptr): New function.
30         (test_errors): Use it.
31
32 2011-11-10  Bruno Haible  <bruno@clisp.org>
33
34         ptsname_r: Avoid compilation error on OSF/1 5.1.
35         * lib/stdlib.in.h (ptsname_r): Override if REPLACE_PTSNAME_R is 1.
36         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_PTSNAME_R.
37         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Set REPLACE_PTSNAME_R if the
38         function is not declared or incompatibly declared.
39         * modules/stdlib (Makefile.am): Substitute REPLACE_PTSNAME_R.
40         * modules/ptsname_r (Depends-on, configure.ac): Update.
41         * doc/glibc-functions/ptsname_r.texi: Mention the OSF/1 problems.
42
43 2011-11-10  Bruno Haible  <bruno@clisp.org>
44
45         fstatat: Make cross-compilation guess succeed everywhere except on AIX.
46         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Require AC_CANONICAL_HOST.
47         When cross-compiling, guess yes on all platforms except AIX.
48         Reported by Ludovic Courtès <ludo@gnu.org>.
49
50 2011-11-09  Bruno Haible  <bruno@clisp.org>
51
52         ptsname_r tests: Fix bugs.
53         * tests/test-ptsname_r.c (test_errors): Change return type to 'void'.
54         Fix ptsname_r calls. Reduce loop rounds to a reasonable amount.
55
56 2011-11-09  Paul Eggert  <eggert@cs.ucla.edu>
57
58         fstatat: work with cross-compilation
59         Problem reported by Ludovic Courtès in
60         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00136.html>.
61         * m4/fstatat.m4 (gl_FUNC_FSTATAT): When cross-compiling, report
62         "cross-compiling" and assume the bug is present.  Replace
63         FSTATAT_ZERO_FLAG_BROKEN with HAVE_WORKING_FSTATAT_ZERO_FLAG with
64         an inverted sense, to be more conservative about our assumptions.
65         * lib/fstatat.c (rpl_fstatat): Adjust to renamed macro.
66
67 2011-11-09  Bruno Haible  <bruno@clisp.org>
68
69         Improve MODULES.html output.
70         * modules/mkfifoat (Description): Use the word "function".
71         * modules/readlinkat (Description): Likewise.
72         * modules/symlinkat (Description): Likewise.
73
74 2011-11-09  Eric Blake  <eblake@redhat.com>
75
76         ptsname_r-tests: new test module
77         * modules/ptsname_r-tests: New module.
78         * tests/test-ptsname_r.c: New file.
79
80         ptsname_r: new module
81         * modules/ptsname_r: New module.
82         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): New file.
83         * lib/ptsname.c (__ptsname_r): Split...
84         * lib/ptsname_r.c: ...into new file.
85         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
86         (gl_STDLIB_H_DEFAULTS): Set witness defaults.
87         * modules/stdlib (Makefile.am): Substitute witnesses.
88         * lib/stdlib.in.h (ptsname_r): Declare it.
89         * doc/glibc-functions/ptsname_r.texi (ptsname_r): Document it.
90         * MODULES.html.sh (Misc): Likewise.
91         * modules/ptsname (Depends-on): Alter dependency.
92         * doc/posix-functions/ptsname.texi (ptsname): Mention new module.
93
94 2011-11-09  Jim Meyering  <meyering@redhat.com>
95
96         announce-gen: be more concise when there's only one URL+tarball
97         * build-aux/announce-gen (get_tool_versions): When you distribute
98         only one type of tarball, combine the first two "Here are..."
99         sections and make the key-checking grammar independent of
100         how many tarballs there are.
101
102 2011-11-09  Eric Blake  <eblake@redhat.com>
103
104         openpty: provide a stub on mingw
105         * lib/pty.in.h (includes): Provide forward declarations.
106         * lib/openpty.c (openpty) [mingw]: Provide ENOSYS stub.
107
108         raise: fix mingw handling of SIGPIPE
109         * lib/sigprocmask.c (_gl_raise_SIGPIPE): Provide a return value.
110
111 2011-11-08  Bruno Haible  <bruno@clisp.org>
112
113         More conditional dependencies.
114         * modules/faccessat (Depends-on): Add conditions.
115         * modules/fchmodat (Depends-on): Likewise.
116         * modules/fchownat (Depends-on): Likewise.
117         * modules/fstatat (Depends-on): Likewise.
118         * modules/mkfifoat (Depends-on): Likewise.
119         * modules/readlinkat (Depends-on): Likewise.
120         * modules/symlinkat (Depends-on): Likewise.
121         * modules/unlinkat (Depends-on): Likewise.
122         * modules/utimensat (Depends-on): Likewise.
123         * modules/mkdirat (Depends-on): Add sys_stat. Add conditions.
124         * modules/linkat (Depends-on): Refine the conditions.
125         * modules/renameat (Depends-on): Likewise.
126
127 2011-11-08  Bruno Haible  <bruno@clisp.org>
128
129         faccessat: Move AC_LIBOBJ invocation to module description.
130         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT): New macro.
131         (gl_FUNC_FACESSAT): Don't test for access() here. Move AC_LIBOBJ
132         invocation from here...
133         * modules/faccessat (configure.ac): ... to here. Invoke
134         gl_PREREQ_FACCESSAT.
135
136 2011-11-08  Bruno Haible  <bruno@clisp.org>
137
138         faccessat: Simplify autoconf macro.
139         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Don't require gl_FUNC_OPENAT,
140         gl_FUNC_EUIDACCESS.
141
142 2011-11-08  Bruno Haible  <bruno@clisp.org>
143
144         renameat: Fix dependencies.
145         * modules/renameat (Depends-on): Add stdbool.
146
147 2011-11-08  Bruno Haible  <bruno@clisp.org>
148
149         mkfifoat: Fix module description.
150         * modules/mkfifoat (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR,
151         not gl_UNISTD_MODULE_INDICATOR.
152
153 2011-11-08  Bruno Haible  <bruno@clisp.org>
154
155         fstatat: Remove unused dependency.
156         * modules/fstatat (Depends-on): Remove fstat.
157
158 2011-11-08  Simon Josefsson  <simon@josefsson.org>
159
160         GNUmakefile: behave when Makefile is missing.
161         * top/GNUmakefile: Always initialize _build-aux and _autoreconf.
162
163 2011-11-08  Bruno Haible  <bruno@clisp.org>
164
165         openat: Conditionalize dependencies.
166         * lib/openat.c: Reduce the scope of some #includes.
167         * modules/openat (Depends-on): Add conditions.
168
169 2011-11-07  Jim Meyering  <meyering@redhat.com>
170
171         maint.mk: extract GPG key ID without using a temporary file
172         * top/maint.mk (gpg_key_ID): Extract GPG key ID from signed tag, but
173         without using a temporary file.  Based on a suggestion from Werner Koch
174         in http://thread.gmane.org/gmane.comp.encryption.gpg.devel/16496
175
176 2011-11-07  Eric Blake  <eblake@redhat.com>
177
178         grantpt: fix typo
179         * lib/stdlib.in.h (grantpt): Check correct function.
180
181         maint.mk: silence new syntax check
182         * top/maint.mk (sc_prohibit_dirent_without_use): Add missing @.
183
184 2011-11-06  Bruno Haible  <bruno@clisp.org>
185
186         Doc about floating-point and math API.
187         * doc/posix-headers/float.texi: Mention problem with FLT_ROUNDS.
188         * doc/posix-headers/math.texi: Mention problem with math_errhandling.
189
190 2011-11-06  Bruno Haible  <bruno@clisp.org>
191
192         stdalign tests: Skip the test when compiled by Sun C.
193         * tests/test-stdalign.c (main): Skip the test on Sun C.
194
195 2011-11-06  Bruno Haible  <bruno@clisp.org>
196
197         ansi-c++-opt: Complete the 2011-06-05 change.
198         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
199         does not support namespaces, set the variable to "no", not to ":".
200
201 2011-11-06  Paul Eggert  <eggert@cs.ucla.edu>
202
203         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Sun review ID.
204
205 2011-11-06  Bruno Haible  <bruno@clisp.org>
206
207         copysignl: Fix result for zero argument on HP-UX 11 with HP C.
208         * lib/copysignl.c (compute_minus_zerol) [HP-UX]: New function.
209         (minus_zerol) [HP-UX]: New macro.
210         (unary_minus) [HP-UX]: New function.
211         (copysignl) [HP-UX]: Use unary_minus function.
212
213 2011-11-06  Bruno Haible  <bruno@clisp.org>
214
215         ldexp, ldexpf, ldexpl: Enhance tests.
216         * tests/test-ldexp.h: New file, combining code from tests/test-ldexp.c
217         and tests/test-ldexpl.c.
218         * tests/test-ldexpl.c: (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO,
219         LDEXP, MIN_EXP, MAX_EXP): New macros.
220         Include test-ldexp.h.
221         (main): Just call test_function.
222         * tests/test-ldexp.c: Include float.h, isnand-nolibm.h, minus-zero.h,
223         infinity.h, nan.h.
224         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
225         MAX_EXP): New macros.
226         Include test-ldexp.h.
227         (x, y): Remove variables.
228         (main): Just call test_function.
229         * tests/test-ldexpf.c: Include float.h, isnanf-nolibm.h, minus-zero.h,
230         infinity.h, nan.h.
231         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
232         MAX_EXP): New macros.
233         Include test-ldexp.h.
234         (x, y): Remove variables.
235         (main): Just call test_function.
236         * modules/ldexpl-tests (Files): Add tests/test-ldexp.h.
237         * modules/ldexp-tests (Files): Add tests/test-ldexp.h,
238         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
239         (Depends-on): Add isnand-nolibm, signbit, float.
240         * modules/ldexpf-tests (Files): Add tests/test-ldexp.h,
241         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
242         (Depends-on): Add isnanf-nolibm, signbit, float.
243
244 2011-11-06  Bruno Haible  <bruno@clisp.org>
245
246         math tests: Cosmetics.
247         * tests/test-math-c++.cc: Reorder declarations.
248
249 2011-11-05  Bruno Haible  <bruno@clisp.org>
250
251         fma*: Simplify test.
252         * tests/test-fma2.h (FORGIVE_GLIBC_BUG): Remove macro.
253         (test_function): Remove all if (FORGIVE_GLIBC_BUG) statements.
254
255         Tests for module 'fmal'.
256         * modules/fmal-tests: New file.
257         * tests/test-fmal1.c: New file.
258         * tests/test-fmal2.c: New file.
259
260         New module 'fmal'.
261         * lib/math.in.h (fmal): New declaration.
262         * lib/fmal.c: New file.
263         * m4/fmal.m4: New file.
264         * m4/math_h.m4 (gl_MATH_H): Test whethern fmal is declared.
265         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAL, HAVE_FMAL, REPLACE_FMAL.
266         * modules/math (Makefile.am): Substitute GNULIB_FMAL, HAVE_FMAL,
267         REPLACE_FMAL.
268         * modules/fmal: New file.
269         * doc/posix-functions/fmal.texi: Mention the new module and the various
270         bugs.
271
272         Tests for module 'fmaf'.
273         * modules/fmaf-tests: New file.
274         * tests/test-fmaf1.c: New file.
275         * tests/test-fmaf2.c: New file.
276
277         New module 'fmaf'.
278         * lib/math.in.h (fmaf): New declaration.
279         * lib/fmaf.c: New file.
280         * m4/fmaf.m4: New file.
281         * m4/math_h.m4 (gl_MATH_H): Test whethern fmaf is declared.
282         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAF, HAVE_FMAF, REPLACE_FMAF.
283         * modules/math (Makefile.am): Substitute GNULIB_FMAF, HAVE_FMAF,
284         REPLACE_FMAF.
285         * modules/fmaf: New file.
286         * doc/posix-functions/fmaf.texi: Mention the new module and the various
287         bugs.
288
289         Tests for module 'fma'.
290         * modules/fma-tests: New file.
291         * tests/test-fma1.c: New file.
292         * tests/test-fma1.h: New file.
293         * tests/test-fma2.c: New file.
294         * tests/test-fma2.h: New file.
295
296         New module 'fma'.
297         * lib/math.in.h (fma): New declaration.
298         * lib/fma.c: New file.
299         * m4/fma.m4: New file.
300         * m4/fegetround.m4: New file.
301         * m4/math_h.m4 (gl_MATH_H): Test whethern fma is declared.
302         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMA, HAVE_FMA, REPLACE_FMA.
303         * modules/math (Makefile.am): Substitute GNULIB_FMA, HAVE_FMA,
304         REPLACE_FMA.
305         * modules/fma: New file.
306         * doc/posix-functions/fma.texi: Mention the new module and the various
307         bugs.
308
309         Extend gl_MATHFUNC.
310         * m4/mathfunc.m4 (gl_MATHFUNC): Accept an 4th parameter of INCLUDES.
311         Support 'void' as argument type.
312         * m4/rint.m4 (gl_FUNC_RINT): Update gl_MATHFUNC invocation.
313
314 2011-11-05  Jim Meyering  <meyering@redhat.com>
315
316         maint.mk: also prohibit inclusion of dirent.h without use
317         * top/maint.mk (sc_prohibit_dirent_without_use): New rule.
318
319 2011-11-05  Bruno Haible  <bruno@clisp.org>
320
321         ldexpl tests: Avoid test failure on MSVC 9.
322         * tests/test-ldexpl.c (main): Use a temporary variable for the expected
323         value. Needed in order to enforce the conversion from a value greater
324         than LDBL_MAX to Infinity.
325
326 2011-11-05  Bruno Haible  <bruno@clisp.org>
327
328         New modules 'at-internal', 'openat-h', split off from module 'openat'.
329         * modules/at-internal: New file, extracted from modules/openat.
330         * modules/openat-h: New file.
331         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
332         invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
333         * modules/openat (Description): Add reference to POSIX function.
334         (Files): Remove lib/openat.h, lib/openat-proc.c.
335         (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
336         intprops, unistd.
337         (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
338         gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
339         gl_FCNTL_MODULE_INDICATOR.
340         (Include): Remove unistd.h, openat.h.
341         * modules/areadlinkat (Files): Add lib/at-func.c.
342         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
343         openat-die, openat-h, save-cwd.
344         * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
345         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
346         openat-die, openat-h, save-cwd, unistd.
347         * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
348         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
349         openat-h, save-cwd. Remove fcntl-h, openat.
350         * modules/fchmodat (Files): Remove lib/openat.h.
351         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
352         openat, stdbool, unistd.
353         * modules/fchownat (Files): Remove lib/openat.h.
354         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
355         openat, stdbool, sys_stat.
356         * modules/fdopendir (Files): Remove lib/openat-priv.h,
357         lib/openat-proc.c.
358         (Depends-on): Add at-internal.
359         (condigure.ac): Remove AC_LIBOBJ of openat-proc.
360         * modules/fstatat (Files): Remove lib/openat.h.
361         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
362         stdbool, unistd.
363         * modules/fts (Depends-on): Add openat-h.
364         * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
365         openat.
366         * modules/mkdirat (Files): Remove lib/openat.h.
367         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
368         openat, stdbool, sys_stat.
369         * modules/mkfifoat (Files): Add lib/at-func.c.
370         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
371         openat-h, save-cwd. Remove fcntl-h, openat.
372         * modules/openat-die (Depends-on): Add openat-h. Remove openat.
373         * modules/readlinkat (Files): Add lib/at-func.c.
374         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
375         openat-h, save-cwd. Remove fcntl-h, openat.
376         * modules/renameat (Depends-on): Add at-internal, openat-h. Remove
377         openat.
378         * modules/selinux-at (Files): Add lib/at-func.c.
379         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
380         fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
381         * modules/symlinkat (Files): Add lib/at-func.c.
382         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
383         openat-h, save-cwd. Remove fcntl-h, openat.
384         * modules/unlinkat (Files): Remove lib/openat.h.
385         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
386         stdbool.
387         * modules/utimensat (Files): Add lib/at-func.c.
388         (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
389         openat-die, openat-h, save-cwd.
390         * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
391         * modules/fdutimensat-tests (Depends-on): Add openat.
392         * modules/fstatat-tests (Depends-on): Add openat-h.
393         * modules/readlinkat-tests (Depends-on): Add openat.
394         * modules/symlinkat-tests (Depends-on): Add openat.
395
396 2011-11-05  Bruno Haible  <bruno@clisp.org>
397
398         openat: Include <stdbool.h>.
399         * lib/openat.c: Include <stdbool.h>.
400
401 2011-11-04  Bruno Haible  <bruno@clisp.org>
402
403         fchownat, renameat, unlinkat: Fix dependencies.
404         * modules/fchownat (Depends-on): Add fstatat.
405         * modules/renameat (Depends-on): Likewise.
406         * modules/unlinkat (Depends-on): Likewise.
407
408 2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>
409
410         openat: remove direct dependency on dirent
411         * lib/openat.h: Don't include <dirent.h>; it's no longer needed,
412         and hasn't been needed ever since fdopendir was split into its own
413         module on 2009-08-31.
414         * modules/openat (Depends-on): Remove dirent.
415
416 2011-11-04  Bruno Haible  <bruno@clisp.org>
417
418         renameat: Optimize code size.
419         * modules/renameat (configure.ac): Don't compile at-func2.c if
420         REPLACE_RENAMEAT is 1.
421
422 2011-11-04  Bruno Haible  <bruno@clisp.org>
423
424         openat tests: Fix file list.
425         * modules/openat-tests (Files): Add tests/test-open.h.
426
427 2011-11-04  Bruno Haible  <bruno@clisp.org>
428
429         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
430         * modules/fchmodat (Depends-on): Add openat-die.
431         * modules/fchownat (Depends-on): Likewise.
432         * modules/linkat (Depends-on): Likewise.
433         * modules/renameat (Depends-on): Likewise.
434         * modules/openat (Depends-on): Add dirent.
435
436 2011-11-04  Jim Meyering  <meyering@redhat.com>
437
438         at-func*.c: fix comments
439         * lib/at-func2.c: Correct/improve first-line comment.
440         * lib/at-func.c: Correct grammar in first-line comment.
441
442 2011-11-04  Bruno Haible  <bruno@clisp.org>
443
444         New module 'mkdirat', split off from module 'openat'.
445         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
446         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
447         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
448         * modules/mkdirat: New file, extracted from modules/openat.
449         * modules/openat (Files): Remove lib/mkdirat.c.
450         (Depends-on): Remove mkdir.
451         (configure.ac): Remove AC_LIBOBJ of mkdirat.
452         (Include): Remove <sys/stat.h>.
453         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
454         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
455         tests/test-mkdir.h.
456         (Depends-on): Remove ignore-value.
457         (Makefile.am): Remove rules for test-mkdirat.
458         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
459         of module 'openat'.
460         * NEWS: Mention the change.
461
462 2011-11-04  Bruno Haible  <bruno@clisp.org>
463
464         closedir: Avoid warning on mingw.
465         * lib/closedir.c: Include <unistd.h>.
466
467 2011-11-04  Bruno Haible  <bruno@clisp.org>
468
469         New module 'fstatat', split off from module 'openat'.
470         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
471         defined.
472         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
473         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
474         gl_FUNC_FSTATAT.
475         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
476         * modules/fstatat: New file, extracted from modules/openat.
477         * modules/openat (Files): Remove lib/fstatat.c.
478         (Depends-on): Remove lstat.
479         (configure.ac): Remove AC_LIBOBJ of fstatat.
480         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
481         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
482         tests/test-lstat.h, tests/test-stat.h.
483         (Depends-on): Remove getcwd-lgpl.
484         (Makefile.am): Remove rules for test-fstatat.
485         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
486         of module 'openat'.
487         * NEWS: Mention the change.
488         * modules/getcwd (Depends-on): Add fstatat.
489         * modules/linkat (Depends-on): Likewise.
490         * modules/mkfifoat-tests (Depends-on): Likewise.
491         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
492
493 2011-11-03  Bruno Haible  <bruno@clisp.org>
494
495         New module 'unlinkat', split off from module 'openat'.
496         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
497         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
498         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
499         * modules/unlinkat: New file, extracted from modules/openat. Correct
500         the dependency conditions.
501         * modules/openat (Files): Remove lib/unlinkat.c.
502         (Depends-on): Remove rmdir, unlink.
503         (configure.ac): Remove AC_LIBOBJ of unlinkat.
504         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
505         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
506         tests/test-rmdir.h, tests/test-unlink.h.
507         (Depends-on): Remove unlinkdir.
508         (Makefile.am): Remove rules for test-unlinkat.
509         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
510         of module 'openat'.
511         * NEWS: Mention the change.
512         * modules/linkat-tests (Depends-on): Add unlinkat.
513         * modules/mkfifoat-tests (Depends-on): Likewise.
514         * modules/readlinkat-tests (Depends-on): Likewise.
515
516 2011-11-02  Bruno Haible  <bruno@clisp.org>
517
518         New module 'fchmodat', split off from module 'openat'.
519         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
520         defined.
521         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
522         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
523         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
524         * modules/fchmodat: New file, extracted from modules/openat.
525         * modules/openat (Files): Remove lib/fchmodat.c.
526         (configure.ac): Remove AC_LIBOBJ of fchmodat.
527         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
528         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
529         (Makefile.am): Remove rules for test-fchmodat.
530         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
531         of module 'openat'.
532         * NEWS: Mention the change.
533
534 2011-11-02  Jim Meyering  <meyering@redhat.com>
535
536         putenv: indent #definition of "environ" to placate cppi
537         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
538
539         gitlog-to-changelog: provide a ChangeLog-repair mechanism
540         Git logs are often treated as immutable, because editing them
541         changes the SHA1 checksums of all descendants.  Thus, errors in
542         git logs tend to stay there forever.  However, when we generate
543         a ChangeLog file -- typically for distribution -- from that git log,
544         we can actually make corrections in the generated file.  The key
545         lies in recording in machine-readable/applicable form the desired
546         corrections.  See --help for description and an example.
547         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
548         (usage): Describe it; alphabetize option descriptions.
549         (main): Honor the new option, carefully.
550
551 2011-11-01  Jim Meyering  <meyering@redhat.com>
552
553         gitlog-to-changelog: avoid an infloop
554         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
555         that ends up being empty.
556
557 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
558
559         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
560         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
561         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
562         contains (possibly-quoted) backslashes.  This should avoid
563         all-too-common shell bugs if COMPLICATED contains backslashes in
564         the "wrong" places.  Reported by David Evans in
565         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00013.html>.
566         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
567         because we want ASCII ranges.  Is there some reason we don't use
568         the C locale everywhere in this script?
569         (func_module, top level): Avoid unwanted pathname expansion when
570         $repo_url_prefix or $repo_url_suffix_repl contain shell
571         metacharacters like '?' and '*'.
572
573 2011-11-01  Bruno Haible  <bruno@clisp.org>
574
575         fchownat: Improve description.
576         * modules/fchownat (Description): Add link to function.
577
578 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
579
580         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
581         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
582         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00006.html>.
583         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
584
585 2011-11-01  Bruno Haible  <bruno@clisp.org>
586
587         alignof: Avoid collision with stdalign module.
588         * lib/alignof.h (alignof): Remove macro.
589         * NEWS: Mention the change.
590         Reported by Paul Eggert.
591
592 2011-11-01  Bruno Haible  <bruno@clisp.org>
593
594         New module 'fchownat', split off from module 'openat'.
595         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
596         defined.
597         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
598         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
599         invoke gl_FUNC_FCHOWNAT.
600         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
601         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
602         * modules/fchownat: New file, extracted from modules/openat.
603         * modules/openat (Files): Remove lib/fchownat.c.
604         (Depends-on): Remove lchown.
605         (configure.ac): Remove AC_LIBOBJ of fchownat.
606         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
607         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
608         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
609         (Depends-on): Remove mgetgroups, usleep, stat-time.
610         (configure.ac): Remove test for getegid.
611         (Makefile.am): Remove rules for test-fchownat.
612         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
613         of module 'openat'.
614         * NEWS: Mention the change.
615
616 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
617
618         stdalign: port better to MSVC and to Sun C 5.11
619         This fixes some of the problems reported by Bruno Haible in
620         <http://lists.gnu.org/archive/html/bug-gnulib/2011-10/msg00300.html>.
621         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
622         shortcomings of MSVC and of Sun C 5.11.
623         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
624         around __declspec arg.
625         * modules/stdalign-tests (Files): Add tests/macros.h.
626         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
627         Include macros.h, for ASSERT.
628         (DECLARE_ALIGNED): Remove.
629         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
630         to catch bug), and to 1 if not (simplifies the rest of the code).
631         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
632         (CHECK_AUTO): Remove.
633         (CHECK_ALIGNED): Check only the alignment of the static vars,
634         since auto var alignment isn't supported by Sun C 5.11.
635         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
636         ASSERT failures are easier to diagnose.
637
638 2011-10-31  Bruno Haible  <bruno@clisp.org>
639
640         doc about some IRIX 5.3 problems.
641         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
642         on IRIX 5.3.
643         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
644         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
645         5.3.
646         * doc/posix-functions/grantpt.texi: Likewise.
647         * doc/posix-functions/unlockpt.texi: Likewise.
648         * doc/posix-functions/lgamma.texi: Likewise.
649         * doc/posix-functions/nextafter.texi: Likewise.
650         * doc/posix-functions/remainder.texi: Likewise.
651         * doc/posix-functions/select.texi: Mention misplaced declaration on
652         IRIX 5.3.
653         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
654
655 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
656
657         gitlog-to-changelog: fix git-log invocation.
658         git-log mishandles date strings before 1970-01-01 UTC, and there is
659         no use to specify --since=1970-01-01 by default anyway.
660         * build-aux/gitlog-to-changelog: By default, when no --since option
661         was given, do not specify explicit --since option to git-log.
662
663 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
664
665         gitlog-to-changelog: new option --append-dot.
666         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
667         first non-blank line of each commit message terminated with a dot.
668
669 2011-10-30  Bruno Haible  <bruno@clisp.org>
670
671         ffsl, ffsll: Avoid compilation error due to 'restrict'.
672         * lib/ffsl.h: Include <config.h>.
673         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
674
675 2011-10-30  Jim Meyering  <meyering@redhat.com>
676
677         GNUmakefile: reenable "make syntax-check" for most projects
678         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
679         build-aux variable", "syntax-check" would do nothing but succeed with
680         the "No version control files detected..." diagnostic (unless you
681         happened to override _build-aux via cfg.mk).
682         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
683         to precede inclusion of maint.mk.  Otherwise, these variables would
684         be used undefined in any project that does not override the default.
685
686 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
687
688         gitlog-to-changelog: treat a message with only blank lines as empty.
689         * build-aux/gitlog-to-changelog: Move the code that removes leading and
690         trailing blank lines before the code that issues a warning about an
691         empty commit message.
692
693 2011-10-30  Jim Meyering  <meyering@redhat.com>
694
695         test-parse-datetime.c: avoid new DST-related false positive test failure
696         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
697         based on the time/date we'll convert, not the current time.
698         Otherwise, the moment we cross a DST boundary like today's in
699         Europe, (CEST to CET), that offset ends up being one hour off.
700
701 2011-10-27  Bruno Haible  <bruno@clisp.org>
702
703         fstat: Tweak documentation.
704         * modules/fstat (Description): More precise description.
705
706 2011-10-27  Bruno Haible  <bruno@clisp.org>
707
708         Update documentation regarding 'largefile' module.
709         * doc/posix-functions/fstat.texi: Tweak wording.
710         * doc/posix-functions/opendir.texi: Mention that the module fixes the
711         problems with huge directories and/or small ino_t types.
712         * doc/posix-functions/readdir.texi: Likewise.
713         * doc/posix-functions/rewinddir.texi: Likewise.
714
715 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
716
717         maint.mk: don't maintain a second build-aux variable.
718         * maint.mk (build_aux): Removed.  The maintainer-makefile module
719         depends on GNUmakefile, which already maintains a cfg.mk
720         overridable $(_build-aux) for projects with a non-standard
721         build-aux directory location, although without the $(srcdir)
722         prefix.  Use that variable consistently instead of introducing a
723         second one.  Adjust all call sites.
724
725 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
726
727         Add stdalign module and use it in other modules.
728         This is based on a previous proposal by Bruno Haible
729         <https://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00226.html>.
730
731         stdalign: new module
732         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
733         * modules/stdalign: New files.
734         * MODULES.html.sh (c1x_core_properties): Add stdalign.
735         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
736
737         stdalign-tests: new module
738         * modules/stdalign-tests, tests/test-stdalign.c: New files.
739
740         argp: use stdalign
741         * lib/argp-parse.c: Include <stdalign.h>.
742         (alignof): Remove.
743         * modules/argp (Depends-on): Add stdalign.
744
745         crypto libraries: use stdalign
746         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
747         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
748         Do not include <stdlib.h> twice, in md4.c.
749         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
750         because we are accessing a pointer's bit-pattern, not a size.
751         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
752         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
753         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
754         * modules/crypto/sha512: Likewise.
755
756         sys_socket: use stdalign, not alignof
757         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
758         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
759
760 2011-10-27  Bruno Haible  <bruno@clisp.org>
761
762         raise test: Avoid a test failure on Linux/MIPS.
763         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
764         because 99 is a valid signal on Linux/MIPS.
765
766 2011-10-27  Bruno Haible  <bruno@clisp.org>
767
768         nonblocking tests: Fix test failure on Linux/MIPS.
769         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
770         Set to 270000.
771
772 2011-10-27  Bruno Haible  <bruno@clisp.org>
773
774         utimensat: Work around problem on Linux/hppa.
775         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
776         values.
777         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
778
779 2011-10-25  Jim Meyering  <meyering@redhat.com>
780
781         maint.mk: fix a bug in sc_prohibit_stddef_without_use
782         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
783         after symbols like NULL, size_t, etc.
784         Reported by Alfred M. Szmidt.
785
786         maint.mk: exempt ENODATA from a syntax-check rule
787         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
788         from the sc_prohibit_always-defined_macros syntax-check rule.
789         Add a comment.  See this for more details:
790         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
791
792 2011-10-23  Jim Meyering  <meyering@redhat.com>
793
794         fts: close parent dir FD before returning from post-traversal fts_read
795         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
796         unlink A, even though an FD open on A remained.  This is suboptimal
797         (holding a file descriptor open longer than needed), but otherwise not
798         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
799         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
800         that represents a real problem: it causes the removal of A to fail
801         with e.g., "rm: cannot remove `A': Device or resource busy"
802
803         fts visits each directory twice and keeps a cache (fts_fd_ring) of
804         directory file descriptors.  After completing the final, FTS_DP,
805         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
806         cache, but then proceeded to add a new FD to it via the subsequent
807         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
808         final file descriptor would be closed only via fts_close's call to
809         fd_ring_clear.  Now, it is usually closed earlier, via the final
810         FTS_DP-returning fts_read call.
811         * lib/fts.c (restore_initial_cwd): New function, converted from
812         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
813         Update callers.
814         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
815         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
816
817 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
818             Bruno Haible  <bruno@clisp.org>
819             Jim Meyering  <jim@meyering.net>
820
821         readme-release: improve safety of release prep instructions.
822         * README-release: Don't git pull all branches when only master
823         is needed for the release process.
824         Run make maintainer-clean before changing trees and merging.
825         Don't try to run ./configure right after git pull in case files
826         that influence the bootstrap process have changed, move the
827         ./configure step to after running ./bootstrap.
828         Don't bootstrap "one last time"... it's the first time!
829
830 2011-10-22  Bruno Haible  <bruno@clisp.org>
831
832         errno, strerror-override: Support for MSVC 10.
833         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
834         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
835         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
836         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
837         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
838         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
839         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
840         Assign values compatible with MSVC 10.
841         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
842         New macros.
843         (GNULIB_defined_EWINSOCK): New macro.
844         * lib/strerror-override.c (strerror_override): Update accordingly.
845         * lib/strerror-override.h: Likewise.
846         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
847         longer equal to the corresponding errno value.
848         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
849
850 2011-10-22  Bruno Haible  <bruno@clisp.org>
851
852         perror: Recognize when test program crashes.
853         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
854         strerror, set gl_cv_func_perror_works to no.
855         Reported by Daniel Richard G. <skunk@iskunk.org>.
856
857         perror: Fix indentation.
858         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
859
860 2011-10-22  Bruno Haible  <bruno@clisp.org>
861
862         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
863         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
864         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
865         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
866         functions, not as a macro.
867         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
868         macros.
869         (isfinite, isinf, isnan, signbit): Check overloaded functions and
870         absence of macro.
871         Suggested by Eric Blake.
872         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
873
874 2011-10-21  Bruno Haible  <bruno@clisp.org>
875
876         relocatable-prog-wrapper: Don't leave object files behind.
877         * build-aux/install-reloc: Re-synchronize list of .o files to be
878         removed with list of compilation units.
879
880 2011-10-20  Bruno Haible  <bruno@clisp.org>
881
882         openpty, posix_openpt: Remove code duplication.
883         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
884         * lib/openpty.c: Include <stdlib.h>.
885         (openpty): Use posix_openpt on all platforms except IRIX.
886         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
887
888 2011-10-20  Bruno Haible  <bruno@clisp.org>
889
890         unlockpt: Detect invalid argument.
891         * lib/unlockpt.c: Include <fcntl.h>.
892         (unlockpt): Check whether fd is valid, using fcntl().
893         * modules/unlockpt (Depends-on): Add fcntl-h.
894
895 2011-10-20  Bruno Haible  <bruno@clisp.org>
896
897         openpty: Avoid compilation error on AIX 6.1.
898         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
899
900 2011-10-20  Bruno Haible  <bruno@clisp.org>
901
902         posix_openpt: Support for OpenBSD.
903         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
904         (posix_openpt) [OpenBSD]: New code.
905         * lib/grantpt.c: Include <fcntl.h>.
906         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
907         * modules/grantpt (Depends-on): Add fcntl-h.
908
909 2011-10-20  Bruno Haible  <bruno@clisp.org>
910
911         posix_openpt test: Coding style.
912         * tests/test-posix_openpt.c: Use GNU coding style.
913
914 2011-10-20  Bruno Haible  <bruno@clisp.org>
915
916         grantpt: Support --avoid=pt_chown.
917         * modules/grantpt (Files): Add lib/pty-private.h.
918
919 2011-10-20  Bruno Haible  <bruno@clisp.org>
920
921         posix_openpt: Fix autoconf macro.
922         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
923         unneeded check for _getpty.
924
925 2011-10-20  Bruno Haible  <bruno@clisp.org>
926
927         openpty: Update comments.
928         * lib/openpty.c: Add comments about Minix.
929
930 2011-10-19  Eric Blake  <eblake@redhat.com>
931
932         openpty: relax license
933         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
934
935         pt_chown: use configmake to simplify build
936         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
937
938         ptsname and others: relax license
939         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
940         * modules/unlockpt (License): Likewise.
941         * modules/pt_chown (License): Likewise.
942         * modules/ptsname (License): Likewise.
943         * modules/ttyname_r (License): Likewise.
944
945 2011-10-19  Jim Meyering  <meyering@redhat.com>
946
947         posix_openpt: remove spurious #endif
948         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
949
950 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
951
952         maint.mk: Respect $(build_aux) in web-manual rule.
953         * top/maint.mk (web-manual): Find gen-announce script in user's
954         $(build_aux) directory instead of hard-coding 'build-aux'.
955
956 2011-10-19  Bruno Haible  <bruno@clisp.org>
957
958         posix_openpt: Fix compilation error.
959         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
960         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
961         Mention the openpty module as an alternative.
962
963 2011-10-19  Bruno Haible  <bruno@clisp.org>
964
965         Support for old NeXTstep 3.3 frexp().
966         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
967         execution time of the test to 5 seconds.
968         Reported by Daniel Richard G. <skunk@iskunk.org>.
969
970 2011-10-19  Bruno Haible  <bruno@clisp.org>
971
972         Support for old NeXTstep 3.3 sed.
973         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
974         part, use /.../, not \|...|. Escape periods in the header file name.
975         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
976         Reported by Daniel Richard G. <skunk@iskunk.org>.
977
978 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
979
980         Support for old NeXTstep 3.3 gcc.
981         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
982         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
983         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
984         * lib/spawn.in.h (_Restrict_arr_): Likewise.
985         * lib/regex.h (_Restrict_arr_): Likewise.
986         * lib/regex_internal.h (re_token_t): Likewise.
987         * lib/regexec.c (check_node_accept_bytes): Likewise.
988         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
989
990 2011-10-18  Eric Blake  <eblake@redhat.com>
991
992         posix_openpt: new module
993         * modules/posix_openpt: New module.
994         * m4/posix_openpt.m4: New file.
995         * lib/posix_openpt.c: Likewise.
996         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
997         (gl_STDLIB_H_DEFAULTS): Set defaults.
998         * modules/stdlib (Makefile.am): Substitute macros.
999         * lib/stdlib.in.h (posix_openpt): Declare.
1000         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
1001         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
1002         * modules/posix_openpt-tests: New test module.
1003         * tests/test-posix_openpt.c: New test.
1004
1005 2011-10-15  Bruno Haible  <bruno@clisp.org>
1006
1007         xstrtoll: Fix compilation failure.
1008         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
1009         from lib/strtol.c.
1010         * doc/posix-headers/limits.texi: Mention missing numerical limits on
1011         some platforms.
1012         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1013
1014 2011-10-15  Bruno Haible  <bruno@clisp.org>
1015
1016         vasnprintf: Optimize bit search operation.
1017         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
1018         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
1019         gl_DOUBLE_EXPONENT_LOCATION.
1020         * modules/vasnprintf (Files): Add m4/exponentd.m4.
1021         * modules/unistdio/u8-vasnprintf (Files): Likewise.
1022         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
1023         * modules/unistdio/u16-vasnprintf (Files): Likewise.
1024         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
1025         * modules/unistdio/u32-vasnprintf (Files): Likewise.
1026         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
1027         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
1028         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
1029
1030 2011-10-15  Bruno Haible  <bruno@clisp.org>
1031
1032         vasnprintf: Fix comments.
1033         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
1034
1035 2011-10-14  Bruno Haible  <bruno@clisp.org>
1036
1037         Tests for module 'integer_length_ll'.
1038         * modules/integer_length_ll-tests: New file.
1039         * tests/test-integer_length_ll.c: New file.
1040
1041         New module 'integer_length_ll'.
1042         * lib/integer_length_ll.c: New file.
1043         * modules/integer_length_ll: New file.
1044
1045 2011-10-14  Bruno Haible  <bruno@clisp.org>
1046
1047         Tests for module 'integer_length_l'.
1048         * modules/integer_length_l-tests: New file.
1049         * tests/test-integer_length_l.c: New file.
1050
1051         New module 'integer_length_l'.
1052         * lib/integer_length_l.c: New file.
1053         * modules/integer_length_l: New file.
1054
1055 2011-10-14  Bruno Haible  <bruno@clisp.org>
1056
1057         Tests for module 'integer_length'.
1058         * modules/integer_length-tests: New file.
1059         * tests/test-integer_length.c: New file.
1060
1061         New module 'integer_length'.
1062         * lib/integer_length.h: New file.
1063         * lib/integer_length.c: New file.
1064         * modules/integer_length: New file.
1065
1066 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
1067
1068         popen: Fix dependency conditions.
1069         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
1070
1071 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
1072
1073         perror: Fix autoconf test.
1074         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
1075         <stdlib.h> and <string.h>.
1076
1077 2011-10-14  Bruno Haible  <bruno@clisp.org>
1078
1079         ffsl: Optimize on 64-bit platforms.
1080         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
1081         unrolling.
1082
1083 2011-10-13  Bruno Haible  <bruno@clisp.org>
1084
1085         ffsl: Optimize on 32-bit platforms.
1086         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
1087         use ffs() without a loop.
1088
1089         ffsl, ffsll: Optimize for GCC.
1090         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
1091         * lib/ffsl.c (GCC_BUILTIN): New macro.
1092         * lib/ffsll.c (GCC_BUILTIN): Likewise.
1093
1094 2011-10-13  Bruno Haible  <bruno@clisp.org>
1095
1096         ffs, bcopy, memset: Support symbol renaming via config.h.
1097         * lib/ffs.c: Include <config.h>.
1098         * lib/bcopy.c: Likewise.
1099         * lib/memset.c: Likewise.
1100
1101 2011-10-10  Bruno Haible  <bruno@clisp.org>
1102
1103         atanl: Simplify for platforms where 'long double' == 'double'.
1104         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
1105         alternative implementation.
1106         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1107         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1108         * modules/atanl (Depends-on): Add atan. Update conditions.
1109
1110 2011-10-10  Bruno Haible  <bruno@clisp.org>
1111
1112         acosl: Simplify for platforms where 'long double' == 'double'.
1113         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
1114         alternative implementation.
1115         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1116         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1117         * modules/acosl (Depends-on): Add acos. Update conditions.
1118
1119 2011-10-10  Bruno Haible  <bruno@clisp.org>
1120
1121         asinl: Simplify for platforms where 'long double' == 'double'.
1122         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
1123         alternative implementation.
1124         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1125         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1126         * modules/asinl (Depends-on): Add asin. Update conditions.
1127
1128 2011-10-10  Bruno Haible  <bruno@clisp.org>
1129
1130         tanl: Simplify for platforms where 'long double' == 'double'.
1131         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
1132         implementation.
1133         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1134         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1135         * modules/tanl (Depends-on): Add tan. Update conditions.
1136         (configure.ac): Don't compile trigl.c if
1137         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1138
1139 2011-10-10  Bruno Haible  <bruno@clisp.org>
1140
1141         cosl: Simplify for platforms where 'long double' == 'double'.
1142         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
1143         implementation.
1144         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1145         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1146         * modules/cosl (Depends-on): Add cos. Update conditions.
1147         (configure.ac): Don't compile sincosl.c and trigl.c if
1148         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1149
1150 2011-10-10  Bruno Haible  <bruno@clisp.org>
1151
1152         sinl: Simplify for platforms where 'long double' == 'double'.
1153         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
1154         implementation.
1155         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1156         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1157         * modules/sinl (Depends-on): Add sin. Update conditions.
1158         (configure.ac): Don't compile sincosl.c and trigl.c if
1159         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1160
1161 2011-10-10  Bruno Haible  <bruno@clisp.org>
1162
1163         logl: Simplify for platforms where 'long double' == 'double'.
1164         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
1165         implementation.
1166         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1167         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1168         * modules/logl (Depends-on): Add log. Update conditions.
1169
1170 2011-10-10  Bruno Haible  <bruno@clisp.org>
1171
1172         expl: Simplify for platforms where 'long double' == 'double'.
1173         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
1174         implementation.
1175         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1176         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1177         * modules/expl (Depends-on): Add exp. Update conditions.
1178
1179 2011-10-10  Bruno Haible  <bruno@clisp.org>
1180
1181         sqrtl: Simplify for platforms where 'long double' == 'double'.
1182         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
1183         alternative implementation.
1184         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1185         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1186         * modules/sqrtl (Depends-on): Update conditions.
1187
1188 2011-10-10  Bruno Haible  <bruno@clisp.org>
1189
1190         ldexpl: Simplify for platforms where 'long double' == 'double'.
1191         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
1192         alternative implementation.
1193         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1194         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1195         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
1196
1197 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
1198
1199         ffsll: set correct witness
1200         * modules/ffsll (configure.ac): Fix typo.
1201
1202 2011-10-10  Bruno Haible  <bruno@clisp.org>
1203
1204         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
1205         * lib/printf-frexpl.c: Include <config.h>.
1206         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
1207         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
1208         second time.
1209         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
1210         gl_LONG_DOUBLE_VS_DOUBLE.
1211         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
1212         conditions.
1213
1214 2011-10-10  Bruno Haible  <bruno@clisp.org>
1215
1216         frexpl: Simplify for platforms where 'long double' == 'double'.
1217         * lib/frexpl.c: Include <config.h>.
1218         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
1219         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
1220         time.
1221         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1222         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1223         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
1224         * modules/frexpl (Depends-on): Add frexp. Update conditions.
1225         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
1226         conditions.
1227
1228 2011-10-10  Jim Meyering  <meyering@redhat.com>
1229
1230         test-renameat: don't leave behind a temporary file
1231         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
1232           ERROR: files left in build directory after distclean:
1233           ./gltests/test-renameat.too
1234           make[1]: *** [distcleancheck] Error 1
1235         Reported by Tom G. Christensen.
1236
1237 2011-10-09  Bruno Haible  <bruno@clisp.org>
1238
1239         rint: Determine RINT_LIBM correctly on AIX 7.
1240         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
1241         directly, not only through a function pointer. Also accept an optional
1242         4th argument with extra code.
1243         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
1244         rintf() call by gcc when optimizing.
1245
1246         mathfunc.m4: Refactor.
1247         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
1248         m4 variable.
1249
1250 2011-10-09  Bruno Haible  <bruno@clisp.org>
1251
1252         rintl: Simplify for platforms where 'long double' == 'double'.
1253         * lib/rintl.c: Include <config.h>.
1254         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
1255         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
1256         time.
1257         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1258         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1259         * modules/rintl (Depends-on): Add rint. Update conditions.
1260
1261 2011-10-09  Bruno Haible  <bruno@clisp.org>
1262
1263         roundl: Simplify for platforms where 'long double' == 'double'.
1264         * lib/roundl.c: Include <config.h>.
1265         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
1266         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
1267         time.
1268         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1269         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1270         * modules/roundl (Depends-on): Add round. Update conditions.
1271
1272 2011-10-09  Bruno Haible  <bruno@clisp.org>
1273
1274         truncl: Simplify for platforms where 'long double' == 'double'.
1275         * lib/truncl.c: Include <config.h>.
1276         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
1277         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
1278         time.
1279         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1280         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1281         * modules/truncl (Depends-on): Add trunc. Update conditions.
1282
1283 2011-10-09  Bruno Haible  <bruno@clisp.org>
1284
1285         ceill: Simplify for platforms where 'long double' == 'double'.
1286         * lib/ceill.c: Include <config.h>.
1287         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
1288         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
1289         time.
1290         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1291         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1292         * modules/ceill (Depends-on): Add ceil. Update conditions.
1293
1294 2011-10-09  Bruno Haible  <bruno@clisp.org>
1295
1296         floorl: Simplify for platforms where 'long double' == 'double'.
1297         * lib/floorl.c: Include <config.h>.
1298         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
1299         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
1300         time.
1301         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1302         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1303         * modules/floorl (Depends-on): Add floor. Update conditions.
1304
1305 2011-10-09  Bruno Haible  <bruno@clisp.org>
1306
1307         rint: Fix ordering constraints.
1308         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
1309         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
1310         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
1311
1312 2011-10-09  Bruno Haible  <bruno@clisp.org>
1313
1314         copysignl: Simplify for platforms where 'long double' == 'double'.
1315         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
1316         alternative.
1317         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1318         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1319         * modules/copysignl (Depends-on): Add copysign. Update conditions.
1320
1321 2011-10-09  Bruno Haible  <bruno@clisp.org>
1322
1323         Tests for module 'rintl'.
1324         * modules/rintl-tests: New file.
1325         * tests/test-rintl.c: New file.
1326
1327         New module 'rintl'.
1328         * lib/math.in.h (rintl): New declaration.
1329         * lib/rintl.c: New file.
1330         * m4/rintl.m4: New file.
1331         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
1332         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
1333         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
1334         * modules/rintl: New file.
1335         * tests/test-math-c++.cc: Check the declaration of rintl.
1336         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
1337         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
1338         * doc/posix-functions/rintl.texi: Mention the new module.
1339
1340 2011-10-09  Bruno Haible  <bruno@clisp.org>
1341
1342         Tests for module 'rintf'.
1343         * modules/rintf-tests: New file.
1344         * tests/test-rintf.c: New file.
1345
1346         New module 'rintf'.
1347         * lib/math.in.h (rintf): New declaration.
1348         * lib/rintf.c: New file.
1349         * m4/rintf.m4: New file.
1350         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
1351         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
1352         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
1353         * modules/rintf: New file.
1354         * tests/test-math-c++.cc: Check the declaration of rintf.
1355         * doc/posix-functions/rintf.texi: Mention the new module.
1356
1357 2011-10-09  Bruno Haible  <bruno@clisp.org>
1358
1359         rint: Support for MSVC.
1360         * lib/math.in.h (rint): New declaration.
1361         * lib/rint.c: New file.
1362         * m4/rint.m4: New file.
1363         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
1364         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
1365         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
1366         * modules/rint (Description): Fix.
1367         (Files): Add lib/rint.c, m4/rint.m4.
1368         (Depends-on): Add math.
1369         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
1370         gl_MATH_MODULE_INDICATOR.
1371         * tests/test-math-c++.cc: Check the declaration of rint.
1372         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
1373         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
1374         * doc/posix-functions/rint.texi: Mention the replacement provided by
1375         the module.
1376
1377         rint tests: More tests.
1378         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
1379         minus-zero.h, infinity.h, nan.h.
1380         (main): Skip the test if the current rounding mode is not standard. Add
1381         tests for negative numbers, minus zero, infinity, NaN.
1382         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
1383         tests/nan.h.
1384         (Depends-on): Add isnand-nolibm.
1385
1386 2011-10-09  Bruno Haible  <bruno@clisp.org>
1387
1388         Tests for module 'copysignl'.
1389         * modules/copysignl-tests: New file.
1390         * tests/test-copysignl.c: New file.
1391
1392         New module 'copysignl'.
1393         * lib/math.in.h (copysignl): New declaration.
1394         * lib/copysignl.c: New file.
1395         * m4/copysignl.m4: New file.
1396         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
1397         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
1398         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
1399         HAVE_COPYSIGNL.
1400         * modules/copysignl: New file.
1401         * tests/test-math-c++.cc: Check the declaration of copysignl.
1402         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
1403         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
1404         * doc/posix-functions/copysignl.texi: Mention the new module.
1405
1406 2011-10-09  Bruno Haible  <bruno@clisp.org>
1407
1408         Tests for module 'copysignf'.
1409         * modules/copysignf-tests: New file.
1410         * tests/test-copysignf.c: New file.
1411
1412         New module 'copysignf'.
1413         * lib/math.in.h (copysignf): New declaration.
1414         * lib/copysignf.c: New file.
1415         * m4/copysignf.m4: New file.
1416         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
1417         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
1418         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
1419         HAVE_COPYSIGNF.
1420         * modules/copysignf: New file.
1421         * tests/test-math-c++.cc: Check the declaration of copysignf.
1422         * doc/posix-functions/copysignf.texi: Mention the new module.
1423
1424 2011-10-09  Bruno Haible  <bruno@clisp.org>
1425
1426         Ensure that HAVE_* variables are set to 1 before they are set to 0.
1427         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
1428         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
1429         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
1430         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
1431         gl_SIGNAL_H_DEFAULTS.
1432
1433 2011-10-09  Bruno Haible  <bruno@clisp.org>
1434
1435         poll: Make macro safer.
1436         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
1437         ac_cv_header_poll_h is not set.
1438
1439 2011-10-09  Bruno Haible  <bruno@clisp.org>
1440
1441         copysign: Provide replacement.
1442         * lib/math.in.h (copysign): New declaration.
1443         * lib/copysign.c: New file.
1444         * m4/copysign.m4: New file.
1445         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
1446         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
1447         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
1448         HAVE_COPYSIGN.
1449         * modules/copysign (Description): Clarify.
1450         (Files): Add lib/copysign.c, m4/copysign.m4.
1451         (Depends-on): Add math, signbit.
1452         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
1453         gl_MATH_MODULE_INDICATOR.
1454         * tests/test-math-c++.cc: Check the declaration of copysign.
1455         * doc/posix-functions/copysign.texi: Mention the effects of the module
1456         on Minix and MSVC.
1457
1458 2011-10-09  Bruno Haible  <bruno@clisp.org>
1459
1460         isinf: Ensure macro on AIX 5.1.
1461         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
1462         macro.
1463         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
1464
1465 2011-10-09  Bruno Haible  <bruno@clisp.org>
1466
1467         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
1468         * modules/snprintf-posix-tests (configure.ac): Require
1469         gl_LONG_DOUBLE_VS_DOUBLE.
1470         * modules/sprintf-posix-tests (configure.ac): Likewise.
1471         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
1472         * modules/vasprintf-posix-tests (configure.ac): Likewise.
1473         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
1474         * modules/vsprintf-posix-tests (configure.ac): Likewise.
1475         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
1476         tests on platforms where 'long double' is the same as 'double'.
1477         * tests/test-sprintf-posix.h (test_function): Likewise.
1478         * tests/test-vasnprintf-posix.c (test_function): Likewise.
1479         * tests/test-vasprintf-posix.c (test_function): Likewise.
1480
1481         *printf: Fix for platforms where 'long double' == 'double'.
1482         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
1483         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
1484         * modules/dprintf-posix (Files): Add m4/math_h.m4.
1485         * modules/fprintf-posix (Files): Likewise.
1486         * modules/obstack-printf-posix (Files): Likewise.
1487         * modules/snprintf-posix (Files): Likewise.
1488         * modules/sprintf-posix (Files): Likewise.
1489         * modules/vasnprintf (Files): Likewise.
1490         * modules/vasnprintf-posix (Files): Likewise.
1491         * modules/vasprintf-posix (Files): Likewise.
1492         * modules/vdprintf-posix (Files): Likewise.
1493         * modules/vfprintf-posix (Files): Likewise.
1494         * modules/vsnprintf-posix (Files): Likewise.
1495         * modules/vsprintf-posix (Files): Likewise.
1496         * modules/unistdio/u8-vasnprintf (Files): Likewise.
1497         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
1498         * modules/unistdio/u16-vasnprintf (Files): Likewise.
1499         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
1500         * modules/unistdio/u32-vasnprintf (Files): Likewise.
1501         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
1502         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
1503
1504         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
1505         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
1506         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1507         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
1508         'long double'.
1509         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
1510
1511         isinf: Fix for platforms where 'long double' == 'double'.
1512         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
1513         Don't blindly assume 80-bit 'long double'.
1514
1515         isfinite: Fix for platforms where 'long double' == 'double'.
1516         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
1517         Don't blindly assume 80-bit 'long double'.
1518
1519         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
1520         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
1521         * modules/isfinite-tests (configure.ac): Require
1522         gl_LONG_DOUBLE_VS_DOUBLE.
1523         * modules/isinf-tests (configure.ac): Likewise.
1524         * modules/isnan-tests (configure.ac): Likewise.
1525         * modules/isnanl-tests (configure.ac): Likewise.
1526         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
1527         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
1528         tests on platforms where 'long double' is the same as 'double'.
1529         * tests/test-isinf.c (test_isinfl): Likewise.
1530         * tests/test-isnan.c (test_long_double): Likewise.
1531         * tests/test-isnanl.h (main): Likewise.
1532
1533 2011-10-08  Bruno Haible  <bruno@clisp.org>
1534
1535         Tests for module 'tanhf'.
1536         * modules/tanhf-tests: New file.
1537         * tests/test-tanhf.c: New file.
1538
1539         New module 'tanhf'.
1540         * lib/math.in.h (tanhf): New declaration.
1541         * lib/tanhf.c: New file.
1542         * m4/tanhf.m4: New file.
1543         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
1544         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
1545         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
1546         * modules/tanhf: New file.
1547         * tests/test-math-c++.cc: Check the declaration of tanhf.
1548         * doc/posix-functions/tanhf.texi: Mention the new module.
1549
1550         tanh: Use a .m4 file.
1551         * m4/tanh.m4: New file.
1552         * modules/tanh (Files): Add it.
1553         (configure.ac): Just invoke gl_FUNC_TANH.
1554
1555 2011-10-08  Bruno Haible  <bruno@clisp.org>
1556
1557         Tests for module 'coshf'.
1558         * modules/coshf-tests: New file.
1559         * tests/test-coshf.c: New file.
1560
1561         New module 'coshf'.
1562         * lib/math.in.h (coshf): New declaration.
1563         * lib/coshf.c: New file.
1564         * m4/coshf.m4: New file.
1565         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
1566         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
1567         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
1568         * modules/coshf: New file.
1569         * tests/test-math-c++.cc: Check the declaration of coshf.
1570         * doc/posix-functions/coshf.texi: Mention the new module.
1571
1572         cosh: Use a .m4 file.
1573         * m4/cosh.m4: New file.
1574         * modules/cosh (Files): Add it.
1575         (configure.ac): Just invoke gl_FUNC_COSH.
1576
1577 2011-10-08  Bruno Haible  <bruno@clisp.org>
1578
1579         Tests for module 'sinhf'.
1580         * modules/sinhf-tests: New file.
1581         * tests/test-sinhf.c: New file.
1582
1583         New module 'sinhf'.
1584         * lib/math.in.h (sinhf): New declaration.
1585         * lib/sinhf.c: New file.
1586         * m4/sinhf.m4: New file.
1587         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
1588         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
1589         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
1590         * modules/sinhf: New file.
1591         * tests/test-math-c++.cc: Check the declaration of sinhf.
1592         * doc/posix-functions/sinhf.texi: Mention the new module.
1593
1594         sinh: Use a .m4 file.
1595         * m4/sinh.m4: New file.
1596         * modules/sinh (Files): Add it.
1597         (configure.ac): Just invoke gl_FUNC_SINH.
1598
1599 2011-10-08  Bruno Haible  <bruno@clisp.org>
1600
1601         Tests for module 'atan2f'.
1602         * modules/atan2f-tests: New file.
1603         * tests/test-atan2f.c: New file.
1604
1605         New module 'atan2f'.
1606         * lib/math.in.h (atan2f): New declaration.
1607         * lib/atan2f.c: New file.
1608         * m4/atan2f.m4: New file.
1609         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
1610         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
1611         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
1612         * modules/atan2f: New file.
1613         * tests/test-math-c++.cc: Check the declaration of atan2f.
1614         * doc/posix-functions/atan2f.texi: Mention the new module.
1615
1616         atan2: Use a .m4 file.
1617         * m4/atan2.m4: New file.
1618         * modules/atan2 (Files): Add it.
1619         (configure.ac): Just invoke gl_FUNC_ATAN2.
1620
1621 2011-10-08  Bruno Haible  <bruno@clisp.org>
1622
1623         Tests for module 'atanf'.
1624         * modules/atanf-tests: New file.
1625         * tests/test-atanf.c: New file.
1626
1627         New module 'atanf'.
1628         * lib/math.in.h (atanf): New declaration.
1629         * lib/atanf.c: New file.
1630         * m4/atanf.m4: New file.
1631         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
1632         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
1633         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
1634         * modules/atanf: New file.
1635         * tests/test-math-c++.cc: Check the declaration of atanf.
1636         * doc/posix-functions/atanf.texi: Mention the new module.
1637
1638         atan: Use a .m4 file.
1639         * m4/atan.m4: New file.
1640         * modules/atan (Files): Add it.
1641         (configure.ac): Just invoke gl_FUNC_ATAN.
1642
1643 2011-10-08  Bruno Haible  <bruno@clisp.org>
1644
1645         Tests for module 'acosf'.
1646         * modules/acosf-tests: New file.
1647         * tests/test-acosf.c: New file.
1648
1649         New module 'acosf'.
1650         * lib/math.in.h (acosf): New declaration.
1651         * lib/acosf.c: New file.
1652         * m4/acosf.m4: New file.
1653         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
1654         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
1655         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
1656         * modules/acosf: New file.
1657         * tests/test-math-c++.cc: Check the declaration of acosf.
1658         * doc/posix-functions/acosf.texi: Mention the new module.
1659
1660         acos: Use a .m4 file.
1661         * m4/acos.m4: New file.
1662         * modules/acos (Files): Add it.
1663         (configure.ac): Just invoke gl_FUNC_ACOS.
1664
1665 2011-10-08  Bruno Haible  <bruno@clisp.org>
1666
1667         Tests for module 'asinf'.
1668         * modules/asinf-tests: New file.
1669         * tests/test-asinf.c: New file.
1670
1671         New module 'asinf'.
1672         * lib/math.in.h (asinf): New declaration.
1673         * lib/asinf.c: New file.
1674         * m4/asinf.m4: New file.
1675         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
1676         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
1677         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
1678         * modules/asinf: New file.
1679         * tests/test-math-c++.cc: Check the declaration of asinf.
1680         * doc/posix-functions/asinf.texi: Mention the new module.
1681
1682         asin: Use a .m4 file.
1683         * m4/asin.m4: New file.
1684         * modules/asin (Files): Add it.
1685         (configure.ac): Just invoke gl_FUNC_ASIN.
1686
1687 2011-10-08  Bruno Haible  <bruno@clisp.org>
1688
1689         Tests for module 'tanf'.
1690         * modules/tanf-tests: New file.
1691         * tests/test-tanf.c: New file.
1692
1693         New module 'tanf'.
1694         * lib/math.in.h (tanf): New declaration.
1695         * lib/tanf.c: New file.
1696         * m4/tanf.m4: New file.
1697         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
1698         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
1699         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
1700         * modules/tanf: New file.
1701         * tests/test-math-c++.cc: Check the declaration of tanf.
1702         * doc/posix-functions/tanf.texi: Mention the new module.
1703
1704         tan: Use a .m4 file.
1705         * m4/tan.m4: New file.
1706         * modules/tan (Files): Add it.
1707         (configure.ac): Just invoke gl_FUNC_TAN.
1708
1709 2011-10-08  Bruno Haible  <bruno@clisp.org>
1710
1711         Tests for module 'cosf'.
1712         * modules/cosf-tests: New file.
1713         * tests/test-cosf.c: New file.
1714
1715         New module 'cosf'.
1716         * lib/math.in.h (cosf): New declaration.
1717         * lib/cosf.c: New file.
1718         * m4/cosf.m4: New file.
1719         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
1720         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
1721         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
1722         * modules/cosf: New file.
1723         * tests/test-math-c++.cc: Check the declaration of cosf.
1724         * doc/posix-functions/cosf.texi: Mention the new module.
1725
1726         cos: Use a .m4 file.
1727         * m4/cos.m4: New file.
1728         * modules/cos (Files): Add it.
1729         (configure.ac): Just invoke gl_FUNC_COS.
1730
1731 2011-10-08  Bruno Haible  <bruno@clisp.org>
1732
1733         Tests for module 'sinf'.
1734         * modules/sinf-tests: New file.
1735         * tests/test-sinf.c: New file.
1736
1737         New module 'sinf'.
1738         * lib/math.in.h (sinf): New declaration.
1739         * lib/sinf.c: New file.
1740         * m4/sinf.m4: New file.
1741         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
1742         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
1743         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
1744         * modules/sinf: New file.
1745         * tests/test-math-c++.cc: Check the declaration of sinf.
1746         * doc/posix-functions/sinf.texi: Mention the new module.
1747
1748         sin: Use a .m4 file.
1749         * m4/sin.m4: New file.
1750         * modules/sin (Files): Add it.
1751         (configure.ac): Just invoke gl_FUNC_SIN.
1752
1753 2011-10-08  Bruno Haible  <bruno@clisp.org>
1754
1755         Tests for module 'powf'.
1756         * modules/powf-tests: New file.
1757         * tests/test-powf.c: New file.
1758
1759         New module 'powf'.
1760         * lib/math.in.h (powf): New declaration.
1761         * lib/powf.c: New file.
1762         * m4/powf.m4: New file.
1763         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
1764         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
1765         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
1766         * modules/powf: New file.
1767         * tests/test-math-c++.cc: Check the declaration of powf.
1768         * doc/posix-functions/powf.texi: Mention the new module.
1769
1770         pow: Use a .m4 file.
1771         * m4/pow.m4: New file.
1772         * modules/pow (Files): Add it.
1773         (configure.ac): Just invoke gl_FUNC_POW.
1774
1775 2011-10-08  Bruno Haible  <bruno@clisp.org>
1776
1777         Tests for module 'log10f'.
1778         * modules/log10f-tests: New file.
1779         * tests/test-log10f.c: New file.
1780
1781         New module 'log10f'.
1782         * lib/math.in.h (log10f): New declaration.
1783         * lib/log10f.c: New file.
1784         * m4/log10f.m4: New file.
1785         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
1786         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
1787         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
1788         * modules/log10f: New file.
1789         * tests/test-math-c++.cc: Check the declaration of log10f.
1790         * doc/posix-functions/log10f.texi: Mention the new module.
1791
1792         log10: Use a .m4 file.
1793         * m4/log10.m4: New file.
1794         * modules/log10 (Files): Add it.
1795         (configure.ac): Just invoke gl_FUNC_LOG10.
1796
1797 2011-10-08  Bruno Haible  <bruno@clisp.org>
1798
1799         Tests for module 'logf'.
1800         * modules/logf-tests: New file.
1801         * tests/test-logf.c: New file.
1802
1803         New module 'logf'.
1804         * lib/math.in.h (logf): New declaration.
1805         * lib/logf.c: New file.
1806         * m4/logf.m4: New file.
1807         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
1808         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
1809         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
1810         * modules/logf: New file.
1811         * tests/test-math-c++.cc: Check the declaration of logf.
1812         * doc/posix-functions/logf.texi: Mention the new module.
1813
1814         log: Use a .m4 file.
1815         * m4/log.m4: New file.
1816         * modules/log (Files): Add it.
1817         (configure.ac): Just invoke gl_FUNC_LOG.
1818
1819 2011-10-08  Bruno Haible  <bruno@clisp.org>
1820
1821         Tests for module 'expf'.
1822         * modules/expf-tests: New file.
1823         * tests/test-expf.c: New file.
1824
1825         New module 'expf'.
1826         * lib/math.in.h (expf): New declaration.
1827         * lib/expf.c: New file.
1828         * m4/expf.m4: New file.
1829         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
1830         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
1831         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
1832         * modules/expf: New file.
1833         * tests/test-math-c++.cc: Check the declaration of expf.
1834         * doc/posix-functions/expf.texi: Mention the new module.
1835
1836         exp: Use a .m4 file.
1837         * m4/exp.m4: New file.
1838         * modules/exp (Files): Add it.
1839         (configure.ac): Just invoke gl_FUNC_EXP.
1840
1841 2011-10-08  Bruno Haible  <bruno@clisp.org>
1842
1843         Tests for module 'sqrtf'.
1844         * modules/sqrtf-tests: New file.
1845         * tests/test-sqrtf.c: New file.
1846
1847         New module 'sqrtf'.
1848         * lib/math.in.h (sqrtf): New declaration.
1849         * lib/sqrtf.c: New file.
1850         * m4/sqrtf.m4: New file.
1851         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
1852         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
1853         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
1854         * modules/sqrtf: New file.
1855         * tests/test-math-c++.cc: Check the declaration of sqrtf.
1856         * doc/posix-functions/sqrtf.texi: Mention the new module.
1857
1858 2011-10-08  Bruno Haible  <bruno@clisp.org>
1859
1860         Tests: Avoid link failures w.r.t. libintl.
1861         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
1862         $(LIBINTL).
1863         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
1864         $(LIBINTL).
1865         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
1866         against $(LIBINTL).
1867         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
1868         $(LIBINTL).
1869         * modules/openat-tests (Makefile.am): Link test-fchmodat against
1870         $(LIBINTL).
1871         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
1872
1873 2011-10-08  Bruno Haible  <bruno@clisp.org>
1874
1875         pow tests: Defeat compiler optimizations.
1876         * tests/test-pow.c (main): Assign arguments to x and y before use.
1877
1878 2011-10-08  Bruno Haible  <bruno@clisp.org>
1879
1880         gnulib-tool: Improve last commit.
1881         * gnulib-tool (func_modules_transitive_closure): Simplify code.
1882         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
1883         ignore dependencies that are not among the modules list.
1884
1885 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
1886
1887         gnulib-tool: don't follow dependencies to avoided modules
1888         This fixes a bug that is related to the previous one.
1889         * gnulib-tool (func_modules_transitive_closure)
1890         (func_emit_autoconf_snippets):
1891         Check whether a dependency is acceptable before using it.
1892         (--extract-dependencies): Report an error if --avoid is also used,
1893         since this combination of options is not yet supported.
1894
1895         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
1896         Problem reported by Peter Dyballa in
1897         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
1898         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
1899         when echoing "$condition".
1900
1901 2011-10-07  Bruno Haible  <bruno@clisp.org>
1902
1903         Fix documentation about math functions on MacOS X.
1904         * doc/posix-functions/exp2.texi: Don't say the function is missing on
1905         MacOS X 10.5.
1906         * doc/posix-functions/fdim.texi: Likewise.
1907         * doc/posix-functions/feclearexcept.texi: Likewise.
1908         * doc/posix-functions/fegetenv.texi: Likewise.
1909         * doc/posix-functions/fegetround.texi: Likewise.
1910         * doc/posix-functions/feholdexcept.texi: Likewise.
1911         * doc/posix-functions/feraiseexcept.texi: Likewise.
1912         * doc/posix-functions/fesetenv.texi: Likewise.
1913         * doc/posix-functions/fesetround.texi: Likewise.
1914         * doc/posix-functions/fetestexcept.texi: Likewise.
1915         * doc/posix-functions/feupdateenv.texi: Likewise.
1916         * doc/posix-functions/fmax.texi: Likewise.
1917         * doc/posix-functions/fmin.texi: Likewise.
1918         * doc/posix-functions/log2.texi: Likewise.
1919         * doc/posix-functions/modff.texi: Likewise.
1920         * doc/posix-functions/nan.texi: Likewise.
1921         * doc/posix-functions/nanf.texi: Likewise.
1922         * doc/posix-functions/nextafterf.texi: Likewise.
1923         * doc/posix-functions/remquo.texi: Likewise.
1924
1925 2011-10-07  Bruno Haible  <bruno@clisp.org>
1926
1927         modff: Drop assumption about library that defines modff.
1928         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
1929         AC_CHECK_FUNCS.
1930         * modules/modff (Files): Add m4/mathfunc.m4.
1931
1932 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
1933
1934         raise tests: Avoid a GCC warning.
1935         * tests/test-raise.c (handler): Use _Noreturn.
1936
1937 2011-10-07  Bruno Haible  <bruno@clisp.org>
1938
1939         Tests for module 'ldexpf'.
1940         * modules/ldexpf-tests: New file.
1941         * tests/test-ldexpf.c: New file.
1942
1943         New module 'ldexpf'.
1944         * lib/math.in.h (ldexpf): New declaration.
1945         * lib/ldexpf.c: New file.
1946         * m4/ldexpf.m4: New file.
1947         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
1948         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
1949         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
1950         * modules/ldexpf: New file.
1951         * tests/test-math-c++.cc: Check the declaration of ldexpf.
1952         * doc/posix-functions/ldexpf.texi: Mention the new module.
1953
1954 2011-10-06  Bruno Haible  <bruno@clisp.org>
1955
1956         frexpf: Work around problems on IRIX and mingw.
1957         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
1958         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
1959         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
1960         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
1961         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
1962         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
1963         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
1964
1965 2011-10-06  Bruno Haible  <bruno@clisp.org>
1966
1967         fabsf: Drop assumption about library that defines fabsf.
1968         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
1969         AC_CHECK_FUNCS.
1970         * modules/fabsf (Files): Add m4/mathfunc.m4.
1971
1972 2011-10-06  Bruno Haible  <bruno@clisp.org>
1973
1974         frexpf: Drop assumption about library that defines frexpf.
1975         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
1976         'int *', 'float *', 'long double *', 'float', 'long double'.
1977         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
1978         AC_CHECK_FUNCS.
1979         * modules/frexpf (Files): Add m4/mathfunc.m4.
1980
1981         Tests for module 'frexpf'.
1982         * modules/frexpf-tests: New file.
1983         * tests/test-frexpf.c: New file.
1984
1985         New module 'frexpf'.
1986         * lib/math.in.h (frexpf): New declaration.
1987         * lib/frexpf.c: New file.
1988         * m4/frexpf.m4: New file.
1989         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
1990         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
1991         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
1992         * modules/frexpf: New file.
1993         * tests/test-math-c++.cc: Check the declaration of frexpf.
1994         * doc/posix-functions/frexpf.texi: Mention the new module.
1995
1996 2011-10-06  Bruno Haible  <bruno@clisp.org>
1997
1998         math: Sort function declarations of math.in.h.
1999         * lib/math.in.h (frexp, logb): Move declarations.
2000
2001 2011-10-05  Bruno Haible  <bruno@clisp.org>
2002
2003         Tests for module 'modff'.
2004         * modules/modff-tests: New file.
2005         * tests/test-modff.c: New file.
2006
2007         New module 'modff'.
2008         * lib/math.in.h (modff): New declaration.
2009         * lib/modff.c: New file.
2010         * m4/modff.m4: New file.
2011         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
2012         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
2013         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
2014         * modules/modff: New file.
2015         * tests/test-math-c++.cc: Check the declaration of modff.
2016         * doc/posix-functions/modff.texi: Mention the new module.
2017
2018         modf tests: Make test sharper.
2019         * tests/test-modf.c (main): Strengthen upper bound.
2020
2021         modf: Use a .m4 file.
2022         * m4/modf.m4: New file.
2023         * modules/modf (Files): Add it.
2024         (configure.ac): Just invoke gl_FUNC_MODF.
2025
2026 2011-10-05  Bruno Haible  <bruno@clisp.org>
2027
2028         Tests for module 'fmodf'.
2029         * modules/fmodf-tests: New file.
2030         * tests/test-fmodf.c: New file.
2031
2032         New module 'fmodf'.
2033         * lib/math.in.h (fmodf): New declaration.
2034         * lib/fmodf.c: New file.
2035         * m4/fmodf.m4: New file.
2036         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
2037         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
2038         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
2039         * modules/fmodf: New file.
2040         * tests/test-math-c++.cc: Check the declaration of fmodf.
2041         * doc/posix-functions/fmodf.texi: Mention the new module.
2042
2043         fmod: Use a .m4 file.
2044         * m4/fmod.m4: New file.
2045         * modules/fmod (Files): Add it.
2046         (configure.ac): Just invoke gl_FUNC_FMOD.
2047
2048 2011-10-05  Bruno Haible  <bruno@clisp.org>
2049
2050         Tests for module 'fabsf'.
2051         * modules/fabsf-tests: New file.
2052         * tests/test-fabsf.c: New file.
2053
2054         New module 'fabsf'.
2055         * lib/math.in.h (fabsf): New declaration.
2056         * lib/fabsf.c: New file.
2057         * m4/fabsf.m4: New file.
2058         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
2059         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
2060         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
2061         * modules/fabsf: New file.
2062         * tests/test-math-c++.cc: Check the declaration of fabsf.
2063         * doc/posix-functions/fabsf.texi: Mention the new module.
2064
2065         fabs: Use a .m4 file.
2066         * m4/fabs.m4: New file.
2067         * modules/fabs (Files): Add it.
2068         (configure.ac): Just invoke gl_FUNC_FABS.
2069
2070 2011-10-05  Jim Meyering  <meyering@redhat.com>
2071
2072         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
2073         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
2074         ls -lL regression introduced in coreutils-8.12, it does so at the
2075         cost of an additional stat call in the common case.  Besides, now
2076         that the kernel change that prompted commit 95f7c57f has been reverted
2077         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
2078         we have no use for commit 95f7c57f, "file-has-acl: use
2079         acl_extended_file_nofollow if available".
2080
2081 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
2082
2083         file-has-acl: revert unintended change in behavior of ls -L
2084         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
2085         derived from...
2086         (file_has_acl): ...code here.  Call it.
2087         This problem was introduced with 2011-07-22 commit 95f7c57f,
2088         "file-has-acl: use acl_extended_file_nofollow if available".
2089         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
2090
2091 2011-10-03  Bruno Haible  <bruno@clisp.org>
2092
2093         poll: Avoid link errors on MSVC.
2094         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
2095         * modules/poll (Depends-on): Add sockets.
2096         (Link): New section.
2097         * NEWS: Mention the change.
2098         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
2099         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
2100         $(LIB_POLL) instead of $(LIBSOCKET).
2101
2102 2011-10-03  Bruno Haible  <bruno@clisp.org>
2103
2104         sys_select tests: Fix link error on MSVC 9.
2105         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
2106         with $(LIB_SELECT) instead of $(LIBSOCKET).
2107
2108 2011-10-03  Bruno Haible  <bruno@clisp.org>
2109
2110         sys_select: Fix compilation error on mingw.
2111         * lib/sys_select.in.h: On native Windows, include <io.h>.
2112
2113 2011-10-03  Bruno Haible  <bruno@clisp.org>
2114
2115         wmemset: Support for MSVC.
2116         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
2117         whether wmemset() exists.
2118
2119 2011-10-03  Bruno Haible  <bruno@clisp.org>
2120
2121         wmemmove: Support for MSVC.
2122         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
2123         whether wmemmove() exists.
2124
2125 2011-10-03  Bruno Haible  <bruno@clisp.org>
2126
2127         wmemcpy: Support for MSVC.
2128         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
2129         whether wmemcpy() exists.
2130
2131 2011-10-03  Bruno Haible  <bruno@clisp.org>
2132
2133         wmemcmp: Support for MSVC.
2134         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
2135         whether wmemcmp() exists.
2136
2137 2011-10-03  Bruno Haible  <bruno@clisp.org>
2138
2139         wmemchr: Support for MSVC.
2140         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
2141         whether wmemchr() exists.
2142
2143 2011-10-03  Bruno Haible  <bruno@clisp.org>
2144
2145         glthread/*, strsignal: Support for MSVC.
2146         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
2147         including <winsock.h> on MSVC 9.
2148         * lib/glthread/lock.h: Likewise.
2149         * lib/glthread/thread.h: Likewise.
2150         * lib/glthread/tls.h: Likewise.
2151         * lib/glthread/yield.h: Likewise.
2152         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
2153         if HAVE_UNISTD_H is false.
2154         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
2155
2156 2011-10-03  Bruno Haible  <bruno@clisp.org>
2157
2158         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
2159         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
2160         Set to 100000.
2161
2162 2011-10-03  Bruno Haible  <bruno@clisp.org>
2163
2164         acl: Fix specification.
2165         * lib/file-has-acl.c (file_has_acl): Fix specification.
2166
2167 2011-10-03  Bruno Haible  <bruno@clisp.org>
2168
2169         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
2170         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
2171         (compute_curr_prefix, shared_library_fullname,
2172         find_shared_library_fullname, get_shared_library_fullname, relocate):
2173         Use it together with PIC && INSTALLDIR.
2174         Reported by <jojelino@gmail.com>
2175         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
2176
2177 2011-10-01  Jim Meyering  <meyering@redhat.com>
2178
2179         maint.mk: adjust a release-related rule not to require use of gzip
2180         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
2181         Instead, check each file in $(DIST_ARCHIVES).  This is better for
2182         projects that build only .tar.xz files.  Also fix an erroneous test.
2183
2184         test-linkat: don't leave behind a temporary file
2185         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
2186         Otherwise, coreutils' "make distcheck" would fail with this:
2187           Only in /c/cu/tests/torture/coreutils/test/\
2188             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
2189           make[2]: *** [my-distcheck] Error 1
2190
2191         float, math: add omitted file
2192         * lib/itold.c: Add file, required for yesterday's float change.
2193
2194 2011-10-01  Bruno Haible  <bruno@clisp.org>
2195
2196         isinf: Fix for OpenBSD/x86.
2197         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
2198         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
2199         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
2200
2201 2011-10-01  Bruno Haible  <bruno@clisp.org>
2202
2203         isfinite: Fix syntax error in configure test.
2204         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
2205
2206         isfinite: Fix typo.
2207         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
2208         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
2209
2210 2011-10-01  Bruno Haible  <bruno@clisp.org>
2211
2212         nonblocking tests: Fix test failure on Linux/IA-64.
2213         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
2214         Set to 270000.
2215
2216 2011-10-01  Bruno Haible  <bruno@clisp.org>
2217
2218         mkfifoat tests: Fix a test failure on mingw.
2219         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
2220         with error ENOSYS.
2221
2222 2011-09-30  Bruno Haible  <bruno@clisp.org>
2223
2224         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
2225         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
2226         'long double'. Set REPLACE_ITOLD.
2227         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
2228         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
2229         * lib/itold.c: New file.
2230         * modules/float (Files): Add lib/itold.c.
2231         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
2232         (Makefile.am): Substitute REPLACE_ITOLD.
2233         * modules/math (Depends-on): Add float.
2234         (Makefile.am): Substitute REPLACE_ITOLD.
2235         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
2236         * doc/posix-headers/math.texi: Likewise.
2237         * doc/posix-functions/logl.texi: Likewise.
2238
2239 2011-09-30  Bruno Haible  <bruno@clisp.org>
2240
2241         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
2242         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
2243         Set to 140000.
2244
2245 2011-09-30  Bruno Haible  <bruno@clisp.org>
2246
2247         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
2248         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
2249         invocation, say "right after AC_PROG_CC_STDC", not "right after
2250         AC_PROG_CC".
2251         Reported by Gary V. Vaughan <gary@gnu.org>.
2252
2253 2011-09-30  Bruno Haible  <bruno@clisp.org>
2254
2255         Centralize C99 requirement.
2256         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
2257         * modules/stdarg (configure.ac-early): Invoke it instead of
2258         AC_PROG_CC_STDC.
2259         Reported by Gary V. Vaughan and Paul Eggert.
2260
2261 2011-09-29  Bruno Haible  <bruno@clisp.org>
2262
2263         float: Fix LDBL_MAX value on Linux/PowerPC.
2264         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
2265         on Linux/PowerPC.
2266         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
2267         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
2268         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
2269         platform.
2270         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
2271
2272 2011-09-29  Bruno Haible  <bruno@clisp.org>
2273
2274         doc: Improve doc about gl_EARLY.
2275         * doc/gnulib-tool.texi (Initial import): Mention where to place an
2276         AC_PROG_CC_STDC invocation.
2277         Reported by Gary V. Vaughan <gary@gnu.org>.
2278
2279 2011-09-28  Bruno Haible  <bruno@clisp.org>
2280
2281         fgetc, fputc, fread, fwrite tests: Fix link error.
2282         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
2283         on non-MSVC platforms.
2284         * tests/test-fputc.c (main): Likewise.
2285         * tests/test-fread.c (main): Likewise.
2286         * tests/test-fwrite.c (main): Likewise.
2287         Reported by Jim Meyering.
2288
2289 2011-09-27  Bruno Haible  <bruno@clisp.org>
2290
2291         fputc, fwrite tests: Avoid test failure on MSVC.
2292         * tests/test-fgetc.c: Include msvc-inval.h.
2293         (main): Invoke gl_msvc_inval_ensure_handler.
2294         * tests/test-fputc.c: Include msvc-inval.h.
2295         (main): Invoke gl_msvc_inval_ensure_handler.
2296         * tests/test-fread.c: Include msvc-inval.h.
2297         (main): Invoke gl_msvc_inval_ensure_handler.
2298         * tests/test-fwrite.c: Include msvc-inval.h.
2299         (main): Invoke gl_msvc_inval_ensure_handler.
2300         * modules/fgetc-tests (Depends-on): Add msvc-inval.
2301         * modules/fputc-tests (Depends-on): Likewise.
2302         * modules/fread-tests (Depends-on): Likewise.
2303         * modules/fwrite-tests (Depends-on): Likewise.
2304
2305 2011-09-27  Bruno Haible  <bruno@clisp.org>
2306
2307         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
2308         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
2309         (raise): Remove older, duplicated declaration.
2310         (_gl_raise_SIGPIPE): New declaration.
2311         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
2312         (rpl_raise): Remove function.
2313         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
2314         a gnulib-defined SIGPIPE here.
2315         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
2316         'sigprocmask' has detected missing signal-blocking and the module
2317         'sigpipe' is enabled.
2318         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
2319
2320 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
2321
2322         base64-tests: avoid memory leak
2323         * tests/test-base64.c (main): Plug memory leak.
2324
2325         base32: new module
2326         * modules/base32: New module.
2327         * lib/base32.c: New file.
2328         * lib/base32.h: Likewise.
2329         * m4/base32.m4: Likewise.
2330         * modules/base32-tests: New test.
2331         * tests/test-base32.c: Likewise.
2332         * MODULES.html.sh (Misc): Mention it.
2333
2334 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
2335
2336         gnulib: use more-standard license notice wording
2337         * gnulib-tool (func_emit_copyright_notice): When emitting a
2338         license notice into a file, use the standard wording as suggested
2339         by the current information for GNU maintainers, except say "file"
2340         rather than "program".  The new wording gives a license version
2341         number, which addresses an issue raised by Glenn Morris in
2342         <http://lists.gnu.org/archive/html/bug-gnulib/2011-09/msg00397.html>.
2343         * m4/onceonly.m4: Use that same wording here, too.
2344
2345         dup2: minor simplification
2346         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
2347         as lib/dup2.c no longer uses 'inline'.
2348
2349 2011-09-25  Bruno Haible  <bruno@clisp.org>
2350
2351         strings: Fix compilation error on MSVC.
2352         * lib/strings.in.h: Include <stddef.h> for size_t.
2353
2354 2011-09-25  Bruno Haible  <bruno@clisp.org>
2355
2356         fflush et al.: Document limitation on MSVC.
2357         * doc/posix-functions/fflush.texi: Document possible crash in handling
2358         mode other than DEFAULT_HANDLING.
2359         * doc/posix-functions/fgetc.texi: Likewise.
2360         * doc/posix-functions/fputc.texi: Likewise.
2361         * doc/posix-functions/fread.texi: Likewise.
2362         * doc/posix-functions/fwrite.texi: Likewise.
2363
2364 2011-09-25  Bruno Haible  <bruno@clisp.org>
2365
2366         msvc-inval: Allow three invalid parameter handling modes.
2367         * lib/msvc-inval.h: Don't include <stdlib.h> here.
2368         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
2369         macros.
2370         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
2371         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
2372         SANE_LIBRARY_HANDLING as a no-op.
2373         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
2374         <stdlib.h>.
2375         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
2376
2377 2011-09-25  Bruno Haible  <bruno@clisp.org>
2378
2379         msvc-inval: Make handler multithread-safe.
2380         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
2381         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
2382         declarations.
2383         (gl_msvc_inval_current): New declaration.
2384         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
2385         Operate on the structure returned by gl_msvc_inval_current().
2386         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
2387         Remove varaiables.
2388         (tls_index, tls_initialized): New variables.
2389         (not_per_thread): New variable.
2390         (gl_msvc_inval_current): New function.
2391         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
2392         returned by gl_msvc_inval_current().
2393
2394 2011-09-25  Bruno Haible  <bruno@clisp.org>
2395
2396         msvc-inval: Install handler globally.
2397         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
2398         !_MSC_VER.
2399         (gl_msvc_invalid_parameter_handler): Remove declaration.
2400         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
2401         declarations.
2402         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
2403         Install the handler globally, don't uninstall it.
2404         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
2405         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
2406         currently valid, call RaiseException instead.
2407         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
2408         for !_MSC_VER.
2409
2410 2011-09-25  Bruno Haible  <bruno@clisp.org>
2411
2412         strerror_r-posix: Fix for MSVC 9.
2413         * lib/strerror_r.c (local_snprintf): New function.
2414         (snprintf): Define to local_snprintf, not to _snprintf.
2415
2416 2011-09-25  Bruno Haible  <bruno@clisp.org>
2417
2418         ftruncate: Support for MSVC 9.
2419         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
2420         (chsize_nothrow): New function.
2421         (chsize): Redefine as a macro.
2422         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
2423         * modules/ftruncate (Depends-on): Add msvc-inval.
2424
2425 2011-09-25  Bruno Haible  <bruno@clisp.org>
2426
2427         New module 'fstat'.
2428         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
2429         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
2430         * lib/fchdir.c (rpl_fstat): Remove function.
2431         * m4/fstat.m4: New file.
2432         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
2433         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
2434         declared.
2435         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
2436         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
2437         * modules/fstat: New file.
2438         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
2439         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
2440         is set.
2441         * doc/posix-functions/fstat.texi: Mention the new module and the
2442         problem on MSVC.
2443         * NEWS: Mention the change.
2444         * modules/acl (Depends-on): Add fstat.
2445         * modules/chdir-safer (Depends-on): Likewise.
2446         * modules/chown (Depends-on): Likewise.
2447         * modules/copy-file (Depends-on): Likewise.
2448         * modules/fchdir (Depends-on): Likewise.
2449         * modules/fdopendir (Depends-on): Likewise.
2450         * modules/fopen (Depends-on): Likewise.
2451         * modules/fts (Depends-on): Likewise.
2452         * modules/getcwd (Depends-on): Likewise.
2453         * modules/isapipe (Depends-on): Likewise.
2454         * modules/linkat (Depends-on): Likewise.
2455         * modules/lseek (Depends-on): Likewise.
2456         * modules/mkdir-p (Depends-on): Likewise.
2457         * modules/open (Depends-on): Likewise.
2458         * modules/openat (Depends-on): Likewise.
2459         * modules/read-file (Depends-on): Likewise.
2460         * modules/renameat (Depends-on): Likewise.
2461         * modules/utimens (Depends-on): Likewise.
2462
2463 2011-09-25  Bruno Haible  <bruno@clisp.org>
2464
2465         linkat: Fix compilation on MSVC 9.
2466         * lib/linkat.c: Don't include <stdint.h>.
2467
2468 2011-09-25  Bruno Haible  <bruno@clisp.org>
2469
2470         fclose: Support for MSVC 9.
2471         * lib/fclose.c: Include msvc-inval.h.
2472         (fclose_nothrow): New function.
2473         (rpl_fclose): Use it.
2474         * modules/fclose (Depends-on): Add msvc-inval.
2475         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
2476
2477 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
2478
2479         dup2: minor simplifications
2480         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
2481         that it's a performance win.
2482         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
2483         ! defined __CYGWIN__)" to "ifdef F_GETFL".
2484
2485 2011-09-24  Jim Meyering  <meyering@redhat.com>
2486
2487         test-futimens: avoid a warning from gcc -Wshadow
2488         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
2489         to avoid a shadowing warning.
2490
2491 2011-09-24  Bruno Haible  <bruno@clisp.org>
2492
2493         fdopen: Support for MSVC 9.
2494         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
2495         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
2496         * lib/fdopen.c: Include msvc-inval.h.
2497         (fdopen_nothrow): New function.
2498         (rpl_fdopen): Use it.
2499         * modules/fdopen (Depends-on): Add msvc-inval.
2500         * modules/fclose-tests (Depends-on): Add fdopen.
2501         * modules/fflush-tests (Depends-on): Likewise.
2502         * modules/fgetc-tests (Depends-on): Likewise.
2503         * modules/fputc-tests (Depends-on): Likewise.
2504         * modules/fread-tests (Depends-on): Likewise.
2505         * modules/freopen-tests (Depends-on): Likewise.
2506         * modules/fseeko-tests (Depends-on): Likewise.
2507         * modules/ftello-tests (Depends-on): Likewise.
2508         * modules/fwrite-tests  (Depends-on): Likewise.
2509         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
2510
2511 2011-09-24  Bruno Haible  <bruno@clisp.org>
2512
2513         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
2514         * modules/fgetc-tests (Depends-on): Add unistd.
2515         * modules/fputc-tests (Depends-on): Likewise.
2516         * modules/fread-tests (Depends-on): Likewise.
2517         * modules/fwrite-tests (Depends-on): Likewise.
2518
2519 2011-09-24  Bruno Haible  <bruno@clisp.org>
2520
2521         dup: Simplify autoconf test.
2522         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
2523         on gl_MSVC_INVAL's result.
2524
2525 2011-09-24  Bruno Haible  <bruno@clisp.org>
2526
2527         Tests for function fwrite().
2528         * modules/fwrite-tests: New file.
2529         * tests/test-fwrite.c: New file.
2530         * modules/stdio-tests (Depends-on): Add fwrite-tests.
2531
2532         Tests for function fread().
2533         * modules/fread-tests: New file.
2534         * tests/test-fread.c: New file.
2535         * modules/stdio-tests (Depends-on): Add fread-tests.
2536
2537         Activate fputc tests.
2538         * modules/stdio-tests (Depends-on): Add fputc-tests.
2539
2540         Enhance fgetc, fputc tests.
2541         * tests/test-fgetc.c (main): Also test the stream's error indicator.
2542         * tests/test-fputc.c (main): Likewise.
2543
2544 2011-09-24  Bruno Haible  <bruno@clisp.org>
2545
2546         write: Support for MSVC 9.
2547         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
2548         is not 1.
2549         * lib/write.c (write_nothrow): New function.
2550         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
2551         not 1. Use write_nothrow.
2552         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
2553         invalid parameter handler.
2554         (gl_PREREQ_WRITE): New macro.
2555         * modules/write (Depends-on): Add msvc-inval.
2556         (configure.ac): Invoke gl_PREREQ_WRITE.
2557         * doc/posix-functions/write.texi: Mention the problem on MSVC.
2558
2559 2011-09-24  Bruno Haible  <bruno@clisp.org>
2560
2561         read: Fix last commit.
2562         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
2563
2564 2011-09-24  Bruno Haible  <bruno@clisp.org>
2565
2566         dup2: Fix last commit.
2567         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
2568         (rpl_dup2): Disable fcntl workaround on native Windows.
2569
2570         sigprocmask: Make code safer.
2571         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
2572         section that changes macro definitions for this compilation unit.
2573
2574 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
2575
2576         dup2: clarify by coalescing Windows-specific material
2577         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
2578         "msvc-nothrow.h"' to the Windows-specific section, so that the
2579         Emacs source need not contain these include files.
2580         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
2581         Windows-specific fixes into this function rather than just the
2582         nothrow fix, as this shortens and clarifies the code.  Always
2583         define as a function, as that's a bit cleaner than having it be
2584         sometimes a function and sometimes a macro.
2585         (rpl_dup2): Move the Windows-specific stuff out of here and into
2586         ms_windows_dup2.  Don't protect the Haiku-related fix with
2587         "#if !defined __linux__", as the same code also works around
2588         a Linux kernel bug, and it doesn't add any system calls on any
2589         platform.  Add comment about FreeBSD 6.1.
2590
2591         sigprocmask: move #include directive
2592         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
2593         Windows-specific section, so that the Emacs source need not
2594         contain msvc-inval.h.
2595
2596 2011-09-23  Bruno Haible  <bruno@clisp.org>
2597
2598         read: Support for MSVC 9.
2599         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
2600         is not 1.
2601         * lib/read.c (read_nothrow): New function.
2602         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
2603         read_nothrow.
2604         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
2605         invalid parameter handler.
2606         (gl_PREREQ_READ): New macro.
2607         * modules/read (Depends-on): Add msvc-inval.
2608         (configure.ac): Invoke gl_PREREQ_READ.
2609         * doc/posix-functions/read.texi: Mention the problem on MSVC.
2610
2611 2011-09-23  Bruno Haible  <bruno@clisp.org>
2612
2613         close: Support for MSVC 9.
2614         * lib/close.c: Include <errno.h>, msvc-inval.h.
2615         (close_nothrow): New function.
2616         (rpl_close): Use it.
2617         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
2618         invalid parameter handler.
2619         * modules/close (Depends-on): Add msvc-inval.
2620         * modules/dup2-tests (Depends-on): Add close.
2621         * modules/dup3-tests (Depends-on): Likewise.
2622         * modules/fcntl-tests (Depends-on): Likewise.
2623         * modules/spawn-pipe-tests (Depends-on): Likewise.
2624         * modules/unistd-safer-tests (Depends-on): Likewise.
2625         * doc/posix-functions/close.texi: Mention the problem on MSVC.
2626
2627 2011-09-23  Bruno Haible  <bruno@clisp.org>
2628
2629         New module 'dup'.
2630         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
2631         Allow replacement.
2632         * lib/dup.c: New file.
2633         * lib/fchdir.c (rpl_dup): Remove function.
2634         * m4/dup.m4: New file.
2635         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
2636         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
2637         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
2638         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
2639         * modules/dup: New file.
2640         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
2641         'dup' module is in use.
2642         * modules/fdopendir (Depends-on): Add dup.
2643         * modules/fdutimensat-tests (Depends-on): Likewise.
2644         * modules/fts (Depends-on): Likewise.
2645         * modules/futimens-tests (Depends-on): Likewise.
2646         * modules/posix_spawnp-tests (Depends-on): Likewise.
2647         * modules/unistd-safer-tests (Depends-on): Likewise.
2648         * modules/utimens-tests (Depends-on): Likewise.
2649         * doc/posix-functions/dup.texi: Mention the new module and the problem
2650         on MSVC.
2651
2652 2011-09-23  Bruno Haible  <bruno@clisp.org>
2653
2654         getdtablesize: Support for MSVC 9.
2655         * lib/getdtablesize.c: Include msvc-inval.h.
2656         (_setmaxstdio_nothrow): New function.
2657         (_setmaxstdio): Redefine it.
2658         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
2659         * modules/getdtablesize (Depends-on): Add msvc-inval.
2660         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
2661
2662 2011-09-23  Bruno Haible  <bruno@clisp.org>
2663
2664         signal-h: Rename from signal.
2665         * modules/signal-h: Renamed from modules/signal.
2666         * modules/pthread_sigmask (Depends-on): Update.
2667         * modules/raise (Depends-on): Likewise.
2668         * modules/sigaction (Depends-on): Likewise.
2669         * modules/sigpipe (Depends-on): Likewise.
2670         * modules/sigprocmask (Depends-on): Likewise.
2671         * modules/sys_select (Depends-on): Likewise.
2672         * modules/signal-h-tests: Renamed from modules/signal-tests.
2673         (Files, Depends-on, Makefile.am): Update.
2674         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
2675         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
2676         (Files, Makefile.am): Update.
2677         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
2678         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
2679         * modules/signal: New placeholder file.
2680         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
2681         * doc/posix-headers/signal.texi: Update.
2682         * NEWS: Mention the change.
2683
2684 2011-09-23  Bruno Haible  <bruno@clisp.org>
2685
2686         sigprocmask: Avoid crashes through signal() on MSVC 9.
2687         * lib/sigprocmask.c: Include msvc-inval.h.
2688         (signal_nothrow): New function.
2689         (signal): Redefine it.
2690         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
2691         * modules/sigprocmask (Depends-on): Add msvc-inval.
2692         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
2693
2694 2011-09-23  Bruno Haible  <bruno@clisp.org>
2695
2696         Tests for module 'raise'.
2697         * modules/raise-tests: New file.
2698         * tests/test-raise.c: New file.
2699
2700         raise: Support for MSVC.
2701         * lib/signal.in.h (raise): New declaration.
2702         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
2703         for native Windows platforms.
2704         * m4/raise.m4: New file.
2705         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
2706         HAVE_RAISE, REPLACE_RAISE.
2707         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
2708         REPLACE_RAISE.
2709         * modules/raise (Status, Notice): Remove fields.
2710         (Files): Add m4/raise.m4.
2711         (Depends-on): Add signal, msvc-inval.
2712         (configure.ac): Use the common idioms.
2713         (Maintainer): Add me.
2714         * tests/test-signal-c++.cc: Check the signature of raise.
2715         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
2716
2717 2011-09-23  Bruno Haible  <bruno@clisp.org>
2718
2719         pipe2: Fix compilation on pre-C99 compilers.
2720         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
2721
2722 2011-09-23  Bruno Haible  <bruno@clisp.org>
2723
2724         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
2725         * lib/msvc-nothrow.h: New file.
2726         * lib/msvc-nothrow.c: New file.
2727         * m4/msvc-nothrow.m4: New file.
2728         * modules/msvc-nothrow: New file.
2729         * lib/dup2.c: Include msvc-nothrow.h.
2730         (rpl_dup2): No need to protect _get_osfhandle call here.
2731         * lib/accept4.c: Include msvc-nothrow.h.
2732         * lib/error.c: Likewise.
2733         * lib/fcntl.c: Likewise.
2734         * lib/lseek.c: Likewise.
2735         * lib/nonblocking.c: Likewise.
2736         * lib/poll.c: Likewise.
2737         * lib/read.c: Likewise.
2738         * lib/select.c: Likewise.
2739         * lib/sockets.h: Likewise.
2740         * lib/sockets.c: Likewise.
2741         * lib/stdio-read.c: Likewise.
2742         * lib/stdio-write.c: Likewise.
2743         * lib/write.c: Likewise.
2744         * lib/w32sock.h: Likewise.
2745         * lib/w32spawn.h: Likewise.
2746         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
2747         * lib/fsync.c: Likewise.
2748         * lib/isapipe.c: Likewise.
2749         * modules/dup2 (Depends-on): Add msvc-nothrow.
2750         * modules/accept4 (Depends-on): Likewise.
2751         * modules/error (Depends-on): Likewise.
2752         * modules/fcntl (Depends-on): Likewise.
2753         * modules/lseek (Depends-on): Likewise.
2754         * modules/nonblocking (Depends-on): Likewise.
2755         * modules/poll (Depends-on): Likewise.
2756         * modules/read (Depends-on): Likewise.
2757         * modules/select (Depends-on): Likewise.
2758         * modules/sockets (Depends-on): Likewise.
2759         * modules/sigpipe (Depends-on): Likewise.
2760         * modules/write (Depends-on): Likewise.
2761         * modules/accept (Depends-on): Likewise.
2762         * modules/bind (Depends-on): Likewise.
2763         * modules/connect (Depends-on): Likewise.
2764         * modules/gethostname (Depends-on): Likewise.
2765         * modules/getpeername (Depends-on): Likewise.
2766         * modules/getsockname (Depends-on): Likewise.
2767         * modules/getsockopt (Depends-on): Likewise.
2768         * modules/ioctl (Depends-on): Likewise.
2769         * modules/listen (Depends-on): Likewise.
2770         * modules/recv (Depends-on): Likewise.
2771         * modules/recvfrom (Depends-on): Likewise.
2772         * modules/send (Depends-on): Likewise.
2773         * modules/sendto (Depends-on): Likewise.
2774         * modules/setsockopt (Depends-on): Likewise.
2775         * modules/shutdown (Depends-on): Likewise.
2776         * modules/socket (Depends-on): Likewise.
2777         * modules/execute (Depends-on): Likewise.
2778         * modules/spawn-pipe (Depends-on): Likewise.
2779         * modules/flock (Depends-on): Likewise.
2780         * modules/fsync (Depends-on): Likewise.
2781         * modules/isapipe (Depends-on): Likewise.
2782         * tests/test-cloexec.c: Include msvc-nothrow.h.
2783         * tests/test-dup-safer.c: Likewise.
2784         * tests/test-dup2.c: Likewise.
2785         * tests/test-dup3.c: Likewise.
2786         * tests/test-fcntl.c: Likewise.
2787         * tests/test-pipe.c: Likewise.
2788         * tests/test-pipe2.c: Likewise.
2789         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
2790         * modules/unistd-safer-tests (Depends-on): Likewise.
2791         * modules/dup2-tests (Depends-on): Likewise.
2792         * modules/dup3-tests (Depends-on): Likewise.
2793         * modules/fcntl-tests (Depends-on): Likewise.
2794         * modules/pipe-posix-tests (Depends-on): Likewise.
2795         * modules/pipe2-tests (Depends-on): Likewise.
2796
2797 2011-09-23  Bruno Haible  <bruno@clisp.org>
2798
2799         dup2: Make code more maintainable.
2800         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
2801         (rpl_dup2): Use it.
2802         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
2803         * modules/dup2 (configure.ac): Invoke it.
2804         Reported by Paul Eggert.
2805
2806 2011-09-23  Bruno Haible  <bruno@clisp.org>
2807
2808         msvc-inval: Fix compilation error.
2809         * lib/msvc-inval.h: Include <excpt.h>.
2810
2811 2011-09-23  Bruno Haible  <bruno@clisp.org>
2812
2813         mkdir: Tweak for MSVC 9.
2814         * lib/sys_stat.in.h: Update comments.
2815         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
2816
2817         Tests for module 'chdir'.
2818         * modules/chdir-tests: New file.
2819         * tests/test-chdir.c: New file.
2820
2821         New module 'chdir'.
2822         * modules/chdir: New file.
2823         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
2824         (chdir): New declaration.
2825         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
2826         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
2827         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
2828         * tests/test-unistd-c++.cc: Check signature of chdir.
2829         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
2830         * modules/chdir-long (Depends-on): Add chdir.
2831         * modules/fchdir (Depends-on): Likewise.
2832         * modules/rename (Depends-on): Likewise.
2833         * modules/savewd (Depends-on): Likewise.
2834
2835         rmdir: Support for mingw, MSVC 9.
2836         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
2837         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
2838
2839         getcwd: Tweak for MSVC 9.
2840         * lib/unistd.in.h: Update comments.
2841         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
2842
2843 2011-09-22  Bruno Haible  <bruno@clisp.org>
2844
2845         strerror_r-posix: Avoid a link error on MSVC.
2846         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
2847         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
2848
2849 2011-09-22  Bruno Haible  <bruno@clisp.org>
2850
2851         select: Avoid link errors on MSVC.
2852         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
2853         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
2854         * modules/pselect (Link): Likewise.
2855         * NEWS: Mention the change.
2856         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
2857         test-select-stdin against $(LIB_SELECT).
2858         * modules/pselect-tests (Makefile.am): Link test-pselect against
2859         $(LIB_SELECT).
2860
2861 2011-09-22  Bruno Haible  <bruno@clisp.org>
2862
2863         select: Avoid compilation error on MSVC.
2864         * lib/select.c: Don't include <stdbool.h>.
2865
2866 2011-09-21  Bruno Haible  <bruno@clisp.org>
2867
2868         Consolidate all uses of PATH_MAX in *.m4 files.
2869         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
2870         macros.
2871         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
2872         and gl_PATHMAX_SNIPPET.
2873         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
2874         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
2875         * modules/chdir-long (Files): Add m4/pathmax.m4.
2876         * modules/getcwd (Files): Likewise.
2877
2878 2011-09-21  Bruno Haible  <bruno@clisp.org>
2879
2880         ftruncate: Un-deprecate, concentrate on Win32 support.
2881         * modules/ftruncate (Status, Notice): Remove sections.
2882         (Depends-on): Add largefile.
2883         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
2884         non-mingw platforms.
2885         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
2886         include <io.h>.
2887         * modules/perror-tests (Depends-on): Add ftruncate.
2888         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
2889         'ftruncate' module.
2890
2891 2011-09-21  Bruno Haible  <bruno@clisp.org>
2892
2893         Add dependencies to new dirent related modules.
2894         * modules/opendir (Depends-on): Add closedir.
2895         * modules/getcwd (Depends-on): Add opendir, closedir.
2896         * modules/dirent-safer-tests (Depends-on): Likewise.
2897         * modules/fdopendir-tests (Depends-on): Likewise.
2898         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
2899         * modules/renameat-tests (Depends-on): Likewise.
2900
2901 2011-09-21  Bruno Haible  <bruno@clisp.org>
2902
2903         opendir: Avoid compilation error on mingw.
2904         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
2905         * modules/opendir (Depends-on): Add unistd.
2906
2907 2011-09-21  Bruno Haible  <bruno@clisp.org>
2908
2909         ftruncate tests: Avoid a test failure on mingw.
2910         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
2911
2912 2011-09-21  Bruno Haible  <bruno@clisp.org>
2913
2914         select tests: Avoid test failures on OSF/1 5.1 and mingw.
2915         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
2916         native Windows.
2917
2918 2011-09-21  Bruno Haible  <bruno@clisp.org>
2919
2920         New module 'fdopen'.
2921         * lib/stdio.in.h (fdopen): New declaration.
2922         * lib/fdopen.c: New file.
2923         * m4/fdopen.m4: New file.
2924         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
2925         REPLACE_FDOPEN.
2926         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
2927         REPLACE_FDOPEN.
2928         * modules/fdopen: New file.
2929         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
2930         * tests/test-stdio-c++.cc: Check signature of fdopen.
2931         * doc/posix-functions/fdopen.texi: Mention the new module.
2932
2933 2011-09-21  Bruno Haible  <bruno@clisp.org>
2934
2935         unlockpt tests: Avoid test failure on NetBSD 5.1.
2936         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
2937         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
2938
2939 2011-09-21  Bruno Haible  <bruno@clisp.org>
2940
2941         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
2942         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
2943         * tests/test-getlogin_r.c (main): Likewise.
2944
2945 2011-09-20  Bruno Haible  <bruno@clisp.org>
2946
2947         time tests: Don't require pid_t.
2948         * doc/posix-headers/time.texi: Revert last change.
2949         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
2950         * tests/test-time.c: Comment out the check for pid_t.
2951
2952 2011-09-20  Bruno Haible  <bruno@clisp.org>
2953
2954         fsync tests: Avoid a test failure on mingw.
2955         * tests/test-fsync.c (main): Allow a failure with EIO.
2956
2957 2011-09-20  Bruno Haible  <bruno@clisp.org>
2958
2959         euidaccess: Update comments.
2960         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
2961
2962 2011-09-20  Bruno Haible  <bruno@clisp.org>
2963
2964         Ensure EBADF returns for socket functions on mingw.
2965         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
2966         descriptor is invalid.
2967         * lib/bind.c (rpl_bind): Likewise.
2968         * lib/connect.c (rpl_connect): Likewise.
2969         * lib/getpeername.c (rpl_getpeername): Likewise.
2970         * lib/getsockname.c (rpl_getsockname): Likewise.
2971         * lib/getsockopt.c (rpl_getsockopt): Likewise.
2972         * lib/listen.c (rpl_listen): Likewise.
2973         * lib/recv.c (rpl_recv): Likewise.
2974         * lib/recvfrom.c (rpl_recvfrom): Likewise.
2975         * lib/send.c (rpl_send): Likewise.
2976         * lib/sendto.c (rpl_sendto): Likewise.
2977         * lib/setsockopt.c (rpl_setsockopt): Likewise.
2978         * lib/shutdown.c (rpl_shutdown): Likewise.
2979
2980 2011-09-20  Bruno Haible  <bruno@clisp.org>
2981
2982         select tests: EBADF tests.
2983         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
2984         test_bad_fd): New functions.
2985         (test_function): Invoke also test_bad_fd.
2986
2987 2011-09-20  Bruno Haible  <bruno@clisp.org>
2988
2989         Tests for module 'posix_spawn_file_actions_addopen.
2990         * modules/posix_spawn_file_actions_addopen-tests: New file.
2991         * tests/test-posix_spawn_file_actions_addopen.c: New file.
2992
2993         Tests for module 'posix_spawn_file_actions_adddup2'.
2994         * modules/posix_spawn_file_actions_adddup2-tests: New file.
2995         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
2996
2997         Tests for module 'posix_spawn_file_actions_addclose'.
2998         * modules/posix_spawn_file_actions_addclose-tests: New file.
2999         * tests/test-posix_spawn_file_actions_addclose.c: New file.
3000
3001 2011-09-20  Bruno Haible  <bruno@clisp.org>
3002
3003         Tests for module 'unlockpt'.
3004         * modules/unlockpt-tests: New file.
3005         * tests/test-unlockpt.c: New file.
3006         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
3007
3008         Tests for module 'grantpt'.
3009         * modules/grantpt-tests: New file.
3010         * tests/test-grantpt.c: New file.
3011         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
3012
3013 2011-09-20  Bruno Haible  <bruno@clisp.org>
3014
3015         freopen tests: EBADF tests.
3016         * tests/test-freopen.c: Include errno.h, unistd.h.
3017         (main): Add tests for EBADF, commented out for the moment.
3018
3019         fclose tests: EBADF tests.
3020         * tests/test-fclose.c (main): Add tests for EBADF.
3021
3022         fflush tests: EBADF tests.
3023         * tests/test-fflush.c: Include errno.h, macros.h.
3024         (main): Add tests for EBADF.
3025
3026         ftello tests: EBADF tests.
3027         * tests/test-ftello4.sh: New file.
3028         * tests/test-ftello4.c: New file.
3029         * modules/ftello-tests (Files): Add them.
3030         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
3031
3032         fseeko tests: EBADF tests.
3033         * tests/test-fseeko4.sh: New file.
3034         * tests/test-fseeko4.c: New file.
3035         * modules/fseeko-tests (Files): Add them.
3036         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
3037
3038         Tests for function fputc().
3039         * modules/fputc-tests: New file.
3040         * tests/test-fputc.c: New file.
3041         * modules/stdio-tests (Depends-on): Add fputc-tests.
3042
3043         Tests for function fgetc().
3044         * modules/fgetc-tests: New file.
3045         * tests/test-fgetc.c: New file.
3046         * modules/stdio-tests (Depends-on): Add fgetc-tests.
3047
3048         Tests for function fdopen().
3049         * modules/fdopen-tests: New file.
3050         * tests/test-fdopen.c: New file.
3051         * modules/stdio-tests (Depends-on): Add fdopen-tests.
3052
3053         Tests for module 'vdprintf'.
3054         * modules/vdprintf-tests: New file.
3055         * tests/test-vdprintf.c: New file.
3056
3057         Tests for module 'dprintf'.
3058         * modules/dprintf-tests: New file.
3059         * tests/test-dprintf.c: New file.
3060
3061 2011-09-20  Bruno Haible  <bruno@clisp.org>
3062
3063         Tests for module 'ioctl'.
3064         * modules/ioctl-tests: New file.
3065         * tests/test-ioctl.c: New file.
3066
3067 2011-09-20  Bruno Haible  <bruno@clisp.org>
3068
3069         fcntl tests: EBADF tests.
3070         * tests/test-fcntl.c (main): Add more tests for EBADF.
3071
3072 2011-09-20  Bruno Haible  <bruno@clisp.org>
3073
3074         utimensat tests: EBADF tests.
3075         * tests/test-utimensat.c (main): Add tests for EBADF.
3076
3077         renameat tests: EBADF tests.
3078         * tests/test-renameat.c (main): Add tests for EBADF.
3079
3080         mkfifoat tests: EBADF tests.
3081         * tests/test-mkfifoat.c (main): Add tests for EBADF.
3082
3083         readlinkat tests: EBADF tests.
3084         * tests/test-readlinkat.c (main): Add tests for EBADF.
3085
3086         symlinkat tests: EBADF tests.
3087         * tests/test-symlinkat.c (main): Add tests for EBADF.
3088
3089         linkat tests: EBADF tests.
3090         * tests/test-linkat.c (main): Add tests for EBADF.
3091
3092         Tests for module 'faccessat'.
3093         * modules/faccessat-tests: New file.
3094         * tests/test-faccessat.c: New file.
3095
3096         fdopendir tests: EBADF tests.
3097         * tests/test-fdopendir.c (main): Add more tests for EBADF.
3098
3099         openat tests: EBADF tests.
3100         * tests/test-fchownat.c (main): Add tests for EBADF.
3101         * tests/test-fstatat.c (main): Likewise.
3102         * tests/test-mkdirat.c (main): Likewise.
3103         * tests/test-openat.c (main): Likewise.
3104         * tests/test-unlinkat.c (main): Likewise.
3105         * tests/test-fchmodat.c: New file.
3106         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
3107         (Makefile.am): Also run 'test-fchmodat'.
3108
3109 2011-09-20  Bruno Haible  <bruno@clisp.org>
3110
3111         utimens, futimens, fdutimensat tests: EBADF tests.
3112         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
3113
3114         Tests for function fstat().
3115         * modules/fstat-tests: New file.
3116         * tests/test-fstat.c: New file.
3117         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
3118
3119 2011-09-20  Bruno Haible  <bruno@clisp.org>
3120
3121         test-ttyname_r tests: EBADF tests.
3122         * tests/test-ttyname_r.c (main): Add tests for EBADF.
3123
3124         Tests for module 'isatty'.
3125         * modules/isatty-tests: New file.
3126         * tests/test-isatty.c: New file.
3127
3128         Tests for module 'write'.
3129         * modules/write-tests: New file.
3130         * tests/test-write.c: New file.
3131
3132         Tests for module 'read'.
3133         * modules/read-tests: New file.
3134         * tests/test-read.c: New file.
3135
3136         pwrite tests: EBADF tests.
3137         * tests/test-pwrite.c (main): Add tests for EBADF.
3138
3139         pread tests: EBADF tests.
3140         * tests/test-pread.c (main): Add tests for EBADF.
3141
3142         lseek tests: EBADF tests.
3143         * tests/test-lseek.c (main): Add more tests for EBADF.
3144
3145         Tests for module 'ftruncate'.
3146         * modules/ftruncate-tests: New file.
3147         * tests/test-ftruncate.sh: New file.
3148         * tests/test-ftruncate.c: New file.
3149
3150         fsync tests: EBADF tests.
3151         * tests/test-fsync.c (main): Add more tests for EBADF.
3152
3153         fdatasync tests: EBADF tests.
3154         * tests/test-fdatasync.c (main): Add more tests for EBADF.
3155
3156         Tests for module 'fchown'.
3157         * modules/fchown-tests: New file.
3158         * tests/test-fchown.c: New file.
3159
3160         Tests for module 'fchmod'.
3161         * modules/fchmod-tests: New file.
3162         * tests/test-fchmod.c: New file.
3163
3164         fchdir tests: EBADF tests.
3165         * tests/test-fchdir.c (main): Add more tests for EBADF.
3166
3167         dup2 tests: EBADF tests.
3168         * tests/test-dup2.c (main): Add more tests for EBADF.
3169
3170         Tests for module 'dup'.
3171         * modules/dup-tests: New file.
3172         * tests/test-dup.c: New file.
3173
3174         Tests for module 'close'.
3175         * modules/close-tests: New file.
3176         * tests/test-close.c: New file.
3177
3178 2011-09-20  Bruno Haible  <bruno@clisp.org>
3179
3180         Tests for module 'shutdown'.
3181         * modules/shutdown-tests: New file.
3182         * tests/test-shutdown.c: New file.
3183
3184         Tests for module 'setsockopt'.
3185         * modules/setsockopt-tests: New file.
3186         * tests/test-setsockopt.c: New file.
3187
3188         Tests for module 'sendto'.
3189         * modules/sendto-tests: New file.
3190         * tests/test-sendto.c: New file.
3191
3192         Tests for module 'send'.
3193         * modules/send-tests: New file.
3194         * tests/test-send.c: New file.
3195
3196         Tests for module 'recvfrom'.
3197         * modules/recvfrom-tests: New file.
3198         * tests/test-recvfrom.c: New file.
3199
3200         Tests for module 'recv'.
3201         * modules/recv-tests: New file.
3202         * tests/test-recv.c: New file.
3203
3204         Tests for module 'listen'.
3205         * modules/listen-tests: New file.
3206         * tests/test-listen.c: New file.
3207
3208         Tests for module 'getsockopt'.
3209         * modules/getsockopt-tests: New file.
3210         * tests/test-getsockopt.c: New file.
3211
3212         Tests for module 'getsockname'.
3213         * modules/getsockname-tests: New file.
3214         * tests/test-getsockname.c: New file.
3215
3216         Tests for module 'getpeername'.
3217         * modules/getpeername-tests: New file.
3218         * tests/test-getpeername.c: New file.
3219
3220         Tests for module 'connect'.
3221         * modules/connect-tests: New file.
3222         * tests/test-connect.c: New file.
3223
3224         Tests for module 'bind'.
3225         * modules/bind-tests: New file.
3226         * tests/test-bind.c: New file.
3227
3228         accept4 tests: Fix for native Windows.
3229         * tests/test-accept4.c: Include sockets.h.
3230         (main): Invoke gl_sockets_startup.
3231         * modules/accept4-tests (Depends-on): Add sockets.
3232
3233         accept tests: Fix for native Windows.
3234         * tests/test-accept.c: Include sockets.h.
3235         (main): Invoke gl_sockets_startup.
3236         * modules/accept-tests (Depends-on): Add sockets.
3237
3238 2011-09-19  Bruno Haible  <bruno@clisp.org>
3239
3240         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
3241         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
3242         do...while(0).
3243         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
3244         Suggested by Paul Eggert.
3245
3246 2011-09-19  Bruno Haible  <bruno@clisp.org>
3247
3248         sched: Ensure pid_t is defined.
3249         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
3250         not define pid_t.
3251         * lib/sched.in.h: Include <sys/types.h>.
3252         * doc/posix-headers/sched.texi: Mention the pid_t problem.
3253         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
3254
3255 2011-09-19  Bruno Haible  <bruno@clisp.org>
3256
3257         msvc-inval: Ensure the entire expansion is a single statement.
3258         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
3259         of braces.
3260
3261 2011-09-19  Jim Meyering  <meyering@redhat.com>
3262
3263         tests: use printf, not echo in init.sh's warn_ function
3264         * tests/init.sh (warn_): Use printf, not echo.  The latter would
3265         misbehave when given strings containing a backslash or starting
3266         with e.g., -n.  James Youngman suggested setting IFS.
3267
3268 2011-09-19  Eric Blake  <eblake@redhat.com>
3269
3270         futimens: enhance test
3271         * tests/test-futimens.h (test_futimens): Also check for EBADF on
3272         closed non-negative fd.
3273
3274         date: accept 'hence' as opposite of 'ago'
3275         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
3276         * tests/test-parse-datetime.c (main): Enhance test.
3277         Suggested by Jesse Wilson.
3278
3279 2011-09-19  Jim Meyering  <meyering@redhat.com>
3280
3281         getcwd: don't fail in a deep directory on a system without openat
3282         Before this change, getcwd would fail when called from a directory
3283         of depth PATH_MAX / 3 or greater.  That was due to the fact that
3284         the non-openat implementation used "..", "../..", "../../..", etc.
3285         to access ancestor directories.  With too many, that string would
3286         be longer than PATH_MAX.
3287         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
3288         using gnulib's openat replacement.
3289         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
3290         we're using the replacement function.
3291
3292 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
3293
3294         maint.mk: avoid warnings from perl about missing files
3295         * top/maint.mk (def_sym_regex): Ignore files listed in
3296         $(gl_other_headers_) that do not exist, say because a project
3297         does not use a corresponding module.
3298
3299 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
3300
3301         stat: use pathmax.h only if needed
3302         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
3303         This is better for Emacs, which does not have a mingw port and
3304         therefore can avoid the pathmax module.
3305
3306         utimens: remove dependency on dup2
3307         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
3308         to work around the Linux kernel bug.
3309         * modules/utimens (Depends-on): Remove dup2.
3310
3311 2011-09-18  Bruno Haible  <bruno@clisp.org>
3312
3313         inet_ntop, inet_pton: Look for it also in libresolv.
3314         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
3315         libnsl, search for it in libresolv.
3316         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
3317         Needed on Solaris 7.
3318
3319 2011-09-18  Bruno Haible  <bruno@clisp.org>
3320
3321         accept, accept4 tests: Avoid link error on Solaris.
3322         * modules/accept-tests (Makefile.am): Link test-accept against
3323         $(LIBSOCKET).
3324         * modules/accept4-tests (Makefile.am): Link test-accept4 against
3325         $(LIBSOCKET).
3326
3327         accept4: Avoid link error on Solaris.
3328         * modules/accept4 (Link): New section.
3329
3330         socket functions: Avoid link errors on Solaris.
3331         * modules/accept (Depends-on): Add socketlib.
3332         (Link): New section.
3333         * modules/bind (Depends-on): Add socketlib.
3334         (Link): New section.
3335         * modules/connect (Depends-on): Add socketlib.
3336         (Link): New section.
3337         * modules/getpeername (Depends-on): Add socketlib.
3338         (Link): New section.
3339         * modules/getsockname (Depends-on): Add socketlib.
3340         (Link): New section.
3341         * modules/getsockopt (Depends-on): Add socketlib.
3342         (Link): New section.
3343         * modules/listen (Depends-on): Add socketlib.
3344         (Link): New section.
3345         * modules/recv (Depends-on): Add socketlib.
3346         (Link): New section.
3347         * modules/recvfrom (Depends-on): Add socketlib.
3348         (Link): New section.
3349         * modules/send (Depends-on): Add socketlib.
3350         (Link): New section.
3351         * modules/sendto (Depends-on): Add socketlib.
3352         (Link): New section.
3353         * modules/setsockopt (Depends-on): Add socketlib.
3354         (Link): New section.
3355         * modules/shutdown (Depends-on): Add socketlib.
3356         (Link): New section.
3357         * modules/socket (Depends-on): Add socketlib.
3358         (Link): New section.
3359
3360 2011-09-18  Bruno Haible  <bruno@clisp.org>
3361
3362         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
3363         * tests/test-ptsname.c (main): Terminate the test if it takes longer
3364         than 5 seconds.
3365         * modules/ptsname-tests (configure.ac): Test for alarm.
3366
3367 2011-09-18  Bruno Haible  <bruno@clisp.org>
3368
3369         posix_spawn_file_actions_add*: Fix module dependencies.
3370         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
3371         posix_spawn_file_actions_init.
3372         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
3373         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
3374
3375 2011-09-18  Bruno Haible  <bruno@clisp.org>
3376
3377         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
3378         * tests/test-rename.h (test_rename): Allow error code EEXIST.
3379         * tests/test-renameat.c (main): Likewise.
3380
3381 2011-09-18  Bruno Haible  <bruno@clisp.org>
3382
3383         Tests for module 'accept4'.
3384         * modules/accept4-tests: New file.
3385         * tests/test-accept4.c: New file.
3386
3387 2011-09-18  Bruno Haible  <bruno@clisp.org>
3388
3389         Tests for module 'accept'.
3390         * modules/accept-tests: New file.
3391         * tests/test-accept.c: New file.
3392
3393 2011-09-18  Bruno Haible  <bruno@clisp.org>
3394
3395         dup2: Support for MSVC.
3396         * lib/dup2.c: Include msvc-inval.h.
3397         (rpl_dup2): Handle invalid parameter notifications during dup2 and
3398         _get_osfhandle calls.
3399         * modules/dup2 (Depends-on): Add msvc-inval.
3400         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
3401
3402         New module 'msvc-inval'.
3403         * lib/msvc-inval.h: New file.
3404         * lib/msvc-inval.c: New file.
3405         * m4/msvc-inval.m4: New file.
3406         * modules/msvc-inval: New file.
3407
3408 2011-09-17  Bruno Haible  <bruno@clisp.org>
3409
3410         Tests for module 'pclose'.
3411         * modules/pclose-tests: New file.
3412
3413         New module 'pclose'.
3414         * lib/stdio.in.h (pclose): New declaration.
3415         * lib/pclose.c: New file.
3416         * m4/pclose.m4: New file.
3417         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
3418         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
3419         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
3420         * modules/pclose: New file.
3421         * modules/popen-tests (Depends-on): Add pclose.
3422         * modules/popen-safer-tests (Depends-on): Likewise.
3423         * doc/posix-functions/pclose.texi: Mention the new module.
3424
3425 2011-09-17  Bruno Haible  <bruno@clisp.org>
3426
3427         popen: Support for MSVC.
3428         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
3429         * lib/popen.c (popen): Provide alternate definition for native Windows.
3430         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
3431         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
3432         * modules/popen (Depends-on, configure.ac): Update condition.
3433         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
3434         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
3435         fixed.
3436
3437 2011-09-17  Bruno Haible  <bruno@clisp.org>
3438
3439         isnanl, isnand, isnanf: Work around MSVC bug.
3440         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
3441
3442 2011-09-17  Bruno Haible  <bruno@clisp.org>
3443
3444         sys_socket tests: Fix recent mistake.
3445         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
3446
3447 2011-09-17  Bruno Haible  <bruno@clisp.org>
3448
3449         putenv: Support for MSVC.
3450         * modules/putenv (Depends-on): Add environ.
3451         * lib/putenv.c (environ): Disable declaration.
3452         * lib/unistd.in.h: Update comment.
3453
3454 2011-09-17  Bruno Haible  <bruno@clisp.org>
3455
3456         math: Avoid macro redefinition warnings on MSVC.
3457         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
3458         Undefine before redefining.
3459
3460 2011-09-17  Bruno Haible  <bruno@clisp.org>
3461
3462         doc: Mention functions which are declared as macros.
3463         * doc/posix-functions/*[fl].texi: Mention that some functions are
3464         defined as macros with arguments only.
3465
3466 2011-09-17  Bruno Haible  <bruno@clisp.org>
3467
3468         Add dependencies to new dirent related modules.
3469         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
3470         * modules/fts (Depends-on): Likewise.
3471         * modules/glob (Depends-on): Likewise.
3472         * modules/savedir (Depends-on): Likewise.
3473         * modules/scandir (Depends-on): Likewise.
3474         * modules/dirent-safer (Depends-on): Add opendir, closedir.
3475         * modules/fdopendir (Depends-on): Add opendir.
3476
3477 2011-09-17  Bruno Haible  <bruno@clisp.org>
3478
3479         inet_pton: Support for MSVC on Windows Vista or newer.
3480         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
3481         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
3482         HAVE_DECL_INET_PTON is defined.
3483         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
3484         On platforms with <winsock2.h>, test whether inet_pton is declared in
3485         <ws2tcpip.h>. If so, arrange to replace it.
3486         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
3487         REPLACE_INET_PTON.
3488         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
3489         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
3490         (Depends-on, configure.ac): Update condition.
3491         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
3492
3493 2011-09-17  Bruno Haible  <bruno@clisp.org>
3494
3495         inet_ntop: Support for MSVC on Windows Vista or newer.
3496         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
3497         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
3498         HAVE_DECL_INET_NTOP is defined.
3499         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
3500         On platforms with <winsock2.h>, test whether inet_ntop is declared in
3501         <ws2tcpip.h>. If so, arrange to replace it.
3502         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
3503         REPLACE_INET_NTOP.
3504         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
3505         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
3506         (Depends-on, configure.ac): Update condition.
3507         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
3508
3509 2011-09-16  Eric Blake  <eblake@redhat.com>
3510
3511         test-fsync: yet another enhancement
3512         * tests/test-fsync.c (main): Also test behavior on read-only text
3513         file.
3514
3515 2011-09-16  Bruno Haible  <bruno@clisp.org>
3516
3517         Enhance fsync, fdatasync tests.
3518         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
3519         * tests/test-fdatasync.c (main): Likewise.
3520
3521 2011-09-16  Bruno Haible  <bruno@clisp.org>
3522
3523         Support for MSVC compiler: Ensure mode_t gets defined.
3524         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
3525         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
3526         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
3527         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
3528         * tests/test-fcntl-h.c: Check that mode_t is defined.
3529         * tests/test-sys_stat.c: Likewise.
3530         * tests/test-sys_types.c: Likewise.
3531         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
3532         * doc/posix-headers/sys_stat.texi: Likewise.
3533         * doc/posix-headers/sys_types.texi: Likewise.
3534
3535 2011-09-16  Bruno Haible  <bruno@clisp.org>
3536
3537         sys_stat: Support for MSVC.
3538         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
3539         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
3540         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
3541         MSVC.
3542
3543 2011-09-16  Bruno Haible  <bruno@clisp.org>
3544
3545         Support for MSVC compiler: Ensure off_t gets defined.
3546         * lib/unistd.in.h: Include <sys/types.h>.
3547         * tests/test-fcntl-h.c: Check that off_t is defined.
3548         * tests/test-sys_stat.c: Likewise.
3549         * tests/test-sys_types.c: Likewise.
3550
3551 2011-09-16  Eric Blake  <eblake@redhat.com>
3552
3553         fdatasync: port to Solaris
3554         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
3555         * modules/fdatasync (Link): Document it.
3556         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
3557
3558         fdatasync: port to MacOS X 10.7
3559         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
3560         declared.
3561         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
3562         * modules/unistd (Makefile.am): Substitute it.
3563         * lib/unistd.in.h (fdatasync): Declare on MacOS.
3564         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
3565
3566         fdatasync: minor improvements
3567         * modules/fdatasync (Depends-on): Add condition for fsync.
3568         * lib/fdatasync.c (fdatasync): Add comment.
3569         * tests/test-unistd-c++.cc: Test fdatasync.
3570
3571         unistd: update refs to newer POSIX
3572         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
3573         Suggested by Bruno Haible.
3574
3575         fdatasync: new module
3576         * modules/fsync (Description): Document difference to fdatasync.
3577         * modules/fdatasync: New module.
3578         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
3579         * lib/fdatasync.c (fdatasync): Likewise.
3580         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
3581         defaults.
3582         * modules/unistd (Makefile.am): Set witnesses.
3583         * lib/unistd.in.h (fdatasync): Declare.
3584         * MODULES.html.sh: Document it.
3585         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
3586         * modules/fdatasync-tests: New test.
3587         * tests/test-fdatasync.c: Likewise.
3588
3589 2011-09-16  Eric Blake  <eblake@redhat.com>
3590
3591         test-fsync: enhance tests
3592         * modules/fsync-tests (Depends-on): Add errno, for mingw.
3593         * tests/test-fsync.c (main): Enhance test.
3594
3595 2011-09-15  Bruno Haible  <bruno@clisp.org>
3596
3597         Support for MSVC compiler: Ensure ssize_t gets defined.
3598         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
3599         * doc/posix-headers/stdio.texi: Likewise.
3600         * modules/stdio (Depends-on): Add ssize_t.
3601         * modules/sys_socket (Depends-on): Likewise.
3602         * modules/sys_types (Depends-on): Likewise.
3603         * modules/sys_uio (Depends-on): Likewise.
3604         * modules/unistd (Depends-on): Likewise.
3605         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
3606         * tests/test-sys_types.c: Check that ssize_t is defined.
3607
3608 2011-09-14  Bruno Haible  <bruno@clisp.org>
3609
3610         Avoid using #, the m4 comment starter character, near brackets.
3611         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
3612         delimiter character in sed expressions.
3613         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
3614         Suggested by Eric Blake.
3615
3616         Properly quote AC_CHECK_DECLS' 4th argument.
3617         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
3618         argument.
3619         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
3620         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
3621         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
3622         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
3623         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
3624         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
3625         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
3626         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
3627         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
3628         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
3629         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
3630         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
3631         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
3632         * m4/isinf.m4 (gl_ISINF): Likewise.
3633         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
3634         * m4/readutmp.m4 (gl_READUTMP): Likewise.
3635         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
3636         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
3637         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
3638         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
3639         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
3640         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
3641         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
3642         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
3643         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
3644         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
3645         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
3646         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
3647         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
3648         Reported by Eric Blake.
3649
3650         Properly quote AC_CHECK_DECL's 4th argument.
3651         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
3652         argument.
3653         * m4/argp.m4 (gl_ARGP): Likewise.
3654         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
3655         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
3656         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
3657         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
3658         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
3659         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
3660         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
3661         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
3662         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
3663         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
3664         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
3665         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
3666         Reported by Eric Blake.
3667
3668 2011-09-14  Eric Blake  <eblake@redhat.com>
3669
3670         opendir: avoid compile warning
3671         * lib/opendir.c (includes): Always include errno.h.
3672         Reported by Tatsuro MATSUOKA.
3673
3674 2011-09-14  Jim Meyering  <meyering@redhat.com>
3675
3676         maint.mk: sc_tight_scope: propagate failure from sub-make
3677         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
3678         Reported by Martin von Gagern.
3679
3680 2011-09-13  Bruno Haible  <bruno@clisp.org>
3681
3682         tempname: Support for MSVC.
3683         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
3684         MSVC.
3685         * modules/tempname (Depends-on): Add fcntl-h.
3686
3687 2011-09-13  Bruno Haible  <bruno@clisp.org>
3688
3689         sys_time: Support for MSVC.
3690         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
3691         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
3692         include <winsock2.h>.
3693         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
3694         function declarations that collide with POSIX.
3695         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
3696         (Makefile.am): Substitute HAVE_WINSOCK2_H.
3697
3698 2011-09-13  Bruno Haible  <bruno@clisp.org>
3699
3700         stat: Support for MSVC.
3701         * lib/stat.c: Include pathmax.h.
3702         * modules/stat (Depends-on): Add pathmax.
3703
3704         pathmax: Support for native Windows.
3705         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
3706
3707 2011-09-12  Bruno Haible  <bruno@clisp.org>
3708
3709         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
3710         * lib/dirent.in.h (struct dirent): New type.
3711         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
3712         DT_WHT): New macros.
3713         (DIR): New type.
3714         (opendir, closedir): Declare only if the module 'opendir' is enabled.
3715         (readdir, rewinddir): New declarations.
3716         * lib/dirent-private.h: New file.
3717         * lib/opendir.c: New file.
3718         * lib/readdir.c: New file.
3719         * lib/rewinddir.c: New file.
3720         * lib/closedir.c: New file.
3721         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
3722         * m4/opendir.m4: New file.
3723         * m4/readdir.m4: New file.
3724         * m4/rewinddir.m4: New file.
3725         * m4/closedir.m4: New file.
3726         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
3727         REPLACE_CLOSEDIR here.
3728         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
3729         readdir, rewinddir are declared.
3730         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
3731         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
3732         HAVE_REWINDDIR, HAVE_CLOSEDIR.
3733         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
3734         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
3735         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
3736         * modules/opendir: New file.
3737         * modules/readdir: New file.
3738         * modules/rewinddir: New file.
3739         * modules/closedir: New file.
3740         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
3741         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
3742         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
3743         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
3744         * NEWS: Mention the 'fchdir' change.
3745
3746 2011-09-11  Bruno Haible  <bruno@clisp.org>
3747
3748         asm-underscore.m4: Support for MSVC.
3749         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
3750         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
3751
3752 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
3753
3754         Doc about crypt functions.
3755         * doc/posix-functions/crypt.texi: Expand range of glibc versions
3756         needing for _GNU_SOURCE to get crypt.
3757         * doc/posix-functions/encrypt.texi: Likewise.
3758         * doc/posix-functions/setkey.texi: Likewise.
3759
3760 2011-09-11  Bruno Haible  <bruno@clisp.org>
3761
3762         doc: Update regarding MSVC 9.
3763         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
3764         tested".
3765         * doc/posix-functions/*.texi: Update with info about MSVC 9.
3766         * doc/posix-headers/*.texi: Likewise.
3767         * doc/pastposix-functions/*.texi: Likewise.
3768         * doc/glibc-functions/*.texi: Likewise.
3769         * doc/glibc-headers/*.texi: Likewise.
3770
3771 2011-09-11  Bruno Haible  <bruno@clisp.org>
3772
3773         unistd et al.: Don't assume <unistd.h> exists.
3774         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
3775         does not exist.
3776         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
3777         exist. But include <stdlib.h>.
3778         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
3779         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
3780         symlink() does not exist.
3781         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
3782         include <io.h> instead.
3783         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
3784         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
3785         include <direct.h> instead.
3786         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
3787         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
3788         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
3789         <io.h> instead.
3790         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
3791         correctly if the system does not have hard links.
3792         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
3793         <direct.h> instead.
3794         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
3795         it when looking for function declarations.
3796         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
3797         <direct.h> and <io.h> instead.
3798         * doc/posix-headers/unistd.texi: More details about MSVC problem.
3799
3800 2011-09-11  Bruno Haible  <bruno@clisp.org>
3801
3802         strcase: Support for MSVC.
3803         * modules/strcase (Status, Notice): Remove obsoletion mark.
3804         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
3805         * doc/posix-functions/strncasecmp.texi: Likewise.
3806
3807         strings: Don't assume <strings.h> exists.
3808         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
3809         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
3810         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
3811         * doc/posix-headers/strings.texi: Mention the MSVC problem.
3812
3813 2011-09-11  Bruno Haible  <bruno@clisp.org>
3814
3815         dirent: Don't assume <dirent.h> exists.
3816         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
3817         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
3818         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
3819         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
3820
3821 2011-09-11  Bruno Haible  <bruno@clisp.org>
3822
3823         Fix wint_t on MSVC.
3824         * lib/wchar.in.h (wint_t): On MSVC, override it.
3825         * lib/wctype.in.h (wint_t): Likewise.
3826         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
3827         MSVC.
3828         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
3829         * doc/posix-headers/wctype.texi: Likewise.
3830
3831 2011-09-11  Bruno Haible  <bruno@clisp.org>
3832
3833         sys_types: Fix typo.
3834         * lib/sys_types.in.h: Fix typo in comment.
3835         Reported by Paul Eggert.
3836
3837         Support for MSVC compiler: Ensure size_t gets defined.
3838         * modules/strings (Depends-on): Add 'sys_types'.
3839         * modules/sys_uio (Depends-on): Likewise.
3840         * lib/sys_uio.in.h: Update comment.
3841
3842         C++ tests for module 'sys_types'.
3843         * modules/sys_types-c++-tests: New file.
3844         * tests/test-sys_types-c++.cc: New file.
3845
3846         Tests for module 'sys_types'.
3847         * modules/sys_types-tests: New file.
3848         * tests/test-sys_types.c: New file.
3849
3850         New module 'sys_types'.
3851         * lib/sys_types.in.h: New file.
3852         * m4/sys_types_h.m4: New file.
3853         * modules/sys_types: New file.
3854         * doc/posix-headers/sys_types.texi: Mention the new module and the
3855         size_t problem on MSVC 9.
3856
3857 2011-09-11  Bruno Haible  <bruno@clisp.org>
3858
3859         Support for MSVC compiler: Avoid division by a literal 0.
3860         * lib/math.in.h (NAN): Define through a function call also on MSVC.
3861         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
3862         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
3863         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
3864         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
3865         * tests/infinity.h: New file.
3866         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
3867         on MSVC.
3868         * tests/test-ceilf1.c: Include infinity.h.
3869         (main): Use Infinityf.
3870         * tests/test-ceil1.c: Include infinity.h.
3871         (main): Use Infinityd.
3872         * tests/test-ceill.c: Include infinity.h.
3873         (main): Use Infinityl.
3874         * tests/test-dprintf-posix.c: Include infinity.h.
3875         (test_function): Use Infinityd.
3876         * tests/test-floorf1.c: Include infinity.h.
3877         (main): Use Infinityf.
3878         * tests/test-floor1.c: Include infinity.h.
3879         (main): Use Infinityd.
3880         * tests/test-floorl.c: Include infinity.h.
3881         (main): Use Infinityl.
3882         * tests/test-fprintf-posix.c: Include infinity.h.
3883         (test_function): Use Infinityd.
3884         * tests/test-frexp.c: Include infinity.h.
3885         (main): Use Infinityd.
3886         * tests/test-frexpl.c: Include infinity.h.
3887         (main): Use Infinityl.
3888         * tests/test-isfinite.c: Include infinity.h.
3889         (test_isfinitef): Use Infinityf.
3890         (test_isfinited): Use Infinityd.
3891         (test_isfinitel): Use Infinityl.
3892         * tests/test-isinf.c: Include infinity.h.
3893         (test_isinff): Use Infinityf.
3894         (test_isinfd): Use Infinityd.
3895         (test_isinfl): Use Infinityl.
3896         * tests/test-isnan.c: Include infinity.h.
3897         (test_float): Use Infinityf.
3898         (test_double): Use Infinityd.
3899         (test_long_double): Use Infinityl.
3900         * tests/test-isnanf.h: Include infinity.h.
3901         (main): Use Infinityf.
3902         * tests/test-isnand.h: Include infinity.h.
3903         (main): Use Infinityd.
3904         * tests/test-isnanl.h: Include infinity.h.
3905         (main): Use Infinityl.
3906         * tests/test-ldexpl.c: Include infinity.h.
3907         (main): Use Infinityl.
3908         * tests/test-printf-posix.h: Include infinity.h.
3909         (test_function): Use Infinityd.
3910         * tests/test-roundf1.c: Include infinity.h.
3911         (main): Use Infinityf.
3912         * tests/test-round1.c: Include infinity.h.
3913         (main): Use Infinityd.
3914         * tests/test-roundl.c: Include infinity.h.
3915         (main): Use Infinityl.
3916         * tests/test-signbit.c: Include infinity.h.
3917         (test_signbitf): Use Infinityf.
3918         (test_signbitd): Use Infinityd.
3919         (test_signbitl): Use Infinityl.
3920         * tests/test-snprintf-posix.h: Include infinity.h.
3921         (test_function): Use Infinityd, Infinityl.
3922         * tests/test-sprintf-posix.h: Include infinity.h.
3923         (test_function): Use Infinityd, Infinityl.
3924         * tests/test-truncf1.c: Include infinity.h.
3925         (main): Use Infinityf.
3926         * tests/test-trunc1.c: Include infinity.h.
3927         (main): Use Infinityd.
3928         * tests/test-truncl.c: Include infinity.h.
3929         (main): Use Infinityl.
3930         * tests/test-vasnprintf-posix.c: Include infinity.h.
3931         (test_function): Use Infinityd, Infinityl.
3932         * tests/test-vasprintf-posix.c: Include infinity.h.
3933         (test_function): Use Infinityd, Infinityl.
3934         * modules/ceilf-tests (Files): Add tests/infinity.h.
3935         * modules/ceil-tests (Files): Likewise.
3936         * modules/ceill-tests (Files): Likewise.
3937         * modules/dprintf-posix-tests (Files): Likewise.
3938         * modules/floorf-tests (Files): Likewise.
3939         * modules/floor-tests (Files): Likewise.
3940         * modules/floorl-tests (Files): Likewise.
3941         * modules/fprintf-posix-tests (Files): Likewise.
3942         * modules/frexp-tests (Files): Likewise.
3943         * modules/frexp-nolibm-tests (Files): Likewise.
3944         * modules/frexpl-tests (Files): Likewise.
3945         * modules/frexpl-nolibm-tests (Files): Likewise.
3946         * modules/isfinite-tests (Files): Likewise.
3947         * modules/isinf-tests (Files): Likewise.
3948         * modules/isnan-tests (Files): Likewise.
3949         * modules/isnanf-tests (Files): Likewise.
3950         * modules/isnanf-nolibm-tests (Files): Likewise.
3951         * modules/isnand-tests (Files): Likewise.
3952         * modules/isnand-nolibm-tests (Files): Likewise.
3953         * modules/isnanl-tests (Files): Likewise.
3954         * modules/isnanl-nolibm-tests (Files): Likewise.
3955         * modules/ldexpl-tests (Files): Likewise.
3956         * modules/printf-posix-tests (Files): Likewise.
3957         * modules/roundf-tests (Files): Likewise.
3958         * modules/round-tests (Files): Likewise.
3959         * modules/roundl-tests (Files): Likewise.
3960         * modules/signbit-tests (Files): Likewise.
3961         * modules/snprintf-posix-tests (Files): Likewise.
3962         * modules/sprintf-posix-tests (Files): Likewise.
3963         * modules/truncf-tests (Files): Likewise.
3964         * modules/trunc-tests (Files): Likewise.
3965         * modules/truncl-tests (Files): Likewise.
3966         * modules/vasnprintf-posix-tests (Files): Likewise.
3967         * modules/vasprintf-posix-tests (Files): Likewise.
3968         * modules/vdprintf-posix-tests (Files): Likewise.
3969         * modules/vfprintf-posix-tests (Files): Likewise.
3970         * modules/vprintf-posix-tests (Files): Likewise.
3971         * modules/vsnprintf-posix-tests (Files): Likewise.
3972         * modules/vsprintf-posix-tests (Files): Likewise.
3973         * modules/xprintf-posix-tests (Files): Likewise.
3974
3975 2011-09-11  Bruno Haible  <bruno@clisp.org>
3976
3977         Ensure pid_t gets defined.
3978         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
3979         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
3980         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
3981         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
3982         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
3983         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
3984         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
3985         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
3986         * tests/test-fcntl-h.c: Check that pid_t is defined.
3987         * tests/test-sched.c: Likewise.
3988         * tests/test-termios.c: Likewise.
3989         * tests/test-time.c: Likewise.
3990         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
3991         * doc/posix-headers/signal.texi: Likewise.
3992         * doc/posix-headers/sys_types.texi: Likewise.
3993         * doc/posix-headers/time.texi: Likewise.
3994
3995 2011-09-11  Bruno Haible  <bruno@clisp.org>
3996
3997         acl: Fix compilation on Solaris 10 (older version).
3998         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
3999         of ACE_EVERYONE.
4000         * lib/set-mode-acl.c (qset_acl): Likewise.
4001         Reported by Christian Jullien <eligis@orange.fr>.
4002
4003 2011-09-10  Bruno Haible  <bruno@clisp.org>
4004
4005         iconv, unsetenv: Add support for MSVC compiler.
4006         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
4007         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
4008
4009 2011-09-10  Bruno Haible  <bruno@clisp.org>
4010
4011         *printf: Add support for MSVC compiler.
4012         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
4013         handles the exception caused by the %n directive. When cross-compiling,
4014         guess no on native Windows.
4015         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
4016         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
4017         emulate it through vsnprintf.
4018         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
4019         * doc/posix-functions/dprintf.texi: Update documentation regarding
4020         MSVC 9.
4021         * doc/posix-functions/fprintf.texi: Likewise.
4022         * doc/posix-functions/printf.texi: Likewise.
4023         * doc/posix-functions/snprintf.texi: Likewise.
4024         * doc/posix-functions/sprintf.texi: Likewise.
4025         * doc/posix-functions/swprintf.texi: Likewise.
4026         * doc/posix-functions/vdprintf.texi: Likewise.
4027         * doc/posix-functions/vfprintf.texi: Likewise.
4028         * doc/posix-functions/vprintf.texi: Likewise.
4029         * doc/posix-functions/vsnprintf.texi: Likewise.
4030         * doc/posix-functions/vsprintf.texi: Likewise.
4031         * doc/glibc-functions/asprintf.texi: Likewise.
4032         * doc/glibc-functions/obstack_printf.texi: Likewise.
4033         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
4034         * doc/glibc-functions/vasprintf.texi: Likewise.
4035
4036 2011-09-10  Bruno Haible  <bruno@clisp.org>
4037
4038         nocrash: Add support for native Windows.
4039         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
4040
4041 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
4042             Bruno Haible  <bruno@clisp.org>
4043
4044         absolute-header, include-next: Add support for MSVC compiler.
4045         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
4046         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
4047         directory separator in #line directives.
4048         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
4049         recognize also backslash as directory separator in #line directives.
4050
4051 2011-09-08  Jim Meyering  <meyering@redhat.com>
4052
4053         maint.mk: mark the post-release commit log with "maint: " prefix
4054         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
4055         one-line commit-log summary.
4056
4057 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
4058             Bruno Haible  <bruno@clisp.org>
4059
4060         Doc about crypt functions.
4061         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
4062         systems.
4063         * doc/posix-functions/encrypt.texi: Likewise.
4064         * doc/posix-functions/setkey.texi: Likewise.
4065
4066 2011-09-08  Simon Josefsson  <simon@josefsson.org>
4067
4068         * lib/gc.h: Fix copyright header.
4069
4070 2011-09-07  Bruno Haible  <bruno@clisp.org>
4071
4072         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
4073         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
4074         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
4075
4076 2011-09-07  Bruno Haible  <bruno@clisp.org>
4077
4078         openat: Work around compilation error with OSF/1 5.1 DTK cc.
4079         * lib/fopen.c: Use different syntax for include of <stdio.h>.
4080         * lib/freopen.c: Likewise.
4081         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
4082         * lib/lstat.c: Likewise.
4083         * lib/stat.c: Likewise.
4084         * lib/open.c: Use different syntax for include of <fcntl.h>.
4085         * lib/openat.c: Include fcntl.h again, explicitly.
4086
4087 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
4088
4089         parse-datetime: document the newly accepted format
4090         * doc/parse-datetime.texi (Combined date and time of day items):
4091         New section.
4092
4093 2011-09-06  Bruno Haible  <bruno@clisp.org>
4094
4095         acl: Fix a test failure on newer Solaris 10 with ZFS.
4096         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
4097         ENOSYS as no ACL.
4098         Reported by Jim Meyering.
4099
4100 2011-09-06  Bruno Haible  <bruno@clisp.org>
4101
4102         acl: Update for AIX >= 5.3 with NFS.
4103         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
4104         ENOSYS as no ACL.
4105
4106         acl: Fix a test failure on AIX >= 5.3 with NFS.
4107         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
4108         as no ACL.
4109
4110 2011-09-06  Bruno Haible  <bruno@clisp.org>
4111
4112         acl: Fix a test failure on IRIX 6.5 with NFS.
4113         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
4114         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
4115         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
4116         * lib/copy-acl.c (qcopy_acl): Likewise.
4117
4118 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
4119
4120         openat: port to AIX 7.1 with large files
4121         AIX 7.1 does a "#define openat open64at" if large files are in use,
4122         so we can't simply #undef openat.  Use the orig_openat trick (similar
4123         to orig_open in lib/open.c) to work around the problem.  Problem
4124         reported by Kevin Brott for GNU tar, in the thread containing
4125         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00032.html>.
4126         * lib/openat.c (__need_system_fcntl_h): Define first.
4127         Include <fcntl.h> and <sys/types.h> before undefining.
4128         (orig_openat) [HAVE_OPENAT]: New inline function.
4129         (openat) [HAVE_OPENAT]: Do not undef.
4130         (rpl_openat): Use orig_openat, not openat.
4131
4132 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
4133             Bruno Haible  <bruno@clisp.org>
4134
4135         acl: Avoid errors on NonStop Kernel.
4136         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
4137         ENOTSUP errors.
4138
4139 2011-09-05  Bruno Haible  <bruno@clisp.org>
4140
4141         acl: Clean up Solaris code.
4142         * lib/acl-internal.h: Remove no-op #if.
4143         * lib/file-has-acl.c: Likewise.
4144         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
4145         * lib/copy-acl.c (qcopy_acl): Likewise.
4146
4147 2011-09-05  Bruno Haible  <bruno@clisp.org>
4148
4149         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
4150         binaries built on the original Solaris 10.
4151         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
4152         trivial.
4153
4154 2011-09-05  Bruno Haible  <bruno@clisp.org>
4155
4156         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
4157         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
4158         10.
4159         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
4160         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
4161         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
4162         instead of acl_get, facl_get, acl_set, facl_set.
4163
4164 2011-09-05  Bruno Haible  <bruno@clisp.org>
4165
4166         copy-file: Try unit tests on more file systems.
4167         * tests/test-copy-file-1.sh: New file.
4168         * tests/test-copy-file-2.sh: New file.
4169         * modules/copy-file-tests (Files): Add them.
4170         (Makefile.am): Add them to TESTS.
4171
4172         acl: Try unit tests on more file systems.
4173         * tests/test-file-has-acl-1.sh: New file.
4174         * tests/test-file-has-acl-2.sh: New file.
4175         * tests/test-set-mode-acl-1.sh: New file.
4176         * tests/test-set-mode-acl-2.sh: New file.
4177         * tests/test-copy-acl-1.sh: New file.
4178         * tests/test-copy-acl-2.sh: New file.
4179         * modules/acl-tests (Files): Add them.
4180         (Makefile.am): Add them to TESTS.
4181
4182 2011-09-04  Bruno Haible  <bruno@clisp.org>
4183
4184         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
4185         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
4186         10.
4187         (OLD_ALLOW, OLD_DENY): New macros.
4188         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
4189         ACE_ACCESS_ALLOWED_ACE_TYPE.
4190         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
4191         ACE_ACCESS_DENIED_ACE_TYPE.
4192         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
4193         (NEW_ACE_EXECUTE): Fix value.
4194         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
4195         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
4196         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
4197         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
4198         NEW_ACE_SYNCHRONIZE): New macros.
4199         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
4200         instead of acl_fromtext, acl_set, facl_set.
4201         Fixes a coreutils/tests/cp/perm failure.
4202
4203 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
4204
4205         openat: test for fstatat (..., 0) bug
4206         Further testing with tar suggests that fstatat (..., 0)
4207         does not work in general, on AIX 7.1; see
4208         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00023.html>.
4209         So, give up entirely on AIX 7.1's fstatat, and fall back on our
4210         replacement fstatat (which is what older AIX releases were using
4211         anyway).
4212         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
4213         use is now changed to orig_fstatat.  This was probably the right
4214         thing to do anyway.
4215         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
4216         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
4217         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
4218         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
4219         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
4220         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
4221         if the bug is found.
4222
4223         openat: test for fstatat (AT_FDCWD, ..., 0) bug
4224         This tests for another fstatat bug on AIX 7.1:
4225         fstatat (AT_FDCWD, ..., 0) does not work.  See
4226         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00015.html>.
4227         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
4228         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
4229         (rpl_fstatat): Adjust so that it works around either (or both)
4230         bugs if present.
4231         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
4232
4233 2011-09-03  Karl Berry  <karl@gnu.org>
4234
4235         * doc/regex.texi (Character Class Operators): Avoid literal ":"
4236         in index entries.
4237
4238 2011-09-02  Bruno Haible  <bruno@clisp.org>
4239
4240         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
4241         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
4242         values of AR, ARFLAGS, RANLIB.
4243         Reported by John W. Eaton <jwe@gnu.org> for Octave.
4244
4245 2011-09-02  Bruno Haible  <bruno@clisp.org>
4246
4247         Find 'ar' program that fits with --host argument.
4248         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
4249
4250 2011-09-02  Bruno Haible  <bruno@clisp.org>
4251
4252         tests: init.sh: Support any non-GNU diff.
4253         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
4254         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
4255         Solaris 8.
4256
4257 2011-09-02  Bruno Haible  <bruno@clisp.org>
4258
4259         tests: init.sh: work also with any non-GNU diff that supports -u
4260         * tests/init.sh: Relax check for diff -u support.
4261         Rather than checking for GNU diff via --version, simply check
4262         for support for -u itself.  Useful at least on OpenBSD 4.9,
4263         AIX 7.1, IRIX 6.5, and Solaris 10.
4264
4265 2011-09-01  Bruno Haible  <bruno@clisp.org>
4266
4267         strtoimax, strtoumax: Document problem on HP-UX 11.
4268         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
4269         * doc/posix-functions/strtoumax.texi: Likewise.
4270
4271 2011-09-01  Bruno Haible  <bruno@clisp.org>
4272
4273         strtoumax: Avoid link error on OSF/1 with DTK cc.
4274         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
4275         defined as a function.
4276         * modules/strtoumax (Depends-on, configure.ac): Test only whether
4277         strtoumax is defined, not whether it is declared.
4278
4279 2011-09-01  Bruno Haible  <bruno@clisp.org>
4280
4281         strtoimax: Avoid link error on OSF/1 with DTK cc.
4282         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
4283         defined as a function.
4284         * modules/strtoimax (Depends-on, configure.ac): Test only whether
4285         strtoimax is defined, not whether it is declared.
4286
4287 2011-09-01  Bruno Haible  <bruno@clisp.org>
4288
4289         imaxdiv: Avoid link error on OSF/1 with DTK cc.
4290         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
4291         as a function.
4292         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
4293         whether it is declared.
4294
4295 2011-09-01  Bruno Haible  <bruno@clisp.org>
4296
4297         imaxabs: Avoid link error on OSF/1 with DTK cc.
4298         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
4299         as a function.
4300         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
4301         whether it is declared.
4302
4303 2011-09-01  Bruno Haible  <bruno@clisp.org>
4304
4305         Tests for module 'strtoumax'.
4306         * modules/strtoumax-tests: New file.
4307         * tests/test-strtoumax.c: New file.
4308
4309         Tests for module 'strtoimax'.
4310         * modules/strtoimax-tests: New file.
4311         * tests/test-strtoimax.c: New file.
4312
4313         Tests for module 'imaxdiv'.
4314         * modules/imaxdiv-tests: New file.
4315         * tests/test-imaxdiv.c: New file.
4316
4317         Tests for module 'imaxabs'.
4318         * modules/imaxabs-tests: New file.
4319         * tests/test-imaxabs.c: New file.
4320
4321 2011-09-01  Bruno Haible  <bruno@clisp.org>
4322
4323         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
4324         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
4325         pthread_create.
4326
4327 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
4328
4329         openat: work around AIX 7.1 fstatat issue
4330         This should fix the problem that was not properly fixed
4331         in the previous change, dated 2011-08-30.
4332         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
4333         __need_system_stat_h defined.
4334         (orig_fstatat) [HAVE_FSTATAT]: New function.
4335         (rpl_fstatat): Go back to the old way of doing things,
4336         except call orig_fstatat instead of fstatat.
4337         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
4338         Remove unnecessary check whether fstatat fills in st_size etc.
4339
4340 2011-09-01  Bruno Haible  <bruno@clisp.org>
4341
4342         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
4343         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
4344         just include the system's header.
4345
4346 2011-08-31  Jim Meyering  <meyering@redhat.com>
4347
4348         tests: avoid spurious assertion failure in test-float.c on ppc64
4349         * tests/test-float.c (test_long_double): Comment out an assertion,
4350         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
4351         with gcc-4.4.4.
4352
4353         maint: indent with spaces, not TABs
4354         I need to get in the habit of running gnulib's "make check".
4355         Both of these would have been caught.
4356         * m4/largefile.m4: Indent with spaces, not TABs.
4357         * lib/parse-datetime.y (iso_8601_time): Likewise.
4358         Spotted by Pádraig Brady.
4359
4360         test-parse-datetime.c: accommodate a relatively strict gcc warning
4361         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
4362         to avoid a warning from gcc's -Werror=missing-declarations.
4363         Insert a few spaces-before-funcall-parenthesis.
4364
4365 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
4366
4367         parse-datetime: accept ISO 8601 date and time rep with "T" separator
4368         The parser now accepts ISO 8601 date-time strings with "T" as the
4369         separator.  It has long parsed dates like "2004-02-29 16:21:42"
4370         with a space between the date and time strings.  Now it also parses
4371         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
4372         variants like "2004-02-29T16:21:42.333-07:00"
4373         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
4374         of day representation using the 'T' separator character.
4375         * doc/parse-datetime.texi (General date syntax): replace use of
4376         deprecated --iso-8601 option with --rfc-3339 in example of date
4377         command output formats that can be parsed.
4378         * tests/test-parse-datetime.c (tm_diff): New function, taken from
4379         lib/parse-datetime.y.
4380         (gmt_offset): New function.
4381         (main): Add additional test cases to validate ISO8601 extended
4382         date and time of day parsing.
4383
4384 2011-08-31  Bruno Haible  <bruno@clisp.org>
4385
4386         freopen: Documentation.
4387         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
4388         name.
4389         Reported by Claudio Bley <claudio.bley@gmail.com>.
4390
4391 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
4392
4393         freopen: Don't crash if the filename argument is NULL.
4394         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
4395         NULL.
4396
4397 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
4398
4399         openat: work around AIX 7.1 fstatat bug
4400         Problem reported by Kevin Brott for GNU tar, in the thread containing
4401         <http://lists.gnu.org/archive/html/bug-tar/2011-08/msg00015.html>.
4402         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
4403         FSTATAT_ST_SIZE_ETC_BROKEN.
4404         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
4405         rpl_fstatat.
4406         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
4407         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
4408         AC_CHECK_FUNCS_ONCE for fstatat.
4409         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
4410         fchmodat, mkdirat, openat and unlinkat.
4411
4412 2011-08-30  Bruno Haible  <bruno@clisp.org>
4413
4414         Avoid endless recursions if config.h includes some header files.
4415         * lib/fopen.c (__need_FILE): Define already before including config.h.
4416         * lib/freopen.c (__need_FILE): Likewise.
4417         * lib/open.c (__need_system_fcntl_h): Likewise.
4418         * lib/stat.c (__need_system_sys_stat_h): Likewise.
4419         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
4420         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
4421
4422 2011-08-25  Karl Berry  <karl@gnu.org>
4423
4424         * config/srclist.txt (ylwrap): new try.
4425         * build-aux/ylwrap: new file.
4426
4427 2011-08-23  Bruno Haible  <bruno@clisp.org>
4428
4429         tmpdir: Use a good default directory on native Windows.
4430         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
4431         (P_tmpdir): Default to _P_tmpdir on native Windows.
4432         (path_search): On native Windows, try the value returned by GetTempPath
4433         before trying P_tmpdir.
4434         * modules/tmpdir (Depends-on): Add pathmax.
4435         Suggested by John Darrington <john@darrington.wattle.id.au>.
4436
4437 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
4438
4439         doc: fix typo in README-release
4440         * top/README-release: Capitalize first word of a sentence.
4441
4442 2011-08-19  Jim Meyering  <meyering@redhat.com>
4443
4444         fts: do not exhaust memory when processing million-entry directories
4445         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
4446         directory would require about 256*N bytes of memory.  Thus, it was
4447         easy to construct a directory too large to be processed by any of
4448         those tools.  With this change, fts' maximum memory utilization is
4449         now limited to around 30MB.
4450         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
4451         (fts_read): When we've processed the final entry (i.e., when
4452         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
4453         using the parent entry to read any remaining entries.  Dispatch
4454         depending on what fts_build returns:
4455         - NULL+stop, aka failure: stop
4456         - NULL otherwise: move up in the dir hierarchy
4457         - non-NULL: handle this new entry
4458         (fts_build): Declare and use new local, continue_readdir.
4459         Prepare to be called from fts_read, when the entries
4460         from a partially-read directory have just been exhausted.
4461         In that case, we'll skip the opendir and instead use the parent's
4462         fts_dirp and derive dir_fd from that.
4463         Finally, in the readdir loop, if we read max_entries entries,
4464         exit the loop ensuring *not* to call closedir.  This is required
4465         so that fts_dirp can be reused on a subsequent call.
4466         Prompted by Ben England's report of memory exhaustion in find
4467         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
4468
4469         maint: fts: move decl of `dp' down into while loop; split a long line
4470         * lib/fts.c (fts_build): No semantic change.
4471
4472         fts: add/use new struct member, fts_dirp
4473         We are about to use this to manage any directory with
4474         too many entries to read all of them into memory at once.
4475         To do that, we'll need to save the DIR* pointer in each
4476         affected FTSENT struct.
4477         * lib/fts_.h: Include <dirent.h>.
4478         (struct FTSENT) [fts_dirp]: New member.
4479         * lib/fts.c (closedir_and_clear): Define.
4480         Use it in place of closedir so that we are sure to
4481         clear the new fts_dirp member when done with it.
4482         (fts_alloc): Initialize the new member.
4483         (fts_lfree): Free, if needed.
4484
4485         maint: fts: give __opendir2 a new parameter and rename
4486         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
4487         than surreptitiously using sole caller's "dir_fd".
4488         (fts_opendir): Rename from __opendir2.
4489
4490         maint: fts.c: remove __opendir2's now-unused parameter, oflag
4491         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
4492
4493         maint: fts.c: correct off-by-one indentation
4494         * lib/fts.c (fts_build): Correct indentation, change style
4495         of a couple of block comments, and bracing style.
4496
4497         maint: fts.c: move __opendir2 #define "up" out of function body
4498         * lib/fts.c (__opendir2): Move "up".  No semantic change.
4499
4500         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
4501         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
4502         out for a long time and besides was useful only on BSD systems.
4503
4504 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
4505
4506         regex: port to Stratus OpenVOS
4507         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
4508         define to empty, rather than attempting nonportable optimizations.
4509         Problem reported by Paul Green in:
4510         http://lists.gnu.org/archive/html/bug-diffutils/2011-08/msg00047.html
4511         and fix suggested by Eric Blake in:
4512         http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00143.html
4513
4514 2011-08-17  Eric Blake  <eblake@redhat.com>
4515
4516         getcwd: fix test failures on mingw
4517         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
4518         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
4519         test if long directory cannot be created, and allow mingw errno.
4520
4521         getcwd-lgpl: fix m4 to match relaxed test for BSD
4522         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
4523         (gl_FUNC_GETCWD_SIGNATURE): New macro.
4524         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
4525         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
4526         signature problem.
4527
4528         getcwd: fix compilation on mingw64
4529         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
4530         getcwd.
4531         Reported by Marc-André Lureau.
4532
4533         pipe2: silence compiler warning
4534         * lib/pipe2.c (pipe2): Hide label if it is not used.
4535
4536 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
4537
4538         relocatable-prog: fix link error
4539         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
4540         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
4541         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
4542         into modules/relocatable-lib without noticing that
4543         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
4544         also needs to build relocatable.c.
4545
4546 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
4547
4548         getaddrinfo: fix sh typo in gai_strerrorA decl checking
4549         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
4550         shell code: it contained a 'break' that was not in a loop.
4551         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
4552         via a shell-language loop; this may have been true in old Autoconf
4553         versions, but it's not true in Autoconf 2.68.  I found this bug
4554         when testing coreutils git on Solaris 8, whose shell complains
4555         about the syntax error.
4556
4557 2011-08-12  Simon Josefsson  <simon@josefsson.org>
4558
4559         * lib/base64.c: Fix comment to reference RFC 4648.
4560         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
4561         <gvtulder@gmail.com>.
4562
4563 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
4564
4565         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
4566
4567         po/Makefile.in.in: fix make -q problem
4568         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
4569         rule, since there's no file named 'check-macro-version' and its
4570         use as a file breaks make -q.
4571         (all): Don't depend on check-macro-version.
4572         (CHECK_MACRO_VERSION): New macro.
4573         (stamp-po): Use it.
4574
4575         configmake: fix make -q problem
4576         * modules/configmake (configmake.h): Update configmake.h's time stamp
4577         even if the file does not change.  Otherwise, 'make -q' fails.
4578         Problem reported by Simon Josefsson in
4579         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00088.html>.
4580
4581 2011-08-11  Jim Meyering  <meyering@redhat.com>
4582
4583         git-version-gen: correct the advice in a comment
4584         * build-aux/git-version-gen: Correct comment.
4585         Don't recommend to list .tarball-version in .gitignore.
4586
4587 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
4588
4589         base64: fix off-by-one buffer size bug
4590         Problem and (trivial) fix reported by Gijs van Tulder in
4591         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00083.html>.
4592         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
4593         * tests/test-base64.c (main): Catch the bug.
4594
4595 2011-08-10  Eric Blake  <eblake@redhat.com>
4596
4597         closein: correct comments
4598         * lib/closein.c (close_stdin): Improve comments.
4599
4600 2011-08-09  Bruno Haible  <bruno@clisp.org>
4601
4602         More tests for 'fseeko'.
4603         * tests/test-fseeko3.c: New file, from Eric Blake.
4604         * tests/test-fseeko3.sh: New file.
4605         * modules/fseeko-tests (Files): Add them.
4606         (TESTS): Add test-fseeko3.sh.
4607         (check_PROGRAMS): Add test-fseeko3.
4608
4609 2011-08-09  Eric Blake  <eblake@redhat.com>
4610
4611         fseeko: remove unneeded hack
4612         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
4613
4614         fseeko: fix bug on glibc
4615         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
4616         Reported by John W. Eaton.
4617
4618 2011-08-08  Bruno Haible  <bruno@clisp.org>
4619
4620         unictype/base: Fix interoperability with preinstalled libunistring.
4621         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
4622         Reported by Simon Josefsson.
4623
4624 2011-08-08  Bruno Haible  <bruno@clisp.org>
4625
4626         iswblank: Detect declaration correctly.
4627         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
4628         AC_CHECK_DECLS invocation.
4629
4630 2011-08-08  Bruno Haible  <bruno@clisp.org>
4631
4632         tcgetsid: Detect declaration correctly.
4633         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
4634         AC_CHECK_DECLS invocation.
4635         Reported by Simon Josefsson.
4636
4637 2011-08-08  Eric Blake  <eblake@redhat.com>
4638
4639         largefile: fix typo that regressed large file support
4640         * modules/largefile (configure.ac-early): Fix section name.
4641
4642 2011-08-06  Karl Berry  <karl@gnu.org>
4643
4644         * MODULES.html.sh (func_all_files): _Noreturn is no longer
4645         a separate module.
4646
4647 2011-08-05  Simon Josefsson  <simon@josefsson.org>
4648
4649         openat: Fix warnings and commens when building unlinkat.c on Hurd.
4650         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
4651         get prototype for free.
4652
4653 2011-08-04  Bruno Haible  <bruno@clisp.org>
4654
4655         Tests for module 'pathmax'.
4656         * modules/pathmax-tests: New file.
4657         * tests/test-pathmax.c: New file.
4658
4659         canonicalize-lgpl: Support larger filenames on the Hurd.
4660         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
4661         Reported by Paul Eggert.
4662
4663         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
4664         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
4665         * lib/chdir-long.h: Include pathmax.h.
4666         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
4667         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
4668         (PATH_MAX): Remove code that is done by pathmax.h.
4669         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
4670         * lib/tmpfile.c: Add a comment.
4671         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
4672         * modules/chdir-long (Depends-on): Add pathmax.
4673         * modules/getcwd (Depends-on): Add pathmax.
4674         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
4675         is not defined.
4676         * doc/posix-headers/limits.texi: Mention the pathmax module.
4677         * NEWS: Mention the change.
4678
4679 2011-08-02  Bruno Haible  <bruno@clisp.org>
4680
4681         pthread_sigmask: Actually use results of gl_THREADLIB.
4682         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
4683         gl_THREADLIB, not gl_[]THREADLIB.
4684         Reported by Eric Blake.
4685
4686 2011-08-02  Jim Meyering  <meyering@redhat.com>
4687
4688         maint.mk: relax the default _gl_TS_function_match regexp
4689         * top/maint.mk (_gl_TS_function_match): Don't require at least one
4690         space between function name and "(" in an "extern" declaration.
4691         That would fail to match a decl with no space there: extern void foo();
4692
4693 2011-07-31  Iain Nicol  <iain@thenicols.net>
4694
4695         git-version-gen: document that EXTRA_DIST must include .version
4696         * build-aux/git-version-gen: In the how-to-use comment, document
4697         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
4698         will fail when run from an unpacked distribution tarball.
4699
4700 2011-08-01  Bruno Haible  <bruno@clisp.org>
4701
4702         wctype-h: Fix last change.
4703         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
4704         REPLACE_TOWLOWER to 0.
4705         Reported by Sam Steingold <sds@gnu.org>.
4706
4707 2011-07-31  Bruno Haible  <bruno@clisp.org>
4708
4709         frexpl: Update autoconf test.
4710         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
4711         according to changes of 2011-06-20.
4712
4713 2011-07-31  Bruno Haible  <bruno@clisp.org>
4714
4715         sys_utsname: Add support for Minix.
4716         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
4717         <sys/utsname.h>.
4718         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
4719         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
4720
4721 2011-07-31  Bruno Haible  <bruno@clisp.org>
4722
4723         strings: Add support for Minix.
4724         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
4725         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
4726         * doc/posix-headers/strings.texi: Document the Minix problem.
4727
4728 2011-07-31  Bruno Haible  <bruno@clisp.org>
4729
4730         wctype-h: Add support for Minix.
4731         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
4732         REPLACE_TOWLOWER.
4733         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
4734         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
4735         REPLACE_ISWCNTRL.
4736
4737 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
4738
4739         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
4740         This is a performance improvement for 64-bit hosts: it causes the
4741         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
4742
4743 2011-07-31  Bruno Haible  <bruno@clisp.org>
4744
4745         stdioext: Add support for Minix.
4746         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
4747         * lib/fpurge.c (fpurge): Likewise.
4748         * lib/freadahead.c (freadahead): Likewise.
4749         * lib/freadable.c (freadable): Likewise.
4750         * lib/freading.c (freading): Likewise.
4751         * lib/freadptr.c (freadptr): Likewise.
4752         * lib/freadseek.c (freadptrinc): Likewise.
4753         * lib/fseeko.c (rpl_fseeko): Likewise.
4754         * lib/fseterr.c (fseterr): Likewise.
4755         * lib/fwritable.c (fwritable): Likewise.
4756         * lib/fwriting.c (fwriting): Likewise.
4757         * lib/fflush.c (clear_ungetc_buffer): Update comment.
4758         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
4759
4760 2011-07-31  Bruno Haible  <bruno@clisp.org>
4761
4762         errno: Port to Minix.
4763         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
4764         ECONNABORTED are defined.
4765         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
4766         GNULIB_defined_ECONNABORTED): New macros.
4767         * lib/strerror-override.h (strerror_override): Test also
4768         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
4769         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
4770         ECONNABORTED.
4771         * doc/posix-headers/errno.texi: Mention the Minix problem.
4772
4773 2011-07-31  Bruno Haible  <bruno@clisp.org>
4774
4775         Work around declaration collisions on Minix.
4776         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
4777         defined, set REPLACE_MBSINIT.
4778         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
4779         defined, set REPLACE_MBRTOWC.
4780         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
4781         set REPLACE_MBRLEN.
4782         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
4783         defined, set REPLACE_MBSRTOWCS.
4784         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
4785         defined, set REPLACE_WCRTOMB.
4786         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
4787         defined, set REPLACE_WCSRTOMBS.
4788
4789 2011-07-31  Bruno Haible  <bruno@clisp.org>
4790
4791         Add support for Minix with ACK compiler.
4792         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
4793         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
4794         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
4795
4796 2011-07-31  Bruno Haible  <bruno@clisp.org>
4797
4798         Documentation about Minix.
4799         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
4800         * doc/glibc-headers/*.texi: Likewise.
4801         * doc/posix-functions/*.texi: Likewise.
4802         * doc/glibc-functions/*.texi: Likewise.
4803
4804 2011-07-31  Bruno Haible  <bruno@clisp.org>
4805
4806         snippet/warn-on-use: Fix indentation.
4807         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
4808
4809 2011-07-25  Jim Meyering  <meyering@redhat.com>
4810
4811         tests: test-update-copyright.sh: remove unnecessary "rm" commands
4812         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
4813         commands.
4814
4815 2011-07-27  Jim Meyering  <meyering@redhat.com>
4816
4817         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
4818         * top/maint.mk (gl_extract_significant_defines_): Now that
4819         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
4820         gnulib/lib/signal.in.h, and now that we recommend to
4821         define-if-undefined those two symbols in application code,
4822         we must filter them out of the "significant" list.
4823         This avoids a "make syntax-check" failure in coreutils.
4824
4825 2011-07-26  Eric Blake  <eblake@redhat.com>
4826
4827         warnings: add comments about previous patch
4828         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
4829         * m4/include_next.m4: Likewise.
4830         * m4/warn-on-use.m4: Likewise.
4831         * m4/warnings.m4: Likewise, and simplify use.
4832         Suggested by Stefano Lattarini.
4833
4834         include-next, warnings: support older autoconf
4835         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
4836         AS_VAR_PUSHDEF in a way that works with older autoconf.
4837         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
4838         Reported by Daniel P. Berrange.
4839
4840 2011-07-25  Bruno Haible  <bruno@clisp.org>
4841
4842         fseek, ftell: Fix doc.
4843         * doc/posix-functions/fseek.texi: Reword statement about
4844         AC_SYS_LARGEFILE.
4845         * doc/posix-functions/ftell.texi: Likewise.
4846
4847 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
4848             Bruno Haible  <bruno@clisp.org>
4849
4850         Add dependencies to the 'largefile' module.
4851         * modules/fopen (Depends-on): Add 'largefile'.
4852         * modules/freopen (Depends-on): Likewise.
4853         * modules/fseeko (Depends-on): Likewise.
4854         * modules/ftello (Depends-on): Likewise.
4855         * modules/glob (Depends-on): Likewise.
4856         * modules/lseek (Depends-on): Likewise.
4857         * modules/lstat (Depends-on): Likewise.
4858         * modules/mkostemp (Depends-on): Likewise.
4859         * modules/mkostemps (Depends-on): Likewise.
4860         * modules/mkstemp (Depends-on): Likewise.
4861         * modules/mkstemps (Depends-on): Likewise.
4862         * modules/open (Depends-on): Likewise.
4863         * modules/openat (Depends-on): Likewise.
4864         * modules/pread (Depends-on): Likewise.
4865         * modules/pwrite (Depends-on): Likewise.
4866         * modules/scandir (Depends-on): Likewise.
4867         * modules/stat (Depends-on): Likewise.
4868         * modules/tmpfile (Depends-on): Likewise.
4869         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
4870         since the containing module now depends on the largefile module.
4871         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
4872         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
4873         off_t is fixed by gnulib.
4874         * doc/posix-functions/freopen.texi: Likewise.
4875         * doc/posix-functions/fseeko.texi: Likewise.
4876         * doc/posix-functions/fstatat.texi: Likewise.
4877         * doc/posix-functions/ftello.texi: Likewise.
4878         * doc/posix-functions/glob.texi: Likewise.
4879         * doc/posix-functions/lseek.texi: Likewise.
4880         * doc/posix-functions/lstat.texi: Likewise.
4881         * doc/posix-functions/mkstemp.texi: Likewise.
4882         * doc/posix-functions/open.texi: Likewise.
4883         * doc/posix-functions/openat.texi: Likewise.
4884         * doc/posix-functions/pread.texi: Likewise.
4885         * doc/posix-functions/pwrite.texi: Likewise.
4886         * doc/posix-functions/scandir.texi: Likewise.
4887         * doc/posix-functions/stat.texi: Likewise.
4888         * doc/posix-functions/tmpfile.texi: Likewise.
4889         * doc/glibc-functions/mkostemp.texi: Likewise.
4890         * doc/glibc-functions/mkostemps.texi: Likewise.
4891         * doc/glibc-functions/mkstemps.texi: Likewise.
4892
4893 2011-07-25  Bruno Haible  <bruno@clisp.org>
4894
4895         fcntl: Move AC_LIBOBJ invocation to module description.
4896         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
4897         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
4898
4899         fcntl: Remove call-in from fchdir.m4.
4900         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
4901         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
4902
4903         dup3: Remove potential call-in from fchdir.m4.
4904         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
4905         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
4906
4907         dup2: Move AC_LIBOBJ invocation to module description.
4908         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
4909         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
4910         Don't invoke AC_LIBOBJ.
4911         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
4912
4913         dup2: Remove call-in from fchdir.m4.
4914         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
4915         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
4916
4917         fclose: Move AC_LIBOBJ invocation to module description.
4918         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
4919         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
4920         to 1.
4921         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
4922
4923         fclose: Remove call-in from close.m4.
4924         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
4925         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
4926
4927         close: Move AC_LIBOBJ invocation to module description.
4928         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
4929         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
4930         1.
4931         * modules/close (configure.ac): Invoke AC_LIBOBJ.
4932
4933         close: Remove call-in from fchdir.m4.
4934         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
4935         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
4936
4937         open: Move AC_LIBOBJ invocation to module description.
4938         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
4939         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
4940         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
4941
4942         open: Remove call-in from fchdir.m4.
4943         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
4944         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
4945
4946         fchdir: Start to remove gl_REPLACE_* idiom.
4947         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
4948         (gl_FUNC_FCHDIR): Invoke it.
4949
4950 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
4951
4952         * lib/ftell.c (ftell): Comment out cast.
4953
4954         close: use gl_REPLACE_FCLOSE only if defined
4955         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
4956         is defined.  The close module doesn't depend on the fclose module
4957         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
4958         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00392.html>.
4959         I reproduced the problem with "./gnulib-tool --test close sys_socket".
4960
4961 2011-07-24  Jim Meyering  <meyering@redhat.com>
4962
4963         test-select.h: avoid warning when using gcc's -Wmissing-declarations
4964         * tests/test-select.h (test_function): Declare as "static".
4965
4966 2011-07-24  Bruno Haible  <bruno@clisp.org>
4967
4968         doc: Mention the effects of AC_SYS_LARGEFILE.
4969         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
4970         on this function.
4971         * doc/posix-functions/aio_error.texi: Likewise.
4972         * doc/posix-functions/aio_fsync.texi: Likewise.
4973         * doc/posix-functions/aio_read.texi: Likewise.
4974         * doc/posix-functions/aio_return.texi: Likewise.
4975         * doc/posix-functions/aio_suspend.texi: Likewise.
4976         * doc/posix-functions/aio_write.texi: Likewise.
4977         * doc/posix-functions/fgetpos.texi: Likewise.
4978         * doc/posix-functions/fopen.texi: Likewise.
4979         * doc/posix-functions/freopen.texi: Likewise.
4980         * doc/posix-functions/fsetpos.texi: Likewise.
4981         * doc/posix-functions/fstatvfs.texi: Likewise.
4982         * doc/posix-functions/ftruncate.texi: Likewise.
4983         * doc/posix-functions/ftw.texi: Likewise.
4984         * doc/posix-functions/getrlimit.texi: Likewise.
4985         * doc/posix-functions/glob.texi: Likewise.
4986         * doc/posix-functions/lio_listio.texi: Likewise.
4987         * doc/posix-functions/lockf.texi: Likewise.
4988         * doc/posix-functions/mkstemp.texi: Likewise.
4989         * doc/posix-functions/mmap.texi: Likewise.
4990         * doc/posix-functions/nftw.texi: Likewise.
4991         * doc/posix-functions/openat.texi: Likewise.
4992         * doc/posix-functions/opendir.texi: Likewise.
4993         * doc/posix-functions/posix_fadvise.texi: Likewise.
4994         * doc/posix-functions/posix_fallocate.texi: Likewise.
4995         * doc/posix-functions/pread.texi: Likewise.
4996         * doc/posix-functions/pwrite.texi: Likewise.
4997         * doc/posix-functions/readdir.texi: Likewise.
4998         * doc/posix-functions/readdir_r.texi: Likewise.
4999         * doc/posix-functions/rewinddir.texi: Likewise.
5000         * doc/posix-functions/scandir.texi: Likewise.
5001         * doc/posix-functions/seekdir.texi: Likewise.
5002         * doc/posix-functions/setrlimit.texi: Likewise.
5003         * doc/posix-functions/statvfs.texi: Likewise.
5004         * doc/posix-functions/telldir.texi: Likewise.
5005         * doc/posix-functions/tmpfile.texi: Likewise.
5006         * doc/posix-functions/truncate.texi: Likewise.
5007         * doc/glibc-functions/fallocate.texi: Likewise.
5008         * doc/glibc-functions/fstatfs.texi: Likewise.
5009         * doc/glibc-functions/fts_children.texi: Likewise.
5010         * doc/glibc-functions/fts_read.texi: Likewise.
5011         * doc/glibc-functions/getdirentries.texi: Likewise.
5012         * doc/glibc-functions/mkostemp.texi: Likewise.
5013         * doc/glibc-functions/mkostemps.texi: Likewise.
5014         * doc/glibc-functions/mkstemps.texi: Likewise.
5015         * doc/glibc-functions/preadv.texi: Likewise.
5016         * doc/glibc-functions/pwritev.texi: Likewise.
5017         * doc/glibc-functions/sendfile.texi: Likewise.
5018         * doc/glibc-functions/statfs.texi: Likewise.
5019
5020 2011-07-24  Bruno Haible  <bruno@clisp.org>
5021
5022         doc: Fix typo.
5023         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
5024
5025 2011-07-24  Bruno Haible  <bruno@clisp.org>
5026
5027         doc: Mention fsusage.
5028         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
5029
5030 2011-07-24  Bruno Haible  <bruno@clisp.org>
5031
5032         doc: Mention new glibc headers and functions.
5033         * doc/glibc-headers/gshadow.texi: New file.
5034         * doc/glibc-functions/endsgent.texi: New file.
5035         * doc/glibc-functions/fgetsgent.texi: New file.
5036         * doc/glibc-functions/fgetsgent_r.texi: New file.
5037         * doc/glibc-functions/getsgent.texi: New file.
5038         * doc/glibc-functions/getsgent_r.texi: New file.
5039         * doc/glibc-functions/getsgnam.texi: New file.
5040         * doc/glibc-functions/getsgnam_r.texi: New file.
5041         * doc/glibc-functions/putsgent.texi: New file.
5042         * doc/glibc-functions/setsgent.texi: New file.
5043         * doc/glibc-functions/sgetsgent.texi: New file.
5044         * doc/glibc-functions/sgetsgent_r.texi: New file.
5045         * doc/glibc-functions/malloc_info.texi: New file.
5046         * doc/glibc-functions/preadv.texi: New file.
5047         * doc/glibc-functions/pwritev.texi: New file.
5048         * doc/glibc-functions/register_printf_modifier.texi: New file.
5049         * doc/glibc-functions/register_printf_specifier.texi: New file.
5050         * doc/glibc-functions/register_printf_type.texi: New file.
5051         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
5052         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
5053         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
5054         * doc/glibc-functions/pthread_getname_np.texi: New file.
5055         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
5056         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
5057         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
5058         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
5059         * doc/glibc-functions/pthread_setname_np.texi: New file.
5060         * doc/glibc-functions/pthread_sigqueue.texi: New file.
5061         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
5062         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
5063         * doc/glibc-functions/qsort_r.texi: New file.
5064         * doc/glibc-functions/quick_exit.texi: New file.
5065         * doc/glibc-functions/syncfs.texi: New file.
5066         * doc/gnulib.texi: Include them.
5067         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
5068         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
5069         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
5070         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
5071         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
5072         * doc/glibc-functions/execvpe.texi: Likewise.
5073
5074 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
5075
5076         ftell: don't include <unistd.h>
5077         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
5078         guaranteed to define off_t, and the ftell module depends on the
5079         stdio module.
5080
5081         ftell: do not assume wraparound signed arithmetic
5082         * lib/ftell.c: Include <limits.h>.
5083         (ftell): Don't assume wraparound signed arithmetic.
5084
5085 2011-07-24  Bruno Haible  <bruno@clisp.org>
5086
5087         close: No longer depend on module 'fclose'.
5088         * modules/close (Depends-on): Remove fclose.
5089         * NEWS: Mention the change.
5090         Suggested by Sam Steingold <sds@gnu.org>.
5091
5092 2011-07-24  Bruno Haible  <bruno@clisp.org>
5093
5094         fsusage: Enable large volume support on AIX >= 5.2.
5095         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
5096         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
5097         instead of STAT_STATVFS.
5098         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
5099
5100         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
5101         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
5102         f_blocks field only on MacOS X.
5103
5104         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
5105         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
5106         * modules/fsusage (Depends-on): Add largefile.
5107
5108 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
5109
5110         * README: Modernize discussion of signed integers.
5111         Assuming overflow wraparound is no longer safe.
5112         Mention ones' complement and signed magnitude.
5113
5114 2011-07-22  Bruno Haible  <bruno@clisp.org>
5115
5116         select tests, pselect tests: Refactor.
5117         * tests/test-select.h: New file, extracted from tests/test-select.c.
5118         (select_fn): New type.
5119         (test, do_select, do_select_nowait, do_select_wait, test_tty,
5120         test_connect_first, test_accept_first, test_pair, test_socket_pair,
5121         test_pipe): Add my_select argument.
5122         (test_function): Renamed from main. Add my_select argument.
5123         * tests/test-select.c: Move most code to tests/test-select.h. Include
5124         test-select.h.
5125         * modules/select-tests (Files): Add tests/test-select.h.
5126         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
5127         (my_select, main): New functions.
5128         * modules/pselect-tests (Files): Add tests/test-select.h,
5129         tests/macros.h, tests/signature.h.
5130         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
5131         (configure.ac): Check for <sys/wait.h>.
5132
5133 2011-07-22  Bruno Haible  <bruno@clisp.org>
5134
5135         sys_select tests: Check the signature of FD_*.
5136         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
5137         signature tests from here...
5138         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
5139         here.
5140         * modules/sys_select-tests (Files): Add tests/signature.h.
5141
5142 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
5143
5144         largefile: new module, replacing large-inode
5145         Pádraig Brady suggested this in        <http://debbugs.gnu.org/9140#20>.
5146         * MODULES.html.sh: Add largefile, remove large-inode.
5147         * modules/largefile, m4/largefile.m4: New files.
5148         * modules/large-inode, m4/large-inode.m4: Remove.
5149
5150         fsusage: port to MacOS X 10.7 with 4 TiB file systems
5151         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
5152         implementations that use only 32 bits to count blocks.
5153         On typical hosts with 1024-byte blocks, this fails with file
5154         systems as small as 4 TiB.  Problem reported by Herb Wartens
5155         <http://debbugs.gnu.org/9140> and this should also fix a similar
5156         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
5157
5158         large-inode: New module
5159         * MODULES.html.sh: Add it.
5160         * modules/large-inode, m4/large-inode.m4: New files.
5161
5162         extensions: Enable extensions on MacOS X 10.5 and later.
5163         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
5164
5165 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
5166
5167         file-has-acl: use acl_extended_file_nofollow if available
5168         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
5169         (acl_extended_file): New macro.
5170         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
5171         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
5172
5173 2011-07-21  Bruno Haible  <bruno@clisp.org>
5174
5175         Declare system functions in a way that works with C++.
5176         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
5177         declare fdopendir as extern "C".
5178         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
5179         declare frexpl as extern "C".
5180         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
5181         declare gai_strerror as extern "C".
5182         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
5183         programs, declare gai_strerror as extern "C".
5184         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
5185         declare getlogin_r as extern "C".
5186         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
5187         as extern "C".
5188         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
5189         declare ldexpl as extern "C".
5190         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
5191         as extern "C".
5192         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
5193         program, declare getmntinfo as extern "C".
5194         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
5195         stpncpy as extern "C".
5196         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
5197         program, declare __xpg_strerror_r as extern "C".
5198         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
5199         strndup as extern "C".
5200         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
5201         declare memset and bzero as extern "C".
5202         Reported by Sam Steingold <sds@gnu.org>.
5203
5204 2011-07-12  Jim Meyering  <meyering@redhat.com>
5205
5206         maint.mk: prohibit inclusion of "verify.h" without use
5207         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
5208
5209 2011-07-19  Pádraig Brady  <P@draigBrady.com>
5210
5211         timer-time: A new module to check for timer_settime()
5212         * m4/timer_time.m4: Check for the posix function.
5213         * modules/timer-time: Add the new module.
5214         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
5215         Mention it.
5216
5217 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
5218             Bruno Haible  <bruno@clisp.org>
5219
5220         pthread_sigmask: assume POSIX threads if --avoid=threadlib
5221         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
5222         not defined, assume POSIX threads and look for pthread_sigmask in
5223         $LIBS, without changing $CPPFLAGS.
5224
5225 2011-07-19  Bruno Haible  <bruno@clisp.org>
5226
5227         strstr: Update cross-compilation guess.
5228         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
5229         CPUs, guess no, in view of glibc
5230         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
5231         Suggested by Eric Blake. Reported by Reuben Thomas.
5232
5233 2011-07-19  Pádraig Brady  <P@draigBrady.com>
5234
5235         getopt-gnu: suppress core dumps from detection code
5236         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
5237         to suppress core dumps that may well occur on glibc systems.
5238         * modules/getopt-gnu: Depend on nocrash.
5239
5240 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
5241
5242         pthread_sigmask: ensure usleep is declared
5243         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
5244         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
5245
5246 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
5247
5248         doc: Document NonStop portability issues.
5249         * doc/posix-functions/sigaction.texi (sigaction):
5250         * doc/posix-headers/signal.texi (signal.h):
5251         Document NonStop.  See Joachim Schmitz in
5252         http://lists.gnu.org/archive/html/bug-coreutils/2011-07/msg00062.html
5253
5254 2011-07-15  Bruno Haible  <bruno@clisp.org>
5255
5256         ffsl, ffsll: Avoid unportable behaviour.
5257         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
5258
5259 2011-07-15  Bruno Haible  <bruno@clisp.org>
5260
5261         ffs: More tests.
5262         * tests/test-ffs.c (NBITS): New macro.
5263         (main): Add more tests.
5264         * tests/test-ffsl.c (NBITS): New macro.
5265         (main): Add more tests.
5266         * tests/test-ffsll.c (NBITS): New macro.
5267         (main): Add more tests.
5268
5269 2011-07-15  Eric Blake  <eblake@redhat.com>
5270
5271         ffsl, ffsll: new modules
5272         * modules/ffsl: New file.
5273         * modules/ffsll: Likewise.
5274         * m4/ffsl.m4: Likewise.
5275         * m4/ffsll.m4: Likewise.
5276         * lib/ffsl.c: Likewise.
5277         * lib/ffsl.h: Likewise.
5278         * lib/ffsll.c: Likewise.
5279         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
5280         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
5281         * modules/string (Makefile.am): Substitute witnesses.
5282         * lib/strings.in.h (ffsl, ffsll): Declare.
5283         * modules/ffsl-tests: New test file.
5284         * modules/ffsll-tests: Likewise.
5285         * tests/test-ffsl.c: Likewise.
5286         * tests/test-ffsll.c: Likewise.
5287         * MODULES.html.sh (Integer arithmetic functions): Mention it.
5288         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
5289         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
5290
5291         ffs: fix m4 prerequisite
5292         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
5293
5294         ffs: avoid undefined behavior
5295         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
5296         * tests/test-ffs.c (naive, main): Avoid signed shifts.
5297         Reported by Bruno Haible.
5298
5299 2011-07-12  Bruno Haible  <bruno@clisp.org>
5300
5301         pthread_sigmask: Rely on module 'threadlib'.
5302         * modules/pthread_sigmask (Depends-on): Add threadlib.
5303         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
5304         is defined.
5305
5306 2011-07-12  Bruno Haible  <bruno@clisp.org>
5307
5308         regex: Depend on module 'strcase'.
5309         * modules/regex (Depends-on): Add strcase, for strcasecmp().
5310
5311 2011-07-12  Jim Meyering  <meyering@redhat.com>
5312
5313         warn-on-use: fix typo in file name
5314         * modules/snippet/warn-on-use (Files): Correct file name:
5315         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
5316
5317 2011-07-12  Bruno Haible  <bruno@clisp.org>
5318
5319         strings: Document module.
5320         * doc/posix-headers/strings.texi: Mention module 'strings'.
5321
5322 2011-07-12  Bruno Haible  <bruno@clisp.org>
5323
5324         Rename module '_Noreturn' to 'snippet/_Noreturn'.
5325         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
5326         (Files, Makefile.am): Update.
5327         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
5328         * modules/stdlib (Depends-on): Update.
5329
5330 2011-07-12  Bruno Haible  <bruno@clisp.org>
5331
5332         * NEWS: Mention the changes.
5333
5334         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
5335         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
5336         (Files, Makefile.am): Update.
5337         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
5338         * modules/arpa_inet (Depends-on): Update.
5339         * modules/ctype (Depends-on): Update.
5340         * modules/dirent (Depends-on): Update.
5341         * modules/fcntl-h (Depends-on): Update.
5342         * modules/glob (Depends-on): Update.
5343         * modules/iconv-h (Depends-on): Update.
5344         * modules/inttypes-incomplete (Depends-on): Update.
5345         * modules/langinfo (Depends-on): Update.
5346         * modules/locale (Depends-on): Update.
5347         * modules/math (Depends-on): Update.
5348         * modules/netdb (Depends-on): Update.
5349         * modules/poll-h (Depends-on): Update.
5350         * modules/pty (Depends-on): Update.
5351         * modules/search (Depends-on): Update.
5352         * modules/signal (Depends-on): Update.
5353         * modules/spawn (Depends-on): Update.
5354         * modules/stdio (Depends-on): Update.
5355         * modules/stdlib (Depends-on): Update.
5356         * modules/string (Depends-on): Update.
5357         * modules/strings (Depends-on): Update.
5358         * modules/sys_file (Depends-on): Update.
5359         * modules/sys_ioctl (Depends-on): Update.
5360         * modules/sys_select (Depends-on): Update.
5361         * modules/sys_socket (Depends-on): Update.
5362         * modules/sys_stat (Depends-on): Update.
5363         * modules/sys_time (Depends-on): Update.
5364         * modules/sys_times (Depends-on): Update.
5365         * modules/sys_utsname (Depends-on): Update.
5366         * modules/sys_wait (Depends-on): Update.
5367         * modules/termios (Depends-on): Update.
5368         * modules/time (Depends-on): Update.
5369         * modules/unistd (Depends-on): Update.
5370         * modules/wchar (Depends-on): Update.
5371         * modules/wctype-h (Depends-on): Update.
5372         * MODULES.html.sh (Support for building libraries and executables):
5373         Update.
5374
5375         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
5376         * modules/snippet/unused-parameter: Renamed from
5377         modules/unused-parameter.
5378         (Files, Makefile.am): Update.
5379         * build-aux/snippet/unused-parameter.h: Renamed from
5380         build-aux/unused-parameter.h.
5381         * modules/selinux-h (Depends-on): Update.
5382         * modules/unistr/base (Depends-on): Update.
5383         * MODULES.html.sh (Core language properties): Update.
5384
5385         Rename module 'link-warning' to 'snippet/link-warning'.
5386         * modules/snippet/link-warning: Renamed from modules/link-warning.
5387         (Files, Makefile.am): Update.
5388         * build-aux/snippet/link-warning.h: Renamed from
5389         build-aux/link-warning.h.
5390         * MODULES.html.sh (Support for building libraries and executables):
5391         Update.
5392
5393         Rename module 'c++defs' to 'snippet/c++defs'.
5394         * modules/snippet/c++defs: Renamed from modules/c++defs.
5395         (Files, Makefile.am): Update.
5396         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
5397         * modules/arpa_inet (Depends-on): Update.
5398         * modules/ctype (Depends-on): Update.
5399         * modules/dirent (Depends-on): Update.
5400         * modules/fcntl-h (Depends-on): Update.
5401         * modules/glob (Depends-on): Update.
5402         * modules/iconv-h (Depends-on): Update.
5403         * modules/langinfo (Depends-on): Update.
5404         * modules/locale (Depends-on): Update.
5405         * modules/math (Depends-on): Update.
5406         * modules/netdb (Depends-on): Update.
5407         * modules/poll-h (Depends-on): Update.
5408         * modules/pty (Depends-on): Update.
5409         * modules/search (Depends-on): Update.
5410         * modules/signal (Depends-on): Update.
5411         * modules/spawn (Depends-on): Update.
5412         * modules/stdio (Depends-on): Update.
5413         * modules/stdlib (Depends-on): Update.
5414         * modules/string (Depends-on): Update.
5415         * modules/strings (Depends-on): Update.
5416         * modules/sys_ioctl (Depends-on): Update.
5417         * modules/sys_select (Depends-on): Update.
5418         * modules/sys_socket (Depends-on): Update.
5419         * modules/sys_stat (Depends-on): Update.
5420         * modules/sys_time (Depends-on): Update.
5421         * modules/sys_wait (Depends-on): Update.
5422         * modules/termios (Depends-on): Update.
5423         * modules/time (Depends-on): Update.
5424         * modules/unistd (Depends-on): Update.
5425         * modules/wchar (Depends-on): Update.
5426         * modules/wctype-h (Depends-on): Update.
5427
5428         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
5429         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
5430         (Files, Makefile.am): Update.
5431         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
5432         * modules/argv-iter (Depends-on): Update.
5433         * modules/arpa_inet (Depends-on): Update.
5434         * modules/dirent (Depends-on): Update.
5435         * modules/fcntl-h (Depends-on): Update.
5436         * modules/fnmatch (Depends-on): Update.
5437         * modules/getopt-posix (Depends-on): Update.
5438         * modules/glob (Depends-on): Update.
5439         * modules/iconv-h (Depends-on): Update.
5440         * modules/inttypes-incomplete (Depends-on): Update.
5441         * modules/locale (Depends-on): Update.
5442         * modules/math (Depends-on): Update.
5443         * modules/netdb (Depends-on): Update.
5444         * modules/search (Depends-on): Update.
5445         * modules/signal (Depends-on): Update.
5446         * modules/spawn (Depends-on): Update.
5447         * modules/stdio (Depends-on): Update.
5448         * modules/stdlib (Depends-on): Update.
5449         * modules/string (Depends-on): Update.
5450         * modules/strings (Depends-on): Update.
5451         * modules/sys_socket (Depends-on): Update.
5452         * modules/sys_stat (Depends-on): Update.
5453         * modules/sys_time (Depends-on): Update.
5454         * modules/sys_times (Depends-on): Update.
5455         * modules/sys_utsname (Depends-on): Update.
5456         * modules/time (Depends-on): Update.
5457         * modules/unistd (Depends-on): Update.
5458         * modules/wchar (Depends-on): Update.
5459         * MODULES.html.sh (Support for building libraries and executables):
5460         Update.
5461
5462 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
5463
5464         Improvements on _Noreturn and related modules.
5465
5466         modules/_Exit-tests: test _Noreturn too
5467         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
5468         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
5469         (main): Use them.
5470
5471         stdnoreturn, stdnoreturn-tests: remove modules
5472         They're not needed here and a bit premature for use elsewhere.  See
5473         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
5474         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
5475         * tests/test-stdnoreturn.c: Remove files.
5476         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
5477         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
5478         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
5479         and using noreturn.
5480         * modules/openat, modules/sigpipe-die, modules/xalloc:
5481         * modules/xmemdup0, modules/xstrtol:
5482         Remove dependency on stdnoreturn.
5483
5484         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
5485         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
5486         Reparenthesize to avoid GCC warning.
5487         Support Microsoft's syntax.
5488         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
5489
5490         _Noreturn-tests: remove module
5491         * modules/_Noreturn-tests: Remove.
5492         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
5493         * tests/test-_Noreturn.c: Remove.
5494         * tests/test-stdnoreturn.c: Merge from the old
5495         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
5496
5497 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
5498
5499         _Noreturn, stdnoreturn, and related modules.
5500
5501         * top/maint.mk: Adjust to new noreturn support.
5502         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
5503         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
5504
5505         xalloc: use stdnoreturn.h
5506         * lib/xalloc.h: Include <stdnoreturn.h>.
5507         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
5508         * modules/xalloc (Depends-on): Add stdnoreturn.
5509
5510         xstrtol: use stdnoreturn.h
5511         * lib/xstrtol.h: Include <stdnoreturn.h>.
5512         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
5513         * modules/xstrtol (Depends-on): Add stdnoreturn.
5514
5515         xmemdup0: use stdnoreturn.h
5516         * lib/xmemdup0.h: Include <stdnoreturn.h>.
5517         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
5518         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
5519
5520         sigpipe-die: use stdnoreturn.h
5521         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
5522         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
5523         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
5524
5525         openat: use stdnoreturn.h
5526         * lib/openat.h: Include <stdnoreturn.h>.
5527         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
5528         * modules/openat (Depends-on): Add stdnoreturn.
5529
5530         * lib/openat-die.c (openat_save_fail): Modernize comment.
5531
5532         * lib/xalloc-die.c (xalloc_die): Modernize comment.
5533
5534         * lib/glthread/thread.h: Modernize comment.
5535
5536         obstack: use _Noreturn
5537         * lib/obstack.c (__attribute__): Remove macro.
5538         (print_and_abort): Use _Noreturn.
5539
5540         c-stack: use _Noreturn
5541         * lib/c-stack.c (die, overflow_handler, segv_handler):
5542         Use _Noreturn rather than __attribute__((noreturn)).
5543
5544         argmatch-tests, exclude_tests: use _Noreturn
5545         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
5546         Remove.
5547         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
5548
5549         stdlib: use _Noreturn
5550         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
5551         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
5552         * modules/stdlib (Depends-on): Add _Noreturn.
5553         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
5554
5555         stdnoreturn-tests: new module
5556         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
5557
5558         stdnoreturn: new module
5559         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
5560         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
5561
5562         _Noreturn-tests: new module
5563         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
5564
5565         _Noreturn: new module
5566         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
5567         New section, mentioning it.
5568         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
5569
5570         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
5571
5572 2011-07-11  Eric Blake  <eblake@redhat.com>
5573
5574         ffs: new module
5575         * modules/ffs: New file.
5576         * m4/ffs.m4: Likewise.
5577         * lib/ffs.c: Likewise.
5578         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
5579         * modules/strings (Makefile.am): Substitute witness.
5580         (Depends-on): Add c++defs.
5581         * lib/strings.in.h (ffs): Declare.
5582         * modules/ffs-tests: New test file.
5583         * tests/test-ffs.c: Test new module.
5584         * MODULES.html.sh (Integer arithmetic functions): Mention it.
5585         * doc/posix-functions/ffs.texi (ffs): Likewise.
5586
5587         regex: avoid compiler warning
5588         * lib/regex.c (includes): Include <strings.h>, for use of
5589         strcasecmp in regcomp.c.
5590         Reported by Joachim Schmitz.
5591
5592 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
5593
5594         stdint: respect system's intmax_t if INTMAX_MAX
5595         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
5596         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
5597         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
5598         long but int64_t is long long, and where we will clash with the
5599         system intmax_t if we override it.  See
5600         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
5601         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
5602         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
5603         similarly for UINTMAX_C.
5604
5605 2011-07-08  Bruno Haible  <bruno@clisp.org>
5606
5607         pthread_sigmask tests: Avoid a compiler warning.
5608         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
5609         non-zero.
5610
5611         sigprocmask tests: A better way to avoid a compiler warning.
5612         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
5613         (main): Complain if system() returns non-zero.
5614         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
5615
5616 2011-07-08  Bruno Haible  <bruno@clisp.org>
5617
5618         pthread_sigmask: Work around IRIX bug.
5619         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
5620         bug.
5621         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
5622         there may be unblocked pending signals.
5623         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
5624
5625 2011-07-08  Bruno Haible  <bruno@clisp.org>
5626
5627         pthread_sigmask: Work around Cygwin bug.
5628         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
5629         bug.
5630         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
5631         the system's pthread_sigmask function.
5632         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
5633
5634 2011-07-08  Bruno Haible  <bruno@clisp.org>
5635
5636         pthread_sigmask: Work around bug in single-threaded implementation.
5637         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
5638         FreeBSD, HP-UX, Solaris bug.
5639         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
5640         * lib/pthread_sigmask.c: Include <stddef.h>.
5641         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
5642         the system's pthread_sigmask function.
5643         * modules/pthread_sigmask (configure.ac): Invoke
5644         gl_PREREQ_PTHREAD_SIGMASK.
5645         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
5646         HP-UX, Solaris.
5647
5648 2011-07-08  Eric Blake  <eblake@redhat.com>
5649
5650         test-sigprocmask: avoid compiler warning
5651         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
5652         * tests/test-sigprocmask.c (main): Use it to silence warning.
5653         Reported by Jim Meyering.
5654
5655         test-snprintf: avoid compiler warning
5656         * tests/test-snprintf.c (main): Avoid shadowed declaration.
5657         * tests/test-vsnprintf.c (main): Likewise.
5658         Reported by Jim Meyering.
5659
5660 2011-07-08  Bruno Haible  <bruno@clisp.org>
5661
5662         Tests for module 'pthread_sigmask'.
5663         * modules/pthread_sigmask-tests: New file.
5664         * tests/test-pthread_sigmask1.c: New file, based on
5665         tests/test-sigprocmask.c.
5666         * tests/test-pthread_sigmask2.c: New file.
5667
5668 2011-07-08  Jim Meyering  <meyering@redhat.com>
5669
5670         test-getopt.h: avoid warning about an unused variable
5671         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
5672
5673 2011-07-07  Jim Meyering  <meyering@redhat.com>
5674
5675         maint: reduce list of files exempt from sc_prohibit_leading_TABs
5676         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
5677         now that it no longer contains leading TABs.
5678         Remove unused "url=FIXME" statement.
5679
5680 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
5681
5682         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
5683         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
5684         When gl_THREADLIB is not in use, assume that the POSIX sematics
5685         are desired.  This is better for Emacs, which uses POSIX semantics
5686         on GNUish and/or POSIXish platforms, and does not use threads at
5687         all otherwise.
5688
5689         pthread_sigmask: fix typo when testing for libraries
5690         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
5691         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
5692
5693 2011-07-08  Eric Blake  <eblake@redhat.com>
5694
5695         fts: introduce FTS_NOATIME
5696         * lib/fts_.h (FTS_NOATIME): New bit flag.
5697         (FTS_OPTIONMASK): Adjust.
5698         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
5699         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
5700
5701 2011-07-08  Bruno Haible  <bruno@clisp.org>
5702
5703         Tests for module 'thread'.
5704         * modules/thread-tests: New file.
5705         * tests/test-thread_self.c: New file.
5706         * tests/test-thread_create.cc: New file.
5707
5708 2011-07-08  Bruno Haible  <bruno@clisp.org>
5709
5710         thread: Avoid gcc warnings when using gl_thread_self().
5711         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
5712         'void *'.
5713         (gl_thread_self_pointer): Update.
5714
5715 2011-07-07  Bruno Haible  <bruno@clisp.org>
5716
5717         signal-c++-tests: Check declaration of pthread_sigmask.
5718         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
5719         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
5720         $(LIB_PTHREAD_SIGMASK).
5721
5722 2011-07-07  Bruno Haible  <bruno@clisp.org>
5723
5724         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
5725         * lib/signal.in.h (pthread_sigmask): Override if
5726         REPLACE_PTHREAD_SIGMASK is 1.
5727         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
5728         REPLACE_PTHREAD_SIGMASK.
5729         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
5730         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
5731         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
5732         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
5733         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
5734
5735 2011-07-07  Bruno Haible  <bruno@clisp.org>
5736
5737         pthread_sigmask: Ensure declaration in <signal.h>.
5738         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
5739         include <pthread.h>.
5740         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
5741         problem.
5742
5743 2011-07-07  Bruno Haible  <bruno@clisp.org>
5744
5745         pthread_sigmask: Document the module.
5746         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
5747
5748 2011-07-07  Bruno Haible  <bruno@clisp.org>
5749
5750         pthread_sigmask: Follow gnulib conventions.
5751         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
5752         gl_PTHREAD_SIGMASK.
5753         * modules/pthread_sigmask (configure.ac): Update.
5754
5755 2011-07-07  Bruno Haible  <bruno@clisp.org>
5756
5757         pthread_sigmask: Make declaration C++ safe.
5758         * lib/signal.in.h: In two special conditions, just do an #include_next.
5759         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
5760         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
5761         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
5762         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
5763         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
5764         not REPLACE_PTHREAD_MASK.
5765         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
5766         not REPLACE_PTHREAD_MASK.
5767         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
5768
5769 2011-07-07  Bruno Haible  <bruno@clisp.org>
5770
5771         pthread_sigmask: Fix return value.
5772         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
5773         * lib/pthread_sigmask.c: New file.
5774         * modules/pthread_sigmask (Files): Add it.
5775         (configure.ac): Invoke AC_LIBOBJ.
5776
5777 2011-07-07  Eric Blake  <eblake@redhat.com>
5778
5779         getopt: more portable argv creation
5780         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
5781         const, use char arrays rather than strings.
5782         Suggested by Paul Eggert.
5783
5784 2011-07-07  Bruno Haible  <bruno@clisp.org>
5785
5786         Tests for module 'sigprocmask'.
5787         * modules/sigprocmask-tests: New file.
5788         * tests/test-sigprocmask.c: New file.
5789
5790 2011-07-07  Bruno Haible  <bruno@clisp.org>
5791
5792         float tests: Tweak.
5793         * tests/test-float.c (main): Tweak skip message.
5794
5795 2011-07-07  Eric Blake  <eblake@redhat.com>
5796
5797         getopt: avoid compiler warning during configure
5798         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
5799         assigning string literals to non-const pointer.
5800
5801         getopt-gnu: avoid crash in glibc getopt
5802         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
5803         * tests/test-getopt.h (test_getopt): Enhance test.
5804         * tests/test-getopt_long.h (test_getopt_long): Likewise.
5805         * doc/posix-functions/getopt.texi (getopt): Document it.
5806         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
5807         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
5808         Likewise.
5809
5810 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
5811
5812         getopt: handle W; without long options in getopt [BZ #12922]
5813         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
5814         but no long options are defined, just return 'W'.
5815
5816 2011-07-07  Bruno Haible  <bruno@clisp.org>
5817
5818         Avoid literal tabs.
5819         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
5820         variable containing a tab instead of a literal tab.
5821         Reported by Jim Meyering.
5822
5823 2011-07-07  Bruno Haible  <bruno@clisp.org>
5824
5825         Comments.
5826         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
5827
5828 2011-07-06  Bruno Haible  <bruno@clisp.org>
5829
5830         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
5831         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
5832         <winsock2.h>.
5833         (rpl_fd_isset, FD_ISSET): New definitions, copied from
5834         lib/sys_socket.in.h.
5835         (close, gethostname): Hide declarations from <winsock2.h>.
5836         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
5837         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
5838         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
5839         (select): Don't override if gnulib's <sys/select.h> was already
5840         included.
5841         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
5842         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
5843         setsockopt, shutdown, select): Tweak indentation.
5844
5845 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
5846
5847         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
5848         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
5849         in an application that does not use the sys_select module.
5850
5851 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
5852
5853         poll: do not return 0 on timeout=-1
5854         * lib/poll.c: Loop with yield if no events occured
5855
5856 2011-07-06  Eric Blake  <eblake@redhat.com>
5857
5858         pthread_sigmask: always replace when not using pthread
5859         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
5860         replacement when using some threading other than pthread.  Fix
5861         logic bug.
5862
5863 2011-07-06  Bruno Haible  <bruno@clisp.org>
5864
5865         Comments.
5866         * m4/printf.m4: Update comments about mingw.
5867
5868 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
5869
5870         sys_select: define sigset_t more portably
5871         * lib/sys_select.in.h: Always include <sys/types.h>, since
5872         we now need sigset_t and mingw defines it there.
5873         Include <signal.h> before split inclusion guard, to avoid
5874         mishaps on Solaris, whose <signal.h> eventually includes us.
5875         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
5876         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
5877         which come from ...
5878         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
5879         gl_CHECK_TYPE_SIGSET_T.
5880         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
5881         does the real work.
5882         * modules/sys_select (Depends-on): Add 'signal'.
5883
5884         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
5885         Suggested by Bruno Haible.
5886
5887         pselect: Use pthread_sigmask, not sigprocmask.
5888         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
5889         multithreaded apps better than sigprocmask does.
5890         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
5891         sigprocmask directly.
5892
5893 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
5894
5895         * lib/pselect.c (pselect): Use plain name, without "rpl_".
5896         Don't #undef,  since we don't need any underlying pselect.
5897         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
5898         (Depends-on): Add select.
5899         (Link): Add $(LIBSOCKET).
5900         These changes suggested by Bruno Haible.
5901
5902         pselect: document better
5903         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
5904         * doc/posix-functions/pselect.texi (pselect): Document new module.
5905
5906         pthread_sigmask: new module
5907         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
5908         * doc/posix-functions/pthread_sigmask.texi: Document new module.
5909         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
5910         This is done only as a macro; I don't know how well that'll
5911         work for C++.  Move <sys/types.h> include before the include_next,
5912         to avoid mishap on Solaris.
5913         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
5914         * modules/signal (Makefile.am): Substitute the check's results.
5915         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
5916
5917         test-pselect: new module
5918         * modules/pselect-tests, tests/test-pselect.c: New files.
5919         * tests/test-select.c, tests/test-sys_select-c++.cc:
5920         If TEST_PSELECT is defined, test pselect instead of testing select.
5921
5922         * tests/test-sys_select.c (sigset_t): Test for it, too.
5923         Suggested by Bruno Haible.
5924
5925 2011-07-05  Eric Blake  <eblake@redhat.com>
5926
5927         snprintf: guarantee %1$d, for libintl
5928         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
5929         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
5930         * doc/posix-functions/snprintf.texi (snprintf): Update.
5931         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
5932         * tests/test-snprintf.c (main): Enhance test.
5933         * tests/test-vsnprintf.c (main): Likewise.
5934
5935 2011-07-05  Jim Meyering  <meyering@redhat.com>
5936
5937         maint: exempt stdio-read.c and stdio-write.c from the cppi check
5938         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
5939         per Bruno's request, to accommodate this idiom (no space after "#")
5940         even when the function is inside an #if block:
5941         char *
5942         gets (char *s)
5943         #undef gets
5944         {
5945           ...
5946         }
5947
5948 2011-07-04  Jim Meyering  <meyering@redhat.com>
5949
5950         maint: indent with spaces, not TABs, and add a rule to check this
5951         * tests/test-userspec.c: Indent with spaces, not TABs.
5952         * tests/test-argp.c: Likewise.
5953         * tests/test-c-stack2.sh: Likewise.
5954         * tests/test-parse-duration.sh: Likewise
5955         * m4/strtod.m4: Likewise.
5956         * m4/alloca.m4: Likewise.
5957         * m4/pselect.m4: Likewise.
5958         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
5959
5960 2011-07-03  Jim Meyering  <meyering@redhat.com>
5961
5962         maint.mk: correct omissions in prohibit_argmatch_without_use check
5963         This rule would mistakenly report that argmatch.h is included without
5964         use even when both the argmatch and invalid_arg macro were used.
5965         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
5966         of argmatch and invalid_arg.
5967
5968 2011-07-03  Bruno Haible  <bruno@clisp.org>
5969
5970         Comments about EINTR.
5971         * lib/safe-read.h: Explain the purpose of this module.
5972         * lib/safe-write.h: Likewise.
5973         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
5974         module.
5975         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
5976         module.
5977         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
5978
5979 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
5980
5981         xnanosleep: Rewrite to use new dtotimespec module.
5982         It has the conversion code that used to be in xnanosleep.
5983         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
5984         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
5985         (TIME_T_MAX): Remove.
5986         (xnanosleep): Rewrite in terms of dtotimespec.
5987         * modules/xnanosleep (Depends-on): Add dtotimespec.
5988         Remove intprops, stdbool.
5989
5990         timespec-add, timespec-sub: new modules
5991         * lib/timespec.h (timespec_add, timespec_sub): New decls.
5992         * lib/timespec-add.c, lib/timespec-sub.c:
5993         * modules/timespec-add, modules/timespec-sub: New files.
5994
5995         dtotimespec: new module
5996         * lib/timespec.h (dtotimespec): New decl.
5997         * lib/dtotimespec.c, modules/dtotimespec: New files.
5998
5999         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
6000
6001         pselect: new module
6002         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
6003         (pselect): New decls.
6004         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
6005         since the standard pselect decl uses 'restrict'.
6006         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
6007         HAVE_PSELECT, REPLACE_PSELECT.
6008         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
6009         HAVE_PSELECT, REPLACE_PSELECT.
6010         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
6011
6012         sys_select: don't depend on sys_socket
6013         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
6014         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
6015         This fix works on GNU and GNU-like platforms, but has not been tested
6016         on native Windows.
6017         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
6018         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
6019         gl_HEADER_SYS_SOCKET.
6020         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
6021         gl_PREREQ_SYS_H_WINSOCK2.
6022
6023 2011-06-29  Eric Blake  <eblake@redhat.com>
6024
6025         pipe2: fix C89 compile problem
6026         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
6027         Reported by Bruno Haible.
6028
6029         pipe, pipe2: don't corrupt fd on error
6030         * lib/pipe.c (pipe): Leave fd unchanged on error.
6031         * lib/pipe2.c (pipe2): Likewise.
6032         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
6033         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
6034
6035 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
6036
6037         mmap-anon: do not use regular expressions inadvertently
6038         * m4/mmap-anon.m4: Remove trailing period from strings sought
6039         in the output.
6040
6041 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
6042
6043         nanosleep: fix integer overflow problem
6044         * lib/nanosleep.c (my_usleep): Don't assume signed integer
6045         arithmetic wraps around on overflow.
6046
6047         nanosleep: simplify carrying
6048         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
6049         first call to the underyling nanosleep, not for the last one.
6050         This doesn't fix any bugs, but it simplifies the computation of
6051         the remaining delay.  Found while auditing integer overflow issues.
6052
6053         dup2: remove test for existence of fcntl
6054         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
6055         "#if HAVE_FCNTL", in the configure-time test program.
6056         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
6057         and therefore speeds up "configure" a bit.  Found while
6058         adding the dup2 module to Emacs.
6059
6060 2011-06-24  Eric Blake  <eblake@redhat.com>
6061
6062         maint.mk: enhance useless header checks
6063         * top/maint.mk (_sc_header_without_use): Check both include
6064         styles.
6065         (sc_prohibit_assert_without_use)
6066         (sc_prohibit_close_stream_without_use)
6067         (sc_prohibit_getopt_without_use)
6068         (sc_prohibit_quotearg_without_use)
6069         (sc_prohibit_quote_without_use)
6070         (sc_prohibit_long_options_without_use)
6071         (sc_prohibit_inttostr_without_use)
6072         (sc_prohibit_ignore_value_without_use)
6073         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
6074         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
6075         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
6076         (sc_prohibit_hash_pjw_without_use)
6077         (sc_prohibit_safe_read_without_use)
6078         (sc_prohibit_argmatch_without_use)
6079         (sc_prohibit_canonicalize_without_use)
6080         (sc_prohibit_root_dev_ino_without_use)
6081         (sc_prohibit_openat_without_use)
6082         (sc_prohibit_c_ctype_without_use)
6083         (sc_prohibit_signal_without_use)
6084         (sc_prohibit_stdio--_without_use)
6085         (sc_prohibit_stdio-safer_without_use)
6086         (sc_prohibit_strings_without_use)
6087         (sc_prohibit_intprops_without_use)
6088         (sc_prohibit_stddef_without_use)
6089         (sc_prohibit_xfreopen_without_use): Update clients.
6090
6091 2011-06-24  Jim Meyering  <meyering@redhat.com>
6092
6093         syntax-check: keep one maint.mk rule in sync with its header
6094         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
6095         of the bug Eric has just fixed, with today's commit 25e4c2ec.
6096         I prefer to avoid temporary files here, so use <(...), but that
6097         is not supported by /bin/sh, so...
6098         (SHELL): Define to /bin/bash.
6099
6100 2011-06-24  Eric Blake  <eblake@redhat.com>
6101
6102         maint.mk: update sc_prohibit_intprops_without_use
6103         * top/maint.mk (_intprops_names): Match recent changes.
6104
6105 2011-06-24  Bruno Haible  <bruno@clisp.org>
6106
6107         strerror-override: No-op tweak.
6108         * lib/strerror-override.h (strerror_override): Reorder conditions,
6109         for consistency with lib/strerror-override.c.
6110
6111 2011-06-23  Eric Blake  <eblake@redhat.com>
6112
6113         maint.mk: test further PATH_MAX issues
6114         * top/maint.mk (sc_prohibit_path_max_array): Rename...
6115         (sc_prohibit_path_max_allocation): ...and also test alloca.
6116         Suggested by Jim Meyering.
6117
6118 2011-06-22  Eric Blake  <eblake@redhat.com>
6119
6120         maint.mk: add syntax-check to avoid char[PATH_MAX]
6121         * top/maint.mk (sc_prohibit_path_max_array): New rule.
6122
6123         stat: be robust to PATH_MAX definition
6124         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
6125         * modules/stat (Depends-on): Add verify.
6126
6127         link: work around IRIX bug
6128         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
6129         * lib/link.c (rpl_link): Work around it.
6130         * tests/test-link.h (test_link): Enhance test.
6131         * doc/posix-functions/link.texi (link): Document the bug.
6132
6133         getopt: silence clang warning
6134         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
6135         dereference.
6136         Reported by Gustavo Martin Domato.
6137
6138 2011-06-22  Jim Meyering  <meyering@redhat.com>
6139
6140         bootstrap: do not insert a blank line into each .gitignore file
6141         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
6142
6143 2011-06-21  Eric Blake  <eblake@redhat.com>
6144
6145         perror: test for output mismatch
6146         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
6147         perror on IRIX.
6148
6149         strerror_r: fix OpenBSD behavior on out-of-range
6150         * lib/strerror_r.c (strerror_r): Always use maximal string.
6151         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
6152
6153         strerror_r: fix OpenBSD behavior on 0
6154         * lib/strerror-override.c (strerror_override): Also override 0
6155         when needed.
6156         * lib/strerror-override.h (strerror_override): Likewise.
6157         * lib/strerror.c (strerror): Simplify, now that 0 override is done
6158         earlier.
6159         * lib/strerror_r.c (strerror_r): Likewise.
6160         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
6161         behavior...
6162         (gl_FUNC_STRERROR_0): ...into new macro.
6163         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
6164         is overridden.
6165         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
6166         * modules/strerror-override (Files): Add strerror.m4.
6167         (configure.ac): Also provide override for 0 when needed.
6168         * doc/posix-functions/strerror.texi (strerror): Document this.
6169         * doc/posix-functions/perror.texi (perror): Likewise.
6170
6171         perror: adjust array size
6172         * modules/perror (Depends-on): Add strerror-override.
6173         * lib/perror.c (perror): Use it to avoid magic number.
6174
6175         strerror-override: reduce size
6176         * lib/strerror-override.c (strerror_override): Use fewer lines.
6177
6178 2011-06-20  Bruno Haible  <bruno@clisp.org>
6179
6180         pathmax: Ensure correct value for PATH_MAX on HP-UX.
6181         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
6182
6183 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
6184
6185         alloca: port to compilers that can optimize like GCC 4.6.0
6186         * lib/alloca.c (find_stack_direction): New signature, taken from
6187         Autoconf git.  This works with GCC 4.6.0.  This code should never
6188         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
6189         be used with other compilers that optimize as well as GCC 4.6.0 does.
6190         (alloca): Adjust to new signature.
6191         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
6192         New macro, which patches Autoconf in a similar way.
6193
6194         c-stack: stop worrying about stack direction
6195         * lib/c-stack.c (find_stack_direction): Remove.
6196         (segv_handler): Don't worry about stack direction growth, as it's
6197         too much of a pain to configure this correctly, given how compilers
6198         are optimizing-away our stack-growth detection code.  Instead, assume
6199         that any access to just before or just after the stack is OK.
6200         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
6201         Don't require AC_FUNC_ALLOCA; no longer needed.
6202
6203 2011-06-20  Eric Blake  <eblake@redhat.com>
6204
6205         test-stat: don't allocate PATH_MAX bytes
6206         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
6207         PATH_MAX-sized buffer.
6208         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
6209         * modules/stat-tests (Depends-on): Likewise.
6210         * tests/test-fstatat.c (includes): Drop pathmax.h.
6211         * tests/test-stat.c (includes): Likewise.
6212         Reported by Bruno Haible.
6213
6214 2011-06-20  Bruno Haible  <bruno@clisp.org>
6215
6216         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
6217         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
6218         * lib/float.c: New file.
6219         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
6220         REPLACE_FLOAT_LDBL.
6221         * modules/float (Files): Add lib/float.c.
6222         (configure.ac): Invoke AC_LIBOBJ.
6223         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
6224
6225 2011-06-20  Bruno Haible  <bruno@clisp.org>
6226
6227         Tests for module 'float'.
6228         * modules/float-tests: New file.
6229         * tests/test-float.c: New file.
6230
6231 2011-06-19  Bruno Haible  <bruno@clisp.org>
6232
6233         isinf: Coding style.
6234         * lib/isinf.c: Use GNU coding style.
6235
6236 2011-06-19  Bruno Haible  <bruno@clisp.org>
6237
6238         linkat test: Avoid test failure on AIX 7.1.
6239         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
6240         * tests/test-link.h (test_link): Likewise.
6241
6242 2011-06-19  Bruno Haible  <bruno@clisp.org>
6243
6244         pread test: Avoid test failure on OpenBSD 4.9.
6245         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
6246
6247 2011-06-19  Bruno Haible  <bruno@clisp.org>
6248
6249         sprintf-posix: Fix test failure on AIX 7.1.
6250         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
6251         * doc/posix-functions/dprintf.texi: Mention limited precision problem
6252         on AIX.
6253         * doc/posix-functions/fprintf.texi: Likewise.
6254         * doc/posix-functions/printf.texi: Likewise.
6255         * doc/posix-functions/snprintf.texi: Likewise.
6256         * doc/posix-functions/sprintf.texi: Likewise.
6257         * doc/posix-functions/vdprintf.texi: Likewise.
6258         * doc/posix-functions/vfprintf.texi: Likewise.
6259         * doc/posix-functions/vprintf.texi: Likewise.
6260         * doc/posix-functions/vsnprintf.texi: Likewise.
6261         * doc/posix-functions/vsprintf.texi: Likewise.
6262
6263 2011-06-19  Bruno Haible  <bruno@clisp.org>
6264
6265         roundl-ieee: Fix test failure on AIX 7.1.
6266         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
6267         * doc/posix-functions/roundl.texi: Mention problem with negative
6268         arguments.
6269
6270 2011-06-19  Bruno Haible  <bruno@clisp.org>
6271
6272         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
6273         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
6274         * doc/posix-functions/round.texi: Mention problem with negative
6275         arguments.
6276         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
6277
6278 2011-06-19  Bruno Haible  <bruno@clisp.org>
6279
6280         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
6281         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
6282         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
6283         * doc/posix-functions/roundf.texi: Mention problem with negative
6284         arguments.
6285         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
6286
6287 2011-06-19  Bruno Haible  <bruno@clisp.org>
6288
6289         ceilf-ieee: Work around bug on MacOS X 10.5.
6290         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
6291
6292         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
6293         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
6294         IEEE compliant, avoid compiler optimizations.
6295         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
6296         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
6297         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
6298         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
6299         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
6300         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
6301         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
6302         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
6303         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
6304         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
6305
6306 2011-06-19  Bruno Haible  <bruno@clisp.org>
6307
6308         ceilf-ieee: Work around bug on AIX 7.1.
6309         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
6310         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
6311
6312 2011-06-19  Bruno Haible  <bruno@clisp.org>
6313
6314         ceil-ieee: Work around bug on AIX 7.1.
6315         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
6316         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
6317
6318 2011-06-18  Bruno Haible  <bruno@clisp.org>
6319
6320         fsync test: Avoid test failure on MacOS X and AIX.
6321         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
6322         EINVAL.
6323
6324 2011-06-18  Bruno Haible  <bruno@clisp.org>
6325
6326         openat, fdopendir tests: Fix link errors.
6327         * modules/openat-tests (Depends-on): Add progname.
6328         * modules/fdopendir-tests (Depends-on): Likewise.
6329         * tests/test-fchownat.c: Include progname.h.
6330         (main): Call set_program_name.
6331         * tests/test-fstatat.c: Include progname.h.
6332         (main): Call set_program_name.
6333         * tests/test-mkdirat.c: Include progname.h.
6334         (main): Call set_program_name.
6335         * tests/test-openat.c: Include progname.h.
6336         (main): Call set_program_name.
6337         * tests/test-unlinkat.c: Include progname.h.
6338         (main): Call set_program_name.
6339         * tests/test-fdopendir.c: Include progname.h.
6340         (main): Call set_program_name.
6341
6342 2011-06-18  Bruno Haible  <bruno@clisp.org>
6343
6344         Doc update.
6345         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
6346         HP-UX.
6347         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
6348
6349 2011-06-18  Bruno Haible  <bruno@clisp.org>
6350
6351         getcwd tests: Avoid compilation error on HP-UX 11.31.
6352         * modules/getcwd-tests (Depends-on): Add pathmax.
6353         * tests/test-getcwd.c: Include pathmax.h.
6354
6355 2011-06-18  Bruno Haible  <bruno@clisp.org>
6356
6357         isfinite, isinf: Fix link error on AIX 6 and 7.
6358         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
6359         needed, also test the macro with a 'float' argument.
6360         * m4/isinf.m4 (gl_ISINF): Likewise.
6361
6362 2011-06-18  Bruno Haible  <bruno@clisp.org>
6363
6364         getloadavg: Don't clobber LIBS. Regression from previous commit.
6365         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
6366         AC_CHECK_LIB from here...
6367         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
6368         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
6369         gl_func_getloadavg_done.
6370         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6371
6372 2011-06-18  Bruno Haible  <bruno@clisp.org>
6373
6374         clean-temp: Improve documentation.
6375         * lib/clean-temp.h: Explain better how to use this module.
6376         Reported by John Darrington <john@darrington.wattle.id.au>.
6377
6378 2011-06-17  Bruno Haible  <bruno@clisp.org>
6379
6380         pread, pwrite: Avoid cc warning on AIX.
6381         * lib/unistd.in.h (pread): Undefine before defining as a macro.
6382         (pwrite): Likewise.
6383
6384 2011-06-17  Bruno Haible  <bruno@clisp.org>
6385
6386         spawn-pipe tests: Fix link error.
6387         * tests/test-spawn-pipe-child.c: Undefine fprintf.
6388         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6389
6390 2011-06-17  Bruno Haible  <bruno@clisp.org>
6391
6392         Tests: Remove unnecessary dependency.
6393         * modules/canonicalize-tests (Depends-on): Remove progname.
6394         * modules/chown-tests (Depends-on): Likewise.
6395         * modules/dirname-tests (Depends-on): Likewise.
6396         * modules/fdopendir-tests (Depends-on): Likewise.
6397         * modules/fdutimensat-tests (Depends-on): Likewise.
6398         * modules/hash-tests (Depends-on): Likewise.
6399         * modules/lchown-tests (Depends-on): Likewise.
6400         * modules/linkat-tests (Depends-on): Likewise.
6401         * modules/renameat-tests (Depends-on): Likewise.
6402         * modules/spawn-pipe-tests (Depends-on): Likewise.
6403         * modules/utimensat-tests (Depends-on): Likewise.
6404
6405 2011-06-17  Bruno Haible  <bruno@clisp.org>
6406
6407         spawn-pipe tests: Fix link error.
6408         * tests/test-spawn-pipe-child.c: Undefine fflush.
6409
6410 2011-06-17  Bruno Haible  <bruno@clisp.org>
6411
6412         Fix tests link errors.
6413         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
6414         * modules/chown-tests (Makefile.am): Don't link test-chown with
6415         LIBINTL.
6416         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
6417         LIBINTL.
6418         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
6419         LIBINTL.
6420         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
6421         LIBINTL.
6422
6423 2011-06-16  Bruno Haible  <bruno@clisp.org>
6424
6425         crypto/gc-sha1: Fix recent regression.
6426         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
6427         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
6428
6429         crypto/gc-md5: Fix recent regression.
6430         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
6431
6432         crypto/gc-md4: Fix recent regression.
6433         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
6434         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
6435
6436         crypto/gc-arctwo: Fix recent regression.
6437         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
6438         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
6439
6440         crypto/gc-rijndael: Fix recent regression.
6441         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
6442         (configure.ac): Invoke AC_LIBOBJ here.
6443         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
6444         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6445
6446         crypto/gc-hmac-sha1: Fix recent regression.
6447         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
6448         (configure.ac): Invoke AC_LIBOBJ here.
6449         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
6450         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6451
6452         crypto/gc-hmac-md5: Fix recent regression.
6453         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
6454         (configure.ac): Invoke AC_LIBOBJ here.
6455         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
6456         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6457
6458         crypto/gc-des: Fix recent regression.
6459         * modules/crypto/gc-des (Files): Remove m4/des.m4.
6460         (configure.ac): Invoke AC_LIBOBJ here.
6461         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
6462         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6463
6464         crypto/gc-arcfour: Fix recent regression.
6465         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
6466         (configure.ac): Invoke AC_LIBOBJ here.
6467         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
6468         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6469
6470 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
6471
6472         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
6473         After the 2011-05-21 change, this macro requires
6474         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
6475         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
6476
6477 2011-06-16  Bruno Haible  <bruno@clisp.org>
6478
6479         fprintftime: Move AC_LIBOBJ invocations to module description.
6480         * m4/fprintftime.m4: Remove file.
6481         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
6482         (configure.ac): Remove gl_FPRINTFTIME call.
6483         (Makefile.am): Augment lib_SOURCES.
6484         Reported by Jim Meyering.
6485
6486 2011-06-16  Bruno Haible  <bruno@clisp.org>
6487
6488         tmpfile-safer: Finish 2011-05-23 commit.
6489         * m4/stdio-safer.m4: Really remove file.
6490         Reported by Jim Meyering.
6491
6492 2011-06-16  Bruno Haible  <bruno@clisp.org>
6493
6494         syntax-check: Fix typo.
6495         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
6496         printf-posix.m4.
6497         Reported by Jim Meyering.
6498
6499 2011-06-13  Jim Meyering  <meyering@redhat.com>
6500
6501         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
6502         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
6503
6504 2011-05-23  Bruno Haible  <bruno@clisp.org>
6505
6506         yesno: Move AC_LIBOBJ invocations to module description.
6507         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
6508         * modules/yesno (Makefile.am): Augment lib_SOURCES.
6509
6510 2011-05-23  Bruno Haible  <bruno@clisp.org>
6511
6512         xstrtol: Move AC_LIBOBJ invocations to module description.
6513         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
6514         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
6515
6516 2011-05-23  Bruno Haible  <bruno@clisp.org>
6517
6518         xstrtold: Move AC_LIBOBJ invocations to module description.
6519         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
6520         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
6521
6522 2011-05-23  Bruno Haible  <bruno@clisp.org>
6523
6524         xstrtod: Move AC_LIBOBJ invocations to module description.
6525         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
6526         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
6527
6528 2011-05-23  Bruno Haible  <bruno@clisp.org>
6529
6530         xnanosleep: Move AC_LIBOBJ invocations to module description.
6531         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
6532         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
6533
6534 2011-05-23  Bruno Haible  <bruno@clisp.org>
6535
6536         xgetcwd: Move AC_LIBOBJ invocations to module description.
6537         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
6538         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
6539
6540 2011-05-23  Bruno Haible  <bruno@clisp.org>
6541
6542         xalloc: Move AC_LIBOBJ invocations to module description.
6543         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
6544         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
6545
6546 2011-05-23  Bruno Haible  <bruno@clisp.org>
6547
6548         write-any-file: Move AC_LIBOBJ invocations to module description.
6549         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
6550         invocation.
6551         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
6552
6553 2011-05-23  Bruno Haible  <bruno@clisp.org>
6554
6555         utimens: Move AC_LIBOBJ invocations to module description.
6556         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
6557         * modules/utimens (Makefile.am): Augment lib_SOURCES.
6558
6559 2011-05-23  Bruno Haible  <bruno@clisp.org>
6560
6561         utimecmp: Move AC_LIBOBJ invocations to module description.
6562         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
6563         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
6564
6565 2011-05-23  Bruno Haible  <bruno@clisp.org>
6566
6567         userspec: Move AC_LIBOBJ invocations to module description.
6568         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
6569         * modules/userspec (Makefile.am): Augment lib_SOURCES.
6570
6571 2011-05-23  Bruno Haible  <bruno@clisp.org>
6572
6573         unlinkdir: Move AC_LIBOBJ invocations to module description.
6574         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
6575         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
6576
6577 2011-05-23  Bruno Haible  <bruno@clisp.org>
6578
6579         unistd-safer: Move AC_LIBOBJ invocations to module description.
6580         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
6581         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
6582
6583 2011-05-23  Bruno Haible  <bruno@clisp.org>
6584
6585         tempname: Move AC_LIBOBJ invocations to module description.
6586         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
6587         * modules/tempname (Makefile.am): Augment lib_SOURCES.
6588
6589 2011-05-23  Bruno Haible  <bruno@clisp.org>
6590
6591         strftime: Move AC_LIBOBJ invocations to module description.
6592         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
6593         * modules/strftime (Makefile.am): Augment lib_SOURCES.
6594
6595 2011-05-23  Bruno Haible  <bruno@clisp.org>
6596
6597         stdlib-safer: Move AC_LIBOBJ invocations to module description.
6598         * m4/stdlib-safer.m4: Remove file.
6599         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
6600         (configure.ac): Remove gl_STDLIB_SAFER call.
6601         (Makefile.am): Augment lib_SOURCES.
6602
6603 2011-05-23  Bruno Haible  <bruno@clisp.org>
6604
6605         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
6606         * m4/stdio-safer.m4: Remove file.
6607         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
6608         (configure.ac): Remove gl_TMPFILE_SAFER call.
6609         (Makefile.am): Augment lib_SOURCES.
6610
6611 2011-05-23  Bruno Haible  <bruno@clisp.org>
6612
6613         popen-safer: Move AC_LIBOBJ invocations to module description.
6614         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
6615         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
6616         (configure.ac): Remove gl_POPEN_SAFER call.
6617         (Makefile.am): Augment lib_SOURCES.
6618
6619 2011-05-23  Bruno Haible  <bruno@clisp.org>
6620
6621         freopen-safer: Move AC_LIBOBJ invocations to module description.
6622         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
6623         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
6624         (configure.ac): Remove gl_FREOPEN_SAFER call.
6625         (Makefile.am): Augment lib_SOURCES.
6626
6627 2011-05-23  Bruno Haible  <bruno@clisp.org>
6628
6629         fopen-safer: Move AC_LIBOBJ invocations to module description.
6630         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
6631         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
6632         (configure.ac): Remove gl_FOPEN_SAFER call.
6633         (Makefile.am): Augment lib_SOURCES.
6634
6635 2011-05-23  Bruno Haible  <bruno@clisp.org>
6636
6637         crypto/sha512: Move AC_LIBOBJ invocations to module description.
6638         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
6639         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
6640
6641 2011-05-23  Bruno Haible  <bruno@clisp.org>
6642
6643         crypto/sha256: Move AC_LIBOBJ invocations to module description.
6644         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
6645         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
6646
6647 2011-05-23  Bruno Haible  <bruno@clisp.org>
6648
6649         crypto/sha1: Move AC_LIBOBJ invocations to module description.
6650         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
6651         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
6652
6653 2011-05-23  Bruno Haible  <bruno@clisp.org>
6654
6655         settime: Move AC_LIBOBJ invocations to module description.
6656         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
6657         * modules/settime (Makefile.am): Augment lib_SOURCES.
6658
6659 2011-05-23  Bruno Haible  <bruno@clisp.org>
6660
6661         savedir: Move AC_LIBOBJ invocations to module description.
6662         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
6663         * modules/savedir (Makefile.am): Augment lib_SOURCES.
6664
6665 2011-05-23  Bruno Haible  <bruno@clisp.org>
6666
6667         save-cwd: Move AC_LIBOBJ invocations to module description.
6668         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
6669         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
6670
6671 2011-05-23  Bruno Haible  <bruno@clisp.org>
6672
6673         same: Move AC_LIBOBJ invocations to module description.
6674         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
6675         * modules/same (Makefile.am): Augment lib_SOURCES.
6676
6677 2011-05-23  Bruno Haible  <bruno@clisp.org>
6678
6679         safe-write: Move AC_LIBOBJ invocations to module description.
6680         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
6681         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
6682         instead of gl_SAFE_WRITE.
6683         (Makefile.am): Augment lib_SOURCES.
6684
6685 2011-05-23  Bruno Haible  <bruno@clisp.org>
6686
6687         safe-read: Move AC_LIBOBJ invocations to module description.
6688         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
6689         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
6690         of gl_SAFE_READ.
6691         (Makefile.am): Augment lib_SOURCES.
6692
6693 2011-05-23  Bruno Haible  <bruno@clisp.org>
6694
6695         safe-alloc: Move AC_LIBOBJ invocations to module description.
6696         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
6697         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
6698
6699 2011-05-23  Bruno Haible  <bruno@clisp.org>
6700
6701         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
6702         * m4/rijndael.m4: Remove file.
6703         * modules/crypto/rijndael (Files): Remove it.
6704         (configure.ac): Remove gl_RIJNDAEL call.
6705         (Makefile.am): Augment lib_SOURCES.
6706
6707 2011-05-23  Bruno Haible  <bruno@clisp.org>
6708
6709         readtokens: Move AC_LIBOBJ invocations to module description.
6710         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
6711         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
6712
6713 2011-05-23  Bruno Haible  <bruno@clisp.org>
6714
6715         read-file: Move AC_LIBOBJ invocations to module description.
6716         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
6717         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
6718         of gl_FUNC_READ_FILE.
6719         (Makefile.am): Augment lib_SOURCES.
6720
6721 2011-05-23  Bruno Haible  <bruno@clisp.org>
6722
6723         quotearg: Move AC_LIBOBJ invocations to module description.
6724         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
6725         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
6726
6727 2011-05-23  Bruno Haible  <bruno@clisp.org>
6728
6729         quote: Move AC_LIBOBJ invocations to module description.
6730         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
6731         * modules/quote (Makefile.am): Augment lib_SOURCES.
6732
6733 2011-05-23  Bruno Haible  <bruno@clisp.org>
6734
6735         posixver: Move AC_LIBOBJ invocations to module description.
6736         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
6737         * modules/posixver (Makefile.am): Augment lib_SOURCES.
6738
6739 2011-05-23  Bruno Haible  <bruno@clisp.org>
6740
6741         posixtm: Move AC_LIBOBJ invocations to module description.
6742         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
6743         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
6744
6745 2011-05-23  Bruno Haible  <bruno@clisp.org>
6746
6747         physmem: Move AC_LIBOBJ invocations to module description.
6748         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
6749         * modules/physmem (Makefile.am): Augment lib_SOURCES.
6750
6751 2011-05-23  Bruno Haible  <bruno@clisp.org>
6752
6753         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
6754         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
6755         invocation.
6756         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
6757
6758 2011-05-23  Bruno Haible  <bruno@clisp.org>
6759
6760         mpsort: Move AC_LIBOBJ invocations to module description.
6761         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
6762         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
6763
6764 2011-05-23  Bruno Haible  <bruno@clisp.org>
6765
6766         modechange: Move AC_LIBOBJ invocations to module description.
6767         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
6768         * modules/modechange (Makefile.am): Augment lib_SOURCES.
6769
6770 2011-05-23  Bruno Haible  <bruno@clisp.org>
6771
6772         mkdir-p: Move AC_LIBOBJ invocations to module description.
6773         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
6774         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
6775
6776 2011-05-23  Bruno Haible  <bruno@clisp.org>
6777
6778         mkancesdirs: Move AC_LIBOBJ invocations to module description.
6779         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
6780         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
6781
6782 2011-05-23  Bruno Haible  <bruno@clisp.org>
6783
6784         mgetgroups: Move AC_LIBOBJ invocations to module description.
6785         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
6786         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
6787
6788 2011-05-23  Bruno Haible  <bruno@clisp.org>
6789
6790         memxor: Move AC_LIBOBJ invocations to module description.
6791         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
6792         * modules/memxor (Makefile.am): Augment lib_SOURCES.
6793
6794 2011-05-23  Bruno Haible  <bruno@clisp.org>
6795
6796         memcoll: Move AC_LIBOBJ invocations to module description.
6797         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
6798         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
6799
6800 2011-05-23  Bruno Haible  <bruno@clisp.org>
6801
6802         memcasecmp: Move AC_LIBOBJ invocations to module description.
6803         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
6804         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
6805
6806 2011-05-23  Bruno Haible  <bruno@clisp.org>
6807
6808         crypto/md5: Move AC_LIBOBJ invocations to module description.
6809         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
6810         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
6811
6812 2011-05-23  Bruno Haible  <bruno@clisp.org>
6813
6814         crypto/md4: Move AC_LIBOBJ invocations to module description.
6815         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
6816         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
6817
6818 2011-05-23  Bruno Haible  <bruno@clisp.org>
6819
6820         crypto/md2: Move AC_LIBOBJ invocations to module description.
6821         * m4/md2.m4: Remove file.
6822         * modules/crypto/md2 (Files): Remove it.
6823         (configure.ac): Remove gl_MD2 call.
6824         (Makefile.am): Augment lib_SOURCES.
6825
6826 2011-05-23  Bruno Haible  <bruno@clisp.org>
6827
6828         long-options: Move AC_LIBOBJ invocations to module description.
6829         * m4/long-options.m4: Remove file.
6830         * modules/long-options (Files): Remove it.
6831         (configure.ac): Remove gl_LONG_OPTIONS call.
6832         (Makefile.am): Augment lib_SOURCES.
6833
6834 2011-05-23  Bruno Haible  <bruno@clisp.org>
6835
6836         i-ring: Move AC_LIBOBJ invocations to module description.
6837         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
6838         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
6839
6840 2011-05-23  Bruno Haible  <bruno@clisp.org>
6841
6842         idcache: Move AC_LIBOBJ invocations to module description.
6843         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
6844         * modules/idcache (Makefile.am): Augment lib_SOURCES.
6845
6846 2011-05-23  Bruno Haible  <bruno@clisp.org>
6847
6848         human: Move AC_LIBOBJ invocations to module description.
6849         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
6850         * modules/human (Makefile.am): Augment lib_SOURCES.
6851
6852 2011-05-23  Bruno Haible  <bruno@clisp.org>
6853
6854         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
6855         * m4/hmac-sha1.m4: Remove file.
6856         * modules/crypto/hmac-sha1 (Files): Remove it.
6857         (configure.ac): Remove gl_HMAC_SHA1 call.
6858         (Makefile.am): Augment lib_SOURCES.
6859
6860 2011-05-23  Bruno Haible  <bruno@clisp.org>
6861
6862         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
6863         * m4/hmac-md5.m4: Remove file.
6864         * modules/crypto/hmac-md5 (Files): Remove it.
6865         (configure.ac): Remove gl_HMAC_MD5 call.
6866         (Makefile.am): Augment lib_SOURCES.
6867
6868 2011-05-23  Bruno Haible  <bruno@clisp.org>
6869
6870         hash: Move AC_LIBOBJ invocations to module description.
6871         * m4/hash.m4: Remove file.
6872         * modules/hash (Files): Remove it.
6873         (configure.ac): Remove gl_HASH call.
6874         (Makefile.am): Augment lib_SOURCES.
6875
6876 2011-05-23  Bruno Haible  <bruno@clisp.org>
6877
6878         hard-locale: Move AC_LIBOBJ invocations to module description.
6879         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
6880         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
6881
6882 2011-05-23  Bruno Haible  <bruno@clisp.org>
6883
6884         getugroups: Move AC_LIBOBJ invocations to module description.
6885         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
6886         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
6887
6888 2011-05-23  Bruno Haible  <bruno@clisp.org>
6889
6890         gettime: Move AC_LIBOBJ invocations to module description.
6891         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
6892         * modules/gettime (Makefile.am): Augment lib_SOURCES.
6893
6894 2011-05-23  Bruno Haible  <bruno@clisp.org>
6895
6896         getndelim2: Move AC_LIBOBJ invocations to module description.
6897         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
6898         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
6899
6900 2011-05-23  Bruno Haible  <bruno@clisp.org>
6901
6902         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
6903         * m4/gc-pbkdf2-sha1.m4: Remove file.
6904         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
6905         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
6906         (Makefile.am): Augment lib_SOURCES.
6907
6908 2011-05-23  Bruno Haible  <bruno@clisp.org>
6909
6910         fts: Move AC_LIBOBJ invocations to module description.
6911         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
6912         * modules/fts (configure.ac): ... to here.
6913
6914 2011-05-23  Bruno Haible  <bruno@clisp.org>
6915
6916         file-type: Move AC_LIBOBJ invocations to module description.
6917         * m4/file-type.m4: Remove file.
6918         * modules/file-type (Files): Remove it.
6919         (configure.ac): Remove gl_FILE_TYPE call.
6920         (Makefile.am): Augment lib_SOURCES.
6921
6922 2011-05-23  Bruno Haible  <bruno@clisp.org>
6923
6924         filenamecat*: Respect rules for use of AC_LIBOBJ.
6925         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
6926         Remove AC_LIBOBJ invocation.
6927         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
6928         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
6929
6930 2011-05-23  Bruno Haible  <bruno@clisp.org>
6931
6932         filemode: Move AC_LIBOBJ invocations to module description.
6933         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
6934         * modules/filemode (Makefile.am): Augment lib_SOURCES.
6935
6936 2011-05-23  Bruno Haible  <bruno@clisp.org>
6937
6938         openat-safer: Move AC_LIBOBJ invocations to module description.
6939         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
6940         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
6941
6942 2011-05-23  Bruno Haible  <bruno@clisp.org>
6943
6944         fcntl-safer: Move AC_LIBOBJ invocations to module description.
6945         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
6946         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
6947
6948 2011-05-23  Bruno Haible  <bruno@clisp.org>
6949
6950         exclude: Move AC_LIBOBJ invocations to module description.
6951         * m4/exclude.m4: Remove file.
6952         * modules/exclude (Files): Remove it.
6953         (configure.ac): Remove gl_EXCLUDE call.
6954         (Makefile.am): Augment lib_SOURCES.
6955
6956 2011-05-23  Bruno Haible  <bruno@clisp.org>
6957
6958         dirname*: Respect rules for use of AC_LIBOBJ.
6959         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
6960         invocations.
6961         * modules/dirname (Makefile.am): Augment lib_SOURCES.
6962         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
6963
6964 2011-05-23  Bruno Haible  <bruno@clisp.org>
6965
6966         dirent-safer: Move AC_LIBOBJ invocations to module description.
6967         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
6968         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
6969
6970 2011-05-23  Bruno Haible  <bruno@clisp.org>
6971
6972         crypto/des: Move AC_LIBOBJ invocations to module description.
6973         * m4/des.m4: Remove file.
6974         * modules/crypto/des (Files): Remove it.
6975         (configure.ac): Remove gl_DES call.
6976         (Makefile.am): Augment lib_SOURCES.
6977
6978 2011-05-23  Bruno Haible  <bruno@clisp.org>
6979
6980         cycle-check: Move AC_LIBOBJ invocations to module description.
6981         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
6982         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
6983
6984 2011-05-23  Bruno Haible  <bruno@clisp.org>
6985
6986         c-strtold: Move AC_LIBOBJ invocations to module description.
6987         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
6988         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
6989
6990 2011-05-23  Bruno Haible  <bruno@clisp.org>
6991
6992         c-strtod: Move AC_LIBOBJ invocations to module description.
6993         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
6994         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
6995
6996 2011-05-23  Bruno Haible  <bruno@clisp.org>
6997
6998         crc: Move AC_LIBOBJ invocations to module description.
6999         * m4/crc.m4: Remove file.
7000         * modules/crc (Files): Remove it.
7001         (configure.ac): Remove gl_CRC call.
7002         (Makefile.am): Augment lib_SOURCES.
7003
7004 2011-05-23  Bruno Haible  <bruno@clisp.org>
7005
7006         close-stream: Move AC_LIBOBJ invocations to module description.
7007         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
7008         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
7009
7010 2011-05-23  Bruno Haible  <bruno@clisp.org>
7011
7012         closeout: Move AC_LIBOBJ invocations to module description.
7013         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
7014         * modules/closeout (Makefile.am): Augment lib_SOURCES.
7015
7016 2011-05-23  Bruno Haible  <bruno@clisp.org>
7017
7018         closein: Move AC_LIBOBJ invocations to module description.
7019         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
7020         * modules/closein (Makefile.am): Augment lib_SOURCES.
7021
7022 2011-05-23  Bruno Haible  <bruno@clisp.org>
7023
7024         cloexec: Move AC_LIBOBJ invocations to module description.
7025         * m4/cloexec.m4: Remove file.
7026         * modules/cloexec (Files): Remove it.
7027         (configure.ac): Remove gl_CLOEXEC call.
7028         (Makefile.am): Augment lib_SOURCES.
7029
7030 2011-05-23  Bruno Haible  <bruno@clisp.org>
7031
7032         check-version: Move AC_LIBOBJ invocations to module description.
7033         * m4/check-version.m4: Remove file.
7034         * modules/check-version (Files): Remove it.
7035         (configure.ac): Remove gl_CHECK_VERSION call.
7036         (Makefile.am): Augment lib_SOURCES.
7037
7038 2011-05-23  Bruno Haible  <bruno@clisp.org>
7039
7040         chdir-safer: Move AC_LIBOBJ invocations to module description.
7041         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
7042         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
7043
7044 2011-05-23  Bruno Haible  <bruno@clisp.org>
7045
7046         canonicalize: Move AC_LIBOBJ invocations to module description.
7047         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
7048         AC_LIBOBJ invocation.
7049         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
7050
7051 2011-05-23  Bruno Haible  <bruno@clisp.org>
7052
7053         canon-host: Move AC_LIBOBJ invocations to module description.
7054         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
7055         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
7056         instead of gl_CANON_HOST.
7057         (Makefile.am): Augment lib_SOURCES.
7058
7059 2011-05-23  Bruno Haible  <bruno@clisp.org>
7060
7061         backupfile: Move AC_LIBOBJ invocations to module description.
7062         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
7063         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
7064
7065 2011-05-23  Bruno Haible  <bruno@clisp.org>
7066
7067         argmatch: Move AC_LIBOBJ invocations to module description.
7068         * m4/argmatch.m4: Remove file.
7069         * modules/argmatch (Files): Remove it.
7070         (configure.ac): Remove gl_ARGMATCH call.
7071         (Makefile.am): Augment lib_SOURCES.
7072
7073 2011-05-23  Bruno Haible  <bruno@clisp.org>
7074
7075         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
7076         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
7077         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
7078
7079 2011-05-23  Bruno Haible  <bruno@clisp.org>
7080
7081         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
7082         * m4/arcfour.m4: Remove file.
7083         * modules/crypto/arcfour (Files): Remove it.
7084         (configure.ac): Remove gl_ARCFOUR call.
7085         (Makefile.am): Augment lib_SOURCES.
7086
7087 2011-05-22  Bruno Haible  <bruno@clisp.org>
7088
7089         write: Move AC_LIBOBJ invocations to module description.
7090         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
7091         * modules/write (configure.ac): ... to here.
7092
7093 2011-05-22  Bruno Haible  <bruno@clisp.org>
7094
7095         wmemset: Move AC_LIBOBJ invocations to module description.
7096         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
7097         here...
7098         * modules/wmemset (configure.ac): ... to here.
7099
7100 2011-05-22  Bruno Haible  <bruno@clisp.org>
7101
7102         wmemmove: Move AC_LIBOBJ invocations to module description.
7103         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
7104         here...
7105         * modules/wmemmove (configure.ac): ... to here.
7106
7107 2011-05-22  Bruno Haible  <bruno@clisp.org>
7108
7109         wmemcpy: Move AC_LIBOBJ invocations to module description.
7110         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
7111         here...
7112         * modules/wmemcpy (configure.ac): ... to here.
7113
7114 2011-05-22  Bruno Haible  <bruno@clisp.org>
7115
7116         wmemcmp: Move AC_LIBOBJ invocations to module description.
7117         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
7118         here...
7119         * modules/wmemcmp (configure.ac): ... to here.
7120
7121 2011-05-22  Bruno Haible  <bruno@clisp.org>
7122
7123         wmemchr: Move AC_LIBOBJ invocations to module description.
7124         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
7125         here...
7126         * modules/wmemchr (configure.ac): ... to here.
7127
7128 2011-05-22  Bruno Haible  <bruno@clisp.org>
7129
7130         wcswidth: Move AC_LIBOBJ invocations to module description.
7131         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
7132         here...
7133         * modules/wcswidth (configure.ac): ... to here.
7134
7135 2011-05-22  Bruno Haible  <bruno@clisp.org>
7136
7137         wcwidth: Respect rules for use of AC_LIBOBJ.
7138         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
7139         invocation from here...
7140         * modules/wcwidth (configure.ac): ... to here.
7141         (Depends-on): Update conditions.
7142
7143 2011-05-22  Bruno Haible  <bruno@clisp.org>
7144
7145         wctype: Move AC_LIBOBJ invocations to module description.
7146         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
7147         invocation from here...
7148         * modules/wctype (configure.ac): ... to here.
7149         (Depends-on): Update conditions.
7150
7151 2011-05-22  Bruno Haible  <bruno@clisp.org>
7152
7153         wctrans: Move AC_LIBOBJ invocations to module description.
7154         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
7155         invocation from here...
7156         * modules/wctrans (configure.ac): ... to here.
7157
7158 2011-05-22  Bruno Haible  <bruno@clisp.org>
7159
7160         wctomb: Move AC_LIBOBJ invocations to module description.
7161         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
7162         invocations from here...
7163         * modules/wctomb (configure.ac): ... to here.
7164
7165 2011-05-22  Bruno Haible  <bruno@clisp.org>
7166
7167         wctob: Move AC_LIBOBJ invocations to module description.
7168         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
7169         gl_PREREQ_WCTOB invocations from here...
7170         * modules/wctob (configure.ac): ... to here.
7171         (Depends-on): Update conditions.
7172
7173 2011-05-22  Bruno Haible  <bruno@clisp.org>
7174
7175         wcsxfrm: Move AC_LIBOBJ invocations to module description.
7176         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
7177         here...
7178         * modules/wcsxfrm (configure.ac): ... to here.
7179
7180 2011-05-22  Bruno Haible  <bruno@clisp.org>
7181
7182         wcstok: Move AC_LIBOBJ invocations to module description.
7183         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
7184         * modules/wcstok (configure.ac): ... to here.
7185
7186 2011-05-22  Bruno Haible  <bruno@clisp.org>
7187
7188         wcsstr: Move AC_LIBOBJ invocations to module description.
7189         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
7190         * modules/wcsstr (configure.ac): ... to here.
7191
7192 2011-05-22  Bruno Haible  <bruno@clisp.org>
7193
7194         wcsspn: Move AC_LIBOBJ invocations to module description.
7195         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
7196         * modules/wcsspn (configure.ac): ... to here.
7197
7198 2011-05-22  Bruno Haible  <bruno@clisp.org>
7199
7200         wcsrtombs: Move AC_LIBOBJ invocations to module description.
7201         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
7202         gl_PREREQ_WCSRTOMBS invocations from here...
7203         * modules/wcsrtombs (configure.ac): ... to here.
7204
7205 2011-05-22  Bruno Haible  <bruno@clisp.org>
7206
7207         wcsrchr: Move AC_LIBOBJ invocations to module description.
7208         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
7209         here...
7210         * modules/wcsrchr (configure.ac): ... to here.
7211
7212 2011-05-22  Bruno Haible  <bruno@clisp.org>
7213
7214         wcspbrk: Move AC_LIBOBJ invocations to module description.
7215         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
7216         here...
7217         * modules/wcspbrk (configure.ac): ... to here.
7218
7219 2011-05-22  Bruno Haible  <bruno@clisp.org>
7220
7221         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
7222         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
7223         gl_PREREQ_WCSNRTOMBS invocations from here...
7224         * modules/wcsnrtombs (configure.ac): ... to here.
7225
7226 2011-05-22  Bruno Haible  <bruno@clisp.org>
7227
7228         wcsnlen: Move AC_LIBOBJ invocations to module description.
7229         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
7230         here...
7231         * modules/wcsnlen (configure.ac): ... to here.
7232
7233 2011-05-22  Bruno Haible  <bruno@clisp.org>
7234
7235         wcsncpy: Move AC_LIBOBJ invocations to module description.
7236         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
7237         here...
7238         * modules/wcsncpy (configure.ac): ... to here.
7239
7240 2011-05-22  Bruno Haible  <bruno@clisp.org>
7241
7242         wcsncmp: Move AC_LIBOBJ invocations to module description.
7243         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
7244         here...
7245         * modules/wcsncmp (configure.ac): ... to here.
7246
7247 2011-05-22  Bruno Haible  <bruno@clisp.org>
7248
7249         wcsncat: Move AC_LIBOBJ invocations to module description.
7250         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
7251         here...
7252         * modules/wcsncat (configure.ac): ... to here.
7253
7254 2011-05-22  Bruno Haible  <bruno@clisp.org>
7255
7256         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
7257         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
7258         from here...
7259         * modules/wcsncasecmp (configure.ac): ... to here.
7260
7261 2011-05-22  Bruno Haible  <bruno@clisp.org>
7262
7263         wcslen: Move AC_LIBOBJ invocations to module description.
7264         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
7265         * modules/wcslen (configure.ac): ... to here.
7266
7267 2011-05-22  Bruno Haible  <bruno@clisp.org>
7268
7269         wcsdup: Move AC_LIBOBJ invocations to module description.
7270         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
7271         * modules/wcsdup (configure.ac): ... to here.
7272
7273 2011-05-22  Bruno Haible  <bruno@clisp.org>
7274
7275         wcscspn: Move AC_LIBOBJ invocations to module description.
7276         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
7277         here...
7278         * modules/wcscspn (configure.ac): ... to here.
7279
7280 2011-05-22  Bruno Haible  <bruno@clisp.org>
7281
7282         wcscpy: Move AC_LIBOBJ invocations to module description.
7283         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
7284         * modules/wcscpy (configure.ac): ... to here.
7285
7286 2011-05-22  Bruno Haible  <bruno@clisp.org>
7287
7288         wcscoll: Move AC_LIBOBJ invocations to module description.
7289         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
7290         here...
7291         * modules/wcscoll (configure.ac): ... to here.
7292
7293 2011-05-22  Bruno Haible  <bruno@clisp.org>
7294
7295         wcscmp: Move AC_LIBOBJ invocations to module description.
7296         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
7297         * modules/wcscmp (configure.ac): ... to here.
7298
7299 2011-05-22  Bruno Haible  <bruno@clisp.org>
7300
7301         wcschr: Move AC_LIBOBJ invocations to module description.
7302         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
7303         * modules/wcschr (configure.ac): ... to here.
7304
7305 2011-05-22  Bruno Haible  <bruno@clisp.org>
7306
7307         wcscat: Move AC_LIBOBJ invocations to module description.
7308         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
7309         * modules/wcscat (configure.ac): ... to here.
7310
7311 2011-05-22  Bruno Haible  <bruno@clisp.org>
7312
7313         wcscasecmp: Move AC_LIBOBJ invocations to module description.
7314         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
7315         here...
7316         * modules/wcscasecmp (configure.ac): ... to here.
7317
7318 2011-05-22  Bruno Haible  <bruno@clisp.org>
7319
7320         wcrtomb: Move AC_LIBOBJ invocations to module description.
7321         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
7322         invocations from here...
7323         * modules/wcrtomb (configure.ac): ... to here.
7324
7325 2011-05-22  Bruno Haible  <bruno@clisp.org>
7326
7327         wcpncpy: Move AC_LIBOBJ invocations to module description.
7328         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
7329         here...
7330         * modules/wcpncpy (configure.ac): ... to here.
7331
7332 2011-05-22  Bruno Haible  <bruno@clisp.org>
7333
7334         wcpcpy: Move AC_LIBOBJ invocations to module description.
7335         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
7336         * modules/wcpcpy (configure.ac): ... to here.
7337
7338 2011-05-22  Bruno Haible  <bruno@clisp.org>
7339
7340         waitpid: Move AC_LIBOBJ invocations to module description.
7341         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
7342         invocation from here...
7343         * modules/waitpid (configure.ac): ... to here.
7344
7345 2011-05-22  Bruno Haible  <bruno@clisp.org>
7346
7347         utimensat: Move AC_LIBOBJ invocations to module description.
7348         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
7349         here...
7350         * modules/utimensat (configure.ac): ... to here.
7351
7352 2011-05-22  Bruno Haible  <bruno@clisp.org>
7353
7354         usleep: Move AC_LIBOBJ invocations to module description.
7355         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
7356         here...
7357         * modules/usleep (configure.ac): ... to here.
7358
7359 2011-05-22  Bruno Haible  <bruno@clisp.org>
7360
7361         unlockpt: Move AC_LIBOBJ invocations to module description.
7362         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
7363         gl_PREREQ_UNLOCKPT invocations from here...
7364         * modules/unlockpt (configure.ac): ... to here.
7365
7366 2011-05-22  Bruno Haible  <bruno@clisp.org>
7367
7368         unlink: Respect rules for use of AC_LIBOBJ.
7369         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
7370         * modules/unlink (configure.ac): ... to here.
7371
7372 2011-05-22  Bruno Haible  <bruno@clisp.org>
7373
7374         uname: Move AC_LIBOBJ invocations to module description.
7375         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
7376         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
7377         here...
7378         * modules/uname (configure.ac): ... to here.
7379
7380 2011-05-22  Bruno Haible  <bruno@clisp.org>
7381
7382         ttyname_r: Move AC_LIBOBJ invocations to module description.
7383         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
7384         gl_PREREQ_TTYNAME_R invocations from here...
7385         * modules/ttyname_r (configure.ac): ... to here.
7386
7387 2011-05-22  Bruno Haible  <bruno@clisp.org>
7388
7389         tsearch: Move AC_LIBOBJ invocations to module description.
7390         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
7391         invocations from here...
7392         * modules/tsearch (configure.ac): ... to here.
7393
7394 2011-05-22  Bruno Haible  <bruno@clisp.org>
7395
7396         towctrans: Move AC_LIBOBJ invocations to module description.
7397         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
7398         AC_LIBOBJ invocation from here...
7399         * modules/towctrans (configure.ac): ... to here.
7400
7401 2011-05-22  Bruno Haible  <bruno@clisp.org>
7402
7403         tmpfile: Move AC_LIBOBJ invocations to module description.
7404         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
7405         invocations from here...
7406         * modules/tmpfile (configure.ac): ... to here.
7407
7408 2011-05-22  Bruno Haible  <bruno@clisp.org>
7409
7410         times: Move AC_LIBOBJ invocations to module description.
7411         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
7412         * modules/times (configure.ac): ... to here.
7413
7414 2011-05-22  Bruno Haible  <bruno@clisp.org>
7415
7416         time_r: Move AC_LIBOBJ invocations to module description.
7417         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
7418         invocations from here...
7419         * modules/time_r (configure.ac): ... to here.
7420
7421 2011-05-22  Bruno Haible  <bruno@clisp.org>
7422
7423         timegm: Move AC_LIBOBJ invocations to module description.
7424         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
7425         invocations from here...
7426         * modules/timegm (configure.ac): ... to here.
7427
7428 2011-05-22  Bruno Haible  <bruno@clisp.org>
7429
7430         tcgetsid: Move AC_LIBOBJ invocations to module description.
7431         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
7432         and gl_PREREQ_TCGETSID invocations from here...
7433         * modules/tcgetsid (configure.ac): ... to here.
7434         (Depends-on): Update conditions.
7435
7436 2011-05-22  Bruno Haible  <bruno@clisp.org>
7437
7438         symlinkat: Move AC_LIBOBJ invocations to module description.
7439         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
7440         here...
7441         * modules/symlinkat (configure.ac): ... to here.
7442
7443 2011-05-22  Bruno Haible  <bruno@clisp.org>
7444
7445         symlink: Move AC_LIBOBJ invocations to module description.
7446         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
7447         here...
7448         * modules/symlink (configure.ac): ... to here.
7449
7450 2011-05-22  Bruno Haible  <bruno@clisp.org>
7451
7452         strverscmp: Move AC_LIBOBJ invocations to module description.
7453         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
7454         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
7455         from here...
7456         * modules/strverscmp (configure.ac): ... to here.
7457
7458 2011-05-22  Bruno Haible  <bruno@clisp.org>
7459
7460         strtok_r: Move AC_LIBOBJ invocations to module description.
7461         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
7462         and gl_PREREQ_STRTOK_R invocations from here...
7463         * modules/strtok_r (configure.ac): ... to here.
7464         (Depends-on): Update conditions.
7465
7466 2011-05-22  Bruno Haible  <bruno@clisp.org>
7467
7468         strtoumax: Move AC_LIBOBJ invocations to module description.
7469         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
7470         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
7471         from here...
7472         * modules/strtoumax (configure.ac): ... to here.
7473
7474 2011-05-22  Bruno Haible  <bruno@clisp.org>
7475
7476         strtoimax: Move AC_LIBOBJ invocations to module description.
7477         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
7478         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
7479         from here...
7480         * modules/strtoimax (configure.ac): ... to here.
7481
7482 2011-05-22  Bruno Haible  <bruno@clisp.org>
7483
7484         strtoull: Move AC_LIBOBJ invocations to module description.
7485         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
7486         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
7487         from here...
7488         * modules/strtoull (configure.ac): ... to here.
7489
7490 2011-05-22  Bruno Haible  <bruno@clisp.org>
7491
7492         strtoll: Move AC_LIBOBJ invocations to module description.
7493         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
7494         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
7495         here...
7496         * modules/strtoll (configure.ac): ... to here.
7497
7498 2011-05-22  Bruno Haible  <bruno@clisp.org>
7499
7500         strtoul: Move AC_LIBOBJ invocations to module description.
7501         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
7502         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
7503         * modules/strtoul (configure.ac): ... to here.
7504
7505 2011-05-22  Bruno Haible  <bruno@clisp.org>
7506
7507         strtol: Move AC_LIBOBJ invocations to module description.
7508         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
7509         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
7510         * modules/strtol (configure.ac): ... to here.
7511
7512 2011-05-22  Bruno Haible  <bruno@clisp.org>
7513
7514         strtod: Move AC_LIBOBJ invocations to module description.
7515         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
7516         invocations from here...
7517         * modules/strtod (configure.ac): ... to here.
7518
7519 2011-05-22  Bruno Haible  <bruno@clisp.org>
7520
7521         strstr*: Move AC_LIBOBJ invocations to module description.
7522         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
7523         invocations from here...
7524         * modules/strstr-simple (configure.ac): ... to here.
7525         * modules/strstr (configure.ac): ... and here.
7526
7527 2011-05-22  Bruno Haible  <bruno@clisp.org>
7528
7529         strsignal: Move AC_LIBOBJ invocations to module description.
7530         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
7531         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
7532         * modules/strsignal (configure.ac): ... to here.
7533         (Depends-on): Update conditions.
7534
7535 2011-05-22  Bruno Haible  <bruno@clisp.org>
7536
7537         strsep: Move AC_LIBOBJ invocations to module description.
7538         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
7539         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
7540         here...
7541         * modules/strsep (configure.ac): ... to here.
7542
7543 2011-05-22  Bruno Haible  <bruno@clisp.org>
7544
7545         strptime: Move AC_LIBOBJ invocations to module description.
7546         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
7547         gl_PREREQ_STRPTIME invocations from here...
7548         * modules/strptime (configure.ac): ... to here.
7549
7550 2011-05-22  Bruno Haible  <bruno@clisp.org>
7551
7552         strpbrk: Move AC_LIBOBJ invocations to module description.
7553         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
7554         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
7555         here...
7556         * modules/strpbrk (configure.ac): ... to here.
7557
7558 2011-05-22  Bruno Haible  <bruno@clisp.org>
7559
7560         strnlen: Move AC_LIBOBJ invocations to module description.
7561         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
7562         invocations from here...
7563         * modules/strnlen (configure.ac): ... to here.
7564
7565 2011-05-22  Bruno Haible  <bruno@clisp.org>
7566
7567         strndup: Move AC_LIBOBJ invocations to module description.
7568         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
7569         invocations from here...
7570         * modules/strndup (configure.ac): ... to here.
7571         (Depends-on): Update conditions.
7572
7573 2011-05-22  Bruno Haible  <bruno@clisp.org>
7574
7575         strncat: Move AC_LIBOBJ invocations to module description.
7576         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
7577         invocations from here...
7578         * modules/strncat (configure.ac): ... to here.
7579
7580 2011-05-22  Bruno Haible  <bruno@clisp.org>
7581
7582         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
7583         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
7584         invocations from here...
7585         * modules/strdup (configure.ac): ... to here.
7586         * modules/strdup-posix (configure.ac): ... and here.
7587
7588 2011-05-22  Bruno Haible  <bruno@clisp.org>
7589
7590         strcspn: Move AC_LIBOBJ invocations to module description.
7591         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
7592         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
7593         here...
7594         * modules/strcspn (configure.ac): ... to here.
7595
7596 2011-05-22  Bruno Haible  <bruno@clisp.org>
7597
7598         strchrnul: Move AC_LIBOBJ invocations to module description.
7599         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
7600         gl_PREREQ_STRCHRNUL invocations from here...
7601         * modules/strchrnul (configure.ac): ... to here.
7602
7603 2011-05-22  Bruno Haible  <bruno@clisp.org>
7604
7605         strcasestr*: Move AC_LIBOBJ invocations to module description.
7606         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
7607         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
7608         * modules/strcasestr-simple (configure.ac): ... to here.
7609         * modules/strcasestr (configure.ac): ... and here.
7610
7611 2011-05-22  Bruno Haible  <bruno@clisp.org>
7612
7613         strcase: Move AC_LIBOBJ invocations to module description.
7614         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
7615         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
7616         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
7617         gl_PREREQ_STRNCASECMP invocations from here...
7618         * modules/strcase (configure.ac): ... to here.
7619
7620 2011-05-22  Bruno Haible  <bruno@clisp.org>
7621
7622         stpncpy: Move AC_LIBOBJ invocations to module description.
7623         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
7624         here...
7625         * modules/stpncpy (configure.ac): ... to here.
7626
7627 2011-05-22  Bruno Haible  <bruno@clisp.org>
7628
7629         stpcpy: Move AC_LIBOBJ invocations to module description.
7630         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
7631         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
7632         here...
7633         * modules/stpcpy (configure.ac): ... to here.
7634
7635 2011-05-21  Bruno Haible  <bruno@clisp.org>
7636
7637         stat: Move AC_LIBOBJ invocations to module description.
7638         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
7639         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
7640         here...
7641         * modules/stat (configure.ac): ... to here.
7642
7643 2011-05-21  Bruno Haible  <bruno@clisp.org>
7644
7645         sleep: Move AC_LIBOBJ invocations to module description.
7646         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
7647         * modules/sleep (configure.ac): ... to here.
7648
7649 2011-05-21  Bruno Haible  <bruno@clisp.org>
7650
7651         signbit: Move AC_LIBOBJ invocations to module description.
7652         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
7653         * modules/signbit (configure.ac): ... to here.
7654
7655 2011-05-21  Bruno Haible  <bruno@clisp.org>
7656
7657         sigprocmask: Move AC_LIBOBJ invocations to module description.
7658         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
7659         gl_PREREQ_SIGPROMASK invocations from here...
7660         * modules/sigprocmask (configure.ac): ... to here.
7661
7662 2011-05-21  Bruno Haible  <bruno@clisp.org>
7663
7664         sigaction: Move AC_LIBOBJ invocations to module description.
7665         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
7666         gl_PREREQ_SIGACTION invocations from here...
7667         * modules/sigaction (configure.ac): ... to here.
7668
7669 2011-05-21  Bruno Haible  <bruno@clisp.org>
7670
7671         sig2str: Move AC_LIBOBJ invocations to module description.
7672         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
7673         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
7674         here...
7675         * modules/sig2str (configure.ac): ... to here.
7676
7677 2011-05-21  Bruno Haible  <bruno@clisp.org>
7678
7679         setlocale: Move AC_LIBOBJ invocations to module description.
7680         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
7681         gl_PREREQ_SETLOCALE invocations from here...
7682         * modules/setlocale (configure.ac): ... to here.
7683
7684 2011-05-21  Bruno Haible  <bruno@clisp.org>
7685
7686         unsetenv: Move AC_LIBOBJ invocations to module description.
7687         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
7688         and gl_PREREQ_UNSETENV invocations from here...
7689         * modules/unsetenv (configure.ac): ... to here.
7690         (Depends-on): Update.
7691
7692 2011-05-21  Bruno Haible  <bruno@clisp.org>
7693
7694         setenv: Move AC_LIBOBJ invocations to module description.
7695         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
7696         here...
7697         * modules/setenv (configure.ac): ... to here.
7698
7699 2011-05-21  Bruno Haible  <bruno@clisp.org>
7700
7701         selinux-h: Move AC_LIBOBJ invocations to module description.
7702         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
7703         AC_LIBOBJ invocation from here...
7704         * modules/selinux-h (configure.ac): ... to here.
7705
7706 2011-05-21  Bruno Haible  <bruno@clisp.org>
7707
7708         select: Respect rules for use of AC_LIBOBJ.
7709         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
7710         here...
7711         * modules/select (configure.ac): ... to here.
7712
7713 2011-05-21  Bruno Haible  <bruno@clisp.org>
7714
7715         scandir: Move AC_LIBOBJ invocations to module description.
7716         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
7717         invocations from here...
7718         * modules/scandir (configure.ac): ... to here.
7719
7720 2011-05-21  Bruno Haible  <bruno@clisp.org>
7721
7722         rpmatch: Move AC_LIBOBJ invocations to module description.
7723         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
7724         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
7725         here...
7726         * modules/rpmatch (configure.ac): ... to here.
7727
7728 2011-05-21  Bruno Haible  <bruno@clisp.org>
7729
7730         rmdir: Respect rules for use of AC_LIBOBJ.
7731         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
7732         * modules/rmdir (configure.ac): ... to here.
7733
7734 2011-05-21  Bruno Haible  <bruno@clisp.org>
7735
7736         renameat: Move AC_LIBOBJ invocations to module description.
7737         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
7738         here...
7739         * modules/renameat (configure.ac): ... to here.
7740
7741 2011-05-21  Bruno Haible  <bruno@clisp.org>
7742
7743         rename: Respect rules for use of AC_LIBOBJ.
7744         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
7745         here...
7746         * modules/rename (configure.ac): ... to here.
7747
7748 2011-05-21  Bruno Haible  <bruno@clisp.org>
7749
7750         remove: Move AC_LIBOBJ invocations to module description.
7751         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
7752         here...
7753         * modules/remove (configure.ac): ... to here.
7754
7755 2011-05-21  Bruno Haible  <bruno@clisp.org>
7756
7757         relocatable-lib: Move AC_LIBOBJ invocations to module description.
7758         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
7759         macro.
7760         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
7761         * modules/relocatable-lib (configure.ac): ... to here.
7762         * modules/relocatable-prog-wrapper (configure.ac): Invoke
7763         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
7764
7765 2011-05-21  Bruno Haible  <bruno@clisp.org>
7766
7767         relocatable-prog: Move AC_LIBOBJ invocations to module description.
7768         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
7769         here...
7770         * modules/relocatable-prog (configure.ac): ... to here.
7771
7772 2011-05-21  Bruno Haible  <bruno@clisp.org>
7773
7774         regex: Move AC_LIBOBJ invocations to module description.
7775         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
7776         invocations from here...
7777         * modules/regex (configure.ac): ... to here.
7778
7779 2011-05-21  Bruno Haible  <bruno@clisp.org>
7780
7781         realloc-*: Move AC_LIBOBJ invocations to module description.
7782         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
7783         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
7784         AC_LIBOBJ invocations from here...
7785         * modules/realloc-gnu (configure.ac): ... to here.
7786         * modules/realloc-posix (configure.ac): ... and here.
7787
7788 2011-05-21  Bruno Haible  <bruno@clisp.org>
7789
7790         readutmp: Move AC_LIBOBJ invocations to module description.
7791         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
7792         * modules/readutmp (configure.ac): ... to here.
7793
7794 2011-05-21  Bruno Haible  <bruno@clisp.org>
7795
7796         readlinkat: Move AC_LIBOBJ invocations to module description.
7797         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
7798         here...
7799         * modules/readlinkat (configure.ac): ... to here.
7800
7801 2011-05-21  Bruno Haible  <bruno@clisp.org>
7802
7803         readlink: Move AC_LIBOBJ invocations to module description.
7804         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
7805         gl_PREREQ_READLINK invocations from here...
7806         * modules/readlink (configure.ac): ... to here.
7807
7808 2011-05-21  Bruno Haible  <bruno@clisp.org>
7809
7810         readline: Move AC_LIBOBJ invocations to module description.
7811         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
7812         gl_PREREQ_READLINE invocations from here...
7813         * modules/readline (configure.ac): ... to here.
7814
7815 2011-05-21  Bruno Haible  <bruno@clisp.org>
7816
7817         read: Move AC_LIBOBJ invocations to module description.
7818         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
7819         * modules/read (configure.ac): ... to here.
7820
7821 2011-05-21  Bruno Haible  <bruno@clisp.org>
7822
7823         rawmemchr: Move AC_LIBOBJ invocations to module description.
7824         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
7825         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
7826         from here...
7827         * modules/rawmemchr (configure.ac): ... to here.
7828
7829 2011-05-21  Bruno Haible  <bruno@clisp.org>
7830
7831         random_r: Move AC_LIBOBJ invocations to module description.
7832         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
7833         gl_PREREQ_RANDOM_R invocations from here...
7834         * modules/random_r (configure.ac): ... to here.
7835
7836 2011-05-21  Bruno Haible  <bruno@clisp.org>
7837
7838         pwrite: Move AC_LIBOBJ invocations to module description.
7839         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
7840         * modules/pwrite (configure.ac): ... to here.
7841
7842 2011-05-21  Bruno Haible  <bruno@clisp.org>
7843
7844         putenv: Move AC_LIBOBJ invocations to module description.
7845         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
7846         * modules/putenv (configure.ac): ... to here.
7847
7848 2011-05-21  Bruno Haible  <bruno@clisp.org>
7849
7850         login_tty: Move AC_LIBOBJ invocations to module description.
7851         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
7852         * modules/login_tty (configure.ac): ... to here.
7853
7854 2011-05-21  Bruno Haible  <bruno@clisp.org>
7855
7856         openpty: Move AC_LIBOBJ invocations to module description.
7857         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
7858         * modules/openpty (configure.ac): ... to here.
7859
7860 2011-05-21  Bruno Haible  <bruno@clisp.org>
7861
7862         forkpty: Move AC_LIBOBJ invocations to module description.
7863         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
7864         * modules/forkpty (configure.ac): ... to here.
7865
7866 2011-05-21  Bruno Haible  <bruno@clisp.org>
7867
7868         ptsname: Move AC_LIBOBJ invocations to module description.
7869         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
7870         invocations from here...
7871         * modules/ptsname (configure.ac): ... to here.
7872
7873 2011-05-21  Bruno Haible  <bruno@clisp.org>
7874
7875         pread: Move AC_LIBOBJ invocations to module description.
7876         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
7877         * modules/pread (configure.ac): ... to here.
7878
7879 2011-05-21  Bruno Haible  <bruno@clisp.org>
7880
7881         posix_spawn*: Move AC_LIBOBJ invocations to module description.
7882         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
7883         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
7884         * modules/posix_spawn (configure.ac): ... to here.
7885         * modules/posix_spawnp (configure.ac): ... and here.
7886
7887 2011-05-21  Bruno Haible  <bruno@clisp.org>
7888
7889         popen: Move AC_LIBOBJ invocations to module description.
7890         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
7891         invocations from here...
7892         * modules/popen (configure.ac): ... to here.
7893
7894 2011-05-21  Bruno Haible  <bruno@clisp.org>
7895
7896         poll: Move AC_LIBOBJ invocations to module description.
7897         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
7898         invocations from here...
7899         * modules/poll (configure.ac): ... to here.
7900
7901 2011-05-21  Bruno Haible  <bruno@clisp.org>
7902
7903         pipe-posix: Move AC_LIBOBJ invocations to module description.
7904         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
7905         * modules/pipe-posix (configure.ac): ... to here.
7906
7907 2011-05-21  Bruno Haible  <bruno@clisp.org>
7908
7909         openat: Respect rules for use of AC_LIBOBJ.
7910         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
7911         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
7912         * modules/openat (configure.ac): ... to here.
7913
7914 2011-05-21  Bruno Haible  <bruno@clisp.org>
7915
7916         obstack-printf*: Move AC_LIBOBJ invocations to module description.
7917         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
7918         invocation from here...
7919         * modules/obstack-printf (configure.ac): ... to here.
7920         * modules/obstack-printf-posix (configure.ac): ... and here.
7921
7922 2011-05-21  Bruno Haible  <bruno@clisp.org>
7923
7924         nl_langinfo: Move AC_LIBOBJ invocations to module description.
7925         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
7926         from here...
7927         * modules/nl_langinfo (configure.ac): ... to here.
7928
7929 2011-05-21  Bruno Haible  <bruno@clisp.org>
7930
7931         nanosleep: Move AC_LIBOBJ invocations to module description.
7932         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
7933         gl_PREREQ_NANOSLEEP invocations from here...
7934         * modules/nanosleep (configure.ac): ... to here.
7935
7936 2011-05-21  Bruno Haible  <bruno@clisp.org>
7937
7938         mountlist: Move AC_LIBOBJ invocations to module description.
7939         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
7940         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
7941         * modules/mountlist (configure.ac): ... to here.
7942
7943 2011-05-21  Bruno Haible  <bruno@clisp.org>
7944
7945         mktime: Respect rules for use of AC_LIBOBJ.
7946         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
7947         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
7948         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
7949         (gl_FUNC_MKTIME_INTERNAL): ... and here...
7950         * modules/mktime (configure.ac): ... to here.
7951         * modules/mktime-internal (configure.ac): ... and here.
7952         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
7953
7954 2011-05-21  Bruno Haible  <bruno@clisp.org>
7955
7956         mkstemps: Move AC_LIBOBJ invocations to module description.
7957         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
7958         here...
7959         * modules/mkstemps (configure.ac): ... to here.
7960
7961 2011-05-21  Bruno Haible  <bruno@clisp.org>
7962
7963         mkstemp: Move AC_LIBOBJ invocations to module description.
7964         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
7965         gl_PREREQ_MKSTEMP invocations from here...
7966         * modules/mkstemp (configure.ac): ... to here.
7967
7968 2011-05-21  Bruno Haible  <bruno@clisp.org>
7969
7970         mkostemps: Move AC_LIBOBJ invocations to module description.
7971         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
7972         here...
7973         * modules/mkostemps (configure.ac): ... to here.
7974
7975 2011-05-21  Bruno Haible  <bruno@clisp.org>
7976
7977         mkostemp: Move AC_LIBOBJ invocations to module description.
7978         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
7979         gl_PREREQ_MKOSTEMP invocations from here...
7980         * modules/mkostemp (configure.ac): ... to here.
7981
7982 2011-05-21  Bruno Haible  <bruno@clisp.org>
7983
7984         mknod: Move AC_LIBOBJ invocations to module description.
7985         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
7986         * modules/mknod (configure.ac): ... to here.
7987
7988 2011-05-21  Bruno Haible  <bruno@clisp.org>
7989
7990         mkfifoat: Move AC_LIBOBJ invocations to module description.
7991         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
7992         here...
7993         * modules/mkfifoat (configure.ac): ... to here.
7994
7995 2011-05-21  Bruno Haible  <bruno@clisp.org>
7996
7997         mkfifo: Respect rules for use of AC_LIBOBJ.
7998         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
7999         here...
8000         * modules/mkfifo (configure.ac): ... to here.
8001
8002 2011-05-21  Bruno Haible  <bruno@clisp.org>
8003
8004         mkdtemp: Move AC_LIBOBJ invocations to module description.
8005         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
8006         invocations from here...
8007         * modules/mkdtemp (configure.ac): ... to here.
8008
8009 2011-05-21  Bruno Haible  <bruno@clisp.org>
8010
8011         mkdir: Move AC_LIBOBJ invocations to module description.
8012         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
8013         * modules/mkdir (configure.ac): ... to here.
8014
8015 2011-05-21  Bruno Haible  <bruno@clisp.org>
8016
8017         memset: Move AC_LIBOBJ invocations to module description.
8018         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
8019         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
8020         here...
8021         * modules/memset (configure.ac): ... to here.
8022
8023 2011-05-21  Bruno Haible  <bruno@clisp.org>
8024
8025         memrchr: Move AC_LIBOBJ invocations to module description.
8026         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
8027         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
8028         here...
8029         * modules/memrchr (configure.ac): ... to here.
8030
8031 2011-05-21  Bruno Haible  <bruno@clisp.org>
8032
8033         mempcpy: Move AC_LIBOBJ invocations to module description.
8034         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
8035         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
8036         here...
8037         * modules/mempcpy (configure.ac): ... to here.
8038
8039 2011-05-21  Bruno Haible  <bruno@clisp.org>
8040
8041         memmove: Move AC_LIBOBJ invocations to module description.
8042         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
8043         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
8044         here...
8045         * modules/memmove (configure.ac): ... to here.
8046
8047 2011-05-21  Bruno Haible  <bruno@clisp.org>
8048
8049         memmem*: Move AC_LIBOBJ invocations to module description.
8050         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
8051         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
8052         here...
8053         (gl_FUNC_MEMMEM): ... and here...
8054         * modules/memmem-simple (configure.ac): ... to here.
8055         * modules/memmem (configure.ac): ... and here.
8056
8057 2011-05-21  Bruno Haible  <bruno@clisp.org>
8058
8059         memcpy: Move AC_LIBOBJ invocations to module description.
8060         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
8061         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
8062         here...
8063         * modules/memcpy (configure.ac): ... to here.
8064
8065 2011-05-21  Bruno Haible  <bruno@clisp.org>
8066
8067         memcmp: Simplify autoconf macro.
8068         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
8069         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
8070         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
8071
8072 2011-05-21  Bruno Haible  <bruno@clisp.org>
8073
8074         memcmp: Move AC_LIBOBJ invocations to module description.
8075         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
8076         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
8077         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
8078         * modules/memcmp (configure.ac): ... to here.
8079         (Depends-on): Update conditions.
8080
8081 2011-05-21  Bruno Haible  <bruno@clisp.org>
8082
8083         memchr: Respect rules for use of AC_LIBOBJ.
8084         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
8085         invocations from here...
8086         * modules/memchr (configure.ac): ... to here.
8087
8088 2011-05-21  Bruno Haible  <bruno@clisp.org>
8089
8090         mbtowc: Move AC_LIBOBJ invocations to module description.
8091         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
8092         invocations from here...
8093         * modules/mbtowc (configure.ac): ... to here.
8094
8095 2011-05-21  Bruno Haible  <bruno@clisp.org>
8096
8097         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
8098         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
8099         gl_PREREQ_MBSRTOWCS invocations from here...
8100         * modules/mbsrtowcs (configure.ac): ... to here.
8101
8102 2011-05-21  Bruno Haible  <bruno@clisp.org>
8103
8104         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
8105         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
8106         gl_PREREQ_MBSNRTOWCS invocations from here...
8107         * modules/mbsnrtowcs (configure.ac): ... to here.
8108
8109 2011-05-21  Bruno Haible  <bruno@clisp.org>
8110
8111         mbsinit: Move AC_LIBOBJ invocations to module description.
8112         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
8113         invocations from here...
8114         * modules/mbsinit (configure.ac): ... to here.
8115
8116 2011-05-21  Bruno Haible  <bruno@clisp.org>
8117
8118         mbrlen: Move AC_LIBOBJ invocations to module description.
8119         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
8120         invocations from here...
8121         * modules/mbrlen (configure.ac): ... to here.
8122
8123 2011-05-21  Bruno Haible  <bruno@clisp.org>
8124
8125         mbrtowc: Respect rules for use of AC_LIBOBJ.
8126         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
8127         invocations from here...
8128         * modules/mbrtowc (configure.ac): ... to here.
8129
8130 2011-05-21  Bruno Haible  <bruno@clisp.org>
8131
8132         malloc-*: Move AC_LIBOBJ invocations to module description.
8133         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
8134         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
8135         AC_LIBOBJ invocations from here...
8136         * modules/malloc-gnu (configure.ac): ... to here.
8137         * modules/malloc-posix (configure.ac): ... and here.
8138
8139 2011-05-21  Bruno Haible  <bruno@clisp.org>
8140
8141         lstat, openat: Respect rules for use of AC_LIBOBJ.
8142         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
8143         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
8144         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
8145         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
8146         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
8147         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
8148         here.
8149         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
8150
8151 2011-05-21  Bruno Haible  <bruno@clisp.org>
8152
8153         lseek: Move AC_LIBOBJ invocations to module description.
8154         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
8155         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
8156         * modules/lseek (configure.ac): ... to here.
8157
8158 2011-05-21  Bruno Haible  <bruno@clisp.org>
8159
8160         linkat: Move AC_LIBOBJ invocations to module description.
8161         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
8162         here...
8163         * modules/linkat (configure.ac): ... to here.
8164
8165 2011-05-21  Bruno Haible  <bruno@clisp.org>
8166
8167         link: Respect rules for use of AC_LIBOBJ.
8168         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
8169         * modules/link (configure.ac): ... to here.
8170
8171 2011-05-21  Bruno Haible  <bruno@clisp.org>
8172
8173         lchown: Move AC_LIBOBJ invocations to module description.
8174         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
8175         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
8176         * modules/lchown (configure.ac): ... to here.
8177
8178 2011-05-21  Bruno Haible  <bruno@clisp.org>
8179
8180         iswctype: Move AC_LIBOBJ invocations to module description.
8181         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
8182         here...
8183         * modules/iswctype (configure.ac): ... to here.
8184
8185 2011-05-21  Bruno Haible  <bruno@clisp.org>
8186
8187         iswblank: Move AC_LIBOBJ invocations to module description.
8188         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
8189         here...
8190         * modules/iswblank (configure.ac): ... to here.
8191
8192 2011-05-21  Bruno Haible  <bruno@clisp.org>
8193
8194         atanl: Move AC_LIBOBJ invocations to module description.
8195         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
8196         * modules/atanl (configure.ac): ... to here.
8197
8198 2011-05-21  Bruno Haible  <bruno@clisp.org>
8199
8200         acosl: Move AC_LIBOBJ invocations to module description.
8201         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
8202         * modules/acosl (configure.ac): ... to here.
8203
8204 2011-05-21  Bruno Haible  <bruno@clisp.org>
8205
8206         asinl: Respect rules for use of AC_LIBOBJ.
8207         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
8208         * modules/asinl (configure.ac): ... to here.
8209
8210 2011-05-21  Bruno Haible  <bruno@clisp.org>
8211
8212         tanl: Move AC_LIBOBJ invocations to module description.
8213         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
8214         * modules/tanl (configure.ac): ... to here.
8215
8216 2011-05-21  Bruno Haible  <bruno@clisp.org>
8217
8218         cosl: Move AC_LIBOBJ invocations to module description.
8219         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
8220         * modules/cosl (configure.ac): ... to here.
8221
8222 2011-05-21  Bruno Haible  <bruno@clisp.org>
8223
8224         sinl: Move AC_LIBOBJ invocations to module description.
8225         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
8226         * modules/sinl (configure.ac): ... to here.
8227
8228 2011-05-21  Bruno Haible  <bruno@clisp.org>
8229
8230         logl: Move AC_LIBOBJ invocations to module description.
8231         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
8232         * modules/logl (configure.ac): ... to here.
8233
8234 2011-05-21  Bruno Haible  <bruno@clisp.org>
8235
8236         expl: Move AC_LIBOBJ invocations to module description.
8237         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
8238         * modules/expl (configure.ac): ... to here.
8239
8240 2011-05-21  Bruno Haible  <bruno@clisp.org>
8241
8242         roundl: Move AC_LIBOBJ invocations to module description.
8243         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
8244         * modules/roundl (configure.ac): ... to here.
8245
8246 2011-05-21  Bruno Haible  <bruno@clisp.org>
8247
8248         round: Move AC_LIBOBJ invocations to module description.
8249         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
8250         * modules/round (configure.ac): ... to here.
8251
8252 2011-05-21  Bruno Haible  <bruno@clisp.org>
8253
8254         roundf: Move AC_LIBOBJ invocations to module description.
8255         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
8256         * modules/roundf (configure.ac): ... to here.
8257
8258 2011-05-21  Bruno Haible  <bruno@clisp.org>
8259
8260         truncl: Move AC_LIBOBJ invocations to module description.
8261         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
8262         * modules/truncl (configure.ac): ... to here.
8263
8264 2011-05-21  Bruno Haible  <bruno@clisp.org>
8265
8266         trunc: Move AC_LIBOBJ invocations to module description.
8267         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
8268         * modules/trunc (configure.ac): ... to here.
8269
8270 2011-05-21  Bruno Haible  <bruno@clisp.org>
8271
8272         truncf: Move AC_LIBOBJ invocations to module description.
8273         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
8274         * modules/truncf (configure.ac): ... to here.
8275
8276 2011-05-21  Bruno Haible  <bruno@clisp.org>
8277
8278         ceill: Move AC_LIBOBJ invocations to module description.
8279         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
8280         * modules/ceill (configure.ac): ... to here.
8281
8282 2011-05-21  Bruno Haible  <bruno@clisp.org>
8283
8284         ceil: Move AC_LIBOBJ invocations to module description.
8285         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
8286         * modules/ceil (configure.ac): ... to here.
8287
8288 2011-05-21  Bruno Haible  <bruno@clisp.org>
8289
8290         ceilf: Move AC_LIBOBJ invocations to module description.
8291         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
8292         * modules/ceilf (configure.ac): ... to here.
8293
8294 2011-05-21  Bruno Haible  <bruno@clisp.org>
8295
8296         floorl: Respect rules for use of AC_LIBOBJ.
8297         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
8298         * modules/floorl (configure.ac): ... to here.
8299
8300 2011-05-21  Bruno Haible  <bruno@clisp.org>
8301
8302         floor: Respect rules for use of AC_LIBOBJ.
8303         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
8304         * modules/floor (configure.ac): ... to here.
8305
8306 2011-05-21  Bruno Haible  <bruno@clisp.org>
8307
8308         floorf: Move AC_LIBOBJ invocations to module description.
8309         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
8310         * modules/floorf (configure.ac): ... to here.
8311
8312 2011-05-20  Bruno Haible  <bruno@clisp.org>
8313
8314         sqrtl: Respect rules for use of AC_LIBOBJ.
8315         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
8316         * modules/sqrtl (configure.ac): ... to here.
8317
8318 2011-05-20  Bruno Haible  <bruno@clisp.org>
8319
8320         ldexpl: Respect rules for use of AC_LIBOBJ.
8321         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
8322         * modules/ldexpl (configure.ac): ... to here.
8323
8324 2011-05-20  Bruno Haible  <bruno@clisp.org>
8325
8326         frexpl*: Respect rules for use of AC_LIBOBJ.
8327         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
8328         invocation from here...
8329         * modules/frexpl (configure.ac): ... to here.
8330         * modules/frexpl-nolibm (configure.ac): ... and here.
8331
8332 2011-05-20  Bruno Haible  <bruno@clisp.org>
8333
8334         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
8335         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
8336         invocation from here...
8337         * modules/frexp (configure.ac): ... to here.
8338         * modules/frexp-nolibm (configure.ac): ... and here.
8339
8340 2011-05-20  Bruno Haible  <bruno@clisp.org>
8341
8342         isnan: Respect rules for use of AC_LIBOBJ.
8343         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
8344         invocations here.
8345         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
8346         REPLACE_ISNAN.
8347         * modules/isnand (configure.ac): Likewise.
8348         * modules/isnanl (configure.ac): Likewise.
8349
8350 2011-05-20  Bruno Haible  <bruno@clisp.org>
8351
8352         isnanl*: Respect rules for use of AC_LIBOBJ.
8353         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
8354         invocation from here...
8355         * modules/isnanl (configure.ac): ... to here.
8356         * modules/isnanl-nolibm (configure.ac): ... and here.
8357
8358 2011-05-20  Bruno Haible  <bruno@clisp.org>
8359
8360         isnand*: Move AC_LIBOBJ invocations to module description.
8361         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
8362         invocation from here...
8363         * modules/isnand (configure.ac): ... to here.
8364         * modules/isnand-nolibm (configure.ac): ... and here.
8365
8366 2011-05-20  Bruno Haible  <bruno@clisp.org>
8367
8368         isnanf*: Move AC_LIBOBJ invocations to module description.
8369         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
8370         invocation from here...
8371         * modules/isnanf (configure.ac): ... to here.
8372         * modules/isnanf-nolibm (configure.ac): ... and here.
8373
8374 2011-05-20  Bruno Haible  <bruno@clisp.org>
8375
8376         isnan*: Separate the AC_LIBOBJ invocations.
8377         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
8378         AC_LIBOBJ invocation.
8379         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
8380         here.
8381         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
8382         AC_LIBOBJ invocation.
8383         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
8384         here.
8385         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
8386         AC_LIBOBJ invocation.
8387         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
8388         here.
8389         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
8390
8391 2011-05-08  Bruno Haible  <bruno@clisp.org>
8392
8393         isinf: Move AC_LIBOBJ invocations to module description.
8394         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
8395         * modules/isinf (configure.ac): ... to here.
8396
8397 2011-05-08  Bruno Haible  <bruno@clisp.org>
8398
8399         isfinite: Move AC_LIBOBJ invocations to module description.
8400         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
8401         * modules/isfinite (configure.ac): ... to here.
8402
8403 2011-05-08  Bruno Haible  <bruno@clisp.org>
8404
8405         isblank: Move AC_LIBOBJ invocations to module description.
8406         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
8407         here...
8408         * modules/isblank (configure.ac): ... to here.
8409
8410 2011-05-08  Bruno Haible  <bruno@clisp.org>
8411
8412         isapipe: Move AC_LIBOBJ invocations to module description.
8413         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
8414         gl_PREREQ_ISAPIPE invocations from here...
8415         * modules/isapipe (configure.ac): ... to here.
8416         (Depends-on): Update condition.
8417
8418 2011-05-08  Bruno Haible  <bruno@clisp.org>
8419
8420         ioctl: Move AC_LIBOBJ invocations to module description.
8421         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
8422         invocations from here...
8423         * modules/ioctl (configure.ac): ... to here.
8424         (Depends-on): Update condition.
8425
8426 2011-05-08  Bruno Haible  <bruno@clisp.org>
8427
8428         imaxdiv: Move AC_LIBOBJ invocations to module description.
8429         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
8430         invocations from here...
8431         * modules/imaxdiv (configure.ac): ... to here.
8432
8433 2011-05-08  Bruno Haible  <bruno@clisp.org>
8434
8435         imaxabs: Move AC_LIBOBJ invocations to module description.
8436         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
8437         invocations from here...
8438         * modules/imaxabs (configure.ac): ... to here.
8439
8440 2011-05-08  Bruno Haible  <bruno@clisp.org>
8441
8442         getaddrinfo: Move AC_LIBOBJ invocations to module description.
8443         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
8444         AC_LIBOBJ invocations from here...
8445         * modules/getaddrinfo (configure.ac): ... to here.
8446         (Depends-on): Add conditions.
8447
8448 2011-05-08  Bruno Haible  <bruno@clisp.org>
8449
8450         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
8451         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
8452         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
8453         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
8454         (gl_PREREQ_INET_PTON): ... from here.
8455         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
8456         gl_PREREQ_INET_PTON here.
8457         (Depends-on): Update condition.
8458
8459 2011-05-08  Bruno Haible  <bruno@clisp.org>
8460
8461         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
8462         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
8463         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
8464         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
8465         (gl_PREREQ_INET_NTOP): ... from here.
8466         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
8467         gl_PREREQ_INET_NTOP here.
8468         (Depends-on): Update condition.
8469
8470 2011-05-08  Bruno Haible  <bruno@clisp.org>
8471
8472         iconv_open: Move AC_LIBOBJ invocations to module description.
8473         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
8474         AC_LIBOBJ invocations from here...
8475         * modules/iconv_open (configure.ac): ... to here.
8476
8477 2011-05-08  Bruno Haible  <bruno@clisp.org>
8478
8479         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
8480         If module 'iconv_open' is among the main modules and module
8481         'iconv_open-utf' is among the tests dependencies, then
8482         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
8483         return the special iconv_t values. Therefore iconv() and iconv_close()
8484         must support these special iconv_t values, already in lib, not only in
8485         tests.
8486         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
8487         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
8488         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
8489         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
8490         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
8491         (Depends-on): Add the dependencies of iconv_open-utf.
8492         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
8493         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
8494         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
8495
8496 2011-05-08  Bruno Haible  <bruno@clisp.org>
8497
8498         group-member: Move AC_LIBOBJ invocations to module description.
8499         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
8500         gl_PREREQ_GROUP_MEMBER invocations from here...
8501         * modules/group-member (configure.ac): ... to here.
8502
8503 2011-05-08  Bruno Haible  <bruno@clisp.org>
8504
8505         grantpt: Move AC_LIBOBJ invocations to module description.
8506         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
8507         invocations from here...
8508         * modules/grantpt (configure.ac): ... to here.
8509
8510 2011-05-08  Bruno Haible  <bruno@clisp.org>
8511
8512         glob: Move AC_LIBOBJ invocations to module description.
8513         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
8514         from here...
8515         * modules/glob (configure.ac): ... to here.
8516
8517 2011-05-08  Bruno Haible  <bruno@clisp.org>
8518
8519         getusershell: Move AC_LIBOBJ invocations to module description.
8520         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
8521         Move AC_LIBOBJ invocation from here...
8522         * modules/getusershell (configure.ac): ... to here.
8523         (Depends-on): Update condition.
8524
8525 2011-05-08  Bruno Haible  <bruno@clisp.org>
8526
8527         gettimeofday: Move AC_LIBOBJ invocations to module description.
8528         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
8529         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
8530         gl_PREREQ_GETTIMEOFDAY invocations from here...
8531         * modules/gettimeofday (configure.ac): ... to here.
8532
8533 2011-05-08  Bruno Haible  <bruno@clisp.org>
8534
8535         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
8536         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
8537         just gl_FUNC_TZSET.
8538         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
8539         (gl_FUNC_TZSET_CLOBBER): Remove actions.
8540         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
8541         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
8542
8543 2011-05-08  Bruno Haible  <bruno@clisp.org>
8544
8545         getsubopt: Move AC_LIBOBJ invocations to module description.
8546         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
8547         gl_PREREQ_GETSUBOPT invocations from here...
8548         * modules/getsubopt (configure.ac): ... to here.
8549
8550 2011-05-08  Bruno Haible  <bruno@clisp.org>
8551
8552         getpass-gnu: Move AC_LIBOBJ invocations to module description.
8553         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
8554         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
8555         * modules/getpass-gnu (configure.ac): ... to here.
8556
8557 2011-05-08  Bruno Haible  <bruno@clisp.org>
8558
8559         getpass: Move AC_LIBOBJ invocations to module description.
8560         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
8561         gl_PREREQ_GETPASS invocations from here...
8562         * modules/getpass (configure.ac): ... to here.
8563
8564 2011-05-08  Bruno Haible  <bruno@clisp.org>
8565
8566         getpagesize: Move AC_LIBOBJ invocations to module description.
8567         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
8568         from here...
8569         * modules/getpagesize (configure.ac): ... to here.
8570
8571 2011-05-08  Bruno Haible  <bruno@clisp.org>
8572
8573         getopt: Move AC_LIBOBJ invocations to module description.
8574         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
8575         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
8576         invocations from here...
8577         * modules/getopt-gnu (configure.ac): ... to here.
8578         * modules/getopt-posix (configure.ac): ... and here.
8579         (Depends-on): Update condition.
8580
8581 2011-05-08  Bruno Haible  <bruno@clisp.org>
8582
8583         getopt, argp: Respect rules for use of AC_LIBOBJ.
8584         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
8585         (gl_REPLACE_GETOPT_ALWAYS): New macro.
8586         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
8587         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
8588
8589 2011-05-08  Bruno Haible  <bruno@clisp.org>
8590
8591         getlogin_r: Move AC_LIBOBJ invocations to module description.
8592         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
8593         gl_PREREQ_GETLOGIN_R invocations from here...
8594         * modules/getlogin_r (configure.ac): ... to here.
8595
8596 2011-05-08  Bruno Haible  <bruno@clisp.org>
8597
8598         getlogin: Move AC_LIBOBJ invocations to module description.
8599         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
8600         here...
8601         * modules/getlogin (configure.ac): ... to here.
8602
8603 2011-05-08  Bruno Haible  <bruno@clisp.org>
8604
8605         getloadavg: Move AC_LIBOBJ invocations to module description.
8606         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
8607         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
8608         * modules/getloadavg (configure.ac): ... to here.
8609
8610 2011-05-08  Bruno Haible  <bruno@clisp.org>
8611
8612         gethrxtime: Move AC_LIBOBJ invocations to module description.
8613         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
8614         LIB_GETHRXTIME from here...
8615         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
8616         invocations from here...
8617         * modules/gethrxtime (configure.ac): ... to here.
8618
8619 2011-05-08  Bruno Haible  <bruno@clisp.org>
8620
8621         gethostname: Move AC_LIBOBJ invocations to module description.
8622         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
8623         gl_PREREQ_GETHOSTNAME invocations from here...
8624         * modules/gethostname (configure.ac): ... to here.
8625
8626 2011-05-08  Bruno Haible  <bruno@clisp.org>
8627
8628         getgroups: Move AC_LIBOBJ invocations to module description.
8629         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
8630         here...
8631         * modules/getgroups (configure.ac): ... to here.
8632
8633 2011-05-08  Bruno Haible  <bruno@clisp.org>
8634
8635         getdtablesize: Move AC_LIBOBJ invocations to module description.
8636         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
8637         invocation from here...
8638         * modules/getdtablesize (configure.ac): ... to here.
8639
8640 2011-05-08  Bruno Haible  <bruno@clisp.org>
8641
8642         getdomainname: Move AC_LIBOBJ invocations to module description.
8643         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
8644         gl_PREREQ_GETDOMAINNAME invocations from here...
8645         * modules/getdomainname (configure.ac): ... to here.
8646
8647 2011-05-08  Bruno Haible  <bruno@clisp.org>
8648
8649         getline: Move AC_LIBOBJ invocations to module description.
8650         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
8651         invocations from here...
8652         * modules/getline (configure.ac): ... to here.
8653
8654 2011-05-08  Bruno Haible  <bruno@clisp.org>
8655
8656         getline: Simplify.
8657         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
8658         It's already handled through the module dependency.
8659
8660 2011-05-08  Bruno Haible  <bruno@clisp.org>
8661
8662         getdelim: Move AC_LIBOBJ invocations to module description.
8663         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
8664         and gl_PREREQ_GETDELIM invocations from here...
8665         * modules/getdelim (configure.ac): ... to here.
8666         (Depends-on): Fix condition.
8667
8668 2011-05-08  Bruno Haible  <bruno@clisp.org>
8669
8670         getcwd: Move AC_LIBOBJ invocations to module description.
8671         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
8672         invocations from here...
8673         * modules/getcwd (configure.ac): ... to here.
8674
8675 2011-05-08  Bruno Haible  <bruno@clisp.org>
8676
8677         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
8678         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
8679         here...
8680         * modules/getcwd-lgpl (configure.ac): ... to here.
8681
8682 2011-05-07  Bruno Haible  <bruno@clisp.org>
8683
8684         crypto/gc: Move AC_LIBOBJ invocations to module description.
8685         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
8686         * modules/crypto/gc (configure.ac): ... to here.
8687
8688 2011-05-07  Bruno Haible  <bruno@clisp.org>
8689
8690         fwriting: Move AC_LIBOBJ invocations to module description.
8691         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
8692         here...
8693         * modules/fwriting (configure.ac): ... to here.
8694
8695 2011-05-07  Bruno Haible  <bruno@clisp.org>
8696
8697         fwritable: Move AC_LIBOBJ invocations to module description.
8698         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
8699         here...
8700         * modules/fwritable (configure.ac): ... to here.
8701
8702 2011-05-07  Bruno Haible  <bruno@clisp.org>
8703
8704         futimens: Move AC_LIBOBJ invocations to module description.
8705         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
8706         here...
8707         * modules/futimens (configure.ac): ... to here.
8708
8709 2011-05-07  Bruno Haible  <bruno@clisp.org>
8710
8711         ftruncate: Move AC_LIBOBJ invocations to module description.
8712         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
8713         gl_PREREQ_FTRUNCATE invocations from here...
8714         * modules/ftruncate (configure.ac): ... to here.
8715
8716 2011-05-07  Bruno Haible  <bruno@clisp.org>
8717
8718         fsync: Move AC_LIBOBJ invocations to module description.
8719         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
8720         invocations from here...
8721         * modules/fsync (configure.ac): ... to here.
8722
8723 2011-05-07  Bruno Haible  <bruno@clisp.org>
8724
8725         fsusage: Move AC_LIBOBJ invocations to module description.
8726         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
8727         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
8728         * modules/fsusage (configure.ac): ... to here.
8729
8730 2011-05-07  Bruno Haible  <bruno@clisp.org>
8731
8732         freopen: Move AC_LIBOBJ invocations to module description.
8733         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
8734         invocations from here...
8735         * modules/freopen (configure.ac): ... to here.
8736
8737 2011-05-07  Bruno Haible  <bruno@clisp.org>
8738
8739         free: Move AC_LIBOBJ invocations to module description.
8740         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
8741         invocations from here...
8742         * modules/free (configure.ac): ... to here.
8743
8744 2011-05-07  Bruno Haible  <bruno@clisp.org>
8745
8746         freadable: Move AC_LIBOBJ invocations to module description.
8747         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
8748         here...
8749         * modules/freadable (configure.ac): ... to here.
8750
8751 2011-05-07  Bruno Haible  <bruno@clisp.org>
8752
8753         fpurge: Move AC_LIBOBJ invocations to module description.
8754         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
8755         invocations from here...
8756         * modules/fpurge (configure.ac): ... to here.
8757
8758 2011-05-07  Bruno Haible  <bruno@clisp.org>
8759
8760         fpending: Move AC_LIBOBJ invocations to module description.
8761         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
8762         gl_FUNC_FPENDING.
8763         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
8764         invocations from here...
8765         * modules/fpending (configure.ac): ... to here.
8766
8767 2011-05-07  Bruno Haible  <bruno@clisp.org>
8768
8769         fopen: Move AC_LIBOBJ invocations to module description.
8770         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
8771         invocations from here...
8772         * modules/fopen (configure.ac): ... to here.
8773
8774 2011-05-07  Bruno Haible  <bruno@clisp.org>
8775
8776         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
8777         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
8778         gl_FUNC_FNMATCH_POSIX.
8779         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
8780         invocations from here...
8781         * modules/fnmatch (configure.ac): ... to here.
8782         * modules/fnmatch-gnu (configure.ac): ... and here.
8783
8784 2011-05-07  Bruno Haible  <bruno@clisp.org>
8785
8786         flock: Move AC_LIBOBJ invocations to module description.
8787         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
8788         invocations from here...
8789         * modules/flock (configure.ac): ... to here.
8790
8791 2011-05-07  Bruno Haible  <bruno@clisp.org>
8792
8793         fileblocks: Move AC_LIBOBJ invocations to module description.
8794         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
8795         gl_PREREQ_FILEBLOCKS invocations from here...
8796         * modules/fileblocks (configure.ac): ... to here.
8797
8798 2011-05-06  Bruno Haible  <bruno@clisp.org>
8799
8800         fflush: Move AC_LIBOBJ invocations to module description.
8801         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
8802         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
8803         invocations from here...
8804         * modules/fflush (configure.ac): ... to here.
8805
8806 2011-05-06  Bruno Haible  <bruno@clisp.org>
8807
8808         fdopendir: Move AC_LIBOBJ invocations to module description.
8809         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
8810         here...
8811         * modules/fdopendir (configure.ac): ... to here.
8812         (Depends-on): Improve conditions.
8813
8814 2011-05-06  Bruno Haible  <bruno@clisp.org>
8815
8816         _Exit: Move AC_LIBOBJ invocations to module description.
8817         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
8818         invocations from here...
8819         * modules/_Exit (configure.ac): ... to here.
8820
8821 2011-05-21  Bruno Haible  <bruno@clisp.org>
8822
8823         euidaccess: Respect rules for use of AC_LIBOBJ.
8824         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
8825         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
8826         from here...
8827         * modules/euidaccess (configure.ac): ... to here.
8828
8829 2011-05-06  Bruno Haible  <bruno@clisp.org>
8830
8831         error: Move AC_LIBOBJ invocations to module description.
8832         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
8833         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
8834         invocations from here...
8835         * modules/error (configure.ac): ... to here.
8836
8837 2011-05-06  Bruno Haible  <bruno@clisp.org>
8838
8839         duplocale: Move AC_LIBOBJ invocations to module description.
8840         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
8841         gl_PREREQ_DUPLOCALE invocations from here...
8842         * modules/duplocale (configure.ac): ... to here.
8843
8844 2011-05-05  Bruno Haible  <bruno@clisp.org>
8845
8846         dirfd: Move AC_LIBOBJ invocations to module description.
8847         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
8848         gl_FUNC_DIRFD.
8849         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
8850         here...
8851         * modules/dirfd (configure.ac): ... to here.
8852         (Depends-on): Fix condition.
8853
8854 2011-05-05  Bruno Haible  <bruno@clisp.org>
8855
8856         chown: Respect rules for use of AC_LIBOBJ.
8857         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
8858         * modules/chown (configure.ac): ... to here.
8859
8860 2011-05-05  Bruno Haible  <bruno@clisp.org>
8861
8862         chdir-long: Move AC_LIBOBJ invocations to module description.
8863         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
8864         gl_PREREQ_CHDIR_LONG invocations from here...
8865         * modules/chdir-long (configure.ac): ... to here.
8866
8867 2011-05-05  Bruno Haible  <bruno@clisp.org>
8868
8869         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
8870         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
8871         from here...
8872         * modules/canonicalize-lgpl (configure.ac): ... to here.
8873
8874 2011-05-05  Bruno Haible  <bruno@clisp.org>
8875
8876         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
8877         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
8878         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
8879         REPLACE_CALLOC.
8880         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
8881         * modules/calloc-gnu (configure.ac): Likewise.
8882
8883 2011-05-05  Bruno Haible  <bruno@clisp.org>
8884
8885         btowc: Move AC_LIBOBJ invocations to module description.
8886         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
8887         invocations from here...
8888         * modules/btowc (configure.ac): ... to here.
8889
8890 2011-05-21  Bruno Haible  <bruno@clisp.org>
8891
8892         atexit: Move AC_LIBOBJ invocations to module description.
8893         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
8894         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
8895         here...
8896         * modules/atexit (configure.ac): ... to here.
8897
8898 2011-05-05  Bruno Haible  <bruno@clisp.org>
8899
8900         atoll: Move AC_LIBOBJ invocations to module description.
8901         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
8902         invocations from here...
8903         * modules/atoll (configure.ac): ... to here.
8904
8905 2011-05-05  Bruno Haible  <bruno@clisp.org>
8906
8907         argz: Move AC_LIBOBJ invocations to module description.
8908         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
8909         * modules/argz (configure.ac): ... to here.
8910
8911 2011-05-05  Bruno Haible  <bruno@clisp.org>
8912
8913         alphasort: Move AC_LIBOBJ invocations to module description.
8914         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
8915         gl_PREREQ_ALPHASORT invocations from here...
8916         * modules/alphasort (configure.ac): ... to here.
8917
8918 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
8919
8920         verify: new macro verify_expr; verify_true deprecated
8921         * NEWS: Mention this.
8922         * doc/verify.texi (Compile-time Assertions): Document this.
8923         * lib/verify.h (verify_true): Deprecate.
8924         (verify_expr): New macro.
8925         * tests/test-verify.c (function): Test verify_expr.
8926
8927 2011-06-14  Jim Meyering  <meyering@redhat.com>
8928
8929         init.sh: give more portable redirection-related advice in a comment
8930         * tests/init.sh (stderr_fileno_): Update the advice in comments.
8931         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
8932         for lots of discussion.  Stefano Lattarini suggested the solution
8933         of putting "9>&2" after the command.  Reported by Bruno Haible.
8934
8935 2011-06-13  Bruno Haible  <bruno@clisp.org>
8936
8937         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
8938         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
8939         'none'.
8940
8941 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
8942
8943         ftoastr: use strtof only if HAVE_STRTOF
8944         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
8945         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
8946         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
8947         * modules/ftoastr (configure.ac): Check for strtof.
8948
8949 2011-06-13  Bruno Haible  <bruno@clisp.org>
8950
8951         gnulib-tool: Addendum to 2011-06-08 commit.
8952         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
8953         and --witness-c-macro have been given, augment AM_CPPFLAGS.
8954
8955 2011-06-13  Bruno Haible  <bruno@clisp.org>
8956
8957         fseeko: Provide a non-inline replacement of fseek().
8958         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
8959         * modules/fseeko (Depends-on): Add fseek.
8960         * modules/fseek (License): Change to LGPLv2+.
8961
8962 2011-06-13  Bruno Haible  <bruno@clisp.org>
8963
8964         ftello: Provide a non-inline replacement of ftell().
8965         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
8966         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
8967         not have ftello() (such as on mingw).
8968         * modules/ftello (Depends-on): Add ftell.
8969         * modules/ftell (License): Change to LGPLv2+.
8970
8971 2011-05-07  Bruno Haible  <bruno@clisp.org>
8972
8973         ftell: Move AC_LIBOBJ invocations to module description.
8974         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
8975         * modules/ftell (configure.ac): ... to here.
8976
8977 2011-05-07  Bruno Haible  <bruno@clisp.org>
8978
8979         ftello: Respect rules for use of AC_LIBOBJ.
8980         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
8981         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
8982         here...
8983         * modules/ftello (configure.ac): ... to here.
8984
8985 2011-05-07  Bruno Haible  <bruno@clisp.org>
8986
8987         fseeko: Simplify.
8988         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
8989         (gl_FUNC_FSEEKO): Inline it here.
8990
8991 2011-05-07  Bruno Haible  <bruno@clisp.org>
8992
8993         fseek: Move AC_LIBOBJ invocations to module description.
8994         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
8995         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
8996         * modules/fseek (configure.ac): ... to here.
8997
8998 2011-05-07  Bruno Haible  <bruno@clisp.org>
8999
9000         fseek: Respect rules for use of AC_LIBOBJ.
9001         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
9002         here...
9003         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
9004
9005 2011-05-07  Bruno Haible  <bruno@clisp.org>
9006
9007         fseeko: Respect rules for use of AC_LIBOBJ.
9008         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
9009         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
9010         here...
9011         * modules/fseeko (configure.ac): ... to here.
9012
9013 2011-06-13  Bruno Haible  <bruno@clisp.org>
9014
9015         gnulib-tool: Allow comments in the 'Depends-on' section.
9016         * doc/gnulib.texi (Module description): Mention comment syntax in the
9017         Depends-on section.
9018         * gnulib-tool (func_get_dependencies): Filter out comment lines.
9019
9020 2011-06-13  Bruno Haible  <bruno@clisp.org>
9021
9022         file-set.h: guard __attibute__ use, now that it's not always defined
9023         * lib/file-set.h (record_file): Use __attribute__ only with compiler
9024         versions that support it.  This fixes a coreutils build failure with
9025         the vendor cc on HP-UX 11.31.
9026
9027 2011-06-12  Bruno Haible  <bruno@clisp.org>
9028
9029         acl: Add support for HP-UX >= 11.11 JFS ACLs.
9030         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
9031         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
9032         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
9033         (acl, aclsort): New declarations.
9034         (aclv_nontrivial): New declaration.
9035         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
9036         (file_has_acl): Read also the second kind of HP-UX ACLs.
9037         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
9038         kind of HP-UX ACLs if the first kind fails.
9039         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
9040         second kind of HP-UX ACLs.
9041         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
9042         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
9043         agree.
9044         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
9045         hpuxjfs.
9046         Handle hpuxjfs.
9047         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
9048         hpuxjfs.
9049         Handle hpuxjfs.
9050         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
9051         (func_test_same_acls): Use both lsacl and getacl.
9052         Handle hpuxjfs.
9053         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
9054         (func_test_same_acls): Use both lsacl and getacl.
9055         Handle hpuxjfs.
9056
9057 2011-06-12  Bruno Haible  <bruno@clisp.org>
9058
9059         acl: Complete the 2010-08-10 fix.
9060         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
9061         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
9062         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
9063         explicitly.
9064         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
9065         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
9066
9067 2011-06-12  Bruno Haible  <bruno@clisp.org>
9068
9069         spawn-pipe tests: Comments.
9070         * tests/test-spawn-pipe-child.c (main): Update comment.
9071         Reported by James Youngman <jay@gnu.org>.
9072
9073 2011-06-11  James Youngman  <jay@gnu.org>
9074
9075         New module 'stat-size'.
9076         * modules/stat-size: New module.  Provides macros for accessing
9077         file size information in instances of struct stat.  Depends on the
9078         fileblocks module because it calls st_blocks.
9079         * lib/stat-size.h: New file, adapted from coreutils' system.h.
9080         * doc/gnulib.texi: Include stat-size.texi.
9081         * doc/stat-size.texi: Documentation for this module.
9082         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
9083         * m4/fileblocks.m4: Mention that stat-size depends on the call to
9084         AC_STRUCT_ST_BLOCKS.
9085
9086 2011-06-09  Bruno Haible  <bruno@clisp.org>
9087
9088         thread: Support pthreads-win32.
9089         * lib/glthread/thread.h (gl_thread_self): Define differently on
9090         pthreads-win32.
9091         (gl_null_thread): New declaration.
9092         (gl_thread_self_pointer): New macro.
9093         * lib/glthread/thread.c (gl_null_thread): New constant.
9094         * tests/test-lock.c: Use gl_thread_self_pointer instead of
9095         gl_thread_self.
9096         * tests/test-tls.c: Likewise.
9097         Suggested by Paul Eggert. Reported by Eric Blake.
9098
9099 2011-06-09  Bruno Haible  <bruno@clisp.org>
9100
9101         thread: Fix confusion between NULL and 0.
9102         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
9103         Reported by Paul Eggert.
9104
9105 2011-06-09  Bruno Haible  <bruno@clisp.org>
9106
9107         spawn-pipe tests: Avoid test failure on HP-UX 11.
9108         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
9109         is closed.
9110
9111 2011-06-09  Bruno Haible  <bruno@clisp.org>
9112
9113         acl tests: Fix compilation error on HP-UX 11.
9114         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
9115
9116 2011-06-09  Bruno Haible  <bruno@clisp.org>
9117
9118         rmdir: Avoid test failure on HP-UX 10.20.
9119         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
9120         EEXIST.
9121
9122 2011-06-08  Eric Blake  <eblake@redhat.com>
9123
9124         perror: fix test on mingw
9125         * modules/perror-tests (Depends-on): Add dup2.
9126
9127         strerror_r-posix: fix on MacOS
9128         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
9129         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
9130         logic bug.
9131         * lib/strerror_r.c (strerror_r): Fix the bug.
9132         * lib/strerror.c (strerror): Likewise.
9133         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
9134         problem.
9135         * doc/posix-functions/strerror.texi (strerror): Likewise.
9136         * doc/posix-functions/perror.texi (perror): Likewise.
9137         * tests/test-strerror.c (main): Enhance test.
9138         * tests/test-strerror_r.c (main): Likewise.
9139
9140 2011-06-08  Bruno Haible  <bruno@clisp.org>
9141
9142         gnulib-tool: Better isolation between different gnulib-tool invocations.
9143         * gnulib-tool: New option --witness-c-macro.
9144         (witness_c_macro): New variable.
9145         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
9146         AM_CPPFLAGS define it as a C macro.
9147         (func_emit_tests_Makefile_am): Likewise.
9148         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
9149         read it from there.
9150         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
9151         m4_define, not AC_DEFUN.
9152         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
9153         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
9154         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
9155         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
9156         s|...|...|, to substitute the values of the GNULIB_* module indicator
9157         variables.
9158         * modules/dirent (Makefile.am): Likewise.
9159         * modules/fcntl-h (Makefile.am): Likewise.
9160         * modules/iconv-h (Makefile.am): Likewise.
9161         * modules/langinfo (Makefile.am): Likewise.
9162         * modules/locale (Makefile.am): Likewise.
9163         * modules/math (Makefile.am): Likewise.
9164         * modules/netdb (Makefile.am): Likewise.
9165         * modules/poll-h (Makefile.am): Likewise.
9166         * modules/pty (Makefile.am): Likewise.
9167         * modules/search (Makefile.am): Likewise.
9168         * modules/signal (Makefile.am): Likewise.
9169         * modules/spawn (Makefile.am): Likewise.
9170         * modules/stdio (Makefile.am): Likewise.
9171         * modules/stdlib (Makefile.am): Likewise.
9172         * modules/string (Makefile.am): Likewise.
9173         * modules/sys_ioctl (Makefile.am): Likewise.
9174         * modules/sys_select (Makefile.am): Likewise.
9175         * modules/sys_socket (Makefile.am): Likewise.
9176         * modules/sys_stat (Makefile.am): Likewise.
9177         * modules/sys_times (Makefile.am): Likewise.
9178         * modules/sys_utsname (Makefile.am): Likewise.
9179         * modules/sys_wait (Makefile.am): Likewise.
9180         * modules/termios (Makefile.am): Likewise.
9181         * modules/time (Makefile.am): Likewise.
9182         * modules/unistd (Makefile.am): Likewise.
9183         * modules/wchar (Makefile.am): Likewise.
9184
9185 2011-06-08  Eric Blake  <eblake@redhat.com>
9186
9187         strerror: simplify replacement
9188         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
9189         * modules/strerror (configure.ac): No prereqs needed here...
9190         * modules/strerror-override (configure.ac): ...but this needs it.
9191         (Files): Add file for needed prereq macro.
9192
9193 2011-06-08  Bruno Haible  <bruno@clisp.org>
9194
9195         strerror_r-posix: Tweaks.
9196         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
9197         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
9198         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
9199         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
9200         (gl_FUNC_STRERROR_R): ... to here.
9201         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
9202
9203 2011-06-07  Eric Blake  <eblake@redhat.com>
9204
9205         perror: document fixed bugs
9206         * doc/posix-functions/perror.texi (perror): Document recent
9207         patches.
9208
9209 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
9210
9211         stat-time: get_stat_birthtime failure is better-defined
9212         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
9213         return a timestamp whose tv_sec and tv_nsec values are both -1.
9214         Previously, the spec said only that the tv_nsec value was negative.
9215         This upward-compatible change simplifies GNU tar a bit.
9216
9217 2011-06-07  Eric Blake  <eblake@redhat.com>
9218
9219         strerror_r-posix: work around cygwin 1.7.9
9220         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
9221         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
9222         bug without replacing strerror_r.
9223         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
9224         strerror_r is buggy, but without requiring strerror_r compilation.
9225         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
9226
9227         test-perror: relax test to ignore cygwin bug
9228         * tests/test-perror2.c (main): Relax test on requiring detection
9229         of stream errors, and use unbuffered stream.
9230         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
9231         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
9232         * doc/posix-functions/fputc.texi (fputc): Likewise.
9233         * doc/posix-functions/fputs.texi (fputs): Likewise.
9234         * doc/posix-functions/fputws.texi (fputws): Likewise.
9235         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
9236         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
9237         * doc/posix-functions/getopt.texi (getopt): Likewise.
9238         * doc/posix-functions/perror.texi (perror): Likewise.
9239         * doc/posix-functions/printf.texi (printf): Likewise.
9240         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
9241         * doc/posix-functions/psignal.texi (psignal): Likewise.
9242         * doc/posix-functions/putc.texi (putc): Likewise.
9243         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
9244         Likewise.
9245         * doc/posix-functions/putchar.texi (putchar): Likewise.
9246         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
9247         Likewise.
9248         * doc/posix-functions/puts.texi (puts): Likewise.
9249         * doc/posix-functions/putwc.texi (putwc): Likewise.
9250         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
9251         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
9252         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
9253         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
9254         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
9255         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
9256         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
9257         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
9258
9259 2011-05-22  Bruno Haible  <bruno@clisp.org>
9260
9261         strerror: Move AC_LIBOBJ invocations to module description.
9262         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
9263         gl_PREREQ_STRERROR invocations from here...
9264         * modules/strerror (configure.ac): ... to here.
9265
9266 2011-05-21  Bruno Haible  <bruno@clisp.org>
9267
9268         perror: Use common idiom.
9269         * modules/perror (configure.ac): Reorder statements.
9270
9271 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
9272
9273         tests: fix usage message in 'mktempd_'
9274         * tests/init.sh (mktempd_): In the usage message, use literal
9275         'mktempd_', not '$ME' (which is even undefined), as the name of
9276         the subroutine.
9277
9278 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
9279
9280         tests init: new function 'fatal_', for hard errors
9281         Before this patch, the only way offered by tests/init.sh to
9282         properly signal a hard error was the `framework_failure_'
9283         function.  But the error message issued by that function,
9284         as its name would suggest, refers to a set-up failure in the
9285         testsuite, while hard errors can obviously also be due to
9286         other reasons.  The best way to fix this inconsistency is to
9287         introduce a new function with a more general error message.
9288         * tests/init.sh (fatal_): New function.
9289
9290 2011-06-06  Eric Blake  <eblake@redhat.com>
9291
9292         canonicalize-lgpl: use common idiom
9293         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
9294         over newer POSIX -Rf.
9295         Reported by Bruno Haible.
9296
9297         canonicalize-lgpl: work around AIX realpath bug
9298         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
9299         * doc/posix-functions/realpath.texi (realpath): Document it.
9300         Reported by Bruno Haible.
9301
9302         strerror: work around FreeBSD bug
9303         * lib/strerror.c (strerror): Special case 0.
9304         Reported by Bruno Haible.
9305
9306         strerror-override: avoid bloating errno module
9307         * modules/errno (Files, configure.ac): Move replacement strings...
9308         * modules/strerror-override: ...to new module.
9309         * modules/strerror (Depends-on): Add strerror-override.
9310         * modules/strerror_r-posix (Depends-on): Likewise.
9311         * MODULES.html.sh: Document new module.
9312         Reported by Bruno Haible.
9313
9314 2011-06-06  Bruno Haible  <bruno@clisp.org>
9315
9316         spawn-pipe tests: Rename program.
9317         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
9318         * tests/test-spawn-pipe-child.c: Update comment.
9319         * tests/test-spawn-pipe.sh: Update.
9320         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
9321
9322         spawn-pipe tests: Link the child program only against libc.
9323         * tests/test-spawn-pipe-child.c: New file, extracted from
9324         tests/test-spawn-pipe.c.
9325         (main): Expect only one argument.
9326         (is_open): New function, copied from tests/test-pipe.c.
9327         * tests/test-spawn-pipe.c: Don't include <errno.h>.
9328         (child_main): Remove function.
9329         (test_pipe): Pass only one argument to the child program.
9330         (main): Remove child process code. Expect the child program's name as
9331         first argument.
9332         * tests/test-spawn-pipe.sh: Pass the child program's name as first
9333         argument.
9334         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
9335         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
9336         test-spawn-pipe-child against no libraries.
9337
9338 2011-06-06  Bruno Haible  <bruno@clisp.org>
9339
9340         careadlinkat: Avoid mismatch between ssize_t and int.
9341         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
9342         * lib/careadlinkat.c (careadlinkatcwd): Define always.
9343
9344 2011-06-06  Jim Meyering  <meyering@redhat.com>
9345
9346         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
9347         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
9348         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
9349
9350 2011-06-05  Bruno Haible  <bruno@clisp.org>
9351
9352         ansi-c++-opt: Interoperability with libtool.
9353         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
9354         set the variable to "no", not to ":".
9355         * NEWS: Mention the change.
9356
9357 2011-06-05  Bruno Haible  <bruno@clisp.org>
9358
9359         acl: Fix test failure on AIX 7.
9360         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
9361         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
9362
9363 2011-06-05  Bruno Haible  <bruno@clisp.org>
9364
9365         pipe-filter-ii: Fix test failure on AIX and IRIX.
9366         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
9367         with EAGAIN, retry with a smaller buffer size.
9368
9369 2011-06-05  Bruno Haible  <bruno@clisp.org>
9370
9371         localename: Fix link dependencies.
9372         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
9373         * modules/localename-tests (Makefile.am): Link test-localename with
9374         $(LIBTHREAD).
9375
9376 2011-06-05  Bruno Haible  <bruno@clisp.org>
9377
9378         error: Avoid gcc warning.
9379         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
9380
9381 2011-06-05  Bruno Haible  <bruno@clisp.org>
9382
9383         unsetenv: Avoid gcc warning.
9384         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
9385
9386 2011-06-05  Bruno Haible  <bruno@clisp.org>
9387
9388         setenv: Avoid gcc warning.
9389         * lib/setenv.c (setenv): Provide declaration if system lacks it.
9390
9391 2011-06-05  Bruno Haible  <bruno@clisp.org>
9392
9393         sys_select: Ensure memset is declared also on AIX 7.
9394         * lib/sys_select.in.h: Include <string.h> also on AIX.
9395         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
9396         self-contained also on AIX 7.1.
9397
9398 2011-06-04  Jim Meyering  <meyering@redhat.com>
9399
9400         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
9401         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
9402         function name, "error".
9403         (_gl_translatable_diag_func_re): New configurable variable.
9404
9405 2011-06-04  Bruno Haible  <bruno@clisp.org>
9406
9407         getopt: Avoid gcc warning.
9408         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
9409
9410 2011-06-04  Bruno Haible  <bruno@clisp.org>
9411
9412         strerror_r: Fix comments.
9413         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
9414         commit.
9415
9416 2011-06-04  Bruno Haible  <bruno@clisp.org>
9417
9418         perror: Fix compilation error.
9419         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
9420         Undefine fprintf, not sprintf.
9421         * modules/perror (Depends-on): Remove intprops, verify.
9422
9423 2011-06-04  Bruno Haible  <bruno@clisp.org>
9424
9425         setlocale: Enable replacement on Cygwin 1.5.
9426         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
9427         Cygwin 1.5.x.
9428         * doc/posix-functions/setlocale.texi: Mention that the problem with the
9429         LC_CTYPE category also exists on Cygwin 1.5.x.
9430
9431 2011-06-04  Bruno Haible  <bruno@clisp.org>
9432
9433         strerror-override: Don't disable symbol renamings.
9434         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
9435         * lib/strerror-override.c: Include config.h.
9436         (strerror_override): Don't undefine.
9437
9438 2011-06-03  Bruno Haible  <bruno@clisp.org>
9439
9440         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
9441         * lib/localename.h: Update copyright header.
9442         * lib/localename.c: Likewise.
9443         * lib/relocatable.h: Likewise.
9444         * lib/relocatable.c: Likewise.
9445
9446 2011-06-02  Bruno Haible  <bruno@clisp.org>
9447
9448         doc: Fix a module name.
9449         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
9450
9451 2011-06-02  Bruno Haible  <bruno@clisp.org>
9452
9453         pipe2: Remove dependency on 'nonblocking' module.
9454         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
9455         O_NONBLOCK is defined by gnulib.
9456         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
9457         is zero.
9458         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
9459         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
9460         defined by gnulib.
9461         (get_nonblocking_flag): New function.
9462         (main): Test O_NONBLOCK flag only if it is nonzero.
9463         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
9464
9465 2011-06-03  Jim Meyering  <meyering@redhat.com>
9466
9467         maint: three new prohibit-header-without-use rules
9468         Prohibit use of cloexec.h, posixver.h, same.h without use.
9469         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
9470         (sc_prohibit_posixver_without_use): Likewise.
9471         (sc_prohibit_same_without_use): Likewise.
9472
9473 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
9474
9475         allocator: 'die' routine is now given requested size
9476         * lib/allocator.h (struct allocator.die): New size arg.
9477         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
9478         If the actual problem is an ssize_t limitation, not a size_t or
9479         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
9480
9481 2011-06-01  Eric Blake  <eblake@redhat.com>
9482
9483         strerror: drop strerror_r dependency
9484         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
9485         * lib/strerror-override.c (strerror_override): ...to new file.
9486         * lib/strerror-override.h: Add prototype.
9487         * lib/strerror-impl.h: Delete.
9488         * lib/strerror.c (strerror): New implementation.
9489         * modules/errno (Files): Add new files.
9490         (configure.ac): Compile new file as appropriate.
9491         * modules/strerror (Files): Drop unused file.
9492         (Depends-on): Drop strerror_r-posix.
9493         * MODULES.html.sh: Document strerror_r-posix.
9494         Requested by Sam Steingold.
9495
9496         perror: call strerror_r directly
9497         * modules/perror (Files): Drop strerror-impl.h.
9498         * lib/perror.c (perror): Use our own stack buffer, rather than
9499         calling a wrapper that uses static storage.
9500         * doc/posix-functions/perror.texi (perror): Document a limitation
9501         of our replacement.
9502
9503         strerror_r: fix includes for FreeBSD
9504         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
9505         since we use abort on some platforms.
9506         Reported by Matthias Bolte.
9507
9508 2011-05-31  Bruno Haible  <bruno@clisp.org>
9509
9510         Fix link errors in tests: openat-die uses gettext-h.
9511         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
9512         against $(LIBINTL).
9513         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
9514         against $(LIBINTL).
9515         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
9516         $(LIBINTL).
9517         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
9518         against $(LIBINTL).
9519         * modules/linkat-tests (Makefile.am): Link test-linkat against
9520         $(LIBINTL).
9521         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
9522         $(LIBINTL).
9523         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
9524         against $(LIBINTL).
9525         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
9526         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
9527         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
9528         $(LIBINTL).
9529         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
9530         $(LIBINTL).
9531         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
9532         $(LIBINTL).
9533         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9534
9535 2011-05-31  Bruno Haible  <bruno@clisp.org>
9536
9537         Fix link errors in tests: wait-process uses gettext-h.
9538         * modules/nonblocking-pipe-tests (Makefile.am): Set
9539         test_nonblocking_pipe_main_LDADD.
9540         * modules/nonblocking-socket-tests (Makefile.am): Link
9541         test-nonblocking-socket-main against $(LIBINTL).
9542         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9543
9544 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
9545
9546         assert-h: work around 'verify' incompatibility
9547         * lib/verify.h: Use @...@ directives, not ifdef.
9548         * modules/assert-h (assert.h): Implement the directives.
9549         (assert.h): Substitute the symbol-prefix more consistently.
9550
9551 2011-05-29  Jim Meyering  <meyering@redhat.com>
9552
9553         trim: remove three superfluous assignments
9554         * lib/trim.c (trim2): Remove three superfluous assignments
9555         and correct brace positioning.
9556
9557 2011-05-29  Bruno Haible  <bruno@clisp.org>
9558
9559         wctype-h: Avoid namespace pollution on Solaris 2.6.
9560         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
9561         identifiers.
9562         * doc/posix-headers/wctype.texi: Mention the problem.
9563         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9564
9565 2011-05-28  Jim Meyering  <meyering@redhat.com>
9566
9567         parse-datetime.y: accommodate -Wstrict-overflow
9568         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
9569         placate -Wstrict-overflow.
9570
9571         trim: avoid a warning from -O2 -Wstrict-overflow
9572         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
9573
9574 2011-05-29  Bruno Haible  <bruno@clisp.org>
9575
9576         gnulib-tool: Fix bug in yesterday's commit.
9577         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
9578         twice.
9579
9580 2011-05-29  Bruno Haible  <bruno@clisp.org>
9581
9582         Allow multiple gnulib generated include files to be combined.
9583         * gnulib-tool (func_compute_include_guard_prefix): New function.
9584         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
9585         ${gl_include_guard_prefix} references.
9586         (func_import, func_create_testdir): Invoke
9587         func_compute_include_guard_prefix.
9588         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
9589         * lib/ctype.in.h: Likewise.
9590         * lib/dirent.in.h: Likewise.
9591         * lib/errno.in.h: Likewise.
9592         * lib/fcntl.in.h: Likewise.
9593         * lib/float.in.h: Likewise.
9594         * lib/getopt.in.h: Likewise.
9595         * lib/iconv.in.h: Likewise.
9596         * lib/langinfo.in.h: Likewise.
9597         * lib/locale.in.h: Likewise.
9598         * lib/math.in.h: Likewise.
9599         * lib/netdb.in.h: Likewise.
9600         * lib/netinet_in.in.h: Likewise.
9601         * lib/poll.in.h: Likewise.
9602         * lib/pthread.in.h: Likewise.
9603         * lib/pty.in.h: Likewise.
9604         * lib/sched.in.h: Likewise.
9605         * lib/se-selinux.in.h: Likewise.
9606         * lib/search.in.h: Likewise.
9607         * lib/signal.in.h: Likewise.
9608         * lib/spawn.in.h: Likewise.
9609         * lib/stdarg.in.h: Likewise.
9610         * lib/stddef.in.h: Likewise.
9611         * lib/stdint.in.h: Likewise.
9612         * lib/stdio.in.h: Likewise.
9613         * lib/stdlib.in.h: Likewise.
9614         * lib/string.in.h: Likewise.
9615         * lib/strings.in.h: Likewise.
9616         * lib/sys_file.in.h: Likewise.
9617         * lib/sys_ioctl.in.h: Likewise.
9618         * lib/sys_select.in.h: Likewise.
9619         * lib/sys_socket.in.h: Likewise.
9620         * lib/sys_stat.in.h: Likewise.
9621         * lib/sys_time.in.h: Likewise.
9622         * lib/sys_times.in.h: Likewise.
9623         * lib/sys_uio.in.h: Likewise.
9624         * lib/sys_utsname.in.h: Likewise.
9625         * lib/sys_wait.in.h: Likewise.
9626         * lib/sysexits.in.h: Likewise.
9627         * lib/termios.in.h: Likewise.
9628         * lib/time.in.h: Likewise.
9629         * lib/unistd.in.h: Likewise.
9630         * lib/wchar.in.h: Likewise.
9631         * lib/wctype.in.h: Likewise.
9632         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
9633         * modules/ctype (Makefile.am): Likewise.
9634         * modules/dirent (Makefile.am): Likewise.
9635         * modules/errno (Makefile.am): Likewise.
9636         * modules/fcntl-h (Makefile.am): Likewise.
9637         * modules/float (Makefile.am): Likewise.
9638         * modules/getopt-posix (Makefile.am): Likewise.
9639         * modules/iconv-h (Makefile.am): Likewise.
9640         * modules/langinfo (Makefile.am): Likewise.
9641         * modules/locale (Makefile.am): Likewise.
9642         * modules/math (Makefile.am): Likewise.
9643         * modules/netdb (Makefile.am): Likewise.
9644         * modules/netinet_in (Makefile.am): Likewise.
9645         * modules/poll-h (Makefile.am): Likewise.
9646         * modules/pthread (Makefile.am): Likewise.
9647         * modules/pty (Makefile.am): Likewise.
9648         * modules/sched (Makefile.am): Likewise.
9649         * modules/search (Makefile.am): Likewise.
9650         * modules/selinux-h (Makefile.am): Likewise.
9651         * modules/signal (Makefile.am): Likewise.
9652         * modules/spawn (Makefile.am): Likewise.
9653         * modules/stdarg (Makefile.am): Likewise.
9654         * modules/stddef (Makefile.am): Likewise.
9655         * modules/stdint (Makefile.am): Likewise.
9656         * modules/stdio (Makefile.am): Likewise.
9657         * modules/stdlib (Makefile.am): Likewise.
9658         * modules/string (Makefile.am): Likewise.
9659         * modules/strings (Makefile.am): Likewise.
9660         * modules/sys_file (Makefile.am): Likewise.
9661         * modules/sys_ioctl (Makefile.am): Likewise.
9662         * modules/sys_select (Makefile.am): Likewise.
9663         * modules/sys_socket (Makefile.am): Likewise.
9664         * modules/sys_stat (Makefile.am): Likewise.
9665         * modules/sys_time (Makefile.am): Likewise.
9666         * modules/sys_times (Makefile.am): Likewise.
9667         * modules/sys_uio (Makefile.am): Likewise.
9668         * modules/sys_utsname (Makefile.am): Likewise.
9669         * modules/sys_wait (Makefile.am): Likewise.
9670         * modules/sysexits (Makefile.am): Likewise.
9671         * modules/termios (Makefile.am): Likewise.
9672         * modules/time (Makefile.am): Likewise.
9673         * modules/unistd (Makefile.am): Likewise.
9674         * modules/wchar (Makefile.am): Likewise.
9675         * modules/wctype-h (Makefile.am): Likewise.
9676         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
9677
9678 2011-05-29  Bruno Haible  <bruno@clisp.org>
9679
9680         assert-h: Allow multiple gnulib generated replacements to coexist.
9681         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
9682
9683 2011-05-29  Bruno Haible  <bruno@clisp.org>
9684
9685         argp: Allow coexistence with strerror_r-posix module.
9686         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
9687         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
9688         by gnulib's <string.h> replacement), assume it has the POSIX signature,
9689         not the glibc signature.
9690
9691 2011-05-28  Bruno Haible  <bruno@clisp.org>
9692
9693         gnulib-tool: Alternative structure of testdirs, similar to --import.
9694         * gnulib-tool: New option --single-configure.
9695         (func_usage): Document it.
9696         (single_configure): New variable.
9697         (func_modules_transitive_closure_separately,
9698         func_modules_transitive_closure_separately,
9699         func_determine_use_libtests, func_modules_add_dummy_separately,
9700         func_modules_to_filelist_separately): New functions, extracted from
9701         func_import.
9702         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
9703         (func_import): Use the new functions.
9704         (func_create_testdir): Set final_modules. Handle $single_configure =
9705         true case.
9706
9707 2011-05-28  Bruno Haible  <bruno@clisp.org>
9708
9709         getloadavg: Remove an unreliable safety check.
9710         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
9711         getloadavg.c is in place.
9712         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
9713         Reported by Sam Steingold <sds@gnu.org>.
9714
9715 2011-05-28  Bruno Haible  <bruno@clisp.org>
9716
9717         doc: Cleanup yet another file produced by texinfo.tex.
9718         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
9719
9720 2011-05-28  Bruno Haible  <bruno@clisp.org>
9721
9722         Finish the conditional dependencies mechanism.
9723         * gnulib-tool: New option --no-conditional-dependencies.
9724         (func_usage): Document it. Don't mark --conditional-dependencies as
9725         experimental.
9726         (cond_dependencies): The possible values can now be true, false, empty.
9727         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
9728         (func_import): Store setting in gnulib-cache.m4 and read it from there.
9729         * doc/gnulib-tool.texi (Conditional dependencies): New section.
9730
9731 2011-05-28  Bruno Haible  <bruno@clisp.org>
9732
9733         doc: Use a recent texinfo.tex.
9734         * doc/Makefile (tex_opts): New variable.
9735         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
9736
9737 2011-05-28  Jim Meyering  <meyering@redhat.com>
9738
9739         intprops.h: adjust comment to match code change
9740         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
9741         only once, it *may* have side effects.  Also fix an unrelated typo.
9742         (_GL_INT_SIGNED): Likewise.
9743
9744 2011-05-26  Simon Josefsson  <simon@josefsson.org>
9745
9746         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
9747
9748 2011-05-26  Bruno Haible  <bruno@clisp.org>
9749
9750         mbsrchr: Avoid collision with system function on Interix.
9751         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
9752         Reported by Markus Duft <mduft@gentoo.org>.
9753
9754 2011-05-15  James Youngman  <jay@gnu.org>
9755
9756         getopt: for ambiguous options, enumerate the possibilities.
9757         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
9758         the ambiguous options when an ambiguous prefix is given. This was
9759         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
9760         glibc change was
9761         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
9762
9763 2011-05-25  Eric Blake  <eblake@redhat.com>
9764
9765         getcwd: work around mingw bug
9766         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
9767         * doc/posix-functions/getcwd.texi (getcwd): Document it.
9768         Reported by Matthias Bolte.
9769
9770 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
9771
9772         test-intprops: disable -Wtype-limits diagnostics
9773         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
9774         diagnostics.  Otherwise, the integer overflow macros generate many
9775         diagnostics.  Reported by Jim Meyering in
9776         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
9777
9778         intprops: shorten, to pacify gcc -Woverlength-strings
9779         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
9780         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
9781         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
9782         likely to run afoul of C compiler limits for string constant lengths.
9783         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
9784
9785 2011-05-24  Eric Blake  <eblake@redhat.com>
9786
9787         docs: document recently fixed glibc printf bug
9788         * doc/posix-functions/fprintf.texi (fprintf): Document it.
9789         * doc/posix-functions/printf.texi (printf): Likewise.
9790         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
9791         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
9792
9793         closein-tests: convert to init.sh
9794         * modules/closein-tests (Files): Add init.sh
9795         * tests/test-closein.sh Use it.
9796
9797         yesno-tests: convert to init.sh
9798         * modules/yesno-tests (Files): Add init.sh.
9799         * tests/test-yesno.sh: Use it.
9800
9801         atexit-tests: ensure reliable exit status
9802         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
9803         Reported by Bruno Haible.
9804
9805 2011-05-24  Bruno Haible  <bruno@clisp.org>
9806
9807         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
9808         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
9809         gl_PREREQ_STRERROR_R invocations from here...
9810         * modules/strerror_r-posix (configure.ac): ... to here.
9811
9812 2011-05-24  Eric Blake  <eblake@redhat.com>
9813
9814         strerror_r: fix missing header
9815         * lib/strerror_r.c: Avoid compiler warning about snprintf.
9816
9817         strerror_r: fix AIX test failures
9818         * lib/strerror_r.c (strerror_r): Convert silent truncation to
9819         ERANGE failure.
9820
9821         strerror_r: fix Solaris test failures
9822         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
9823         failures.
9824         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
9825
9826         strerror_r: enforce POSIX recommendations
9827         * lib/strerror_r.c (safe_copy): New helper method.
9828         (strerror_r): Guarantee a non-empty string.
9829         * tests/test-strerror_r.c (main): Enhance tests to incorporate
9830         recent POSIX rulings and to match our strerror guarantees.
9831         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
9832
9833 2011-05-24  Jim Meyering  <meyering@redhat.com>
9834
9835         test-perror2.c: avoid warning about unused variable
9836         * tests/test-perror2.c (main): Remove declaration of unused "fp".
9837
9838 2011-05-24  Eric Blake  <eblake@redhat.com>
9839
9840         perror: avoid spurious test failure on HP-UX
9841         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
9842
9843         tests: fix logic bug in init.sh
9844         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
9845         shell.
9846
9847 2011-05-24  Jim Meyering  <meyering@redhat.com>
9848
9849         utimensat: do not reference an out-of-scope buffer
9850         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
9851         declared in an inner scope, yet "times" would be dereferenced outside
9852         the scope in which "ts" was valid.
9853         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
9854         of ts[2] "out/up", so that the use of aliased "times" (via
9855         "times = ts;") does not end up referencing an out-of-scope "ts"
9856
9857         opendir-safer.c: don't clobber errno; don't close negative FD
9858         * lib/opendir-safer.c (opendir_safer):
9859         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
9860         file descriptor, and more importantly, don't clobber the
9861         offending errno value with EINVAL.  Before, upon failure
9862         of dup_safer, we would pass the negative file descriptor to
9863         fdopendir, which would clobber errno.
9864
9865 2011-05-23  Bruno Haible  <bruno@clisp.org>
9866
9867         idcache: Fix module description.
9868         * modules/idcache (Include): Set to "idcache.h".
9869
9870 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
9871
9872         gnulib-tool: fix portability problem with MacOS sed
9873         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
9874         before the "}".  Problem reported by Leo in
9875         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
9876         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
9877         sed_extract_condition1, sed_extract_condition2.
9878
9879 2011-05-23  Bruno Haible  <bruno@clisp.org>
9880
9881         hash: Simplify autoconf macro.
9882         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
9883
9884 2011-05-23  Bruno Haible  <bruno@clisp.org>
9885
9886         getugroups: Fix module description.
9887         * modules/getugroups (Include): Set to "getugroups.h".
9888
9889 2011-05-23  Bruno Haible  <bruno@clisp.org>
9890
9891         linkat: Simplify autoconf macro.
9892         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
9893
9894 2011-05-23  Bruno Haible  <bruno@clisp.org>
9895             Eric Blake  <eblake@redhat.com>
9896
9897         linkat, renameat: Update dependencies.
9898         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
9899         * modules/linkat (Depends-on): Likewise. Remove also readlink,
9900         symlinkat.
9901
9902 2011-05-23  Jim Meyering  <meyering@redhat.com>
9903
9904         maint.mk: more tight_scope improvements
9905         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
9906         (_gl_TS_headers): Define only in if-0'd block.
9907         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
9908         sometimes we must *not* use it.  Adjust uses accordingly.
9909         (sc_tight_scope): Use much simpler grep-based test to determine
9910         whether we skip this rule.
9911
9912         maint.mk: generalize/improve the tight-scope rule
9913         * top/maint.mk: Emit a warning when the test is skipped.
9914         (_gl_TS_dir): Add $(srcdir)/ prefix.
9915         (_gl_TS_function_match): Simplify, rather than trying
9916         to enumerate common types.  Otherwise, it would fail to match an
9917         "extern unsigned char const *" declaration in idutils.
9918         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
9919         a way to support use of that type of macro.
9920         (_gl_TS_var_match): Simplify regexp.
9921         (_gl_TS_obj_files): New configurable variable.
9922         (_gl_TS_headers): Likewise.
9923
9924 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
9925
9926         verify: fix bug when gnulib <assert.h> is also included
9927         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
9928         is defined, not if _GL_STATIC_ASSERT_H is not defined.
9929         Perhaps there's a better way, but this fixes the immediate problem.
9930         Problem reported by Bruno Haible in
9931         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
9932
9933 2011-05-22  Bruno Haible  <bruno@clisp.org>
9934
9935         xgetcwd: Simplify autoconf macro.
9936         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
9937
9938 2011-05-22  Bruno Haible  <bruno@clisp.org>
9939
9940         New module 'mktime-internal'.
9941         * modules/mktime-internal: New file.
9942         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
9943         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
9944         mktime_internal as a C macro if libc has __mktime_internal.
9945         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
9946         conditions.
9947         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
9948
9949 2011-05-22  Bruno Haible  <bruno@clisp.org>
9950
9951         timegm: Correct mktime replacement statements.
9952         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
9953         defining mktime as a C macro. This completes a 2009-07-28 commit.
9954
9955 2011-05-22  Bruno Haible  <bruno@clisp.org>
9956
9957         timegm: Simplify autoconf macro.
9958         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
9959
9960 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
9961
9962         clock-time: change to LGPLv2+.
9963         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
9964         BSD-like but we have no mark for that; this is good enough for now.
9965
9966 2011-05-21  Bruno Haible  <bruno@clisp.org>
9967
9968         strerror_r: Fix comments.
9969         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
9970
9971 2011-05-21  Bruno Haible  <bruno@clisp.org>
9972
9973         relocatable-prog-wrapper: Fix possible link error.
9974         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
9975         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
9976         (gl_FUNC_SETENV): ... to here.
9977         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
9978         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
9979
9980 2011-05-21  Bruno Haible  <bruno@clisp.org>
9981
9982         relocatable-prog-wrapper: Assume strerror() exists.
9983         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
9984         m4/strerror.m4.
9985         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
9986         * lib/relocwrapper.c: Remove mention of strerror module.
9987         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
9988         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
9989         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
9990         C macro.
9991
9992 2011-05-21  Bruno Haible  <bruno@clisp.org>
9993
9994         select: Simplify replacement idiom.
9995         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
9996         Win32 platforms.
9997         * lib/sys_select.in.h (select): Simplify accordingly.
9998         * modules/select (Depends-on): Likewise.
9999
10000 2011-05-21  Bruno Haible  <bruno@clisp.org>
10001
10002         mkdir-p: Simplify autoconf macro.
10003         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
10004         gl_FUNC_LCHOWN.
10005
10006 2011-05-21  Eric Blake  <eblake@redhat.com>
10007
10008         strerror_r: avoid clobbering strerror on cygwin
10009         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
10010         fall back instead to sys_errlist.
10011         * modules/strerror (configure.ac): Add witness.
10012         * tests/test-strerror_r.c (main): Enhance test.
10013         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
10014         * tests/test-perror2.c (main): Free memory before exit.
10015
10016 2011-05-21  Bruno Haible  <bruno@clisp.org>
10017
10018         mkdtemp: Use gnulib naming conventions.
10019         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
10020         * modules/mkdtemp (configure.ac): Update.
10021
10022 2011-05-20  Eric Blake  <eblake@redhat.com>
10023
10024         strerror_r: avoid corrupting errno on Solaris
10025         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
10026         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
10027
10028         strerror_r: avoid compiler warning
10029         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
10030
10031         strerror_r: simplify AIX code
10032         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
10033
10034         test-perror: avoid spurious failure on FreeBSD
10035         * modules/perror-tests (Depends-on): Add strerror, now that
10036         strerror_r no longer pulls it in.
10037
10038 2011-05-20  Bruno Haible  <bruno@clisp.org>
10039
10040         strerror_r-posix: Remove unused dependencies.
10041         * modules/strerror_r-posix (Depends-on): Remove strerror.
10042         Reported by Eric Blake.
10043
10044 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
10045
10046         intprops: remove assumption about A|B representation
10047         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
10048         is a valid integer if both A and B are.  Although this is true for
10049         all known practical hosts, the C standard doesn't guarantee it,
10050         and the code need not assume it.  Also, this change may work around
10051         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
10052         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
10053
10054 2011-05-20  Eric Blake  <eblake@redhat.com>
10055
10056         perror: work around FreeBSD bug
10057         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
10058         is broken.  Move AC_LIBOBJ...
10059         * modules/perror (configure.ac): Here.
10060         * doc/posix-functions/perror.texi (perror): Document this.
10061         * tests/test-perror2.c (main): Enhance test.
10062
10063         test-perror: check for strerror interactions
10064         * tests/macros.h (STREQ): Add macro.
10065         * modules/perror-tests (Files): Add second test.
10066         * tests/test-perror2.c (main): New file.
10067         * doc/posix-functions/perror.texi (perror): Document glibc bug.
10068
10069         test-perror: rewrite to use init script
10070         * modules/perror-tests (Files): Add init.sh.
10071         * tests/test-perror.sh: Use temporary directory.
10072
10073 2011-05-20  Jim Meyering  <meyering@redhat.com>
10074
10075         maint: replace misused "a" with "an"
10076         * doc/intprops.texi: "a integer"
10077         * doc/regex.texi: "a explanation"
10078         * lib/alignof.h: "a object"
10079         * lib/argmatch.h: "a explanation"
10080         * lib/argp-help.c: "a option" and "a OPTION_DOC"
10081         * lib/stdint.in.h: "a integer"
10082         * lib/userspec.c: "a owner"
10083         * doc/gnulib.texi: Fix "a idea", and reword.
10084
10085 2011-05-19  Jim Meyering  <meyering@redhat.com>
10086
10087         maint: correct misuse of "a" and "an"
10088         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
10089         * lib/argp-help.c: "an docum...": s/an/a/
10090         * lib/argp-parse.c: "An vector": s/An/A/
10091         * lib/execute.c: "an native": s/an/a/
10092         * lib/spawn-pipe.c: Likewise.
10093         * lib/gc.h: "an Gc_rc": s/an/a/
10094         * lib/unigbrk.in.h: "an grapheme": s/an/a/
10095         * lib/fts.c: "an stat.st_dev": s/an/a/
10096
10097 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
10098
10099         intprops-tests: work around HP-UX 11.23 cc bug with constants
10100         * tests/test-intprops.c (VERIFY): New macro.
10101         (main): Use it, instead of verify, to work around the compiler bug; see
10102         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
10103
10104         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
10105         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
10106         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
10107         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
10108         (_GL_REMAINDER_OVERFLOW): Use it.
10109
10110         intprops-tests: revert unsigned part of previous change
10111         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
10112         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
10113         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
10114         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
10115
10116 2011-05-19  Bruno Haible  <bruno@clisp.org>
10117
10118         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
10119         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
10120         strerror_r() returned without filling the buffer.
10121         Reported by Eric Blake.
10122
10123 2011-05-19  Eric Blake  <eblake@redhat.com>
10124
10125         strerror_r: guarantee unchanged errno
10126         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
10127         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
10128         failure.
10129         * tests/test-strerror_r.c (main): Enhance test.
10130
10131 2011-05-19  Bruno Haible  <bruno@clisp.org>
10132
10133         strerror_r: Reorder #if blocks.
10134         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
10135         for consistency with the previous commit.
10136
10137 2011-05-19  Bruno Haible  <bruno@clisp.org>
10138
10139         perror: Avoid clobbering the strerror buffer when possible.
10140         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
10141         * lib/strerror.c: Include it.
10142         * modules/strerror (Files): Add lib/strerror-impl.h.
10143         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
10144         (my_strerror): New function, defined through lib/strerror-impl.h.
10145         (perror): Use it instead of strerror.
10146         * modules/perror (Files): Add lib/strerror-impl.h.
10147         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
10148
10149 2011-05-19  Eric Blake  <eblake@redhat.com>
10150
10151         strerror_r: fix on newer cygwin
10152         * lib/strerror_r.c (strerror_r): Cygwin now has
10153         __xpg_strerror_r, use it.
10154
10155 2011-05-19  Bruno Haible  <bruno@clisp.org>
10156
10157         strerror_r: Avoid clobbering the strerror buffer when possible.
10158         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
10159         (sys_nerr, sys_errlist): New declarations.
10160         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
10161         HP-UX, native Win32, IRIX, and 32-bit Solaris.
10162         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
10163
10164 2011-05-19  Bruno Haible  <bruno@clisp.org>
10165
10166         strerror_r: Fix test failure on mingw.
10167         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
10168         EXTEND_STRERROR_R.
10169         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
10170         macros from errno.in.h instead.
10171
10172 2011-05-19  Eric Blake  <eblake@redhat.com>
10173
10174         strerror: relax test for Solaris
10175         * tests/test-strerror.c (main): Permit Solaris behavior.
10176         * tests/test-strerror_r.c (main): Likewise.
10177
10178         strerror: enforce POSIX ruling on strerror(0)
10179         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
10180         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
10181         * lib/strerror_r.c (rpl_strerror_r): Work around it.
10182         * doc/posix-functions/strerror.texi (strerror): Document it.
10183         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
10184         * tests/test-strerror.c (main): Strengthen test.
10185         * tests/test-strerror_r.c (main): Likewise.
10186
10187 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
10188
10189         intprop-tests: port to older and more-pedantic compilers
10190         * modules/intprops-tests (Files): Add tests/macros.h.
10191         * tests/test-intprops.c: Include macros.h.
10192         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
10193         it's no longer documented to expand to an integer constant expression.
10194         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
10195         argument is floating point, as it's no longer documented to expand
10196         to an integer constant expression in that case.
10197         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
10198         compiler bugs reported by Bruno Haible.  See
10199         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
10200         (U0, U1): New constants, to work around the same bugs.  Also,
10201         in tests, use e.g., "(unsigned int) 39" rather than "39u".
10202
10203         intprops: work around C compiler bugs
10204         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
10205         bug in Sun C 5.11 2010/08/13 and other compilers; see
10206         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
10207
10208         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
10209         * doc/intprops.texi (Integer Type Determination): Fix
10210         documentation for TYPE_IS_INTEGER: it returns an constant
10211         expression, not an integer constant expression.  Fix doc for
10212         TYPE_SIGNED: it returns an integer constant expression only if its
10213         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
10214         hardly worth documented that way....)
10215
10216 2011-05-18  Bruno Haible  <bruno@clisp.org>
10217
10218         strerror_r: Avoid clobbering the strerror buffer when possible.
10219         * lib/strerror_r.c (strerror_r): Merge the three implementations.
10220         Handle gnulib defined errno values here. When strerror() returns NULL
10221         or an empty string, return EINVAL.
10222         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
10223         gnulib defined errno values here.
10224         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
10225
10226 2011-05-18  Eric Blake  <eblake@redhat.com>
10227
10228         fnmatch: avoid compiler warning
10229         * lib/fnmatch_loop.c (FCT): Use correct type.
10230         Reported by Matthias Bolte.
10231
10232 2011-05-13  Jim Meyering  <meyering@redhat.com>
10233
10234         maint.mk: three new prohibit_<HDR>_without_use rules
10235         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
10236         (sc_prohibit_stdio-safer_without_use): Likewise.
10237         (sc_prohibit_xfreopen_without_use): Likewise.
10238
10239 2011-05-17  Jim Meyering  <meyering@redhat.com>
10240
10241         announce-gen: fail if the NEWS delta is empty
10242         If there's nothing noteworthy in NEWS, then either you forgot
10243         or you shouldn't be releasing.
10244         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
10245
10246 2011-05-17  Pádraig Brady <P@draigBrady.com>
10247
10248         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
10249         reserved symbols starting with double underscore from the check.
10250
10251 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
10252
10253         intprops: add doc
10254         * doc/intprops.texi: New file, documenting intprops.
10255         * doc/gnulib.texi (Particular Modules): Include it.
10256
10257         verify: add doc to gnulib manual and fix example
10258         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
10259         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
10260         (Compile-time Assertions): Fix example so it can't overflow.
10261
10262 2011-05-17  Jim Meyering  <meyering@redhat.com>
10263
10264         warnings.m4: don't usurp save_CPPFLAGS variable name
10265         * m4/warnings.m4: Prefix local temporary variable name with gl_.
10266
10267         doc: fix typo
10268         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
10269
10270 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
10271             Bruno Haible  <bruno@clisp.org>
10272
10273         doc: Tweak recent change.
10274         * README (Portability guidelines): Tweak new text.
10275         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
10276         Interix 6.1.
10277
10278 2011-05-16  Eric Blake  <eblake@redhat.com>
10279
10280         inttypes: avoid autoconf warning
10281         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
10282         * m4/stdint.m4 (gl_STDINT_H): Likewise.
10283
10284 2011-05-16  Sam Steingold <sds@gnu.org>
10285         and Eric Blake  <eblake@redhat.com>
10286
10287         vc-list-files: accept multiple directory operands
10288         * build-aux/vc-list-files: Iterate over all remaining operands.
10289
10290 2011-05-16  Bruno Haible  <bruno@clisp.org>
10291
10292         Fix confusion regarding deprecated modules.
10293         * modules/calloc (Status, Notice): Mark module as deprecated, not
10294         obsolete.
10295         * modules/fnmatch-posix (Status, Notice): Likewise.
10296         * modules/getdate (Status, Notice): Likewise.
10297         * modules/getopt (Status, Notice): Likewise.
10298         * modules/malloc (Status, Notice): Likewise.
10299         * modules/pipe (Status, Notice): Likewise.
10300         * modules/realloc (Status, Notice): Likewise.
10301         * modules/rename-dest-slash (Status, Notice): Likewise.
10302         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
10303         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
10304         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
10305         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
10306         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
10307
10308 2011-05-16  Bruno Haible  <bruno@clisp.org>
10309
10310         doc: List the target platforms.
10311         * doc/gnulib-intro.texi (Target Platforms): New section.
10312         * doc/gnulib.texi (Introduction): Update menu.
10313         * README (Portability guidelines): Refer to the new section. Update
10314         statement about oldest supported environment. Remove rationale why
10315         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
10316         unportable C89 function.
10317         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
10318         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
10319
10320 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
10321
10322         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
10323
10324 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
10325
10326         intprops-tests: new module
10327         * modules/intprops-tests, tests/test-intprops.c: New files.
10328
10329         intprops: add safe, portable integer overflow checking
10330         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
10331         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
10332         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
10333         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
10334         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
10335         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
10336         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
10337         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
10338         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
10339         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
10340         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
10341
10342 2011-05-12  James Youngman  <jay@gnu.org>
10343
10344         Add a test for glibc's Bugzilla bug #12378.
10345         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
10346         doesn't allow the literal matching of a lone "[" (which is
10347         required by POSIX).
10348         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
10349
10350 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
10351
10352         Sync glibc change fixing Bugzilla bug #12378.
10353         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
10354         beginning and fall back to matching as normal character if the
10355         string ends before the matching ']' is found.  This is what POSIX
10356         requires.
10357
10358 2011-05-13  Eric Blake  <eblake@redhat.com>
10359
10360         getcwd-lgpl: relax test for FreeBSD
10361         * doc/posix-functions/getcwd.texi (getcwd): Document portability
10362         issue.
10363         * tests/test-getcwd-lgpl.c (main): Relax test.
10364         Reported by Matthias Bolte.
10365
10366 2011-05-11  Eric Blake  <eblake@redhat.com>
10367
10368         test-fflush: silence compiler warning
10369         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
10370
10371 2011-05-11  Bruno Haible  <bruno@clisp.org>
10372
10373         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
10374         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
10375         * modules/canonicalize (Depends-on): Add 'nocrash'.
10376         * modules/canonicalize-lgpl (Depends-on): Likewise.
10377         * doc/posix-functions/realpath.texi: Update platforms list.
10378         Reported by Ryan Schmidt <ryandesign@macports.org>.
10379
10380 2011-05-11  Bruno Haible  <bruno@clisp.org>
10381
10382         group-member: Declare function in <unistd.h>.
10383         * lib/unistd.in.h (group_member): New declaration.
10384         * lib/group-member.h: Remove file.
10385         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
10386         * tests/test-unistd-c++.cc: Check signature of group_member.
10387         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
10388         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
10389         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
10390         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
10391         HAVE_GROUP_MEMBER.
10392         * modules/group-member (Files): Remove lib/group-member.h.
10393         (Depends-on): Add unistd. Specify conditions.
10394         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
10395         (Include): Change to <unistd.h>.
10396         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
10397         HAVE_GROUP_MEMBER.
10398         * NEWS: Mention the change.
10399         * lib/euidaccess.c: Don't include group-member.h.
10400
10401 2011-05-11  Bruno Haible  <bruno@clisp.org>
10402
10403         group-member: Document module.
10404         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
10405         module.
10406
10407 2011-05-11  Bruno Haible  <bruno@clisp.org>
10408
10409         fclose: Fix mistake earlier today.
10410         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
10411
10412 2011-05-11  Eric Blake  <eblake@redhat.com>
10413
10414         fclose: preserve fflush errors
10415         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
10416         Reported by Jim Meyering.
10417
10418         bootstrap: support a prereq of 'rpcgen -' on RHEL5
10419         * build-aux/bootstrap (check_versions): When no specific version
10420         is required, merely check that the app produces an exit status
10421         that indicates its existence.
10422
10423         maint.mk: drop redundant check
10424         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
10425         the same but better.
10426
10427 2011-05-11  Bruno Haible  <bruno@clisp.org>
10428
10429         fclose: Fix possible link error.
10430         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
10431         unregister_shadow_fd. Improve comments.
10432         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
10433         Eric Blake.
10434
10435 2011-05-11  Jim Meyering  <meyering@redhat.com>
10436
10437         maint.mk: improve "can not" detection and generalize rule name
10438         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
10439         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
10440         Use the same technique as in sc_prohibit_doubled_word, so that
10441         we recognize "can not" also when the words are separated by a newline.
10442         Suggested by Eric Blake.
10443         (perl_filename_lineno_text_): Define.  Factored out of...
10444         (prohibit_doubled_word_): ...here.  Use the new definition.
10445         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
10446         (prohibit_undesirable_word_seq_RE_): New overridable variable.
10447         (ignore_undesirable_word_sequence_RE_): New overridable variable.
10448
10449 2011-05-10  Eric Blake  <eblake@redhat.com>
10450
10451         fclose: avoid double close race when possible
10452         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
10453         all but WINDOWS_SOCKETS.
10454
10455 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
10456
10457         openat: correct new comment
10458         * lib/openat-proc.c (openat_proc_name): Correct the comment.
10459
10460 2011-05-10  Jim Meyering  <meyering@redhat.com>
10461
10462         openat: add comments
10463         * lib/openat-proc.c (openat_proc_name): Add comments,
10464         mostly from Eric Blake.
10465
10466 2011-05-09  Eric Blake  <eblake@redhat.com>
10467
10468         openat: reduce syscalls in first probe of /proc
10469         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
10470         be a directory.  Simplify the probe for .. bugs.
10471         * modules/openat (Depends-on): Drop same-inode.
10472         Reported by Bastien ROUCARIES.
10473
10474 2011-05-09  Jim Meyering  <meyering@redhat.com>
10475
10476         maint.mk: change semantics/name of tight_scope variables
10477         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
10478         Rename variables to align with semantics that make them more useful.
10479
10480         maint.mk: tweak new rule's name not to impinge
10481         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
10482         (sc_tight_scope): Use new rule name rather than $@-0.
10483
10484         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
10485         * top/maint.mk (sc_tight_scope): New rule.
10486         (sc_tight_scope-0): New rule, ifdef'd out.
10487         (_gl_TS_dir): Default.
10488         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
10489         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
10490
10491 2011-05-09  Simon Josefsson  <simon@josefsson.org>
10492
10493         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
10494         Haible <bruno@clisp.org>.
10495
10496 2011-05-08  Bruno Haible  <bruno@clisp.org>
10497
10498         Comments.
10499         * m4/isnanf.m4: Add comment.
10500         * m4/isnanl.m4: Likewise.
10501
10502 2011-05-08  Bruno Haible  <bruno@clisp.org>
10503
10504         glob: Remove obsolete macro.
10505         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
10506
10507 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
10508
10509         intprops: Sun C 5.11 supports __typeof__
10510         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
10511         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
10512         which is new.
10513         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
10514
10515         intprops: switch to usual gnulib indenting and naming
10516         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
10517         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
10518
10519         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
10520
10521 2011-05-08  Jim Meyering  <meyering@redhat.com>
10522
10523         maint.mk: suppress "Entering/Leaving directory" diag in announcement
10524         * top/maint.mk (release-prep): Use make's --no-print-directory
10525         option when generating the announcement.  This eliminates the
10526         pesky "make[2]: Entering/Leaving directory" diagnostics in the
10527         generated announcement template.
10528
10529 2011-05-08  Bruno Haible  <bruno@clisp.org>
10530
10531         tzset: Fix gettimeofday wrapper on Solaris 2.6.
10532         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
10533         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
10534
10535 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
10536
10537         ignore-value, verify: Omit include files from lib_SOURCES.
10538         * modules/ignore-value, modules/verify (Makefile.am):
10539         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
10540         that leads Automake to duplicate use of am__objects_... variables
10541         in Makefile.in.  See
10542         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
10543
10544 2011-05-07  Bruno Haible  <bruno@clisp.org>
10545
10546         fclose: Simplify autoconf macro.
10547         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
10548         defined.
10549
10550 2011-05-07  Bruno Haible  <bruno@clisp.org>
10551
10552         canonicalize-lgpl: Fix autoconf macro ordering bug.
10553         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
10554         gl_STDLIB_H_DEFAULTS.
10555
10556 2011-05-06  Eric Blake  <eblake@redhat.com>
10557
10558         maintainer-makefile: make sc_po_check easier to tune
10559         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
10560         to probe for strings, such as an alternate location for gnulib.
10561
10562         fclose: guarantee behavior on seekable stdin
10563         * modules/fclose (Depends-on): Add fflush.
10564         * doc/posix-functions/fclose.texi (fclose): Document this.
10565         * tests/test-fclose.c (main): Make test for this unconditional.
10566
10567 2011-05-06  Bruno Haible  <bruno@clisp.org>
10568
10569         fflush, fpurge: Relicense under LGPLv2+.
10570         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
10571         * modules/fpurge (License): Likewise.
10572         With permission from Eric Blake and Jim Meyering.
10573         Suggested by Eric Blake.
10574
10575 2011-05-06  Karl Berry  <karl@gnu.org>
10576
10577         * MODULES.html.sh (func_all_modules): remove exit.
10578
10579 2011-05-06  Jim Meyering  <meyering@redhat.com>
10580
10581         maint.mk: use info-gnu@ as the default only for a stable release
10582         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
10583         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
10584         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
10585         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
10586
10587 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
10588
10589         assert-h: new module, which supports C1X-style static_assert
10590         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
10591         * lib/verify.h: Revamp so that this can be copied into assert.h,
10592         while retaining the ability to use it standalone as before.
10593         Rename private identifiers so as not to encroach on the
10594         standard C namespace, since this is now used by assert.h.
10595         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
10596         the old verify_true.
10597         (_GL_VERIFY_TRUE): New macro, with much of the contents of
10598         the old verify_true.  Use _GL_VERIFY_TYPE.
10599         (_GL_VERIFY): New macro, with much of the contents of the old verify.
10600         (static_assert): New macro, if _GL_STATIC_ASSERT_H
10601         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
10602         defined when this file is copied into the replacement assert.h.
10603         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
10604         and _Static_assert is not built in.
10605         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
10606         defined, and use the new macros mentioned above.
10607         * doc/posix-headers/assert.texi: Document this.
10608
10609 2011-05-05  Bruno Haible  <bruno@clisp.org>
10610
10611         fclose, fflush: Respect rules for use of AC_LIBOBJ.
10612         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
10613         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
10614         gl_REPLACE_FCLOSE here.
10615         * modules/fflush (Depends-on): Remove fclose.
10616         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
10617         combination with module 'fclose'.
10618
10619 2011-05-05  Bruno Haible  <bruno@clisp.org>
10620
10621         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
10622         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
10623         gl_FUNC_FFLUSH.
10624         (gl_FUNC_FFLUSH): Use it.
10625         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
10626         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
10627         gl_REPLACE_FSEEKO here.
10628
10629 2011-05-05  Bruno Haible  <bruno@clisp.org>
10630
10631         tzset: Relicense under LGPL.
10632         * modules/tzset (License): Change to LGPL.
10633         No agreement needed; it's a no-op.
10634
10635         strtoimax, strtoumax: Relicense under LGPL.
10636         * modules/strtoimax (License): Change to LGPL.
10637         * modules/strtoumax (License): Likewise.
10638         With permission from Jim Meyering, Paul Eggert:
10639         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
10640         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
10641
10642         getgroups: Relicense under LGPL.
10643         * modules/getgroups (License): Change to LGPL.
10644         With permission from Jim Meyering, Paul Eggert, Eric Blake:
10645         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
10646         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
10647         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
10648
10649         nanosleep: Relicense under LGPL.
10650         * modules/nanosleep (License): Change to LGPL.
10651         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
10652         Haible:
10653         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
10654         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
10655         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
10656         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
10657
10658         futimens: Relicense under LGPL.
10659         * modules/futimens (License): Change to LGPL.
10660         With permission from Eric Blake:
10661         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
10662
10663         fflush: Relicense under LGPL.
10664         * modules/fflush (License): Change to LGPL.
10665         With permission from Eric Blake, Bruno Haible, Jim Meyering:
10666         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
10667         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
10668         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
10669
10670         tmpfile: Relicense under LGPL.
10671         * modules/tmpfile (License): Change to LGPL.
10672         With permission from Ben Pfaff:
10673         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
10674
10675         isfinite: Relicense under LGPL.
10676         * modules/isfinite (License): Change to LGPL.
10677         With permission from Ben Pfaff, Bruno Haible:
10678         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
10679         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
10680
10681         acosl..tanl: Relicense under LGPL.
10682         * modules/acosl (License): Change to LGPL.
10683         * modules/asinl (License): Likewise.
10684         * modules/atanl (License): Likewise.
10685         * modules/cosl (License): Likewise.
10686         * modules/expl (License): Likewise.
10687         * modules/logl (License): Likewise.
10688         * modules/sinl (License): Likewise.
10689         * modules/sqrtl (License): Likewise.
10690         * modules/tanl (License): Likewise.
10691         Source code originally from glibc and Paolo Bonzini. Agreements:
10692         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
10693         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
10694
10695 2011-05-05  Bruno Haible  <bruno@clisp.org>
10696
10697         signal: Define sighandler_t.
10698         * lib/signal.in.h (sighandler_t): New type.
10699         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
10700         whether sighandler_t is defined.
10701         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
10702         * modules/signal (Depends-on): Add extensions.
10703         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
10704         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
10705         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
10706
10707 2011-05-05  Eric Blake  <eblake@redhat.com>
10708
10709         maint: remove useless REPLACE_*_H macros
10710         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
10711         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
10712         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
10713         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
10714         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
10715         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
10716         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
10717         * m4/btowc.m4: Update callers.
10718         * m4/dirfd.m4: Likewise.
10719         * m4/duplocale.m4: Likewise.
10720         * m4/fchdir.m4: Likewise.
10721         * m4/fdopendir.m4: Likewise.
10722         * m4/inet_ntop.m4: Likewise.
10723         * m4/inet_pton.m4: Likewise.
10724         * m4/ioctl.m4: Likewise.
10725         * m4/mbrlen.m4: Likewise.
10726         * m4/mbrtowc.m4: Likewise.
10727         * m4/mbsinit.m4: Likewise.
10728         * m4/mbsnrtowcs.m4: Likewise.
10729         * m4/mbsrtowcs.m4: Likewise.
10730         * m4/poll.m4: Likewise.
10731         * m4/setlocale.m4: Likewise.
10732         * m4/wcrtomb.m4: Likewise.
10733         * m4/wcsnrtombs.m4: Likewise.
10734         * m4/wcsrtombs.m4: Likewise.
10735         * m4/wctob.m4: Likewise.
10736         * m4/wcwidth.m4: Likewise.
10737         * modules/posix_spawn: Likewise.
10738         * modules/posix_spawn_file_actions_addclose: Likewise.
10739         * modules/posix_spawn_file_actions_adddup2: Likewise.
10740         * modules/posix_spawn_file_actions_addopen: Likewise.
10741         * modules/posix_spawn_file_actions_destroy: Likewise.
10742         * modules/posix_spawn_file_actions_init: Likewise.
10743         * modules/posix_spawnattr_destroy: Likewise.
10744         * modules/posix_spawnattr_getflags: Likewise.
10745         * modules/posix_spawnattr_getpgroup: Likewise.
10746         * modules/posix_spawnattr_getschedparam: Likewise.
10747         * modules/posix_spawnattr_getschedpolicy: Likewise.
10748         * modules/posix_spawnattr_getsigdefault: Likewise.
10749         * modules/posix_spawnattr_getsigmask: Likewise.
10750         * modules/posix_spawnattr_init: Likewise.
10751         * modules/posix_spawnattr_setflags: Likewise.
10752         * modules/posix_spawnattr_setpgroup: Likewise.
10753         * modules/posix_spawnattr_setschedparam: Likewise.
10754         * modules/posix_spawnattr_setschedpolicy: Likewise.
10755         * modules/posix_spawnattr_setsigdefault: Likewise.
10756         * modules/posix_spawnattr_setsigmask: Likewise.
10757         * modules/posix_spawnp: Likewise.
10758
10759 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
10760
10761         Add option to do-release-commit-and-tag to specify branch.
10762         * build-aux/do-release-commit-and-tag: Add --branch.
10763
10764 2011-05-03  Bruno Haible  <bruno@clisp.org>
10765
10766         Avoid unnecessary compilation units, through conditional dependencies.
10767         * modules/accept (Depends-on): Add conditions to the dependencies.
10768         * modules/acosl (Depends-on): Likewise.
10769         * modules/argz (Depends-on): Likewise.
10770         * modules/asinl (Depends-on): Likewise.
10771         * modules/atanl (Depends-on): Likewise.
10772         * modules/atoll (Depends-on): Likewise.
10773         * modules/bind (Depends-on): Likewise.
10774         * modules/btowc (Depends-on): Likewise.
10775         * modules/canonicalize-lgpl (Depends-on): Likewise.
10776         * modules/ceil (Depends-on): Likewise.
10777         * modules/ceilf (Depends-on): Likewise.
10778         * modules/ceill (Depends-on): Likewise.
10779         * modules/chdir-long (Depends-on): Likewise.
10780         * modules/chown (Depends-on): Likewise.
10781         * modules/close (Depends-on): Likewise.
10782         * modules/connect (Depends-on): Likewise.
10783         * modules/cosl (Depends-on): Likewise.
10784         * modules/dirfd (Depends-on): Likewise.
10785         * modules/dprintf (Depends-on): Likewise.
10786         * modules/dprintf-posix (Depends-on): Likewise.
10787         * modules/error (Depends-on): Likewise.
10788         * modules/euidaccess (Depends-on): Likewise.
10789         * modules/expl (Depends-on): Likewise.
10790         * modules/faccessat (Depends-on): Likewise.
10791         * modules/fchdir (Depends-on): Likewise.
10792         * modules/fclose (Depends-on): Likewise.
10793         * modules/fcntl (Depends-on): Likewise.
10794         * modules/fdopendir (Depends-on): Likewise.
10795         * modules/fflush (Depends-on): Likewise.
10796         * modules/floor (Depends-on): Likewise.
10797         * modules/floorf (Depends-on): Likewise.
10798         * modules/floorl (Depends-on): Likewise.
10799         * modules/fnmatch (Depends-on): Likewise.
10800         * modules/fopen (Depends-on): Likewise.
10801         * modules/fprintf-posix (Depends-on): Likewise.
10802         * modules/frexp (Depends-on): Likewise.
10803         * modules/frexp-nolibm (Depends-on): Likewise.
10804         * modules/frexpl (Depends-on): Likewise.
10805         * modules/frexpl-nolibm (Depends-on): Likewise.
10806         * modules/fseek (Depends-on): Likewise.
10807         * modules/fsusage (Depends-on): Likewise.
10808         * modules/ftell (Depends-on): Likewise.
10809         * modules/ftello (Depends-on): Likewise.
10810         * modules/futimens (Depends-on): Likewise.
10811         * modules/getcwd (Depends-on): Likewise.
10812         * modules/getcwd-lgpl (Depends-on): Likewise.
10813         * modules/getdelim (Depends-on): Likewise.
10814         * modules/getdomainname (Depends-on): Likewise.
10815         * modules/getgroups (Depends-on): Likewise.
10816         * modules/gethostname (Depends-on): Likewise.
10817         * modules/getline (Depends-on): Likewise.
10818         * modules/getlogin_r (Depends-on): Likewise.
10819         * modules/getopt-posix (Depends-on): Likewise.
10820         * modules/getpeername (Depends-on): Likewise.
10821         * modules/getsockname (Depends-on): Likewise.
10822         * modules/getsockopt (Depends-on): Likewise.
10823         * modules/getsubopt (Depends-on): Likewise.
10824         * modules/getusershell (Depends-on): Likewise.
10825         * modules/glob (Depends-on): Likewise.
10826         * modules/grantpt (Depends-on): Likewise.
10827         * modules/iconv_open (Depends-on): Likewise.
10828         * modules/iconv_open-utf (Depends-on): Likewise.
10829         * modules/inet_ntop (Depends-on): Likewise.
10830         * modules/inet_pton (Depends-on): Likewise.
10831         * modules/ioctl (Depends-on): Likewise.
10832         * modules/isapipe (Depends-on): Likewise.
10833         * modules/isfinite (Depends-on): Likewise.
10834         * modules/isinf (Depends-on): Likewise.
10835         * modules/lchown (Depends-on): Likewise.
10836         * modules/ldexpl (Depends-on): Likewise.
10837         * modules/link (Depends-on): Likewise.
10838         * modules/linkat (Depends-on): Likewise.
10839         * modules/listen (Depends-on): Likewise.
10840         * modules/logl (Depends-on): Likewise.
10841         * modules/lstat (Depends-on): Likewise.
10842         * modules/mbrlen (Depends-on): Likewise.
10843         * modules/mbrtowc (Depends-on): Likewise.
10844         * modules/mbsinit (Depends-on): Likewise.
10845         * modules/mbsnrtowcs (Depends-on): Likewise.
10846         * modules/mbsrtowcs (Depends-on): Likewise.
10847         * modules/mbtowc (Depends-on): Likewise.
10848         * modules/memcmp (Depends-on): Likewise.
10849         * modules/mkdir (Depends-on): Likewise.
10850         * modules/mkdtemp (Depends-on): Likewise.
10851         * modules/mkfifo (Depends-on): Likewise.
10852         * modules/mkfifoat (Depends-on): Likewise.
10853         * modules/mknod (Depends-on): Likewise.
10854         * modules/mkostemp (Depends-on): Likewise.
10855         * modules/mkostemps (Depends-on): Likewise.
10856         * modules/mkstemp (Depends-on): Likewise.
10857         * modules/mkstemps (Depends-on): Likewise.
10858         * modules/mktime (Depends-on): Likewise.
10859         * modules/nanosleep (Depends-on): Likewise.
10860         * modules/open (Depends-on): Likewise.
10861         * modules/openat (Depends-on): Likewise.
10862         * modules/perror (Depends-on): Likewise.
10863         * modules/poll (Depends-on): Likewise.
10864         * modules/popen (Depends-on): Likewise.
10865         * modules/posix_spawn (Depends-on): Likewise.
10866         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
10867         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
10868         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
10869         * modules/posix_spawnp (Depends-on): Likewise.
10870         * modules/pread (Depends-on): Likewise.
10871         * modules/printf-posix (Depends-on): Likewise.
10872         * modules/ptsname (Depends-on): Likewise.
10873         * modules/putenv (Depends-on): Likewise.
10874         * modules/pwrite (Depends-on): Likewise.
10875         * modules/readline (Depends-on): Likewise.
10876         * modules/readlink (Depends-on): Likewise.
10877         * modules/readlinkat (Depends-on): Likewise.
10878         * modules/recv (Depends-on): Likewise.
10879         * modules/recvfrom (Depends-on): Likewise.
10880         * modules/regex (Depends-on): Likewise.
10881         * modules/remove (Depends-on): Likewise.
10882         * modules/rename (Depends-on): Likewise.
10883         * modules/renameat (Depends-on): Likewise.
10884         * modules/rmdir (Depends-on): Likewise.
10885         * modules/round (Depends-on): Likewise.
10886         * modules/roundf (Depends-on): Likewise.
10887         * modules/roundl (Depends-on): Likewise.
10888         * modules/rpmatch (Depends-on): Likewise.
10889         * modules/select (Depends-on): Likewise.
10890         * modules/send (Depends-on): Likewise.
10891         * modules/sendto (Depends-on): Likewise.
10892         * modules/setenv (Depends-on): Likewise.
10893         * modules/setlocale (Depends-on): Likewise.
10894         * modules/setsockopt (Depends-on): Likewise.
10895         * modules/shutdown (Depends-on): Likewise.
10896         * modules/sigaction (Depends-on): Likewise.
10897         * modules/signbit (Depends-on): Likewise.
10898         * modules/sigprocmask (Depends-on): Likewise.
10899         * modules/sinl (Depends-on): Likewise.
10900         * modules/sleep (Depends-on): Likewise.
10901         * modules/snprintf (Depends-on): Likewise.
10902         * modules/snprintf-posix (Depends-on): Likewise.
10903         * modules/socket (Depends-on): Likewise.
10904         * modules/sprintf-posix (Depends-on): Likewise.
10905         * modules/sqrtl (Depends-on): Likewise.
10906         * modules/stat (Depends-on): Likewise.
10907         * modules/strchrnul (Depends-on): Likewise.
10908         * modules/strdup-posix (Depends-on): Likewise.
10909         * modules/strerror (Depends-on): Likewise.
10910         * modules/strerror_r-posix (Depends-on): Likewise.
10911         * modules/strndup (Depends-on): Likewise.
10912         * modules/strnlen (Depends-on): Likewise.
10913         * modules/strptime (Depends-on): Likewise.
10914         * modules/strsep (Depends-on): Likewise.
10915         * modules/strsignal (Depends-on): Likewise.
10916         * modules/strstr-simple (Depends-on): Likewise.
10917         * modules/strtod (Depends-on): Likewise.
10918         * modules/strtoimax (Depends-on): Likewise.
10919         * modules/strtok_r (Depends-on): Likewise.
10920         * modules/strtoumax (Depends-on): Likewise.
10921         * modules/symlink (Depends-on): Likewise.
10922         * modules/symlinkat (Depends-on): Likewise.
10923         * modules/tanl (Depends-on): Likewise.
10924         * modules/tcgetsid (Depends-on): Likewise.
10925         * modules/tmpfile (Depends-on): Likewise.
10926         * modules/trunc (Depends-on): Likewise.
10927         * modules/truncf (Depends-on): Likewise.
10928         * modules/truncl (Depends-on): Likewise.
10929         * modules/uname (Depends-on): Likewise.
10930         * modules/unlink (Depends-on): Likewise.
10931         * modules/unlockpt (Depends-on): Likewise.
10932         * modules/unsetenv (Depends-on): Likewise.
10933         * modules/usleep (Depends-on): Likewise.
10934         * modules/utimensat (Depends-on): Likewise.
10935         * modules/vasprintf (Depends-on): Likewise.
10936         * modules/vdprintf (Depends-on): Likewise.
10937         * modules/vdprintf-posix (Depends-on): Likewise.
10938         * modules/vfprintf-posix (Depends-on): Likewise.
10939         * modules/vprintf-posix (Depends-on): Likewise.
10940         * modules/vsnprintf (Depends-on): Likewise.
10941         * modules/vsnprintf-posix (Depends-on): Likewise.
10942         * modules/vsprintf-posix (Depends-on): Likewise.
10943         * modules/wcrtomb (Depends-on): Likewise.
10944         * modules/wcscasecmp (Depends-on): Likewise.
10945         * modules/wcscspn (Depends-on): Likewise.
10946         * modules/wcsdup (Depends-on): Likewise.
10947         * modules/wcsncasecmp (Depends-on): Likewise.
10948         * modules/wcsnrtombs (Depends-on): Likewise.
10949         * modules/wcspbrk (Depends-on): Likewise.
10950         * modules/wcsrtombs (Depends-on): Likewise.
10951         * modules/wcsspn (Depends-on): Likewise.
10952         * modules/wcsstr (Depends-on): Likewise.
10953         * modules/wcstok (Depends-on): Likewise.
10954         * modules/wcswidth (Depends-on): Likewise.
10955         * modules/wctob (Depends-on): Likewise.
10956         * modules/wctomb (Depends-on): Likewise.
10957         * modules/wctype (Depends-on): Likewise.
10958         * modules/wcwidth (Depends-on): Likewise.
10959         * modules/write (Depends-on): Likewise.
10960
10961 2011-05-03  Bruno Haible  <bruno@clisp.org>
10962
10963         Support for conditional dependencies.
10964         * doc/gnulib.texi (Module description): Document the syntax of
10965         conditional dependencies.
10966         * gnulib-tool: New option --conditional-dependencies.
10967         (func_usage): Document it.
10968         (cond_dependencies): New variable.
10969         (func_get_automake_snippet_conditional,
10970         func_get_automake_snippet_unconditional): New functions, extracted from
10971         func_get_automake_snippet.
10972         (func_get_automake_snippet): Use them.
10973         (sed_first_32_chars): New variable.
10974         (func_module_shellfunc_name): New function.
10975         (func_module_shellvar_name): New function.
10976         (func_module_conditional_name): New function.
10977         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
10978         func_cond_module_condition): New functions.
10979         (func_modules_transitive_closure): Add support for conditional
10980         dependencies.
10981         (func_emit_lib_Makefile_am): For a conditional module, enclose the
10982         conditional automake snippet in an automake conditional.
10983         (func_emit_autoconf_snippets): Emit shell functions that contain the
10984         code for conditional modules.
10985         (func_import, func_create_testdir): Update specification.
10986
10987 2011-05-03  Eric Blake  <eblake@redhat.com>
10988
10989         test-getaddrinfo: report error information
10990         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
10991
10992 2011-05-03  Jim Meyering  <meyering@redhat.com>
10993
10994         bootstrap: avoid build failure when $GZIP is set
10995         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
10996         program name.  If defined at all, it is supposed to list gzip options.
10997         Reported by Alan Curry in http://debbugs.gnu.org/8609
10998
10999 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
11000
11001         readme-release: new module with release instructions
11002         * modules/readme-release: New module.
11003         * top/README-release: New file, from coreutils, grep, diffutils.
11004         * MODULES.html.sh (Support for maintaining and releasing): Add it.
11005
11006 2011-05-02  Eric Blake  <eblake@redhat.com>
11007
11008         fflush: also replace fclose when fixing fflush
11009         * modules/fflush (Depends-on): Add fclose.
11010         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
11011         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
11012         memstreams with no backing fd.
11013         * doc/posix-functions/fclose.texi (fclose): Document the use of
11014         fflush module to fix the bug.
11015         * tests/test-fclose.c (main): Relax test when fclose is used in
11016         isolation.
11017
11018         fclose: add some tests
11019         * modules/fclose-tests: New test module.
11020         * tests/test-fclose.c: New file.
11021         * doc/posix-functions/fclose.texi (fclose): Document the bug.
11022
11023         fclose: reduced dependencies
11024         * modules/fclose (Depends-on): Switch from fflush/fseeko to
11025         simpler lseek.
11026         * lib/fclose.c (rpl_fclose): Likewise.
11027         Reported by Simon Josefsson.
11028
11029         exit: drop remaining clients
11030         * modules/argmatch (Depends-on): Replace exit with stdlib.
11031         * modules/copy-file (Depends-on): Likewise.
11032         * modules/execute (Depends-on): Likewise.
11033         * modules/exitfail (Depends-on): Likewise.
11034         * modules/obstack (Depends-on): Likewise.
11035         * modules/pagealign_alloc (Depends-on): Likewise.
11036         * modules/pipe-filter-gi (Depends-on): Likewise.
11037         * modules/pipe-filter-ii (Depends-on): Likewise.
11038         * modules/savewd (Depends-on): Likewise.
11039         * modules/spawn-pipe (Depends-on): Likewise.
11040         * modules/wait-process (Depends-on): Likewise.
11041         * modules/xsetenv (Depends-on): Likewise.
11042         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
11043         * modules/git-merge-changelog (Depends-on): Likewise.
11044         * modules/long-options (Depends-on): Likewise.
11045         * modules/pt_chown (Depends-on): Likewise.
11046         * modules/sysexits (Depends-on): Likewise.
11047
11048         freading: relax license from LGPLv3+ to LGPLv2+
11049         * modules/freading (License): Relax LGPL version.
11050
11051 2011-05-02  Bruno Haible  <bruno@clisp.org>
11052
11053         fchdir: Remove unused dependencies.
11054         * modules/fchdir (Depends-on): Remove include_next.
11055
11056 2011-05-02  Bruno Haible  <bruno@clisp.org>
11057
11058         gnulib-tool: Refactor.
11059         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
11060         from func_emit_autoconf_snippets.
11061         (func_emit_autoconf_snippets): Use it.
11062
11063 2011-05-02  Simon Josefsson  <simon@josefsson.org>
11064
11065         * NEWS: Document removal of 'exit'.
11066         * modules/exit: Remove file.
11067
11068 2011-05-01  Bruno Haible  <bruno@clisp.org>
11069
11070         Update DEPENDENCIES.
11071         * DEPENDENCIES (gettext): Recommend the newest release.
11072         Reported by Simon Josefsson.
11073
11074 2011-05-01  Bruno Haible  <bruno@clisp.org>
11075
11076         gnulib-tool: Reduce code duplication.
11077         * gnulib-tool (func_emit_autoconf_snippets): New function.
11078         (func_import, func_create_testdir): Use it.
11079
11080 2011-04-30  Eric Blake  <eblake@redhat.com>
11081
11082         fclose: don't fail on non-seekable input stream
11083         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
11084         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
11085         since fflush is allowed to fail in that case.
11086
11087 2011-04-30  Bruno Haible  <bruno@clisp.org>
11088
11089         dup3: cleanup
11090         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
11091
11092 2011-04-30  Bruno Haible  <bruno@clisp.org>
11093
11094         netdb: Make it work in C++ mode.
11095         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
11096         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
11097         module.
11098         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
11099         gl_MODULE_INDICATOR_FOR_TESTS.
11100         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
11101         * modules/netdb-c++-tests: New file.
11102         * tests/test-netdb-c++.cc: New file.
11103
11104 2011-04-30  Bruno Haible  <bruno@clisp.org>
11105
11106         New modules 'vfscanf', 'vscanf'.
11107         * modules/vfscanf: New file.
11108         * modules/vscanf: New file.
11109         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
11110         here.
11111         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
11112         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
11113
11114 2011-04-30  Bruno Haible  <bruno@clisp.org>
11115
11116         passfd: Add comments.
11117         * lib/passfd.c: Add comments about platforms.
11118
11119 2011-04-30  Bruno Haible  <bruno@clisp.org>
11120
11121         sys_uio: Make <sys/uio.h> self-contained.
11122         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
11123         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
11124
11125 2011-04-30  Bruno Haible  <bruno@clisp.org>
11126
11127         sys_socket: Ensure 'struct iovec' definition.
11128         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
11129         <sys/socket.h>.
11130         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
11131
11132 2011-04-30  Bruno Haible  <bruno@clisp.org>
11133
11134         sys_uio: Protect definition of 'struct iovec'.
11135         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
11136         it as a C struct.
11137
11138 2011-04-30  Bruno Haible  <bruno@clisp.org>
11139
11140         manywarnings: fix indentation
11141         * m4/manywarnings.m4: Indent by 2 spaces consistently.
11142
11143 2011-04-30  Pádraig Brady <P@draigBrady.com>
11144
11145         manywarnings: add -Wno-missing-field-initializers if needed.
11146         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
11147         option if it's needed to allow initialization with { 0, }
11148
11149 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
11150
11151         announce-gen: cosmetic improvement
11152         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
11153
11154 2011-04-29  Jim Meyering  <meyering@redhat.com>
11155
11156         vc-list-files: indent with spaces, not TABs
11157         * build-aux/vc-list-files: Convert leading TABs to spaces,
11158         to match the style of most other files in gnulib.
11159
11160         announce-gen: indent with spaces, not TABs
11161         * build-aux/announce-gen: Convert all TABs to spaces, to match
11162         the style of most other files in gnulib.
11163
11164 2011-04-29  Eric Blake  <eblake@redhat.com>
11165
11166         quotearg: avoid uninitialized variable use
11167         * lib/quotearg.c (quoting_options_from_style): Initialize
11168         remaining fields, and ensure that custom styles are only used via
11169         quoting_options rather than quoting_style.
11170
11171 2011-04-29  Jim Meyering  <meyering@redhat.com>
11172
11173         maint.mk: remove unused VC-tag variable
11174         * top/maint.mk (VC-tag): Remove unused variable.
11175
11176 2011-04-29  Bruno Haible  <bruno@clisp.org>
11177
11178         netdb: fix gai_strerror replacements
11179         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
11180         * modules/netdb: Substitute it.
11181
11182 2011-04-29  Jim Meyering  <meyering@redhat.com>
11183
11184         test-getcwd.c: avoid new set-but-not-used warning
11185         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
11186         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
11187         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
11188         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
11189
11190         test-hash.c: avoid a new shadowing warning
11191         * tests/test-hash.c (main): Don't shadow "dup".
11192
11193 2011-04-28  Eric Blake  <eblake@redhat.com>
11194
11195         getaddrinfo: fix gai_strerror signature
11196         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
11197         and work around mingw with UNICODE defined.
11198         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
11199         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
11200         * modules/netdb (Makefile.am): Substitute it.
11201         * lib/netdb.in.h (gai_strerror): Declare replacement.
11202         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
11203         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
11204         the fix.
11205
11206         getsockopt: avoid compiler warning
11207         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
11208         Reported by Matthias Bolte.
11209
11210         tests: drop unused link dependency
11211         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
11212         * modules/dirent-safer-tests (Makefile.am): Likewise.
11213         * modules/fdopendir-tests (Makefile.am): Likewise.
11214         * modules/mkfifoat-tests (Makefile.am): Likewise.
11215         * modules/openat-safer-tests (Makefile.am): Likewise.
11216         * modules/openat-tests (Makefile.am): Likewise.
11217         * modules/readlinkat-tests (Makefile.am): Likewise.
11218         * modules/symlinkat-tests (Makefile.am): Likewise.
11219         * modules/linkat-tests (Makefile.am): Likewise.
11220         (Depends-on): Switch to filenamecat-lgpl.
11221         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
11222         LIBINTL.
11223         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
11224         * tests/test-linkat.c (main): Don't require xalloc.
11225
11226         hash, mgetgroups: drop xalloc dependency
11227         * lib/hash.c (includes): Adjust includes.
11228         * lib/mgetgroups.c (includes): Likewise.
11229         (xgetgroups): Move...
11230         * lib/xgetgroups.c: ...to new file.
11231         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
11232         * modules/xgetgroups: New file, split from...
11233         * modules/mgetgroups: ...here.
11234         (Depends-on): Add xalloc-oversized.
11235         * modules/hash (Depends-on): Likewise.
11236         * modules/hash-tests (Depends-on): Drop xalloc.
11237         (test_hash_LDADD): Drop unused library.
11238         * tests/test-hash.c (main): Break xalloc dependency.
11239         (includes): Drop unused include.
11240
11241         xalloc-oversized: new module
11242         * modules/xalloc-oversized: New module.
11243         * modules/xalloc (Depends-on): Add it.
11244         * lib/xalloc.h (xalloc_oversized): Move...
11245         * lib/xalloc-oversized.h: ...into new file.
11246
11247         utimecmp: drop dependency on xmalloc
11248         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
11249         due to memory pressure.
11250         * modules/utimecmp (Depends-on): Drop xalloc.
11251
11252 2011-04-27  Eric Blake  <eblake@redhat.com>
11253
11254         getcwd: fix mingw bugs
11255         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
11256         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
11257         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
11258
11259 2011-04-27  Bruno Haible  <bruno@clisp.org>
11260
11261         mkstemps: Ensure declaration on MacOS X 10.5.
11262         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
11263         * doc/glibc-functions/mkstemps.texi: Document header file problem on
11264         MacOS X.
11265
11266 2011-04-27  Bruno Haible  <bruno@clisp.org>
11267
11268         mkstemp: More documentation.
11269         * doc/posix-functions/mkstemp.texi: Document header file problem on
11270         MacOS X.
11271
11272 2011-04-27  Bruno Haible  <bruno@clisp.org>
11273
11274         mkstemp: Tweak configure message when cross-compiling.
11275         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
11276         result as a guess.
11277
11278 2011-04-27  Bruno Haible  <bruno@clisp.org>
11279
11280         clean-temp: Clarify what it does.
11281         * lib/clean-temp.h: Add more comments.
11282         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
11283         module.
11284         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
11285         * doc/glibc-functions/mkstemps.texi: Likewise.
11286         * doc/glibc-functions/mkostemps.texi: Likewise.
11287
11288 2011-04-27  Eric Blake  <eblake@redhat.com>
11289
11290         fchdir: avoid extra chdir and fix test
11291         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
11292         getcwd-lgpl.
11293         * lib/fchdir.c (get_name): Any absolute name will do; it does not
11294         have to be canonical.
11295         (canonicalize_file_name): Drop unused macro.
11296         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
11297
11298         filenamecat-lgpl: fix licence
11299         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
11300         when it was first created.
11301
11302         linkat, renameat: add missing dependency
11303         * modules/linkat (Depends-on): Require getcwd-lgpl.
11304         * modules/renameat (Depends-on): Likewise.
11305
11306         tests: reduce dependencies
11307         * tests/test-linkat.c (main): Use lighter-weight getcwd.
11308         * tests/test-renameat.c (main): Likewise.
11309         * modules/linkat-tests (Depends-on): Relax dependency.
11310         * modules/renameat-tests (Depends-on): Likewise.
11311         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
11312         dependency explicit.
11313
11314         save-cwd: reduce default dependency
11315         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
11316         * lib/save-cwd.c: Update comments.
11317         * NEWS: Document the semantic change.
11318
11319         getcwd: enhance tests
11320         * tests/test-getcwd-lgpl.c: New file, taken from...
11321         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
11322         repeat long path stress tests from m4 probe.
11323         * modules/getcwd-lgpl-tests: New module.
11324         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
11325         * m4/getcwd-abort-bug.m4: Update comment.
11326         * m4/getcwd-path-max.m4: Likewise.
11327
11328         getcwd-lgpl: new module
11329         * modules/getcwd-lgpl: New module.
11330         * lib/getcwd-lgpl.c: New file.
11331         * doc/posix-functions/getcwd.texi (getcwd): Document it.
11332         * MODULES.html.sh (lacking POSIX:2008): Likewise.
11333         * modules/getcwd (configure.ac): Set C witness.
11334         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
11335
11336         getcwd: tweak comments
11337         * m4/getcwd-abort-bug.m4: Fix comments.
11338         * m4/getcwd-path-max.m4: Likewise.
11339         * m4/getcwd.m4: Likewise.
11340
11341 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
11342         and Eric Blake  <eblake@redhat.com>
11343
11344         mkstemp: replace if system version uses wrong permissions
11345         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
11346         read/write mode bits set in file created by mkstemp.
11347         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
11348
11349 2011-04-27  Eric Blake  <eblake@redhat.com>
11350
11351         passfd: avoid compiler warning
11352         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
11353         Reported by Laine Stump.
11354
11355 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
11356
11357         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
11358         required by the NetBSD (and perhaps other 4.4BSD derived) join.
11359
11360 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
11361         and Eric Blake  <eblake@redhat.com>
11362
11363         mkstemp: mention clean-temp module
11364         * lib/mkstemp.c: Add comment.
11365         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
11366
11367 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
11368
11369         inttypes: also provide default values for 32-bit tests
11370         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
11371         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
11372
11373 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
11374
11375         strtoumax: remove dependency on strtoimax
11376         This is like the strtoull change of yesterday.
11377         * modules/strtoumax (Files): Add lib/strtoimax.c.
11378         (Depends-on): Remove strtoimax and add verify.
11379
11380         inttypes-incomplete: new module
11381         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
11382         all but the PRI* and SCN* parts of gl_INTTYPES_H.
11383         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
11384         of gl_INTTYPES_H.
11385         (gl_INTTYPES_H): Rewrite in terms of these new macros.
11386         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
11387         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
11388         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
11389         * modules/strtoumax, modules/xstrtol (Depends-on):
11390         Depend on inttypes-incomplete, not inttypes.
11391         * modules/inttypes-incomplete: New module, containing the contents
11392         of the old modules/inttypes module, except that the Files: section
11393         omits m4/inttypes-pri.m4, and the configure.ac section invokes
11394         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
11395         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
11396         (Depends-on): Depend only on inttypes-incomplete.
11397         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
11398
11399         inttypes: omit now-redundant strtoimax and strtoumax work
11400         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
11401         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
11402
11403         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
11404         This supports apps that need pointers to strtoimax and strtoumax,
11405         and ports to HP-UX 11.00 64.bit, which has macros that expand to
11406         nonexistent functions.  See
11407         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
11408         et seq.
11409         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
11410         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
11411         a macro.
11412         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
11413
11414 2011-04-25  Simon Josefsson  <simon@josefsson.org>
11415
11416         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
11417
11418 2011-04-25  Bruno Haible  <bruno@clisp.org>
11419
11420         strtol, strtoul: Mark modules as obsolete.
11421         * modules/strtol (Status, Notice): New sections.
11422         * modules/strtoul (Status, Notice): New sections.
11423
11424 2011-04-25  Bruno Haible  <bruno@clisp.org>
11425
11426         strtod: Remove check for strtod, unless supporting old platforms.
11427         * modules/strtod-obsolete: New file.
11428         * m4/strtod-obsolete.m4: New file.
11429         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
11430         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
11431         * modules/strtod (Depends-on): Add strtod-obsolete.
11432         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
11433
11434 2011-04-25  Bruno Haible  <bruno@clisp.org>
11435
11436         strcase: Make module obsolete.
11437         * modules/strcase (Status, Notice): New sections.
11438
11439 2011-04-25  Bruno Haible  <bruno@clisp.org>
11440
11441         dup2: Remove check for dup2, unless supporting old obsolete platforms.
11442         * modules/dup2-obsolete: New file.
11443         * m4/dup2-obsolete.m4: New file.
11444         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
11445         gl_FUNC_DUP2_OBSOLETE is not also defined.
11446         * modules/dup2 (Depends-on): Add dup2-obsolete.
11447         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
11448
11449 2011-04-25  Bruno Haible  <bruno@clisp.org>
11450
11451         strnlen: Avoid memchr related link error on old obsolete platforms.
11452         * modules/memchr-obsolete: New file.
11453         * m4/memchr-obsolete.m4: New file.
11454         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
11455         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
11456         * modules/memchr (Depends-on): Add memchr-obsolete.
11457         * modules/strnlen (Depends-on): Likewise.
11458         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
11459
11460 2011-04-25  Jim Meyering  <meyering@redhat.com>
11461
11462         maint.mk: makefile_at_at_check extend and clean up
11463         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
11464         in addition to */Makefile.am.
11465         Exempt legitimate uses of @VAR@ notation, e.g.,
11466         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
11467         Remove obsolete coreutils-specific comment.
11468         Prompted by discussion here:
11469         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
11470
11471 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
11472
11473         strtoul: remove dependency on strtol
11474         This is so that 'configure' need not check for strtol merely because
11475         the application needs strtoul.
11476         * modules/strtoul (Files): Add lib/strtol.c.
11477         (Depends-on): Remove strtol.
11478
11479         strtoull: remove dependency on strtoul
11480         This is like the strtoll change.
11481         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
11482         (Depends-on): Remove strtoul.
11483
11484         strtoll: remove dependency on strtol
11485         This is so that 'configure' need not check for strtol merely because
11486         the application needs strtoll.
11487         * modules/strtoll (Files): Add lib/strtol.c.
11488         (Depends-on): Remove strtol.
11489
11490 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
11491
11492         inttypes: Move some configure check to module 'imaxdiv'.
11493         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
11494         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
11495         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
11496
11497 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
11498
11499         inttypes: Move some configure check to module 'imaxabs'.
11500         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
11501         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
11502         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
11503
11504 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
11505
11506         inttypes: Remove configure tests that are not needed since 2009-12-31.
11507         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
11508         gl_cv_header_working_inttypes_h.
11509
11510 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
11511
11512         * modules/strnlen (Depends-on): Remove memchr.
11513         The strnlen implementation doesn't need the memchr module's fixes; see
11514         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
11515
11516         strtol: remove dependency on wchar
11517         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
11518         * modules/strtol (Depends-on): Remove wchar.
11519
11520 2011-04-21  Eric Blake  <eblake@redhat.com>
11521
11522         passfd: fix test regression on Linux
11523         * modules/passfd-tests (configure.ac): Correct socketpair check.
11524
11525         passfd: speed up configure and drop unused code
11526         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
11527         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
11528         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
11529         Instead of probing at configure for unix_scm_rights_bsd44_way,
11530         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
11531         check to a struct member probe.
11532         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
11533         (sendfd, recvfd): Update preprocessor checks.
11534         * modules/passfd (Files): Reflect rename, and drop unused file.
11535         (Depends-on): Drop unused dependency.
11536
11537         passfd: allow compilation on mingw
11538         * modules/sys_socket (Depends-on): Add sys_uio.
11539         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
11540         iovec and a minimal struct msghdr.
11541         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
11542         * tests/test-sys_socket.c (main): Enhance test.
11543         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
11544         guaranteed to provide what we need.
11545         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
11546         * modules/passfd-tests (Depends-on): Add sys_wait.
11547         * tests/test-passfd.c (main): Skip test on mingw, for now.
11548         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
11549         partial 'struct msghdr' implementation.
11550
11551         sys_uio: new module
11552         * modules/sys_uio: New module.
11553         * modules/sys_uio-tests: Likewise.
11554         * lib/sys_uio.in.h: New file.
11555         * m4/sys_uio_h.m4: Likewise.
11556         * tests/test-sys_uio.c: Likewise.
11557         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
11558         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
11559
11560 2011-04-20  Jim Meyering  <meyering@redhat.com>
11561
11562         useless-if-before-free: avoid false-positive
11563         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
11564         disjunct so that it too requires a terminating ";".  Without that,
11565         this script would identify as useless one statement from gcc that
11566         was not:
11567           if (aligned_ptr)
11568             free (((void **) aligned_ptr) [-1]);
11569
11570 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
11571
11572         doc: update users.txt.
11573         * users.txt: Add barcode.
11574
11575 2011-04-19  Bruno Haible  <bruno@clisp.org>
11576
11577         ioctl: Remove link dependency on native Windows.
11578         * lib/fd-hook.h: Renamed from lib/close-hook.h.
11579         (gl_close_fn, gl_ioctl_fn): New types.
11580         (struct fd_hook): Renamed from struct close_hook. Change type of
11581         private_close_fn field. Add private_ioctl_fn field.
11582         (close_hook_fn): Add parameter for primary close method.
11583         (execute_close_hooks, execute_all_close_hooks): Likewise.
11584         (ioctl_hook_fn): New type.
11585         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
11586         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
11587         argument.
11588         (unregister_fd_hook): Renamed from unregister_close_hook.
11589         * lib/fd-hook.c: Renamed from lib/close-hook.c.
11590         Don't include <unistd.h>.
11591         (close): Remove undef.
11592         (anchor): Update.
11593         (execute_close_hooks): Add argument for primary close method.
11594         (execute_all_close_hooks): Likewise.
11595         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
11596         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
11597         argument. Allow each argument to be NULL.
11598         (unregister_fd_hook): Renamed from unregister_close_hook.
11599         * lib/close.c (rpl_close): Pass 'close' function pointer to
11600         execute_all_close_hooks.
11601         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
11602         (primary_ioctl): New function.
11603         (ioctl): Don't call ioctlsocket here. Instead, call
11604         execute_all_ioctl_hooks.
11605         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
11606         close method.
11607         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
11608         (fd_sockets_hook): Renamed from close_sockets_hook.
11609         (gl_sockets_startup, gl_sockets_cleanup): Update.
11610         * modules/fd-hook: Renamed from modules/close-hook. Update.
11611         * modules/close (Depends-on): Add fd-hook, remove close-hook.
11612         * modules/sockets (Depends-on): Likewise.
11613         * modules/ioctl (Depends-on): Add fd-hook.
11614         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
11615         GNULIB_SOCKET.
11616
11617 2011-04-19  Bruno Haible  <bruno@clisp.org>
11618
11619         Move the support of O_NONBLOCK in open() to the 'open' module.
11620         * modules/nonblocking (Depends-on): Remove 'open'.
11621         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
11622         gl_cv_have_open_O_NONBLOCK.
11623         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
11624         O_NONBLOCK support.
11625         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
11626
11627 2011-04-17  Bruno Haible  <bruno@clisp.org>
11628
11629         pipe2: Simplify code.
11630         * lib/pipe2.c (pipe2): Reduce code duplication.
11631
11632 2011-04-17  Bruno Haible  <bruno@clisp.org>
11633
11634         nonblocking: Add comment.
11635         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
11636
11637 2011-04-17  Bruno Haible  <bruno@clisp.org>
11638
11639         nonblocking: Add tests for sockets.
11640         * tests/test-nonblocking-socket.sh: New file.
11641         * tests/test-nonblocking-socket-main.c: New file.
11642         * tests/test-nonblocking-socket-child.c: New file.
11643         * tests/test-nonblocking-socket.h: New file.
11644         * tests/socket-server.h: New file.
11645         * tests/socket-client.h: New file.
11646         * modules/nonblocking-socket-tests: New file.
11647         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
11648
11649 2011-04-17  Bruno Haible  <bruno@clisp.org>
11650
11651         nonblocking: Add tests for pipes.
11652         * tests/test-nonblocking-pipe.sh: New file.
11653         * tests/test-nonblocking-pipe-main.c: New file.
11654         * tests/test-nonblocking-pipe-child.c: New file.
11655         * tests/test-nonblocking-pipe.h: New file.
11656         * tests/test-nonblocking-writer.h: New file.
11657         * tests/test-nonblocking-reader.h: New file.
11658         * tests/test-nonblocking-misc.h: New file.
11659         * modules/nonblocking-pipe-tests: New file.
11660         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
11661
11662 2011-04-16  Bruno Haible  <bruno@clisp.org>
11663
11664         gettext: Clarify the needed programmer actions.
11665         * modules/gettext (Notice): New field.
11666         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
11667
11668 2011-04-16  Bruno Haible  <bruno@clisp.org>
11669
11670         strchrnul: Tweak last commit.
11671         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
11672         bug.
11673         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
11674         as in _GL_FUNCDECL_SYS.
11675         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
11676         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
11677
11678 2011-04-15  Eric Blake  <eblake@redhat.com>
11679
11680         strchrnul: work around cygwin bug
11681         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
11682         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
11683         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
11684         * modules/string (Makefile.am): Substitute it.
11685         * lib/string.in.h (strchrnul): Use it.
11686
11687 2011-04-15  Bruno Haible  <bruno@clisp.org>
11688
11689         Don't require lib/stdio-write.c when only module 'stdio' is used.
11690         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
11691         invocation.
11692         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
11693
11694 2011-04-14  Bruno Haible  <bruno@clisp.org>
11695
11696         Support non-blocking pipe I/O in read() on native Windows.
11697         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
11698         (read): New declaration.
11699         * lib/read.c: New file.
11700         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
11701         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
11702         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
11703         vscanf): New declarations.
11704         * lib/stdio-read.c: New file.
11705         * m4/read.m4: New file.
11706         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
11707         REPLACE_READ.
11708         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
11709         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
11710         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
11711         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
11712         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
11713         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
11714         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
11715         * modules/read: New file.
11716         * modules/nonblocking (Files): Add lib/stdio-read.c.
11717         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
11718         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
11719         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
11720         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
11721         * modules/pread (Depends-on): Add read.
11722         * modules/safe-read (Depends-on): Likewise.
11723         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
11724         gets, scanf, vfscanf, vscanf): Verify signatures.
11725         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
11726         problem with non-blocking pipes.
11727         * doc/posix-functions/fgetc.texi: Likewise.
11728         * doc/posix-functions/fgets.texi: Likewise.
11729         * doc/posix-functions/fread.texi: Likewise.
11730         * doc/posix-functions/fscanf.texi: Likewise.
11731         * doc/posix-functions/getc.texi: Likewise.
11732         * doc/posix-functions/getchar.texi: Likewise.
11733         * doc/posix-functions/gets.texi: Likewise.
11734         * doc/posix-functions/scanf.texi: Likewise.
11735         * doc/posix-functions/vfscanf.texi: Likewise.
11736         * doc/posix-functions/vscanf.texi: Likewise.
11737
11738 2011-04-14  Bruno Haible  <bruno@clisp.org>
11739
11740         Support non-blocking pipe I/O in write() on native Windows.
11741         * lib/write.c (rpl_write): Split a write request that failed merely
11742         because the byte count was larger than the pipe buffer's size.
11743         * doc/posix-functions/write.texi: Mention the problem with large byte
11744         counts.
11745
11746 2011-04-14  Bruno Haible  <bruno@clisp.org>
11747
11748         wchar: Ensure that wchar_t gets defined on uClibc.
11749         * lib/wchar.in.h: On uClibc, include <stddef.h>.
11750         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
11751
11752 2011-04-13  Bruno Haible  <bruno@clisp.org>
11753
11754         safe-write, full-read: Avoid unnecessary compilation units.
11755         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
11756         (Depends-on): Remove safe-read. Add ssize_t.
11757         * modules/full-read (Files): Add lib/full-write.c.
11758         (Depends-on): Add full-write.
11759
11760 2011-04-13  Bruno Haible  <bruno@clisp.org>
11761
11762         Support non-blocking pipe I/O and SIGPIPE in pwrite().
11763         * modules/pwrite (Depends-on): Add 'write'.
11764
11765 2011-04-13  Bruno Haible  <bruno@clisp.org>
11766
11767         Support non-blocking pipe I/O in write() on native Windows.
11768         * lib/unistd.in.h (write): Enable replacement also if
11769         GNULIB_UNISTD_H_NONBLOCKING is 1.
11770         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
11771         (rpl_write): When failing to write on a non-blocking pipe, change
11772         errno from ENOSPC to EAGAIN.
11773         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
11774         putchar, puts, vfprintf, vprintf): Enable replacement also if
11775         GNULIB_STDIO_H_NONBLOCKING is 1.
11776         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
11777         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
11778         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
11779         CALL_WITH_SIGPIPE_EMULATION.
11780         (CALL_WITH_SIGPIPE_EMULATION): Use them.
11781         * m4/nonblocking.m4: New file.
11782         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
11783         for non-blocking I/O support.
11784         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
11785         GNULIB_UNISTD_H_NONBLOCKING.
11786         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
11787         required for non-blocking I/O support.
11788         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
11789         * modules/nonblocking (Files): Add m4/nonblocking.m4,
11790         lib/stdio-write.c, m4/asm-underscore.m4.
11791         (Depends-on): Add stdio, unistd.
11792         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
11793         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
11794         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
11795         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
11796         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
11797         problem with non-blocking pipes.
11798         * doc/posix-functions/fputc.texi: Likewise.
11799         * doc/posix-functions/fputs.texi: Likewise.
11800         * doc/posix-functions/fwrite.texi: Likewise.
11801         * doc/posix-functions/printf.texi: Likewise.
11802         * doc/posix-functions/putc.texi: Likewise.
11803         * doc/posix-functions/putchar.texi: Likewise.
11804         * doc/posix-functions/puts.texi: Likewise.
11805         * doc/posix-functions/vfprintf.texi: Likewise.
11806         * doc/posix-functions/vprintf.texi: Likewise.
11807         * doc/posix-functions/write.texi: Likewise.
11808
11809 2011-04-10  Jim Meyering  <meyering@redhat.com>
11810
11811         maint.mk: prohibit doubled words
11812         Detect them also when they're separated by a newline.
11813         There are 3 ways to customize it:
11814           - disable the test on a per file basis, as usual with rules using
11815             $(VC_LIST_EXCEPT)
11816           - replace the default doubled-word-selecting regexp (affects all files)
11817           - ignore a particular file-vs-doubled-word match
11818         I nearly used that last one to ignore the "is is" match in
11819         coreutils' NEWS file, since the text was "ls -is is ..."
11820         To do that, I would have added this line to cfg.mk:
11821           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
11822         but it would have ignored any "is is" match in NEWS.
11823         Low probability, but still...
11824         Instead, I changed the text, slightly:
11825           -  ls -is is now consistent with ls -lis in ignoring values returned
11826           +  "ls -is" is now consistent with ls -lis in ignoring values returned
11827         * top/maint.mk (prohibit_double_word_RE_): Provide default.
11828         (prohibit_doubled_word_): Define.
11829         (sc_prohibit_doubled_word): New rule.
11830         (sc_prohibit_the_the): Remove.  Subsumed by the above.
11831
11832 2011-04-10  Jim Meyering  <meyering@redhat.com>
11833
11834         maint: fix doubled-word typo in comment
11835         * m4/gethostname.m4: s/is is/it is/
11836         * m4/getdomainname.m4: Likewise.
11837
11838 2011-04-10  Jim Meyering  <meyering@redhat.com>
11839
11840         maint: remove doubled word: s/it it/it/
11841         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
11842
11843 2011-04-10  Jim Meyering  <meyering@redhat.com>
11844
11845         maint.mk: remove useless semicolon and backslash
11846         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
11847         semicolon and backslash.
11848
11849 2011-04-10  Bruno Haible  <bruno@clisp.org>
11850
11851         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
11852         * modules/stdint-tests (Depends-on): Add wchar.
11853
11854 2011-04-10  Jim Meyering  <meyering@redhat.com>
11855
11856         maint: remove doubled words in comments, e.g., s/a a/a/
11857         * lib/strptime.c (day_of_the_week): s/the the/the/
11858         * tests/test-chown.h (test_chown): s/a a/a/
11859
11860         test-chown.h: correct a cast
11861         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
11862         when the destination is a stat.st_gid.
11863
11864 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
11865
11866         getaddrinfo: Fix test for sa_len member.
11867         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
11868         include <sys/types.h> before <sys/socket.h>.
11869
11870 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
11871
11872         maint: change "can not" to "cannot"
11873         * doc/posix-functions/iconv.texi (iconv): This one crossed line
11874         boundaries.
11875
11876 2011-04-09  Jim Meyering  <meyering@redhat.com>
11877
11878         maint: change "a a" to "a"
11879         * tests/test-lchown.h (test_lchown): s/a a/a/
11880
11881         maint.mk: prohibit \<the the\>
11882         * top/maint.mk (sc_prohibit_the_the): New rule.
11883
11884         maint: fix "the the" in comment
11885         * lib/count-one-bits.h: s/the the/the/
11886
11887         maint: change "can not" to "cannot"
11888         But do not change the occurrences in maintain.texi or in
11889         build-aux/po/Makefile.in.in, which I presume comes from gettext.
11890         * doc/gnulib-tool.texi: s/can not/cannot/
11891         * doc/posix-functions/accept.texi (accept): Likewise.
11892         * doc/posix-functions/socket.texi (socket): Likewise.
11893         * lib/mbrtowc.c: Likewise.
11894
11895         maint.mk: prohibit use of "can not"
11896         * top/maint.mk (sc_prohibit_can_not): New rule.
11897         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
11898
11899 2011-04-09  Bruno Haible  <bruno@clisp.org>
11900
11901         careadlinkat: Guard against misuse of careadlinkatcwd.
11902         * lib/careadlinkat.c: Include <stdlib.h>.
11903         (careadlinkatcwd): Check that the fd argument is as expected.
11904
11905 2011-04-09  Bruno Haible  <bruno@clisp.org>
11906
11907         careadlinkat: Use common coding style.
11908         * lib/careadlinkat.c: Move gnulib includes after system includes.
11909
11910 2011-04-09  Bruno Haible  <bruno@clisp.org>
11911
11912         careadlinkat: Clarify specification.
11913         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
11914         (careadlinkatcwd): Add comment.
11915         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
11916
11917 2011-04-09  Bruno Haible  <bruno@clisp.org>
11918
11919         areadlinkat: Avoid link error on many platforms.
11920         * modules/areadlinkat (Depends-on): Add areadlink.
11921
11922 2011-04-09  Bruno Haible  <bruno@clisp.org>
11923
11924         allocator, careadlinkat: Fix double-inclusion guard.
11925         * lib/allocator.h: Fix double-inclusion guard.
11926         * lib/careadlinkat.h: Likewise.
11927
11928 2011-04-09  Bruno Haible  <bruno@clisp.org>
11929
11930         relocatable-prog-wrapper: Update after module 'areadlink' changed.
11931         * lib/relocwrapper.c: Update dependencies hierarchy.
11932         * build-aux/install-reloc: Update list of files to be compiled.
11933         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
11934         lib/allocator.[hc].
11935
11936 2011-04-08  Eric Blake  <eblake@redhat.com>
11937
11938         strftime: silence gnulib-tool warning
11939         * modules/strftime-tests (Depends-on): Drop automatic dependency.
11940
11941 2011-04-08  Bruno Haible  <bruno@clisp.org>
11942
11943         verify: Fix syntax error with GCC 4.6 in C++ mode.
11944         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
11945         (HAVE_STATIC_ASSERT): New macro.
11946         (verify_true, verify): Use 'static_assert' if it is supported and
11947         '_Static_assert' is not supported.
11948
11949 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
11950
11951         allocator: New module.
11952         * modules/allocator, lib/allocator.c: New files.
11953         * lib/allocator.h (stdlib_allocator): New decl.
11954         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
11955         Remove.  Do not include <stdlib.h>.
11956         (careadlinkat): Use stdlib_allocator instead of rolling our own.
11957         * modules/careadlinkat (Files): Remove lib/allocator.h.
11958         (Depends-on): Add allocator.
11959
11960         stdlib: let modules use system malloc, realloc
11961         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
11962         if !_GL_USE_STDLIB_ALLOC.
11963         (malloc, realloc): Limit this change to a smaller scope.
11964
11965         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
11966         (malloc, realloc): Don't #undef; no longer needed.
11967         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
11968         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
11969         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
11970         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
11971         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
11972         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
11973         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
11974         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
11975
11976         careadlinkat: rename members to avoid problem
11977         * lib/allocator.h (struct allocator): Rename members from
11978         malloc/realloc to allocate/reallocate, to avoid problems if malloc
11979         and realloc are #define'd.  Reported by Eric Blake in
11980         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
11981         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
11982
11983 2011-04-08  Eric Blake  <eblake@redhat.com>
11984
11985         nonblocking: reduce dependency
11986         * tests/test-nonblocking.c: Only test sockets when in use.
11987         * modules/nonblocking-tests (Depends-on): Drop socket.
11988         (Makefile.am): Link even if sockets are not present.
11989         * modules/pipe2-tests (Makefile.am): Likewise.
11990         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
11991
11992         pipe2: fix O_NONBLOCK support on mingw
11993         * modules/pipe2 (Depends-on): Add nonblocking.
11994         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
11995         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
11996         * tests/test-nonblocking.c (main): Likewise.
11997         * modules/pipe2-tests (Makefile.am): Avoid link failure.
11998
11999         fcntl-h: fix O_ACCMODE on cygwin
12000         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
12001         * lib/fcntl.in.h (O_ACCMODE): Fix it.
12002
12003         pipe-filter: drop O_NONBLOCK workarounds
12004         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
12005         * modules/pipe-filter-ii (Depends-on): Likewise.
12006         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
12007
12008         nonblocking: provide O_NONBLOCK for mingw
12009         * modules/nonblocking (Depends-on): Add open.
12010         (configure.ac): Set new witness macro.
12011         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
12012         * modules/fcntl-h (Makefile.am): Substitute it.
12013         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
12014         nonblocking module is in use.
12015         * lib/nonblocking.c: Adjust portability test.
12016         * lib/open.c (open): Don't let native open see gnulib flag.
12017         * tests/test-fcntl-h.c (main): Enhance test.
12018         * tests/test-open.h (test_open): Likewise.
12019         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
12020
12021         careadlinkat: fix compilation error on mingw
12022         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
12023         within struct allocator.
12024
12025 2011-04-06  Eric Blake  <eblake@redhat.com>
12026
12027         binary-io: relicense under LGPLv2+
12028         * modules/binary-io (License): Relax to LGPLv2+.
12029         Requested for libvirt, and required by pipe2.
12030
12031 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
12032
12033         verify: use _Static_assert if available
12034         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
12035         (verify_true, verify): Use it if available.  This generates better
12036         diagnostics with GCC 4.6.0 and later.
12037
12038 2011-04-05  Bruno Haible  <bruno@clisp.org>
12039
12040         Remove leftover generated .h files after config.status changed.
12041
12042         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
12043         GL_GENERATE_ALLOCA_H.
12044         * modules/alloca-opt (Makefile.am): Remove alloca.h if
12045         GL_GENERATE_ALLOCA_H evaluates to false.
12046
12047         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
12048         GL_GENERATE_ARGZ_H.
12049         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
12050         evaluates to false.
12051
12052         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
12053         GL_GENERATE_BYTESWAP_H.
12054         * modules/byteswap (Makefile.am): Remove byteswap.h if
12055         GL_GENERATE_BYTESWAP_H evaluates to false.
12056
12057         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
12058         GL_GENERATE_ERRNO_H.
12059         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
12060         evaluates to false.
12061
12062         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
12063         GL_GENERATE_FLOAT_H.
12064         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
12065         evaluates to false.
12066
12067         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
12068         GL_GENERATE_FNMATCH_H.
12069         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
12070         GL_GENERATE_FNMATCH_H evaluates to false.
12071
12072         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
12073         GL_GENERATE_GLOB_H.
12074         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
12075         evaluates to false.
12076
12077         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
12078         automake conditional GL_GENERATE_ICONV_H.
12079         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
12080         evaluates to false.
12081
12082         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
12083         GL_GENERATE_NETINET_IN_H.
12084         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
12085         GL_GENERATE_NETINET_IN_H evaluates to false.
12086
12087         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
12088         conditional GL_GENERATE_PTHREAD_H.
12089         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
12090         * modules/pthread (Makefile.am): Remove pthread.h if
12091         GL_GENERATE_PTHREAD_H evaluates to false.
12092
12093         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
12094         GL_GENERATE_SCHED_H.
12095         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
12096         evaluates to false.
12097
12098         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
12099         conditional GL_GENERATE_SELINUX_CONTEXT_H.
12100         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
12101         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
12102
12103         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
12104         GL_GENERATE_STDARG_H.
12105         * modules/stdarg (Makefile.am): Remove stdarg.h if
12106         GL_GENERATE_STDARG_H evaluates to false.
12107
12108         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
12109         GL_GENERATE_STDBOOL_H.
12110         * modules/stdbool (Makefile.am): Remove stdbool.h if
12111         GL_GENERATE_STDBOOL_H evaluates to false.
12112
12113         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
12114         conditional GL_GENERATE_STDDEF_H.
12115         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
12116         * modules/stddef (Makefile.am): Remove stddef.h if
12117         GL_GENERATE_STDDEF_H evaluates to false.
12118
12119         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
12120         GL_GENERATE_STDINT_H.
12121         * modules/stdint (Makefile.am): Remove stdint.h if
12122         GL_GENERATE_STDINT_H evaluates to false.
12123
12124         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
12125         GL_GENERATE_SYSEXITS_H.
12126         * modules/sysexits (Makefile.am): Remove sysexits.h if
12127         GL_GENERATE_SYSEXITS_H evaluates to false.
12128
12129         Reported by Karl Berry and Ralf Wildenhues.
12130
12131 2011-04-05  Bruno Haible  <bruno@clisp.org>
12132
12133         Ensure to rebuild generated .h files when config.status has changed.
12134         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
12135         config.status.
12136         * modules/ctype (Makefile.am): Likewise.
12137         * modules/dirent (Makefile.am): Likewise.
12138         * modules/errno (Makefile.am): Likewise.
12139         * modules/fcntl-h (Makefile.am): Likewise.
12140         * modules/float (Makefile.am): Likewise.
12141         * modules/getopt-posix (Makefile.am): Likewise.
12142         * modules/glob (Makefile.am): Likewise.
12143         * modules/iconv-h (Makefile.am): Likewise.
12144         * modules/inttypes (Makefile.am): Likewise.
12145         * modules/langinfo (Makefile.am): Likewise.
12146         * modules/locale (Makefile.am): Likewise.
12147         * modules/math (Makefile.am): Likewise.
12148         * modules/netdb (Makefile.am): Likewise.
12149         * modules/netinet_in (Makefile.am): Likewise.
12150         * modules/poll-h (Makefile.am): Likewise.
12151         * modules/pthread (Makefile.am): Likewise.
12152         * modules/pty (Makefile.am): Likewise.
12153         * modules/sched (Makefile.am): Likewise.
12154         * modules/search (Makefile.am): Likewise.
12155         * modules/selinux-h (Makefile.am): Likewise.
12156         * modules/signal (Makefile.am): Likewise.
12157         * modules/spawn (Makefile.am): Likewise.
12158         * modules/stdarg (Makefile.am): Likewise.
12159         * modules/stdbool (Makefile.am): Likewise.
12160         * modules/stddef (Makefile.am): Likewise.
12161         * modules/stdint (Makefile.am): Likewise.
12162         * modules/stdio (Makefile.am): Likewise.
12163         * modules/stdlib (Makefile.am): Likewise.
12164         * modules/string (Makefile.am): Likewise.
12165         * modules/strings (Makefile.am): Likewise.
12166         * modules/sys_file (Makefile.am): Likewise.
12167         * modules/sys_ioctl (Makefile.am): Likewise.
12168         * modules/sys_select (Makefile.am): Likewise.
12169         * modules/sys_socket (Makefile.am): Likewise.
12170         * modules/sys_stat (Makefile.am): Likewise.
12171         * modules/sys_time (Makefile.am): Likewise.
12172         * modules/sys_times (Makefile.am): Likewise.
12173         * modules/sys_utsname (Makefile.am): Likewise.
12174         * modules/sys_wait (Makefile.am): Likewise.
12175         * modules/sysexits (Makefile.am): Likewise.
12176         * modules/termios (Makefile.am): Likewise.
12177         * modules/time (Makefile.am): Likewise.
12178         * modules/unistd (Makefile.am): Likewise.
12179         * modules/wchar (Makefile.am): Likewise.
12180         * modules/wctype-h (Makefile.am): Likewise.
12181         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
12182
12183 2011-04-05  Bruno Haible  <bruno@clisp.org>
12184
12185         pipe2: Relicense under LGPLv2+.
12186         * modules/pipe2 (License): Change to LGPLv2+.
12187         Requested by Eric Blake, for libvirt.
12188
12189 2011-04-05  Bruce Korb  <bkorb@gnu.org>
12190
12191         bootstrap: compute gnulib_extra_files after updating build_aux
12192         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
12193         change build_aux or also supply gnulib_extra_files.  Handle correctly.
12194
12195 2011-04-05  Eric Blake  <eblake@redhat.com>
12196
12197         bootstrap: preserve git whitelist item sorting
12198         * build-aux/bootstrap (sort_patterns): New function.
12199         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
12200
12201 2011-04-05  Simon Josefsson  <simon@josefsson.org>
12202
12203         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
12204         sc_space_tab check.
12205
12206 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
12207
12208         areadlink, areadlinkat: rewrite in terms of careadlinkat
12209         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
12210         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
12211         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
12212         (malloc, realloc): Remove #undefs.
12213         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
12214         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
12215         readlink, ssize_t, stdint, unistd.
12216         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
12217         areadlink, stdint.
12218
12219         careadlinkat: new module
12220         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
12221         * modules/careadlinkat: New files, written by me with
12222         a review and feedback from Ben Pfaff in
12223         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
12224
12225 2011-04-01  Bruno Haible  <bruno@clisp.org>
12226
12227         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
12228         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
12229         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
12230         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
12231         Reported by Bruce Korb <bruce.korb@gmail.com>.
12232
12233 2011-04-01  Bruno Haible  <bruno@clisp.org>
12234
12235         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
12236         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
12237         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
12238         * modules/wcpcpy (Depends-on): Add extensions.
12239         * modules/wcpncpy (Depends-on): Likewise.
12240         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
12241         systems.
12242         * doc/posix-functions/wcpncpy.texi: Likewise.
12243         * doc/posix-functions/wcwidth.texi: Likewise.
12244
12245 2011-03-31  Eric Blake  <eblake@redhat.com>
12246
12247         nonblocking: fix mingw test failures
12248         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
12249         non-blocking flag on regular file.
12250         (get_nonblocking_flag): Set errno on invalid fd.
12251         * tests/test-nonblocking.c (main): Avoid test failure on
12252         directories if fchdir is not active.
12253         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
12254
12255 2011-03-31  Bruno Haible  <bruno@clisp.org>
12256
12257         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
12258         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
12259         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
12260         Reported by Simon Josefsson <simon@josefsson.org>.
12261
12262 2011-03-31  Bruno Haible  <bruno@clisp.org>
12263         and Eric Blake  <eblake@redhat.com>
12264
12265         nonblocking: new module
12266         * modules/nonblocking: New module.
12267         * modules/nonblocking-tests: Likewise.
12268         * lib/nonblocking.h: New file.
12269         * lib/nonblocking.c: Likewise.
12270         * tests/test-nonblocking.c: New test.
12271         * lib/ioctl.c (ioctl) [mingw]: Update comment.
12272
12273 2011-03-30  Bruno Haible  <bruno@clisp.org>
12274
12275         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
12276         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
12277         instead of 'printf' format for GCC >= 4.4.
12278         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
12279         (fprintf, printf, vfprintf, vprintf): Declare with
12280         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
12281         the system's vfprintf() function.
12282         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
12283
12284 2011-03-30  Eric Blake  <eblake@redhat.com>
12285
12286         passfd: fix scoping bug
12287         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
12288         before sendmsg/recvmsg.
12289
12290         passfd: standardize coding conventions
12291         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
12292         can be learned at compile time.
12293         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
12294         ifdefs.
12295         (sendfd, recvfd): Follow gnulib code conventions.
12296
12297         passfd: fix incorrect sendmsg arguments
12298         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
12299         incorrect msg_controllen value.
12300         * modules/passfd-tests (Depends-on): Check for alarm.
12301         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
12302         Reported by Bastien ROUCARIES.
12303
12304 2011-03-30  Bruno Haible  <bruno@clisp.org>
12305
12306         c-strcasestr: Relicense under LGPLv2+.
12307         * modules/c-strcasestr (License): Change to LGPLv2+.
12308         Requested by Eric Blake, for libvirt.
12309
12310 2011-03-30  Simon Josefsson  <simon@josefsson.org>
12311
12312         * users.txt: Add libidn2.  Fix libtasn1 link.
12313
12314 2011-03-30  Jim Meyering  <meyering@redhat.com>
12315
12316         tests: readlink* ("",... fails with EINVAL on newer kernels
12317         readlink and readlinkat have typically failed with ENOENT for
12318         the invalid, empty file name,  "".  However, with the advent
12319         of linux-2.6.39, they fail with EINVAL.
12320         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
12321         when operating on the empty file name.
12322         * tests/test-readlink.h (test_readlink): Likewise.
12323
12324 2011-03-29  Bruno Haible  <bruno@clisp.org>
12325
12326         Relicense some modules under LGPLv2+, for libidn2.
12327         * modules/array-mergesort (License): Change to LGPLv2+.
12328         * modules/c-strcaseeq (License): Likewise.
12329         * modules/striconveh (License): Likewise.
12330         * modules/striconveha (License): Likewise.
12331         * modules/uniconv/base (License): Likewise.
12332         * modules/uniconv/u8-conv-from-enc (License): Likewise.
12333         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
12334         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
12335         * modules/unictype/base (License): Likewise.
12336         * modules/unictype/bidiclass-of (License): Likewise.
12337         * modules/unictype/category-M (License): Likewise.
12338         * modules/unictype/category-none (License): Likewise.
12339         * modules/unictype/category-of (License): Likewise.
12340         * modules/unictype/category-test (License): Likewise.
12341         * modules/unictype/category-test-withtable (License): Likewise.
12342         * modules/unictype/combining-class (License): Likewise.
12343         * modules/unictype/joiningtype-of (License): Likewise.
12344         * modules/unictype/scripts (License): Likewise.
12345         * modules/uninorm/base (License): Likewise.
12346         * modules/uninorm/canonical-decomposition (License): Likewise.
12347         * modules/uninorm/composition (License): Likewise.
12348         * modules/uninorm/decompose-internal (License): Likewise.
12349         * modules/uninorm/decomposition-table (License): Likewise.
12350         * modules/uninorm/nfc (License): Likewise.
12351         * modules/uninorm/nfd (License): Likewise.
12352         * modules/uninorm/u32-normalize (License): Likewise.
12353         * modules/unistr/base (License): Likewise.
12354         * modules/unistr/u32-cpy (License): Likewise.
12355         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
12356         * modules/unistr/u32-to-u8 (License): Likewise.
12357         * modules/unistr/u32-uctomb (License): Likewise.
12358         * modules/unistr/u8-check (License): Likewise.
12359         * modules/unistr/u8-mblen (License): Likewise.
12360         * modules/unistr/u8-mbtouc (License): Likewise.
12361         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
12362         * modules/unistr/u8-mbtoucr (License): Likewise.
12363         * modules/unistr/u8-prev (License): Likewise.
12364         * modules/unistr/u8-strlen (License): Likewise.
12365         * modules/unistr/u8-to-u32 (License): Likewise.
12366         * modules/unistr/u8-uctomb (License): Likewise.
12367         * modules/unitypes (License): Likewise.
12368         Requested by Simon Josefsson.
12369
12370 2011-03-29  Simon Josefsson  <simon@josefsson.org>
12371
12372         lib-symbol-visibility: Add a notice.
12373         * modules/lib-symbol-visibility (Notice): New field.
12374
12375 2011-03-29  Bruno Haible  <bruno@clisp.org>
12376
12377         getaddrinfo: Doc fix.
12378         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
12379         section "fixed in Gnulib".
12380
12381 2011-03-28  Simon Josefsson  <simon@josefsson.org>
12382
12383         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
12384         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
12385
12386 2011-03-26  Bruno Haible  <bruno@clisp.org>
12387
12388         unictype/property-byname: Reduce the number of load-time relocations.
12389         * lib/unictype/pr_byname.c: Include <stdlib.h>.
12390         (UC_PROPERTY_INDEX_*): New enumeration values.
12391         (uc_property_byname): Convert an index from the lookup table to an
12392         uc_property_t.
12393         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
12394         values.
12395
12396 2011-03-26  Bruno Haible  <bruno@clisp.org>
12397
12398         unictype/property-byname: Allow omitted word separators and aliases.
12399         * lib/unictype/pr_byname.gperf: Add property names without word
12400         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
12401         for 'space'.
12402
12403 2011-03-26  Bruno Haible  <bruno@clisp.org>
12404
12405         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
12406         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
12407         also hyphens to space.
12408         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
12409         without spaces.
12410         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
12411
12412 2011-03-26  Bruno Haible  <bruno@clisp.org>
12413
12414         unictype/joiningtype-byname: Recognize long names as well.
12415         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
12416         a long name.
12417         * lib/unictype/joiningtype_byname.c: Include <string.h>,
12418         unictype/joiningtype_byname.h.
12419         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
12420         * lib/unictype/joiningtype_byname.gperf: New file.
12421         * modules/unictype/joiningtype-byname (Files): Add
12422         lib/unictype/joiningtype_byname.gperf.
12423         (Depends-on): Add gperf.
12424         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
12425         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
12426         long names.
12427
12428         Tests for module 'unictype/joiningtype-longname'.
12429         * modules/unictype/joiningtype-longname-tests: New file.
12430         * tests/unictype/test-joiningtype_longname.c: New file.
12431
12432         New module 'unictype/joiningtype-longname'.
12433         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
12434         * lib/unictype/joiningtype_longname.c: New file.
12435         * modules/unictype/joiningtype-longname: New file.
12436         * modules/unictype/joiningtype-all (Depends-on): Add
12437         unictype/joiningtype-longname.
12438
12439 2011-03-26  Bruno Haible  <bruno@clisp.org>
12440
12441         unictype/bidiclass-byname: Recognize long names as well.
12442         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
12443         name.
12444         * lib/unictype/bidi_byname.c: Include <string.h>,
12445         unictype/bidi_byname.h.
12446         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
12447         * lib/unictype/bidi_byname.gperf: New file.
12448         * modules/unictype/bidiclass-byname (Files): Add
12449         lib/unictype/bidi_byname.gperf.
12450         (Depends-on): Add gperf.
12451         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
12452         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
12453         long names.
12454
12455         Tests for module 'unictype/bidiclass-longname'.
12456         * modules/unictype/bidiclass-longname-tests: New file.
12457         * tests/unictype/test-bidi_longname.c: New file.
12458
12459         New module 'unictype/bidiclass-longname'.
12460         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
12461         * lib/unictype/bidi_longname.c: New file.
12462         * modules/unictype/bidiclass-longname: New file.
12463         * modules/unictype/bidiclass-all (Depends-on): Add
12464         unictype/bidiclass-longname.
12465
12466 2011-03-26  Bruno Haible  <bruno@clisp.org>
12467
12468         unictype/bidi*: Rename modules.
12469         * modules/unictype/bidiclass-all: Renamed from
12470         modules/unictype/bidicategory-all.
12471         * modules/unictype/bidiclass-name: Renamed from
12472         modules/unictype/bidiclass-name.
12473         (Description): Update.
12474         * modules/unictype/bidiclass-name-tests: Renamed from
12475         modules/unictype/bidicategory-name-tests.
12476         * modules/unictype/bidiclass-byname: Renamed from
12477         modules/unictype/bidicategory-byname.
12478         (Description): Update.
12479         * modules/unictype/bidiclass-byname-tests: Renamed from
12480         modules/unictype/bidicategory-byname-tests.
12481         * modules/unictype/bidiclass-of: Renamed from
12482         modules/unictype/bidicategory-of.
12483         (Description): Update.
12484         * modules/unictype/bidiclass-of-tests: Renamed from
12485         modules/unictype/bidicategory-of-tests.
12486         * modules/unictype/bidiclass-test: Renamed from
12487         modules/unictype/bidicategory-test.
12488         (Description): Update.
12489         * modules/unictype/bidiclass-test-tests: Renamed from
12490         modules/unictype/bidicategory-test-tests.
12491         * modules/unictype/bidicategory-all: New file, a simple redirection.
12492         * modules/unictype/bidicategory-name: Likewise.
12493         * modules/unictype/bidicategory-byname: Likewise.
12494         * modules/unictype/bidicategory-of: Likewise.
12495         * modules/unictype/bidicategory-test: Likewise.
12496         * modules/unictype/property-bidi-* (Dependencies): Update.
12497         * lib/unictype/bidi_*.c: Update comment.
12498
12499 2011-03-26  Bruno Haible  <bruno@clisp.org>
12500
12501         unictype/bidi*: Rename functions, part 2.
12502         * modules/unictype/bidicategory-name (configure.ac): Update required
12503         libunistring version.
12504         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
12505
12506 2011-03-25  Bruno Haible  <bruno@clisp.org>
12507
12508         New module 'unictype/combining-class-all'.
12509         * modules/unictype/combining-class-all: New file.
12510
12511         Tests for module 'unictype/combining-class-byname'.
12512         * modules/unictype/combining-class-byname-tests: New file.
12513         * tests/unictype/test-combiningclass_byname.c: New file.
12514
12515         New module 'unictype/combining-class-byname'.
12516         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
12517         * lib/unictype/combiningclass_byname.c: New file.
12518         * lib/unictype/combiningclass_byname.gperf: New file.
12519         * modules/unictype/combining-class-byname: New file.
12520
12521         Tests for module 'unictype/combining-class-longname'.
12522         * modules/unictype/combining-class-longname-tests: New file.
12523         * tests/unictype/test-combiningclass_longname.c: New file.
12524
12525         New module 'unictype/combining-class-longname'.
12526         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
12527         * lib/unictype/combiningclass_longname.c: New file.
12528         * modules/unictype/combining-class-longname: New file.
12529
12530         Tests for module 'unictype/combining-class-name'.
12531         * modules/unictype/combining-class-name-tests: New file.
12532         * tests/unictype/test-combiningclass_name.c: New file.
12533
12534         New module 'unictype/combining-class-name'.
12535         * lib/unictype.in.h (uc_combining_class_name): New declaration.
12536         * lib/unictype/combiningclass_name.c: New file.
12537         * modules/unictype/combining-class-name: New file.
12538
12539 2011-03-25  Bruno Haible  <bruno@clisp.org>
12540
12541         unictype/combining-class: Rename source files.
12542         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
12543         of unictype/combining.h.
12544         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
12545         Update.
12546         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
12547         * modules/unictype/combining-class (Description): Fix.
12548         (Files, Makefile.am): Update.
12549         * tests/unictype/test-combiningclass.c: Renamed from
12550         tests/unictype/test-combining.c.
12551         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
12552
12553 2011-03-25  Bruno Haible  <bruno@clisp.org>
12554
12555         unictype: Update list of canonical combining classes.
12556         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
12557
12558 2011-03-25  Bruno Haible  <bruno@clisp.org>
12559
12560         unictype/category-byname: Recognize long names as well.
12561         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
12562         a long name.
12563         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
12564         unictype/categ_byname.h.
12565         (UC_CATEGORY_INDEX_*): New enumeration values.
12566         (uc_general_category_byname): Use uc_general_category_lookup and
12567         convert from index to value.
12568         * lib/unictype/categ_byname.gperf: New file.
12569         * modules/unictype/category-byname (Files): Add
12570         lib/unictype/categ_byname.gperf.
12571         (Depends-on): Add gperf.
12572         (Makefile.am): Add rule for generating unictype/categ_byname.h.
12573         * tests/unictype/test-categ_byname.c (main): Test the recognition of
12574         long names.
12575
12576         Tests for module 'unictype/category-longname'.
12577         * modules/unictype/category-longname-tests: New file.
12578         * tests/unictype/test-categ_longname.c: New file.
12579
12580         New module 'unictype/category-longname'.
12581         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
12582         * lib/unictype/categ_longname.c: New file.
12583         * modules/unictype/category-longname: New file.
12584         * modules/unictype/category-all (Depends-on): Add it.
12585
12586 2011-03-25  Bruno Haible  <bruno@clisp.org>
12587
12588         Tests for module 'unictype/category-LC'.
12589         * modules/unictype/category-LC-tests: New file.
12590         * tests/unictype/test-categ_LC.c: New file, automatically generated.
12591
12592         New module 'unictype/category-LC'.
12593         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
12594         (UC_CATEGORY_LC): New declaration.
12595         (UC_CASED_LETTER): New macro.
12596         * lib/gen-uni-tables.c (is_category_LC): New function.
12597         (output_categories): Also handle category LC.
12598         (UC_CATEGORY_MASK_LC): New enumeration value.
12599         (general_category_byname): Also handle category LC.
12600         * lib/unictype/categ_LC.c: New file.
12601         * lib/unictype/categ_LC.h: New file, automatically generated.
12602         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
12603         category LC.
12604         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
12605         * modules/unictype/category-LC: New file.
12606         * modules/unictype/category-byname (Depends-on): Add
12607         unictype/category-LC.
12608         * modules/unictype/category-all (Depends-on): Likewise.
12609
12610 2011-03-25  Eric Blake  <eblake@redhat.com>
12611
12612         xmalloc: revert yesterday's regression
12613         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
12614         realloc's underlying behavior (allowing allocation of zero-size
12615         objects, especially if malloc-gnu is also in use).
12616
12617 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
12618
12619         maint.mk: add missing version to VC-tag
12620         * top/maint.mk: git tag was missing actual tag name; add it.
12621
12622         valgrind: do leak checking, and exit with code 1 on error (not 0)
12623         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
12624         to VALGRIND.
12625
12626 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
12627
12628         posix-modules: say what it does.
12629         * posix-modules: Add a line to the --help output saying what it does.
12630
12631 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
12632
12633         xmalloc: Do not leak if underlying realloc is C99 compatible.
12634         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
12635         This avoids a leak on C99-based systems.  See
12636         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
12637
12638 2011-03-24  Eric Blake  <eblake@redhat.com>
12639
12640         realloc: document portability problem
12641         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
12642         passing 0 size to realloc.
12643
12644 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
12645
12646         doc: update users.txt
12647         * users.txt: Add cvsps, tmpwatch
12648
12649 2011-03-23  Matt Rice  <ratmice@gmail.com>
12650
12651         doc: update users.txt
12652         * users.txt: Add gdb.
12653
12654 2011-03-23  Jim Meyering  <meyering@redhat.com>
12655
12656         doc: update users.txt
12657         Looking through matches up to the following URL (there are still
12658         several more pages), I found several projects that use gnulib:
12659         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
12660         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
12661         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
12662
12663 2011-03-22  Bruno Haible  <bruno@clisp.org>
12664
12665         unictype/bidi*: Rename functions.
12666         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
12667         uc_bidi_class, uc_is_bidi_class): New declarations.
12668         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
12669         uc_bidi_category_byname.
12670         (uc_bidi_category_byname): New function.
12671         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
12672         u_bidi_category_name.
12673         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
12674         (uc_bidi_category_name): New function.
12675         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
12676         uc_bidi_category.
12677         (uc_bidi_category): New function.
12678         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
12679         uc_is_bidi_category. Invoke uc_bidi_class.
12680         (uc_is_bidi_category): New function.
12681         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
12682         instead of uc_bidi_category_byname.
12683         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
12684         instead of uc_bidi_category_name.
12685         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
12686         uc_bidi_category.
12687         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
12688         instead of uc_is_bidi_category.
12689
12690 2011-03-21  Bruno Haible  <bruno@clisp.org>
12691
12692         New module 'unictype/joininggroup-all'.
12693         * modules/unictype/joininggroup-all: New file.
12694
12695         Tests for module 'unictype/joininggroup-of'.
12696         * modules/unictype/joininggroup-of-tests: New file.
12697         * tests/unictype/test-joininggroup_of.c: New file.
12698         * tests/unictype/test-joininggroup_of.h: New file, automatically
12699         generated by gen-uni-tables.
12700
12701         New module 'unictype/joininggroup-of'.
12702         * modules/unictype/joininggroup-of: New file.
12703         * lib/unictype/joininggroup_of.c: New file.
12704         * lib/unictype/joininggroup_of.h: New file, automatically generated by
12705         gen-uni-tables.
12706
12707         Tests for module 'unictype/joininggroup-byname'.
12708         * modules/unictype/joininggroup-byname-tests: New file.
12709         * tests/unictype/test-joininggroup_byname.c: New file.
12710
12711         New module 'unictype/joininggroup-byname'.
12712         * modules/unictype/joininggroup-byname: New file.
12713         * lib/unictype/joininggroup_byname.c: New file.
12714         * lib/unictype/joininggroup_byname.gperf: New file.
12715
12716         Tests for module 'unictype/joininggroup-name'.
12717         * modules/unictype/joininggroup-name-tests: New file.
12718         * tests/unictype/test-joininggroup_name.c: New file.
12719
12720         New module 'unictype/joininggroup-name'.
12721         * modules/unictype/joininggroup-name: New file.
12722         * lib/unictype/joininggroup_name.c: New file.
12723         * lib/unictype/joininggroup_name.h: New file.
12724
12725         New module 'unictype/joiningtype-all'.
12726         * modules/unictype/joiningtype-all: New file.
12727
12728         Tests for module 'unictype/joiningtype-of'.
12729         * modules/unictype/joiningtype-of-tests: New file.
12730         * tests/unictype/test-joiningtype_of.c: New file.
12731         * tests/unictype/test-joiningtype_of.h: New file, automatically
12732         generated by gen-uni-tables.
12733
12734         New module 'unictype/joiningtype-of'.
12735         * modules/unictype/joiningtype-of: New file.
12736         * lib/unictype/joiningtype_of.c: New file.
12737         * lib/unictype/joiningtype_of.h: New file, automatically generated by
12738         gen-uni-tables.
12739
12740         Tests for module 'unictype/joiningtype-byname'.
12741         * modules/unictype/joiningtype-byname-tests: New file.
12742         * tests/unictype/test-joiningtype_byname.c: New file.
12743
12744         New module 'unictype/joiningtype-byname'.
12745         * modules/unictype/joiningtype-byname: New file.
12746         * lib/unictype/joiningtype_byname.c: New file.
12747
12748         Tests for module 'unictype/joiningtype-name'.
12749         * modules/unictype/joiningtype-name-tests: New file.
12750         * tests/unictype/test-joiningtype_name.c: New file.
12751
12752         New module 'unictype/joiningtype-name'.
12753         * modules/unictype/joiningtype-name: New file.
12754         * lib/unictype/joiningtype_name.c: New file.
12755
12756         unictype: Add support for Arabic shaping properties.
12757         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
12758         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
12759         declarations.
12760         (UC_JOINING_GROUP_*): New enumeration values.
12761         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
12762         declarations.
12763         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
12764         (unicode_joining_type): New variable.
12765         (UC_JOINING_GROUP_*): New enumeration values.
12766         (unicode_joining_group): New variable.
12767         (fill_arabicshaping, joining_type_as_c_identifier,
12768         output_joining_type_test, output_joining_type,
12769         joining_group_as_c_identifier, output_joining_group_test,
12770         output_joining_group): New functions.
12771         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
12772         fill_arabicshaping and output_joining_type_test, output_joining_type,
12773         output_joining_group_test, output_joining_group.
12774         Reported by Simon Josefsson.
12775
12776 2011-03-21  Jim Meyering  <meyering@redhat.com>
12777
12778         strftime: fix a bug in yesterday's change
12779         * lib/strftime.c (add): Accommodate width's initial value of -1.
12780         Otherwise, nstrftime would copy uninitialized data into
12781         the result buffer.
12782
12783 2011-03-21  Jim Meyering  <meyering@redhat.com>
12784
12785         tests: add strftime-tests module
12786         * tests/test-strftime.c: New file.
12787         * modules/strftime-tests: New module.
12788
12789 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
12790
12791         strftime: don't assume a byte count fits in 'int'
12792         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
12793         found this problem by static analysis, using gcc -Wstrict-overflow
12794         (GCC 4.5.2, x86-64).  This reported an optimization that depended
12795         on an integer overflow having undefined behavior, but it turns out
12796         that the argument is a size, which might not fit in 'int' anyway,
12797
12798 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
12799
12800         stdio: don't require ignore_value around fwrite
12801
12802         This patch works around libc bug 11959
12803         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
12804         Without this patch, applications must often write
12805         ignore_value (fwrite (...)) even though the ignore_value is
12806         not helpful here.  It's common to write many objects, using
12807         fwrite/printf/etc., and then use ferror to detect output error.
12808
12809         I considered making this patch optional, but decided against it,
12810         because libc is obviously being inconsistent here: there is no
12811         reason libc should insist that user code must inspect fwrite
12812         return's value without also insisting that it inspect printf's,
12813         putchar's, etc.  If user code wants to have a strict style where
12814         all these functions' values are checked (so that ferror need not
12815         be checked), we could add support for that style in a new gnulib
12816         module, but in the meantime it's better to be consistent and to
12817         support common usage.
12818
12819         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
12820         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
12821         that we are compiling in checking mode, and if not C++, and
12822         if not already wrapping fwrite for some other reason.
12823         (fwrite): #define to rpl_fwrite if the latter is defined.
12824
12825 2011-03-20  Bruno Haible  <bruno@clisp.org>
12826
12827         verror: Fix compilation error introduced on 2011-02-13.
12828         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
12829         instead of __attribute__.
12830         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12831
12832 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
12833             Bruno Haible  <bruno@clisp.org>
12834
12835         socklen: do not depend on sys_socket
12836         While trying to modify Emacs to use gnulib's socklen module,
12837         I discovered a circular dependency: socklen depends on sys_socket
12838         and vice versa.  Emacs can use socklen, but it does not need
12839         sys_socket because it has its own substitute for sys/socket.h.
12840         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
12841         gl_TYPE_SOCKLEN_T.
12842         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
12843         gl_PREREQ_SYS_H_SOCKET.
12844         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
12845         gl_PREREQ_SYS_H_SOCKET.
12846         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
12847         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
12848         * modules/socklen (Depends-on): Do not depend on sys_socket.
12849         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
12850
12851 2011-03-20  Jim Meyering  <meyering@redhat.com>
12852
12853         maint.mk: sort file names *after* new transformation
12854         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
12855         prefix would have led to an unwarranted failure in GNU parted.
12856         Sort after that transformation.
12857
12858 2011-03-19  Jim Meyering  <meyering@redhat.com>
12859
12860         maint.mk: fix po-file syntax-check rule
12861         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
12862         Patch by Bruno Haible.
12863
12864 2011-03-19  Bruno Haible  <bruno@clisp.org>
12865
12866         socklen: Update comment.
12867         * m4/socklen.m4: Update comment about platforms.
12868
12869 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
12870             Bruno Haible  <bruno@clisp.org>
12871
12872         inet_ntop, inet_pton: Simplify.
12873         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
12874         documented to provide socklen_t and we already depend on sys_socket.
12875         * modules/inet_pton (Depends-on): Likewise.
12876         * lib/arpa_inet.in.h: Adjust comment.
12877
12878 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
12879             Bruno Haible  <bruno@clisp.org>
12880
12881         netdb: Simplify.
12882         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
12883         documented to provide socklen_t and we already depend on sys_socket.
12884         * lib/netdb.in.h: Adjust comment.
12885
12886 2011-03-19  Bruno Haible  <bruno@clisp.org>
12887
12888         sys_socket, netdb: Document problem with socklen_t.
12889         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
12890         platforms.
12891         * doc/posix-headers/netdb.texi: Likewise.
12892
12893 2011-03-18  Eric Blake  <eblake@redhat.com>
12894
12895         maint.mk: let po check work in VPATH build
12896         * top/maint.mk (po_file): Allow cfg.mk override.
12897         (sc_po_check): Allow VPATH use.
12898         Reported by Jiri Denemark.
12899
12900 2011-03-16  Jim Meyering  <meyering@redhat.com>
12901
12902         maint.mk: allow fine-grained syntax-check exclusion via Make variables
12903         Before, you would have had to create one .x-sc_ file per rule in order
12904         to exempt offending files.  Now, you may instead use a Make variable --
12905         usually defined in cfg.mk -- whose name identifies the affected rule.
12906         * top/maint.mk (_sc_excl): Define.
12907         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
12908         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
12909
12910 2011-03-13  Bruno Haible  <bruno@clisp.org>
12911
12912         ignore-value tests: Avoid warnings.
12913         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
12914         empty for gcc < 3.4.
12915
12916 2011-03-13  Bruno Haible  <bruno@clisp.org>
12917
12918         passfd: Fix link error on Solaris.
12919         * modules/passfd (Description): Correct.
12920         (Depends-on): Add socketlib.
12921         (Link): New section.
12922         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
12923
12924 2011-03-13  Bruno Haible  <bruno@clisp.org>
12925
12926         passfd: Fix link error on AIX 5.2.
12927         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
12928
12929 2011-03-13  Bruno Haible  <bruno@clisp.org>
12930
12931         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
12932         * lib/sys_socket.in.h: Include <stddef.h>.
12933         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
12934         CMSG_FIRSTHDR. Remove unused variable.
12935
12936 2011-03-13  Bruno Haible  <bruno@clisp.org>
12937
12938         passfd: Fix compilation error on OpenBSD.
12939         * lib/passfd.c: Include <sys/uio.h>.
12940
12941 2011-03-13  Bruno Haible  <bruno@clisp.org>
12942
12943         passfd test: Fix warnings.
12944         * tests/test-passfd.c: Include <sys/wait.h>.
12945         (main): Fix typo.
12946
12947 2011-03-13  Bruno Haible  <bruno@clisp.org>
12948
12949         passfd module, part 4, tweaks.
12950         * tests/test-passfd.c: Reorder includes.
12951         (main): Fix perror and printf calls.
12952
12953 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
12954
12955         passfd module, part 4.
12956         * modules/passfd-tests: New file.
12957         * tests/test-passfd.c: New file.
12958
12959 2011-03-13  Jim Meyering  <meyering@redhat.com>
12960
12961         Makefile: rely on GNU make; derive syntax-check rule names
12962         Rather than requiring that each sc_ rule be listed as a dependent
12963         of "check", use features of GNU make to derive the list.
12964         * Makefile (syntax-check-rules): Define.
12965         (check): Depend on the new variable, not the hard-coded list.
12966
12967 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
12968             Bruno Haible  <bruno@clisp.org>
12969
12970         passfd module, part 3.
12971         * lib/passfd.h (recvfd): Add a flags argument.
12972         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
12973         (recvfd): Add a flags argument.
12974         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
12975         exists.
12976         * modules/passfd (Depends-on): Add cloexec.
12977         Suggested by Eric Blake.
12978
12979 2011-03-13  Bruno Haible  <bruno@clisp.org>
12980
12981         passfd module, part 2, tweaks.
12982         * modules/passfd (Files): Reorder.
12983         (Depends-on): Remove errno.
12984         (Include): Remove <sys/socket.h>, <sys/un.h>.
12985         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
12986         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
12987         specification header. Include <sys/socket.h> always. Don't include
12988         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
12989         (sendfd): Clarify that it sets errno when it fails.
12990         (recvfd): Fix specification.
12991
12992 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
12993
12994         passfd module, part 2.
12995         * modules/passfd: New file.
12996         * lib/passfd.h: New file.
12997         * lib/passfd.c: New file.
12998
12999 2011-03-12  Bruno Haible  <bruno@clisp.org>
13000
13001         wcswidth, mbswidth: Avoid integer overflow.
13002         * lib/wcswidth.c: Include <limits.h>.
13003         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
13004         * lib/mbswidth.c: Include <limits.h>.
13005         (mbsnwidth): Avoid 'int' overflow.
13006         Reported by Jim Meyering.
13007
13008 2011-03-12  Bruno Haible  <bruno@clisp.org>
13009
13010         futimens, utimensat: Avoid endless recursion on Solaris 10.
13011         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
13012         Solaris.
13013         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
13014         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
13015
13016 2011-03-11  Jim Meyering  <meyering@redhat.com>
13017
13018         maint.mk: relax a regexp to accommodate other formatting styles
13019         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
13020         between "ngettext" and the following "(".
13021
13022 2011-03-11  Pádraig Brady <P@draigBrady.com>
13023
13024         maint.mk: suppress a false positive warning
13025         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
13026         diagnostics are marked with ngettext.
13027
13028 2011-03-10  Eric Blake  <eblake@redhat.com>
13029
13030         wchar: add explicit dependencies, for Tru64
13031         * modules/mbmemcasecoll (Depends-on): Add wchar.
13032         * modules/mbtowc (Depends-on): Likewise.
13033         * modules/vasnprintf (Depends-on): Likewise.
13034         * modules/unistdio/u-printf-args (Depends-on): Likewise.
13035         * modules/wctomb (Depends-on): Likewise.
13036         Reported by Peter O'Gorman.
13037
13038 2011-03-08  Bruno Haible  <bruno@clisp.org>
13039
13040         passfd module, part 1, tweaks.
13041         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
13042         Improve indentation. Improve AC_MSG_CHECKING messages.
13043         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
13044         gl_SOCKET_FAMILIES.
13045
13046 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
13047
13048         passfd module, part 1.
13049         * m4/afunix.m4: New file.
13050         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
13051         sockets.
13052
13053 2011-03-08  Bruno Haible  <bruno@clisp.org>
13054
13055         regex-quote: New API.
13056         * lib/regex-quote.h: Include <stdbool.h>.
13057         (struct regex_quote_spec): New type.
13058         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
13059         New declarations.
13060         (regex_quote_length, regex_quote_copy, regex_quote): Take a
13061         'const struct regex_quote_spec *' argument.
13062         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
13063         (pcre_special): New constant.
13064         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
13065         New functions.
13066         (regex_quote_length, regex_quote_copy, regex_quote): Take a
13067         'const struct regex_quote_spec *' argument.
13068         * modules/regex-quote (Depends-on): Add stdbool.
13069         * tests/test-regex-quote.c (check): Update for new API. Add test for
13070         anchored results.
13071         * NEWS: Mention the API change.
13072         Reported by Reuben Thomas and Eric Blake.
13073
13074 2011-03-06  Bruno Haible  <bruno@clisp.org>
13075
13076         regex-quote: Fix creation of POSIX extended regular expressions.
13077         * lib/regex-quote.c (ere_special): Add grouping and alternation
13078         operators.
13079
13080 2011-03-05  Bruno Haible  <bruno@clisp.org>
13081
13082         doc: Improve doc regarding autopoint vs. gnulib.
13083         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
13084         disable autopoint while running autoreconf.
13085         Suggested by Ralf Wildenhues.
13086
13087 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13088
13089         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
13090         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
13091
13092 2011-03-03  Bruce Korb  <bkorb@gnu.org>
13093
13094         parse-duration: remove xalloc.h dependency
13095         * lib/parse-duration.c (parse_period): handle NULL return from
13096         strdup instead of calling xstrdup().
13097         * modules/parse-duration: remove "xalloc" dependency
13098
13099 2011-03-03  Matthew Booth  <mbooth@redhat.com>
13100
13101         bootstrap: honor m4_base when running aclocal
13102         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
13103
13104 2011-03-02  Jim Meyering  <meyering@redhat.com>
13105
13106         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
13107         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
13108         on request from Matt Booth.
13109
13110 2011-03-01  Eric Blake  <eblake@redhat.com>
13111
13112         test-link: work on Hurd
13113         * tests/test-link.h (test_link): Hurd rejects linking directories
13114         with EISDIR instead of the POSIX-mandated EPERM.
13115
13116 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
13117
13118         stdio: simplify by moving files to printf-posix, sigpipe
13119         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
13120         since this symbol is needed only if printf is replaced.
13121         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
13122         Require gl_ASM_SYMBOL_PREFIX.
13123         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
13124         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
13125         (Depends-on): Add 'raise'.
13126         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
13127         * modules/stdio (Files): Remove lib/stdio-write.c,
13128         m4/asm-underscore.m4.
13129         (Depends-on): Remove 'raise'.
13130
13131         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
13132         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
13133         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
13134         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
13135
13136 2011-02-28  Bruno Haible  <bruno@clisp.org>
13137
13138         localcharset: Assume ANSI C behaviour of free().
13139         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
13140         calling free().
13141         Suggested by Simon Josefsson <simon@josefsson.org>.
13142
13143 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
13144             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
13145             Bruno Haible  <bruno@clisp.org>  (tiny change)
13146
13147         On Cygwin, use /proc file system instead of win32 API.
13148         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
13149         Win32 file names.
13150         (DllMain): Simplify by removing Cygwin specific code.
13151         (find_shared_library_fullname): Use Linux specific implementation also
13152         for Cygwin.
13153         (get_shared_library_fullname): Update accordingly.
13154         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
13155         Win32 file names.
13156         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
13157         Cygwin specific code.
13158
13159 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
13160             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
13161
13162         Fix OpenMP flag detection for various Fortran compilers.
13163         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
13164         OpenMP-conditional compilation construct, to force compile
13165         failure with missing OpenMP flag.
13166         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
13167
13168 2011-02-25  Eric Blake  <eblake@redhat.com>
13169
13170         strstr: expand test coverage
13171         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
13172         compilation.
13173         * tests/test-memmem.c (main): Duplicate tests.
13174         * tests/test-strcasestr.c (main): Likewise.
13175         * tests/test-c-strcasestr.c (main): Likewise.
13176
13177 2011-02-25  Jim Meyering  <meyering@redhat.com>
13178
13179         maint.mk: detect missing-NL-at-EOF, too
13180         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
13181         it also detects when a file lacks a newline at EOF.
13182         (require_exactly_one_NL_at_EOF_): Renamed from
13183         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
13184         since people may well have .x-sc_... file names tied to the
13185         existing name.  Suggested by Eric Blake.
13186
13187 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
13188
13189         dirname: move m4/dos.m4 functionality into lib/dosname.h
13190
13191         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
13192         extracts symbols from it, puts them into config.h; but it's much
13193         easier to use the symbols directly.  filename.h already does this,
13194         but it disagrees with dos.m4 in some respects.  This patch
13195         introduces a different include file dosname.h that packages up
13196         dos.m4, and then later we can work on merging filename.h and
13197         dosname.h.  Applications that need only the easy-to-configure
13198         symbols should consider including dosname.h rather than dirname.h.
13199         * NEWS: Mention incompatible changes.
13200         * m4/dos.m4: Remove.
13201         * lib/dosname.h, modules/dosname: New files.
13202         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
13203         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
13204         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
13205         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
13206         Include dosname.h, not dirname.h.
13207         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
13208         Include dosname.h, for definitions of symbols like ISSLASH
13209         that used to be in config.h.
13210         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
13211         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
13212         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
13213         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
13214         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
13215         * modules/rmdir (Files): Likewise.
13216         * modules/stat (Files): Likewise.
13217         * modules/unlink (Files): Likewise.
13218         * modules/dirname-lgpl (Depends-on): Add dosname.
13219         * modules/lstat (Depends-on): Likewise.
13220         * modules/openat (Depends-on): Likewise.
13221         * modules/rmdir (Depends-on): Likewise.
13222         * modules/savewd (Depends-on): Likewise.
13223         * modules/stat (Depends-on): Likewise.
13224         * modules/unlink (Depends-on): Likewise.
13225         * modules/openat (Depends-on): Remove dirname-lgpl.
13226         * modules/savewd (Depends-on): Likewise.
13227         * tests/test-dirname.c: Do not use removed symbols like
13228         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
13229         the remaining symbols, e.g., ISSLASH ('\\').
13230
13231 2011-02-25  Eric Blake  <eblake@redhat.com>
13232
13233         strstr: revert patches that introduced bug and pessimization
13234         * lib/str-two-way.h: Add another reference.
13235         (two_way_short_needle, two_way_long_needle): Revert changes from
13236         2011-02-24; they pessimize search speed.
13237         (critical_factorization): Partially revert changes from
13238         2010-06-22; they violate the requirement that the left half of the
13239         needle be smaller than the period of the needle.
13240
13241 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
13242
13243         filenamecat: remove unnecessary dependency on dirname-lgpl
13244         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
13245         is no direct dependency, just an indirect one via filenamecat-lgpl.
13246
13247         remove: remove unnecessary use of m4/dos.m4
13248         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
13249         * modules/remove (FILES): Remove m4/dos.m4.
13250
13251         * lib/openat-proc.c: Don't include dirname.h; not needed.
13252
13253         backupfile: remove unnecessary use of m4/dos.m4
13254         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
13255         of its symbols are used by the backupfile code.  backupfile.c does
13256         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
13257         for the rare case of programs that want all their backup file
13258         names to live within 8+3 limits, and dos.m4 doesn't address that.
13259         * modules/backupfile (Files): Remove m4/dos.m4.
13260
13261 2011-02-24  Jim Meyering  <meyering@redhat.com>
13262
13263         strstr: fix a bug whereby strstr would mistakenly return NULL
13264         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
13265         in period calculation.
13266         (two_way_long_needle): Likewise.
13267         The original problem was reported by Mike Stump in
13268         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
13269         Ralf Wildenhues provided the short needle and haystack.
13270         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
13271         Add a more involved test to trigger the bug in two_way_long_needle.
13272
13273 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
13274
13275         gnulib-tool: remove use of bold display in help screen
13276         * gnulib-tool (func_usage): Do not use bold display anymore in the
13277         help screen.  That was just meant to be a temporary emphasis for a
13278         backward-incompatible change.
13279
13280 2011-02-23  Bruno Haible  <bruno@clisp.org>
13281
13282         Fix misindentation of preprocessor directives.
13283         * lib/argp-namefrob.h: Reindent preprocessor directives.
13284         * lib/getopt_int.h (struct _getopt_data): Likewise.
13285         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
13286         * lib/vasnprintf.c (decode_long_double): Likewise.
13287         * tests/test-argmatch.c: Insert blank lines, for clarity.
13288         * tests/test-exclude.c: Likewise.
13289
13290 2011-02-22  Bruno Haible  <bruno@clisp.org>
13291
13292         ioctl: Fix for MacOS X in 64-bit mode.
13293         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
13294         value.
13295         Suggested by Eric Blake.
13296         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
13297
13298 2011-02-22  Jim Meyering  <meyering@redhat.com>
13299
13300         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
13301         * Makefile (sc_cpp_indent_check): Don't limit the check to files
13302         in lib/.
13303
13304 2011-02-22  Eric Blake  <eblake@redhat.com>
13305
13306         maint: avoid any CDPATH issue
13307         * Makefile (sc_cpp_indent_check): Anchor cd argument.
13308
13309         maint: adjust cpp indentation for my modules, as well
13310         * Makefile (sc_cpp_indent_check): Add my name.
13311         * lib/fbufmode.c: Filter through cppi.
13312         * lib/fpurge.c: Likewise.
13313         * lib/freadable.c: Likewise.
13314         * lib/freading.c: Likewise.
13315         * lib/fwritable.c: Likewise.
13316         * lib/fwriting.c: Likewise.
13317         * lib/sigaction.c: Likewise.
13318
13319 2011-02-22  Jim Meyering  <meyering@redhat.com>
13320
13321         maint: adjust cpp indentation to reflect nesting depth
13322         I.e., in a block of code that begins with an unnested "#if",
13323         put one space between the "#" in column 1 and following token.
13324         For example,
13325         -#include <sys/vfs.h>
13326         +# include <sys/vfs.h>
13327         Do this only in .c files that are part of a module I maintain.
13328         * lib/linkat.c: Filter through cppi.
13329         * lib/nanosleep.c: Likewise.
13330         * lib/openat.c: Likewise.
13331         * lib/openat-die.c: Likewise.
13332         * lib/dup3.c: Likewise.
13333         * lib/fchownat.c: Likewise.
13334         * lib/flock.c: Likewise.
13335         * lib/fsync.c: Likewise.
13336         * lib/fts.c: Likewise.
13337         * lib/getpass.c: Likewise.
13338         * lib/gettimeofday.c: Likewise.
13339         * lib/userspec.c: Likewise.
13340         * Makefile (sc_cpp_indent_check): New rule, to check this.
13341
13342 2011-02-22  Bruno Haible  <bruno@clisp.org>
13343
13344         New module 'wctomb'.
13345         * lib/stdlib.in.h (wctomb): New declaration.
13346         * lib/wctomb.c: New file.
13347         * lib/wctomb-impl.h: New file.
13348         * m4/wctomb.m4: New file.
13349         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
13350         REPLACE_WCTOMB.
13351         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
13352         REPLACE_WCTOMB.
13353         * modules/wctomb: New file.
13354         * tests/test-stdlib-c++.cc: Test signature of wctomb.
13355         * doc/posix-functions/wctomb.texi: Mention the new module.
13356         * modules/wctob (Depends-on): Add wctomb.
13357
13358 2011-02-22  Bruno Haible  <bruno@clisp.org>
13359
13360         New module 'mbtowc'.
13361         * lib/stdlib.in.h (mbtowc): New declaration.
13362         * lib/mbtowc.c: New file.
13363         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
13364         * m4/mbtowc.m4: New file.
13365         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
13366         REPLACE_MBTOWC.
13367         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
13368         REPLACE_MBTOWC.
13369         * modules/mbtowc: New file.
13370         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
13371         * doc/posix-functions/mbtowc.texi: Mention the new module.
13372         * modules/btowc (Depends-on): Add mbtowc.
13373
13374 2011-02-22  Bruno Haible  <bruno@clisp.org>
13375
13376         wcrtomb: Add more tests for native Windows platforms.
13377         * tests/test-wcrtomb-w32-1.sh: New file.
13378         * tests/test-wcrtomb-w32-2.sh: New file.
13379         * tests/test-wcrtomb-w32-3.sh: New file.
13380         * tests/test-wcrtomb-w32-4.sh: New file.
13381         * tests/test-wcrtomb-w32-5.sh: New file.
13382         * tests/test-wcrtomb-w32.c: New file.
13383         * modules/wcrtomb-tests (Files): Add them.
13384         (Makefile.am): Arrange to run these tests.
13385         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
13386         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
13387
13388 2011-02-20  Bruno Haible  <bruno@clisp.org>
13389
13390         wcrtomb: Enhance test.
13391         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
13392
13393 2011-02-20  Bruno Haible  <bruno@clisp.org>
13394
13395         mbrtowc: Tiny optimization.
13396         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
13397
13398 2011-02-20  Jim Meyering  <meyering@redhat.com>
13399
13400         test-exclude.c: remove unmatched #endif
13401         * tests/test-exclude.c: Remove stray #endif, left over from
13402         the change of a week ago.
13403
13404 2011-02-19  Jim Meyering  <meyering@redhat.com>
13405
13406         git-version-gen: skip "-dirty" check when appropriate
13407         * build-aux/git-version-gen: Don't run any git commands when the
13408         version string comes from .tarball-version.  Prior to this, we
13409         would run git update-index --refresh even from a just-unpacked
13410         tarball directory, and that could affect a .git/ directory in a
13411         parent of the build directory.  Reported by Mike Frysinger.
13412
13413 2011-02-19  Bruno Haible  <bruno@clisp.org>
13414
13415         unictype/property-byname: Reduce the size of the 'data' segment.
13416         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
13417
13418 2011-02-19  Bruno Haible  <bruno@clisp.org>
13419
13420         unictype/scripts: Reduce the size of the 'data' segment.
13421         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
13422         '%pic'.
13423         * lib/unictype/scripts_byname.gperf: Regenerated.
13424
13425 2011-02-19  Bruno Haible  <bruno@clisp.org>
13426
13427         stdint: Update documentation.
13428         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
13429
13430 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
13431
13432         stdint: omit redundant check for wchar.h
13433         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
13434         always tests whether wchar.h exists, so remove the now-redundant test.
13435
13436 2011-02-18  Bruno Haible  <bruno@clisp.org>
13437
13438         stdint: Cut dependency to module 'wchar'.
13439         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
13440         include the necessary prerequisites.
13441         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
13442         * modules/stdint (Depends-on): Remove wchar.
13443         (Makefile.am): Substitute HAVE_WCHAR_H.
13444         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
13445
13446 2011-02-18  Eric Blake  <eblake@redhat.com>
13447
13448         longlong: skip, rather than fail, on cross-compilation
13449         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
13450         when cross-compiling; regression from 2011-02-16.
13451
13452 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
13453
13454         * NEWS: Mention 2011-02-08 change to stdlib.
13455
13456 2011-02-17  Bruno Haible  <bruno@clisp.org>
13457
13458         getloadavg: Add comments about platforms.
13459         * m4/getloadavg.m4: Add comment.
13460         * lib/getloadavg.c: Likewise.
13461
13462 2011-02-17  Bruno Haible  <bruno@clisp.org>
13463
13464         getloadavg: Fix link error on Solaris 2.6.
13465         * modules/getloadavg (Link): New section.
13466         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
13467         linking test-getloadavg.
13468         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
13469         getloadavg.
13470
13471 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
13472
13473         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
13474         It was 'int', but this doesn't match the IRIX 6.5 manual.
13475         Suggested by Bruno Haible in
13476         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
13477
13478 2011-02-17  Bruno Haible  <bruno@clisp.org>
13479
13480         havelib: Fix comments.
13481         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
13482         change.
13483
13484 2011-02-17  Bruno Haible  <bruno@clisp.org>
13485
13486         havelib: Update config.rpath.
13487         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
13488
13489 2011-02-17  Bruno Haible  <bruno@clisp.org>
13490
13491         getloadavg test: Add some plausibility checks.
13492         * tests/test-getloadavg.c (check_avg): Print a warning when the value
13493         is improbable.
13494
13495 2011-02-16  Eric Blake  <eblake@redhat.com>
13496
13497         maintainer-makefile: make syntax-check a no-op from tarballs
13498         * top/maint.mk (no-vc-detected): New rule.
13499         (local-checks-available): Use it to avoid hanging if someone tries
13500         'make syntax-check' from a tarball.  Also append to any non-syntax
13501         checks already defined in cfg.mk.
13502
13503 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
13504
13505         longlong: tune, particularly for common case of c99
13506
13507         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
13508         or running anything if c99, or if unsigned long long int does not
13509         work.  In either case, we know the answer without further tests.
13510         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
13511         it at most once, and use its results for both long long int and
13512         unsigned long long int.  This is more likely to be efficient in
13513         the common case where the program wants to check for both long
13514         long int and unsigned long long int.
13515         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
13516         since the answer is already known.
13517
13518 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
13519
13520         getloadavg: set errno
13521         * lib/getloadavg.c: Set errno when returning -1.  If no other
13522         error number looks appropriate, set it to ENOSYS if the getloadavg
13523         looks like it can't possibly ever work, ENOTSUP otherwise.
13524         Suggested by Bruno Haible in
13525         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
13526
13527         getloadavg: trim unused parts and speed up 'configure'
13528         * NEWS: Document this.
13529         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
13530         always compiled if getloadavg is absent.
13531         Move test code to ...
13532         * tests/test-getloadavg.c: New file, containing previous
13533         contents of test from lib/getloadavg.c.  It also contains
13534         suggestions by Bruno Haible in
13535         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
13536         * modules/getloadavg-tests: New file.
13537         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
13538         Do tests in the same order as they're needed for getloadavg.c.
13539         Omit setgid-related tests that generate symbols KMEM_GROUP,
13540         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
13541         Do only the tests that are needed to see whether the system has
13542         getloadavg, moving the other tests into ...
13543         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
13544         NLIST_NAME_UNION; nobody should be using it.  Do not define
13545         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
13546         relevant, as the user of this module shouldn't care how getloadavg
13547         is implemented.
13548
13549         getloadavg: omit unused var
13550         * lib/getloadavg.c (getloadavg): Omit unused local variable.
13551
13552 2011-02-15  Jim Meyering  <meyering@redhat.com>
13553
13554         doc: update users.txt
13555         * users.txt: Update iwhd's URL.
13556
13557 2011-02-13  Bruno Haible  <bruno@clisp.org>
13558
13559         Consistent macro naming for macros that use GCC __attribute__.
13560         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
13561         _ATTRIBUTE_NONNULL_.
13562         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
13563         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
13564         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
13565         ATTRIBUTE_DEPRECATED.
13566         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
13567         ATTRIBUTE_NORETURN.
13568         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
13569         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
13570         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
13571         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
13572         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
13573         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
13574         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
13575         ATTRIBUTE_SENTINEL.
13576         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
13577         ATTRIBUTE_RETURN_CHECK.
13578         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
13579         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
13580         ATTRIBUTE_NORETURN.
13581         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
13582         Reported by Paul Eggert.
13583
13584 2011-02-13  Bruno Haible  <bruno@clisp.org>
13585
13586         Don't interfere with a program's definition of __attribute__.
13587         * lib/argp.h (__attribute__): Remove definition.
13588         (_GL_ATTRIBUTE_FORMAT): New macro.
13589         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
13590         * lib/argp-fmtstream.h (__attribute__): Remove definition.
13591         (_GL_ATTRIBUTE_FORMAT): New macro.
13592         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
13593         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
13594         GCC 3 or newer.
13595         * lib/error.h (__attribute__): Remove definition.
13596         (_GL_ATTRIBUTE_FORMAT): New macro.
13597         (error, error_at_line): Use it.
13598         * lib/hash.h (__attribute__): Remove definition.
13599         (ATTRIBUTE_WUR): Update definition. Define always.
13600         * lib/openat.h (__attribute__): Remove definition.
13601         (ATTRIBUTE_NORETURN): Update definition. Define always.
13602         * lib/sigpipe-die.h (__attribute__): Remove definition.
13603         (ATTRIBUTE_NORETURN): Update definition. Define always.
13604         * lib/vasnprintf.h (__attribute__): Remove definition.
13605         (_GL_ATTRIBUTE_FORMAT): New macro.
13606         (asnprintf, vasnprintf): Use it.
13607         * lib/xalloc.h (__attribute__): Remove definition.
13608         (ATTRIBUTE_NORETURN): Update definition. Define always.
13609         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
13610         * lib/xmemdup0.h (__attribute__): Remove definition.
13611         (ATTRIBUTE_NORETURN): Update definition. Define always.
13612         * lib/xprintf.h (__attribute__): Remove definition.
13613         (_GL_ATTRIBUTE_FORMAT): New macro.
13614         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
13615         * lib/xstrtol.h (__attribute__): Remove definition.
13616         (ATTRIBUTE_NORETURN): Update definition. Define always.
13617         * lib/xvasprintf.h (__attribute__): Remove definition.
13618         (_GL_ATTRIBUTE_FORMAT): New macro.
13619         (xasprintf, xvasprintf): Use it.
13620         * tests/test-argmatch.c (__attribute__): Remove definition.
13621         (ATTRIBUTE_NORETURN): Update definition. Define always.
13622         * tests/test-exclude.c (__attribute__): Remove definition.
13623         (ATTRIBUTE_NORETURN): Update definition. Define always.
13624         Reported by Paul Eggert.
13625
13626 2011-02-13  Bruno Haible  <bruno@clisp.org>
13627
13628         mbrtowc: Add more tests for native Windows platforms.
13629         * tests/test-mbrtowc-w32-1.sh: New file.
13630         * tests/test-mbrtowc-w32-2.sh: New file.
13631         * tests/test-mbrtowc-w32-3.sh: New file.
13632         * tests/test-mbrtowc-w32-4.sh: New file.
13633         * tests/test-mbrtowc-w32-5.sh: New file.
13634         * tests/test-mbrtowc-w32.c: New file.
13635         * modules/mbrtowc-tests (Files): Add them.
13636         (Makefile.am): Arrange to run these tests.
13637         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
13638         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
13639
13640 2011-02-13  Bruno Haible  <bruno@clisp.org>
13641
13642         mbrtowc: Work around native Windows bug.
13643         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
13644         guess when no suitable locale for testing was found.
13645         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
13646
13647 2011-02-13  Bruno Haible  <bruno@clisp.org>
13648
13649         mbsinit: Work around mingw bug.
13650         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
13651         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
13652         Windows.
13653         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
13654
13655 2011-02-13  Bruno Haible  <bruno@clisp.org>
13656
13657         mbsinit: Don't crash for a NULL argument.
13658         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
13659         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
13660
13661 2011-02-13  Bruno Haible  <bruno@clisp.org>
13662
13663         Don't interfere with a program's definition of __attribute__.
13664         * lib/stdio.in.h (__attribute__): Remove definition.
13665         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
13666         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
13667         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
13668         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
13669         * lib/string.in.h (__attribute__): Remove definition.
13670         Reported by Paul Eggert.
13671
13672 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
13673
13674         stdlib: don't get in the way of non-GCC __attribute__
13675         See thread starting at
13676         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
13677         Revert previous stdlib change, installing the following instead:
13678         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
13679         to get in the way of a non-GCC compiler that supports __attribute__.
13680         (_GL_ATTRIBUTE_RETURN): New macro.
13681         (_Exit): Use it instead of __attribute__.
13682
13683 2011-02-12  Bruno Haible  <bruno@clisp.org>
13684
13685         quotearg test: Avoid test failure on mingw.
13686         * tests/test-quotearg.sh: Convert the locale identifier from native
13687         Windows syntax to Unix syntax.
13688
13689 2011-02-12  Bruno Haible  <bruno@clisp.org>
13690
13691         setlocale: Prefer gnulib's override over libintl's override.
13692         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
13693         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
13694         GNULIB_defined_setlocale is set.
13695
13696 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
13697
13698         stdlib: support non-GCC __attribute__
13699
13700         Fix a serious and tricky problem encountered when attempting to
13701         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
13702         5.5, but it crashed due to memory corruption on Solaris 10 with
13703         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
13704         bits that are otherwise zero.  This tagging is optional inside
13705         Emacs but is preferred and is used when __attribute__ ((__aligned
13706         (8))) works, as it does with both recent-enough GCC and with Sun C
13707         5.11.  However, Sun C 5.11 is not GCC and does not #define
13708         __GNUC__ and __GNUC_MINOR__.
13709
13710         When I added the getloadavg module to Emacs, it brought in
13711         stdlib.in.h, which contained this fragment:
13712
13713            #ifndef __attribute__
13714            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
13715            #  define __attribute__(Spec)   /* empty */
13716            # endif
13717            #endif
13718
13719         When files that include <stdlib.h> were compiled with Sun C 5.11,
13720         the above code disabled __attribute__ ((__aligned (8))), which
13721         caused variables to not be properly aligned, which eventually led
13722         to the pointer corruption mentioned above.  (This was a bit hard
13723         to diagnose, unfortunately.)
13724
13725         Several "#define __attribute__(X) /* empty */" code snippets need
13726         to be eradicated from Gnulib to work with non-GCC compilers that
13727         support __attribute__.  The Autoconf way to do this is to test for
13728         each kind of attribute that we want support for, and selectively
13729         enable that in source code.
13730
13731         Fix this problem just for stdlib.h, by adding a test for the
13732         __noreturn__ attribute, and change stdlib.in.h to use that test
13733         when needed.  This technique can be easily generalized to the
13734         other *.in.h files and attributes, and a similar technique can be
13735         used for *.h and *.c files.  This patch is enough to solve the
13736         problem for Emacs + getloadavg, and I thought I'd publish it for
13737         feedback before undertaking further, similar fixes in other
13738         modules.
13739
13740         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
13741         because it's not needed for stdlib.h.  It merely substitutes the
13742         value directly into stdlib.h.  We may well need to #define it, or
13743         similar symbols, for other modules, but it's nice to also have an
13744         option to not #define it for applications like Emacs that do not
13745         need it.
13746
13747         * lib/stdlib.in.h (__attribute__): Do not #define.
13748         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
13749         be defined only if the _Exit module is also used.
13750         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
13751         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
13752         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
13753         platforms.
13754         * modules/_Exit (Files): Add m4/attribute.m4.
13755         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
13756         * m4/attribute.m4: New file.
13757
13758 2011-02-12  Bruno Haible  <bruno@clisp.org>
13759
13760         wcsrtombs: Work around bug on native Windows.
13761         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
13762         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
13763         instead of len.
13764         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
13765
13766 2011-02-12  Bruno Haible  <bruno@clisp.org>
13767
13768         mbsrtowcs: Work around bug on native Windows.
13769         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
13770         against mingw bug.
13771         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
13772
13773 2011-02-12  Bruno Haible  <bruno@clisp.org>
13774
13775         Avoid setlocale bugs in tests.
13776         * modules/btowc (Dependencies): Add setlocale.
13777         * modules/c-strcase (Dependencies): Likewise.
13778         * modules/mbmemcasecmp (Dependencies): Likewise.
13779         * modules/mbmemcasecoll (Dependencies): Likewise.
13780         * modules/mbrtowc (Dependencies): Likewise.
13781         * modules/mbscasecmp (Dependencies): Likewise.
13782         * modules/mbscasestr (Dependencies): Likewise.
13783         * modules/mbschr (Dependencies): Likewise.
13784         * modules/mbscspn (Dependencies): Likewise.
13785         * modules/mbsinit (Dependencies): Likewise.
13786         * modules/mbsncasecmp (Dependencies): Likewise.
13787         * modules/mbsnrtowcs (Dependencies): Likewise.
13788         * modules/mbspbrk (Dependencies): Likewise.
13789         * modules/mbspcasecmp (Dependencies): Likewise.
13790         * modules/mbsrchr (Dependencies): Likewise.
13791         * modules/mbsrtowcs (Dependencies): Likewise.
13792         * modules/mbsspn (Dependencies): Likewise.
13793         * modules/mbsstr (Dependencies): Likewise.
13794         * modules/nl_langinfo (Dependencies): Likewise.
13795         * modules/quotearg (Dependencies): Likewise.
13796         * modules/unicase/locale-language (Dependencies): Likewise.
13797         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
13798         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
13799         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
13800         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
13801         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
13802         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
13803         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
13804         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
13805         * modules/vasnprintf-posix (Dependencies): Likewise.
13806         * modules/wcrtomb (Dependencies): Likewise.
13807         * modules/wcsnrtombs (Dependencies): Likewise.
13808         * modules/wcsrtombs (Dependencies): Likewise.
13809
13810 2011-02-12  Bruno Haible  <bruno@clisp.org>
13811
13812         setlocale: Workaround native Windows bug.
13813         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
13814         succeeds but sets LC_CTYPE to "C", report a failure.
13815         * tests/test-setlocale2.sh: New file.
13816         * tests/test-setlocale2.c: New file.
13817         * modules/setlocale-tests (Files): Add the new files.
13818         (Makefile.am): Enable test-setlocale2.sh test.
13819         * doc/posix-functions/setlocale.texi: Mention workaround.
13820
13821 2011-02-11  Bruno Haible  <bruno@clisp.org>
13822
13823         Tests for module 'setlocale'.
13824         * modules/setlocale-tests: New file.
13825         * tests/test-setlocale1.sh: New file.
13826         * tests/test-setlocale1.c: New file.
13827
13828         New module 'setlocale'.
13829         * lib/locale.in.h (setlocale): New declaration.
13830         * lib/setlocale.c: New file, based on
13831         gettext/gettext-runtime/intl/setlocale.c.
13832         * m4/setlocale.m4: New file.
13833         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
13834         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
13835         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
13836         REPLACE_SETLOCALE.
13837         * modules/setlocale: New file.
13838         * tests/test-locale-c++.cc: Test the declaration of setlocale.
13839         * doc/posix-functions/setlocale.texi: Mention the new module.
13840
13841 2011-02-11  Bruno Haible  <bruno@clisp.org>
13842
13843         Prepare for locale dependent tests on mingw.
13844         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
13845         because it has the wrong locale encoding.
13846         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
13847         French_France.1252 instead of "fr".
13848         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
13849         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
13850         because it has the wrong locale encoding.
13851         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
13852         native Windows, try Turkish_Turkey.65001.
13853         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
13854         Chinese_China.54936.
13855
13856         Prepare for locale dependent tests on mingw.
13857         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
13858         differently.
13859         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
13860         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
13861         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
13862         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
13863
13864 2011-02-11  Eric Blake  <eblake@redhat.com>
13865
13866         strptime: avoid compiler warnings
13867         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
13868         compiler warnings about dead code.
13869         Reported by Daniel P. Berrange.
13870
13871 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
13872
13873         doc: update users.txt
13874         * users.txt: Add rcs.
13875
13876 2011-02-10  John W. Eaton  <jwe@gnu.org>
13877
13878         doc: update users.txt
13879         * users.txt: Add octave.
13880
13881 2011-02-10  Jim Meyering  <meyering@redhat.com>
13882
13883         doc: update users.txt
13884         * users.txt: Add iwhd.
13885
13886 2011-02-09  Bruno Haible  <bruno@clisp.org>
13887
13888         gnulib-tool: Make copyright notice adjustment more robust.
13889         * gnulib-tool (func_import): In sed_transform_main_lib_file,
13890         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
13891         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
13892         License".
13893         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
13894
13895 2011-02-06  Bruno Haible  <bruno@clisp.org>
13896
13897         New module 'towctrans'.
13898         * modules/towctrans: New file.
13899         * lib/wctype.in.h (towctrans): New declaration.
13900         * lib/towctrans.c: New file.
13901         * lib/towctrans-impl.h: New file.
13902         * m4/towctrans.m4: New file.
13903         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
13904         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
13905         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
13906         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
13907         * doc/posix-functions/towctrans.texi: Mention the new module.
13908
13909 2011-02-06  Bruno Haible  <bruno@clisp.org>
13910
13911         New module 'wctrans'.
13912         * modules/wctrans: New file.
13913         * lib/wctype.in.h (wctrans): New declaration.
13914         * lib/wctrans.c: New file.
13915         * lib/wctrans-impl.h: New file.
13916         * m4/wctrans.m4: New file.
13917         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
13918         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
13919         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
13920         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
13921         * doc/posix-functions/wctrans.texi: Mention the new module.
13922
13923 2011-02-06  Bruno Haible  <bruno@clisp.org>
13924
13925         New module 'iswctype'.
13926         * modules/iswctype: New file.
13927         * lib/wctype.in.h (iswctype): New declaration.
13928         * lib/iswctype.c: New file.
13929         * lib/iswctype-impl.h: New file.
13930         * m4/iswctype.m4: New file.
13931         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
13932         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
13933         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
13934         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
13935         * doc/posix-functions/iswctype.texi: Mention the new module and the
13936         HP-UX 11.00 problem.
13937
13938 2011-02-06  Bruno Haible  <bruno@clisp.org>
13939
13940         New module 'wctype'.
13941         * modules/wctype: Change to represent the wctype() substitute.
13942         * lib/wctype.in.h (wctype): New declaration.
13943         * lib/wctype.c: New file.
13944         * lib/wctype-impl.h: New file.
13945         * m4/wctype.m4: New file.
13946         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
13947         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
13948         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
13949         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
13950         * doc/posix-functions/wctype.texi: Mention the new module and the
13951         HP-UX 11.00 problem.
13952
13953 2011-02-06  Bruno Haible  <bruno@clisp.org>
13954
13955         wctype-h: Ensure wctype_t and wctrans_t are defined.
13956         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
13957         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
13958         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
13959         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
13960         HAVE_WCTRANS_T.
13961         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
13962
13963 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
13964
13965         flock: fix license typo
13966
13967         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
13968         omitted.
13969
13970 2011-02-08  Bruno Haible  <bruno@clisp.org>
13971
13972         Split large sed scripts, for HP-UX sed.
13973         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
13974         to avoid HP-UX limit of 99 commands, in the near future.
13975         * modules/stdlib (Makefile.am): Likewise.
13976         * modules/unistd (Makefile.am): Likewise.
13977         * modules/wchar (Makefile.am): Likewise.
13978         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
13979         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
13980         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
13981
13982 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
13983             Bruno Haible  <bruno@clisp.org>
13984
13985         stdlib: improve random_r modularization
13986         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
13987         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
13988         you also need the random_r module to get this material right.
13989         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
13990         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
13991         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
13992
13993 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
13994
13995         stdlib: don't depend on stdint
13996         * lib/stdlib.in.h: Don't include <stdint.h> merely because
13997         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
13998         be independent of whether stdint.h is needed.
13999         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
14000         here, instead of ...
14001         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
14002         struct random_data should be using the random_r module, not just
14003         the stdlib module (which wouldn't make sense: what package needs
14004         just struct random_data without also needing random_r?).
14005         * modules/stdlib (Depends-on): Remove stdint.
14006
14007         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
14008         See the thread rooted at
14009         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
14010         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
14011         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
14012         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
14013         __VMS)); previously it was always included (via fcntl--.h).
14014         (getloadavg): Do not use c_strtod.  Instead, approximate it by
14015         hand; this is good enough for load averages.  Also, do not use
14016         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
14017         flags directly if available and don't bother otherwise.  (Packages
14018         that need the extra reliability should use the modules that define
14019         these flags on older platforms that lack them.)
14020         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
14021         fcntl-safer.
14022
14023 2011-02-08  Jim Meyering  <meyering@redhat.com>
14024
14025         di-set.h, ino-map.h: add multiple-inclusion guard
14026         Technically, the guard is required only for ino-map.h, due to its
14027         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
14028         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
14029         * lib/ino-map.h: Likewise.
14030
14031 2011-02-06  Bruno Haible  <bruno@clisp.org>
14032
14033         iswblank: Ensure declaration on glibc systems.
14034         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
14035         * modules/iswblank (Dependencies): Add 'extensions'.
14036         * doc/posix-functions/iswblank.texi: Document the glibc problem.
14037
14038 2011-02-06  Bruno Haible  <bruno@clisp.org>
14039
14040         New module 'iswblank'.
14041         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
14042         * modules/iswblank: New file.
14043         * modules/wctype-h (Files): Remove lib/iswblank.c.
14044         (Makefile.am): Substitute GNULIB_ISWBLANK.
14045         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
14046         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
14047         (gl_WCTYPE_H_DEFAULTS): New macro.
14048         (gl_WCTYPE_H): Require it. Remove iswblank related code.
14049         * modules/iswblank-tests: New file.
14050         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
14051         * tests/test-wctype-h.c (main): Remove iswblank tests.
14052         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
14053         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
14054         of 'wctype-h'.
14055         * NEWS: Mention the change.
14056         * modules/mbchar (Depends-on): Add iswblank.
14057
14058 2011-02-08  Bruno Haible  <bruno@clisp.org>
14059
14060         di-set tests: Refactor.
14061         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
14062         unnecessary includes.
14063         (ASSERT): Remove macro.
14064         (main): Make C90 compliant by avoiding variable declaration after
14065         statement.
14066         * modules/di-set-tests (Files): Add tests/macros.h.
14067
14068 2011-02-08  Bruno Haible  <bruno@clisp.org>
14069
14070         ino-map tests: Refactor.
14071         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
14072         unnecessary includes.
14073         (ASSERT): Remove macro.
14074         (main): Make C90 compliant by avoiding variable declaration after
14075         statement.
14076         * modules/ino-map-tests (Files): Add tests/macros.h.
14077
14078 2011-02-08  Jim Meyering  <meyering@redhat.com>
14079
14080         di-set: add "const" to a cast
14081         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
14082         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
14083
14084 2011-02-06  Bruno Haible  <bruno@clisp.org>
14085
14086         Rename module 'wctype' to 'wctype-h'.
14087         * modules/wctype-h: Renamed from modules/wctype.
14088         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
14089         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
14090         (Files, Depends-on, Makefile.am): Update.
14091         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
14092         (Files, Makefile.am): Update.
14093         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
14094         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
14095         * doc/posix-headers/wctype.texi: Update.
14096         * doc/posix-functions/iswalnum.texi: Update.
14097         * doc/posix-functions/iswalpha.texi: Update.
14098         * doc/posix-functions/iswblank.texi: Update.
14099         * doc/posix-functions/iswcntrl.texi: Update.
14100         * doc/posix-functions/iswdigit.texi: Update.
14101         * doc/posix-functions/iswgraph.texi: Update.
14102         * doc/posix-functions/iswlower.texi: Update.
14103         * doc/posix-functions/iswprint.texi: Update.
14104         * doc/posix-functions/iswpunct.texi: Update.
14105         * doc/posix-functions/iswspace.texi: Update.
14106         * doc/posix-functions/iswupper.texi: Update.
14107         * doc/posix-functions/iswxdigit.texi: Update.
14108         * doc/posix-functions/towlower.texi: Update.
14109         * doc/posix-functions/towupper.texi: Update.
14110         * NEWS: Mention the change.
14111         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
14112         * modules/mbchar (Dependencies): Likewise.
14113         * modules/mbswidth (Dependencies): Likewise.
14114         * modules/quotearg (Dependencies): Likewise.
14115         * modules/regex (Dependencies): Likewise.
14116         * modules/wcscasecmp (Dependencies): Likewise.
14117         * modules/wcsncasecmp (Dependencies): Likewise.
14118         * modules/wcwidth (Dependencies): Likewise.
14119
14120 2011-02-06  Bruno Haible  <bruno@clisp.org>
14121
14122         New module 'wcswidth'.
14123         * modules/wcswidth: New file.
14124         * lib/wchar.in.h (wcswidth): New declaration.
14125         * lib/wcswidth.c: New file.
14126         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
14127         * m4/wcswidth.m4: New file.
14128         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
14129         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
14130         REPLACE_WCSWIDTH.
14131         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
14132         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
14133         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
14134         * doc/posix-functions/wcswidth.texi: Mention the new module.
14135
14136 2011-02-06  Bruno Haible  <bruno@clisp.org>
14137
14138         New module 'wcstok'.
14139         * modules/wcstok: New file.
14140         * lib/wchar.in.h (wcstok): New declaration.
14141         * lib/wcstok.c: New file.
14142         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
14143         * m4/wcstok.m4: New file.
14144         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
14145         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
14146         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
14147         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
14148         * doc/posix-functions/wcstok.texi: Mention the new module.
14149
14150 2011-02-06  Bruno Haible  <bruno@clisp.org>
14151
14152         New module 'wcsstr'.
14153         * modules/wcsstr: New file.
14154         * lib/wchar.in.h (wcsstr): New declaration.
14155         * lib/wcsstr.c: New file.
14156         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
14157         * m4/wcsstr.m4: New file.
14158         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
14159         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
14160         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
14161         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
14162         * doc/posix-functions/wcsstr.texi: Mention the new module.
14163
14164 2011-02-06  Bruno Haible  <bruno@clisp.org>
14165
14166         New module 'wcspbrk'.
14167         * modules/wcspbrk: New file.
14168         * lib/wchar.in.h (wcspbrk): New declaration.
14169         * lib/wcspbrk.c: New file.
14170         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
14171         * m4/wcspbrk.m4: New file.
14172         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
14173         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
14174         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
14175         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
14176         * doc/posix-functions/wcspbrk.texi: Mention the new module.
14177
14178 2011-02-06  Bruno Haible  <bruno@clisp.org>
14179
14180         New module 'wcsspn'.
14181         * modules/wcsspn: New file.
14182         * lib/wchar.in.h (wcsspn): New declaration.
14183         * lib/wcsspn.c: New file.
14184         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
14185         * m4/wcsspn.m4: New file.
14186         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
14187         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
14188         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
14189         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
14190         * doc/posix-functions/wcsspn.texi: Mention the new module.
14191
14192 2011-02-06  Bruno Haible  <bruno@clisp.org>
14193
14194         New module 'wcscspn'.
14195         * modules/wcscspn: New file.
14196         * lib/wchar.in.h (wcscspn): New declaration.
14197         * lib/wcscspn.c: New file.
14198         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
14199         * m4/wcscspn.m4: New file.
14200         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
14201         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
14202         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
14203         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
14204         * doc/posix-functions/wcscspn.texi: Mention the new module.
14205
14206 2011-02-06  Bruno Haible  <bruno@clisp.org>
14207
14208         New module 'wcsrchr'.
14209         * modules/wcsrchr: New file.
14210         * lib/wchar.in.h (wcsrchr): New declaration.
14211         * lib/wcsrchr.c: New file.
14212         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
14213         * m4/wcsrchr.m4: New file.
14214         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
14215         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
14216         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
14217         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
14218         * doc/posix-functions/wcsrchr.texi: Mention the new module.
14219
14220 2011-02-06  Bruno Haible  <bruno@clisp.org>
14221
14222         New module 'wcschr'.
14223         * modules/wcschr: New file.
14224         * lib/wchar.in.h (wcschr): New declaration.
14225         * lib/wcschr.c: New file.
14226         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
14227         * m4/wcschr.m4: New file.
14228         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
14229         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
14230         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
14231         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
14232         * doc/posix-functions/wcschr.texi: Mention the new module.
14233
14234 2011-02-06  Bruno Haible  <bruno@clisp.org>
14235
14236         New module 'wcsdup'.
14237         * modules/wcsdup: New file.
14238         * lib/wchar.in.h (wcsdup): New declaration.
14239         * lib/wcsdup.c: New file.
14240         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
14241         * m4/wcsdup.m4: New file.
14242         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
14243         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
14244         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
14245         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
14246         * doc/posix-functions/wcsdup.texi: Mention the new module.
14247
14248 2011-02-06  Bruno Haible  <bruno@clisp.org>
14249
14250         New module 'wcsxfrm'.
14251         * modules/wcsxfrm: New file.
14252         * lib/wchar.in.h (wcsxfrm): New declaration.
14253         * lib/wcsxfrm.c: New file.
14254         * lib/wcsxfrm-impl.h: New file.
14255         * m4/wcsxfrm.m4: New file.
14256         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
14257         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
14258         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
14259         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
14260         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
14261
14262 2011-02-06  Bruno Haible  <bruno@clisp.org>
14263
14264         New module 'wcscoll'.
14265         * modules/wcscoll: New file.
14266         * lib/wchar.in.h (wcscoll): New declaration.
14267         * lib/wcscoll.c: New file.
14268         * lib/wcscoll-impl.h: New file.
14269         * m4/wcscoll.m4: New file.
14270         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
14271         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
14272         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
14273         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
14274         * doc/posix-functions/wcscoll.texi: Mention the new module.
14275
14276 2011-02-06  Bruno Haible  <bruno@clisp.org>
14277
14278         New module 'wcsncasecmp'.
14279         * modules/wcsncasecmp: New file.
14280         * lib/wchar.in.h (wcsncasecmp): New declaration.
14281         * lib/wcsncasecmp.c: New file.
14282         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
14283         * m4/wcsncasecmp.m4: New file.
14284         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
14285         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
14286         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
14287         HAVE_WCSNCASECMP.
14288         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
14289         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
14290
14291 2011-02-06  Bruno Haible  <bruno@clisp.org>
14292
14293         New module 'wcscasecmp'.
14294         * modules/wcscasecmp: New file.
14295         * lib/wchar.in.h (wcscasecmp): New declaration.
14296         * lib/wcscasecmp.c: New file.
14297         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
14298         * m4/wcscasecmp.m4: New file.
14299         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
14300         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
14301         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
14302         HAVE_WCSCASECMP.
14303         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
14304         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
14305
14306 2011-02-05  Bruno Haible  <bruno@clisp.org>
14307
14308         New module 'wcsncmp'.
14309         * modules/wcsncmp: New file.
14310         * lib/wchar.in.h (wcsncmp): New declaration.
14311         * lib/wcsncmp.c: New file.
14312         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
14313         * m4/wcsncmp.m4: New file.
14314         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
14315         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
14316         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
14317         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
14318         * doc/posix-functions/wcsncmp.texi: Mention the new module.
14319
14320 2011-02-05  Bruno Haible  <bruno@clisp.org>
14321
14322         New module 'wcscmp'.
14323         * modules/wcscmp: New file.
14324         * lib/wchar.in.h (wcscmp): New declaration.
14325         * lib/wcscmp.c: New file.
14326         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
14327         * m4/wcscmp.m4: New file.
14328         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
14329         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
14330         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
14331         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
14332         * doc/posix-functions/wcscmp.texi: Mention the new module.
14333
14334 2011-02-05  Bruno Haible  <bruno@clisp.org>
14335
14336         New module 'wcsncat'.
14337         * modules/wcsncat: New file.
14338         * lib/wchar.in.h (wcsncat): New declaration.
14339         * lib/wcsncat.c: New file.
14340         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
14341         * m4/wcsncat.m4: New file.
14342         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
14343         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
14344         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
14345         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
14346         * doc/posix-functions/wcsncat.texi: Mention the new module.
14347
14348 2011-02-05  Bruno Haible  <bruno@clisp.org>
14349
14350         New module 'wcscat'.
14351         * modules/wcscat: New file.
14352         * lib/wchar.in.h (wcscat): New declaration.
14353         * lib/wcscat.c: New file.
14354         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
14355         * m4/wcscat.m4: New file.
14356         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
14357         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
14358         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
14359         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
14360         * doc/posix-functions/wcscat.texi: Mention the new module.
14361
14362 2011-02-05  Bruno Haible  <bruno@clisp.org>
14363
14364         New module 'wcpncpy'.
14365         * modules/wcpncpy: New file.
14366         * lib/wchar.in.h (wcpncpy): New declaration.
14367         * lib/wcpncpy.c: New file.
14368         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
14369         * m4/wcpncpy.m4: New file.
14370         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
14371         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
14372         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
14373         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
14374         * doc/posix-functions/wcpncpy.texi: Mention the new module.
14375
14376 2011-02-05  Bruno Haible  <bruno@clisp.org>
14377
14378         New module 'wcsncpy'.
14379         * modules/wcsncpy: New file.
14380         * lib/wchar.in.h (wcsncpy): New declaration.
14381         * lib/wcsncpy.c: New file.
14382         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
14383         * m4/wcsncpy.m4: New file.
14384         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
14385         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
14386         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
14387         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
14388         * doc/posix-functions/wcsncpy.texi: Mention the new module.
14389
14390 2011-02-05  Bruno Haible  <bruno@clisp.org>
14391
14392         New module 'wcpcpy'.
14393         * modules/wcpcpy: New file.
14394         * lib/wchar.in.h (wcpcpy): New declaration.
14395         * lib/wcpcpy.c: New file.
14396         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
14397         * m4/wcpcpy.m4: New file.
14398         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
14399         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
14400         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
14401         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
14402         * doc/posix-functions/wcpcpy.texi: Mention the new module.
14403
14404 2011-02-05  Bruno Haible  <bruno@clisp.org>
14405
14406         New module 'wcscpy'.
14407         * modules/wcscpy: New file.
14408         * lib/wchar.in.h (wcscpy): New declaration.
14409         * lib/wcscpy.c: New file.
14410         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
14411         * m4/wcscpy.m4: New file.
14412         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
14413         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
14414         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
14415         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
14416         * doc/posix-functions/wcscpy.texi: Mention the new module.
14417
14418 2011-02-05  Bruno Haible  <bruno@clisp.org>
14419
14420         New module 'wcsnlen'.
14421         * modules/wcsnlen: New file.
14422         * lib/wchar.in.h (wcsnlen): New declaration.
14423         * lib/wcsnlen.c: New file.
14424         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
14425         * m4/wcsnlen.m4: New file.
14426         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
14427         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
14428         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
14429         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
14430         * doc/posix-functions/wcsnlen.texi: Mention the new module.
14431
14432 2011-02-05  Bruno Haible  <bruno@clisp.org>
14433
14434         New module 'wcslen'.
14435         * modules/wcslen: New file.
14436         * lib/wchar.in.h (wcslen): New declaration.
14437         * lib/wcslen.c: New file.
14438         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
14439         * m4/wcslen.m4: New file.
14440         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
14441         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
14442         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
14443         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
14444         * doc/posix-functions/wcslen.texi: Mention the new module.
14445
14446 2011-02-05  Bruno Haible  <bruno@clisp.org>
14447
14448         New module 'wmemset'.
14449         * modules/wmemset: New file.
14450         * lib/wchar.in.h (wmemset): New declaration.
14451         * lib/wmemset.c: New file.
14452         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
14453         * m4/wmemset.m4: New file.
14454         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
14455         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
14456         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
14457         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
14458         * doc/posix-functions/wmemset.texi: Mention the new module.
14459
14460 2011-02-05  Bruno Haible  <bruno@clisp.org>
14461
14462         New module 'wmemmove'.
14463         * modules/wmemmove: New file.
14464         * lib/wchar.in.h (wmemmove): New declaration.
14465         * lib/wmemmove.c: New file.
14466         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
14467         * m4/wmemmove.m4: New file.
14468         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
14469         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
14470         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
14471         HAVE_WMEMMOVE.
14472         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
14473         * doc/posix-functions/wmemmove.texi: Mention the new module.
14474
14475 2011-02-05  Bruno Haible  <bruno@clisp.org>
14476
14477         New module 'wmemcpy'.
14478         * modules/wmemcpy: New file.
14479         * lib/wchar.in.h (wmemcpy): New declaration.
14480         * lib/wmemcpy.c: New file.
14481         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
14482         * m4/wmemcpy.m4: New file.
14483         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
14484         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
14485         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
14486         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
14487         * doc/posix-functions/wmemcpy.texi: Mention the new module.
14488
14489 2011-02-05  Bruno Haible  <bruno@clisp.org>
14490
14491         New module 'wmemcmp'.
14492         * modules/wmemcmp: New file.
14493         * lib/wchar.in.h (wmemcmp): New declaration.
14494         * lib/wmemcmp.c: New file.
14495         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
14496         * m4/wmemcmp.m4: New file.
14497         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
14498         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
14499         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
14500         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
14501         * doc/posix-functions/wmemcmp.texi: Mention the new module.
14502
14503 2011-02-07  Jim Meyering  <meyering@redhat.com>
14504
14505         di-set, ino-map: new modules, from coreutils
14506         * lib/di-set.c: New file.
14507         * lib/di-set.h: Likewise.
14508         * lib/ino-map.c: Likewise.
14509         * lib/ino-map.h: Likewise.
14510         * modules/di-set: Likewise.
14511         * modules/di-set-tests: Likewise.
14512         * modules/ino-map: Likewise.
14513         * modules/ino-map-tests: Likewise.
14514         * tests/test-di-set.c: Likewise.
14515         * tests/test-ino-map.c: Likewise.
14516
14517 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
14518
14519         getloadavg: merge minor changes from Emacs
14520
14521         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
14522         (getloadavg): Use memset, not bzero.
14523
14524         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
14525         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
14526         clash (bug#86).
14527
14528 2010-11-14  Bruno Haible  <bruno@clisp.org>
14529
14530         Allow multiple gnulib generated replacements to coexist.
14531         * lib/getopt.in.h (struct option): Avoid identical redefinition.
14532         * lib/inttypes.in.h (imaxdiv_t): Likewise.
14533         * lib/langinfo.in.h (nl_item): Likewise.
14534         * lib/math.in.h (_NaN, NAN): Likewise.
14535         * lib/netdb.in.h (struct addrinfo): Likewise.
14536         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
14537         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
14538         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
14539         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
14540         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
14541         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
14542         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
14543         pthread_mutexattr_init, pthread_mutexattr_settype,
14544         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
14545         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
14546         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
14547         pthread_spin_trylock, pthread_spin_unlock): Likewise.
14548         * lib/sched.in.h (struct sched_param): Likewise.
14549         * lib/se-selinux.in.h (security_class_t, security_context_t,
14550         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
14551         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
14552         lsetfilecon, fsetfilecon, security_check_context,
14553         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
14554         Likewise.
14555         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
14556         Likewise.
14557         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
14558         _gl_function_taking_int_returning_void_t, union sigval,
14559         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
14560         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
14561         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
14562         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
14563         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
14564         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
14565         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
14566         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
14567         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
14568         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
14569         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
14570         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
14571         socklen_t, rpl_fd_isset): Likewise.
14572         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
14573         * lib/sys_time.in.h (struct timeval): Likewise.
14574         * lib/sys_times.in.h (struct tms): Likewise.
14575         * lib/sys_utsname.in.h (struct utsname):
14576         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
14577         * lib/unistd.in.h (getpagesize): Likewise.
14578         * lib/wchar.in.h (mbstate_t): Likewise.
14579         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
14580         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
14581         towlower, towupper): Likewise.
14582         Reported by Sam Steingold <sds@gnu.org>.
14583
14584 2011-02-05  Eric Blake  <eblake@redhat.com>
14585
14586         unsetenv: work around Haiku issues
14587         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
14588         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
14589
14590 2010-12-30  Bruce Korb  <bkorb@gnu.org>
14591
14592         libposix: avoid calling error() within libposix
14593         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
14594         is defined.
14595
14596 2011-02-05  Eric Blake  <eblake@redhat.com>
14597
14598         strerror_r-posix: port to cygwin
14599         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
14600         implementation.
14601         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
14602         * tests/test-strerror_r.c (main): Fix test.
14603         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
14604         issue.
14605
14606 2011-02-05  Bruno Haible  <bruno@clisp.org>
14607
14608         New module 'wmemchr'.
14609         * modules/wmemchr: New file.
14610         * lib/wchar.in.h (wmemchr): New declaration.
14611         * lib/wmemchr.c: New file.
14612         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
14613         * m4/wmemchr.m4: New file.
14614         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
14615         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
14616         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
14617         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
14618         * doc/posix-functions/wmemchr.texi: Mention the new module.
14619
14620 2011-02-04  Eric Blake  <eblake@redhat.com>
14621
14622         fdopendir: detect FreeBSD bug
14623         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
14624         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
14625
14626 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
14627
14628         stdbool: do not define HAVE_STDBOOL_H
14629         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
14630         AC_HEADER_STDBOOL.  All uses changed.  Do not define
14631         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
14632         imported from the latest Autoconf git.  It was motivated by Emacs,
14633         which uses gnulib but does not need HAVE_STDBOOL_H.
14634
14635 2011-02-04  Bruno Haible  <bruno@clisp.org>
14636
14637         wcsnrtombs: Prepare for new module wwcsnrtombs.
14638         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
14639         * lib/wcsnrtombs.c: Include it.
14640         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
14641
14642         wcsrtombs: Prepare for new module wwcsrtombs.
14643         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
14644         * lib/wcsrtombs.c: Include it.
14645         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
14646
14647         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
14648         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
14649         * lib/mbsnrtowcs.c: Include it.
14650         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
14651
14652         mbsrtowcs: Prepare for new module mbsrtowwcs.
14653         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
14654         * lib/mbsrtowcs.c: Include it.
14655         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
14656
14657 2011-02-04  Bruno Haible  <bruno@clisp.org>
14658
14659         vasnprintf: Reduce use of malloc for small format strings.
14660         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
14661         (arguments): Add room for the first 7 arguments.
14662         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
14663         (char_directives, u8_directives, u16_directives, u32_directives): Add
14664         room for the first 7 directives.
14665         * lib/printf-parse.c: Include <string.h>.
14666         (PRINTF_PARSE): Change memory handling code so that it uses the first
14667         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
14668         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
14669         Reported by Pádraig Brady <P@draigbrady.com>.
14670
14671 2011-01-31  Eric Blake  <eblake@redhat.com>
14672
14673         dup2: work around Haiku bug
14674         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
14675         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
14676         * doc/posix-functions/dup2.texi (dup2): Document the bug.
14677         * tests/test-dup2.c (main): Enhance test.
14678
14679 2011-01-31  Simon Josefsson  <simon@josefsson.org>
14680
14681         doc: off_t is not available in eglibc 2.11.2 stdio.h.
14682         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
14683         declared by eglibc 2.11.2.
14684         * lib/stdio.in.h: Likewise.
14685
14686 2011-01-31  Eric Blake  <eblake@redhat.com>
14687
14688         ignore-value: add missing test dependency
14689         * tests/test-ignore-value.c: Revert previous change; stdio.h
14690         provides off_t.
14691         * modules/ignore-value-tests (Depends-on): Add missing dependency.
14692
14693 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
14694
14695         mktime: clarify long_int width checking
14696         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
14697         the top level, to make it clearer that the assumption about
14698         long_int width is being checked.  See
14699         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
14700
14701 2011-01-30  Simon Josefsson  <simon@josefsson.org>
14702
14703         ignore-value: Fix self-test.
14704         * tests/test-ignore-value.c: Include sys/types.h for off_t.
14705
14706 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
14707
14708         TYPE_MAXIMUM: avoid theoretically undefined behavior
14709         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
14710         negative number, which the C Standard says has undefined behavior.
14711         In practice this is not a problem, but might as well do it by the book.
14712         Reported by Rich Felker and Eric Blake; see
14713         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
14714         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
14715         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
14716         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
14717         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
14718         * m4/stdint.m4 (gl_STDINT_H): Likewise.
14719         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
14720
14721         mktime: #undef mktime before #defining it
14722         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
14723
14724         mktime: systematically normalize tm_isdst comparisons
14725         * lib/mktime.c (isdst_differ): New function.
14726         (__mktime_internal): Use it systematically for all isdst comparisons.
14727         This completes the fix for libc BZ #6723, and removes the need for
14728         normalizing tm_isdst.  See
14729         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
14730         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
14731
14732         mktime: fix some integer overflow issues and sidestep the rest
14733
14734         This was prompted by a bug report by Benjamin Lindner for MinGW
14735         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
14736         His bug is due to signed integer overflow (0 - INT_MIN), and I
14737         I scanned through mktime.c looking for other integer overflow
14738         problems, fixing all the bugs I found.
14739
14740         Although the C Standard says the resulting code is still not safe
14741         in the presence of integer overflow, in practice it should be good
14742         enough for all real-world two's-complement implementations, except
14743         for debugging environments that deliberately trap on integer
14744         overflow (e.g., gcc -ftrapv).
14745
14746         * lib/mktime.c (WRAPV): New macro.
14747         (SHR): Also check that long_int and time_t shift right in the
14748         usual way, before using the fast-but-unportable method.
14749         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
14750         used.  The code already assumed two's complement, so there's
14751         no need to test for alternatives.  All uses removed.
14752         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
14753         the C standard.  Problem reported by Rich Felker in
14754         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
14755         (twos_complement_arithmetic): Also check long_int and time_t.
14756         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
14757         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
14758         (__mktime_internal): Avoid integer overflow with unary subtraction
14759         in two instances where -1 - X is an adequate replacement for -X,
14760         since the calculations are approximate.
14761
14762 2011-01-29  Eric Blake  <eblake@redhat.com>
14763
14764         mktime: avoid infinite loop
14765         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
14766         type; behavior is still undefined but portable to all known targets.
14767         Reported by Rich Felker.
14768
14769 2011-01-29  Simon Josefsson  <simon@josefsson.org>
14770
14771         rename, unlink, same-inode: Relicense.
14772         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
14773         * modules/unlink (License): Likewise.
14774         * modules/same-inode (License): Likewise.
14775
14776 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
14777
14778         mktime: avoid problems on NetBSD 5 / i386
14779         * lib/mktime.c (long_int): New type.  This works around a problem
14780         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
14781         but time_t is 64 bits, and where I expect the existing code is
14782         wrong in some cases.
14783         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
14784         (ydhms_diff): Bring back the compile-time check for wide-enough
14785         year and yday.
14786
14787         mktime: fix misspelling in comment
14788         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
14789         This merges all recent glibc changes of importance.
14790
14791 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14792
14793         move-if-change: cope with concurrent mv of identical file.
14794         * build-aux/move-if-change (CMPPROG): Accept environment
14795         variable as an override for `cmp'.
14796         (usage): Document CMPPROG.
14797         Adjust comparison to drop stdout.  Cope with failure of mv if
14798         the target file exists and is identical to the source, for
14799         parallel builds.
14800         Report from H.J. Lu against binutils in PR binutils/12283.
14801
14802 2011-01-28  Bruce Korb  <bkorb@gnu.org>
14803
14804         * users.txt: Mention sharutils.
14805
14806 2011-01-28  Simon Josefsson  <simon@josefsson.org>
14807
14808         * users.txt: Mention OATH Toolkit.
14809
14810 2011-01-27  Bruno Haible  <bruno@clisp.org>
14811
14812         Prepare for supporting FreeBSD 10.
14813         * build-aux/config.libpath: Remove handling of freebsd1*.
14814
14815 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
14816
14817         Prepare for supporting FreeBSD 10.
14818         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
14819         match FreeBSD 10.0.
14820
14821 2011-01-27  Bruno Haible  <bruno@clisp.org>
14822
14823         vma-iter, get-rusage-as: Add OpenBSD support.
14824         * modules/vma-iter (configure.ac): Test for mquery.
14825         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
14826         * lib/vma-iter.c: Include <sys/mman.h>.
14827         (vma_iterate): Add an implementation based on mquery().
14828         * lib/resource-ext.h (get_rusage_as): Update comments.
14829         * lib/get-rusage-as.c: Likewise.
14830         * lib/get-rusage-data.c: Likewise.
14831
14832 2011-01-26  Karl Berry  <karl@gnu.org>
14833
14834         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
14835         variables to make it easier to override the makeinfo program used.
14836
14837 2011-01-26  Eric Blake  <eblake@redhat.com>
14838
14839         fcntl: work around Haiku F_DUPFD bugs
14840         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
14841         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
14842         cloexec bit on duplication.
14843         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
14844
14845 2011-01-26  Bruno Haible  <bruno@clisp.org>
14846
14847         Enable memory leak tests on AIX.
14848         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
14849         * tests/test-fprintf-posix3.c (main): Likewise.
14850
14851 2011-01-26  Bruno Haible  <bruno@clisp.org>
14852
14853         Tests for module 'get-rusage-data'.
14854         * modules/get-rusage-data-tests: New file.
14855         * tests/test-get-rusage-data.c: New file.
14856
14857         New module 'get-rusage-data'.
14858         * lib/resource-ext.h (get_rusage_data): New declaration.
14859         * lib/get-rusage-data.c: New file.
14860         * modules/get-rusage-data: New file.
14861
14862 2011-01-25  Bruno Haible  <bruno@clisp.org>
14863
14864         get-rusage-as: Allow for easier testing.
14865         * lib/resource-ext.h (get_rusage_as): Add comment.
14866         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
14867         (main): New function for interactive testing.
14868
14869 2011-01-25  Bruno Haible  <bruno@clisp.org>
14870
14871         vma-iter: Treat Haiku like BeOS.
14872         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
14873         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
14874
14875 2011-01-25  Eric Blake  <eblake@redhat.com>
14876
14877         c-stack: fix regression on cygwin when libsigsegv is present
14878         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
14879
14880 2011-01-24  Bruno Haible  <bruno@clisp.org>
14881
14882         vma-iter: Avoid empty intervals.
14883         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
14884         on an empty interval.
14885
14886 2011-01-24  Jim Meyering  <meyering@redhat.com>
14887
14888         u64: remove unnecessary #include
14889         * lib/u64.h: Don't include <stddef.h>.  It was not used.
14890
14891 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
14892
14893         Allow the user to avoid the HAVE_RAW_DECL_* macros.
14894         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
14895
14896 2011-01-23  Bruno Haible  <bruno@clisp.org>
14897
14898         New module 'vma-iter'.
14899         * lib/vma-iter.h: New file.
14900         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
14901         * modules/vma-iter: New file.
14902         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
14903         for get_rusage_as_via_iterator.
14904         (vma_iterate_callback): New function.
14905         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
14906         * modules/get-rusage-as (Depends-on): Add vma-iter.
14907
14908 2011-01-23  Bruno Haible  <bruno@clisp.org>
14909
14910         uninorm: Tweak includes.
14911         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
14912         Reported by Jim Meyering.
14913
14914 2011-01-23  Bruno Haible  <bruno@clisp.org>
14915
14916         get-rusage-as: Improve on NetBSD.
14917         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
14918         /proc, like on FreeBSD.
14919
14920 2011-01-23  Jim Meyering  <meyering@redhat.com>
14921
14922         xreadlink.h: remove unnecessary #include
14923         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
14924
14925         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
14926         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
14927
14928 2011-01-23  Bruno Haible  <bruno@clisp.org>
14929
14930         get-rusage-as: Fix bug.
14931         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
14932         original limit when aborting the first loop.
14933
14934 2011-01-23  Bruno Haible  <bruno@clisp.org>
14935
14936         wctype: Ensure valid C syntax.
14937         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
14938         unconditionally, instead of gl_NEXT_HEADERS conditionally.
14939
14940 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
14941
14942         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
14943         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
14944         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
14945         as they are needed only for configure's test case.
14946         This removes two unnecessary symbols from config.h.
14947
14948         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
14949         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
14950         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
14951         AC_CHECK_HEADERS_ONCE on a header that we also invoke
14952         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
14953         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
14954         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
14955         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
14956         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
14957         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
14958         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
14959         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
14960         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
14961         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
14962         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
14963         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
14964         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
14965         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
14966
14967 2011-01-21  Eric Blake  <eblake@redhat.com>
14968
14969         maintainer-makefile: work with older git for submodule check
14970         * top/maint.mk (public-submodule-commit): Rewrite to avoid
14971         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
14972         Reported by Matthias Bolte.
14973
14974         bootstrap: minor portability fixes
14975         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
14976         (usage): Omit leading capital and trailing . on help phrases, per
14977         GNU Coding Standards.
14978         (check_versions, top level): Prefix messages with script name.
14979
14980 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
14981
14982         bootstrap: support --no-git option
14983         * build-aux/bootstrap: Add --no-git option, to be used when
14984         --gnulib-srcdir points to the exact desired checkout.
14985
14986 2011-01-21  Eric Blake  <eblake@redhat.com>
14987
14988         strerror_r-posix: work with glibc 2.13
14989         * lib/strerror_r.c (strerror_r): Fix return type.
14990
14991 2011-01-21  Pádraig Brady  <P@draigBrady.com>
14992             Bruno Haible  <bruno@clisp.org>
14993
14994         uN_strstr: New unit tests.
14995         * modules/unistr/u8-strstr-tests: New file.
14996         * modules/unistr/u16-strstr-tests: New file.
14997         * modules/unistr/u32-strstr-tests: New file.
14998         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
14999         * tests/unistr/test-u8-strstr.c: New file.
15000         * tests/unistr/test-u16-strstr.c: New file.
15001         * tests/unistr/test-u32-strstr.c: New file.
15002
15003 2011-01-21  Pádraig Brady  <P@draigBrady.com>
15004             Bruno Haible  <bruno@clisp.org>
15005
15006         Make uN_strstr functions O(n) worst-case.
15007         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
15008         16-bit and 32-bit unit cases, use the unibyte algorithm from
15009         lib/mbsstr.c.
15010         * lib/unistr/u8-strstr.c: Include <string.h>.
15011         (UNIT_IS_UINT8_T): New macro.
15012         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
15013         (U_STRLEN, U_STRNLEN): New macros.
15014         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
15015         (U_STRLEN, U_STRNLEN): New macros.
15016         * modules/unistr/u8-strstr (Depends-on): Add strstr.
15017         (configure.ac): Update required libunistring version.
15018         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
15019         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
15020         malloca.
15021         (configure.ac): Update required libunistring version.
15022         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
15023         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
15024         malloca.
15025         (configure.ac): Update required libunistring version.
15026
15027 2011-01-21  Pádraig Brady  <P@draigBrady.com>
15028             Bruno Haible  <bruno@clisp.org>
15029
15030         Prepare for faster uN_strstr functions.
15031         * lib/str-kmp.h: Support definable UNITs.
15032         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
15033         needle_len argument.
15034         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
15035         * lib/mbscasestr.c (mbscasestr): Likewise.
15036
15037 2011-01-21  Pádraig Brady <P@draigBrady.com>
15038
15039         malloca-tests: make faster by unsetting MALLOC_PERTURB_
15040         * tests/test-malloca.c (main): Unset the environment variable
15041         to greatly speed up the test.
15042         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
15043         * modules/malloca-tests: Depend on unsetenv.
15044
15045 2011-01-21  Pádraig Brady <P@draigBrady.com>
15046
15047         ignore-value: remove stdint dependency
15048         * lib/ignore-value.h: Remove <stdint.h>
15049         * modules/ignore-value: Remove stdint dependency.
15050
15051 2011-01-21  Jim Meyering  <meyering@redhat.com>
15052
15053         maint.mk: adjust variable name to be consistent with other gl_ vars
15054         * top/maint.mk (gl_public_submodule_commit): Rename the variable
15055         to be lower case.
15056
15057 2011-01-20  Jim Meyering  <meyering@redhat.com>
15058
15059         maint.mk: make "check" depend on public-submodule-commit by default
15060         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
15061
15062 2011-01-20  Bruno Haible  <bruno@clisp.org>
15063
15064         mbfile, mbiter: Complete change from 2008-12-21.
15065         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
15066         * m4/mbiter.m4 (gl_MBITER): Likewise.
15067
15068 2011-01-20  Jim Meyering  <meyering@redhat.com>
15069
15070         init.sh: insert space between each function name and "()"
15071         * tests/init.sh: Make it a little easier to see that a function's
15072         name is "warn_", and not "warn" when looking at the first part of
15073         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
15074
15075 2011-01-20  Jim Meyering  <meyering@redhat.com>
15076
15077         mountlist: clean up code formatting
15078         * lib/mountlist.c (read_file_system_list): Split a long line,
15079         correct bracing style, use NULL in place of "(struct statfs *)0",
15080         don't parenthesize return value, add spaces around "=" and after
15081         ";-in-for-stmt".
15082
15083 2011-01-14  Markus Duft <mduft@gentoo.org>
15084
15085         mountlist: add support for Interix
15086         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
15087         Apply statvfs to all entries of /dev/fs.
15088         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
15089         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
15090
15091 2011-01-20  Jim Meyering  <meyering@redhat.com>
15092
15093         maint.mk: improve the public-submodule-commit rule
15094         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
15095         to suppress printing of its commands... unless V=1.
15096         Add git submodule's --quiet option to suppress printing of e.g.,
15097         "Entering gnulib" output.
15098         "cd" into $(srcdir) before running git submodule.
15099
15100 2011-01-20  Bruno Haible  <bruno@clisp.org>
15101
15102         include_next: Fix bug introduced on 2011-01-18.
15103         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
15104         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
15105         ac_cv_header_... variable if the second argument is not 'check'.
15106         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
15107         gl_NEXT_HEADERS_INTERNAL.
15108
15109 2011-01-20  Bruno Haible  <bruno@clisp.org>
15110
15111         Allow the user to avoid the GNULIB_TEST_* macros.
15112         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
15113         Suggested by Paul Eggert.
15114
15115 2011-01-14  Jim Meyering  <meyering@redhat.com>
15116
15117         bootstrap: avoid failure when there is no .gitmodules file
15118         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
15119         has been assigned to, even when its value is the empty string.
15120         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
15121         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
15122         Reported by John W. Eaton <jwe@gnu.org>.
15123
15124 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
15125
15126         assume <ctype.h>, ..., <time.h> exist
15127         For years gnulib has been assuming the existence of the headers
15128         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
15129         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
15130         them, since they don't appear to be needed.
15131         * README (Portability guidelines): Document this.
15132         * lib/flock.c: Assume <fcntl.h> exists.
15133         * lib/regex_internal.h: Assume <locale.h> exists.
15134         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
15135         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
15136         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
15137         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
15138         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
15139         * m4/regex.m4 (gl_REGEX): Likewise.
15140         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
15141         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
15142         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
15143         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
15144         * tests/test-argp.c: Likewise.
15145         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
15146
15147         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
15148         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
15149         AA_APPLE_UNIVERSAL_BUILD.  See
15150         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
15151         * NEWS: Document this.
15152
15153 2011-01-19  Eric Blake  <eblake@redhat.com>
15154
15155         c-stack: assume stack overflow if SA_SIGINFO unsupported
15156         * lib/c-stack.c (SIGACTION_WORKS): Rename...
15157         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
15158         sigaction will work.
15159         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
15160         behavior match Linux.
15161         * tests/test-c-stack.c (main): Prefer NULL for pointers.
15162
15163         stdbool-tests: accomodate Haiku
15164         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
15165
15166         binary-io: fix O_TEXT on Haiku
15167         * modules/binary-io (Depends-on): Add fcntl-h.
15168         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
15169         than blindly undefining O_TEXT.
15170         Reported by Scott McCreary.
15171
15172 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
15173
15174         include_next: do not check for standard headers like stddef.h
15175
15176         I found this problem when modifying Emacs to use gnulib.
15177         I noticed that it added HAVE_STDDEF_H to config.h, even though
15178         gnulib always assumes <stddef.h> exists as per README and this
15179         symbol is unnecessary.
15180         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
15181         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
15182         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
15183         faster for headers like stddef.h that are known to exist.
15184         (gl_CHECK_NEXT_HEADERS): Use it.
15185         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
15186         rather than gl_CHECK_NEXT_HEADERS.
15187         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
15188         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
15189
15190 2011-01-18  Eric Blake  <eblake@redhat.com>
15191
15192         ansi-c++-opt: skip C++ dependency style if C++ is unused
15193         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
15194         tests when we know C++ compilation is not desired.
15195         Reported by Scott McCreary.
15196
15197 2011-01-18  Bruno Haible  <bruno@clisp.org>
15198
15199         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
15200         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
15201         (main): Perform test also when getrlimit and setrlimit don't exist or
15202         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
15203         limiting the address space size using setrlimit, compare the address
15204         space size before and after the the test.
15205         * tests/test-dprintf-posix2.c: Likewise.
15206         * tests/test-fprintf-posix3.sh: Update skip messages.
15207         * tests/test-dprintf-posix2.sh: Likewise.
15208         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
15209         * modules/dprintf-posix-tests (Depends-on): Likewise.
15210         Reported by Bruce Korb <bkorb@gnu.org> and
15211         Gary V. Vaughan <gary@gnu.org>.
15212
15213 2011-01-18  Bruno Haible  <bruno@clisp.org>
15214
15215         get-rusage-as: Improvement for Cygwin.
15216         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
15217         areas that are merely reserved.
15218
15219 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
15220
15221         strftime: remove dependencies on multibyte modules
15222
15223         strftime depended on mbrlen, mbsinit, and wchar, but these modules
15224         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
15225         only if __osf__ is defined, and I suspect OSF doesn't need these
15226         other modules.  If my guess is wrong, we'll need to come up with a
15227         variant of strftime that doesn't need the multibyte modules.
15228
15229         I discovered this problem when attempting modify Emacs to use the
15230         strftime module.  With the previous gnulib, this caused Emacs to
15231         need 31 new files, ranging from lib/config.charset to
15232         m4/wint_t.m4.  This was overkill and I expect would be offputting
15233         to the Emacs maintainers.  After this change, only 6 new files are
15234         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
15235         stdbool.m4, and tm_gmtoff.m4.
15236
15237         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
15238         Suggested by Bruno Haible in
15239         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
15240         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
15241         and do not check for wchar.h.
15242         * modules/strftime (Files): Remove m4/mbstate_t.m4.
15243         (Depends-on): Remove mbrlen, mbsinit, wchar.
15244
15245 2011-01-18  Bruno Haible  <bruno@clisp.org>
15246
15247         Tests for module 'get-rusage-as'.
15248         * modules/get-rusage-as-tests: New file.
15249         * tests/test-get-rusage-as.c: New file.
15250
15251         New module 'get-rusage-as'.
15252         * modules/get-rusage-as: New file.
15253         * lib/resource-ext.h: New file.
15254         * lib/get-rusage-as.c: New file.
15255
15256 2011-01-17  Eric Blake  <eblake@redhat.com>
15257
15258         sigaction: relax license from LGPLv3+ to LGPLv2+
15259         * modules/sigaction (License): Relax to LGPLv2+.
15260
15261 2011-01-14  Bruno Haible  <bruno@clisp.org>
15262
15263         filemode: Make function declarations usable in C++ mode.
15264         * lib/filemode.h: Enclose function declarations in extern "C" block.
15265         Reported by John W. Eaton <jwe@gnu.org>.
15266
15267 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
15268
15269         save-cwd: no longer include "xgetcwd.h"
15270         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
15271         This avoids a compilation failure in projects that use save-cwd
15272         without also using the xgetcwd module.
15273
15274 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
15275
15276         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
15277         This is so that a program like Emacs, which needs only dtoastr,
15278         does not have to bother with distributing and compiling ftoastr
15279         and ldtoastr.
15280         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
15281         * modules/dtoastr, modules/ldtoastr: New files.
15282         * modules/ftoastr: Now works just for 'float'.
15283         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
15284         (Makefile.am): Remove ftoastr.h (not needed and no effect),
15285         dtoastr.c, ldtoastr.c.
15286
15287 2011-01-11  Jim Meyering  <meyering@redhat.com>
15288
15289         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
15290         There is no need to work around the lack of the fchdir function,
15291         since gnulib can now provide a replacement when required.
15292         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
15293         * modules/save-cwd (Depends-on): Add fchdir.
15294
15295 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
15296
15297         openat, save-cwd: avoid xmalloc
15298
15299         This removes a direct (but undocumented) dependency of openat on
15300         xalloc, along with an indirect dependency via save-cwd.  It also
15301         removes a dependency of save-cwd on xgetcwd, and thereby
15302         indirectly on xalloc.  This change causes the openat substitute
15303         to fall back on save_cwd when memory is tight, and for save_cwd to
15304         fail instead of dying when memory is tight, but that's good enough.
15305         Problem and initial idea for fix reported by Bastien Roucaries in
15306         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
15307
15308         * lib/openat-proc.c: Include stdlib.h (for malloc), not
15309         xalloc.h (for xmalloc).
15310         (openat_proc_name): Use malloc, not xmalloc.
15311         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
15312         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
15313
15314         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
15315         This avoids heap allocation for file names whose lengths are in
15316         the range 512..1023, with the upper bound increasing to at most
15317         4031 depending on the platform's PATH_MAX.  (We do not want
15318         pathmax.h here as it might supply a non-constant PATH_MAX.)
15319         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
15320         Perhaps they should be moved to malloca.h?
15321         (OPENAT_BUFFER_SIZE): Use them.
15322
15323 2011-01-10  Bruno Haible  <bruno@clisp.org>
15324
15325         doc: Update users.txt.
15326         * users.txt: Add recutils.
15327
15328 2011-01-09  Karl Berry  <karl@gnu.org>
15329
15330         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
15331
15332         * doc/configmake.texi: New file.
15333         * doc/gnulib.texi: Include it.
15334         * modules/configmake: Move documentation from here.
15335
15336 2011-01-09  Bruno Haible  <bruno@clisp.org>
15337
15338         Update to Unicode 6.0.0.
15339         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
15340         (get_lbp): Update for Unicode 6.0.0.
15341         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
15342         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
15343         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
15344         U+11001, U+11038..U+11046. Remove U+06DE.
15345         (uc_width): Fix bounds of planes.
15346         * tests/uniwidth/test-uc_width2.sh: Same updates as in
15347         lib/uniwidth/width.c.
15348         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
15349         trailing whitespace removed.
15350         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
15351         without comments, but with the original copyright notice.
15352         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
15353         * lib/unicase/ignorable.h: Likewise.
15354         * lib/unicase/tocasefold.h: Likewise.
15355         * lib/unicase/tolower.h: Likewise.
15356         * lib/unicase/totitle.h: Likewise.
15357         * lib/unicase/toupper.h: Likewise.
15358         * lib/unictype/bidi_of.h: Likewise.
15359         * lib/unictype/blocks.h: Likewise.
15360         * lib/unictype/categ_C.h: Likewise.
15361         * lib/unictype/categ_Cn.h: Likewise.
15362         * lib/unictype/categ_L.h: Likewise.
15363         * lib/unictype/categ_Ll.h: Likewise.
15364         * lib/unictype/categ_Lm.h: Likewise.
15365         * lib/unictype/categ_Lo.h: Likewise.
15366         * lib/unictype/categ_Lu.h: Likewise.
15367         * lib/unictype/categ_M.h: Likewise.
15368         * lib/unictype/categ_Mc.h: Likewise.
15369         * lib/unictype/categ_Me.h: Likewise.
15370         * lib/unictype/categ_Mn.h: Likewise.
15371         * lib/unictype/categ_N.h: Likewise.
15372         * lib/unictype/categ_Nd.h: Likewise.
15373         * lib/unictype/categ_No.h: Likewise.
15374         * lib/unictype/categ_P.h: Likewise.
15375         * lib/unictype/categ_Po.h: Likewise.
15376         * lib/unictype/categ_S.h: Likewise.
15377         * lib/unictype/categ_Sc.h: Likewise.
15378         * lib/unictype/categ_Sk.h: Likewise.
15379         * lib/unictype/categ_Sm.h: Likewise.
15380         * lib/unictype/categ_So.h: Likewise.
15381         * lib/unictype/categ_of.h: Likewise.
15382         * lib/unictype/combining.h: Likewise.
15383         * lib/unictype/ctype_alnum.h: Likewise.
15384         * lib/unictype/ctype_alpha.h: Likewise.
15385         * lib/unictype/ctype_graph.h: Likewise.
15386         * lib/unictype/ctype_lower.h: Likewise.
15387         * lib/unictype/ctype_print.h: Likewise.
15388         * lib/unictype/ctype_punct.h: Likewise.
15389         * lib/unictype/ctype_upper.h: Likewise.
15390         * lib/unictype/decdigit.h: Likewise.
15391         * lib/unictype/digit.h: Likewise.
15392         * lib/unictype/numeric.h: Likewise.
15393         * lib/unictype/pr_alphabetic.h: Likewise.
15394         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
15395         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
15396         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
15397         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
15398         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
15399         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
15400         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
15401         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
15402         * lib/unictype/pr_case_ignorable.h: Likewise.
15403         * lib/unictype/pr_cased.h: Likewise.
15404         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
15405         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
15406         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
15407         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
15408         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
15409         * lib/unictype/pr_combining.h: Likewise.
15410         * lib/unictype/pr_composite.h: Likewise.
15411         * lib/unictype/pr_currency_symbol.h: Likewise.
15412         * lib/unictype/pr_decimal_digit.h: Likewise.
15413         * lib/unictype/pr_deprecated.h: Likewise.
15414         * lib/unictype/pr_format_control.h: Likewise.
15415         * lib/unictype/pr_grapheme_base.h: Likewise.
15416         * lib/unictype/pr_grapheme_extend.h: Likewise.
15417         * lib/unictype/pr_grapheme_link.h: Likewise.
15418         * lib/unictype/pr_id_continue.h: Likewise.
15419         * lib/unictype/pr_id_start.h: Likewise.
15420         * lib/unictype/pr_ideographic.h: Likewise.
15421         * lib/unictype/pr_lowercase.h: Likewise.
15422         * lib/unictype/pr_math.h: Likewise.
15423         * lib/unictype/pr_numeric.h: Likewise.
15424         * lib/unictype/pr_other_alphabetic.h: Likewise.
15425         * lib/unictype/pr_other_id_continue.h: Likewise.
15426         * lib/unictype/pr_other_math.h: Likewise.
15427         * lib/unictype/pr_punctuation.h: Likewise.
15428         * lib/unictype/pr_sentence_terminal.h: Likewise.
15429         * lib/unictype/pr_terminal_punctuation.h: Likewise.
15430         * lib/unictype/pr_unassigned_code_value.h: Likewise.
15431         * lib/unictype/pr_unified_ideograph.h: Likewise.
15432         * lib/unictype/pr_uppercase.h: Likewise.
15433         * lib/unictype/pr_xid_continue.h: Likewise.
15434         * lib/unictype/pr_xid_start.h: Likewise.
15435         * lib/unictype/scripts.h: Likewise.
15436         * lib/unictype/scripts_byname.gperf: Likewise.
15437         * lib/unictype/sy_java_ident.h: Likewise.
15438         * lib/unigbrk/gbrkprop.h: Likewise.
15439         * lib/unilbrk/lbrkprop1.h: Likewise.
15440         * lib/unilbrk/lbrkprop2.h: Likewise.
15441         * lib/uninorm/decomposition-table2.h: Likewise.
15442         * lib/uniwbrk/wbrkprop.h: Likewise.
15443         * tests/unicase/test-cased.c: Likewise.
15444         * tests/unicase/test-ignorable.c: Likewise.
15445         * tests/unicase/test-uc_tolower.c: Likewise.
15446         * tests/unicase/test-uc_totitle.c: Likewise.
15447         * tests/unicase/test-uc_toupper.c: Likewise.
15448         * tests/unictype/test-categ_C.c: Likewise.
15449         * tests/unictype/test-categ_Cn.c: Likewise.
15450         * tests/unictype/test-categ_L.c: Likewise.
15451         * tests/unictype/test-categ_Ll.c: Likewise.
15452         * tests/unictype/test-categ_Lm.c: Likewise.
15453         * tests/unictype/test-categ_Lo.c: Likewise.
15454         * tests/unictype/test-categ_Lu.c: Likewise.
15455         * tests/unictype/test-categ_M.c: Likewise.
15456         * tests/unictype/test-categ_Mc.c: Likewise.
15457         * tests/unictype/test-categ_Me.c: Likewise.
15458         * tests/unictype/test-categ_Mn.c: Likewise.
15459         * tests/unictype/test-categ_N.c: Likewise.
15460         * tests/unictype/test-categ_Nd.c: Likewise.
15461         * tests/unictype/test-categ_No.c: Likewise.
15462         * tests/unictype/test-categ_P.c: Likewise.
15463         * tests/unictype/test-categ_Po.c: Likewise.
15464         * tests/unictype/test-categ_S.c: Likewise.
15465         * tests/unictype/test-categ_Sc.c: Likewise.
15466         * tests/unictype/test-categ_Sk.c: Likewise.
15467         * tests/unictype/test-categ_Sm.c: Likewise.
15468         * tests/unictype/test-categ_So.c: Likewise.
15469         * tests/unictype/test-ctype_alnum.c: Likewise.
15470         * tests/unictype/test-ctype_alpha.c: Likewise.
15471         * tests/unictype/test-ctype_graph.c: Likewise.
15472         * tests/unictype/test-ctype_lower.c: Likewise.
15473         * tests/unictype/test-ctype_print.c: Likewise.
15474         * tests/unictype/test-ctype_punct.c: Likewise.
15475         * tests/unictype/test-ctype_upper.c: Likewise.
15476         * tests/unictype/test-decdigit.h: Likewise.
15477         * tests/unictype/test-digit.h: Likewise.
15478         * tests/unictype/test-numeric.h: Likewise.
15479         * tests/unictype/test-pr_alphabetic.c: Likewise.
15480         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
15481         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
15482         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
15483         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
15484         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
15485         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
15486         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
15487         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
15488         * tests/unictype/test-pr_case_ignorable.c: Likewise.
15489         * tests/unictype/test-pr_cased.c: Likewise.
15490         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
15491         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
15492         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
15493         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
15494         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
15495         * tests/unictype/test-pr_combining.c: Likewise.
15496         * tests/unictype/test-pr_composite.c: Likewise.
15497         * tests/unictype/test-pr_currency_symbol.c: Likewise.
15498         * tests/unictype/test-pr_decimal_digit.c: Likewise.
15499         * tests/unictype/test-pr_deprecated.c: Likewise.
15500         * tests/unictype/test-pr_format_control.c: Likewise.
15501         * tests/unictype/test-pr_grapheme_base.c: Likewise.
15502         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
15503         * tests/unictype/test-pr_grapheme_link.c: Likewise.
15504         * tests/unictype/test-pr_id_continue.c: Likewise.
15505         * tests/unictype/test-pr_id_start.c: Likewise.
15506         * tests/unictype/test-pr_ideographic.c: Likewise.
15507         * tests/unictype/test-pr_lowercase.c: Likewise.
15508         * tests/unictype/test-pr_math.c: Likewise.
15509         * tests/unictype/test-pr_numeric.c: Likewise.
15510         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
15511         * tests/unictype/test-pr_other_id_continue.c: Likewise.
15512         * tests/unictype/test-pr_other_math.c: Likewise.
15513         * tests/unictype/test-pr_punctuation.c: Likewise.
15514         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
15515         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
15516         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
15517         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
15518         * tests/unictype/test-pr_uppercase.c: Likewise.
15519         * tests/unictype/test-pr_xid_continue.c: Likewise.
15520         * tests/unictype/test-pr_xid_start.c: Likewise.
15521         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
15522         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
15523         changes.
15524         * lib/unictype/categ_Cc.h: Likewise.
15525         * lib/unictype/categ_Cf.h: Likewise.
15526         * lib/unictype/categ_Co.h: Likewise.
15527         * lib/unictype/categ_Cs.h: Likewise.
15528         * lib/unictype/categ_Lt.h: Likewise.
15529         * lib/unictype/categ_Nl.h: Likewise.
15530         * lib/unictype/categ_Pc.h: Likewise.
15531         * lib/unictype/categ_Pd.h: Likewise.
15532         * lib/unictype/categ_Pe.h: Likewise.
15533         * lib/unictype/categ_Pf.h: Likewise.
15534         * lib/unictype/categ_Pi.h: Likewise.
15535         * lib/unictype/categ_Ps.h: Likewise.
15536         * lib/unictype/categ_Z.h: Likewise.
15537         * lib/unictype/categ_Zl.h: Likewise.
15538         * lib/unictype/categ_Zp.h: Likewise.
15539         * lib/unictype/categ_Zs.h: Likewise.
15540         * lib/unictype/ctype_blank.h: Likewise.
15541         * lib/unictype/ctype_cntrl.h: Likewise.
15542         * lib/unictype/ctype_digit.h: Likewise.
15543         * lib/unictype/ctype_space.h: Likewise.
15544         * lib/unictype/ctype_xdigit.h: Likewise.
15545         * lib/unictype/mirror.h: Likewise.
15546         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
15547         * lib/unictype/pr_bidi_block_separator.h: Likewise.
15548         * lib/unictype/pr_bidi_common_separator.h: Likewise.
15549         * lib/unictype/pr_bidi_control.h: Likewise.
15550         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
15551         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
15552         * lib/unictype/pr_bidi_european_digit.h: Likewise.
15553         * lib/unictype/pr_bidi_pdf.h: Likewise.
15554         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
15555         * lib/unictype/pr_bidi_whitespace.h: Likewise.
15556         * lib/unictype/pr_dash.h: Likewise.
15557         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
15558         * lib/unictype/pr_diacritic.h: Likewise.
15559         * lib/unictype/pr_extender.h: Likewise.
15560         * lib/unictype/pr_hex_digit.h: Likewise.
15561         * lib/unictype/pr_hyphen.h: Likewise.
15562         * lib/unictype/pr_ids_binary_operator.h: Likewise.
15563         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
15564         * lib/unictype/pr_ignorable_control.h: Likewise.
15565         * lib/unictype/pr_iso_control.h: Likewise.
15566         * lib/unictype/pr_join_control.h: Likewise.
15567         * lib/unictype/pr_left_of_pair.h: Likewise.
15568         * lib/unictype/pr_line_separator.h: Likewise.
15569         * lib/unictype/pr_logical_order_exception.h: Likewise.
15570         * lib/unictype/pr_non_break.h: Likewise.
15571         * lib/unictype/pr_not_a_character.h: Likewise.
15572         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
15573         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
15574         * lib/unictype/pr_other_id_start.h: Likewise.
15575         * lib/unictype/pr_other_lowercase.h: Likewise.
15576         * lib/unictype/pr_other_uppercase.h: Likewise.
15577         * lib/unictype/pr_paired_punctuation.h: Likewise.
15578         * lib/unictype/pr_paragraph_separator.h: Likewise.
15579         * lib/unictype/pr_pattern_syntax.h: Likewise.
15580         * lib/unictype/pr_pattern_white_space.h: Likewise.
15581         * lib/unictype/pr_private_use.h: Likewise.
15582         * lib/unictype/pr_quotation_mark.h: Likewise.
15583         * lib/unictype/pr_radical.h: Likewise.
15584         * lib/unictype/pr_soft_dotted.h: Likewise.
15585         * lib/unictype/pr_space.h: Likewise.
15586         * lib/unictype/pr_titlecase.h: Likewise.
15587         * lib/unictype/pr_variation_selector.h: Likewise.
15588         * lib/unictype/pr_white_space.h: Likewise.
15589         * lib/unictype/pr_zero_width.h: Likewise.
15590         * lib/unictype/sy_c_ident.h: Likewise.
15591         * lib/unictype/sy_c_whitespace.h: Likewise.
15592         * lib/unictype/sy_java_whitespace.h: Likewise.
15593         * lib/uninorm/composition-table.gperf: Likewise.
15594         * lib/uninorm/decomposition-table1.h: Likewise.
15595         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
15596         LB8.
15597         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
15598         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
15599         * modules/unictype/*: Bump version number of expected libunistring
15600         version.
15601
15602 2011-01-09  Bruno Haible  <bruno@clisp.org>
15603
15604         Update to Unicode 5.2.0.
15605         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
15606         trailing whitespace removed.
15607
15608 2011-01-09  Bruno Haible  <bruno@clisp.org>
15609
15610         New Unicode character properties, from Unicode 5.2.0.
15611         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
15612         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
15613         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
15614         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
15615         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
15616         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
15617         uc_is_property_cased, uc_is_property_case_ignorable,
15618         uc_is_property_changes_when_lowercased,
15619         uc_is_property_changes_when_uppercased,
15620         uc_is_property_changes_when_titlecased,
15621         uc_is_property_changes_when_casefolded,
15622         uc_is_property_changes_when_casemapped): New declarations.
15623         * lib/unictype/pr_byname.gperf: Add the new properties.
15624         * modules/unictype/property-byname (Depends-on): Depend on the new
15625         properties modules.
15626         * modules/unictype/property-all (Depends-on): Likewise.
15627         * MODULES.html.sh (Unicode string functions): Add
15628         unictype/property-case-ignorable, unictype/property-cased,
15629         unictype/property-changes-when-casefolded,
15630         unictype/property-changes-when-casemapped,
15631         unictype/property-changes-when-lowercased,
15632         unictype/property-changes-when-titlecased,
15633         unictype/property-changes-when-uppercased.
15634
15635         New module 'unictype/property-changes-when-casemapped'.
15636         * modules/unictype/property-changes-when-casemapped: New file.
15637         * lib/unictype/pr_changes_when_casemapped.c: New file.
15638         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
15639         generated by gen-uni-tables.
15640         * modules/unictype/property-changes-when-casemapped-tests: New file.
15641         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
15642         automatically generated by gen-uni-tables.
15643
15644         New module 'unictype/property-changes-when-casefolded'.
15645         * modules/unictype/property-changes-when-casefolded: New file.
15646         * lib/unictype/pr_changes_when_casefolded.c: New file.
15647         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
15648         generated by gen-uni-tables.
15649         * modules/unictype/property-changes-when-casefolded-tests: New file.
15650         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
15651         automatically generated by gen-uni-tables.
15652
15653         New module 'unictype/property-changes-when-titlecased'.
15654         * modules/unictype/property-changes-when-titlecased: New file.
15655         * lib/unictype/pr_changes_when_titlecased.c: New file.
15656         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
15657         generated by gen-uni-tables.
15658         * modules/unictype/property-changes-when-titlecased-tests: New file.
15659         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
15660         automatically generated by gen-uni-tables.
15661
15662         New module 'unictype/property-changes-when-uppercased'.
15663         * modules/unictype/property-changes-when-uppercased: New file.
15664         * lib/unictype/pr_changes_when_uppercased.c: New file.
15665         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
15666         generated by gen-uni-tables.
15667         * modules/unictype/property-changes-when-uppercased-tests: New file.
15668         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
15669         automatically generated by gen-uni-tables.
15670
15671         New module 'unictype/property-changes-when-lowercased'.
15672         * modules/unictype/property-changes-when-lowercased: New file.
15673         * lib/unictype/pr_changes_when_lowercased.c: New file.
15674         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
15675         generated by gen-uni-tables.
15676         * modules/unictype/property-changes-when-lowercased-tests: New file.
15677         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
15678         automatically generated by gen-uni-tables.
15679
15680         New module 'unictype/property-case-ignorable'.
15681         * modules/unictype/property-case-ignorable: New file.
15682         * lib/unictype/pr_case_ignorable.c: New file.
15683         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
15684         by gen-uni-tables.
15685         * modules/unictype/property-case-ignorable-tests: New file.
15686         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
15687         generated by gen-uni-tables.
15688
15689         New module 'unictype/property-cased'.
15690         * modules/unictype/property-cased: New file.
15691         * lib/unictype/pr_cased.c: New file.
15692         * lib/unictype/pr_cased.h: New file, automatically generated by
15693         gen-uni-tables.
15694         * modules/unictype/property-cased-tests: New file.
15695         * tests/unictype/test-pr_cased.c: New file, automatically generated by
15696         gen-uni-tables.
15697
15698 2011-01-09  Bruno Haible  <bruno@clisp.org>
15699
15700         Update to Unicode 5.2.0.
15701         * lib/gen-uni-tables.c (output_predicate, output_category,
15702         output_combclass, output_bidi_category, output_decimal_digit_test,
15703         output_decimal_digit, output_digit_test, output_digit,
15704         output_numeric_test, output_numeric, output_mirror, output_scripts,
15705         output_scripts_byname, output_blocks, output_ident_category): Fix
15706         comment header.
15707         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
15708         get_wbp.
15709         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
15710         items.
15711         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
15712         Changes_When_Lowercased, Changes_When_Uppercased,
15713         Changes_When_Titlecased, Changes_When_Casefolded,
15714         Changes_When_Casemapped.
15715         (is_property_alphabetic, is_property_default_ignorable_code_point):
15716         Update for Unicode 5.2.0.
15717         (is_property_cased, is_property_case_ignorable,
15718         is_property_changes_when_lowercased,
15719         is_property_changes_when_uppercased,
15720         is_property_changes_when_titlecased,
15721         is_property_changes_when_casefolded,
15722         is_property_changes_when_casemapped): New functions.
15723         (output_properties): Output also the properties cased, case_ignorable,
15724         changes_when_lowercased, changes_when_uppercased,
15725         changes_when_titlecased, changes_when_casefolded,
15726         changes_when_casemapped.
15727         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
15728         Unicode TR#11 revision 17 -> 19.
15729         (LBP_CP): New enumeration value.
15730         (LBP_*): Adjust values accordingly.
15731         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
15732         TR#14 revision 22 -> 24.
15733         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
15734         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
15735         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
15736         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
15737         is_WBP_MIDLETTER.
15738         (output_composition_tables): Allow for 24 bits instead of 16 bits in
15739         the code1 and code2 of each composition rule.
15740         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
15741         * lib/unicase/ignorable.h: Likewise.
15742         * lib/unicase/tocasefold.h: Likewise.
15743         * lib/unicase/tolower.h: Likewise.
15744         * lib/unicase/totitle.h: Likewise.
15745         * lib/unicase/toupper.h: Likewise.
15746         * lib/unictype/bidi_of.h: Likewise.
15747         * lib/unictype/blocks.h: Likewise.
15748         * lib/unictype/categ_C.h: Likewise.
15749         * lib/unictype/categ_Cf.h: Likewise.
15750         * lib/unictype/categ_Cn.h: Likewise.
15751         * lib/unictype/categ_L.h: Likewise.
15752         * lib/unictype/categ_Ll.h: Likewise.
15753         * lib/unictype/categ_Lm.h: Likewise.
15754         * lib/unictype/categ_Lo.h: Likewise.
15755         * lib/unictype/categ_Lu.h: Likewise.
15756         * lib/unictype/categ_M.h: Likewise.
15757         * lib/unictype/categ_Mc.h: Likewise.
15758         * lib/unictype/categ_Mn.h: Likewise.
15759         * lib/unictype/categ_N.h: Likewise.
15760         * lib/unictype/categ_Nd.h: Likewise.
15761         * lib/unictype/categ_Nl.h: Likewise.
15762         * lib/unictype/categ_No.h: Likewise.
15763         * lib/unictype/categ_P.h: Likewise.
15764         * lib/unictype/categ_Pd.h: Likewise.
15765         * lib/unictype/categ_Po.h: Likewise.
15766         * lib/unictype/categ_S.h: Likewise.
15767         * lib/unictype/categ_Sc.h: Likewise.
15768         * lib/unictype/categ_So.h: Likewise.
15769         * lib/unictype/categ_of.h: Likewise.
15770         * lib/unictype/combining.h: Likewise.
15771         * lib/unictype/ctype_alnum.h: Likewise.
15772         * lib/unictype/ctype_alpha.h: Likewise.
15773         * lib/unictype/ctype_graph.h: Likewise.
15774         * lib/unictype/ctype_lower.h: Likewise.
15775         * lib/unictype/ctype_print.h: Likewise.
15776         * lib/unictype/ctype_punct.h: Likewise.
15777         * lib/unictype/ctype_upper.h: Likewise.
15778         * lib/unictype/decdigit.h: Likewise.
15779         * lib/unictype/digit.h: Likewise.
15780         * lib/unictype/numeric.h: Likewise.
15781         * lib/unictype/pr_alphabetic.h: Likewise.
15782         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
15783         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
15784         * lib/unictype/pr_bidi_european_digit.h: Likewise.
15785         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
15786         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
15787         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
15788         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
15789         * lib/unictype/pr_combining.h: Likewise.
15790         * lib/unictype/pr_composite.h: Likewise.
15791         * lib/unictype/pr_currency_symbol.h: Likewise.
15792         * lib/unictype/pr_dash.h: Likewise.
15793         * lib/unictype/pr_decimal_digit.h: Likewise.
15794         * lib/unictype/pr_deprecated.h: Likewise.
15795         * lib/unictype/pr_diacritic.h: Likewise.
15796         * lib/unictype/pr_extender.h: Likewise.
15797         * lib/unictype/pr_grapheme_base.h: Likewise.
15798         * lib/unictype/pr_grapheme_extend.h: Likewise.
15799         * lib/unictype/pr_grapheme_link.h: Likewise.
15800         * lib/unictype/pr_id_continue.h: Likewise.
15801         * lib/unictype/pr_id_start.h: Likewise.
15802         * lib/unictype/pr_ideographic.h: Likewise.
15803         * lib/unictype/pr_ignorable_control.h: Likewise.
15804         * lib/unictype/pr_logical_order_exception.h: Likewise.
15805         * lib/unictype/pr_lowercase.h: Likewise.
15806         * lib/unictype/pr_numeric.h: Likewise.
15807         * lib/unictype/pr_other_alphabetic.h: Likewise.
15808         * lib/unictype/pr_punctuation.h: Likewise.
15809         * lib/unictype/pr_sentence_terminal.h: Likewise.
15810         * lib/unictype/pr_terminal_punctuation.h: Likewise.
15811         * lib/unictype/pr_unassigned_code_value.h: Likewise.
15812         * lib/unictype/pr_unified_ideograph.h: Likewise.
15813         * lib/unictype/pr_uppercase.h: Likewise.
15814         * lib/unictype/pr_xid_continue.h: Likewise.
15815         * lib/unictype/pr_xid_start.h: Likewise.
15816         * lib/unictype/pr_zero_width.h: Likewise.
15817         * lib/unictype/scripts.h: Likewise.
15818         * lib/unictype/scripts_byname.gperf: Likewise.
15819         * lib/unictype/sy_java_ident.h: Likewise.
15820         * lib/unigbrk/gbrkprop.h: Likewise.
15821         * lib/unilbrk/lbrkprop1.h: Likewise.
15822         * lib/unilbrk/lbrkprop2.h: Likewise.
15823         * lib/unilbrk/lbrktables.h: Likewise.
15824         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
15825         LBP_CP. Implement rule LB30.
15826         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
15827         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
15828         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
15829         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
15830         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
15831         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
15832         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
15833         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
15834         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
15835         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
15836         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
15837         bits instead of 16 bits in the code1 and code2 of each composition
15838         rule.
15839         (uc_composition): Update for Unicode 5.2.0.
15840         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
15841         * lib/uninorm/decomposition-table2.h: Likewise.
15842         * lib/uniwbrk/wbrkprop.h: Likewise.
15843         * tests/unicase/test-cased.c: Likewise.
15844         * tests/unicase/test-ignorable.c: Likewise.
15845         * tests/unicase/test-uc_tolower.c: Likewise.
15846         * tests/unicase/test-uc_totitle.c: Likewise.
15847         * tests/unicase/test-uc_toupper.c: Likewise.
15848         * tests/unictype/test-categ_C.c: Likewise.
15849         * tests/unictype/test-categ_Cf.c: Likewise.
15850         * tests/unictype/test-categ_Cn.c: Likewise.
15851         * tests/unictype/test-categ_L.c: Likewise.
15852         * tests/unictype/test-categ_Ll.c: Likewise.
15853         * tests/unictype/test-categ_Lm.c: Likewise.
15854         * tests/unictype/test-categ_Lo.c: Likewise.
15855         * tests/unictype/test-categ_Lu.c: Likewise.
15856         * tests/unictype/test-categ_M.c: Likewise.
15857         * tests/unictype/test-categ_Mc.c: Likewise.
15858         * tests/unictype/test-categ_Mn.c: Likewise.
15859         * tests/unictype/test-categ_N.c: Likewise.
15860         * tests/unictype/test-categ_Nd.c: Likewise.
15861         * tests/unictype/test-categ_Nl.c: Likewise.
15862         * tests/unictype/test-categ_No.c: Likewise.
15863         * tests/unictype/test-categ_P.c: Likewise.
15864         * tests/unictype/test-categ_Pd.c: Likewise.
15865         * tests/unictype/test-categ_Po.c: Likewise.
15866         * tests/unictype/test-categ_S.c: Likewise.
15867         * tests/unictype/test-categ_Sc.c: Likewise.
15868         * tests/unictype/test-categ_So.c: Likewise.
15869         * tests/unictype/test-ctype_alnum.c: Likewise.
15870         * tests/unictype/test-ctype_alpha.c: Likewise.
15871         * tests/unictype/test-ctype_graph.c: Likewise.
15872         * tests/unictype/test-ctype_lower.c: Likewise.
15873         * tests/unictype/test-ctype_print.c: Likewise.
15874         * tests/unictype/test-ctype_punct.c: Likewise.
15875         * tests/unictype/test-ctype_upper.c: Likewise.
15876         * tests/unictype/test-decdigit.h: Likewise.
15877         * tests/unictype/test-digit.h: Likewise.
15878         * tests/unictype/test-numeric.h: Likewise.
15879         * tests/unictype/test-pr_alphabetic.c: Likewise.
15880         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
15881         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
15882         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
15883         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
15884         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
15885         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
15886         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
15887         * tests/unictype/test-pr_combining.c: Likewise.
15888         * tests/unictype/test-pr_composite.c: Likewise.
15889         * tests/unictype/test-pr_currency_symbol.c: Likewise.
15890         * tests/unictype/test-pr_dash.c: Likewise.
15891         * tests/unictype/test-pr_decimal_digit.c: Likewise.
15892         * tests/unictype/test-pr_deprecated.c: Likewise.
15893         * tests/unictype/test-pr_diacritic.c: Likewise.
15894         * tests/unictype/test-pr_extender.c: Likewise.
15895         * tests/unictype/test-pr_grapheme_base.c: Likewise.
15896         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
15897         * tests/unictype/test-pr_grapheme_link.c: Likewise.
15898         * tests/unictype/test-pr_id_continue.c: Likewise.
15899         * tests/unictype/test-pr_id_start.c: Likewise.
15900         * tests/unictype/test-pr_ideographic.c: Likewise.
15901         * tests/unictype/test-pr_ignorable_control.c: Likewise.
15902         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
15903         * tests/unictype/test-pr_lowercase.c: Likewise.
15904         * tests/unictype/test-pr_numeric.c: Likewise.
15905         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
15906         * tests/unictype/test-pr_punctuation.c: Likewise.
15907         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
15908         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
15909         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
15910         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
15911         * tests/unictype/test-pr_uppercase.c: Likewise.
15912         * tests/unictype/test-pr_xid_continue.c: Likewise.
15913         * tests/unictype/test-pr_xid_start.c: Likewise.
15914         * tests/unictype/test-pr_zero_width.c: Likewise.
15915         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
15916         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
15917         changed behaviour: line breaking is now disallowed between a letter
15918         or '=' and '('.
15919         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
15920         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
15921         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
15922         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
15923         * tests/uniwidth/test-uc_width2.sh: Same updates as in
15924         lib/uniwidth/width.c.
15925         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
15926         without comments, but with the original copyright notice.
15927         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
15928         changes.
15929         * lib/unictype/categ_Cc.h: Likewise.
15930         * lib/unictype/categ_Co.h: Likewise.
15931         * lib/unictype/categ_Cs.h: Likewise.
15932         * lib/unictype/categ_Lt.h: Likewise.
15933         * lib/unictype/categ_Me.h: Likewise.
15934         * lib/unictype/categ_Pc.h: Likewise.
15935         * lib/unictype/categ_Pe.h: Likewise.
15936         * lib/unictype/categ_Pf.h: Likewise.
15937         * lib/unictype/categ_Pi.h: Likewise.
15938         * lib/unictype/categ_Ps.h: Likewise.
15939         * lib/unictype/categ_Sk.h: Likewise.
15940         * lib/unictype/categ_Sm.h: Likewise.
15941         * lib/unictype/categ_Z.h: Likewise.
15942         * lib/unictype/categ_Zl.h: Likewise.
15943         * lib/unictype/categ_Zp.h: Likewise.
15944         * lib/unictype/categ_Zs.h: Likewise.
15945         * lib/unictype/ctype_blank.h: Likewise.
15946         * lib/unictype/ctype_cntrl.h: Likewise.
15947         * lib/unictype/ctype_digit.h: Likewise.
15948         * lib/unictype/ctype_space.h: Likewise.
15949         * lib/unictype/ctype_xdigit.h: Likewise.
15950         * lib/unictype/mirror.h: Likewise.
15951         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
15952         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
15953         * lib/unictype/pr_bidi_block_separator.h: Likewise.
15954         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
15955         * lib/unictype/pr_bidi_common_separator.h: Likewise.
15956         * lib/unictype/pr_bidi_control.h: Likewise.
15957         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
15958         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
15959         * lib/unictype/pr_bidi_pdf.h: Likewise.
15960         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
15961         * lib/unictype/pr_bidi_whitespace.h: Likewise.
15962         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
15963         * lib/unictype/pr_format_control.h: Likewise.
15964         * lib/unictype/pr_hex_digit.h: Likewise.
15965         * lib/unictype/pr_hyphen.h: Likewise.
15966         * lib/unictype/pr_ids_binary_operator.h: Likewise.
15967         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
15968         * lib/unictype/pr_iso_control.h: Likewise.
15969         * lib/unictype/pr_join_control.h: Likewise.
15970         * lib/unictype/pr_left_of_pair.h: Likewise.
15971         * lib/unictype/pr_line_separator.h: Likewise.
15972         * lib/unictype/pr_math.h: Likewise.
15973         * lib/unictype/pr_non_break.h: Likewise.
15974         * lib/unictype/pr_not_a_character.h: Likewise.
15975         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
15976         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
15977         * lib/unictype/pr_other_id_continue.h: Likewise.
15978         * lib/unictype/pr_other_id_start.h: Likewise.
15979         * lib/unictype/pr_other_lowercase.h: Likewise.
15980         * lib/unictype/pr_other_math.h: Likewise.
15981         * lib/unictype/pr_other_uppercase.h: Likewise.
15982         * lib/unictype/pr_paired_punctuation.h: Likewise.
15983         * lib/unictype/pr_paragraph_separator.h: Likewise.
15984         * lib/unictype/pr_pattern_syntax.h: Likewise.
15985         * lib/unictype/pr_pattern_white_space.h: Likewise.
15986         * lib/unictype/pr_private_use.h: Likewise.
15987         * lib/unictype/pr_quotation_mark.h: Likewise.
15988         * lib/unictype/pr_radical.h: Likewise.
15989         * lib/unictype/pr_soft_dotted.h: Likewise.
15990         * lib/unictype/pr_space.h: Likewise.
15991         * lib/unictype/pr_titlecase.h: Likewise.
15992         * lib/unictype/pr_variation_selector.h: Likewise.
15993         * lib/unictype/pr_white_space.h: Likewise.
15994         * lib/unictype/sy_c_ident.h: Likewise.
15995         * lib/unictype/sy_c_whitespace.h: Likewise.
15996         * lib/unictype/sy_java_whitespace.h: Likewise.
15997         * modules/uni*/*: Bump version number of expected libunistring version.
15998         Reported by Simon Josefsson.
15999
16000 2011-01-09  Karl Heuer  <kwzh@gnu.org>
16001
16002         useless-if-before-free: fix typo in --help and make the internal,
16003         automatic version date update process work once again.
16004         --help output contained a NUL character instead of the
16005         backslash-zero that was intended.  Also, the "must lie within
16006         the first 8 lines" line is on line 9, and hence not getting
16007         automatically updated.
16008         * build-aux/useless-if-before-free: Fix the former by adding a
16009         backslash, and the latter by condensing the three lines of what-it-does
16010         to a single line, leaving one line of slack for the future.
16011
16012 2011-01-09  Bruno Haible  <bruno@clisp.org>
16013
16014         uniwidth/width: Fix width of U+1D173..U+1D17A.
16015         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
16016         symbolic_width, output_width_property_test): New functions.
16017         (main): Invoke output_nonspacing_property, output_width_property_test.
16018         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
16019         U+1D173..U+1D17A.
16020         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
16021         1.
16022         * modules/uniwidth/*: Bump version number of expected libunistring
16023         version.
16024         * modules/unilbrk/*: Likewise.
16025
16026 2011-01-08  Bruno Haible  <bruno@clisp.org>
16027
16028         uninorm tests: Preserve copyright of Unicode data file.
16029         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
16030         Mention modifications.
16031
16032 2011-01-08  Bruno Haible  <bruno@clisp.org>
16033
16034         gen-uni-tables: Prepare for Unicode 5.2.0.
16035         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
16036         (debug_output_lbp, output_lbp): Update.
16037
16038 2011-01-08  Bruno Haible  <bruno@clisp.org>
16039
16040         unilbrk: Clarify gen-uni-tables.c code.
16041         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
16042         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
16043         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
16044
16045 2011-01-07  Bruno Haible  <bruno@clisp.org>
16046
16047         strtod: Restore errno when successfully parsing Infinity or NaN.
16048         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
16049         restore the original errno.
16050
16051 2011-01-07  Bruno Haible  <bruno@clisp.org>
16052
16053         remove test: Avoid failure on HP-UX 11.
16054         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
16055
16056 2011-01-07  Bruno Haible  <bruno@clisp.org>
16057
16058         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
16059         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
16060         error code.
16061
16062 2011-01-07  Pádraig Brady <P@draigBrady.com>
16063
16064         ignore-value: fixup comments, and add Eric Blake
16065         as an author since he rewrote the macros.
16066         * lib/ignore-value.h (ignore_value):  State that
16067         we now support aggregates.  Also specify exactly
16068         when the GCC warn_unused_result feature was added.
16069
16070 2011-01-06  Eric Blake  <eblake@redhat.com>
16071
16072         ignore-value: support aggregate types
16073         * lib/ignore-value.h (ignore_value): Provide separate gcc
16074         definition.
16075         * modules/ignore-value-tests: New test module.
16076         * tests/test-ignore-value.c: New test.
16077
16078         maint.mk: improve sc_prohibit_strcmp regex
16079         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
16080         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
16081         definition of STRNEQ.
16082
16083         signal: work around Haiku issue with SIGBUS
16084         * lib/siglist.h: Add comment.
16085         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
16086         strsignal's favoring of SIGSEGV.
16087         * tests/test-signal.c (main): Avoid test failure.
16088         * doc/posix-headers/signal.texi (signal.h): Document the issue.
16089         Reported by Scott McCreary.
16090
16091         maint.mk: add pre-release check to ensure submodule commits are public
16092         * top/maint.mk (public-submodule-commit): New rule.
16093         (submodule-checks): New variable.
16094         (alpha beta stable): Depend on the variable.
16095
16096 2011-01-05  Pádraig Brady <P@draigBrady.com>
16097         and Jim Meyering  <meyering@redhat.com>
16098
16099         ignore-value: make ignore_value more generic; deprecate ignore_ptr
16100         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
16101         (ATTRIBUTE_DEPRECATED): Define.
16102         (_ignore_case): New function.
16103         (ignore_value): New macro, to replace the old function.
16104         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
16105         * modules/ignore-value (Depends-on): Add stdint.
16106
16107 2011-01-04  Eric Blake  <eblake@redhat.com>
16108
16109         doc: regenerate INSTALL
16110         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
16111         @firstparagraphindent support, now that autoconf dropped it.
16112         (INSTALL_PRELUDE): Reinstate old macro.
16113         * doc/install.texi: Resync from autoconf.
16114         * doc/INSTALL: Reflect recent autoconf update.
16115         * doc/INSTALL.ISO: Likewise.
16116         * doc/INSTALL.UTF-8: Likewise.
16117         Reported by Karl Berry.
16118
16119 2011-01-04  Bruce Korb  <address@hidden>
16120
16121         git-version-gen: avoid a sub-shell
16122         * build-aux/git-version-gen: Redirect stderr in `...` via
16123         "exec 2>...", rather than via an added sub-shell.
16124
16125 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
16126
16127         git-version-gen: use (...) rather than sh -c '...'
16128         * build-aux/git-version-gen: Rather than hard-coding a shell's name
16129         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
16130
16131 2011-01-03  Jim Meyering  <meyering@redhat.com>
16132
16133         git-version-gen: convert leading TABs to spaces
16134         * build-aux/git-version-gen: Expand leading TABs.
16135
16136         git-version-gen: handle failed "git rev-list"
16137         * build-aux/git-version-gen: Rather than leaking a "fatal" error
16138         from git and proceeding as if it had succeeded but printed no SHA1
16139         checksums, suppress the diagnostic and handle the failure.
16140         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
16141
16142         git-version-gen: include command name in one more diagnostic
16143         * build-aux/git-version-gen: When the required .tarball-version file
16144         was missing or unreadable, you might see the diagnostic from "cat",
16145         but no trace of the name of the invoking script.  Now, you still see
16146         the diagnostic from cat, but also get one from "git-version-gen: ".
16147         Inspired by a patch from Bruce Korb.
16148
16149         update-copyright: adjust test to match changed code
16150         * tests/test-update-copyright.sh: Change test's expected output
16151         to match new actual output.
16152
16153 2011-01-02  Bruno Haible  <bruno@clisp.org>
16154
16155         getlogin_r: Avoid test failure on HP-UX 11.
16156         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
16157         ERANGE when the second argument is zero.
16158         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
16159         portability problem.
16160
16161 2011-01-02  Bruce Korb  <bkorb@gnu.org>
16162
16163         * build-aux/update-copyright: doc Simon's changes
16164
16165 2011-01-02  Simon Josefsson  <simon@josefsson.org>
16166
16167         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
16168         environment variable.
16169
16170 2011-01-02  Bruno Haible  <bruno@clisp.org>
16171
16172         unigbrk: Avoid gcc warnings.
16173         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
16174         unused variable.
16175         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
16176         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
16177         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
16178         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
16179         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
16180         Change type of first argument to 'const char *'.
16181         (main): Remove unused variable.
16182         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
16183         type of first argument to 'const char *'.
16184         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
16185         Likewise.
16186         (main): Change type of variable 's'.
16187         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
16188         to 'int'.
16189
16190 2011-01-02  Bruno Haible  <bruno@clisp.org>
16191
16192         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
16193         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
16194         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
16195         bug.
16196         * lib/pwrite.c: Undo 2010-12-31 patch.
16197         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
16198
16199 2011-01-02  Bruno Haible  <bruno@clisp.org>
16200
16201         pread: Fix test whether it works.
16202         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
16203
16204 2011-01-02  Bruno Haible  <bruno@clisp.org>
16205
16206         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
16207         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
16208         ends in "6". Don't require a specific month name. Try also the locale
16209         names found on HP-UX 11 and Solaris 7.
16210
16211 2011-01-02  Bruno Haible  <bruno@clisp.org>
16212
16213         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
16214         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
16215         C linkage.
16216         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
16217
16218 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
16219
16220         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
16221         for consistency, since the "cluster" term is not used elsewhere.
16222         * lib/unigbrk.in.h: Update name.
16223         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
16224         * lib/unigbrk/u16-grapheme-next.c: Update name.
16225         * lib/unigbrk/u16-grapheme-prev.c: Update name.
16226         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
16227         * lib/unigbrk/u32-grapheme-next.c: Update name.
16228         * lib/unigbrk/u32-grapheme-prev.c: Update name.
16229         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
16230         * lib/unigbrk/u8-grapheme-next.c: Update name.
16231         * lib/unigbrk/u8-grapheme-prev.c: Update name.
16232         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
16233         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
16234         Suggested by Bruno Haible.
16235
16236 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
16237
16238         Remove module 'u8-grapheme-len' as too redundant with
16239         'u8-grapheme-next'.
16240         * modules/unigbrk/u8-grapheme-len: Delete file.
16241         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
16242         * lib/unigbrk.in.h: Remove prototype for deleted function.
16243         * lib/unigbrk/u8-grapheme-len.c: Delete file.
16244         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
16245
16246         Remove module 'u16-grapheme-len' as too redundant with
16247         'u16-grapheme-next'.
16248         * modules/unigbrk/u16-grapheme-len: Delete file.
16249         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
16250         * lib/unigbrk.in.h: Remove prototype for deleted function.
16251         * lib/unigbrk/u16-grapheme-len.c: Delete file.
16252         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
16253
16254         Remove module 'u32-grapheme-len' as too redundant with
16255         'u32-grapheme-next'.
16256         * modules/unigbrk/u32-grapheme-len: Delete file.
16257         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
16258         * lib/unigbrk.in.h: Remove prototype for deleted function.
16259         * lib/unigbrk/u32-grapheme-len.c: Delete file.
16260         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
16261
16262         Suggested by Bruno Haible.
16263
16264 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
16265
16266         * unigbrk.in.h: Fix typo: "ben" => "been".
16267         Reported by Bruno Haible.
16268
16269 2011-01-01  Jim Meyering  <meyering@redhat.com>
16270
16271         maint: update almost all copyright ranges to include 2011
16272         Run the new "make update-copyright" rule.
16273
16274 2011-01-01  Jim Meyering  <meyering@redhat.com>
16275
16276         maint: update-copyright: exempt doc/INSTALL*
16277         * Makefile (update-copyright): Also exclude doc/INSTALL*,
16278         since they are generated.  Suggested by Bruno Haible.
16279
16280 2011-01-01  Jim Meyering  <meyering@redhat.com>
16281
16282         maint: refine the update-copyright rule
16283         * Makefile (update-copyright): Also exclude any file that includes
16284         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
16285         code that merely generates the comment.
16286
16287 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
16288
16289         New module 'u8-grapheme-len'.
16290         * modules/unigbrk/u8-grapheme-len: New file.
16291         * modules/unigbrk/u8-grapheme-len-tests: New file.
16292         * lib/unigbrk.in.h: Add prototype for new function.
16293         * lib/unigbrk/u8-grapheme-len.c: New file.
16294         * tests/unigbrk/test-u8-grapheme-len.c: New file.
16295
16296         New module 'u16-grapheme-len'.
16297         * modules/unigbrk/u16-grapheme-len: New file.
16298         * modules/unigbrk/u16-grapheme-len-tests: New file.
16299         * lib/unigbrk.in.h: Add prototype for new function.
16300         * lib/unigbrk/u16-grapheme-len.c: New file.
16301         * tests/unigbrk/test-u16-grapheme-len.c: New file.
16302
16303         New module 'u32-grapheme-len'.
16304         * modules/unigbrk/u32-grapheme-len: New file.
16305         * modules/unigbrk/u32-grapheme-len-tests: New file.
16306         * lib/unigbrk.in.h: Add prototype for new function.
16307         * lib/unigbrk/u32-grapheme-len.c: New file.
16308         * tests/unigbrk/test-u32-grapheme-len.c: New file.
16309
16310         New module 'u8-grapheme-next'.
16311         * modules/unigbrk/u8-grapheme-next: New file.
16312         * modules/unigbrk/u8-grapheme-next-tests: New file.
16313         * lib/unigbrk.in.h: Add prototype for new function.
16314         * lib/unigbrk/u8-grapheme-next.c: New file.
16315         * tests/unigbrk/test-u8-grapheme-next.c: New file.
16316
16317         New module 'u16-grapheme-next'.
16318         * modules/unigbrk/u16-grapheme-next: New file.
16319         * modules/unigbrk/u16-grapheme-next-tests: New file.
16320         * lib/unigbrk.in.h: Add prototype for new function.
16321         * lib/unigbrk/u16-grapheme-next.c: New file.
16322         * tests/unigbrk/test-u16-grapheme-next.c: New file.
16323
16324         New module 'u32-grapheme-next'.
16325         * modules/unigbrk/u32-grapheme-next: New file.
16326         * modules/unigbrk/u32-grapheme-next-tests: New file.
16327         * lib/unigbrk.in.h: Add prototype for new function.
16328         * lib/unigbrk/u32-grapheme-next.c: New file.
16329         * tests/unigbrk/test-u32-grapheme-next.c: New file.
16330
16331         New module 'u8-grapheme-prev'.
16332         * modules/unigbrk/u8-grapheme-prev: New file.
16333         * modules/unigbrk/u8-grapheme-prev-tests: New file.
16334         * lib/unigbrk.in.h: Add prototype for new function.
16335         * lib/unigbrk/u8-grapheme-prev.c: New file.
16336         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
16337
16338         New module 'u16-grapheme-prev'.
16339         * modules/unigbrk/u16-grapheme-prev: New file.
16340         * modules/unigbrk/u16-grapheme-prev-tests: New file.
16341         * lib/unigbrk.in.h: Add prototype for new function.
16342         * lib/unigbrk/u16-grapheme-prev.c: New file.
16343         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
16344
16345         New module 'u32-grapheme-prev'.
16346         * modules/unigbrk/u32-grapheme-prev: New file.
16347         * modules/unigbrk/u32-grapheme-prev-tests: New file.
16348         * lib/unigbrk.in.h: Add prototype for new function.
16349         * lib/unigbrk/u32-grapheme-prev.c: New file.
16350         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
16351
16352         New module 'u8-grapheme-breaks'.
16353         * modules/unigbrk/u8-grapheme-breaks: New file.
16354         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
16355         * lib/unigbrk.in.h: Add prototype for new function.
16356         * lib/unigbrk/u8-grapheme-breaks.c: New file.
16357         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
16358
16359         New module 'u16-grapheme-breaks'.
16360         * modules/unigbrk/u16-grapheme-breaks: New file.
16361         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
16362         * lib/unigbrk.in.h: Add prototype for new function.
16363         * lib/unigbrk/u16-grapheme-breaks.c: New file.
16364         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
16365
16366         New module 'u32-grapheme-breaks'.
16367         * modules/unigbrk/u32-grapheme-breaks: New file.
16368         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
16369         * lib/unigbrk.in.h: Add prototype for new function.
16370         * lib/unigbrk/u32-grapheme-breaks.c: New file.
16371         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
16372
16373         New module 'ulc-grapheme-breaks'.
16374         * modules/unigbrk/ulc-grapheme-breaks: New file.
16375         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
16376         * m4/locale-ar.m4: New file.
16377         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
16378         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
16379         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
16380
16381 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
16382
16383         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
16384         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
16385         modified how this file was generated before I initially submitted
16386         the module, but failed to regenerate it.  This meant that several
16387         of the level2 entries were wrong.
16388         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
16389         Remove the division-by-2 that is folded into the table now that
16390         gbrkprop.h has been regenerated properly.  Now -1 entries are
16391         handled correctly.
16392
16393         New module 'unigbrk/uc-gbrk-prop-tests'.
16394         * modules/unigbrk/uc-gbrk-prop-tests: New file.
16395         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
16396         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
16397         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
16398
16399 2011-01-01  Bruno Haible  <bruno@clisp.org>
16400
16401         Avoid use of hexadecimal escapes.
16402         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
16403         instead of hexadecimal escapes.
16404
16405 2011-01-01  Jim Meyering  <meyering@redhat.com>
16406
16407         maint: new rule to update copyright year ranges
16408         * Makefile (update-copyright): New rule.
16409
16410         maint: indent with TABs in Makefile
16411         * Makefile: Expand leading sequences of spaces to TABs
16412
16413         version-etc: update the copyright year it reports
16414         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
16415
16416 2010-12-31  Bruno Haible  <bruno@clisp.org>
16417
16418         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
16419         * lib/isfinite.c (zerof, zerod, zerol): New variables.
16420         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
16421         zero.
16422
16423 2010-12-31  Bruno Haible  <bruno@clisp.org>
16424
16425         pwrite: Work around HP-UX 11.11 bug.
16426         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
16427         works and set REPLACE_PWRITE if not.
16428         * lib/pwrite.c (pwrite): Add an implementation that uses the system
16429         function.
16430         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
16431
16432 2010-12-31  Bruno Haible  <bruno@clisp.org>
16433
16434         pread: Work around HP-UX 11 bugs.
16435         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
16436         and set REPLACE_PREAD if not.
16437         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
16438
16439 2010-12-31  Eric Blake  <eblake@redhat.com>
16440
16441         nl_langinfo: fix YESEXPR on Irix 6.5
16442         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
16443         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
16444         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
16445         it.
16446
16447 2010-12-31  Bruno Haible  <bruno@clisp.org>
16448
16449         iconv: Document HP-UX 11 bug.
16450         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
16451
16452 2010-12-31  Bruno Haible  <bruno@clisp.org>
16453
16454         ldexpl: Fix link error on HP-UX 11.
16455         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
16456         LDEXPL_LIBM, using $ISNANL_LIBM.
16457
16458 2010-12-31  Eric Blake  <eblake@redhat.com>
16459
16460         ftello: avoid compilation failure with SunStudio c89
16461         * lib/ftello.c (ftello): Use lseek, not llseek.
16462
16463         tests: avoid failing coreutils tests on cygwin
16464         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
16465         (create_exe_shims_): Return 0 when skipping.
16466
16467 2010-12-31  Bruno Haible  <bruno@clisp.org>
16468
16469         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
16470         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
16471
16472 2010-12-31  Bruno Haible  <bruno@clisp.org>
16473
16474         waitpid: Fix link error in C++ mode.
16475         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
16476
16477 2010-12-31  Bruno Haible  <bruno@clisp.org>
16478
16479         isnan: Use GCC built-ins when possible.
16480         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
16481         __builtin_isnan.
16482         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
16483         (isnan): Define using GCC built-ins for GCC >= 4.0.
16484
16485 2010-12-31  Bruno Haible  <bruno@clisp.org>
16486
16487         isnand: Fix mistake.
16488         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
16489         __builtin_isnand.
16490
16491 2010-12-31  Bruno Haible  <bruno@clisp.org>
16492
16493         open: Avoid C++ error on HP-UX 11.
16494         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
16495
16496 2010-12-31  Bruno Haible  <bruno@clisp.org>
16497
16498         time_r: Add missing declarations on HP-UX 11.
16499         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
16500         instead of HAVE_LOCALTIME_R.
16501         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
16502         HAVE_LOCALTIME_R always.
16503         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
16504         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
16505         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
16506         HAVE_LOCALTIME_R.
16507         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
16508         * doc/posix-functions/localtime_r.texi: Likewise.
16509
16510 2010-12-29  Eric Blake  <eblake@redhat.com>
16511
16512         mountlist: tweak previous commit
16513         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
16514         Reported by Paul Eggert.
16515
16516         mountlist: fix local drive detection on cygwin
16517         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
16518         that works for cygwin.
16519
16520 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
16521
16522         ftoastr, snprintf: ftoastr + snprintf module
16523         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
16524         since the snprintf module now should be good enough here.
16525         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
16526         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
16527         and gl_MODULE_INDICATOR([snprintf]), but the former enables
16528         GNULIB_SNPRINTF only for the test directory, and the latter
16529         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
16530         seems to suffice by itself.
16531
16532 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
16533
16534         alloca: one step towards thread-safety
16535         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
16536         need for a static variable.  All callers changed.  This does not
16537         make the alloca replacement thread-safe, but it's one step.
16538
16539         tests: minor indenting change
16540         * tests/init.sh: Sync from coreutils housekeeping patch
16541         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
16542         to keep lines within 80 columns.
16543
16544 2010-12-28  Jim Meyering  <meyering@redhat.com>
16545
16546         regex: don't infloop on persistent failing calloc
16547         * lib/regexec.c (build_trtable): Return failure indication upon
16548         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
16549         In glibc, this was fixed for version 2.13:
16550         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
16551
16552 2010-12-28  Bruno Haible  <bruno@clisp.org>
16553             Paul Eggert <eggert@cs.ucla.edu>
16554
16555         linkat: Make implementation robust against system behaviour variations.
16556         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
16557         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
16558         way, and to -2 if it needs a generic runtime test.
16559         * lib/linkat.c (solaris_optimized_link_immediate,
16560         solaris_optimized_link_follow): New functions.
16561         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
16562         (check_same_link): Use it.
16563
16564 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
16565
16566         New module 'unigbrk/base'.
16567         * modules/unigbrk/base: New file.
16568         * lib/unigbrk.in.h: New file.
16569
16570         New module 'unigbrk/uc-gbrk-prop'.
16571         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
16572         * modules/unigbrk/uc-gbrk-prop: New file.
16573         * lib/unigbrk/gbrkprop.h: New file.
16574         * lib/unigbrk/uc-gbrk-prop.c: New file.
16575
16576         New module 'unigbrk/uc-is-grapheme-break'.
16577         * modules/unigbrk/uc-is-grapheme-break: New file.
16578         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
16579         * lib/unigbrk/uc-is-grapheme-break.c: New file.
16580         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
16581         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
16582         * tests/unigbrk/GraphemeBreakTest.txt: New file.
16583
16584         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
16585
16586 2010-12-27  Bruno Haible  <bruno@clisp.org>
16587
16588         linkat test: Avoid failure on Solaris 11 2010-11.
16589         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
16590
16591 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
16592
16593         utimens: work around glibc rounding bug on more platforms
16594         * lib/utimens.c (fdutimens): Work around rounding bug even if
16595         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
16596         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
16597
16598 2010-12-27  Bruno Haible  <bruno@clisp.org>
16599
16600         select tests: Improve comments.
16601         * tests/test-select.c (do_select): Add comments.
16602
16603 2010-12-27  Bruno Haible  <bruno@clisp.org>
16604
16605         select tests: Safer way of handling timeout.
16606         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
16607         at every invocation.
16608
16609 2010-12-27  Bruno Haible  <bruno@clisp.org>
16610
16611         select tests: Use 'bool' where appropriate.
16612         * tests/test-select.c (connect_to_socket): Change argument type to
16613         'bool'.
16614
16615 2010-12-27  Bruno Haible  <bruno@clisp.org>
16616
16617         select tests: Use existing modules.
16618         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
16619         (configure.ac): Don't test for unistd.h.
16620         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
16621         declared in <unistd.h>.
16622
16623 2010-12-27  Bruno Haible  <bruno@clisp.org>
16624
16625         mbrtowc: Work around a Solaris 7 bug.
16626         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
16627         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
16628         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
16629         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
16630         MBRTOWC_NULL_ARG1_BUG.
16631         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
16632         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
16633         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
16634         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
16635
16636 2010-12-27  Jim Meyering  <meyering@redhat.com>
16637
16638         read-file.c: tweak syntax
16639         * lib/read-file.c (fread_file): Remove space after "*" in function
16640         definitions.
16641
16642 2010-12-27  Bruno Haible  <bruno@clisp.org>
16643
16644         times test: Avoid gcc warnings on OSF/1.
16645         * tests/test-times.c (main): Cast printf arguments from clock_t to
16646         'long int'.
16647
16648 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
16649
16650         utimens: work around glibc rounding bug on older Linux kernels
16651         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
16652         on Linux with a glibc whose utimes might not work, then work
16653         around a longstanding glibc bug involving rounding rather than
16654         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
16655         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
16656
16657 2010-12-26  Bruno Haible  <bruno@clisp.org>
16658
16659         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
16660         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
16661         _GL_CXXALIAS_SYS.
16662         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
16663
16664 2010-12-26  Bruno Haible  <bruno@clisp.org>
16665
16666         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
16667         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
16668         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
16669         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
16670         looking for the declaration.
16671         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
16672         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
16673         problem.
16674         * doc/posix-functions/inet_pton.texi: Likewise.
16675
16676 2010-12-26  Bruno Haible  <bruno@clisp.org>
16677
16678         arpa_inet: Use the common idioms with C++ support.
16679         * lib/arpa_inet.in.h: Include c++defs.h.
16680         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
16681         support.
16682         * modules/arpa_inet (Depends-on): Add c++defs.
16683         (Makefile.am): Substitute the contents of c++defs.h.
16684         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
16685         * modules/arpa_inet-c++-tests: New file.
16686         * tests/test-arpa_inet-c++.cc: New file.
16687
16688 2010-12-25  Bruno Haible  <bruno@clisp.org>
16689
16690         Fix more C++ link errors on Solaris 8.
16691         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
16692         $(LIB_EACCESS).
16693         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
16694         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
16695         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
16696         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
16697         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
16698
16699 2010-12-25  Bruno Haible  <bruno@clisp.org>
16700
16701         printf-posix: Fix link error when a non-GCC compiler is used.
16702         * lib/stdio.in.h (printf): When not using GCC, override printf
16703         correctly.
16704         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
16705
16706 2010-12-25  Bruno Haible  <bruno@clisp.org>
16707
16708         strerror_r-posix: Update doc.
16709         * doc/posix-functions/strerror_r.texi: Update doc about the return
16710         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
16711
16712 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
16713
16714         utimens: simplify the logic of the previous change
16715         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
16716         This should not affect whether the test succeeds or fails.
16717
16718         utimens: configure better on hosts with NFS clock skew
16719         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
16720         uses the clock of the local host.  It might use the clock of the
16721         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
16722         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
16723
16724 2010-12-25  Bruno Haible  <bruno@clisp.org>
16725
16726         ptsname test: Avoid failure on Solaris.
16727         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
16728         open a pseudo-terminal; don't use BSD-style ptys.
16729         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
16730
16731 2010-12-25  Bruno Haible  <bruno@clisp.org>
16732
16733         ptsname: Avoid ERANGE failure on some systems.
16734         * lib/ptsname.c (buffer): Increase size.
16735
16736 2010-12-25  Bruno Haible  <bruno@clisp.org>
16737
16738         rename, renameat: Avoid test failures at NFS mounted locations.
16739         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
16740         so that subsequent mkdir calls succeed.
16741
16742 2010-12-25  Bruno Haible  <bruno@clisp.org>
16743
16744         iswblank: Fix C++ link error on Solaris 8.
16745         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
16746         _GL_FUNCDECL_SYS.
16747
16748 2010-12-25  Bruno Haible  <bruno@clisp.org>
16749
16750         unistd: Fix C++ link error on Solaris 8.
16751         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
16752
16753 2010-12-25  Bruno Haible  <bruno@clisp.org>
16754
16755         readlink doc: Mention an old glibc bug.
16756         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
16757
16758 2010-12-25  Bruno Haible  <bruno@clisp.org>
16759
16760         fcntl-h: Fix for use of C++ on glibc systems.
16761         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
16762         also on glibc systems in C++ mode.
16763         Reported by Gary V. Vaughan <gary@gnu.org>.
16764
16765 2010-12-25  Bruno Haible  <bruno@clisp.org>
16766
16767         roundl-ieee: Make it work on OSF/1 5.1 with cc.
16768         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
16769
16770 2010-12-25  Bruno Haible  <bruno@clisp.org>
16771
16772         truncl-ieee: Make it work on OSF/1 5.1 with cc.
16773         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
16774         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
16775         test whether truncl works according to ISO C 99 with IEC 60559.
16776         * m4/truncl-ieee.m4: New file.
16777         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
16778         m4/signbit.m4.
16779         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
16780
16781 2010-12-25  Bruno Haible  <bruno@clisp.org>
16782
16783         ceill-ieee: Make it work on OSF/1 5.1 with cc.
16784         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
16785         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
16786         test whether ceill works according to ISO C 99 with IEC 60559.
16787         * m4/ceill-ieee.m4: New file.
16788         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
16789         m4/signbit.m4.
16790         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
16791
16792 2010-12-25  Bruno Haible  <bruno@clisp.org>
16793
16794         Ensure all prerequisites of <wchar.h> are included.
16795         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
16796         before <wchar.h>.
16797         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
16798         gl_MBRLEN_NUL_RETVAL): Likewise.
16799         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
16800         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
16801         AC_FUNC_MBRTOWC): Likewise.
16802         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
16803         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
16804         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
16805         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
16806         Likewise.
16807         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
16808         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
16809         (gl_WCHAR_H): Improve comments.
16810         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
16811
16812 2010-12-25  Bruno Haible  <bruno@clisp.org>
16813
16814         strtok_r: Fix C syntax error in autoconf macro.
16815         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
16816         characters in test program.
16817
16818 2010-12-24  Bruno Haible  <bruno@clisp.org>
16819
16820         ceil, trunc, round: Fix gcc warnings.
16821         * lib/ceil.c (MIN): Undefine before redefining.
16822         * lib/trunc.c (MIN): Likewise.
16823         * lib/round.c (MIN): Likewise.
16824         Include <math.h> first.
16825
16826 2010-12-24  Bruno Haible  <bruno@clisp.org>
16827
16828         select tests: Avoid failures on OSF/1 5.1.
16829         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
16830         failure of closing the last socket; it may fail with ECONNRESET.
16831
16832 2010-12-24  Eric Blake  <eblake@redhat.com>
16833
16834         stdint: avoid HP-UX 10.20 preprocessor bug
16835         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
16836         than #if.
16837         * tests/test-floor2.c (main): Likewise.
16838         Reported by Peter O'Gorman.
16839
16840         pipe: make obsoletion transition easier
16841         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
16842         * modules/pipe (Files): Include revived file.
16843         (Include): Drop reference, to mirror getdate's behavior.
16844
16845 2010-12-24  Bruno Haible  <bruno@clisp.org>
16846
16847         sys_socket: Hide mismatch of declarations on NonStop Kernel.
16848         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
16849         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
16850         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
16851
16852 2010-12-24  Bruno Haible  <bruno@clisp.org>
16853
16854         gethostname: Ensure declaration on NonStop Kernel.
16855         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
16856         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
16857
16858 2010-12-24  Bruno Haible  <bruno@clisp.org>
16859
16860         sys_select: Ensure all necessary types on NonStop Kernel.
16861         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
16862         include <sys/time.h>.
16863         * doc/posix-headers/sys_select.texi: Mention that it's missing on
16864         NonStop Kernel.
16865         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
16866
16867 2010-12-24  Bruno Haible  <bruno@clisp.org>
16868
16869         sys_select: Remove unneeded include.
16870         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
16871         have <sys/select.h>.
16872
16873 2010-12-24  Bruno Haible  <bruno@clisp.org>
16874
16875         gethostname: Provide a fallback for HOST_NAME_MAX.
16876         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
16877         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
16878         instead.
16879         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
16880
16881 2010-12-24  Bruno Haible  <bruno@clisp.org>
16882
16883         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
16884         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
16885         (SA_RESTART): Likewise.
16886         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
16887
16888 2010-12-24  Bruno Haible  <bruno@clisp.org>
16889
16890         signal: Define NSIG.
16891         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
16892         * tests/test-signal.c (nsig): New variable.
16893         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
16894
16895 2010-12-24  Bruno Haible  <bruno@clisp.org>
16896
16897         rename, renameat: Avoid test failures on OSF/1 5.1.
16898         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
16899         alternative error codes.
16900         * tests/test-renameat.c (main): Likewise.
16901
16902 2010-12-24  Bruno Haible  <bruno@clisp.org>
16903
16904         *printf: Detect large precisions bug on Solaris 10/SPARC.
16905         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
16906         by Paul Eggert.
16907         * tests/test-snprintf-posix.h (test_function): Add this test code here
16908         too.
16909         * tests/test-sprintf-posix.h (test_function): Likewise.
16910         * tests/test-vasnprintf-posix.c (test_function): Likewise.
16911         * tests/test-vasprintf-posix.c (test_function): Likewise.
16912         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
16913         around by gnulib.
16914         * doc/posix-functions/printf.texi: Likewise.
16915         * doc/posix-functions/snprintf.texi: Likewise.
16916         * doc/posix-functions/sprintf.texi: Likewise.
16917         * doc/posix-functions/vfprintf.texi: Likewise.
16918         * doc/posix-functions/vprintf.texi: Likewise.
16919         * doc/posix-functions/vsnprintf.texi: Likewise.
16920         * doc/posix-functions/vsprintf.texi: Likewise.
16921         * doc/posix-functions/dprintf.texi: Undo last commit.
16922         * doc/posix-functions/vdprintf.texi: Likewise.
16923
16924 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
16925
16926         tests: port test-fdutimensat.c to Solaris 8
16927         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
16928         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
16929         On Solaris 8, it fails with errno == ENOSYS, because there is no
16930         futimens (so it can't use the fd), and there is no lutimens (so it
16931         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
16932
16933         vsnprintf: make more consistent with snprintf; doc fixes
16934
16935         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
16936         the byte count return problem was promoted from the snprintf-posix
16937         to the snprintf module.
16938         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
16939         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
16940         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
16941         * tests/test-snprintf.c (main): Check the byte count returned.
16942         * tests/test-vsnprintf.c (main): Likewise.
16943
16944 2010-12-23  Eric Blake  <eblake@redhat.com>
16945
16946         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
16947         * modules/sigpipe (License): Relax license.
16948
16949 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
16950
16951         doc: document Solaris printf bug with large float precisions
16952         * doc/posix-functions/dprintf.texi (dprintf):
16953         * doc/posix-functions/fprintf.texi (fprintf):
16954         * doc/posix-functions/printf.texi (printf):
16955         * doc/posix-functions/snprintf.texi (snprintf):
16956         * doc/posix-functions/sprintf.texi (sprintf):
16957         * doc/posix-functions/vdprintf.texi (vdprintf):
16958         * doc/posix-functions/vfprintf.texi (vfprintf):
16959         * doc/posix-functions/vprintf.texi (vprintf):
16960         * doc/posix-functions/vsnprintf.texi (vsnprintf):
16961         * doc/posix-functions/vsprintf.texi (vsprintf):
16962         Mention that these functions mishandle large floating point
16963         precisions on Solaris 10.  The same bug is also present in Solaris
16964         8, and I assume earlier.  This causes "cd gnulib-tests; make
16965         check" to fail on Solaris 8 (and I assume, later) when building
16966         the latest coreutils, in test-vasprintf-posix's call to
16967         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
16968         the wide flavors (e.g., wprintf) so this patch just updates the
16969         documentation for the narrow ones.
16970
16971         test-posixtm.c: add two tests
16972         * tests/test-posixtm.c: Add two tests, to highlight the
16973         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
16974         around this bug; this is merely to document it.
16975
16976 2010-12-22  Bruno Haible  <bruno@clisp.org>
16977
16978         getlogin_r: Work around portability problem on OSF/1.
16979         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
16980         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
16981         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
16982         test for a truncated result.
16983         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
16984         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
16985         * modules/getlogin_r (Depends-on): Add memchr.
16986         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
16987
16988 2010-12-22  Bruno Haible  <bruno@clisp.org>
16989
16990         ptsname: Avoid test failure on OSF/1 5.1.
16991         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
16992         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
16993         (same_slave): New function.
16994         (main): Use it to compare ptsname's result with the expected file name.
16995
16996 2010-12-22  Bruno Haible  <bruno@clisp.org>
16997
16998         Port extended stdio modules to HP NonStop Kernel.
16999         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
17000         macros.
17001         * lib/fbufmode.c: Update comments.
17002         * lib/fflush.c: Likewise.
17003         * lib/fpurge.c: Likewise.
17004         * lib/freadable.c: Likewise.
17005         * lib/freadahead.c: Likewise.
17006         * lib/freading.c: Likewise.
17007         * lib/freadptr.c: Likewise.
17008         * lib/freadseek.c: Likewise.
17009         * lib/fseeko.c: Likewise.
17010         * lib/fseterr.c: Likewise.
17011         * lib/fwritable.c: Likewise.
17012         * lib/fwriting.c: Likewise.
17013         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
17014
17015 2010-12-22  Bruno Haible  <bruno@clisp.org>
17016
17017         ttyname_r: Work around bug on OSF/1 5.1.
17018         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
17019         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
17020         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
17021         present.
17022         * lib/ttyname_r.c (ttyname_r): Update comments.
17023
17024 2010-12-22  Bruno Haible  <bruno@clisp.org>
17025
17026         round: Implement result sign according to IEEE 754.
17027         * lib/round.c (MIN, MINUS_ZERO): New macros.
17028         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
17029         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
17030         * tests/test-round-ieee.c (main): Likewise.
17031         * tests/test-roundl-ieee.c (main): Likewise.
17032
17033         trunc: Implement result sign according to IEEE 754.
17034         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
17035         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
17036         * tests/test-trunc2.c: Include minus-zero.h.
17037         (MINUS_ZERO): New macro.
17038         (trunc_reference): Keep in sync with lib/trunc.c.
17039         * tests/test-truncf2.c: Include minus-zero.h.
17040         (MINUS_ZERO): New macro.
17041         (truncf_reference): Keep in sync with lib/trunc.c.
17042         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
17043         * tests/test-trunc-ieee.c (main): Likewise.
17044         * tests/test-truncl-ieee.c (main): Likewise.
17045
17046         ceil: Implement result sign according to IEEE 754.
17047         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
17048         (FUNC): Return -0.0 for -1 < x < 0.
17049         * tests/test-ceil2.c: Include minus-zero.h.
17050         (MINUS_ZERO): New macro.
17051         (ceil_reference): Keep in sync with lib/ceil.c.
17052         * tests/test-ceilf2.c: Include minus-zero.h.
17053         (MINUS_ZERO): New macro.
17054         (ceilf_reference): Keep in sync with lib/ceil.c.
17055         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
17056         * tests/test-ceil-ieee.c (main): Likewise.
17057         * tests/test-ceill-ieee.c (main): Likewise.
17058
17059         floor: Implement result sign according to IEEE 754.
17060         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
17061         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
17062         * tests/test-floorf2.c (floorf_reference): Likewise.
17063         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
17064         * tests/test-floor-ieee.c (main): Likewise.
17065         * tests/test-floorl-ieee.c (main): Likewise.
17066
17067 2010-12-22  Bruno Haible  <bruno@clisp.org>
17068
17069         getaddrinfo: Update doc.
17070         * doc/posix-functions/gai_strerror.texi: Return type is also different
17071         on AIX and HP-UX.
17072
17073 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
17074
17075         getaddrinfo, inet_ntop: Update doc for Solaris.
17076         * doc/posix-functions/gai_strerror.texi: Return type is also an
17077         issue on Solaris 9 and earlier.
17078         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
17079         on Solaris 10 and earlier.
17080
17081 2010-12-21  Bruno Haible  <bruno@clisp.org>
17082
17083         New module 'roundl-ieee'.
17084         * modules/roundl-ieee: New file.
17085         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
17086         test whether roundl works according to ISO C 99 with IEC 60559.
17087         * m4/roundl-ieee.m4: New file.
17088         * modules/roundl-ieee-tests: New file.
17089         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
17090         * tests/test-roundl.c (main): Remove signbit tests.
17091         * modules/roundl-tests (Depends-on): Remove signbit.
17092         * doc/posix-functions/roundl.texi: Mention the new module.
17093
17094 2010-12-21  Bruno Haible  <bruno@clisp.org>
17095
17096         New module 'truncl-ieee'.
17097         * modules/truncl-ieee: New file.
17098         * modules/truncl-ieee-tests: New file.
17099         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
17100         * tests/test-truncl.c (main): Remove signbit tests.
17101         * modules/truncl-tests (Depends-on): Remove signbit.
17102         * doc/posix-functions/truncl.texi: Mention the new module.
17103
17104 2010-12-21  Bruno Haible  <bruno@clisp.org>
17105
17106         New module 'ceill-ieee'.
17107         * modules/ceill-ieee: New file.
17108         * modules/ceill-ieee-tests: New file.
17109         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
17110         * tests/test-ceill.c (main): Remove signbit tests.
17111         * modules/ceill-tests (Depends-on): Remove signbit.
17112         * doc/posix-functions/ceill.texi: Mention the new module.
17113
17114 2010-12-21  Bruno Haible  <bruno@clisp.org>
17115
17116         New module 'floorl-ieee'.
17117         * modules/floorl-ieee: New file.
17118         * modules/floorl-ieee-tests: New file.
17119         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
17120         * tests/test-floorl.c (main): Remove signbit tests.
17121         * modules/floorl-tests (Depends-on): Remove signbit.
17122         * doc/posix-functions/floorl.texi: Mention the new module.
17123
17124 2010-12-21  Bruno Haible  <bruno@clisp.org>
17125
17126         New module 'round-ieee'.
17127         * modules/round-ieee: New file.
17128         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
17129         whether round works according to ISO C 99 with IEC 60559.
17130         * m4/round-ieee.m4: New file.
17131         * modules/round-ieee-tests: New file.
17132         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
17133         * tests/test-round1.c (main): Remove signbit tests.
17134         * modules/round-tests (Depends-on): Remove 'signbit'.
17135         * doc/posix-functions/round.texi: Mention the new module.
17136
17137 2010-12-21  Bruno Haible  <bruno@clisp.org>
17138
17139         New module 'trunc-ieee'.
17140         * modules/trunc-ieee: New file.
17141         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
17142         whether trunc works according to ISO C 99 with IEC 60559.
17143         * m4/trunc-ieee.m4: New file.
17144         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
17145         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
17146         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
17147         * modules/trunc-ieee-tests: New file.
17148         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
17149         * tests/test-trunc1.c (main): Remove signbit tests.
17150         * modules/trunc-tests (Depends-on): Remove 'signbit'.
17151         * doc/posix-functions/trunc.texi: Mention the new module.
17152
17153 2010-12-21  Bruno Haible  <bruno@clisp.org>
17154
17155         New module 'ceil-ieee'.
17156         * modules/ceil-ieee: New file.
17157         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
17158         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
17159         ISO C 99 with IEC 60559.
17160         * m4/ceil-ieee.m4: New file.
17161         * modules/ceil (Files): Add lib/ceil.c.
17162         (Depends-on): Add 'float'.
17163         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
17164         * lib/math.in.h (ceil): New declaration.
17165         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
17166         REPLACE_CEIL.
17167         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
17168         * modules/ceil-ieee-tests: New file.
17169         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
17170         * tests/test-math-c++.cc: Check the signature of 'ceil'.
17171         * doc/posix-functions/ceil.texi: Mention the new module.
17172
17173 2010-12-21  Bruno Haible  <bruno@clisp.org>
17174
17175         New module 'floor-ieee'.
17176         * modules/floor-ieee: New file.
17177         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
17178         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
17179         ISO C 99 with IEC 60559.
17180         * m4/floor-ieee.m4: New file.
17181         * modules/floor (Files): Add lib/floor.c.
17182         (Depends-on): Add 'float'.
17183         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
17184         * lib/math.in.h (floor): New declaration.
17185         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
17186         REPLACE_FLOOR.
17187         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
17188         * modules/floor-ieee-tests: New file.
17189         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
17190         * tests/test-math-c++.cc: Check the signature of 'floor'.
17191         * doc/posix-functions/floor.texi: Mention the new module.
17192
17193 2010-12-21  Bruno Haible  <bruno@clisp.org>
17194
17195         New module 'roundf-ieee'.
17196         * modules/roundf-ieee: New file.
17197         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
17198         test whether roundf works according to ISO C 99 with IEC 60559.
17199         * m4/roundf-ieee.m4: New file.
17200         * modules/roundf-ieee-tests: New file.
17201         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
17202         * tests/test-roundf1.c (main): Remove signbit tests.
17203         * modules/roundf-tests (Depends-on): Remove 'signbit'.
17204         * doc/posix-functions/roundf.texi: Mention the new module.
17205
17206 2010-12-21  Bruno Haible  <bruno@clisp.org>
17207
17208         New module 'truncf-ieee'.
17209         * modules/truncf-ieee: New file.
17210         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
17211         test whether truncf works according to ISO C 99 with IEC 60559.
17212         * m4/truncf-ieee.m4: New file.
17213         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
17214         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
17215         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
17216         * modules/truncf-ieee-tests: New file.
17217         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
17218         * tests/test-truncf1.c (main): Remove signbit tests.
17219         * modules/truncf-tests (Depends-on): Remove 'signbit'.
17220         * doc/posix-functions/truncf.texi: Mention the new module.
17221
17222 2010-12-21  Bruno Haible  <bruno@clisp.org>
17223
17224         New module 'ceilf-ieee'.
17225         * modules/ceilf-ieee: New file.
17226         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
17227         test whether ceilf works according to ISO C 99 with IEC 60559.
17228         * m4/ceilf-ieee.m4: New file.
17229         * modules/ceilf-ieee-tests: New file.
17230         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
17231         * tests/test-ceilf1.c (main): Remove signbit tests.
17232         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
17233         * doc/posix-functions/ceilf.texi: Mention the new module.
17234
17235 2010-12-21  Bruno Haible  <bruno@clisp.org>
17236
17237         New module 'floorf-ieee'.
17238         * modules/floorf-ieee: New file.
17239         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
17240         test whether floorf works according to ISO C 99 with IEC 60559.
17241         * m4/floorf-ieee.m4: New file.
17242         * modules/floorf-ieee-tests: New file.
17243         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
17244         * tests/test-floorf1.c (main): Remove signbit tests.
17245         * modules/floorf-tests (Depends-on): Remove 'signbit'.
17246         * doc/posix-functions/floorf.texi: Mention the new module.
17247
17248 2010-12-21  Bruno Haible  <bruno@clisp.org>
17249
17250         Support for minus zero in autoconf macros.
17251         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
17252         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
17253         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
17254         * tests/minus-zero.h: Update comments.
17255
17256 2010-12-21  Bruno Haible  <bruno@clisp.org>
17257
17258         Tests for module 'ceil'.
17259         * modules/ceil-tests: New file.
17260         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
17261         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
17262
17263 2010-12-21  Bruno Haible  <bruno@clisp.org>
17264
17265         Tests for module 'floor'.
17266         * modules/floor-tests: New file.
17267         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
17268         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
17269
17270 2010-12-21  Bruno Haible  <bruno@clisp.org>
17271
17272         math: Fix indentation.
17273         * lib/math.in.h (floorf): Fix indentation.
17274
17275 2010-12-21  Bruno Haible  <bruno@clisp.org>
17276
17277         Fix cross-compilation guesses on Solaris.
17278         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
17279         not match "solaris2.10".
17280         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
17281         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
17282         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
17283
17284 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
17285
17286         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
17287         This fixes a problem observed with the latest coreutils snapshot
17288         that caused a test to fail on Solaris 8.  src/csplit.c's call
17289         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
17290         earlier, instead of returning the number of bytes that would have
17291         been generated; this causes csplit to incorrectly report memory
17292         exhaustion.
17293         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
17294         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
17295         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
17296         comments to match.
17297         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
17298         Fix typo in matching older versions of Solaris: "solaris2.10"
17299         is matched by the shell pattern "solaris2.[0-9]*".  This matters
17300         only for guessing while cross-compiling.
17301         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
17302
17303 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
17304
17305         ftoastr: fix comment again
17306         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
17307         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
17308         Also, simplify example a bit by using flags = 0.
17309
17310 2010-12-20  Bruno Haible  <bruno@clisp.org>
17311
17312         round*, trunc*: Update documentation regarding glibc.
17313         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
17314         * doc/posix-functions/round.texi: Likewise.
17315         * doc/posix-functions/roundl.texi: Likewise.
17316         * doc/posix-functions/truncf.texi: Likewise.
17317         * doc/posix-functions/trunc.texi: Likewise.
17318         * doc/posix-functions/truncl.texi: Likewise.
17319
17320 2010-12-20  Bruno Haible  <bruno@clisp.org>
17321
17322         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
17323         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
17324         * doc/posix-functions/round.texi: Likewise.
17325         * doc/posix-functions/roundl.texi: Likewise.
17326
17327 2010-12-20  Bruno Haible  <bruno@clisp.org>
17328
17329         ttyname_r: Add missing declaration on HP-UX 11.
17330         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
17331         HAVE_TTYNAME_R.
17332         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
17333         declared. Set HAVE_TTYNAME_R always.
17334         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
17335         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
17336         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
17337         HAVE_TTYNAME_R.
17338         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
17339
17340 2010-12-20  Bruno Haible  <bruno@clisp.org>
17341
17342         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
17343         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
17344         * doc/posix-functions/getlogin_r.texi: Likewise.
17345         * tests/test-getlogin.c: Include <errno.h>.
17346         (main): Avoid test failure on HP-UX 11.11.
17347         * tests/test-getlogin_r.c (main): Likewise.
17348
17349 2010-12-20  Bruno Haible  <bruno@clisp.org>
17350
17351         getlogin_r: Add missing declaration on HP-UX 11.
17352         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
17353         declared also when it exists as a function.
17354         * doc/posix-functions/getlogin_r.texi: Document this workaround.
17355
17356 2010-12-20  Bruno Haible  <bruno@clisp.org>
17357
17358         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
17359         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
17360         through wcrtomb.
17361
17362 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
17363
17364         ftoastr: fix comment
17365         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
17366         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
17367
17368 2010-12-19  Bruno Haible  <bruno@clisp.org>
17369
17370         isnan: Ensure it is a macro.
17371         * lib/math.in.h (isnan): Define as a macro if not already a macro.
17372         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
17373         Solaris.
17374
17375 2010-12-19  Bruno Haible  <bruno@clisp.org>
17376
17377         ldexpl test: Fix link error on OSF/1 5.1.
17378         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
17379
17380 2010-12-19  Bruno Haible  <bruno@clisp.org>
17381
17382         wctype: Make it work in C++ mode on OSF/1 5.1.
17383         * lib/wctype.in.h (iswblank): Declare but not define here.
17384         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
17385         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
17386         * modules/wctype (Files): Add lib/iswblank.c.
17387
17388 2010-12-19  Bruno Haible  <bruno@clisp.org>
17389
17390         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
17391         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
17392         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
17393
17394 2010-12-19  Bruno Haible  <bruno@clisp.org>
17395
17396         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
17397         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
17398         _POSIX_PII_SOCKET.
17399         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
17400         * doc/posix-functions/recvfrom.texi: Likewise.
17401         * doc/posix-functions/send.texi: Likewise.
17402         * doc/posix-functions/sendto.texi: Likewise.
17403
17404 2010-12-19  Bruno Haible  <bruno@clisp.org>
17405
17406         tcgetsid: Add missing declaration on OSF/1 5.1.
17407         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
17408         HAVE_TCGETSID.
17409         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
17410         Don't set HAVE_TCGETSID.
17411         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
17412         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
17413         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
17414         HAVE_TCGETSID.
17415         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
17416
17417 2010-12-19  Bruno Haible  <bruno@clisp.org>
17418
17419         stdio: Fix problem with popen() declaration on OSF/1 5.1.
17420         * lib/stdio.in.h: During the include_next statement, let recursive
17421         includes of this file include only the system header file.
17422
17423 2010-12-19  Bruno Haible  <bruno@clisp.org>
17424
17425         iconv_open: Fix regression from 2010-12-04.
17426         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
17427         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
17428
17429 2010-12-19  Bruno Haible  <bruno@clisp.org>
17430
17431         stdbool test: Avoid a gcc warning.
17432         * tests/test-stdbool.c (main): Fail if e1 is false.
17433         Reported by Jim Meyering.
17434
17435 2010-12-19  Jim Meyering  <meyering@redhat.com>
17436
17437         setenv: restore to working order
17438         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
17439         mistakenly removed.
17440         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
17441         HAVE_SETENV.
17442         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
17443         HAVE_SETENV.
17444
17445 2010-12-19  Bruno Haible  <bruno@clisp.org>
17446
17447         Document some different function declarations on OSF/1 5.1.
17448         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
17449         * doc/posix-functions/inet_ntop.texi: Likewise.
17450         * doc/posix-functions/gethostname.texi: Likewise.
17451         * lib/unistd.in.h (gethostname): Update comment.
17452
17453 2010-12-19  Bruno Haible  <bruno@clisp.org>
17454
17455         doc: Mention vasprintf-posix module.
17456         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
17457         the 'vasprintf-posix' module.
17458         * doc/glibc-functions/vasprintf.texi: Likewise.
17459
17460 2010-12-19  Bruno Haible  <bruno@clisp.org>
17461
17462         unsetenv: Add missing declaration on OSF/1 5.1.
17463         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
17464         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
17465         Don't set HAVE_UNSETENV. In the test program, set _BSD.
17466         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
17467         not HAVE_UNSETENV.
17468         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
17469         HAVE_UNSETENV.
17470         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
17471
17472 2010-12-19  Bruno Haible  <bruno@clisp.org>
17473
17474         setenv: Add missing declaration on OSF/1 5.1.
17475         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
17476         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
17477         declared. Don't set HAVE_SETENV.
17478         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
17479         not HAVE_SETENV.
17480         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
17481         HAVE_SETENV.
17482         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
17483
17484 2010-12-19  Bruno Haible  <bruno@clisp.org>
17485
17486         nl_langinfo tests: Avoid gcc warning.
17487         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
17488
17489 2010-12-19  Bruno Haible  <bruno@clisp.org>
17490
17491         mknod: Avoid error in C++ mode on OSF/1 with GCC.
17492         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
17493         _GL_CXXALIAS_SYS.
17494
17495 2010-12-19  Bruno Haible  <bruno@clisp.org>
17496
17497         stdbool: Relax test.
17498         * tests/test-stdbool.c (e): Don't require that casts from a variable's
17499         address to 'bool' work in static initializer, for compilers other than
17500         GCC.
17501
17502 2010-12-19  Bruno Haible  <bruno@clisp.org>
17503
17504         ftello: Add missing declaration on OSF/1 5.1.
17505         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
17506         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
17507         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
17508         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
17509         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
17510
17511 2010-12-19  Bruno Haible  <bruno@clisp.org>
17512
17513         fseeko: Add missing declaration on OSF/1 5.1.
17514         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
17515         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
17516         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
17517         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
17518         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
17519
17520 2010-12-19  Bruno Haible  <bruno@clisp.org>
17521
17522         fchdir: Add missing declaration on OSF/1 5.1.
17523         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
17524         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
17525         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
17526         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
17527         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
17528
17529 2010-12-19  Bruno Haible  <bruno@clisp.org>
17530
17531         relocatable-prog-wrapper: Separate from relocatable-prog.
17532         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
17533         uninstall-relocwrapper rule here.
17534         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
17535         Reported by Ian Beckwith <ianb@erislabs.net>.
17536
17537 2010-12-19  Bruno Haible  <bruno@clisp.org>
17538
17539         unistr/u8-mbsnlen: Add missing dependency.
17540         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
17541         Reported by Ian Beckwith <ianb@erislabs.net>.
17542
17543 2010-12-19  Bruno Haible  <bruno@clisp.org>
17544
17545         iconv: Make it possible again to use this module without 'iconv-h'.
17546         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
17547         if it is not defined.
17548         Reported by Ian Beckwith <ianb@erislabs.net>.
17549
17550 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
17551
17552         acl: port to Solaris 8 when copying from tmpfs to ufs
17553         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
17554         error number.  Problem observed on Solaris 8 with latest
17555         coreutils, with "mv A B", where A is on a tmpfs file system and B
17556         is on a ufs file system.  This caused coreutils' mv/part-symlink
17557         test to fail.
17558
17559         tests: set fail=0 at start
17560         * tests/init.sh (setup_): Move fail=0 initialization here ...
17561         (mktempd_): ... from here, so that tests can rely on fail being
17562         set to 0 initially.  This fixes a problem in coreutils; see:
17563         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
17564
17565 2010-12-18  Bruno Haible  <bruno@clisp.org>
17566
17567         memmem-simple: Stylistic changes.
17568         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
17569         Fix preprocessor directive indentation.
17570
17571 2010-12-15  Pádraig Brady <P@draigBrady.com>
17572
17573         memmem, memmem-simple: reorganize and expand empty needle check
17574         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
17575         functional checks to memmem-simple so that one has a fully functional
17576         memmem by using just this module.
17577         Restrict the performance only check to the memmem module.
17578         Also expand the empty needle check to ensure the correct
17579         pointer is returned, not just a non NULL pointer.
17580         * doc/glibc-functions/memmem.texi: Rearrange the portability
17581         documentation to correlate with the rearranged checks.
17582         Clarify exactly how the memmem and memmem-simple modules
17583         relate to each other.
17584
17585 2010-12-15  Pádraig Brady <P@draigBrady.com>
17586             Bruno Haible  <bruno@clisp.org>
17587
17588         Improve cross-compilation guesses for uClibc.
17589         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
17590         that uClibc does not have the glibc bug.
17591         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
17592         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
17593
17594 2010-12-14  Eric Blake  <eblake@redhat.com>
17595
17596         configmake: provide fallbacks for oldest supported autotools
17597         * m4/configmake.m4: New file.
17598         * modules/configmake (Files): Ship it.
17599         (configure.ac): Use it to guarantee fallbacks.
17600
17601 2010-12-13  Pádraig Brady <P@draigBrady.com>
17602
17603         read-file: Improve handling of large files
17604         * lib/read-file.c (fread_file): Minimize realloc()s
17605         for regular files, and better manage sizes around SIZE_MAX.
17606
17607 2010-12-13  Eric Blake  <eblake@redhat.com>
17608
17609         cloexec, fcntl: relax license
17610         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
17611         consent from all contributors.
17612         * modules/fcntl (License): Likewise.
17613
17614 2010-12-10  Bruno Haible  <bruno@clisp.org>
17615
17616         Tests for module 'pipe-posix'.
17617         * modules/pipe-posix-tests: New file.
17618         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
17619
17620 2010-12-10  Bruno Haible  <bruno@clisp.org>
17621
17622         pipe-posix: Make it work in C++ mode.
17623         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
17624         (pipe): Use common idiom, not a macro definition.
17625         * lib/pipe.c: New file.
17626         * m4/pipe.m4: New file.
17627         * modules/pipe-posix (Description): Enhance.
17628         (Files): Add lib/pipe.c, m4/pipe.m4.
17629         (configure.ac): Invoke gl_FUNC_PIPE.
17630         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
17631         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
17632         * tests/test-unistd-c++.cc: Check the signature of pipe.
17633
17634 2010-12-10  Bruno Haible  <bruno@clisp.org>
17635
17636         Rename module 'pipe' to 'spawn-pipe'.
17637         * modules/spawn-pipe: New file, renamed from modules/pipe.
17638         (Files, configure.ac, Makefile.am): Update.
17639         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
17640         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
17641         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
17642         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
17643         "spawn-pipe.h" instead of "pipe.h".
17644         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
17645         to gl_SPAWN_PIPE.
17646         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
17647         (Files, Makefile.am): Update.
17648         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
17649         Update.
17650         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
17651         Include "spawn-pipe.h" instead of "pipe.h".
17652         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
17653         * lib/javacomp.c: Likewise.
17654         * lib/javaversion.c: Likewise.
17655         * lib/pipe-filter-gi.c: Likewise.
17656         * lib/pipe-filter-ii.c: Likewise.
17657         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
17658         * modules/javacomp (Depends-on): Likewise.
17659         * modules/javaversion (Depends-on): Likewise.
17660         * modules/pipe-filter-gi (Depends-on): Likewise.
17661         * modules/pipe-filter-ii (Depends-on): Likewise.
17662         * MODULES.html.sh (Executing programs): Update.
17663         * NEWS: Mention the change.
17664
17665 2010-12-10  Eric Blake  <eblake@redhat.com>
17666
17667         pipe-posix: new module
17668         * modules/pipe-posix: New file.
17669         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
17670         (gl_UNISTD_H): Check for declaration.
17671         * modules/unistd (Makefile.am): Substitute it.
17672         * lib/unistd.in.h (pipe): Provide it for mingw.
17673         * doc/posix-functions/pipe.texi (pipe): Update documentation.
17674         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
17675
17676 2010-12-07  Bruno Haible  <bruno@clisp.org>
17677
17678         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
17679         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
17680         u8_strcmp_gnu.
17681         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
17682
17683 2010-12-06  Bruno Haible  <bruno@clisp.org>
17684
17685         Update internal documentation.
17686         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
17687
17688 2010-12-04  Bruno Haible  <bruno@clisp.org>
17689
17690         Put more information about failed tests into the test return codes.
17691         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
17692         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
17693         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
17694         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
17695         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
17696         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
17697         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
17698         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
17699         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
17700         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
17701         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
17702         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
17703         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
17704         * m4/stdint.m4 (gl_STDINT_H): Likewise.
17705         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
17706         returns a bit mask.
17707         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
17708         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
17709         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
17710         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
17711         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
17712         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
17713         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
17714         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
17715         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
17716         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
17717         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
17718         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
17719         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
17720         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
17721         * m4/link.m4 (gl_FUNC_LINK): Likewise.
17722         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
17723         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
17724         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
17725         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
17726         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
17727         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
17728         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
17729         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
17730         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
17731         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
17732         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
17733         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
17734         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
17735         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
17736         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
17737         gl_PRINTF_PRECISION): Likewise.
17738         * m4/regex.m4 (gl_REGEX): Likewise.
17739         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
17740         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
17741         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
17742         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
17743         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
17744         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
17745         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
17746         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
17747         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
17748         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
17749         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
17750         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
17751         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
17752         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
17753         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
17754         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
17755         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
17756         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
17757         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
17758         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
17759         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
17760         enumerated value.
17761         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
17762
17763 2010-12-04  Bruno Haible  <bruno@clisp.org>
17764
17765         Update for Solaris 11 2010-11.
17766         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
17767         Express, released in November 2010.
17768
17769 2010-12-04  Bruno Haible  <bruno@clisp.org>
17770
17771         nproc: Relax license.
17772         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
17773         and Paul Eggert.
17774         Requested by Ludovic Courtès <ludo@gnu.org>.
17775
17776 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
17777
17778         utimecmp: fine-grained src to nearby coarse-grained dest
17779
17780         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
17781         and the source is on a file system with higher-resolution time
17782         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
17783         not work, and the time stamps are close together, the algorithm to
17784         determine the exact resolution from the read-back mtime was buggy:
17785         it had a "!=" where it should have had an "==".  This bug has been
17786         in the code ever since it was introduced to gnulib.
17787         Problem reported by Dan Jacobson in
17788         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
17789
17790 2010-11-30  Bruno Haible  <bruno@clisp.org>
17791
17792         strerror_r-posix: Fix autoconf test.
17793         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
17794
17795 2010-11-28  Bruno Haible  <bruno@clisp.org>
17796             Paul Eggert  <eggert@cs.ucla.edu>
17797
17798         Tests for module 'getdomainname'.
17799         * modules/getdomainname-tests: New file.
17800         * tests/test-getdomainname.c: New file, based on
17801         tests/test-gethostname.c.
17802
17803 2010-11-28  Bruno Haible  <bruno@clisp.org>
17804             Paul Eggert  <eggert@cs.ucla.edu>
17805
17806         getdomainname: Use the system function when possible.
17807         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
17808         (getdomainname): Replace if needed. Provide the declaration if it is
17809         missing. Don't use _GL_CXXALIAS_SYS_CAST.
17810         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
17811         (getdomainname): When the system has getdomainname, call the system
17812         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
17813         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
17814         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
17815         found in libnsl. Look for the declaration also in <netdb.h>. Replace
17816         the function if its second argument is of type 'int' or if it is found
17817         in libnsl.
17818         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
17819         <sys/systeminfo.h> and sysinfo().
17820         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
17821         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
17822         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
17823         HAVE_GETDOMAINNAME.
17824         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
17825         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
17826         * doc/glibc-functions/getdomainname.texi: Document the problems with
17827         the getdomainname declaration.
17828
17829 2010-11-28  Bruno Haible  <bruno@clisp.org>
17830
17831         sys_socket: Ensure ss_family field on AIX.
17832         * lib/sys_socket.in.h (ss_family): New macro definition.
17833         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
17834         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
17835         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
17836         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
17837         * modules/sys_socket (Makefile.am): Substitute
17838         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
17839         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
17840
17841 2010-11-27  Bruno Haible  <bruno@clisp.org>
17842
17843         readline: Improve configure output.
17844         * m4/readline.m4 (gl_FUNC_READLINE): Make the
17845         "checking for readline..." result understandable.
17846
17847 2010-11-27  Bruno Haible  <bruno@clisp.org>
17848
17849         *printf-posix: Detect a bug on Solaris 10/x86.
17850         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
17851         for floating-point output.
17852         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
17853         directive.
17854         * tests/test-snprintf-posix.h (test_function): Likewise.
17855         * tests/test-sprintf-posix.h (test_function): Likewise.
17856         * tests/test-vasprintf-posix.c (test_function): Likewise.
17857         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
17858         * doc/posix-functions/printf.texi: Likewise.
17859         * doc/posix-functions/snprintf.texi: Likewise.
17860         * doc/posix-functions/sprintf.texi: Likewise.
17861         * doc/posix-functions/vfprintf.texi: Likewise.
17862         * doc/posix-functions/vprintf.texi: Likewise.
17863         * doc/posix-functions/vsnprintf.texi: Likewise.
17864         * doc/posix-functions/vsprintf.texi: Likewise.
17865         * doc/glibc-functions/obstack_printf.texi: Likewise.
17866         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
17867
17868 2010-11-27  Bruno Haible  <bruno@clisp.org>
17869
17870         Fix link error when module libunistring-optional is in use.
17871         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
17872         * modules/striconveha-tests (Makefile.am): Likewise.
17873
17874 2010-11-27  Bruno Haible  <bruno@clisp.org>
17875
17876         regex: Mention link dependencies.
17877         * modules/regex (Link): New section.
17878         * modules/rpmatch (Link): Likewise.
17879         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
17880
17881 2010-11-27  Bruno Haible  <bruno@clisp.org>
17882
17883         ftoastr: Fix compilation error on Solaris.
17884         * lib/ftoastr.c: Include <config.h>.
17885
17886 2010-11-27  Bruno Haible  <bruno@clisp.org>
17887
17888         getloadavg: Update documentation.
17889         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
17890
17891 2010-11-27  Bruno Haible  <bruno@clisp.org>
17892
17893         sys_socket: Fix test whether the functions are declared.
17894         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
17895         not <sys/select.h>.
17896
17897 2010-11-27  Bruno Haible  <bruno@clisp.org>
17898
17899         getpass: Make sure to get system declaration on some platforms.
17900         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
17901         gl_USE_SYSTEM_EXTENSIONS.
17902         * modules/getpass (Depends-on): Add extensions.
17903
17904 2010-11-26  Bruno Haible  <bruno@clisp.org>
17905
17906         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
17907         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
17908         'iconv' module is present.
17909         (ICONV_CONST): New macro.
17910         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
17911         ICONV_CONST.
17912         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
17913         set ICONV_CONST.
17914         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
17915         here.
17916         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
17917         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
17918         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
17919         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
17920         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
17921         present.
17922
17923 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
17924
17925         ftoastr: comment fix
17926         * lib/ftoastr.c: "little" -> "little or no" in comment
17927
17928 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
17929
17930         stdint: port to GCC 4.3 + OSX + Octave
17931         On this platform, stdint.h is buggy and defines int64_t to long
17932         long int.  The replacement defined it to long int, causing
17933         problems with C++ style name mangling.  Instead, trust the system
17934         definition if INT64_MAX is defined, and likewise for the unsigned
17935         variant.   Problem reported by Jarno Rajahalme in
17936         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
17937         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
17938         and don't mess with int64_t and INT64_MAX in this case.
17939         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
17940
17941 2010-11-24  Bruno Haible  <bruno@clisp.org>
17942
17943         doc: Corrections regarding MacOS X 10.4 and 10.5.
17944         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
17945         MacOS X.
17946         Reported by Simon Josefsson.
17947
17948 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
17949
17950         Uninstall ".bin" files installed by relocwrapper.
17951         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
17952         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
17953         unless it is already there.
17954
17955 2010-11-21  Bruno Haible  <bruno@clisp.org>
17956
17957         Update for NetBSD 5.0.
17958         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
17959         NetBSD; the test fails on NetBSD 5.0.
17960         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
17961         about NetBSD.
17962
17963 2010-11-21  Bruno Haible  <bruno@clisp.org>
17964
17965         Update for HP-UX 11.23 and HP-UX 11.31.
17966         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
17967         HP-UX.
17968
17969 2010-11-21  Bruno Haible  <bruno@clisp.org>
17970
17971         Update for MacOS X 10.5.
17972         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
17973         MacOS X; the test fails on MacOS X 10.5.8.
17974         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
17975         about MacOS X.
17976
17977 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
17978
17979         bootstrap: add bootstrap_sync option.
17980         See discussion at
17981         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
17982         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
17983         * build-aux/bootstrap: Accept --bootstrap-sync to update
17984         bootstrap if it is not identical to the local gnulib's
17985         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
17986         enable this by default.  Accept --no-bootstrap-sync to disable
17987         it.
17988
17989 2010-11-20  Bruno Haible  <bruno@clisp.org>
17990
17991         Ensure that <features.h> is included before __GLIBC__ is tested.
17992         * lib/printf-parse.h: Include <features.h>.
17993         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
17994         Reported by Mike Frysinger <vapier@gentoo.org>.
17995
17996         Ensure that <features.h> is included before __GLIBC__ is tested.
17997         * lib/wchar.in.h: Include <features.h>.
17998         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
17999         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
18000         Reported by Mike Frysinger <vapier@gentoo.org>.
18001
18002         Ensure that <features.h> is included before __GLIBC__ is tested.
18003         * lib/arpa_inet.in.h: Include <features.h>.
18004         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
18005         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
18006         Reported by Mike Frysinger <vapier@gentoo.org>.
18007
18008         Ensure that <features.h> is included before __GLIBC__ is tested.
18009         * build-aux/link-warning.h: Include <features.h>.
18010         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
18011         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
18012         Reported by Mike Frysinger <vapier@gentoo.org>.
18013
18014         Ensure that <features.h> is included before __GLIBC__ is tested.
18015         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
18016         Reported by Mike Frysinger <vapier@gentoo.org>.
18017
18018 2010-11-20  Bruno Haible  <bruno@clisp.org>
18019
18020         memmem: Fix autoconf test.
18021         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
18022
18023 2010-11-20  Bruno Haible  <bruno@clisp.org>
18024
18025         Port to uClibc.
18026         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
18027         * lib/fcntl.in.h: Likewise.
18028         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
18029         * lib/mbrtowc.c (mbrtowc): Likewise.
18030         * lib/relocatable.c (find_shared_library_fullname): Likewise.
18031         * lib/strerror_r.c: Likewise.
18032         * lib/unistr/u8-strnlen.c: Likewise.
18033         * lib/vasnprintf.c (decimal_point_char): Likewise.
18034         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
18035         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
18036         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
18037         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
18038         * tests/test-sigaction.c (handler, main): Likewise.
18039         * lib/freading.h: Treat uClibc like a non-glibc platform.
18040         * lib/freading.c: Likewise.
18041         * lib/gettext.h: Likewise.
18042         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
18043         Likewise.
18044         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
18045         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
18046         * lib/propername.c (proper_name_utf8): Likewise.
18047         * lib/spawn.in.h: Likewise.
18048         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
18049         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
18050         mem_cd_iconveh_internal): Likewise.
18051         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
18052         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
18053         strstr, strcasestr): Likewise.
18054         * lib/unicodeio.c (unicode_to_mb): Likewise.
18055         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
18056         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
18057         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
18058         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
18059         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
18060         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
18061         * lib/unistr/u8-stpncpy.c: Likewise.
18062         * lib/vasnprintf.c (VASNPRINTF): Likewise.
18063         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
18064         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
18065         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
18066         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
18067         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
18068         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
18069         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
18070         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
18071         Likewise.
18072         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
18073         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
18074         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
18075         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
18076         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
18077         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
18078         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
18079         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
18080         * tests/test-getopt.h (OPTIND_MIN): Likewise.
18081         * tests/test-striconveha.c (main): Likewise.
18082         * tests/test-vasnprintf-posix.c (test_function): Likewise.
18083         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
18084         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
18085         * doc/posix-functions/getline.texi: Likewise.
18086         Reported by Mike Frysinger <vapier@gentoo.org>.
18087
18088 2010-11-20  Bruno Haible  <bruno@clisp.org>
18089
18090         nproc: Fix condition.
18091         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
18092         HAVE_PTHREAD_AFFINITY_NP.
18093
18094 2010-11-20  Bruno Haible  <bruno@clisp.org>
18095
18096         Fix a comment.
18097         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
18098
18099 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
18100
18101         ftoastr: don't assume snprintf
18102         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
18103         Implement a subset of snprintf here, by using sprintf safely.
18104         * modules/ftoastr (Depends-on): Remove snprintf.
18105
18106 2010-11-19  Jim Meyering  <meyering@redhat.com>
18107
18108         test-rename.h: fix compilation failure
18109         * tests/test-rename.h (test_rename): Add omitted "}".
18110
18111 2010-11-17  Jim Meyering  <meyering@redhat.com>
18112
18113         maint.mk: add a URL discussing the no-@acronym policy
18114         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
18115
18116 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
18117
18118         ftoastr: depend on snprintf, improve comments
18119         * lib/ftoastr.c: Also mention Loitsch's draft.
18120         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
18121         needed in the current implementation, but it might simplify
18122         speeding up the code later.
18123         * modules/ftoastr: Depend on snprintf; this improves portability.
18124         Suggested by Bruno Haible in the same email.
18125
18126         ftoastr: port to hosts lacking strtof and strtold
18127         Problem reported by Bruno Haible in
18128         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
18129         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
18130         environment and strtold (and presumably strtof) are not available.
18131         * modules/ftoastr (Files): Add m4/c-strtod.m4.
18132         (configure.ac): Require gl_C99_STRTOLD.
18133
18134 2010-11-18  Bruno Haible  <bruno@clisp.org>
18135
18136         c-strtold: Avoid link error on AIX 7.
18137         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
18138         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
18139         (gl_C_STRTOLD): Test whether strtold_l exists.
18140         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
18141
18142 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
18143
18144         intprops: new macro INT_BITS_STRLEN_BOUND
18145         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
18146         ftoastr.h.  This exposes an internal of intprops.h that was formerly
18147         not exposed.  Also, it uses a slightly tighter bound than before;
18148         though this makes no practical difference, we might as well be as
18149         tight as we easily can.
18150
18151         ftoastr: new module, for lossless conversion of floats to short strings
18152         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
18153         * modules/ftoastr: New files.
18154
18155 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
18156
18157         bootstrap: port to Solaris sed
18158         * build-aux/bootstrap (get_version): Port to Solaris sed.
18159         See Ralf Wildenhues's note in
18160         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
18161
18162 2010-11-14  Jim Meyering  <meyering@redhat.com>
18163
18164         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
18165         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
18166         and move definition closer to sole use.
18167
18168 2010-11-13  Jim Meyering  <meyering@redhat.com>
18169
18170         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
18171         Now we require at least autoconf-2.59, which means the work-around
18172         is no longer needed.
18173         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
18174         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
18175         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
18176         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
18177         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
18178
18179 2010-11-13  Bruno Haible  <bruno@clisp.org>
18180
18181         rename, renameat: Avoid test failures at NFS mounted locations.
18182         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
18183         functions.
18184         (test_rename): Use assert_nonexistent.
18185         * tests/test-rename.c: Include <dirent.h>.
18186         * tests/test-renameat.c: Likewise.
18187         Reported by Gary V. Vaughan <gary@gnu.org>.
18188
18189         rename, renameat: Document Linux bug with NFS
18190         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
18191         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
18192         * doc/posix-functions/renameat.texi: Likewise.
18193         Suggested by Eric Blake.
18194
18195 2010-11-13  Bruno Haible  <bruno@clisp.org>
18196
18197         rename test: Add comments.
18198         * tests/test-rename.h (test_rename): Add structure and comments.
18199
18200 2010-11-13  Eric Blake  <eblake@redhat.com>
18201
18202         maintainer-makefile: cover a few more files
18203         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
18204         scripts generated within C files, for libvirt.
18205
18206 2010-11-13  Bruno Haible  <bruno@clisp.org>
18207
18208         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
18209         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
18210         character, return the number of bytes that belong together, not always
18211         1.
18212         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
18213         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
18214         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
18215         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
18216         number of bytes of an invalid character.
18217         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
18218         (main): Invoke it.
18219         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
18220         results.
18221         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
18222         malformed byte sequences.
18223         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
18224         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
18225         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
18226         Reported by Ben Pfaff and Paolo Bonzini.
18227
18228 2010-11-13  Bruno Haible  <bruno@clisp.org>
18229
18230         openat: Work around glibc bug with fchownat() and empty file names.
18231         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
18232         (gl_FUNC_FCHOWNAT): Invoke it.
18233         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
18234         * doc/posix-functions/fchownat.texi: Document the glibc bug.
18235         Reported by Gary V. Vaughan <gary@gnu.org>.
18236
18237 2010-11-13  Bruno Haible  <bruno@clisp.org>
18238
18239         openat: Ensure autoconf macro ordering.
18240         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
18241         gl_USE_SYSTEM_EXTENSIONS.
18242         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
18243
18244 2010-11-13  Bruno Haible  <bruno@clisp.org>
18245
18246         Update comments.
18247         * lib/unistr/u8-check.c: Update file name in comments.
18248         * lib/unistr/u8-mblen.c: Likewise.
18249         * lib/unistr/u8-prev.c: Likewise.
18250         * lib/unistr/u8-strmblen.c: Likewise.
18251         * lib/unistr/u8-strmbtouc.c: Likewise.
18252
18253 2010-11-13  Jim Meyering  <meyering@redhat.com>
18254
18255         tests: avoid test failure on Solaris 10 due to lack of PATH export
18256         * tests/test-update-copyright.sh: Don't forget to export PATH.
18257
18258         init.sh: ensure that IFS is defined, just in case...
18259         * tests/init.sh (setup_): Ensure that IFS is defined,
18260         so that saving and restoring it works as expected.  This
18261         appears to be useful at least for an old version of dash
18262         from a long time ago (RH 6).  See here for details:
18263         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
18264
18265         maint.mk: tighten "test a == b" check
18266         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
18267         test to files that contain something like #!/bin/sh.
18268         Without this, coreutils would get two false positives in
18269         the comments of C source files.
18270
18271 2010-11-12  Eric Blake  <eblake@redhat.com>
18272
18273         bootstrap: fix typo in previous attempt
18274         * build-aux/bootstrap (buildreq): Correct the grouping.
18275         Reported by Paul Eggert.
18276
18277         maintainer-makefile: prohibit test x == x
18278         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
18279         Based on a report by Matthias Bolte.
18280
18281         bootstrap: allow FreeBSD gzip
18282         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
18283         which has no '.' and goes to stderr.
18284         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
18285         Reported by Matthias Bolte.
18286
18287         maintainer-makefile: check for i18n setup
18288         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
18289         will likely work.
18290
18291 2010-11-12  Bruno Haible  <bruno@clisp.org>
18292
18293         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
18294         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
18295         * lib/nanosleep.c (nanosleep): Likewise.
18296
18297 2010-11-11  Bruno Haible  <bruno@clisp.org>
18298
18299         fcntl-h: Fix for use of C++ on glibc systems.
18300         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
18301         also on glibc systems in C++ mode.
18302         Reported by Gary V. Vaughan <gary@gnu.org>.
18303
18304 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
18305
18306         mknod: avoid false failure with dash
18307         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
18308
18309 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
18310
18311         unlink: Fix "is it should" typo in diagnostic.
18312         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
18313         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
18314
18315 2010-11-11  Bruno Haible  <bruno@clisp.org>
18316
18317         Tests for module 'strerror_r-posix'.
18318         * modules/strerror_r-posix-tests: New file.
18319         * tests/test-strerror_r.c: New file.
18320         * tests/test-string-c++.cc: Check the signature of strerror_r.
18321
18322         New module 'strerror_r-posix'.
18323         * lib/string.in.h (strerror_r): New declaration.
18324         * lib/strerror_r.c: New file.
18325         * m4/strerror_r.m4: New file.
18326         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
18327         of strerror_r.
18328         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
18329         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
18330         * modules/strerror_r-posix: New file.
18331         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
18332         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
18333         * doc/posix-functions/strerror_r.texi: Mention the new module and the
18334         portability problems.
18335
18336 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
18337
18338         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
18339         line is also considered for output. Quoted function name in shell
18340         command, so temporary files for functions like MyClass::operator()
18341         are removed correctly without errors.
18342
18343 2010-11-09  Bruno Haible  <bruno@clisp.org>
18344
18345         * doc/posix-functions/strerror.texi: List more failing platforms.
18346
18347         * doc/posix-functions/strerror.texi: Add a comment.
18348
18349 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
18350
18351         fdopendir: fix bug on MacOS X when low on file descriptors
18352
18353         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
18354         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
18355         All callers changed.
18356         (fdopendir): Invoke save_cwd at the top level, not after using
18357         multiple dup() calls to use up file descriptors.  Then retry
18358         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
18359         less than the maximum number of open file descriptors, because
18360         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
18361         on Mac OS X 10.6.4 for tar 1.24
18362         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
18363         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
18364         and for tar 1.25
18365         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
18366
18367 2010-11-07  Bruno Haible  <bruno@clisp.org>
18368
18369         vasnprintf: Support I flag on glibc systems.
18370         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
18371         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
18372         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
18373         snprintf function.
18374         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
18375         glibc systems.
18376         * tests/test-vasnprintf-posix3.c: New file.
18377         * modules/vasnprintf-posix-tests (Files): Add it.
18378         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
18379
18380 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
18381
18382         [html] Fix copy/paste bug: Use unique name for compiler warnings.
18383         * MODULES.html.sh: For compiler warnings, use name
18384         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
18385
18386 2010-11-05  Eric Blake  <eblake@redhat.com>
18387
18388         ceil, floor: avoid spurious failure with icc
18389         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
18390         [denormals-as-zero] when optimizing without -mieee-fp option.
18391         * tests/test-floorf2.c (floorf_reference): Likewise.
18392         * tests/test-ceilf1.c (dummy): New function.
18393         (main): Use it to outsmart icc's optimization.
18394         * tests/test-floorf1.c (dummy, main): Likewise.
18395
18396         tests: require working signbit
18397         * modules/ceilf-tests (Depends-on): Add signbit.
18398         * modules/ceill-tests (Depends-on): Likewise.
18399         * modules/floorf-tests (Depends-on): Likewise.
18400         * modules/floorl-tests (Depends-on): Likewise.
18401         * modules/round-tests (Depends-on): Likewise.
18402         * modules/roundf-tests (Depends-on): Likewise.
18403         * modules/roundl-tests (Depends-on): Likewise.
18404         * modules/trunc-tests (Depends-on): Likewise.
18405         * modules/truncf-tests (Depends-on): Likewise.
18406         * modules/truncl-tests (Depends-on): Likewise.
18407
18408         strtod: work around icc bug
18409         * lib/strtod.c (minus_zero): Define to working value.
18410         (strtod): Use it to avoid icc bug.
18411
18412         copysign: enhance tests
18413         * modules/copysign-tests (Files): Add minus-zero.h.
18414         * tests/test-copysign.c (main): Also test zeros.
18415
18416 2010-11-04  Eric Blake  <eblake@redhat.com>
18417
18418         ceil, floor, round, trunc: enhance tests of -0
18419         * tests/test-ceilf1.c (main): Ensure correct sign of result.
18420         * tests/test-ceill.c (main): Likewise.
18421         * tests/test-floorf1.c (main): Likewise.
18422         * tests/test-floorl.c (main): Likewise.
18423         * tests/test-round1.c (main): Likewise.
18424         * tests/test-roundf1.c (main): Likewise.
18425         * tests/test-roundl.c (main): Likewise.
18426         * tests/test-trunc1.c (main): Likewise.
18427         * tests/test-truncf1.c (main): Likewise.
18428         * tests/test-truncl.c (main): Likewise.
18429
18430 2010-11-04  Eric Blake  <eblake@redhat.com>
18431
18432         frexp, tests: work around ICC bug with -zero
18433         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
18434         works with more compilers.
18435         * tests/minus-zero.h: New file.
18436         * modules/ceilf-tests (Files): Include it.
18437         * modules/ceill-tests (Files): Likewise.
18438         * modules/floorf-tests (Files): Likewise.
18439         * modules/floorl-tests (Files): Likewise.
18440         * modules/frexp-nolibm-tests (Files): Likewise.
18441         * modules/frexp-tests (Files): Likewise.
18442         * modules/frexpl-nolibm-tests (Files): Likewise.
18443         * modules/frexpl-tests (Files): Likewise.
18444         * modules/isnan-tests (Files): Likewise.
18445         * modules/isnand-nolibm-tests (Files): Likewise.
18446         * modules/isnand-tests (Files): Likewise.
18447         * modules/isnanf-nolibm-tests (Files): Likewise.
18448         * modules/isnanf-tests (Files): Likewise.
18449         * modules/isnanl-nolibm-tests (Files): Likewise.
18450         * modules/isnanl-tests (Files): Likewise.
18451         * modules/round-tests (Files): Likewise.
18452         * modules/roundf-tests (Files): Likewise.
18453         * modules/roundl-tests (Files): Likewise.
18454         * modules/ldexpl-tests (Files): Likewise.
18455         * modules/signbit-tests (Files): Likewise.
18456         * modules/snprintf-posix-tests (Files): Likewise.
18457         * modules/sprintf-posix-tests (Files): Likewise.
18458         * modules/strtod-tests (Files): Likewise.
18459         * modules/trunc-tests (Files): Likewise.
18460         * modules/truncf-tests (Files): Likewise.
18461         * modules/truncl-tests (Files): Likewise.
18462         * modules/vsnprintf-posix-tests (Files): Likewise.
18463         * modules/vsprintf-posix-tests (Files): Likewise.
18464         * modules/vasnprintf-posix-tests (Files): Likewise.
18465         * modules/vasprintf-posix-tests (Files): Likewise.
18466         * tests/test-ceilf1.c (main): Use it.
18467         * tests/test-ceill.c (main): Likewise.
18468         * tests/test-floorf1.c (main): Likewise.
18469         * tests/test-floorl.c (main): Likewise.
18470         * tests/test-frexp.c (main): Likewise.
18471         * tests/test-frexpl.c (main): Likewise.
18472         * tests/test-isnan.c (main): Likewise.
18473         * tests/test-isnand.h (main): Likewise.
18474         * tests/test-isnanf.h (main): Likewise.
18475         * tests/test-isnanl.h (main): Likewise.
18476         * tests/test-ldexpl.c (main): Likewise.
18477         * tests/test-round.c (main): Likewise.
18478         * tests/test-roundf.c (main): Likewise.
18479         * tests/test-roundl.c (main): Likewise.
18480         * tests/test-signbit.c (test_signbitf, test_signbitd)
18481         (test_signbitl): Likewise.
18482         * tests/test-snprintf-posix.h (test_function): Likewise.
18483         * tests/test-sprintf-posix.h (test_function): Likewise.
18484         * tests/test-strtod.c (main): Likewise.
18485         * tests/test-trunc1.c (main): Likewise.
18486         * tests/test-truncf1.c (main): Likewise.
18487         * tests/test-truncl.c (main): Likewise.
18488
18489         isnanl: work around icc bug
18490         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
18491
18492 2010-11-03  Eric Blake  <eblake@redhat.com>
18493
18494         tests: fix compiler warnings
18495         * tests/test-getopt.h (test_getopt): Fix condition.
18496         * tests/test-getopt_long.h (test_getopt_long): Likewise.
18497         * tests/test-pipe2.c (main): Likewise.
18498         * tests/test-quotearg-simple.c (main): Avoid icc warning.
18499
18500         utimens: fix broken m4 test
18501         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
18502
18503 2010-10-28  Bruno Haible  <bruno@clisp.org>
18504
18505         posix_spawn*, getdtablesize: Relax license.
18506         * modules/posix_spawn (License): Change to LGPLv2+.
18507         * modules/posix_spawnp (License): Likewise.
18508         * modules/posix_spawn-internal (License): Likewise.
18509         * modules/posix_spawnattr_init (License): Likewise.
18510         * modules/posix_spawnattr_getflags (License): Likewise.
18511         * modules/posix_spawnattr_setflags (License): Likewise.
18512         * modules/posix_spawnattr_getpgroup (License): Likewise.
18513         * modules/posix_spawnattr_setpgroup (License): Likewise.
18514         * modules/posix_spawnattr_getschedparam (License): Likewise.
18515         * modules/posix_spawnattr_setschedparam (License): Likewise.
18516         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
18517         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
18518         * modules/posix_spawnattr_getsigdefault (License): Likewise.
18519         * modules/posix_spawnattr_setsigdefault (License): Likewise.
18520         * modules/posix_spawnattr_getsigmask (License): Likewise.
18521         * modules/posix_spawnattr_setsigmask (License): Likewise.
18522         * modules/posix_spawnattr_destroy (License): Likewise.
18523         * modules/posix_spawn_file_actions_init (License): Likewise.
18524         * modules/posix_spawn_file_actions_addclose (License): Likewise.
18525         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
18526         * modules/posix_spawn_file_actions_addopen (License): Likewise.
18527         * modules/posix_spawn_file_actions_destroy (License): Likewise.
18528         * modules/getdtablesize (License): Likewise.
18529         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
18530
18531 2010-10-26  Bruno Haible  <bruno@clisp.org>
18532
18533         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
18534         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
18535         Cygwin and mingw.
18536         Suggested by Eric Blake.
18537
18538 2010-10-26  Bruno Haible  <bruno@clisp.org>
18539
18540         stdio: Work around compilation error due to renameat() on Solaris 10.
18541         * lib/stdio.in.h: Include <unistd.h> on Solaris.
18542         * lib/renameat.c: Don't include <unistd.h> here.
18543         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
18544         Reported by Paul Eggert and Eric Blake.
18545
18546 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
18547
18548         renameat: port to Solaris 10, which declares renameat in unistd.h
18549
18550         * lib/renameat.c: Include unistd.h before stdio.h, because
18551         Solaris 10 declares renameat in unistd.h.  Problem encountered
18552         when building GNU tar 1.24 on Solaris 10.
18553
18554 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
18555
18556         fdopendir: fix C89 compilation
18557         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
18558         compilers.
18559
18560 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
18561
18562         inttostr: simplify by removing unnecessary redundancy
18563         * lib/anytostr.c: Don't include verify.h.
18564         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
18565         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
18566         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
18567         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
18568         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
18569         Likewise.
18570         * modules/inttostr (Depends-on): Remove 'verify'.
18571
18572 2010-10-23  Bruno Haible  <bruno@clisp.org>
18573
18574         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
18575         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
18576         Reported by Eric Blake.
18577
18578 2010-10-23  Bruno Haible  <bruno@clisp.org>
18579
18580         Tests: Fix LOCALE_JA on MirBSD 10.
18581         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
18582         to an UTF-8 locale.
18583         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
18584         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
18585         Reported by Eric Blake.
18586
18587 2010-10-21  Bruno Haible  <bruno@clisp.org>
18588
18589         nl_langinfo test: Avoid test failure on NetBSD 5.
18590         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
18591         Reported by Eric Blake.
18592
18593 2010-10-21  Eric Blake  <eblake@redhat.com>
18594
18595         c-stack: work around libsigsegv 2.8 bug
18596         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
18597         overflow on at least PowerPC64.
18598
18599 2010-10-17  Bruno Haible  <bruno@clisp.org>
18600
18601         userspec: Drop redundant file.
18602         * modules/userspec (Files): Remove lib/inttostr.h.
18603
18604 2010-10-17  Bruno Haible  <bruno@clisp.org>
18605
18606         nl_langinfo tests: Silence some warnings.
18607         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
18608         Reported by Jim Meyering.
18609
18610 2010-10-17  Bruno Haible  <bruno@clisp.org>
18611
18612         Make use of GCC's attribute __alloc_size__.
18613         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
18614         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
18615         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
18616         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
18617         __alloc_size__.
18618         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
18619         Suggested by Jim Meyering.
18620
18621 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
18622
18623         bootstrap: anchor .gitignore entries.
18624         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
18625         with...
18626         (insert_vc_ignore): ... this new function, which prepends `/' to
18627         all .gitignore entries before passing them to
18628         insert_sorted_if_absent.
18629
18630 2010-10-16  Bruno Haible  <bruno@clisp.org>
18631
18632         nextafter: Fix configure check.
18633         * modules/nextafter (configure.ac): Correct expected prototype.
18634
18635 2010-10-16  Bruno Haible  <bruno@clisp.org>
18636
18637         termios: Update documentation.
18638         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
18639
18640 2010-10-16  Bruno Haible  <bruno@clisp.org>
18641
18642         tests: Make them compile with TinyCC.
18643         * tests/test-strstr.c (main): Remove parentheses around array
18644         initializer.
18645
18646 2010-10-15  Eric Blake  <eblake@redhat.com>
18647
18648         ignore-value: make header idempotent
18649         * lib/ignore-value.h: Add double-inclusion guards.
18650         Reported by Stefan Berger.
18651
18652 2010-10-15  Jim Meyering  <meyering@redhat.com>
18653
18654         GNUmakefile: handle "stable" target, not "major"
18655         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
18656         lists in maint.mk and announce-gen.  Without this, "make stable"
18657         would fail to ensure that $(VERSION) is up to date.
18658
18659 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
18660
18661         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
18662         & co.
18663
18664 2010-10-14  Bruno Haible  <bruno@clisp.org>
18665
18666         vasnprintf: Don't set errno to 0.
18667         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
18668         block that sets it to 0.
18669         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
18670
18671 2010-10-14  Bruno Haible  <bruno@clisp.org>
18672
18673         socketlib: Fix.
18674         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
18675         gl_PREREQ_SYS_H_WINSOCK2.
18676         Reported by Ian Beckwith <ianb@erislabs.net>.
18677
18678 2010-10-13  Jim Meyering  <meyering@redhat.com>
18679
18680         test-select-stdin.c: avoid warn_unused_result warnings
18681         * tests/test-select-stdin.c: Include "macros.h".
18682         ASSERT that read and fflush succeed.
18683
18684 2010-10-13  Jim Meyering  <meyering@redhat.com>
18685
18686         git-version-gen: do require git-VC'd files in cwd
18687         * build-aux/git-version-gen: Reject a git version string
18688         if there are no commits associated with the current directory.
18689         This avoids an unlikely false-positive (unrelated dir whose parent
18690         repository also contains a tag matching v*), as pointed out
18691         by Giuseppe Scrivano in
18692         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
18693
18694 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
18695
18696         argv-iter: omit nonconforming declaration
18697         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
18698         enum arg_iter_err declaration, which doesn't conform to C99.
18699         Solaris 10 cc warns about this.
18700
18701 2010-10-13  Eric Blake  <eblake@redhat.com>
18702
18703         termios: fix compilation on mingw
18704         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
18705         (gl_TERMIOS_H): Adjust it on mingw.
18706         * modules/termios (Makefile.am): Substitute new key.
18707         * lib/termios.in.h (includes): Make include_next conditional.
18708         * doc/posix-headers/termios.texi (termios.h): Update
18709         documentation.
18710         Reported by Daniel P. Berrange.
18711
18712 2010-10-13  Jim Meyering  <meyering@redhat.com>
18713
18714         git-version-gen: don't require that .git/ be in the current dir
18715         * build-aux/git-version-gen: Adjust this script so that it works
18716         when run from any working directory beneath the top-level .git/-
18717         containing directory.  Inspired by a patch from Giuseppe Scrivano,
18718         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
18719
18720         test-select: avoid warn_unused_result warnings
18721         * tests/test-select.c: Include "macros.h".
18722         ASSERT that each call to read, write, and pipe succeeds.
18723         While not technically required, also check each "close".
18724         * modules/select-tests (Files): Add tests/macros.h.
18725
18726         test-symlinkat: remove declaration of unused local
18727         * tests/test-symlinkat.c (main): Remove unused local, "buf".
18728
18729         test-inttostr: avoid shadowing warnings
18730         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
18731         and use malloc rather than the stack for the same reason as
18732         mentioned in the comment justifying the other allocation.
18733
18734 2010-10-11  Bruno Haible  <bruno@clisp.org>
18735
18736         stdlib: Allow multiple gnulib generated replacements to coexist.
18737         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
18738         Reported by Sam Steingold <sds@gnu.org>.
18739
18740 2010-10-11  Jim Meyering  <meyering@redhat.com>
18741
18742         fix a documentation typo
18743         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
18744
18745 2010-10-11  Eric Blake  <eblake@redhat.com>
18746
18747         futimens: work around Solaris 11 bug
18748         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
18749         * tests/test-futimens.h (test_futimens): Enhance, rather than
18750         weaken test.
18751         * doc/posix-functions/futimens.texi (futimens): Document the bug.
18752
18753 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
18754
18755         Indentation.
18756         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
18757         higher-level operators more to the left.
18758
18759 2010-10-11  Jim Meyering  <meyering@redhat.com>
18760
18761         test-futimens: avoid unwarranted test failure on Solaris 5.11
18762         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
18763         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
18764         because it tries to dereference the NULL name argument.
18765
18766 2010-10-11  Bruno Haible  <bruno@clisp.org>
18767
18768         Indentation.
18769         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
18770         indentation.
18771
18772 2010-10-11  Jim Meyering  <meyering@redhat.com>
18773
18774         spawn.in.h: make indentation consistent with parentheses
18775         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
18776         Make indentation consistent with parentheses.
18777
18778 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
18779
18780         Fix mismatched parens in previous commit
18781         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
18782         parens.
18783
18784 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
18785
18786         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
18787
18788         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
18789         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
18790         * lib/malloca.c: Include "verify.h".
18791         (verify1): Remove, replacing with a verify call.
18792         * lib/relocwrapper.c (verify1): Likewise.
18793         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
18794         Likewise.
18795         * modules/malloca (Depends-on): Add 'verify'.
18796         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
18797         * modules/vasnprintf (Depends-on): Add 'verify'.
18798         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
18799         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
18800         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
18801         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
18802         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
18803         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
18804         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
18805
18806         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
18807
18808         Formerly the style was sometimes 2*X - 1, because the C standard
18809         was wrongly thought to disallow ?: in integral constant expressions.
18810         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
18811         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
18812         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
18813         * lib/stdint.in.h (_verify_intmax_size): Likewise.
18814         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
18815         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
18816         verify that time_t cannot be floating.
18817
18818 2010-10-08  Eric Blake  <eblake@redhat.com>
18819
18820         time: enforce recent POSIX ruling that time_t is integral
18821         * lib/time.in.h (__time_t_must_be_integral): Detect any
18822         problematic systems, allowing the rest of gnulib to assume POSIX.
18823
18824 2010-10-08  Jim Meyering  <meyering@redhat.com>
18825
18826         fdopendir: fix a bug on systems lacking openat and /proc support
18827         OpenBSD 4.7 is one such system.  The most noticeable effect was
18828         failure of any application making nontrivial use of fts: rm, du,
18829         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
18830           ./rm: traversal failed: `a': Bad file descriptor
18831         Debugging that, you see that even though FD 6 was closed just
18832         prior to the opendir call in fd_clone_opendir, its resulting
18833         dir->dd_fd was 8, rather than the expected value of 6:
18834
18835         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
18836         93                close (fd);
18837         (gdb) n
18838         94                dir = fd_clone_opendir (dupfd);
18839         (gdb) n
18840         95                saved_errno = errno;
18841         (gdb) p dir->dd_fd
18842         $11 = 8
18843
18844         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
18845         The problem is that on OpenBSD, fd_clone_opendir has to resort
18846         to using the old-style save/restore CWD mechanism, due to its
18847         lack of openat/proc support, and *that* would steal the FD (6)
18848         that opendir was supposed to use.
18849
18850         The fix is to squirrel away the desired FD so that save_cwd uses a
18851         different one, and then free the dest FD right before calling opendir.
18852         That guarantees opendir will use the required file descriptor.
18853
18854         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
18855
18856 2010-10-08  Bruno Haible  <bruno@clisp.org>
18857
18858         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
18859         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
18860
18861 2010-10-08  Bruno Haible  <bruno@clisp.org>
18862
18863         nanosleep: Make replacement POSIX compliant.
18864         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
18865         is out of range.
18866         Reported by Jim Meyering.
18867
18868 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
18869
18870         bootstrap: add hook for altering gnulib.mk, for Bison
18871         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
18872         the Bison bootstrapping process can rewrite file names and variables
18873         in this file before later parts of 'bootstrap' use the file.
18874         Bison wants to include lib/gnulib.mk from the top-level makefile,
18875         so it needs the file names in this file to be relative to the top
18876         level, not relative to lib; plus it needs variable names to be
18877         rewritten.
18878         (slurp): Use the new function.
18879
18880         bootstrap: reformat for readability
18881         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
18882
18883 2010-10-08  Eric Blake  <eblake@redhat.com>
18884
18885         docs: update cygwin progress
18886         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
18887         1.7.7.
18888         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
18889         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
18890         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
18891         * doc/posix-functions/carg.texi (carg): Likewise.
18892         * doc/posix-functions/cargf.texi (cargf): Likewise.
18893         * doc/posix-functions/casin.texi (casin): Likewise.
18894         * doc/posix-functions/casinf.texi (casinf): Likewise.
18895         * doc/posix-functions/casinh.texi (casinh): Likewise.
18896         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
18897         * doc/posix-functions/catan.texi (catan): Likewise.
18898         * doc/posix-functions/catanf.texi (catanf): Likewise.
18899         * doc/posix-functions/catanh.texi (catanh): Likewise.
18900         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
18901         * doc/posix-functions/ccos.texi (ccos): Likewise.
18902         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
18903         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
18904         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
18905         * doc/posix-functions/cexp.texi (cexp): Likewise.
18906         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
18907         * doc/posix-functions/cimag.texi (cimag): Likewise.
18908         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
18909         * doc/posix-functions/clog.texi (clog): Likewise.
18910         * doc/posix-functions/clogf.texi (clogf): Likewise.
18911         * doc/posix-functions/conj.texi (conj): Likewise.
18912         * doc/posix-functions/conjf.texi (conjf): Likewise.
18913         * doc/posix-functions/cpow.texi (cpow): Likewise.
18914         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
18915         * doc/posix-functions/cproj.texi (cproj): Likewise.
18916         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
18917         * doc/posix-functions/creal.texi (creal): Likewise.
18918         * doc/posix-functions/crealf.texi (crealf): Likewise.
18919         * doc/posix-functions/csin.texi (csin): Likewise.
18920         * doc/posix-functions/csinf.texi (csinf): Likewise.
18921         * doc/posix-functions/csinh.texi (csinh): Likewise.
18922         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
18923         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
18924         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
18925         * doc/posix-functions/ctan.texi (ctan): Likewise.
18926         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
18927         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
18928         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
18929         * doc/posix-headers/complex.texi (complex.h): Likewise.
18930
18931 2010-10-07  Jim Meyering  <meyering@redhat.com>
18932
18933         parse-datetime: avoid compilation failure on OpenBSD 4.7
18934         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
18935         This works around a compilation failure on OpenBSD 4.7:
18936         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
18937
18938 2010-10-07  Eric Blake  <eblake@redhat.com>
18939
18940         docs: update cygwin progress
18941         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
18942         1.7.6.
18943         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
18944         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
18945         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
18946         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
18947         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
18948         Likewise.
18949         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
18950         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
18951         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
18952         Likewise.
18953         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
18954         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
18955         Likewise.
18956         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
18957         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
18958         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
18959         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
18960         Likewise.
18961         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
18962         Likewise.
18963         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
18964
18965         docs: update parse-datetime history
18966         * doc/parse-datetime.texi (Authors of parse_datetime): Better
18967         documentation of this function's history and alternatives.
18968
18969         cygwin: use more robust version check
18970         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
18971         exclude an eventual cygwin 1.9.1.
18972         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
18973         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
18974         (gl_FUNC_STRCASESTR): Likewise.
18975         Reported by Bruno Haible.
18976
18977 2010-10-06  Bruno Haible  <bruno@clisp.org>
18978
18979         string, sys_select: Avoid #including large headers unless necessary.
18980         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
18981         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
18982         OSF/1, BeOS, Haiku.
18983         Reported by Jim Meyering.
18984
18985 2010-10-05  Eric Blake  <eblake@redhat.com>
18986
18987         memmem, strstr, strcasestr: fix bug with long periodic needle
18988         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
18989         periodic needle having false positive.
18990         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
18991         and cygwin 1.7.7.
18992         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
18993         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
18994         (gl_FUNC_STRCASESTR): Likewise.
18995         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
18996         * tests/test-memmem.c (main): Expose the bug.
18997         * tests/test-strcasestr.c (main): Likewise.
18998         * tests/test-strstr.c (main): Likewise.
18999         * tests/test-c-strcasestr.c (main): Likewise.
19000         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
19001         * doc/posix-functions/strstr.texi (strstr): Likewise.
19002         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
19003         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
19004
19005 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
19006
19007         parse-datetime: do some more renaming
19008         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
19009         parse_datetime, not get_date.  Mention the renaming.
19010         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
19011         in comments.
19012         * m4/bison.m4: Likewise.
19013
19014 2010-10-05  Eric Blake  <eblake@redhat.com>
19015
19016         parse-datetime: better name than get_date
19017         * NEWS: Reword the deprecation notice.
19018         * modules/get_date: Rename to modules/parse-datetime.
19019         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
19020         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
19021         * lib/get_date.y: Rename to lib/parse-datetime.y.
19022         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
19023         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
19024         * doc/getdate.texi: Provide fallback wrapper.
19025         * lib/getdate.h: Move guts, and wrap...
19026         * lib/parse-datetime.h: ...new file.
19027         * lib/parse-datetime.y (get_date): Rename...
19028         (parse_datetime): ...to this.
19029         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
19030         (gl_PARSE_DATETIME): ...to this.
19031         * doc/posix-functions/getdate.texi (get_date): Provide fallback
19032         documentation.
19033         * modules/getdate (Files): Provide fallback docs and header.
19034         (Notice, Depends-on): Update references.
19035         * tests/test-parse-datetime.c: Likewise.
19036         * DEPENDENCIES: Likewise.
19037         * MODULES.html.sh (Date and time <time.h>): Likewise.
19038         * doc/parse-datetime.texi (Date input formats)
19039         (Authors of parse_datetime): Likewise.
19040         * modules/parse-datetime (Files, configure.ac, Makefile.am)
19041         (Include): Likewise.
19042         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
19043         * gnulib-tool: Likewise.
19044         * m4/bison.m4 (gl_BISON): Likewise.
19045         Suggested by Bruno Haible.
19046
19047 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
19048
19049         more ports to Solaris tr, which needs [] around ranges
19050         * gnulib-tool: Solaris tr needs [] around ranges.
19051         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
19052         * tests/test-pipe-filter-gi1.c (main): Likewise.
19053         * tests/test-pipe-filter-ii1.c (main): Likewise.
19054
19055 2010-10-05  Eric Blake  <eblake@redhat.com>
19056
19057         bootstrap: fix Solaris regression
19058         * build-aux/bootstrap (check_versions): Solaris tr still needs []
19059         around ranges.
19060         Reported by Pádraig Brady.
19061
19062         bootstrap: work with pkg-config
19063         * build-aux/bootstrap (check_versions): Also transliterate - in
19064         prerequisite name.
19065         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
19066         prerequisites that were already found, to avoid confusion.
19067         Reported by Justin Clift.
19068
19069         faccessat: remove unused wrappers
19070         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
19071         presence of these wrappers dragged in -lgen on Solaris.
19072         Reported by Clemens Brogi; fix suggested by Paul Eggert.
19073
19074 2010-10-05  Jim Meyering  <meyering@redhat.com>
19075
19076         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
19077         * Makefile (sc_pragma_columns): New syntax-check rule.
19078
19079 2010-10-04  Bruno Haible  <bruno@clisp.org>
19080
19081         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
19082         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
19083         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
19084         Reported by Bruce Korb and Eric Blake.
19085
19086 2010-10-04  Bruno Haible  <bruno@clisp.org>
19087
19088         threadlib: Make option --with-libpth-prefix work.
19089         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
19090         use $LIBPTH, not just -lpth.
19091
19092 2010-10-04  Bruno Haible  <bruno@clisp.org>
19093
19094         Avoid line length limitation from HP NonStop system header files.
19095         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
19096         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
19097         * lib/ctype.in.h: Likewise.
19098         * lib/dirent.in.h: Likewise.
19099         * lib/errno.in.h: Likewise.
19100         * lib/fcntl.in.h: Likewise.
19101         * lib/float.in.h: Likewise.
19102         * lib/getopt.in.h: Likewise.
19103         * lib/iconv.in.h: Likewise.
19104         * lib/inttypes.in.h: Likewise.
19105         * lib/langinfo.in.h: Likewise.
19106         * lib/locale.in.h: Likewise.
19107         * lib/math.in.h: Likewise.
19108         * lib/netdb.in.h: Likewise.
19109         * lib/netinet_in.in.h: Likewise.
19110         * lib/poll.in.h: Likewise.
19111         * lib/pthread.in.h: Likewise.
19112         * lib/pty.in.h: Likewise.
19113         * lib/sched.in.h: Likewise.
19114         * lib/se-selinux.in.h: Likewise.
19115         * lib/search.in.h: Likewise.
19116         * lib/signal.in.h: Likewise.
19117         * lib/spawn.in.h: Likewise.
19118         * lib/stdarg.in.h: Likewise.
19119         * lib/stddef.in.h: Likewise.
19120         * lib/stdint.in.h: Likewise.
19121         * lib/stdio.in.h: Likewise.
19122         * lib/stdlib.in.h: Likewise.
19123         * lib/string.in.h: Likewise.
19124         * lib/strings.in.h: Likewise.
19125         * lib/sys_file.in.h: Likewise.
19126         * lib/sys_ioctl.in.h: Likewise.
19127         * lib/sys_select.in.h: Likewise.
19128         * lib/sys_socket.in.h: Likewise.
19129         * lib/sys_stat.in.h: Likewise.
19130         * lib/sys_time.in.h: Likewise.
19131         * lib/sys_times.in.h: Likewise.
19132         * lib/sys_utsname.in.h: Likewise.
19133         * lib/sys_wait.in.h: Likewise.
19134         * lib/sysexits.in.h: Likewise.
19135         * lib/termios.in.h: Likewise.
19136         * lib/time.in.h: Likewise.
19137         * lib/unistd.in.h: Likewise.
19138         * lib/wchar.in.h: Likewise.
19139         * lib/wctype.in.h: Likewise.
19140         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
19141         * modules/ctype (Makefile.am): Likewise.
19142         * modules/dirent (Makefile.am): Likewise.
19143         * modules/errno (Makefile.am): Likewise.
19144         * modules/fcntl-h (Makefile.am): Likewise.
19145         * modules/float (Makefile.am): Likewise.
19146         * modules/getopt-posix (Makefile.am): Likewise.
19147         * modules/iconv-h (Makefile.am): Likewise.
19148         * modules/inttypes (Makefile.am): Likewise.
19149         * modules/langinfo (Makefile.am): Likewise.
19150         * modules/locale (Makefile.am): Likewise.
19151         * modules/math (Makefile.am): Likewise.
19152         * modules/netdb (Makefile.am): Likewise.
19153         * modules/netinet_in (Makefile.am): Likewise.
19154         * modules/poll-h (Makefile.am): Likewise.
19155         * modules/pthread (Makefile.am): Likewise.
19156         * modules/pty (Makefile.am): Likewise.
19157         * modules/sched (Makefile.am): Likewise.
19158         * modules/search (Makefile.am): Likewise.
19159         * modules/selinux-h (Makefile.am): Likewise.
19160         * modules/signal (Makefile.am): Likewise.
19161         * modules/spawn (Makefile.am): Likewise.
19162         * modules/stdarg (Makefile.am): Likewise.
19163         * modules/stddef (Makefile.am): Likewise.
19164         * modules/stdint (Makefile.am): Likewise.
19165         * modules/stdio (Makefile.am): Likewise.
19166         * modules/stdlib (Makefile.am): Likewise.
19167         * modules/string (Makefile.am): Likewise.
19168         * modules/strings (Makefile.am): Likewise.
19169         * modules/sys_file (Makefile.am): Likewise.
19170         * modules/sys_ioctl (Makefile.am): Likewise.
19171         * modules/sys_select (Makefile.am): Likewise.
19172         * modules/sys_socket (Makefile.am): Likewise.
19173         * modules/sys_stat (Makefile.am): Likewise.
19174         * modules/sys_time (Makefile.am): Likewise.
19175         * modules/sys_times (Makefile.am): Likewise.
19176         * modules/sys_utsname (Makefile.am): Likewise.
19177         * modules/sys_wait (Makefile.am): Likewise.
19178         * modules/sysexits (Makefile.am): Likewise.
19179         * modules/termios (Makefile.am): Likewise.
19180         * modules/time (Makefile.am): Likewise.
19181         * modules/unistd (Makefile.am): Likewise.
19182         * modules/wchar (Makefile.am): Likewise.
19183         * modules/wctype (Makefile.am): Likewise.
19184
19185 2010-10-04  Bruno Haible  <bruno@clisp.org>
19186
19187         read-file tests: Avoid a test failure on NonStop Kernel.
19188         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
19189         a regular file.
19190         Reported by Joachim Schmitz <schmitz@hp.com>.
19191
19192 2010-10-03  Bruno Haible  <bruno@clisp.org>
19193
19194         gnulib-tool: Fixes for --create-testdir with --libtool.
19195         * gnulib-tool (func_get_automake_snippet): Don't augment
19196         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
19197         an executable.
19198         (func_create_testdir): Handle module 'alloca' like func_import.
19199         Reported by Bruce Korb <bruce.korb@gmail.com>.
19200
19201 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
19202
19203         Avoid some lines longer than 80 characters.
19204         * lib/stdint.in.h: Break long comment lines.
19205         * lib/math.in.h: Likewise.
19206         (_GL_NUM_UINT_WORDS): New macro, for readability.
19207         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
19208         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
19209         * lib/stdlib.in.h: Likewise.
19210         * lib/spawn.in.h: Likewise.
19211         * lib/sys_socket.in.h: Update an URL.
19212         * lib/sys_stat.in.h: Break long line.
19213
19214 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
19215
19216         Improve pmccabe2html.
19217         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
19218         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
19219         when the sources change. Remove the line in the HTML about "Used
19220         ranges" (which implied that there might be other unused ranges),
19221         rename "Resume" to "Summary" (easier to understand for more users).
19222         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
19223         styles, and some unnecessary blank lines.
19224
19225 2010-10-03  Bruno Haible  <bruno@clisp.org>
19226             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
19227
19228         acl: Add support for ACLs on NonStop Kernel.
19229         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
19230         Check whether the function aclsort() exists.
19231         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
19232         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
19233         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
19234         (acl_nontrivial [HAVE_ACLSORT]: New function.
19235         (file_has_acl): Implement for NonStop Kernel.
19236         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
19237         (qset_acl): Implement for NonStop Kernel.
19238         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
19239         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
19240         (main): Implement for NonStop Kernel.
19241         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
19242         Kernel. Handle this flavor.
19243         * tests/test-set-mode-acl.sh: Likewise.
19244         * tests/test-copy-acl.sh: Likewise.
19245         * tests/test-copy-file.sh: Likewise.
19246
19247 2010-10-03  Bruno Haible  <bruno@clisp.org>
19248
19249         Info about ACLs on NonStop Kernel.
19250         * doc/acl-resources.txt: Add info about NonStop Kernel.
19251         References by Joachim Schmitz <schmitz@hp.com>.
19252
19253 2010-10-02  Bruno Haible  <bruno@clisp.org>
19254
19255         Define missing EDQUOT on NonStop Kernel.
19256         * lib/errno.in.h (EDQUOT): Assign a value if missing.
19257         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
19258         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
19259         missing.
19260         * doc/posix-headers/errno.texi: Mention the NSK bug.
19261         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
19262         Reported by Joachim Schmitz <schmitz@hp.com>.
19263
19264 2010-10-02  Bruno Haible  <bruno@clisp.org>
19265
19266         Update doc for POSIX:2008.
19267         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
19268         Update URL of POSIX specification.
19269
19270 2010-10-02  Bruno Haible  <bruno@clisp.org>
19271
19272         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
19273         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
19274         from gnulib, not from Automake.
19275
19276 2010-10-02  Bruno Haible  <bruno@clisp.org>
19277
19278         New module 'system-posix'.
19279         * modules/system-posix: New file.
19280         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
19281         module is present.
19282         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
19283         GNULIB_SYSTEM_POSIX.
19284         * modules/stdlib (Depends-on): Remove sys_wait.
19285         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
19286         * doc/posix-functions/system.texi: Mention the new module.
19287         * doc/posix-headers/stdlib.texi: Likewise.
19288         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
19289         define test_sys_wait_macros to a no-op.
19290         Reported by Sam Steingold <sds@gnu.org>.
19291
19292 2010-09-30  Bruno Haible  <bruno@clisp.org>
19293
19294         More renaming from 'getdate' to 'get_date'.
19295         * doc/get_date.texi: Renamed from doc/getdate.texi.
19296         * modules/get_date (Files): Update.
19297         * MODULES.html.sh (Date and time <time.h>): Update.
19298         * DEPENDENCIES: Update.
19299         * gnulib-tool: Update comment.
19300         * m4/bison.m4 (gl_BISON): Likewise.
19301         * m4/get_date.m4 (gl_GET_DATE): Likewise.
19302
19303 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
19304
19305         bootstrap: support ACLOCAL_FLAGS during aclocal
19306         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
19307         can add additional -I dir for third-party .m4 files.
19308
19309 2010-09-30  Eric Blake  <eblake@redhat.com>
19310
19311         bootstrap: use glibtoolize on MacOS
19312         * build-aux/bootstrap (check_versions): Convert libtool into
19313         libtoolize.
19314         (tool search): Move libtool check earlier, and look for
19315         glibtoolize for MacOS.
19316         (gnulib_tool_options): Auto-add --libtool when appropriate.
19317         Reported by Justin Clift.
19318
19319         poll: fix typo that broke test on MacOS
19320         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
19321         Reported by Justin Clift.
19322
19323         getdate: rename to get_date
19324         Note: getdate.h is not renamed, to minimize client impact.
19325         * modules/getdate: Mark obsolete.  Move old contents...
19326         * modules/get_date: ...to new module name.
19327         * modules/getdate-tests: Move...
19328         * modules/get_date-tests: ...here.
19329         * m4/getdate.m4: Move...
19330         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
19331         * lib/getdate.y: Move...
19332         * lib/get_date.y: ...here.
19333         * tests/test-getdate.c: Move...
19334         * tests/test-get_date.c: ...here.
19335         * doc/posix-functions/getdate.texi (getdate): Update name.
19336         * NEWS: Mention the change.
19337
19338 2010-09-29  Bruno Haible  <bruno@clisp.org>
19339
19340         Separate the module 'waitpid' from the module 'sys_wait'.
19341         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
19342         present.
19343         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
19344         gl_MODULE_INDICATOR_FOR_TESTS.
19345         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
19346         * modules/sys_wait (Depends-on): Remove waitpid.
19347         (Makefile.am): Substitute GNULIB_WAITPID.
19348         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
19349         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
19350         signature only if the 'waitpid' module is present.
19351         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
19352         * NEWS: Mention the change.
19353         * modules/grantpt (Depends-on): Add waitpid.
19354         * modules/wait-process (Depends-on): Likewise.
19355
19356 2010-09-29  Bruno Haible  <bruno@clisp.org>
19357
19358         More tests for module 'sys_wait'.
19359         * modules/sys_wait-c++-tests: New file.
19360         * tests/test-sys_wait-c++.cc: New file.
19361         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
19362         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
19363
19364 2010-09-29  Bruno Haible  <bruno@clisp.org>
19365
19366         New module 'waitpid'.
19367         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
19368         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
19369         Don't include <process.h>.
19370         (waitpid): Declare only, using modern idiom.
19371         * m4/waitpid.m4: New file.
19372         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
19373         * modules/waitpid: New file.
19374         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
19375         (Makefile.am): Update.
19376         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
19377
19378 2010-09-28  Bruno Haible  <bruno@clisp.org>
19379
19380         poll: Assume ANSI C.
19381         * lib/poll.c (poll): Use an ANSI C declaration.
19382
19383 2010-09-28  Bruno Haible  <bruno@clisp.org>
19384
19385         poll-h: Create poll.h on all platforms.
19386         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
19387         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
19388         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
19389         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
19390         (gl_REPLACE_POLL_H): Don't set POLL_H.
19391         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
19392         * modules/poll-h (Depends-on): Add include_next.
19393         (Makefile.am): Create poll.h unconditionally. Substitute also
19394         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
19395
19396 2010-09-28  Bruno Haible  <bruno@clisp.org>
19397
19398         Tests for module 'poll-h'.
19399         * modules/poll-h-c++-tests: New file.
19400         * tests/test-poll-h-c++.cc: New file.
19401
19402         Tests for module 'poll-h'.
19403         * modules/poll-h-tests: New file.
19404         * tests/test-poll-h.c: New file.
19405
19406 2010-09-28  Bruno Haible  <bruno@clisp.org>
19407
19408         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
19409         * modules/poll-h (Depends-on): Add 'extensions'.
19410
19411 2010-09-28  Bruno Haible  <bruno@clisp.org>
19412
19413         New module 'poll-h'.
19414         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
19415         (poll): Use modern idiom.
19416         * modules/poll-h: New file.
19417         * modules/poll (Files): Remove lib/poll.in.h.
19418         (Depends-on): Add poll-h.
19419         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
19420         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
19421         * m4/poll_h.m4: New file.
19422         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
19423         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
19424         and invoke gl_REPLACE_POLL_H.
19425         * lib/poll.c: Use common idiom.
19426         * tests/test-poll.c: Likewise.
19427         * doc/posix-headers/poll.texi: Mention the poll-h module.
19428         Suggested by Eric Blake.
19429
19430 2010-09-26  Bruno Haible  <bruno@clisp.org>
19431
19432         sys_wait: Implement WSTOPSIG.
19433         * lib/sys_wait.in.h (WSTOPSIG): New macro.
19434         Reported by Simon Josefsson.
19435
19436 2010-09-26  Simon Josefsson  <simon@josefsson.org>
19437
19438         stdlib, sys_wait: Avoid compilation error on mingw.
19439         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
19440
19441 2010-09-26  Bruno Haible  <bruno@clisp.org>
19442
19443         stdlib tests: Avoid code duplication.
19444         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
19445         * modules/sys_wait-tests (Files): Likewise.
19446         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
19447         * tests/test-stdlib.c: Include test-sys_wait.h.
19448         (main): Invoke test_sys_wait_macros.
19449         * tests/test-sys_wait.c: Include test-sys_wait.h.
19450         (main): Invoke test_sys_wait_macros.
19451
19452 2010-09-25  Simon Josefsson  <simon@josefsson.org>
19453
19454         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
19455         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
19456         sure Windows sockets are working before calling getaddrinfo.
19457         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
19458         * doc/gnulib.texi (Windows sockets): Fix typo.
19459
19460 2010-09-25  Bruno Haible  <bruno@clisp.org>
19461
19462         Tests for module 'regex-quote'.
19463         * modules/regex-quote-tests: New file.
19464         * tests/test-regex-quote.c: New file.
19465
19466         New module 'regex-quote'.
19467         * lib/regex-quote.h: New file.
19468         * lib/regex-quote.c: New file.
19469         * modules/regex-quote: New file.
19470         Suggested by Reuben Thomas <rrt@sc3d.org>.
19471
19472 2010-09-24  Bruno Haible  <bruno@clisp.org>
19473
19474         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
19475         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
19476
19477 2010-09-23  Bruno Haible  <bruno@clisp.org>
19478
19479         setenv: Relax license.
19480         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
19481         Blake.
19482         Requested by Eric Blake.
19483
19484 2010-09-22  Bruno Haible  <bruno@clisp.org>
19485
19486         termios: Relax license.
19487         * modules/termios (License): Change to LGPLv2+.
19488         Requested by Eric Blake.
19489
19490 2010-09-22  Bruno Haible  <bruno@clisp.org>
19491
19492         threadlib: Allow the package to change the default to 'no'.
19493         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
19494         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
19495         Reported by Paul Eggert.
19496
19497 2010-09-22  Pádraig Brady  <P@draigbrady.com>
19498             Bruno Haible  <bruno@clisp.org>
19499
19500         Fix endless loop in mbmemcasecoll.
19501         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
19502         byte.
19503         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
19504
19505 2010-09-22  Bruno Haible  <bruno@clisp.org>
19506
19507         Tests for module 'memcoll'.
19508         * modules/memcoll-tests: New file.
19509         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
19510
19511         memcoll, xmemcoll: Clarify size vs. length.
19512         * modules/memcoll.c (memcoll0): Clarify specification.
19513         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
19514         passed to collate_error.
19515
19516 2010-09-22  Bruno Haible  <bruno@clisp.org>
19517
19518         Tests for module 'memcasecmp'.
19519         * modules/memcasecmp-tests: New file.
19520         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
19521
19522 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
19523
19524         * lib/pthread.in.h: Add split double-inclusion guard, and include
19525         system <pthread.h> if there is one.  Use @@-style as in other
19526         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
19527         pthread.h doesn't.
19528         (pthread_mutexattr_destroy, pthread_mutexattr_init):
19529         (pthread_mutexattr_settype, pthread_mutex_trylock):
19530         New static inline functions, if there's no system <pthread.h>.
19531         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
19532         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
19533         Approximate with mutexes if the system lacks spinlocks, as in
19534         MacOS.
19535         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
19536         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
19537         @@-style.  Check for spinlocks separately.
19538         (gl_PTHREAD_DEFAULTS): New macro.
19539         * modules/pthread: Redo to use a more typical style for in.h files.
19540
19541 2010-09-21  Eric Blake  <eblake@redhat.com>
19542
19543         net_if: enhance tests
19544         * tests/test-net_if.c (main): Move signature checks earlier.
19545         Print failures to stderr.
19546         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
19547         Document the bug that we do not yet fix.
19548
19549 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
19550
19551         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
19552         about gnulib, not GSS.
19553
19554 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
19555
19556         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
19557         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
19558         for Emacs.
19559         * build-aux/pmccabe2html: Make Makefile.am example code more
19560         cut-and-paste friendly.
19561
19562 2010-09-21  Simon Josefsson  <simon@josefsson.org>
19563
19564         * tests/test-net_if.c: New file.
19565         * modules/net_if-tests: New file.
19566
19567 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
19568
19569         pthread: add pthread_spin_destroy
19570         * lib/pthread.in.h (pthread_spin_destroy): New function.
19571
19572 2010-09-19  Bruno Haible  <bruno@clisp.org>
19573
19574         gnulib-tool: Fix --help output.
19575         * gnulib-tool (func_usage): Fix help message.
19576         Reported by Reuben Thomas <rrt@sc3d.org>.
19577
19578 2010-09-18  Jim Meyering  <meyering@redhat.com>
19579
19580         maint.mk: avoid unexpanded \n in two diagnostics
19581         * top/maint.mk (sc_prohibit_always_true_header_tests):
19582         Don't use a literal \n in a halt=... assignment.  It would not be
19583         expanded, and the two \n bytes would appear in the diagnostic output
19584         rather than the desired newline.  Use halt=$$(printf ... instead.
19585         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
19586
19587 2010-09-18  Bruno Haible  <bruno@clisp.org>
19588
19589         netinet_in: Doc tweak.
19590         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
19591         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
19592
19593 2010-09-18  Jim Meyering  <meyering@redhat.com>
19594
19595         init.sh: correct an outdated comment
19596         * tests/init.sh (create_exe_shims_):  s/function/alias/
19597
19598         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
19599         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
19600         a file named "*.exe" is removed between the glob expansion and the
19601         processing of that oddly named file.
19602
19603 2010-09-17  Eric Blake  <eblake@redhat.com>
19604
19605         mirbsd: add some more support
19606         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
19607         in BSD family.
19608         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
19609         devices as OpenBSD.
19610         * m4/host-os.m4 (mirbsd): Add MirBSD.
19611
19612         tests: fix unportable assumption on sys/wait.h
19613         * tests/test-sys_wait.c (main): Relax test.
19614         * tests/test-stdlib.c (main): Likewise.
19615
19616         init.sh: accomodate directory with no .exes
19617         * tests/init.sh: Accomodate directory containing only scripts.
19618
19619         tests: avoid compiler warning
19620         * tests/test-stdlib.c (main): Use the variable.
19621
19622         fdutimens, fdutimensat: update signature, again
19623         * lib/utimens.h (gl_futimens): Delete, and move signature...
19624         (fdutimens): ...here.
19625         (fdutimensat): Rearrange signature.
19626         (lutimensat): Rename variable for clarity.
19627         * lib/fdutimensat.c (fdutimensat): Update signature.
19628         * lib/utimens.c (fdutimens): Likewise.
19629         (gl_futimens): Delete.
19630         (utimens, lutimens): Update callers.
19631         * lib/futimens.c (futimens): Likewise.
19632         * tests/test-fdutimensat.c: Likewise.
19633         * tests/test-utimens.c: Likewise.
19634         * tests/test-futimens.h: Update comment.
19635         * NEWS: Mention this.
19636         Suggested by Paul Eggert.
19637
19638 2010-09-17  Bruno Haible  <bruno@clisp.org>
19639
19640         Take over the maintenance of some older macros from Autoconf.
19641         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
19642         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
19643         GNU Autoconf.
19644         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
19645         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
19646
19647 2010-09-17  Eric Blake  <eblake@redhat.com>
19648
19649         fdutimensat: drop atflag validation
19650         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
19651         with valid fd, to close a race scenario where futimens is
19652         unsupported and FILE was replaced by a symlink.
19653         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
19654         accordingly.
19655         Suggested by Paul Eggert.
19656
19657 2010-09-16  Bruno Haible  <bruno@clisp.org>
19658
19659         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
19660         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
19661
19662 2010-09-16  Bruno Haible  <bruno@clisp.org>
19663
19664         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
19665         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
19666         login_tty exists.
19667         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
19668
19669 2010-09-16  Bruno Haible  <bruno@clisp.org>
19670
19671         login_tty: Make the replacement code work on BSD systems.
19672         * lib/login_tty.c: Include <sys/ioctl.h>.
19673         (login_tty): Use ioctl TIOCSCTTY when available.
19674         * modules/login_tty (Depends-on): Add sys_ioctl.
19675         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
19676
19677 2010-09-16  Bruno Haible  <bruno@clisp.org>
19678
19679         login_tty: Stricter unit test.
19680         * modules/login_tty-tests (Depends-on): Add tcgetsid.
19681         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
19682         and tcgetsid() after login_tty.
19683         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
19684
19685 2010-09-16  Bruno Haible  <bruno@clisp.org>
19686
19687         New module 'tcgetsid'.
19688         * lib/tcgetsid.c: New file.
19689         * m4/tcgetsid.m4: New file.
19690         * modules/tcgetsid: New file.
19691         * modules/termios (Depends-on): Add c++defs, warn-on-use.
19692         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
19693         GNULIB_TCGETSID, HAVE_TCGETSID.
19694         * lib/termios.in.h: Include <sys/types.h>.
19695         (tcgetsid): New declaration.
19696         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
19697         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
19698         * doc/posix-functions/tcgetsid.texi: Mention the new module.
19699         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
19700
19701 2010-09-16  Bruno Haible  <bruno@clisp.org>
19702
19703         Tests for module 'termios'.
19704         * modules/termios-c++-tests: New file.
19705         * modules/termios-tests: New file.
19706         * tests/test-termios-c++.cc: New file.
19707         * tests/test-termios.c: New file.
19708
19709         New module 'termios'.
19710         * modules/termios: New file.
19711         * lib/termios.in.h: New file.
19712         * m4/termios_h.m4: New file.
19713         * doc/posix-headers/termios.texi: Mention the new module.
19714
19715 2010-09-16  Eric Blake  <eblake@redhat.com>
19716
19717         fdutimensat: add an atflag parameter
19718         * lib/fdutimensat.c (fdutimensat): Add new parameter.
19719         * lib/utimens.h (fdutimensat): Update prototype.
19720         * tests/test-fdutimensat.c: Adjust test to match.
19721         * NEWS: Document the change.
19722         Suggested by Paul Eggert.
19723
19724 2010-09-16  Bruno Haible  <bruno@clisp.org>
19725
19726         Fix typos in comments.
19727         * lib/striconveh.h: Fix typo in comment.
19728         * lib/login_tty.c (login_tty): Likewise.
19729
19730 2010-09-15  Bruno Haible  <bruno@clisp.org>
19731
19732         stdlib: clarify MirBSD WEXITSTATUS bug
19733         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
19734         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
19735
19736 2010-09-15  Eric Blake  <eblake@redhat.com>
19737
19738         stdlib: work around MirBSD WEXITSTATUS bug
19739         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
19740         * modules/stdlib (Depends-on): Add sys_wait.
19741         * tests/test-sys_wait.c (main): Enhance test.
19742         * tests/test-stdlib.c (main): Likewise.
19743         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
19744
19745         docs: mention MacOS issue with WEXITSTATUS(constant)
19746         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
19747         issue.
19748         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
19749
19750         strnlen: add tests
19751         * modules/strnlen-tests: New file.
19752         * tests/test-strnlen.c: Likewise.
19753
19754 2010-09-14  Bruno Haible  <bruno@clisp.org>
19755
19756         unistr/base: Avoid link errors when module 'libunistring' is also used.
19757         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
19758         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
19759         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
19760         Declare also when HAVE_LIBUNISTRING is set.
19761         Reported by Pádraig Brady <P@draigbrady.com>.
19762
19763 2010-09-14  Eric Blake  <eblake@redhat.com>
19764
19765         test-rawmemchr: make more robust
19766         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
19767         (Depends-on, configure.ac): Add needed prerequisites to use it.
19768         * modules/memchr-tests (Files, Depends-on, configure.ac):
19769         Likewise, to avoid implicit reliance on memchr module prereqs.
19770         * tests/test-memchr.c (main): Ensure proper masking.
19771         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
19772         reads.
19773
19774         memchr: detect glibc Alpha bug
19775         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
19776         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
19777         Alpha.
19778         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
19779         * tests/test-memchr.c (main): Enhance test.
19780         Reported by Nelson H. F. Beebe.
19781
19782 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
19783
19784         fts, getcwd, glob: audit for dirfd returning -1
19785         * lib/fts.c (opendir): Remove #define; no longer used.
19786         (opendirat): New arg PDIR_FD.  All callers changed.
19787         (fts_build, _opendir2): Use new opendirat to avoid the need for
19788         dirfd, or for checking whether dirfd returns a negative value.
19789         Don't use opendir; always use openat followed by fdopendir.
19790         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
19791         it.
19792         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
19793         returns -1 here.
19794         * modules/fts (Depends-on): Remove dirfd.
19795         * modules/getcwd (Depends-on): Likewise.
19796
19797 2010-09-13  Eric Blake  <eblake@redhat.com>
19798
19799         float: fix broken MirBSD header
19800         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
19801         * doc/posix-headers/float.texi (float.h): Document it.
19802
19803 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
19804
19805         fts: use O_NOFOLLOW to avoid race condition when opening a directory
19806         * lib/fts.c (opendirat): New arg extra_flags.
19807         (__opendir2): Use it to avoid following symlinks when opening
19808         a directory, if symlinks are not supposed to be followed.  See
19809         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
19810
19811         fdopendir: preserve argument fd before returning
19812         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
19813         (fdopendir_with_dup, fd_clone_opendir): New static functions.
19814         (fdopendir): Use them, arranging for FD to be open to the same
19815         directory that it was when it started.  (It might be temporarily
19816         closed while fdopendir is running, so this not thread- or
19817         signal-safe.)  Be careful to do the right thing even when file
19818         descriptors are scarce and dup fails with errno == EMFILE.  See
19819         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
19820
19821 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
19822
19823         regex: Pass the system regex if its only problem is 32-bit regoff_t.
19824         * NEWS: Document change.
19825         * m4/regex.m4: Disable test for regoff_t size.
19826
19827 2010-09-13  Jim Meyering  <meyering@redhat.com>
19828
19829         fts: don't operate on an invalid file descriptor after failed dup
19830         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
19831         negative file descriptor.
19832
19833 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
19834
19835         savedir: add streamsavedir, deprecate fdsavedir
19836         * NEWS: Mention deprecation of fdsavedir.
19837         * lib/savedir.c (streamsavedir): New extern function, whose name
19838         ends in "savedir" to be consistent with the others.  This differs
19839         from savedirstream in that it doesn't close its argument.  The
19840         next version of GNU tar will use this instead of fdsavedir, to
19841         avoid some race conditions and conserve file descriptors.
19842         (savedirstream): Reimplement as a wrapper around streamsavedir.
19843         (fdsavedir): Add a comment deprecating this function.  As far as
19844         I know, only GNU tar used it, and GNU tar doesn't need it any more.
19845         * lib/savedir.h (streamsavedir): New decl.
19846         (fdsavedir): Add a comment deprecating this.
19847
19848 2010-09-10  Bruno Haible  <bruno@clisp.org>
19849
19850         langinfo: Fix last commit.
19851         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
19852         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
19853         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
19854
19855 2010-09-10  Bruno Haible  <bruno@clisp.org>
19856
19857         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
19858         * lib/progreloc.c (O_EXEC): Define fallback.
19859
19860 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
19861
19862         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
19863         * NEWS: Document recent changes to fcntl-h.
19864         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
19865         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
19866         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
19867         Similarly for O_SEARCH; this last was already true, but not documented.
19868         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
19869         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
19870         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
19871         Likewise.
19872         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
19873         is zero, not whether it is defined.
19874         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
19875         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
19876         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
19877
19878 2010-09-10  Bruno Haible  <bruno@clisp.org>
19879
19880         langinfo, nl_langinfo: Fix for IRIX 5.3.
19881         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
19882         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
19883         HAVE_LANGINFO_YESEXPR.
19884         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
19885         HAVE_LANGINFO_YESEXPR.
19886         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
19887         HAVE_LANGINFO_T_FMT_AMPM is 0.
19888         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
19889         HAVE_LANGINFO_YESEXPR is 0.
19890         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
19891         NOEXPR.
19892         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
19893         * doc/posix-functions/nl_langinfo.texi: Likewise.
19894         Reported by Eric Blake.
19895
19896 2010-09-10  Bruno Haible  <bruno@clisp.org>
19897
19898         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
19899         * doc/glibc-functions/login_tty.texi: Mention the include file problem
19900         on FreeBSD 8.0 and OpenBSD 4.6.
19901         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
19902         * m4/pty_h.m4 (gl_PTY_H): Likewise.
19903         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
19904         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
19905         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
19906         ac_includes_default.
19907         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
19908
19909 2010-09-09  Eric Blake  <eblake@redhat.com>
19910
19911         strsignal: work around NetBSD bug
19912         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
19913         * lib/string.in.h (includes): Likewise.
19914         * doc/posix-functions/strsignal.texi (strsignal): Document the
19915         bug.
19916         Reported by Nelson H. F. Beebe.
19917
19918         gnulib-tool: work with NetBSD /bin/sh
19919         * gnulib-tool (func_cache_var, func_cache_lookup_module)
19920         (func_get_description, func_get_comment, func_get_status)
19921         (func_get_notice, func_get_applicability, func_get_filelist)
19922         (func_get_dependencies, func_get_autoconf_early_snippet)
19923         (func_get_autoconf_snippet, func_get_automake_snippet)
19924         (func_get_include_directive, func_get_link_directive)
19925         (func_get_license, func_get_maintainer, func_import): Avoid
19926         shell syntax errors from parsing syntax extensions.
19927
19928 2010-09-09  Bruno Haible  <bruno@clisp.org>
19929
19930         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
19931         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
19932         a reliable way to determine whether the 'alias' command works.
19933
19934 2010-09-08  Jim Meyering  <meyering@redhat.com>
19935
19936         init.sh: penalize a set-x-impaired shell; don't disqualify it
19937         * tests/init.sh: Too many shells corrupt application stderr when
19938         you set -x, so we can't afford to disqualify them, since at least
19939         on Irix-6.5, that would disqualify all bourne shells.
19940         Instead, use a two-pass approach.
19941         On the first pass, try to find a shell that meets the stricter
19942         condition that set -x does not corrupt stderr.
19943         If no shell meets the stricter condition, retest each candidate
19944         shell, but without that extra condition.  Finally, when
19945         VERBOSE=yes is requested and set -x might cause trouble, simply
19946         issue a warning and refrain from enabling debug output.
19947
19948 2010-09-08  Eric Blake  <eblake@redhat.com>
19949
19950         unsetenv: fix OpenBSD bug
19951         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
19952         * doc/posix-functions/unsetenv.texi (unsetenv): Update
19953         documentation.
19954         Reported by Jim Meyering.
19955
19956         strtod: work around IRIX 6.5 bug
19957         * lib/strtod.c (strtod): Reparse number on shorter string if
19958         exponent parse was invalid.
19959         * tests/test-strtod.c (main): Add check for "0x1p 2".
19960         Reported by Tom G. Christensen.
19961
19962         getopt: optimize previous patch
19963         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
19964         empty variable.  Speed up awk script.
19965         Reported by Paolo Bonzini.
19966
19967 2010-09-08  Jim Meyering  <meyering@redhat.com>
19968
19969         test.sh: disqualify shells for which set -x corrupts stderr
19970         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
19971         and OpenBSD 4.7.  They make it so with "set -x", environment settings
19972         appear in stderr output.  For example, this command:
19973             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
19974         prints "P=1" on those two systems:
19975
19976 2010-09-08  Bruno Haible  <bruno@clisp.org>
19977
19978         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
19979         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
19980         commands, because some shells ignore redirections when there is an
19981         error in the command lookup.
19982         Reported by Eric Blake.
19983
19984 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
19985
19986         * lib/regex.h: Fix a mention of `regex_compile' (should be
19987         `re_compile_pattern').
19988         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
19989         (re_set_registers): Correct name of parameter in comment.
19990
19991         * doc/regex.texi: Add documentation for missing syntax flags.
19992         Remove commented-out documentation of defunct syntax option
19993         RE_NO_EMPTY_ALTS.
19994         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
19995         Add documentation of re_set_registers.
19996         Document trick to re-use a pattern buffer by setting fastmap manually.
19997         Update documentation of struct re_pattern_buffer per public members.
19998         Uncomment documentation of equivalence class operators and
19999         collating symbol operators, since they are now implemented,
20000         Explain leftmost-longest matching in relation to alternatives.
20001         Tidy documentation of substring matching.
20002         Remove POSIX documentation, which is done better in
20003         glibc, and refer the reader there. Keep BSD API documentation, as
20004         that is not readily available elsewhere.
20005
20006 2010-09-07  Eric Blake  <eblake@redhat.com>
20007
20008         getopt: handle POSIXLY_CORRECT set but not exported
20009         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
20010         export state of POSIXLY_CORRECT, due to bash set -o posix.
20011         Reported by Dustin J. Mitchell.
20012
20013 2010-09-05  Bruno Haible  <bruno@clisp.org>
20014
20015         gnulib-tool: Highlight the changed options.
20016         * gnulib-tool (func_usage): Display the --import, --add-import,
20017         --remove-import explanations in bold font.
20018
20019 2010-09-06  Karl Berry  <karl@gnu.org>
20020
20021         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
20022
20023 2010-09-05  Bruno Haible  <bruno@clisp.org>
20024
20025         uniwidth/width: Update comment.
20026         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
20027         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
20028
20029 2010-09-05  Bruno Haible  <bruno@clisp.org>
20030
20031         isinf, isnan: Relax license.
20032         * modules/isinf (License): Change from GPL to LGPL, with consent from
20033         Ben Pfaff.
20034         * modules/isnan (License): Likewise.
20035         Requested by Ludovic Courtès.
20036
20037 2010-09-04  Bruno Haible  <bruno@clisp.org>
20038
20039         gnulib-tool: Help migration from --import to --add-import or --update.
20040         * gnulib-tool: Emit a verbose error message when --import is used
20041         without any module name.
20042
20043 2010-09-04  Bruno Haible  <bruno@clisp.org>
20044
20045         Update doc about gnulib-tool.
20046         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
20047         'gnulib-tool --update' in more detail.
20048         Reported by Eric Blake.
20049
20050 2010-09-04  Bruno Haible  <bruno@clisp.org>
20051
20052         gnulib-tool: Change --import. New options --add/remove-import.
20053         * gnulib-tool: New options --add-import, --remove-import.
20054         (func_usage): Document them.
20055         (have_associative): Define always.
20056         (func_import): In import mode, don't merge the specified settings with
20057         the cached settings. Implement remove-import mode.
20058         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
20059         Explain when to use them versus --import.
20060         (Simple update): Use --add-import instead of --import.
20061         * NEWS: Mention the change.
20062
20063 2010-09-04  Bruno Haible  <bruno@clisp.org>
20064
20065         * doc/gnulib-tool.texi (Initial import): Update paragraph about
20066         separate gnulib.mk.
20067
20068 2010-09-04  Bruno Haible  <bruno@clisp.org>
20069
20070         gnulib-tool: Don't talk about CVS any more.
20071         * gnulib-tool (func_usage, func_import): Write "version control"
20072         instead of CVS.
20073
20074 2010-09-04  Jim Meyering  <meyering@redhat.com>
20075
20076         maint.mk: avoid obscure sc_copyright_check failure in coreutils
20077         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
20078         false positives (whose names may be ill-chosen) when searching
20079         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
20080         would cause a false-positive.
20081
20082         avoid coreutils "make distcheck" failure
20083         Coreutils tests with an absolute build directory name that contains
20084         a space.  Not quoting this directory name caused a failure.
20085         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
20086         * tests/test-vc-list-files-cvs.sh: Likewise.
20087
20088 2010-09-04  Bruno Haible  <bruno@clisp.org>
20089
20090         gnulib-tool: Avoid error when run in a package without Makefile.am.
20091         * gnulib-tool: When collecting the m4dirs in a package that does not
20092         have a Makefile.am, eliminate those directories that contain no
20093         gnulib-cache.m4. Fix expression that counts these directories.
20094
20095 2010-09-04  Bruno Haible  <bruno@clisp.org>
20096
20097         update-copyright test: Improve output when perl is missing or too old.
20098         * tests/test-update-copyright.sh: Move test of Perl version down after
20099         the test whether Perl exists. Provide an explanation relating Perl's
20100         error message to Automake's SKIP: message.
20101
20102 2010-09-04  Bruno Haible  <bruno@clisp.org>
20103
20104         Don't augment PATH in TESTS_ENVIRONMENT.
20105         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
20106         set abs_aux_dir instead of augmenting PATH.
20107         * modules/vc-list-files-tests (Makefile.am): Likewise.
20108         * tests/test-update-copyright.sh: Augment PATH here.
20109         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
20110         path_prepend_.
20111         * tests/test-vc-list-files-git.sh: Likewise.
20112
20113 2010-09-04  Jim Meyering  <meyering@redhat.com>
20114
20115         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
20116         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
20117
20118 2010-09-04  Bruno Haible  <bruno@clisp.org>
20119
20120         strdup: Fix compilation error in C++ mode.
20121         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
20122         the macro.
20123
20124 2010-09-04  Bruno Haible  <bruno@clisp.org>
20125
20126         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
20127         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
20128         macro into a function.
20129         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
20130
20131 2010-09-04  Bruno Haible  <bruno@clisp.org>
20132
20133         Set PATH_SEPARATOR the same way autoconf does.
20134         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
20135         the value of PATH_SEPARATOR the same way autoconf-generated configure
20136         scripts do.
20137         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
20138         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
20139
20140 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
20141
20142         Set PATH_SEPARATOR the same way autoconf does.
20143         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
20144         the same way autoconf-generated configure scripts do.
20145         * posix-modules: Likewise.
20146
20147 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
20148
20149         hash: fix safe_hasher const typo
20150         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
20151         const; otherwise, there is a type error later.
20152
20153 2010-09-02  Jim Meyering  <meyering@redhat.com>
20154
20155         test-update-copyright.sh: require perl 5.8.0
20156         * tests/test-update-copyright.sh: Require 5.8.0,
20157         which Tom G. Christensen has confirmed is adequate,
20158         while 5.6.1 is not.
20159
20160 2010-09-02  Eric Blake  <eblake@redhat.com>
20161
20162         tests: init.sh improvements for re-exec'ing with zsh
20163         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
20164         -vx through shell re-exec.
20165         Reported by Tom G. Christensen.
20166
20167         wctype: fix typo in previous commit
20168         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
20169         Reported by Ludovic Courtès.
20170
20171 2010-09-02  Jim Meyering  <meyering@redhat.com>
20172
20173         test-update-copyright.sh: skip test if Perl is too old
20174         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
20175         Reported by Tom G. Christensen.
20176
20177 2010-09-02  Bruno Haible  <bruno@clisp.org>
20178
20179         wctype: Avoid compilation error on IRIX 6.5.30.
20180         * lib/wctype.in.h (iswblank): Declare with a replacement if
20181         REPLACE_ISWBLANK is set.
20182         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
20183         declared. Set REPLACE_ISWBLANK.
20184         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
20185         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
20186         * doc/posix-headers/wctype.texi: Likewise.
20187         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
20188
20189 2010-09-01  Bruno Haible  <bruno@clisp.org>
20190
20191         New module 'socketlib'.
20192         * modules/socketlib: New file.
20193         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
20194         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
20195         * modules/sockets (Depends-on): Add socketlib.
20196         Suggested by Sam Steingold <sds@gnu.org>.
20197
20198 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
20199
20200         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
20201
20202         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
20203         when one needs search access to a directory but not read access.
20204         On systems where it is available, it works in some cases where
20205         O_RDONLY does not, namely on directories that are searchable but
20206         not readable, and which need only to be searchable.  If O_SEARCH
20207         is not available, fall back to the traditional method of using
20208         O_RDONLY.
20209
20210         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
20211         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
20212         when opening a directory that needs only to be searchable.
20213         * lib/chdir-safer.c (chdir_no_follow): Likewise.
20214         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
20215         * lib/openat-proc.c (openat_proc_name): Likewise.
20216         * lib/openat.c (openat_needs_fchdir): Likewise.
20217         * lib/save-cwd.c (save_cwd): Likewise.
20218         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
20219
20220 2010-08-28  Bruno Haible  <bruno@clisp.org>
20221
20222         New module 'host-cpu-c-abi'.
20223         * modules/host-cpu-c-abi: New file.
20224         * m4/host-cpu-c-abi.m4: New file, based on part of
20225         clisp/src/m4/general.m4.
20226         Requested by Sam Steingold <sds@gnu.org>.
20227
20228 2010-08-31  Eric Blake  <eblake@redhat.com>
20229         and Jim Meyering  <meyering@redhat.com>
20230
20231         hash: factor, and guard against misbehaving hasher function
20232         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
20233         of table->hasher's return value.  Also protect against a hash value
20234         so large that adding it to table->bucket results in a NULL pointer.
20235         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
20236         Use it in place of open-coded check-and-abort.
20237
20238 2010-08-30  Bruno Haible  <bruno@clisp.org>
20239
20240         hash: silence spurious clang warning
20241         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
20242         Reported by Eric Blake.
20243
20244 2010-08-30  Eric Blake  <eblake@redhat.com>
20245
20246         strstr, memmem, strcasestr: avoid leaked shell message
20247         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
20248         FreeBSD.
20249         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
20250         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
20251
20252         tests: silence clang warning
20253         * tests/test-malloca.c (do_allocation): Avoid dead store.
20254
20255 2010-08-29  Bruno Haible  <bruno@clisp.org>
20256
20257         gettext: Fix recent mistake.
20258         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
20259
20260 2010-08-29  Bruno Haible  <bruno@clisp.org>
20261
20262         selinux-h: Offer a --without-selinux option.
20263         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
20264         --without-selinux was specified, skip all tests and define
20265         HAVE_SELINUX_SELINUX_H to 0.
20266         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
20267         set LIB_SELINUX to empty.
20268         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
20269         gl_LIBSELINUX. If --without-selinux was specified, replace
20270         selinux/context.h.
20271         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
20272
20273 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20274             Bruno Haible  <bruno@clisp.org>
20275
20276         Make the module 'realloc-gnu' work again on AIX and OSF/1.
20277         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
20278         of HAVE_REALLOC.
20279         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
20280         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
20281         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
20282         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
20283
20284 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20285             Bruno Haible  <bruno@clisp.org>
20286
20287         Make the module 'calloc-gnu' work again on AIX and OSF/1.
20288         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
20289         HAVE_CALLOC.
20290         * lib/xmalloc.c: Update accordingly.
20291         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
20292         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
20293         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
20294
20295 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20296             Bruno Haible  <bruno@clisp.org>
20297
20298         Make the module 'malloc-gnu' work again on AIX and OSF/1.
20299         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
20300         HAVE_MALLOC.
20301         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
20302         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
20303         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
20304
20305 2010-08-29  Bruno Haible  <bruno@clisp.org>
20306
20307         Update modules list.
20308         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
20309         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
20310         (String handling <string.h>): Add astrxfrm.
20311         (File system functions): Add readlinkat.
20312
20313 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20314
20315         Tests for module 'realloc-gnu'.
20316         * modules/realloc-gnu-tests: New file.
20317         * tests/test-realloc-gnu.c: New file.
20318
20319         Tests for module 'calloc-gnu'.
20320         * modules/calloc-gnu-tests: New file.
20321         * tests/test-calloc-gnu.c: New file.
20322
20323         Tests for module 'malloc-gnu'.
20324         * modules/malloc-gnu-tests: New file.
20325         * tests/test-malloc-gnu.c: New file.
20326
20327 2010-08-28  Bruno Haible  <bruno@clisp.org>
20328
20329         Rename module 'realloc' -> 'realloc-gnu'.
20330         * modules/realloc-gnu: New file, copied from modules/realloc.
20331         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
20332         obsolete.
20333         * modules/mgetgroups (Depends-on): Update.
20334         * doc/posix-functions/realloc.texi: Update.
20335         * NEWS: Mention the change.
20336
20337         Rename module 'calloc' -> 'calloc-gnu'.
20338         * modules/calloc-gnu: New file, copied from modules/calloc.
20339         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
20340         obsolete.
20341         * doc/posix-functions/calloc.texi: Update.
20342         * NEWS: Mention the change.
20343
20344         Rename module 'malloc' -> 'malloc-gnu'.
20345         * modules/malloc-gnu: New file, copied from modules/malloc.
20346         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
20347         obsolete.
20348         * modules/argp (Depends-on): Update.
20349         * modules/regex (Depends-on): Update.
20350         * doc/posix-functions/malloc.texi: Update.
20351         * NEWS: Mention the change.
20352
20353 2010-08-28  Eric Blake  <eblake@redhat.com>
20354
20355         pread, pwrite: add missing dependency
20356         * modules/pread (Depends-on): Add extensions.
20357         * modules/pwrite (Depends-on): Likewise.
20358
20359 2010-08-28  Bruno Haible  <bruno@clisp.org>
20360
20361         unistr/u*-strchr: Fix tests dependencies.
20362         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
20363         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
20364         Reported by Ian Beckwith <ianb@erislabs.net>.
20365
20366 2010-08-28  Bruno Haible  <bruno@clisp.org>
20367
20368         read-file: Don't occupy too much unused memory.
20369         * lib/read-file.c (fread_file): Shrink the buffer at the end.
20370
20371 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
20372             Eric Blake  <eblake@redhat.com>
20373             Bruno Haible  <bruno@clisp.org>
20374
20375         read-file: Avoid memory reallocations with regular files.
20376         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
20377         (fread_file): With regular files, use the remaining length as the
20378         initial buffer size.  Check against overflow.
20379         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
20380         sys_stat.
20381
20382 2010-08-28  Bruno Haible  <bruno@clisp.org>
20383
20384         ftello: Relax license.
20385         * modules/ftello (License): Relax to LGPLv2+.
20386         Reported by Eric Blake.
20387
20388 2010-08-28  Bruno Haible  <bruno@clisp.org>
20389
20390         Avoid relocwrapper link errors due to gnulib replacement functions.
20391         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
20392         function.
20393         Reported by Ben Pfaff <blp@cs.stanford.edu>.
20394
20395 2010-08-28  Bruno Haible  <bruno@clisp.org>
20396
20397         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
20398         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
20399         defined.
20400         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
20401         Suggested by Eric Blake.
20402
20403 2010-08-28  Bruno Haible  <bruno@clisp.org>
20404
20405         sys_socket, netdb: Ensure socklen_t gets defined.
20406         * modules/sys_socket (Depends-on): Add socklen.
20407         * modules/netdb (Depends-on): Likewise.
20408         * modules/getaddrinfo (Depends-on): Remove socklen.
20409         * modules/getsockopt (Depends-on): Likewise.
20410         * modules/setsockopt (Depends-on): Likewise.
20411         * tests/test-sys_socket.c: Check that socklen_t is defined.
20412         * tests/test-netdb.c: Likewise.
20413         * m4/socklen.m4: Update comments.
20414         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
20415
20416 2010-08-27  Eric Blake  <eblake@redhat.com>
20417
20418         login_tty: add missing dependency
20419         * modules/login_tty (Depends-on): Add pty.
20420
20421 2010-08-26  Eric Blake  <eblake@redhat.com>
20422
20423         lib-symbol-versions: fix m4 quoting
20424         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
20425         format for AC_LINK_IFELSE.
20426
20427         glob: fix compile test
20428         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
20429
20430         btowc: fix missing file
20431         * modules/btowc (Files): Also ship locale-fr.m4.
20432
20433         lseek: fix link test
20434         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
20435         AC_LINK_IFELSE.
20436
20437         include_next: silence autoconf 2.68 warning
20438         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
20439         AC_COMPILE_IFELSE as special.
20440         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
20441         autoconf < 2.68.
20442
20443         acl: fix compilation test
20444         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
20445         AC_COMPILE_IFELSE.
20446
20447 2010-08-26  Bruno Haible  <bruno@clisp.org>
20448
20449         Modernize AC_TRY_RUN invocations.
20450         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
20451         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
20452         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
20453         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
20454         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
20455         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
20456         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
20457         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
20458         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
20459         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
20460         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
20461         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
20462         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
20463         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
20464         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
20465         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
20466         gl_MBRLEN_NUL_RETVAL): Likewise.
20467         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
20468         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
20469         Likewise.
20470         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
20471         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
20472         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
20473         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
20474         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
20475         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
20476         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
20477         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
20478         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
20479         Likewise.
20480         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
20481         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
20482         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
20483         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
20484         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
20485         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
20486         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
20487         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
20488         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
20489         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
20490
20491 2010-08-26  Bruno Haible  <bruno@clisp.org>
20492
20493         Modernize AC_TRY_LINK invocations.
20494         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
20495         AC_TRY_LINK.
20496         * m4/argp.m4 (gl_ARGP): Likewise.
20497         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
20498         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
20499         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
20500         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
20501         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
20502         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
20503         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
20504         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
20505         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
20506         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
20507         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
20508         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
20509         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
20510         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
20511         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
20512         * m4/hostent.m4 (gl_HOSTENT): Likewise.
20513         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
20514         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
20515         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
20516         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
20517         Likewise.
20518         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
20519         Likewise.
20520         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
20521         Likewise.
20522         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
20523         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
20524         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
20525         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
20526         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
20527         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
20528         * m4/servent.m4 (gl_SERVENT): Likewise.
20529         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
20530         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
20531         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
20532         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
20533         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
20534         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
20535         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
20536         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
20537         * modules/tsearch-tests (configure.ac): Likewise.
20538
20539 2010-08-26  Bruno Haible  <bruno@clisp.org>
20540
20541         Modernize AC_TRY_COMPILE invocations.
20542         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
20543         AC_TRY_COMPILE.
20544         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
20545         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
20546         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
20547         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
20548         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
20549         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
20550         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
20551         * m4/lock.m4 (gl_LOCK): Likewise.
20552         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
20553         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
20554         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
20555         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
20556         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
20557         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
20558         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
20559         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
20560         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
20561         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
20562         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
20563         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
20564         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
20565         extraneous semicolon.
20566
20567 2010-08-26  Jim Meyering  <meyering@redhat.com>
20568
20569         stat-time: relax license LGPL
20570         * modules/stat-time (License): Change from GPL to LGPL,
20571         with consent from all contributors, for use in libguile.
20572         Requested by Ludovic Courtès.
20573
20574 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
20575
20576         poll: return immediately on POLLHUP.
20577         * lib/poll.c (poll): Always set timeout before wait_timeout is
20578         computed.
20579
20580 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20581
20582         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
20583         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
20584         rmdir ("dir/.//"), unlinkat.
20585
20586 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
20587
20588         stdbool: avoid spurious failure with modern xlc
20589         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
20590
20591 2010-08-24  Bruno Haible  <bruno@clisp.org>
20592
20593         getloadavg: simplify code
20594         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
20595         gl_have_func. Update comments.
20596
20597 2010-08-24  Eric Blake  <eblake@redhat.com>
20598
20599         getloadavg: don't define SVR4 on cygwin
20600         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
20601         only define SVR4 when -lkvm is required.
20602         Reported by Yaakov Selkowitz.
20603
20604 2010-08-24  Bruno Haible  <bruno@clisp.org>
20605
20606         priv-set: fix comment
20607         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
20608
20609 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
20610
20611         priv-set: fix comments
20612         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
20613         to match code, as suggested by David Bartley in:
20614         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
20615
20616 2010-08-23  Eric Blake  <eblake@redhat.com>
20617
20618         stdbool: avoid rejecting clang
20619         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
20620         * tests/test-stdbool.c: Enable more tests if using the system
20621         <stdbool.h> instead of the gnulib replacement.
20622         (main): Move xlc bug test to a runtime test for all compilers.
20623         Reported by Anders Kaseorg.
20624
20625         argz: fix shell quoting issue
20626         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
20627         Reported by Charles Wilson.
20628
20629 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
20630             Erik Faye-Lund <kusmabite@gmail.com>
20631
20632         poll, select: handle ERROR_BROKEN_PIPE.
20633         * lib/poll.c (win32_compute_revents): Return POLLHUP when
20634         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
20635         * lib/select.c (win32_compute_revents): Do not mark a pipe
20636         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
20637
20638 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
20639
20640         fts: allow compilation with C++
20641         * lib/fts_.h: Specify extern "C" linkage with C++.
20642
20643 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20644
20645         Fix gnulib-tool sed script de-commentation for AIX sed.
20646         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
20647         sed.
20648
20649 2010-08-17  Eric Blake  <eblake@redhat.com>
20650
20651         test-stddef: test for (some) offsetof bugs
20652         * tests/test-stddef.c: Enhance test to ensure correct type of
20653         offsetof.
20654         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
20655         that we are not fixing at this time.
20656
20657 2010-08-15  Bruno Haible  <bruno@clisp.org>
20658
20659         stpncpy: Allow stpncpy to be defined as a macro.
20660         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
20661         if it's already correctly declared.
20662         * lib/string.in.h (stpncpy): Undefine before redefining.
20663         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
20664
20665 2010-08-14  Bruno Haible  <bruno@clisp.org>
20666
20667         Rename module 'memxfrm' to 'amemxfrm'.
20668         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
20669         (amemxfrm): Renamed from memxfrm.
20670         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
20671         (amemxfrm): Renamed from memxfrm.
20672         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
20673         * NEWS: Mention the change.
20674         * MODULES.html.sh (String handling <string.h>): Update.
20675         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
20676         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
20677         * lib/unicase/u16-casexfrm.c: Likewise.
20678         * lib/unicase/u32-casexfrm.c: Likewise.
20679         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
20680         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
20681         * lib/uninorm/u16-normxfrm.c: Likewise.
20682         * lib/uninorm/u32-normxfrm.c: Likewise.
20683         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
20684         memxfrm.
20685         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
20686         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
20687         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
20688         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
20689         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
20690         Suggested by Paul Eggert.
20691
20692 2010-08-14  Bruno Haible  <bruno@clisp.org>
20693
20694         Tests for module 'astrxfrm'.
20695         * modules/astrxfrm-tests: New file.
20696         * tests/test-astrxfrm.c: New file.
20697
20698         New module 'astrxfrm'.
20699         * lib/astrxfrm.h: New file.
20700         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
20701         * modules/astrxfrm: New file.
20702
20703 2010-08-14  Reuben Thomas <rrt@sc3d.org>
20704
20705         regex: Tweak doc.
20706         * doc/regex.texi (Overview): Don't mention regex.c.
20707         (GNU Regular Expression Compiling): Likewise.
20708         (Match-end-of-line Operator): Mention 'not_eol'.
20709
20710 2010-08-14  Brian Gough  <bjg@gnu.org>
20711             Bruno Haible  <bruno@clisp.org>
20712
20713         git-merge-changelog: add doc relating to use with bzr and hg.
20714         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
20715
20716 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
20717
20718         pthread: fix pthread.h creation for srcdir != builddir
20719         * modules/pthread (Makefile.am): Fix the rule to work also in a
20720         non-srcdir build.
20721
20722 2010-08-13  Karl Berry  <karl@gnu.org>
20723
20724         * doc/regex.texi (Predefined Syntaxes): @smallexample.
20725         * doc/posix-*/*: force line break before @url of POSIX
20726         specifications.
20727         Suggested by Werner Lemberg.
20728
20729 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
20730
20731         strtod: fix const diagnostic
20732         * lib/strtod.c (strtod): Don't assign const char * to char *,
20733         as this elicits a warning from GCC when warnings are enabled.
20734
20735 2010-08-10  Pádraig Brady <P@draigbrady.com>
20736         and Eric Blake  <eblake@redhat.com>
20737
20738         copy-acl: ignore ENOTSUP on HP-UX
20739         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
20740         so that it is available for HP-UX.
20741         * lib/copy-acl.c (qcopy_acl): Use it.
20742         Reported by Patrick M. Callahan.
20743
20744 2010-08-10  Eric Blake  <eblake@redhat.com>
20745
20746         open, chown: relax license
20747         * modules/open (License): Change to LGPLv2+, with consent by all
20748         authors, for use in augeas.
20749         * modules/chown (License): Likewise.
20750         * modules/lchown (Likewise): Likewise.
20751         Requested by Adam Stokes.
20752
20753 2010-08-09  Karl Berry  <karl@gnu.org>
20754
20755         * build-aux/ar-lib: new file, import from Automake.
20756         * config/srclist.txt: autocheck for updates.
20757
20758 2010-08-09  Eric Blake  <eblake@redhat.com>
20759
20760         readlinkat: adjust client modules
20761         * modules/areadlinkat (Depends-on): Use readlinkat, not
20762         symlinkat.
20763         * modules/areadlinkat-with-size (Depends-on): Likewise.
20764
20765         mknod: be more vocal about danger of running tests as root
20766         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
20767         root, since that is just asking for problems.
20768         Suggested by Bruno Haible, based on a report by Rainer Tammer.
20769
20770         readlinkat: split into its own module
20771         * modules/symlinkat: Split readlinkat...
20772         * modules/readlinkat: ...into separate module.
20773         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
20774         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
20775         * lib/symlinkat.c (readlinkat): Move...
20776         * lib/readlinkat.c: ...into new file.
20777         * modules/symlinkat-tests: Split readlinkat test...
20778         * modules/readlinkat-tests: ...into separate module.
20779         * tests/test-symlinkat.c: Split...
20780         * tests/test-readlinkat.c: ...into new file.
20781         * NEWS: Document the split.
20782         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
20783         * lib/unistd.in.h (readlinkat): Likewise.
20784         Suggested by Bruno Haible.
20785
20786 2010-08-08  Bruno Haible  <bruno@clisp.org>
20787
20788         memxfrm: Speed up.
20789         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
20790         that usually only one call to strxfrm is necessary for each string
20791         part.
20792         Reported by Paul Eggert <eggert@cs.ucla.edu>.
20793
20794 2010-08-07  Karl Berry  <karl@gnu.org>
20795
20796         * doc/posix-headers/limits.texi,
20797         * doc/posix-functions/malloc.texi,
20798         * doc/posix-functions/strsignal.texi: missing @item.
20799         * doc/ld-version-script.texi: spurious leading i.
20800         * doc/regex.texi (Interval Operators): no commas inside @var.
20801
20802 2010-08-01  Bruno Haible  <bruno@clisp.org>
20803
20804         Integrate the regex documentation.
20805         * doc/gnulib.texi: Define 'cn' index.
20806         (Regular expressions): New a chapter that includes regex.texi and
20807         regexprops-generic.texi.
20808         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
20809         syntax.
20810
20811         Whitespace cleanup.
20812         * doc/regex.texi: Remove trailing spaces.
20813
20814         Add regex documentation.
20815         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
20816         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
20817         Written by Kathy A. Hargreaves and Karl Berry.
20818
20819 2010-08-01  Bruno Haible  <bruno@clisp.org>
20820
20821         link: Update documentation.
20822         * doc/posix-functions/link.texi: Update regarding Solaris.
20823
20824 2010-07-31  Bruno Haible  <bruno@clisp.org>
20825
20826         Update modules list.
20827         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
20828         (String handling <string.h>): Add memcmp2, memxfrm.
20829         (Container data structures): Add xlist, xsublist, xoset.
20830         (Core language properties): Add alignof, unused-parameter.
20831         (Process control, Numeric conversion functions <stdlib.h>): Renamed
20832         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
20833         (Unibyte characters <ctype.h>): New section.
20834         (String handling <string.h>): New section.
20835         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
20836         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
20837         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
20838         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
20839         tan, tanh, tanl, y0, y1, yn.
20840         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
20841         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
20842         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
20843         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
20844         unlockpt, vdprintf, vdprintf-posix.
20845         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
20846         (File system functions): Add concat-filename, sys_file, sys_ioctl,
20847         xconcat-filename.
20848         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
20849         getdtablesize, pipe2, pipe2-safer.
20850         (Security): New section.
20851         (Networking functions): Add accept4.
20852         (Signal handling): Add sigpipe.
20853         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
20854         mbmemcasecoll.
20855         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
20856         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
20857         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
20858         pipe-filter-ii.
20859         (Misc): Add argp-version-etc, login_tty, parse-duration.
20860
20861 2010-07-31  Bruno Haible  <bruno@clisp.org>
20862
20863         Improve doc in MODULES.html.
20864         * modules/linkat (Description): Add the word "function".
20865         * modules/mkfifo (Description): Likewise.
20866         * modules/mknod (Description): Likewise.
20867         * modules/remove (Description): Likewise.
20868         * modules/renameat (Description): Likewise.
20869         * modules/stat (Description): Likewise.
20870         * modules/symlink (Description): Likewise.
20871         * modules/unlink (Description): Likewise.
20872
20873 2010-07-31  Bruno Haible  <bruno@clisp.org>
20874
20875         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
20876         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
20877         option --enable/disable-c++ instead of --enable/disable-cxx.
20878         * NEWS: Mention the change.
20879
20880 2010-07-31  Bruno Haible  <bruno@clisp.org>
20881
20882         readlink, areadlink: Relax test a bit.
20883         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
20884         alternative to ENOTDIR.
20885         * tests/test-areadlink.h (test_areadlink): Likewise.
20886         Reported by Rainer Tammer.
20887
20888 2010-07-31  Bruno Haible  <bruno@clisp.org>
20889
20890         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
20891         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
20892         character, perform the search using U_STRCHR.
20893         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
20894         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
20895         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
20896         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
20897         Suggested by Paolo Bonzini.
20898
20899 2010-07-31  Bruno Haible  <bruno@clisp.org>
20900
20901         unistr/u*-strstr: Fix dependencies.
20902         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
20903         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
20904         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
20905
20906 2010-07-31  Bruno Haible  <bruno@clisp.org>
20907
20908         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
20909         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
20910         the beginning of the loop.
20911         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
20912         cases in 'switch' statement.
20913
20914         unistr/u8-strchr: Fix several bugs.
20915         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
20916         the string. When not found, return NULL, not a pointer near the end.
20917
20918         More tests for unistr/u8-strchr.
20919         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
20920         that the function does not read past the first occurrence of the byte
20921         being searched.
20922         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
20923         * tests/unistr/test-u16-strchr.c (main): New function.
20924         * tests/unistr/test-u32-strchr.c (main): New function.
20925
20926 2010-07-31  Bruno Haible  <bruno@clisp.org>
20927
20928         posix-modules: Ignore backup files of documentation files.
20929         * posix-modules: grep only through files named *.texi.
20930
20931 2010-07-31  Bruno Haible  <bruno@clisp.org>
20932
20933         symlinkat: Fix documentation.
20934         * doc/posix-functions/readlinkat.texi: Fix module name.
20935
20936 2010-07-31  Bruno Haible  <bruno@clisp.org>
20937
20938         fchownat: Replace also when chown has the trailing slash bug.
20939         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
20940         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
20941         introduced on 2010-04-10.
20942         Reported by Rainer Tammer.
20943
20944 2010-07-31  Bruno Haible  <bruno@clisp.org>
20945
20946         linkat: Work around AIX 7.1 bug.
20947         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
20948         whether linkat handles trailing slash correctly. If not, replace linkat
20949         and define LINKAT_TRAILING_SLASH_BUG.
20950         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
20951         check whether (fd1,file1) points to a directory if file1 or file2 ends
20952         in a slash. Code taken from lib/link.c.
20953         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
20954         Reported by Rainer Tammer.
20955
20956 2010-07-31  Bruno Haible  <bruno@clisp.org>
20957
20958         Correctly determine whether pow is available in libc on AIX 7 with xlc.
20959         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
20960         This disables an xlc optimization that was causing wrong test results.
20961         Reported by Rainer Tammer.
20962
20963 2010-07-31  Bruno Haible  <bruno@clisp.org>
20964
20965         iconv: Work around AIX 6.1..7.1 bug.
20966         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
20967         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
20968         cross-compiling, guess no on all versions of AIX.
20969         Reported by Rainer Tammer.
20970
20971 2010-07-31  Bruno Haible  <bruno@clisp.org>
20972
20973         readlink: Relax test a bit.
20974         * tests/test-readlink.h (test_readlink): Allow different errno value
20975         when readlink is called with a file name that ends in / and refers to
20976         a file.
20977         Suggested by Eric Blake.
20978         Reported by Rainer Tammer.
20979
20980 2010-07-31  Bruno Haible  <bruno@clisp.org>
20981
20982         copysign: Does not require -lm on glibc systems.
20983         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
20984         gl_COMMON_DOUBLE_MATHFUNC.
20985         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
20986
20987 2010-07-31  Bruno Haible  <bruno@clisp.org>
20988
20989         duplocale: Work around AIX 7.1 bug.
20990         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
20991         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
20992         * lib/duplocale.c (rpl_duplocale): Update comment.
20993         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
20994         Reported by Rainer Tammer.
20995
20996 2010-07-30  Bruno Haible  <bruno@clisp.org>
20997
20998         dirfd: Avoid link error on AIX 7.1.
20999         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
21000         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
21001         exist, set REPLACE_DIRFD.
21002         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
21003         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
21004         * doc/posix-functions/dirfd.texi: Update.
21005         Reported by Rainer Tammer.
21006
21007 2010-07-30  Eric Blake  <eblake@redhat.com>
21008
21009         strtod: next round of AIX fixes
21010         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
21011         exponent.
21012         * tests/test-strtod.c (main): Enhance tests.
21013         * doc/posix-functions/strtod.texi (strtod): Document next bug.
21014         Reported by Rainer Tammer.
21015
21016         futimens: fix configure check
21017         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
21018         Reported by Bruno Haible.
21019
21020 2010-07-30  Bruno Haible  <bruno@clisp.org>
21021
21022         getline: Update regarding AIX.
21023         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
21024         Reported by Rainer Tammer.
21025
21026 2010-07-30  Bruno Haible  <bruno@clisp.org>
21027
21028         wcwidth: Drop replacement on AIX 7.
21029         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
21030         AIX 7.
21031         Reported by Rainer Tammer.
21032
21033 2010-07-30  Bruno Haible  <bruno@clisp.org>
21034
21035         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
21036         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
21037         a 'char *'.
21038         Reported by Rainer Tammer.
21039
21040 2010-07-30  Bruno Haible  <bruno@clisp.org>
21041
21042         unlink: Update regarding AIX.
21043         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
21044         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
21045         Reported by Rainer Tammer.
21046
21047 2010-07-30  Bruno Haible  <bruno@clisp.org>
21048
21049         symlink: Update regarding AIX.
21050         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
21051         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
21052         Reported by Rainer Tammer.
21053
21054 2010-07-30  Bruno Haible  <bruno@clisp.org>
21055
21056         strndup: Update regarding AIX.
21057         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
21058         AIX 7.
21059         Reported by Rainer Tammer.
21060
21061 2010-07-30  Bruno Haible  <bruno@clisp.org>
21062
21063         stat: Update regarding AIX.
21064         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
21065         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
21066         Reported by Rainer Tammer.
21067
21068 2010-07-30  Bruno Haible  <bruno@clisp.org>
21069
21070         truncl: Fix autoconf test.
21071         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
21072         whether truncl works.
21073         Reported by Rainer Tammer.
21074
21075 2010-07-30  Bruno Haible  <bruno@clisp.org>
21076
21077         round: Update regarding AIX.
21078         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
21079         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
21080         Reported by Rainer Tammer.
21081
21082 2010-07-30  Bruno Haible  <bruno@clisp.org>
21083
21084         rename: Update regarding AIX.
21085         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
21086         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
21087         Reported by Rainer Tammer.
21088
21089 2010-07-30  Bruno Haible  <bruno@clisp.org>
21090
21091         printf.m4: Update regarding AIX.
21092         * m4/printf.m4: Update comments regarding AIX.
21093         Reported by Rainer Tammer.
21094
21095 2010-07-30  Bruno Haible  <bruno@clisp.org>
21096
21097         iconv: Update regarding AIX.
21098         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
21099         AIX 7.
21100         Reported by Rainer Tammer.
21101
21102 2010-07-30  Bruno Haible  <bruno@clisp.org>
21103
21104         getopt: Update regarding AIX.
21105         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
21106         no on AIX.
21107         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
21108         Reported by Rainer Tammer.
21109
21110 2010-07-30  Bruno Haible  <bruno@clisp.org>
21111
21112         ldexpl; Update regarding AIX.
21113         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
21114         on AIX 7.
21115         Reported by Rainer Tammer.
21116
21117 2010-07-30  Bruno Haible  <bruno@clisp.org>
21118
21119         frexpl: Update regarding AIX.
21120         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
21121         on AIX 7.
21122         Reported by Rainer Tammer.
21123
21124 2010-07-30  Bruno Haible  <bruno@clisp.org>
21125
21126         open, fopen: Update regarding AIX.
21127         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
21128         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
21129         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
21130         * doc/posix-functions/fopen.texi: Likewise.
21131         Reported by Rainer Tammer.
21132
21133 2010-07-30  Bruno Haible  <bruno@clisp.org>
21134
21135         chown: Update doc regarding AIX.
21136         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
21137         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
21138         Reported by Rainer Tammer.
21139
21140 2010-07-30  Eric Blake  <eblake@redhat.com>
21141
21142         strtod: fix bug in replacement function on AIX
21143         * lib/strtod.c (strtod): Special case broken "0x" parse in
21144         underlying strtod.
21145         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
21146         * doc/posix-functions/strtod.texi (strtod): Likewise.
21147         Reported by Rainer Tammer.
21148
21149 2010-07-30  Bruno Haible  <bruno@clisp.org>
21150
21151         mbrlen: Fix cross-compilation guess for AIX.
21152         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
21153         guess. Leftover from 2008-12-22.
21154
21155 2010-07-30  Bruno Haible  <bruno@clisp.org>
21156
21157         mbrtowc: Fix cross-compilation guess for AIX.
21158         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
21159         guess. Leftover from 2008-12-21.
21160
21161 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
21162
21163         init.sh: work around trap limitation of some shells
21164         * tests/init.sh (setup_): Move exit trap outside of shell function.
21165
21166 2010-07-29  Eric Blake  <eblake@redhat.com>
21167
21168         strtod: aid debugging
21169         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
21170         understanding why strtod is rejected.
21171
21172 2010-07-28  Bruno Haible  <bruno@clisp.org>
21173
21174         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
21175         * lib/unistr/u8-chr.c: Include <string.h>.
21176         * tests/unistr/test-u8-chr.c: Likewise.
21177         * tests/unistr/test-u16-chr.c: Likewise.
21178         * tests/unistr/test-u32-chr.c: Likewise.
21179         * tests/unistr/test-u8-strchr.c: Likewise.
21180         * tests/unistr/test-u16-strchr.c: Likewise.
21181         * tests/unistr/test-u32-strchr.c: Likewise.
21182         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
21183         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
21184         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
21185         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
21186
21187 2010-07-28  Bruno Haible  <bruno@clisp.org>
21188
21189         Use spaces for indentation, not tabs.
21190         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
21191
21192 2010-07-27  Bruno Haible  <bruno@clisp.org>
21193
21194         mbspcasecmp: Fix function specification.
21195         * lib/string.in.h (mbspcasecmp): Fix specification comment.
21196         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
21197         Reported by Eric Blake <eblake@redhat.com>.
21198
21199 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
21200
21201         timespec: use cast and not conditional, as truncation isn't possible
21202         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
21203         instead of a conditional.  Comment about the situation in more detail.
21204         This undoes most of the 2009-10-29 patch.
21205
21206 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
21207
21208         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
21209         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
21210         * lib/unistr/u8-strchr.c: Likewise.
21211         * modules/unistr/u8-chr: Depend on memchr.
21212
21213         unistr/u*-strchr: add tests
21214         * modules/unistr/u8-strchr-tests: New file.
21215         * modules/unistr/u16-strchr-tests: New file.
21216         * modules/unistr/u32-strchr-tests: New file.
21217         * tests/unistr/test-strchr.h: New file.
21218         * tests/unistr/test-u8-strchr.c: New file.
21219         * tests/unistr/test-u16-strchr.c: New file.
21220         * tests/unistr/test-u32-strchr.c: New file.
21221
21222         unistr/u*-chr: test multibyte sequences more
21223         * tests/unistr/test-chr.h: Do complete testing of the characters in the
21224         test vector.
21225         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
21226         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
21227         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
21228
21229         unistr/u*-chr: test multibyte sequences
21230         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
21231
21232         unistr/u*-chr: prepare for multibyte tests
21233         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
21234         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
21235         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
21236         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
21237         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
21238         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
21239
21240 2010-07-18  Bruno Haible  <bruno@clisp.org>
21241
21242         unistr/u8-strchr: Optimize non-ASCII argument case.
21243         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
21244         because the first byte often matches anyway.
21245         Reported by Pádraig Brady <P@draigbrady.com>.
21246
21247 2010-07-15  Karl Berry  <karl@gnu.org>
21248
21249         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
21250
21251 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
21252
21253         getcwd: on Solaris, work better if ancestors are inaccessible
21254         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
21255         buffer and size, try again with a large buffer.  This works better
21256         on Solaris, since its getcwd succeeds even if the path to the root
21257         is inaccessible, and this is helpful in common cases such as .zfs
21258         hidden directories.  Problem reported by J Chapman Flack in
21259         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
21260         Use system getcwd if it's declared, not merely if it's partly
21261         working; use the partly-working test only to avoid needless effort
21262         if the system getcwd fails.
21263         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
21264         comment that was already obsolete and is now even more obsolete.
21265         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
21266         now might call strdup.
21267
21268 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
21269
21270         pthread: Add enough so that coreutils/src/sort.c compiles.
21271         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
21272         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
21273         gnulib. Include <sched.h> and <time.h>, as per POSIX.
21274         Include <sys/types.h>, in case it defines pthread_t.
21275         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
21276         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
21277         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
21278         (pthread_rwlockattr_t, pthread_spinlock_t):
21279         New typedefs, if HAVE_PTHREAD_T is not defined.
21280         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
21281         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
21282         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
21283         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
21284         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
21285         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
21286         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
21287         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
21288         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
21289         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
21290         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
21291         New macros.
21292         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
21293         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
21294         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
21295         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
21296         (pthread_spin_unlock): New dummy functions.
21297         (pthread_create): Return EAGAIN; don't set errno.
21298         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
21299         require AC_C_INLINE.
21300         * modules/pthread (Depends-on): Add sched, time.
21301         (pthread.h): Use AM_V_GEN.
21302
21303 2010-07-13  Bruno Haible  <bruno@clisp.org>
21304
21305         striconveh: Don't malloc memory if the result buffer is sufficient.
21306         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
21307         buffer if its size is sufficient.
21308         Reported by Ludovic Courtès <ludo@gnu.org>.
21309
21310 2010-07-13  Bruno Haible  <bruno@clisp.org>
21311
21312         strtod: Add safety check.
21313         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
21314
21315 2010-07-12  Bruno Haible  <bruno@clisp.org>
21316
21317         Unify tests that set gl_cv_func_ldexpl_no_libm.
21318         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
21319         gl_FUNC_LDEXPL.
21320         (gl_FUNC_LDEXPL): 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_ldexp_no_libm.
21326         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
21327         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
21328         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
21329         (configure.ac): Simply invoke gl_FUNC_LDEXP.
21330         * modules/strtod (Files): Add m4/ldexp.m4.
21331
21332 2010-07-12  Bruno Haible  <bruno@clisp.org>
21333
21334         Unify tests that set gl_cv_func_frexpl_no_libm.
21335         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
21336         gl_FUNC_FREXPL_NO_LIBM.
21337         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
21338         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
21339
21340 2010-07-12  Bruno Haible  <bruno@clisp.org>
21341
21342         Unify tests that set gl_cv_func_frexp_no_libm.
21343         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
21344         gl_FUNC_FREXP_NO_LIBM.
21345         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
21346         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
21347
21348 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
21349
21350         memcoll: clarify sizes versus lengths, document better, and tweak perf
21351         * lib/memcoll.c (strcoll_loop, memcoll0):
21352         Improve quality of descriptive comments.  Name variables
21353         consistently as to whether they are lengths (which do not include
21354         terminating null) versus sizes (which do).
21355         * lib/xmemcoll.c (xmemcoll0): Likewise.
21356         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
21357         returned when s1size == 0; this is easier to compile and saves
21358         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
21359
21360 2010-07-12  Bruno Haible  <bruno@clisp.org>
21361
21362         Tests for module '_Exit'.
21363         * modules/_Exit-tests: New file.
21364         * tests/test-_Exit.sh: New file.
21365         * tests/test-_Exit.c: New file.
21366
21367         New module '_Exit'.
21368         * lib/stdlib.in.h (__attribute__): New macro.
21369         (_Exit): New declaration.
21370         * lib/_Exit.c: New file.
21371         * m4/_Exit.m4: New file.
21372         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
21373         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
21374         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
21375         * modules/_Exit: New file.
21376         * tests/test-stdlib-c++.cc (_Exit): Check signature.
21377         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
21378
21379 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
21380
21381         strtod: make it more-accurate typically, and don't require libm
21382         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
21383         Include limits.h.  Don't include string.h.
21384         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
21385         (locale_isspace): New function, so that no casts are needed to
21386         check whether *s is a space.
21387         (ldexp): Provide an unused dummy if not available.
21388         (scale_radix_exp, parse_number, underlying_strtod): New functions.
21389         (strtod): Use them.  This implementation prefers to use the
21390         underlying strtod if available, falling back on our own code
21391         only to fix known bugs.  This is more likely to produce an
21392         accurate result.  Also, it avoids the use of libm functions.
21393         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
21394         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
21395         was absent, but it caused a test failure with coreutils.
21396         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
21397         with libm.
21398         * modules/strtod (Makefile.am, Link): libm is no longer needed.
21399         * modules/strtod-tests (Makefile.am): Likewise.
21400
21401 2010-07-11  Pádraig Brady  <P@draigBrady.com>
21402             Bruno Haible  <bruno@clisp.org>
21403
21404         unistr/u8-strchr: Optimize ASCII argument case.
21405         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
21406
21407 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
21408
21409         (x)memcoll: minor tweaks
21410         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
21411         is after the type that it qualifies.
21412         (memcoll0): Likewise.
21413         * lib/memcoll.h (memcoll0): Likewise.
21414         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
21415         * lib/xmemcoll.h (xmemcoll0): Likewise.
21416         * lib/memcoll.c (memcoll0): Correct the comment.  This function
21417         differs from memcoll in that the NUL byte is part of the argument.
21418         Omit the abort-checks, as performance is a real issue here.  Plus,
21419         the checks were wrong anyway (an off-by-one error).  Omit local
21420         variable 'diff', as it's a bit clearer that way.
21421         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
21422         no longer needed.
21423
21424 2010-07-08  Chen Guo <chenguo4@yahoo.com>
21425
21426         (x)memcoll: speedup when input is known to be NUL delimited
21427         * lib/memcoll.c: Include stdlib.
21428         (memcoll0): New function.
21429         (strcoll_loop): New function, refactored for use in both memcoll
21430         and memcoll0.
21431         * lib/memcoll.h (memcoll0): Add prototype.
21432         * lib/xmemcoll.c (xmemcoll0): New function.
21433         (collate_error): New function, refactored for use in both xmemcoll
21434         and xmemcoll0.
21435         * lib/xmemcoll.h (xmemcoll0): Add prototype.
21436         * m4/memcoll.m4: add inline invocation.
21437
21438 2010-07-06  Pádraig Brady  <P@draigBrady.com>
21439
21440         * build-aux/bootstrap: Remove any local translations
21441         from the translation project synchronization directory,
21442         so that local only translations are not distributed.
21443
21444 2010-07-04  Bruno Haible  <bruno@clisp.org>
21445
21446         fsusage: Clarify which code applies to which platforms.
21447         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
21448         platform.
21449         * lib/fsusage.c (get_fs_usage): Likewise.
21450
21451 2010-07-04  Bruno Haible  <bruno@clisp.org>
21452
21453         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
21454         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
21455         Reported by Martin Lambers <marlam@marlam.de>.
21456
21457 2010-07-04  Jim Meyering  <meyering@redhat.com>
21458
21459         hash: once again explicitly disallow insertion of NULL
21460         * lib/hash.c (hash_insert0): Reinstate just-removed test:
21461         inserting a NULL pointer cannot work with these functions.
21462         Add a comment with details.
21463         This reverts part of the 2010-07-01 commit, 5bef1a35
21464         "hash: extend module to deal with non-pointer keys".
21465
21466 2010-07-01  Bruno Haible  <bruno@clisp.org>
21467
21468         stdbool: Update doc.
21469         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
21470         Info from Christian Weisgerber <naddy@mips.inka.de>.
21471
21472 2010-07-01  Jim Meyering  <meyering@redhat.com>
21473
21474         hash: extend module to deal with non-pointer keys
21475         * lib/hash.c (hash_insert0): New interface, much like hash_insert
21476         but that allows insertion of non-pointer entries.
21477         Do not disallow an ENTRY value of NULL.
21478         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
21479         * lib/hash.h (hash_insert0): Declare.
21480
21481 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
21482
21483         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
21484         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
21485         not present (i.e. with autoconf 2.59 and when using gettextize, not
21486         gnulib), require AC_GNU_SOURCE instead.
21487
21488 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
21489
21490         idpriv-drop: Fix tests.
21491         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
21492         not to the test-idpriv-droptemp program.
21493
21494 2010-06-29  Bruno Haible  <bruno@clisp.org>
21495
21496         string: Fix syntax error with g++ 2.96.
21497         * lib/string.in.h (__pure__): Remove definition.
21498         (_GL_ATTRIBUTE_PURE): New macro.
21499         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
21500         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
21501         Reported by Christian Weisgerber <naddy@mips.inka.de>.
21502
21503 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
21504
21505         unitypes: Fix bug introduced on 2010-05-18.
21506         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
21507
21508 2010-06-22  Eric Blake  <eblake@redhat.com>
21509
21510         memmem: slight optimization
21511         * lib/str-two-way.h (critical_factorization): Update comments.
21512         Reduce work during factorization phase.
21513         Reported by Carlos Bueno <carlos@bueno.org>.
21514
21515 2010-06-21  Bruno Haible  <bruno@clisp.org>
21516
21517         Fix HAVE_CALLOC_POSIX misnomer.
21518         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
21519         !HAVE_CALLOC_POSIX.
21520         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
21521         HAVE_CALLOC_POSIX.
21522         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
21523         instead of HAVE_CALLOC_POSIX.
21524         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
21525         HAVE_CALLOC_POSIX.
21526
21527         Use modern idiom for calloc() replacement.
21528         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
21529         AC_FUNC_CALLOC.
21530         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
21531         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
21532         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
21533         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
21534         (gl_REPLACE_CALLOC): New macro.
21535
21536 2010-06-21  Bruno Haible  <bruno@clisp.org>
21537
21538         Fix HAVE_REALLOC_POSIX misnomer.
21539         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
21540         !HAVE_REALLOC_POSIX.
21541         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
21542         HAVE_REALLOC_POSIX.
21543         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
21544         instead of HAVE_REALLOC_POSIX.
21545         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
21546         HAVE_REALLOC_POSIX.
21547
21548         Use modern idiom for realloc() replacement.
21549         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
21550         AC_FUNC_REALLOC.
21551         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
21552         Autoconf's AC_FUNC_REALLOC.
21553         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
21554         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
21555         (gl_REPLACE_REALLOC): New macro.
21556         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
21557
21558 2010-06-21  Bruno Haible  <bruno@clisp.org>
21559
21560         Fix HAVE_MALLOC_POSIX misnomer.
21561         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
21562         !HAVE_MALLOC_POSIX.
21563         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
21564         HAVE_MALLOC_POSIX.
21565         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
21566         instead of HAVE_MALLOC_POSIX.
21567         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
21568         HAVE_MALLOC_POSIX.
21569
21570         Use modern idiom for malloc() replacement.
21571         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
21572         AC_FUNC_MALLOC.
21573         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
21574         Autoconf's AC_FUNC_MALLOC.
21575         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
21576         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
21577         (gl_REPLACE_MALLOC): New macro.
21578         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
21579
21580 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
21581
21582         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
21583         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
21584         This macro takes 3 arguments, not 4.
21585
21586 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
21587
21588         ipv6: fix detection under mingw
21589         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
21590         in6_addr.
21591
21592 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
21593
21594         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
21595         that strtod() works when cross-compiling to a glibc version known
21596         to work.
21597
21598 2010-06-15  Bruno Haible  <bruno@clisp.org>
21599
21600         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
21601
21602 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
21603
21604         select: Correct timeout.
21605         * lib/select.c (rpl_select): Compute wait_timeout correctly.
21606
21607 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
21608
21609         git-version-gen: init shell var to avoid env var influence
21610         * build-aux/git-version-gen (v): Init shell var to empty.
21611
21612 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
21613
21614         priv-set: Don't assume that priv.h exists merely because getppriv does.
21615         See Jan Andersen's bug report about AIX 5L in
21616         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
21617         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
21618         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
21619         * lib/priv-set.h: Likewise.
21620         * tests/test-priv-set.c: Likewise.
21621
21622 2010-06-13  Bruno Haible  <bruno@clisp.org>
21623
21624         relocatable: Make it easier to test whether to install wrappers.
21625         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
21626         RELOCATABLE_VIA_WRAPPER.
21627
21628 2010-06-13  Bruno Haible  <bruno@clisp.org>
21629
21630         gnulib-tool: Display specified modules and dependencies differently.
21631         * gnulib-tool (func_show_module_list): New function.
21632         (func_import, func_create_testdir): Invoke it.
21633         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
21634
21635 2010-06-13  Bruno Haible  <bruno@clisp.org>
21636
21637         gnulib-tool: Align code of func_import and func_create_testdir.
21638         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
21639         specified_modules.
21640
21641 2010-06-12  Jim Meyering  <meyering@redhat.com>
21642
21643         test-inttostr: avoid spurious failure on Solaris 9
21644         * tests/test-inttostr.c (main): Skip the test when snprintf fails
21645         to accept "%ju".  Reported by Bruno Haible.
21646
21647 2010-06-11  Jim Meyering  <meyering@redhat.com>
21648
21649         test-sys_socket: mark variables as used more readably
21650         * tests/test-sys_socket.c (main): Mark otherwise unused variables
21651         as "used" explicitly via (void) statement casts.  This is more
21652         readable than using them in an artificial return expression.
21653         Suggestion from Bruno Haible.
21654
21655 2010-06-11  Bruno Haible  <bruno@clisp.org>
21656
21657         Avoid some more warnings from "gcc -Wwrite-strings".
21658         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
21659         to 'const char *'.
21660         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
21661         * tests/test-c-strcasestr.c (main): Likewise.
21662         * tests/test-mbscasestr1.c (main): Likewise.
21663         * tests/test-mbscasestr2.c (main): Likewise.
21664         * tests/test-memmem.c (main): Likewise.
21665         * tests/test-strstr.c (main): Likewise.
21666         * tests/test-strcasestr.c (main): Likewise.
21667
21668 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21669
21670         init.sh: change framework_failure_ to fail with status 99, not 1
21671         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
21672         automake's parallel-tests rule that this is an unexpected failure,
21673         even if the test is listed in XFAIL_TESTS.
21674
21675 2010-06-11  Jim Meyering  <meyering@redhat.com>
21676
21677         test-inttostr: avoid warnings about 4-6KB literal strings
21678         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
21679         Include "macros.h", for its definition of ASSERT.
21680         (CK): s/assert/ASSERT/
21681         * modules/inttostr-tests (Files): Add macros.h.
21682
21683         init.sh: don't use $ME_ or skip_ before they are defined
21684         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
21685         their first uses.  Also hoist their companions: warn_, fail_,
21686         framework_failure_, $stderr_fileno.  Prompted by a patch from
21687         Stefano Lattarini.
21688
21689         test-sys_socket: avoid set-but-not-used warnings from gcc
21690         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
21691         avoid warning about set-but-not-used variables.
21692
21693         test-xvasprintf: avoid 'const' discard warnings
21694         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
21695         "const" when assigning from literal strings.
21696         (test_xasprintf): Add "void" in function argument list to placate
21697         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
21698
21699         tests: avoid compilation warnings in argmatch and exclude tests...
21700         in packages that define ARGMATCH_DIE_DECL, like coreutils.
21701         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
21702         Since it always exits, declare with the "noreturn" attribute.
21703         * tests/test-argmatch.c: Likewise.
21704
21705         tests: avoid 'const' discard warnings in mbsstr tests
21706         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
21707         * tests/test-mbsstr2.c (main): Likewise.
21708
21709         test-verify: avoid warning from gcc's -Wmissing-declarations
21710         * tests/test-verify.c (function): Declare to be static.
21711
21712         test-inttostr.c: include <string.h> for use of strcmp
21713         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
21714
21715         test-linkat: avoid failed assertion on "other" architectures
21716         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
21717         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
21718         sparc: https://bugs.launchpad.net/bugs/591968
21719
21720 2010-06-11  Jim Meyering  <meyering@redhat.com>
21721
21722         printf.m4: avoid autoconf's "Expanded Before Required" warning
21723         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
21724         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
21725         autoconf warning.
21726
21727 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
21728
21729         Replacement header templates are now named with ".in", not "_".
21730         * doc/gnulib-intro.texi: Correct.
21731
21732 2010-06-10  Jim Meyering  <meyering@redhat.com>
21733
21734         inttostr-tests: depend on snprintf, not snprintf-posix
21735         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
21736         snprintf-posix, to avoid this aclocal failure:
21737           missing file gnulib-tests/vasnprintf.c
21738           configure.ac:45: error: expected source file, required through \
21739           AC_LIBSOURCES, not found
21740
21741 2010-06-10  Jim Meyering  <meyering@redhat.com>
21742
21743         inttostr: add a new function, inttostr, and tests
21744         The namesake function was not available.  The existence of the
21745         template file, inttostr.c makes its addition nontrivial.
21746         * lib/anytostr.c: Rename from inttostr.c.
21747         (anytostr): Rename from inttostr.
21748         * lib/inttostr.c: New file.
21749         * modules/inttostr (Files): Add anytostr.c.
21750         (Makefile.am): Set lib_SOURCES instead of ...
21751         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
21752         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
21753         * lib/offtostr.c: Likewise.
21754         * lib/uinttostr.c: Likewise.
21755         * lib/umaxtostr.c: Likewise.
21756         * modules/inttostr-tests: New file.
21757         * tests/test-inttostr.c: New file.  Test these functions.
21758
21759 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
21760             Bruno Haible  <bruno@clisp.org>
21761
21762         Add "Extending Gnulib" chapter to manual.
21763         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
21764         chapter.
21765         (Extending Gnulib): New chapter.
21766         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
21767         chapter.
21768
21769 2010-06-09  Bruno Haible  <bruno@clisp.org>
21770
21771         Avoid relocwrapper link errors due to gnulib replacement functions.
21772         * lib/areadlink.c: Use the system's malloc, realloc functions.
21773         (areadlink): Set errno to ENOMEM explicitly.
21774         * modules/areadlink (Depends-on): Remove malloc-posix.
21775         Reported by Ben Pfaff <blp@cs.stanford.edu>.
21776
21777 2010-06-09  Bruno Haible  <bruno@clisp.org>
21778
21779         Avoid relocwrapper link errors due to gnulib replacement functions.
21780         * lib/canonicalize-lgpl.c: Use the system's malloc function.
21781         * lib/malloca.c: Likewise.
21782         * lib/relocatable.c: Likewise.
21783         * lib/progreloc.c: Use the system's malloc, sprintf functions.
21784         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
21785         * lib/setenv.c: Use the system's malloc, realloc functions.
21786         * lib/strerror.c: Use the system's sprintf function.
21787         Reported by Ben Pfaff <blp@cs.stanford.edu>.
21788
21789 2010-06-04  Bruno Haible  <bruno@clisp.org>
21790
21791         Prefer documented low-level autoconf macro names.
21792         * m4/lib-link.m4: Use m4_translit instead of translit.
21793         * m4/environ.m4: Likewise.
21794         * m4/mathfunc.m4: Likewise.
21795         * m4/onceonly.m4: Likewise.
21796         * m4/stdint.m4: Likewise.
21797         Suggested by Eric Blake.
21798
21799 2010-06-04  Martin Lambers  <marlam@marlam.de>
21800             Bruno Haible  <bruno@clisp.org>
21801
21802         havelib: Allow library names with '+' characters.
21803         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
21804         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
21805
21806 2010-06-09  Bruno Haible  <bruno@clisp.org>
21807
21808         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
21809         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
21810         realloc failed.
21811
21812 2010-06-08  Peter Simons  <simons@cryp.to>
21813
21814         maint.mk: make the news-check rule more configurable
21815         * top/maint.mk (news-check-lines-spec): New variable.
21816         (news-check): Use "sed -n 1,10p" in place of "head".
21817
21818 2010-06-07  Jim Meyering  <meyering@redhat.com>
21819
21820         do-release-commit-and-tag: fix typo in --help
21821         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
21822
21823         regex: avoid new dead-code warning with gcc-4.6.0
21824         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
21825         if-block containing a while-loop.  It's been unused for at least
21826         5 years.
21827
21828 2010-06-05  Bruno Haible  <bruno@clisp.org>
21829
21830         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
21831         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
21832
21833 2010-06-04  Bruno Haible  <bruno@clisp.org>
21834
21835         Update to GNU gettext 0.18.1.
21836         * modules/gettext (configure.ac): Require gettext infrastructure from
21837         version 0.18.1.
21838
21839 2010-06-03  Bruno Haible  <bruno@clisp.org>
21840
21841         Don't use AC_LIBOBJ with file names in subdirectories.
21842         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
21843         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
21844         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
21845         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
21846         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
21847         gl_LIBUNISTRING_LIBSOURCE.
21848         (Makefile.am): Augment lib_SOURCES here, conditionally.
21849         * NEWS: Drop requirement for Automake option 'subdir-objects'.
21850
21851 2010-06-03  Bruno Haible  <bruno@clisp.org>
21852
21853         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
21854         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
21855         expansion does not end with a newline.
21856         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
21857         unnecessary newline.
21858
21859 2010-06-03  Bruno Haible  <bruno@clisp.org>
21860
21861         Reduce dependencies.
21862         * tests/test-quotearg.h: New file, extracted from
21863         tests/test-quotearg.c.
21864         * tests/test-quotearg-simple.c: New file, extracted from
21865         tests/test-quotearg.c.
21866         * tests/test-quotearg.c: Don't include <ctype.h>.
21867         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
21868         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
21869         use_quote_double_quotes, use_quotearg_colon): Moved to
21870         tests/test-quotearg.h.
21871         (results_g, flag_results, custom_quotes, custom_results): Moved
21872         to tests/test-quotearg-simple.c.
21873         (main): Moved the part that does not depend on gettext to
21874         tests/test-quotearg-simple.c. Return 77 if the test cannot be
21875         performed.
21876         * modules/quotearg-simple: New file.
21877         * modules/quotearg-simple-tests: New file.
21878         * modules/quotearg (Depends-on): Add quotearg-simple.
21879         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
21880         (Files): Add tests/test-quotearg.h.
21881         Reported by Paolo Bonzini.
21882
21883 2010-06-03  Bruno Haible  <bruno@clisp.org>
21884
21885         Reduce dependencies.
21886         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
21887
21888 2010-06-03  Bruno Haible  <bruno@clisp.org>
21889
21890         time: Undefine more broken macros.
21891         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
21892         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
21893         Reported by Eric Blake.
21894
21895 2010-06-03  Bruno Haible  <bruno@clisp.org>
21896
21897         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
21898         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
21899         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
21900         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
21901         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
21902         Reported by Ludovic Courtès <ludo@gnu.org>.
21903
21904 2010-06-02  Eric Blake  <eblake@redhat.com>
21905
21906         time: work with mingw + pthreads-win32 library
21907         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
21908         if timespec is defined only in pthread.h.
21909         * modules/time (Makefile.am): Substitute it.
21910         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
21911         <pthread.h>, when needed.
21912         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
21913         from the library.
21914
21915 2010-05-31  Bruno Haible  <bruno@clisp.org>
21916
21917         Avoid expanding two macros in the wrong order.
21918         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
21919         gl_LIBUNISTRING if it is defined.
21920         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
21921         autoconf >= 2.64.
21922         Reported by Ludovic Courtès <ludo@gnu.org>.
21923
21924 2010-05-27  Jim Meyering  <meyering@redhat.com>
21925
21926         maint.mk: also prohibit "#undef" of always-defined symbols
21927         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
21928         Allow more than one space before the symbol name.
21929         (sc_prohibit_always-defined_macros): Use grep's -E, now that
21930         the regexp uses alternation.
21931
21932 2010-05-26  Eric Blake  <eblake@redhat.com>
21933
21934         maint.mk: avoid echo -e
21935         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
21936         Convert all uses of echo -* to printf.
21937         Reported by Matthias Bolte.
21938
21939 2010-05-25  Bruno Haible  <bruno@clisp.org>
21940
21941         Update to GNU gettext 0.18, part 2.
21942         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
21943         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
21944
21945 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21946
21947         Add missing include in test-pwrite.c.
21948         * tests/test-pwrite.c: Include string.h, for strcmp.
21949
21950 2010-05-24  Bruno Haible  <bruno@clisp.org>
21951
21952         * NEWS: Mention requirement for Automake option 'subdir-objects'.
21953
21954 2010-05-24  Bruno Haible  <bruno@clisp.org>
21955
21956         Don't use conversion with transliteration in u{8,16,32}_strcoll.
21957         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
21958         iconveh_error argument.
21959         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
21960         U_STRCONV_TO_LOCALE.
21961         * lib/unistr/u16-strcoll.c: Likewise.
21962         * lib/unistr/u32-strcoll.c: Likewise.
21963         * modules/unistr/u8-strcoll (Depends-on): Add
21964         uniconv/u8-strconv-to-enc, localcharset. Remove
21965         uniconv/u8-strconv-to-locale.
21966         (configure.ac): Bump version number.
21967         * modules/unistr/u16-strcoll (Depends-on): Add
21968         uniconv/u16-strconv-to-enc, localcharset. Remove
21969         uniconv/u16-strconv-to-locale.
21970         (configure.ac): Bump version number.
21971         * modules/unistr/u32-strcoll (Depends-on): Add
21972         uniconv/u32-strconv-to-enc, localcharset. Remove
21973         uniconv/u32-strconv-to-locale.
21974         (configure.ac): Bump version number.
21975
21976 2010-05-24  Bruno Haible  <bruno@clisp.org>
21977
21978         Avoid a test failure on NetBSD 5.0.
21979         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
21980         an iconv() bug.
21981
21982 2010-05-24  Bruno Haible  <bruno@clisp.org>
21983
21984         Adjust #include directive style.
21985         * modules/regex (Includes): Recommend to write <regex.h>.
21986
21987 2010-05-24  Bruno Haible  <bruno@clisp.org>
21988
21989         regex: Don't require alloca.
21990         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
21991         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
21992         only inside if (0).
21993
21994 2010-05-23  Jim Meyering  <meyering@redhat.com>
21995
21996         test-renameat.c: include <sys/stat.h>
21997         * tests/test-renameat.c: Include <sys/stat.h>; required for
21998         definition of S_IS* macros.
21999
22000 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
22001
22002         Update maintainer documentation for 'relocatable-prog' module.
22003         * doc/relocatable-maint.texi: Update.
22004         Comments by Bruno Haible.
22005
22006 2010-05-23  Bruno Haible  <bruno@clisp.org>
22007
22008         git-merge-changelog: Enable --split-merged-entry by default.
22009         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
22010         (usage): Don't mention this option any more.
22011         Reported by Ralf Wildenhues.
22012
22013 2010-05-23  Jim Meyering  <meyering@redhat.com>
22014
22015         test-pwrite: do not leave behind a test file named "out"
22016         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
22017         The trivial-looking use of init.sh is really necessary.
22018         It ensures that the temporary file, "out", is created in
22019         a temporary directory, and removed upon termination.
22020         * tests/test-pwrite.sh: Re-add file.
22021         * modules/pwrite-tests: Reference it.
22022
22023 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22024
22025         Fix output redirection buglet in init.sh.
22026         * tests/init.sh: Fix redirection of stderr.
22027
22028 2010-05-20  Simon Josefsson  <simon@josefsson.org>
22029
22030         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
22031
22032 2010-05-17  Simon Josefsson  <simon@josefsson.org>
22033
22034         * modules/valgrind-tests: New file.
22035         * m4/valgrind-tests.m4: New file.
22036         * doc/valgrind-tests.texi: New file.
22037         * doc/gnulib.texi (Running self-tests under valgrind): New
22038         section.
22039
22040 2010-05-19  Bruno Haible  <bruno@clisp.org>
22041
22042         Clean up dead code in recent commit.
22043         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
22044         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
22045         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
22046         Suggested by Paolo Bonzini.
22047
22048 2010-05-19  Bruno Haible  <bruno@clisp.org>
22049
22050         Avoid valgrind error reports from libunistring.
22051         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
22052         * modules/libunistring (Files): Add it.
22053         * modules/libunistring-optional (Files): Likewise.
22054
22055 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
22056             Bruno Haible  <bruno@clisp.org>
22057
22058         New module 'libunistring-optional'.
22059         * modules/libunistring-optional: New file.
22060         * m4/libunistring-base.m4: New file.
22061         * m4/libunistring-optional.m4: New file.
22062         * lib/unicase.in.h: Renamed from lib/unicase.h.
22063         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
22064         * lib/unictype.in.h: Renamed from lib/unictype.h.
22065         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
22066         * lib/uniname.in.h: Renamed from lib/uniname.h.
22067         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
22068         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
22069         * lib/unistr.in.h: Renamed from lib/unistr.h.
22070         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
22071         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
22072         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
22073         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
22074         gl_LIBUNISTRING. If the library was found, determine the installed
22075         version and set LIBUNISTRING_VERSION.
22076         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
22077         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
22078         handle a configuration option --with-included-libunistring.
22079         * modules/libunistring (Files): Add m4/absolute-header.m4.
22080         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
22081         Add m4/libunistring-base.m4.
22082         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22083         (Makefile.am): Build unicase.h from unicase.in.h.
22084         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
22085         Add m4/libunistring-base.m4.
22086         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22087         (Makefile.am): Build uniconv.h from uniconv.in.h.
22088         * modules/unictype/base (Files): Use unictype.in.h instead of
22089         unictype.h. Add m4/libunistring-base.m4.
22090         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22091         (Makefile.am): Build unictype.h from unictype.in.h.
22092         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
22093         Add m4/libunistring-base.m4.
22094         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22095         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
22096         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
22097         Add m4/libunistring-base.m4.
22098         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22099         (Makefile.am): Build uniname.h from uniname.in.h.
22100         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
22101         Add m4/libunistring-base.m4.
22102         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22103         (Makefile.am): Build uninorm.h from uninorm.in.h.
22104         * modules/unistdio/base (Files): Use unistdio.in.h instead of
22105         unistdio.h. Add m4/libunistring-base.m4.
22106         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22107         (Makefile.am): Build unistdio.h from unistdio.in.h.
22108         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
22109         Add m4/libunistring-base.m4.
22110         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22111         (Makefile.am): Build unistr.h from unistr.in.h.
22112         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
22113         Add m4/libunistring-base.m4.
22114         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22115         (Makefile.am): Build unitypes.h from unitypes.in.h.
22116         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
22117         Add m4/libunistring-base.m4.
22118         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22119         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
22120         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
22121         uniwidth.h. Add m4/libunistring-base.m4.
22122         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22123         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
22124         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
22125         instead of augmenting lib_SOURCES.
22126         * modules/unicase/empty-suffix-context: Likewise.
22127         * modules/unicase/locale-language: Likewise.
22128         * modules/unicase/tolower: Likewise.
22129         * modules/unicase/totitle: Likewise.
22130         * modules/unicase/toupper: Likewise.
22131         * modules/unicase/u8-casecmp: Likewise.
22132         * modules/unicase/u8-casecoll: Likewise.
22133         * modules/unicase/u8-casefold: Likewise.
22134         * modules/unicase/u8-casexfrm: Likewise.
22135         * modules/unicase/u8-ct-casefold: Likewise.
22136         * modules/unicase/u8-ct-tolower: Likewise.
22137         * modules/unicase/u8-ct-totitle: Likewise.
22138         * modules/unicase/u8-ct-toupper: Likewise.
22139         * modules/unicase/u8-is-cased: Likewise.
22140         * modules/unicase/u8-is-casefolded: Likewise.
22141         * modules/unicase/u8-is-lowercase: Likewise.
22142         * modules/unicase/u8-is-titlecase: Likewise.
22143         * modules/unicase/u8-is-uppercase: Likewise.
22144         * modules/unicase/u8-prefix-context: Likewise.
22145         * modules/unicase/u8-suffix-context: Likewise.
22146         * modules/unicase/u8-tolower: Likewise.
22147         * modules/unicase/u8-totitle: Likewise.
22148         * modules/unicase/u8-toupper: Likewise.
22149         * modules/unicase/u16-casecmp: Likewise.
22150         * modules/unicase/u16-casecoll: Likewise.
22151         * modules/unicase/u16-casefold: Likewise.
22152         * modules/unicase/u16-casexfrm: Likewise.
22153         * modules/unicase/u16-ct-casefold: Likewise.
22154         * modules/unicase/u16-ct-tolower: Likewise.
22155         * modules/unicase/u16-ct-totitle: Likewise.
22156         * modules/unicase/u16-ct-toupper: Likewise.
22157         * modules/unicase/u16-is-cased: Likewise.
22158         * modules/unicase/u16-is-casefolded: Likewise.
22159         * modules/unicase/u16-is-lowercase: Likewise.
22160         * modules/unicase/u16-is-titlecase: Likewise.
22161         * modules/unicase/u16-is-uppercase: Likewise.
22162         * modules/unicase/u16-prefix-context: Likewise.
22163         * modules/unicase/u16-suffix-context: Likewise.
22164         * modules/unicase/u16-tolower: Likewise.
22165         * modules/unicase/u16-totitle: Likewise.
22166         * modules/unicase/u16-toupper: Likewise.
22167         * modules/unicase/u32-casecmp: Likewise.
22168         * modules/unicase/u32-casecoll: Likewise.
22169         * modules/unicase/u32-casefold: Likewise.
22170         * modules/unicase/u32-casexfrm: Likewise.
22171         * modules/unicase/u32-ct-casefold: Likewise.
22172         * modules/unicase/u32-ct-tolower: Likewise.
22173         * modules/unicase/u32-ct-totitle: Likewise.
22174         * modules/unicase/u32-ct-toupper: Likewise.
22175         * modules/unicase/u32-is-cased: Likewise.
22176         * modules/unicase/u32-is-casefolded: Likewise.
22177         * modules/unicase/u32-is-lowercase: Likewise.
22178         * modules/unicase/u32-is-titlecase: Likewise.
22179         * modules/unicase/u32-is-uppercase: Likewise.
22180         * modules/unicase/u32-prefix-context: Likewise.
22181         * modules/unicase/u32-suffix-context: Likewise.
22182         * modules/unicase/u32-tolower: Likewise.
22183         * modules/unicase/u32-totitle: Likewise.
22184         * modules/unicase/u32-toupper: Likewise.
22185         * modules/unicase/ulc-casecmp: Likewise.
22186         * modules/unicase/ulc-casecoll: Likewise.
22187         * modules/unicase/ulc-casexfrm: Likewise.
22188         * modules/uniconv/u8-conv-from-enc: Likewise.
22189         * modules/uniconv/u8-conv-to-enc: Likewise.
22190         * modules/uniconv/u8-strconv-from-enc: Likewise.
22191         * modules/uniconv/u8-strconv-from-locale: Likewise.
22192         * modules/uniconv/u8-strconv-to-enc: Likewise.
22193         * modules/uniconv/u8-strconv-to-locale: Likewise.
22194         * modules/uniconv/u16-conv-from-enc: Likewise.
22195         * modules/uniconv/u16-conv-to-enc: Likewise.
22196         * modules/uniconv/u16-strconv-from-enc: Likewise.
22197         * modules/uniconv/u16-strconv-from-locale: Likewise.
22198         * modules/uniconv/u16-strconv-to-enc: Likewise.
22199         * modules/uniconv/u16-strconv-to-locale: Likewise.
22200         * modules/uniconv/u32-conv-from-enc: Likewise.
22201         * modules/uniconv/u32-conv-to-enc: Likewise.
22202         * modules/uniconv/u32-strconv-from-enc: Likewise.
22203         * modules/uniconv/u32-strconv-from-locale: Likewise.
22204         * modules/uniconv/u32-strconv-to-enc: Likewise.
22205         * modules/uniconv/u32-strconv-to-locale: Likewise.
22206         * modules/unictype/bidicategory-byname: Likewise.
22207         * modules/unictype/bidicategory-name: Likewise.
22208         * modules/unictype/bidicategory-of: Likewise.
22209         * modules/unictype/bidicategory-test: Likewise.
22210         * modules/unictype/block-list: Likewise.
22211         * modules/unictype/block-test: Likewise.
22212         * modules/unictype/category-C: Likewise.
22213         * modules/unictype/category-Cc: Likewise.
22214         * modules/unictype/category-Cf: Likewise.
22215         * modules/unictype/category-Cn: Likewise.
22216         * modules/unictype/category-Co: Likewise.
22217         * modules/unictype/category-Cs: Likewise.
22218         * modules/unictype/category-L: Likewise.
22219         * modules/unictype/category-Ll: Likewise.
22220         * modules/unictype/category-Lm: Likewise.
22221         * modules/unictype/category-Lo: Likewise.
22222         * modules/unictype/category-Lt: Likewise.
22223         * modules/unictype/category-Lu: Likewise.
22224         * modules/unictype/category-M: Likewise.
22225         * modules/unictype/category-Mc: Likewise.
22226         * modules/unictype/category-Me: Likewise.
22227         * modules/unictype/category-Mn: Likewise.
22228         * modules/unictype/category-N: Likewise.
22229         * modules/unictype/category-Nd: Likewise.
22230         * modules/unictype/category-Nl: Likewise.
22231         * modules/unictype/category-No: Likewise.
22232         * modules/unictype/category-P: Likewise.
22233         * modules/unictype/category-Pc: Likewise.
22234         * modules/unictype/category-Pd: Likewise.
22235         * modules/unictype/category-Pe: Likewise.
22236         * modules/unictype/category-Pf: Likewise.
22237         * modules/unictype/category-Pi: Likewise.
22238         * modules/unictype/category-Po: Likewise.
22239         * modules/unictype/category-Ps: Likewise.
22240         * modules/unictype/category-S: Likewise.
22241         * modules/unictype/category-Sc: Likewise.
22242         * modules/unictype/category-Sk: Likewise.
22243         * modules/unictype/category-Sm: Likewise.
22244         * modules/unictype/category-So: Likewise.
22245         * modules/unictype/category-Z: Likewise.
22246         * modules/unictype/category-Zl: Likewise.
22247         * modules/unictype/category-Zp: Likewise.
22248         * modules/unictype/category-Zs: Likewise.
22249         * modules/unictype/category-and: Likewise.
22250         * modules/unictype/category-and-not: Likewise.
22251         * modules/unictype/category-byname: Likewise.
22252         * modules/unictype/category-name: Likewise.
22253         * modules/unictype/category-none: Likewise.
22254         * modules/unictype/category-of: Likewise.
22255         * modules/unictype/category-or: Likewise.
22256         * modules/unictype/category-test: Likewise.
22257         * modules/unictype/combining-class: Likewise.
22258         * modules/unictype/ctype-alnum: Likewise.
22259         * modules/unictype/ctype-alpha: Likewise.
22260         * modules/unictype/ctype-blank: Likewise.
22261         * modules/unictype/ctype-cntrl: Likewise.
22262         * modules/unictype/ctype-digit: Likewise.
22263         * modules/unictype/ctype-graph: Likewise.
22264         * modules/unictype/ctype-lower: Likewise.
22265         * modules/unictype/ctype-print: Likewise.
22266         * modules/unictype/ctype-punct: Likewise.
22267         * modules/unictype/ctype-space: Likewise.
22268         * modules/unictype/ctype-upper: Likewise.
22269         * modules/unictype/ctype-xdigit: Likewise.
22270         * modules/unictype/decimal-digit: Likewise.
22271         * modules/unictype/digit: Likewise.
22272         * modules/unictype/mirror: Likewise.
22273         * modules/unictype/numeric: Likewise.
22274         * modules/unictype/property-alphabetic: Likewise.
22275         * modules/unictype/property-ascii-hex-digit: Likewise.
22276         * modules/unictype/property-bidi-arabic-digit: Likewise.
22277         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
22278         * modules/unictype/property-bidi-block-separator: Likewise.
22279         * modules/unictype/property-bidi-boundary-neutral: Likewise.
22280         * modules/unictype/property-bidi-common-separator: Likewise.
22281         * modules/unictype/property-bidi-control: Likewise.
22282         * modules/unictype/property-bidi-embedding-or-override: Likewise.
22283         * modules/unictype/property-bidi-eur-num-separator: Likewise.
22284         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
22285         * modules/unictype/property-bidi-european-digit: Likewise.
22286         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
22287         * modules/unictype/property-bidi-left-to-right: Likewise.
22288         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
22289         * modules/unictype/property-bidi-other-neutral: Likewise.
22290         * modules/unictype/property-bidi-pdf: Likewise.
22291         * modules/unictype/property-bidi-segment-separator: Likewise.
22292         * modules/unictype/property-bidi-whitespace: Likewise.
22293         * modules/unictype/property-byname: Likewise.
22294         * modules/unictype/property-combining: Likewise.
22295         * modules/unictype/property-composite: Likewise.
22296         * modules/unictype/property-currency-symbol: Likewise.
22297         * modules/unictype/property-dash: Likewise.
22298         * modules/unictype/property-decimal-digit: Likewise.
22299         * modules/unictype/property-default-ignorable-code-point: Likewise.
22300         * modules/unictype/property-deprecated: Likewise.
22301         * modules/unictype/property-diacritic: Likewise.
22302         * modules/unictype/property-extender: Likewise.
22303         * modules/unictype/property-format-control: Likewise.
22304         * modules/unictype/property-grapheme-base: Likewise.
22305         * modules/unictype/property-grapheme-extend: Likewise.
22306         * modules/unictype/property-grapheme-link: Likewise.
22307         * modules/unictype/property-hex-digit: Likewise.
22308         * modules/unictype/property-hyphen: Likewise.
22309         * modules/unictype/property-id-continue: Likewise.
22310         * modules/unictype/property-id-start: Likewise.
22311         * modules/unictype/property-ideographic: Likewise.
22312         * modules/unictype/property-ids-binary-operator: Likewise.
22313         * modules/unictype/property-ids-trinary-operator: Likewise.
22314         * modules/unictype/property-ignorable-control: Likewise.
22315         * modules/unictype/property-iso-control: Likewise.
22316         * modules/unictype/property-join-control: Likewise.
22317         * modules/unictype/property-left-of-pair: Likewise.
22318         * modules/unictype/property-line-separator: Likewise.
22319         * modules/unictype/property-logical-order-exception: Likewise.
22320         * modules/unictype/property-lowercase: Likewise.
22321         * modules/unictype/property-math: Likewise.
22322         * modules/unictype/property-non-break: Likewise.
22323         * modules/unictype/property-not-a-character: Likewise.
22324         * modules/unictype/property-numeric: Likewise.
22325         * modules/unictype/property-other-alphabetic: Likewise.
22326         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
22327         * modules/unictype/property-other-grapheme-extend: Likewise.
22328         * modules/unictype/property-other-id-continue: Likewise.
22329         * modules/unictype/property-other-id-start: Likewise.
22330         * modules/unictype/property-other-lowercase: Likewise.
22331         * modules/unictype/property-other-math: Likewise.
22332         * modules/unictype/property-other-uppercase: Likewise.
22333         * modules/unictype/property-paired-punctuation: Likewise.
22334         * modules/unictype/property-paragraph-separator: Likewise.
22335         * modules/unictype/property-pattern-syntax: Likewise.
22336         * modules/unictype/property-pattern-white-space: Likewise.
22337         * modules/unictype/property-private-use: Likewise.
22338         * modules/unictype/property-punctuation: Likewise.
22339         * modules/unictype/property-quotation-mark: Likewise.
22340         * modules/unictype/property-radical: Likewise.
22341         * modules/unictype/property-sentence-terminal: Likewise.
22342         * modules/unictype/property-soft-dotted: Likewise.
22343         * modules/unictype/property-space: Likewise.
22344         * modules/unictype/property-terminal-punctuation: Likewise.
22345         * modules/unictype/property-test: Likewise.
22346         * modules/unictype/property-titlecase: Likewise.
22347         * modules/unictype/property-unassigned-code-value: Likewise.
22348         * modules/unictype/property-unified-ideograph: Likewise.
22349         * modules/unictype/property-uppercase: Likewise.
22350         * modules/unictype/property-variation-selector: Likewise.
22351         * modules/unictype/property-white-space: Likewise.
22352         * modules/unictype/property-xid-continue: Likewise.
22353         * modules/unictype/property-xid-start: Likewise.
22354         * modules/unictype/property-zero-width: Likewise.
22355         * modules/unictype/scripts: Likewise.
22356         * modules/unictype/syntax-c-ident: Likewise.
22357         * modules/unictype/syntax-c-whitespace: Likewise.
22358         * modules/unictype/syntax-java-ident: Likewise.
22359         * modules/unictype/syntax-java-whitespace: Likewise.
22360         * modules/unilbrk/u8-possible-linebreaks: Likewise.
22361         * modules/unilbrk/u8-width-linebreaks: Likewise.
22362         * modules/unilbrk/u16-possible-linebreaks: Likewise.
22363         * modules/unilbrk/u16-width-linebreaks: Likewise.
22364         * modules/unilbrk/u32-possible-linebreaks: Likewise.
22365         * modules/unilbrk/u32-width-linebreaks: Likewise.
22366         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
22367         * modules/unilbrk/ulc-width-linebreaks: Likewise.
22368         * modules/uniname/uniname: Likewise.
22369         * modules/uninorm/canonical-decomposition: Likewise.
22370         * modules/uninorm/composition: Likewise.
22371         * modules/uninorm/decomposing-form: Likewise.
22372         * modules/uninorm/decomposition: Likewise.
22373         * modules/uninorm/filter: Likewise.
22374         * modules/uninorm/nfc: Likewise.
22375         * modules/uninorm/nfd: Likewise.
22376         * modules/uninorm/nfkc: Likewise.
22377         * modules/uninorm/nfkd: Likewise.
22378         * modules/uninorm/u8-normalize: Likewise.
22379         * modules/uninorm/u8-normcmp: Likewise.
22380         * modules/uninorm/u8-normcoll: Likewise.
22381         * modules/uninorm/u8-normxfrm: Likewise.
22382         * modules/uninorm/u16-normalize: Likewise.
22383         * modules/uninorm/u16-normcmp: Likewise.
22384         * modules/uninorm/u16-normcoll: Likewise.
22385         * modules/uninorm/u16-normxfrm: Likewise.
22386         * modules/uninorm/u32-normalize: Likewise.
22387         * modules/uninorm/u32-normcmp: Likewise.
22388         * modules/uninorm/u32-normcoll: Likewise.
22389         * modules/uninorm/u32-normxfrm: Likewise.
22390         * modules/unistdio/u8-asnprintf: Likewise.
22391         * modules/unistdio/u8-asprintf: Likewise.
22392         * modules/unistdio/u8-snprintf: Likewise.
22393         * modules/unistdio/u8-sprintf: Likewise.
22394         * modules/unistdio/u8-u8-asnprintf: Likewise.
22395         * modules/unistdio/u8-u8-asprintf: Likewise.
22396         * modules/unistdio/u8-u8-snprintf: Likewise.
22397         * modules/unistdio/u8-u8-sprintf: Likewise.
22398         * modules/unistdio/u8-u8-vasnprintf: Likewise.
22399         * modules/unistdio/u8-u8-vasprintf: Likewise.
22400         * modules/unistdio/u8-u8-vsnprintf: Likewise.
22401         * modules/unistdio/u8-u8-vsprintf: Likewise.
22402         * modules/unistdio/u8-vasnprintf: Likewise.
22403         * modules/unistdio/u8-vasprintf: Likewise.
22404         * modules/unistdio/u8-vsnprintf: Likewise.
22405         * modules/unistdio/u8-vsprintf: Likewise.
22406         * modules/unistdio/u16-asnprintf: Likewise.
22407         * modules/unistdio/u16-asprintf: Likewise.
22408         * modules/unistdio/u16-snprintf: Likewise.
22409         * modules/unistdio/u16-sprintf: Likewise.
22410         * modules/unistdio/u16-u16-asnprintf: Likewise.
22411         * modules/unistdio/u16-u16-asprintf: Likewise.
22412         * modules/unistdio/u16-u16-snprintf: Likewise.
22413         * modules/unistdio/u16-u16-sprintf: Likewise.
22414         * modules/unistdio/u16-u16-vasnprintf: Likewise.
22415         * modules/unistdio/u16-u16-vasprintf: Likewise.
22416         * modules/unistdio/u16-u16-vsnprintf: Likewise.
22417         * modules/unistdio/u16-u16-vsprintf: Likewise.
22418         * modules/unistdio/u16-vasnprintf: Likewise.
22419         * modules/unistdio/u16-vasprintf: Likewise.
22420         * modules/unistdio/u16-vsnprintf: Likewise.
22421         * modules/unistdio/u16-vsprintf: Likewise.
22422         * modules/unistdio/u32-asnprintf: Likewise.
22423         * modules/unistdio/u32-asprintf: Likewise.
22424         * modules/unistdio/u32-snprintf: Likewise.
22425         * modules/unistdio/u32-sprintf: Likewise.
22426         * modules/unistdio/u32-u32-asnprintf: Likewise.
22427         * modules/unistdio/u32-u32-asprintf: Likewise.
22428         * modules/unistdio/u32-u32-snprintf: Likewise.
22429         * modules/unistdio/u32-u32-sprintf: Likewise.
22430         * modules/unistdio/u32-u32-vasnprintf: Likewise.
22431         * modules/unistdio/u32-u32-vasprintf: Likewise.
22432         * modules/unistdio/u32-u32-vsnprintf: Likewise.
22433         * modules/unistdio/u32-u32-vsprintf: Likewise.
22434         * modules/unistdio/u32-vasnprintf: Likewise.
22435         * modules/unistdio/u32-vasprintf: Likewise.
22436         * modules/unistdio/u32-vsnprintf: Likewise.
22437         * modules/unistdio/u32-vsprintf: Likewise.
22438         * modules/unistdio/ulc-asnprintf: Likewise.
22439         * modules/unistdio/ulc-asprintf: Likewise.
22440         * modules/unistdio/ulc-fprintf: Likewise.
22441         * modules/unistdio/ulc-snprintf: Likewise.
22442         * modules/unistdio/ulc-sprintf: Likewise.
22443         * modules/unistdio/ulc-vasnprintf: Likewise.
22444         * modules/unistdio/ulc-vasprintf: Likewise.
22445         * modules/unistdio/ulc-vfprintf: Likewise.
22446         * modules/unistdio/ulc-vsnprintf: Likewise.
22447         * modules/unistdio/ulc-vsprintf: Likewise.
22448         * modules/unistr/u8-check: Likewise.
22449         * modules/unistr/u8-chr: Likewise.
22450         * modules/unistr/u8-cmp: Likewise.
22451         * modules/unistr/u8-cmp2: Likewise.
22452         * modules/unistr/u8-cpy: Likewise.
22453         * modules/unistr/u8-cpy-alloc: Likewise.
22454         * modules/unistr/u8-endswith: Likewise.
22455         * modules/unistr/u8-mblen: Likewise.
22456         * modules/unistr/u8-mbsnlen: Likewise.
22457         * modules/unistr/u8-mbtouc: Likewise.
22458         * modules/unistr/u8-mbtouc-unsafe: Likewise.
22459         * modules/unistr/u8-mbtoucr: Likewise.
22460         * modules/unistr/u8-move: Likewise.
22461         * modules/unistr/u8-next: Likewise.
22462         * modules/unistr/u8-prev: Likewise.
22463         * modules/unistr/u8-set: Likewise.
22464         * modules/unistr/u8-startswith: Likewise.
22465         * modules/unistr/u8-stpcpy: Likewise.
22466         * modules/unistr/u8-stpncpy: Likewise.
22467         * modules/unistr/u8-strcat: Likewise.
22468         * modules/unistr/u8-strchr: Likewise.
22469         * modules/unistr/u8-strcmp: Likewise.
22470         * modules/unistr/u8-strcoll: Likewise.
22471         * modules/unistr/u8-strcpy: Likewise.
22472         * modules/unistr/u8-strcspn: Likewise.
22473         * modules/unistr/u8-strdup: Likewise.
22474         * modules/unistr/u8-strlen: Likewise.
22475         * modules/unistr/u8-strmblen: Likewise.
22476         * modules/unistr/u8-strmbtouc: Likewise.
22477         * modules/unistr/u8-strncat: Likewise.
22478         * modules/unistr/u8-strncmp: Likewise.
22479         * modules/unistr/u8-strncpy: Likewise.
22480         * modules/unistr/u8-strnlen: Likewise.
22481         * modules/unistr/u8-strpbrk: Likewise.
22482         * modules/unistr/u8-strrchr: Likewise.
22483         * modules/unistr/u8-strspn: Likewise.
22484         * modules/unistr/u8-strstr: Likewise.
22485         * modules/unistr/u8-strtok: Likewise.
22486         * modules/unistr/u8-to-u16: Likewise.
22487         * modules/unistr/u8-to-u32: Likewise.
22488         * modules/unistr/u8-uctomb: Likewise.
22489         * modules/unistr/u16-check: Likewise.
22490         * modules/unistr/u16-chr: Likewise.
22491         * modules/unistr/u16-cmp: Likewise.
22492         * modules/unistr/u16-cmp2: Likewise.
22493         * modules/unistr/u16-cpy: Likewise.
22494         * modules/unistr/u16-cpy-alloc: Likewise.
22495         * modules/unistr/u16-endswith: Likewise.
22496         * modules/unistr/u16-mblen: Likewise.
22497         * modules/unistr/u16-mbsnlen: Likewise.
22498         * modules/unistr/u16-mbtouc: Likewise.
22499         * modules/unistr/u16-mbtouc-unsafe: Likewise.
22500         * modules/unistr/u16-mbtoucr: Likewise.
22501         * modules/unistr/u16-move: Likewise.
22502         * modules/unistr/u16-next: Likewise.
22503         * modules/unistr/u16-prev: Likewise.
22504         * modules/unistr/u16-set: Likewise.
22505         * modules/unistr/u16-startswith: Likewise.
22506         * modules/unistr/u16-stpcpy: Likewise.
22507         * modules/unistr/u16-stpncpy: Likewise.
22508         * modules/unistr/u16-strcat: Likewise.
22509         * modules/unistr/u16-strchr: Likewise.
22510         * modules/unistr/u16-strcmp: Likewise.
22511         * modules/unistr/u16-strcoll: Likewise.
22512         * modules/unistr/u16-strcpy: Likewise.
22513         * modules/unistr/u16-strcspn: Likewise.
22514         * modules/unistr/u16-strdup: Likewise.
22515         * modules/unistr/u16-strlen: Likewise.
22516         * modules/unistr/u16-strmblen: Likewise.
22517         * modules/unistr/u16-strmbtouc: Likewise.
22518         * modules/unistr/u16-strncat: Likewise.
22519         * modules/unistr/u16-strncmp: Likewise.
22520         * modules/unistr/u16-strncpy: Likewise.
22521         * modules/unistr/u16-strnlen: Likewise.
22522         * modules/unistr/u16-strpbrk: Likewise.
22523         * modules/unistr/u16-strrchr: Likewise.
22524         * modules/unistr/u16-strspn: Likewise.
22525         * modules/unistr/u16-strstr: Likewise.
22526         * modules/unistr/u16-strtok: Likewise.
22527         * modules/unistr/u16-to-u32: Likewise.
22528         * modules/unistr/u16-to-u8: Likewise.
22529         * modules/unistr/u16-uctomb: Likewise.
22530         * modules/unistr/u32-check: Likewise.
22531         * modules/unistr/u32-chr: Likewise.
22532         * modules/unistr/u32-cmp: Likewise.
22533         * modules/unistr/u32-cmp2: Likewise.
22534         * modules/unistr/u32-cpy: Likewise.
22535         * modules/unistr/u32-cpy-alloc: Likewise.
22536         * modules/unistr/u32-endswith: Likewise.
22537         * modules/unistr/u32-mblen: Likewise.
22538         * modules/unistr/u32-mbsnlen: Likewise.
22539         * modules/unistr/u32-mbtouc: Likewise.
22540         * modules/unistr/u32-mbtouc-unsafe: Likewise.
22541         * modules/unistr/u32-mbtoucr: Likewise.
22542         * modules/unistr/u32-move: Likewise.
22543         * modules/unistr/u32-next: Likewise.
22544         * modules/unistr/u32-prev: Likewise.
22545         * modules/unistr/u32-set: Likewise.
22546         * modules/unistr/u32-startswith: Likewise.
22547         * modules/unistr/u32-stpcpy: Likewise.
22548         * modules/unistr/u32-stpncpy: Likewise.
22549         * modules/unistr/u32-strcat: Likewise.
22550         * modules/unistr/u32-strchr: Likewise.
22551         * modules/unistr/u32-strcmp: Likewise.
22552         * modules/unistr/u32-strcoll: Likewise.
22553         * modules/unistr/u32-strcpy: Likewise.
22554         * modules/unistr/u32-strcspn: Likewise.
22555         * modules/unistr/u32-strdup: Likewise.
22556         * modules/unistr/u32-strlen: Likewise.
22557         * modules/unistr/u32-strmblen: Likewise.
22558         * modules/unistr/u32-strmbtouc: Likewise.
22559         * modules/unistr/u32-strncat: Likewise.
22560         * modules/unistr/u32-strncmp: Likewise.
22561         * modules/unistr/u32-strncpy: Likewise.
22562         * modules/unistr/u32-strnlen: Likewise.
22563         * modules/unistr/u32-strpbrk: Likewise.
22564         * modules/unistr/u32-strrchr: Likewise.
22565         * modules/unistr/u32-strspn: Likewise.
22566         * modules/unistr/u32-strstr: Likewise.
22567         * modules/unistr/u32-strtok: Likewise.
22568         * modules/unistr/u32-to-u16: Likewise.
22569         * modules/unistr/u32-to-u8: Likewise.
22570         * modules/unistr/u32-uctomb: Likewise.
22571         * modules/uniwbrk/u8-wordbreaks: Likewise.
22572         * modules/uniwbrk/u16-wordbreaks: Likewise.
22573         * modules/uniwbrk/u32-wordbreaks: Likewise.
22574         * modules/uniwbrk/ulc-wordbreaks: Likewise.
22575         * modules/uniwbrk/wordbreak-property: Likewise.
22576         * modules/uniwidth/u8-strwidth: Likewise.
22577         * modules/uniwidth/u8-width: Likewise.
22578         * modules/uniwidth/u16-strwidth: Likewise.
22579         * modules/uniwidth/u16-width: Likewise.
22580         * modules/uniwidth/u32-strwidth: Likewise.
22581         * modules/uniwidth/u32-width: Likewise.
22582         * modules/uniwidth/width: Likewise.
22583         * modules/unicase/cased-tests (Makefile.am): Link all test programs
22584         with $(LIBUNISTRING).
22585         * modules/unicase/ignorable-tests: Likewise.
22586         * modules/unicase/locale-language-tests: Likewise.
22587         * modules/unicase/tolower-tests: Likewise.
22588         * modules/unicase/totitle-tests: Likewise.
22589         * modules/unicase/toupper-tests: Likewise.
22590         * modules/unicase/u8-casecmp-tests: Likewise.
22591         * modules/unicase/u8-casecoll-tests: Likewise.
22592         * modules/unicase/u8-casefold-tests: Likewise.
22593         * modules/unicase/u8-is-cased-tests: Likewise.
22594         * modules/unicase/u8-is-casefolded-tests: Likewise.
22595         * modules/unicase/u8-is-lowercase-tests: Likewise.
22596         * modules/unicase/u8-is-titlecase-tests: Likewise.
22597         * modules/unicase/u8-is-uppercase-tests: Likewise.
22598         * modules/unicase/u8-tolower-tests: Likewise.
22599         * modules/unicase/u8-totitle-tests: Likewise.
22600         * modules/unicase/u8-toupper-tests: Likewise.
22601         * modules/unicase/u16-casecmp-tests: Likewise.
22602         * modules/unicase/u16-casecoll-tests: Likewise.
22603         * modules/unicase/u16-casefold-tests: Likewise.
22604         * modules/unicase/u16-is-cased-tests: Likewise.
22605         * modules/unicase/u16-is-casefolded-tests: Likewise.
22606         * modules/unicase/u16-is-lowercase-tests: Likewise.
22607         * modules/unicase/u16-is-titlecase-tests: Likewise.
22608         * modules/unicase/u16-is-uppercase-tests: Likewise.
22609         * modules/unicase/u16-tolower-tests: Likewise.
22610         * modules/unicase/u16-totitle-tests: Likewise.
22611         * modules/unicase/u16-toupper-tests: Likewise.
22612         * modules/unicase/u32-casecmp-tests: Likewise.
22613         * modules/unicase/u32-casecoll-tests: Likewise.
22614         * modules/unicase/u32-casefold-tests: Likewise.
22615         * modules/unicase/u32-is-cased-tests: Likewise.
22616         * modules/unicase/u32-is-casefolded-tests: Likewise.
22617         * modules/unicase/u32-is-lowercase-tests: Likewise.
22618         * modules/unicase/u32-is-titlecase-tests: Likewise.
22619         * modules/unicase/u32-is-uppercase-tests: Likewise.
22620         * modules/unicase/u32-tolower-tests: Likewise.
22621         * modules/unicase/u32-totitle-tests: Likewise.
22622         * modules/unicase/u32-toupper-tests: Likewise.
22623         * modules/unicase/ulc-casecmp-tests: Likewise.
22624         * modules/unicase/ulc-casecoll-tests: Likewise.
22625         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
22626         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
22627         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
22628         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
22629         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
22630         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
22631         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
22632         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
22633         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
22634         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
22635         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
22636         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
22637         * modules/unictype/bidicategory-byname-tests: Likewise.
22638         * modules/unictype/bidicategory-name-tests: Likewise.
22639         * modules/unictype/bidicategory-of-tests: Likewise.
22640         * modules/unictype/bidicategory-test-tests: Likewise.
22641         * modules/unictype/block-list-tests: Likewise.
22642         * modules/unictype/block-of-tests: Likewise.
22643         * modules/unictype/block-test-tests: Likewise.
22644         * modules/unictype/category-C-tests: Likewise.
22645         * modules/unictype/category-Cc-tests: Likewise.
22646         * modules/unictype/category-Cf-tests: Likewise.
22647         * modules/unictype/category-Cn-tests: Likewise.
22648         * modules/unictype/category-Co-tests: Likewise.
22649         * modules/unictype/category-Cs-tests: Likewise.
22650         * modules/unictype/category-L-tests: Likewise.
22651         * modules/unictype/category-Ll-tests: Likewise.
22652         * modules/unictype/category-Lm-tests: Likewise.
22653         * modules/unictype/category-Lo-tests: Likewise.
22654         * modules/unictype/category-Lt-tests: Likewise.
22655         * modules/unictype/category-Lu-tests: Likewise.
22656         * modules/unictype/category-M-tests: Likewise.
22657         * modules/unictype/category-Mc-tests: Likewise.
22658         * modules/unictype/category-Me-tests: Likewise.
22659         * modules/unictype/category-Mn-tests: Likewise.
22660         * modules/unictype/category-N-tests: Likewise.
22661         * modules/unictype/category-Nd-tests: Likewise.
22662         * modules/unictype/category-Nl-tests: Likewise.
22663         * modules/unictype/category-No-tests: Likewise.
22664         * modules/unictype/category-P-tests: Likewise.
22665         * modules/unictype/category-Pc-tests: Likewise.
22666         * modules/unictype/category-Pd-tests: Likewise.
22667         * modules/unictype/category-Pe-tests: Likewise.
22668         * modules/unictype/category-Pf-tests: Likewise.
22669         * modules/unictype/category-Pi-tests: Likewise.
22670         * modules/unictype/category-Po-tests: Likewise.
22671         * modules/unictype/category-Ps-tests: Likewise.
22672         * modules/unictype/category-S-tests: Likewise.
22673         * modules/unictype/category-Sc-tests: Likewise.
22674         * modules/unictype/category-Sk-tests: Likewise.
22675         * modules/unictype/category-Sm-tests: Likewise.
22676         * modules/unictype/category-So-tests: Likewise.
22677         * modules/unictype/category-Z-tests: Likewise.
22678         * modules/unictype/category-Zl-tests: Likewise.
22679         * modules/unictype/category-Zp-tests: Likewise.
22680         * modules/unictype/category-Zs-tests: Likewise.
22681         * modules/unictype/category-and-not-tests: Likewise.
22682         * modules/unictype/category-and-tests: Likewise.
22683         * modules/unictype/category-byname-tests: Likewise.
22684         * modules/unictype/category-name-tests: Likewise.
22685         * modules/unictype/category-none-tests: Likewise.
22686         * modules/unictype/category-of-tests: Likewise.
22687         * modules/unictype/category-or-tests: Likewise.
22688         * modules/unictype/category-test-withtable-tests: Likewise.
22689         * modules/unictype/combining-class-tests: Likewise.
22690         * modules/unictype/ctype-alnum-tests: Likewise.
22691         * modules/unictype/ctype-alpha-tests: Likewise.
22692         * modules/unictype/ctype-blank-tests: Likewise.
22693         * modules/unictype/ctype-cntrl-tests: Likewise.
22694         * modules/unictype/ctype-digit-tests: Likewise.
22695         * modules/unictype/ctype-graph-tests: Likewise.
22696         * modules/unictype/ctype-lower-tests: Likewise.
22697         * modules/unictype/ctype-print-tests: Likewise.
22698         * modules/unictype/ctype-punct-tests: Likewise.
22699         * modules/unictype/ctype-space-tests: Likewise.
22700         * modules/unictype/ctype-upper-tests: Likewise.
22701         * modules/unictype/ctype-xdigit-tests: Likewise.
22702         * modules/unictype/decimal-digit-tests: Likewise.
22703         * modules/unictype/digit-tests: Likewise.
22704         * modules/unictype/mirror-tests: Likewise.
22705         * modules/unictype/numeric-tests: Likewise.
22706         * modules/unictype/property-alphabetic-tests: Likewise.
22707         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
22708         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
22709         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
22710         * modules/unictype/property-bidi-block-separator-tests: Likewise.
22711         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
22712         * modules/unictype/property-bidi-common-separator-tests: Likewise.
22713         * modules/unictype/property-bidi-control-tests: Likewise.
22714         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
22715         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
22716         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
22717         * modules/unictype/property-bidi-european-digit-tests: Likewise.
22718         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
22719         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
22720         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
22721         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
22722         * modules/unictype/property-bidi-pdf-tests: Likewise.
22723         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
22724         * modules/unictype/property-bidi-whitespace-tests: Likewise.
22725         * modules/unictype/property-byname-tests: Likewise.
22726         * modules/unictype/property-combining-tests: Likewise.
22727         * modules/unictype/property-composite-tests: Likewise.
22728         * modules/unictype/property-currency-symbol-tests: Likewise.
22729         * modules/unictype/property-dash-tests: Likewise.
22730         * modules/unictype/property-decimal-digit-tests: Likewise.
22731         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
22732         * modules/unictype/property-deprecated-tests: Likewise.
22733         * modules/unictype/property-diacritic-tests: Likewise.
22734         * modules/unictype/property-extender-tests: Likewise.
22735         * modules/unictype/property-format-control-tests: Likewise.
22736         * modules/unictype/property-grapheme-base-tests: Likewise.
22737         * modules/unictype/property-grapheme-extend-tests: Likewise.
22738         * modules/unictype/property-grapheme-link-tests: Likewise.
22739         * modules/unictype/property-hex-digit-tests: Likewise.
22740         * modules/unictype/property-hyphen-tests: Likewise.
22741         * modules/unictype/property-id-continue-tests: Likewise.
22742         * modules/unictype/property-id-start-tests: Likewise.
22743         * modules/unictype/property-ideographic-tests: Likewise.
22744         * modules/unictype/property-ids-binary-operator-tests: Likewise.
22745         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
22746         * modules/unictype/property-ignorable-control-tests: Likewise.
22747         * modules/unictype/property-iso-control-tests: Likewise.
22748         * modules/unictype/property-join-control-tests: Likewise.
22749         * modules/unictype/property-left-of-pair-tests: Likewise.
22750         * modules/unictype/property-line-separator-tests: Likewise.
22751         * modules/unictype/property-logical-order-exception-tests: Likewise.
22752         * modules/unictype/property-lowercase-tests: Likewise.
22753         * modules/unictype/property-math-tests: Likewise.
22754         * modules/unictype/property-non-break-tests: Likewise.
22755         * modules/unictype/property-not-a-character-tests: Likewise.
22756         * modules/unictype/property-numeric-tests: Likewise.
22757         * modules/unictype/property-other-alphabetic-tests: Likewise.
22758         * modules/unictype/property-other-default-ignorable-code-point-tests:
22759         Likewise.
22760         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
22761         * modules/unictype/property-other-id-continue-tests: Likewise.
22762         * modules/unictype/property-other-id-start-tests: Likewise.
22763         * modules/unictype/property-other-lowercase-tests: Likewise.
22764         * modules/unictype/property-other-math-tests: Likewise.
22765         * modules/unictype/property-other-uppercase-tests: Likewise.
22766         * modules/unictype/property-paired-punctuation-tests: Likewise.
22767         * modules/unictype/property-paragraph-separator-tests: Likewise.
22768         * modules/unictype/property-pattern-syntax-tests: Likewise.
22769         * modules/unictype/property-pattern-white-space-tests: Likewise.
22770         * modules/unictype/property-private-use-tests: Likewise.
22771         * modules/unictype/property-punctuation-tests: Likewise.
22772         * modules/unictype/property-quotation-mark-tests: Likewise.
22773         * modules/unictype/property-radical-tests: Likewise.
22774         * modules/unictype/property-sentence-terminal-tests: Likewise.
22775         * modules/unictype/property-soft-dotted-tests: Likewise.
22776         * modules/unictype/property-space-tests: Likewise.
22777         * modules/unictype/property-terminal-punctuation-tests: Likewise.
22778         * modules/unictype/property-test-tests: Likewise.
22779         * modules/unictype/property-titlecase-tests: Likewise.
22780         * modules/unictype/property-unassigned-code-value-tests: Likewise.
22781         * modules/unictype/property-unified-ideograph-tests: Likewise.
22782         * modules/unictype/property-uppercase-tests: Likewise.
22783         * modules/unictype/property-variation-selector-tests: Likewise.
22784         * modules/unictype/property-white-space-tests: Likewise.
22785         * modules/unictype/property-xid-continue-tests: Likewise.
22786         * modules/unictype/property-xid-start-tests: Likewise.
22787         * modules/unictype/property-zero-width-tests: Likewise.
22788         * modules/unictype/scripts-tests: Likewise.
22789         * modules/unictype/syntax-c-ident-tests: Likewise.
22790         * modules/unictype/syntax-c-whitespace-tests: Likewise.
22791         * modules/unictype/syntax-java-ident-tests: Likewise.
22792         * modules/unictype/syntax-java-whitespace-tests: Likewise.
22793         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
22794         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
22795         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
22796         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
22797         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
22798         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
22799         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
22800         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
22801         * modules/uniname/uniname-tests: Likewise.
22802         * modules/uninorm/canonical-decomposition-tests: Likewise.
22803         * modules/uninorm/compat-decomposition-tests: Likewise.
22804         * modules/uninorm/composition-tests: Likewise.
22805         * modules/uninorm/decomposing-form-tests: Likewise.
22806         * modules/uninorm/decomposition-tests: Likewise.
22807         * modules/uninorm/filter-tests: Likewise.
22808         * modules/uninorm/nfc-tests: Likewise.
22809         * modules/uninorm/nfd-tests: Likewise.
22810         * modules/uninorm/nfkc-tests: Likewise.
22811         * modules/uninorm/nfkd-tests: Likewise.
22812         * modules/uninorm/u8-normcmp-tests: Likewise.
22813         * modules/uninorm/u8-normcoll-tests: Likewise.
22814         * modules/uninorm/u16-normcmp-tests: Likewise.
22815         * modules/uninorm/u16-normcoll-tests: Likewise.
22816         * modules/uninorm/u32-normcmp-tests: Likewise.
22817         * modules/uninorm/u32-normcoll-tests: Likewise.
22818         * modules/unistdio/u8-asnprintf-tests: Likewise.
22819         * modules/unistdio/u8-vasnprintf-tests: Likewise.
22820         * modules/unistdio/u8-vasprintf-tests: Likewise.
22821         * modules/unistdio/u8-vsnprintf-tests: Likewise.
22822         * modules/unistdio/u8-vsprintf-tests: Likewise.
22823         * modules/unistdio/u16-asnprintf-tests: Likewise.
22824         * modules/unistdio/u16-vasnprintf-tests: Likewise.
22825         * modules/unistdio/u16-vasprintf-tests: Likewise.
22826         * modules/unistdio/u16-vsnprintf-tests: Likewise.
22827         * modules/unistdio/u16-vsprintf-tests: Likewise.
22828         * modules/unistdio/u32-asnprintf-tests: Likewise.
22829         * modules/unistdio/u32-vasnprintf-tests: Likewise.
22830         * modules/unistdio/u32-vasprintf-tests: Likewise.
22831         * modules/unistdio/u32-vsnprintf-tests: Likewise.
22832         * modules/unistdio/u32-vsprintf-tests: Likewise.
22833         * modules/unistdio/ulc-asnprintf-tests: Likewise.
22834         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
22835         * modules/unistdio/ulc-vasprintf-tests: Likewise.
22836         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
22837         * modules/unistdio/ulc-vsprintf-tests: Likewise.
22838         * modules/unistr/u8-check-tests: Likewise.
22839         * modules/unistr/u8-chr-tests: Likewise.
22840         * modules/unistr/u8-cmp-tests: Likewise.
22841         * modules/unistr/u8-cmp2-tests: Likewise.
22842         * modules/unistr/u8-cpy-alloc-tests: Likewise.
22843         * modules/unistr/u8-cpy-tests: Likewise.
22844         * modules/unistr/u8-mblen-tests: Likewise.
22845         * modules/unistr/u8-mbsnlen-tests: Likewise.
22846         * modules/unistr/u8-mbtouc-tests: Likewise.
22847         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
22848         * modules/unistr/u8-mbtoucr-tests: Likewise.
22849         * modules/unistr/u8-move-tests: Likewise.
22850         * modules/unistr/u8-next-tests: Likewise.
22851         * modules/unistr/u8-prev-tests: Likewise.
22852         * modules/unistr/u8-set-tests: Likewise.
22853         * modules/unistr/u8-stpcpy-tests: Likewise.
22854         * modules/unistr/u8-stpncpy-tests: Likewise.
22855         * modules/unistr/u8-strcat-tests: Likewise.
22856         * modules/unistr/u8-strcmp-tests: Likewise.
22857         * modules/unistr/u8-strcoll-tests: Likewise.
22858         * modules/unistr/u8-strcpy-tests: Likewise.
22859         * modules/unistr/u8-strdup-tests: Likewise.
22860         * modules/unistr/u8-strlen-tests: Likewise.
22861         * modules/unistr/u8-strmblen-tests: Likewise.
22862         * modules/unistr/u8-strmbtouc-tests: Likewise.
22863         * modules/unistr/u8-strncat-tests: Likewise.
22864         * modules/unistr/u8-strncmp-tests: Likewise.
22865         * modules/unistr/u8-strncpy-tests: Likewise.
22866         * modules/unistr/u8-strnlen-tests: Likewise.
22867         * modules/unistr/u8-to-u16-tests: Likewise.
22868         * modules/unistr/u8-to-u32-tests: Likewise.
22869         * modules/unistr/u8-uctomb-tests: Likewise.
22870         * modules/unistr/u16-check-tests: Likewise.
22871         * modules/unistr/u16-chr-tests: Likewise.
22872         * modules/unistr/u16-cmp-tests: Likewise.
22873         * modules/unistr/u16-cmp2-tests: Likewise.
22874         * modules/unistr/u16-cpy-alloc-tests: Likewise.
22875         * modules/unistr/u16-cpy-tests: Likewise.
22876         * modules/unistr/u16-mblen-tests: Likewise.
22877         * modules/unistr/u16-mbsnlen-tests: Likewise.
22878         * modules/unistr/u16-mbtouc-tests: Likewise.
22879         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
22880         * modules/unistr/u16-mbtoucr-tests: Likewise.
22881         * modules/unistr/u16-move-tests: Likewise.
22882         * modules/unistr/u16-next-tests: Likewise.
22883         * modules/unistr/u16-prev-tests: Likewise.
22884         * modules/unistr/u16-set-tests: Likewise.
22885         * modules/unistr/u16-stpcpy-tests: Likewise.
22886         * modules/unistr/u16-stpncpy-tests: Likewise.
22887         * modules/unistr/u16-strcat-tests: Likewise.
22888         * modules/unistr/u16-strcmp-tests: Likewise.
22889         * modules/unistr/u16-strcoll-tests: Likewise.
22890         * modules/unistr/u16-strcpy-tests: Likewise.
22891         * modules/unistr/u16-strdup-tests: Likewise.
22892         * modules/unistr/u16-strlen-tests: Likewise.
22893         * modules/unistr/u16-strmblen-tests: Likewise.
22894         * modules/unistr/u16-strmbtouc-tests: Likewise.
22895         * modules/unistr/u16-strncat-tests: Likewise.
22896         * modules/unistr/u16-strncmp-tests: Likewise.
22897         * modules/unistr/u16-strncpy-tests: Likewise.
22898         * modules/unistr/u16-strnlen-tests: Likewise.
22899         * modules/unistr/u16-to-u32-tests: Likewise.
22900         * modules/unistr/u16-to-u8-tests: Likewise.
22901         * modules/unistr/u16-uctomb-tests: Likewise.
22902         * modules/unistr/u32-check-tests: Likewise.
22903         * modules/unistr/u32-chr-tests: Likewise.
22904         * modules/unistr/u32-cmp-tests: Likewise.
22905         * modules/unistr/u32-cmp2-tests: Likewise.
22906         * modules/unistr/u32-cpy-alloc-tests: Likewise.
22907         * modules/unistr/u32-cpy-tests: Likewise.
22908         * modules/unistr/u32-mblen-tests: Likewise.
22909         * modules/unistr/u32-mbsnlen-tests: Likewise.
22910         * modules/unistr/u32-mbtouc-tests: Likewise.
22911         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
22912         * modules/unistr/u32-mbtoucr-tests: Likewise.
22913         * modules/unistr/u32-move-tests: Likewise.
22914         * modules/unistr/u32-next-tests: Likewise.
22915         * modules/unistr/u32-prev-tests: Likewise.
22916         * modules/unistr/u32-set-tests: Likewise.
22917         * modules/unistr/u32-stpcpy-tests: Likewise.
22918         * modules/unistr/u32-stpncpy-tests: Likewise.
22919         * modules/unistr/u32-strcat-tests: Likewise.
22920         * modules/unistr/u32-strcmp-tests: Likewise.
22921         * modules/unistr/u32-strcoll-tests: Likewise.
22922         * modules/unistr/u32-strcpy-tests: Likewise.
22923         * modules/unistr/u32-strdup-tests: Likewise.
22924         * modules/unistr/u32-strlen-tests: Likewise.
22925         * modules/unistr/u32-strmblen-tests: Likewise.
22926         * modules/unistr/u32-strmbtouc-tests: Likewise.
22927         * modules/unistr/u32-strncat-tests: Likewise.
22928         * modules/unistr/u32-strncmp-tests: Likewise.
22929         * modules/unistr/u32-strncpy-tests: Likewise.
22930         * modules/unistr/u32-strnlen-tests: Likewise.
22931         * modules/unistr/u32-to-u16-tests: Likewise.
22932         * modules/unistr/u32-to-u8-tests: Likewise.
22933         * modules/unistr/u32-uctomb-tests: Likewise.
22934         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
22935         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
22936         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
22937         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
22938         * modules/uniwidth/u8-strwidth-tests: Likewise.
22939         * modules/uniwidth/u8-width-tests: Likewise.
22940         * modules/uniwidth/u16-strwidth-tests: Likewise.
22941         * modules/uniwidth/u16-width-tests: Likewise.
22942         * modules/uniwidth/u32-strwidth-tests: Likewise.
22943         * modules/uniwidth/u32-width-tests: Likewise.
22944         * modules/uniwidth/width-tests: Likewise.
22945
22946 2010-05-18  Richard Jones  <rjones@redhat.com>
22947
22948         doc: users.txt: list hivex
22949         * users.txt: Add hivex.
22950
22951 2010-05-18  Richard Jones  <rjones@redhat.com>
22952
22953         doc: users.txt: list febootstrap
22954         * users.txt: Add febootstrap.
22955
22956 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
22957
22958         bootstrap: fix an error when gnulib is not used as a git submodule
22959         * build-aux/bootstrap (gnulib_path): If its length is zero then
22960         assign "gnulib" to it.
22961         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
22962
22963 2010-05-16  Bruno Haible  <bruno@clisp.org>
22964
22965         Avoid autoconf warnings about AM_ICONV.
22966         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
22967         2.64.
22968
22969 2010-05-16  Bruno Haible  <bruno@clisp.org>
22970
22971         absolute-header: Make the macro usable in more situations.
22972         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
22973         from gl_ABSOLUTE_HEADER.
22974         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
22975
22976 2010-05-16  James Youngman  <jay@gnu.org>
22977
22978         doc: update users.txt
22979         * users.txt: Add CSSC.
22980
22981 2010-05-16  Jim Meyering  <meyering@redhat.com>
22982
22983         init.sh: fix an error in the previous change; add more comments
22984         * tests/init.sh: Compare exit code in loop against 9, not 2.
22985         Patch by Bruno Haible.
22986         Make the two tests more similar by adding an empty "then" clause.
22987         Add comments.
22988
22989         init.sh: avoid unnecessary shell re-exec
22990         * tests/init.sh: Improve the re-exec-required check to first test the
22991         current shell.  If it passes the test, do not search for a shell that
22992         does pass, and do not re-exec.  This test is particularly contorted to
22993         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
22994         of $(...) evokes a syntax error and causes immediate shell exit with
22995         status 2.  Bruno Haible reported that the re-exec made it impossible
22996         to single-step through any init.sh-using script.
22997
22998 2010-05-16  Bruno Haible  <bruno@clisp.org>
22999
23000         Fix collision between gnulib's and libintl's printf replacements.
23001         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
23002         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
23003         (printf): When using GNU C, map the __printf__ function to rpl_printf
23004         via __asm__. When not using GNU C, define rpl_printf instead of
23005         __printf__.
23006         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
23007         commit.
23008         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
23009         commit.
23010         * m4/asm-underscore.m4: New file.
23011         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
23012         * modules/stdio (Files): Add m4/asm-underscore.m4.
23013         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
23014         Reported by Ben Pfaff.
23015
23016 2010-05-16  Bruno Haible  <bruno@clisp.org>
23017
23018         verify: Avoid skipping the test on openSUSE 11.0.
23019         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
23020
23021 2010-05-13  Bruno Haible  <bruno@clisp.org>
23022
23023         Avoid useless warnings from G++.
23024         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
23025         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
23026         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
23027
23028 2010-05-11  Jim Meyering  <meyering@redhat.com>
23029
23030         maint.mk: tweak preceding change
23031         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
23032         regexps tighter by anchoring at EOL, and make the new group "shy"
23033         for slightly decreased overhead.
23034
23035 2010-05-11  Eric Blake  <eblake@redhat.com>
23036
23037         maint.mk: gnulib doesn't guarantee NSIG
23038         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
23039
23040 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
23041
23042         test-pwrite.c: Remove unused variable declaration.
23043         * tests/test-pwrite.c (main): Remove read_buf declaration.
23044
23045         Remove useless test-pwrite.sh file.
23046         * tests/test-pwrite.sh: Delete file.
23047         * modules/pwrite-tests: Remove references.
23048         Reported by Bruno Haible.
23049
23050 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
23051
23052         init.sh: fix a typo
23053         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
23054
23055 2010-05-10  Jim Meyering  <meyering@redhat.com>
23056
23057         maint.mk: avoid using a temporary file in the always-defined-macros check
23058         * top/maint.mk (.re-defmac): Remove rule.
23059         (gl_trap_): Remove definition.
23060         (sc_prohibit_always-defined_macros): Rewrite not to create and
23061         depend on a temporary file.  Instead, depend on GNU grep's ability
23062         to read a list of regular expressions from stdin when given "-f -".
23063
23064 2010-05-09  Bruno Haible  <bruno@clisp.org>
23065
23066         Update to GNU gettext 0.18, part 1.
23067         * m4/gettext.m4: Update to GNU gettext 0.18.
23068         * m4/intl.m4: Likewise.
23069         * m4/po.m4: Likewise.
23070         * modules/gettext (Files): Add m4/fcntl-o.m4.
23071         (configure.ac): Require gettext infrastructure from version 0.18.
23072
23073 2010-05-09  Jim Meyering  <meyering@redhat.com>
23074
23075         init.sh: enable MALLOC_PERTURB_
23076         * tests/init.sh: Enable glibc's malloc-perturbing option.
23077
23078         maint.mk: improve sc_cross_check_PATH_usage_in_tests
23079         With my recent change in init.sh from the two-line form:
23080             -#   : ${srcdir=.}
23081             -#   . "$srcdir/init.sh"; path_prepend_ .
23082             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
23083         I noticed that using the one-line form would cause this test
23084         to fail with a false-positive, or to stop working altogether,
23085         depending on whether help-version changed or all the tests did.
23086         * top/maint.mk (_hv_regex): Remove this definition.
23087         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
23088         (_hv_regex_strong): Use a stronger regex to check for conformance.
23089         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
23090         Give a separate diagnostic for lack of conforming use.
23091
23092         maint.mk: prohibit definition of symbols defined by gnulib
23093         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
23094         definition of symbols defined by gnulib.
23095
23096 2010-05-09  Bruno Haible  <bruno@clisp.org>
23097
23098         acl: Avoid test failure on Cygwin-hosted mingw.
23099         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
23100
23101 2010-05-09  Bruno Haible  <bruno@clisp.org>
23102
23103         error: Use system's fcntl function.
23104         * lib/error.c (fcntl): Undefine.
23105
23106 2010-05-09  Jim Meyering  <meyering@redhat.com>
23107
23108         verify: adjust formatting to be more consistent
23109         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
23110         argument-list '('s, and after one comma.
23111
23112 2010-05-09  Bruno Haible  <bruno@clisp.org>
23113
23114         error: More reliable output on mingw.
23115         * lib/error.c: Include <windows.h>.
23116         (is_open): New function.
23117         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
23118         defined.
23119
23120 2010-05-09  Bruno Haible  <bruno@clisp.org>
23121
23122         vasnprintf: Fix syntax errors in libintl build on mingw.
23123         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
23124         pad_ourselves and prec_ourselves after use.
23125
23126 2010-05-08  Bruno Haible  <bruno@clisp.org>
23127
23128         * lib/config.charset: Update comments for Cygwin 1.7.
23129         * lib/localcharset.c: Likewise.
23130
23131 2010-05-07  Jim Meyering  <meyering@redhat.com>
23132
23133         init.sh: improve comments
23134         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
23135         . "${srcdir=.}/init.sh"; path_prepend_ .
23136         Add a note about path_prepend_ and the alternative of using
23137         TESTS_ENVIRONMENT.
23138
23139 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
23140
23141         exclude: Unescape hashed patterns in wildcard mode.
23142         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
23143         to the hash list.
23144         * tests/test-exclude8.sh: New test case.
23145         * modules/exclude-tests: Add new test.
23146
23147 2010-05-05  Eric Blake  <eblake@redhat.com>
23148
23149         verify: automate tests
23150         * modules/verify-tests: New module.
23151         * tests/test-verify.sh: New file.
23152         * tests/test-verify.c: Guard each negative test with a unique id.
23153         Also avoid warning about unused left hand of comma expressions.
23154
23155 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
23156
23157         Further improvements to verify.h, suggested by Eric Blake.
23158         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
23159         the GL_* versions, to avoid collision with OpenGL.
23160         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
23161         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
23162         than testing merely whether it's defined.
23163
23164         Modify verify.h to pacify gcc -Wredundant_decls.
23165         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
23166         These use the prefix "GL_" since they're likely to be useful elsewhere.
23167         We may need to break them out into a different .h file.
23168         (__COUNTER__): Define to 0 if the compiler doesn't support it.
23169         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
23170         of verify_function__.
23171
23172 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
23173
23174         Tests for module pwrite.
23175         * modules/pwrite-tests: New file.
23176         * tests/test-pwrite.sh: New file.
23177         * tests/test-pwrite.c: New file.
23178
23179         New module pwrite.
23180         * lib/unistd.in.h (pwrite): New declaration.
23181         * lib/pwrite.c: New file, from glibc with modifications.
23182         * m4/pwrite.m4: New file.
23183         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
23184         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
23185         REPLACE_PWRITE.
23186         * modules/pwrite: New file.
23187         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
23188         REPLACE_PWRITE.
23189         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
23190         * doc/posix-functions/pwrite.texi: Mention the new module.
23191
23192 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
23193
23194         pread: Update documentation.
23195         * doc/posix-functions/pread.texi: Mention the 'pread' module.
23196
23197 2010-05-04  Eric Blake  <eblake@redhat.com>
23198
23199         docs: update cygwin progress
23200         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
23201         this bug.
23202         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
23203         Added in cygwin 1.7.2.
23204         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
23205         Likewise.
23206         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
23207         Likewise.
23208         * doc/glibc-functions/dup3.texi (dup3): Likewise.
23209         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
23210         * doc/glibc-functions/accept4.texi (accept4): Likewise.
23211         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
23212         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
23213         Mention nproc module.
23214         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
23215         bug in cygwin 1.7.5 addition.
23216         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
23217         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
23218         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
23219         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
23220         1.7.5.
23221         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
23222         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
23223         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
23224         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
23225         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
23226         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
23227         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
23228         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
23229         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
23230         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
23231         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
23232         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
23233         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
23234         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
23235         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
23236         Likewise.
23237         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
23238         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
23239         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
23240         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
23241         Likewise.
23242         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
23243         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
23244         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
23245         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
23246         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
23247         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
23248         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
23249         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
23250         Likewise.
23251         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
23252         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
23253         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
23254         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
23255         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
23256         Likewise.
23257         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
23258         Likewise.
23259         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
23260         Likewise.
23261         * doc/glibc-functions/xdrrec_endofrecord.texi
23262         (xdrrec_endofrecord): Likewise.
23263         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
23264         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
23265         Likewise.
23266         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
23267         Likewise.
23268
23269 2010-05-04  Jim Meyering  <meyering@redhat.com>
23270
23271         gendocs.sh: make its "-s FILE" option more useful
23272         * build-aux/gendocs.sh: When honoring the -s FILE option, update
23273         $PACKAGE to reflect the probably-different basename of "FILE".
23274
23275 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
23276
23277         bootstrap: don't ignore download_po_files failure
23278         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
23279         failure.
23280
23281 2010-05-03  Jim Meyering  <meyering@redhat.com>
23282
23283         maint.mk: allow to pass options to gendocs.sh
23284         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
23285         (gendocs_options_): New overridable variable.
23286
23287         gnu-web-doc-update: don't ignore configure or build failure
23288         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
23289
23290         announce-gen: backslash-escape '@'s in --help output
23291         * build-aux/announce-gen: Fix syntax errors.
23292
23293         maint.mk, announce-gen: allow project-specific announcement mail headers
23294         * top/maint.mk (translation_project_): Define default.
23295         (announcement_Cc_, announcement_mail_headers_): Likewise.
23296         (announcement): Invoke announce-gen with new --mail-headers option.
23297         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
23298
23299         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
23300         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
23301         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
23302         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
23303         line in the "err2" output file when running "make check" in verbose
23304         mode (i.e., with set -x enabled).
23305
23306 2010-05-03  Bruno Haible  <bruno@clisp.org>
23307
23308         wctob: Fix for weird platforms.
23309         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
23310         argument value.
23311
23312 2010-05-03  Jim Meyering  <meyering@redhat.com>
23313
23314         maint.mk: prohibit unwarranted use of <strings.h>
23315         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
23316         strings.h in a file that does not also use strcasecmp, strncasecmp,
23317         ffs or ffsll.
23318
23319         maint.mk: remove obsolete comments
23320         * top/maint.mk: Remove stale, commented-out rules.
23321
23322 2010-05-02  Bruno Haible  <bruno@clisp.org>
23323
23324         wcwidth: Declare also when it's aliased.
23325         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
23326         macro.
23327
23328 2010-05-02  Bruno Haible  <bruno@clisp.org>
23329
23330         Fix regression from 2010-04-25.
23331         * gnulib-tool (func_modules_transitive_closure): Check the status of
23332         all modules, not only of the tests that are of the form foo-tests where
23333         foo is a module.
23334
23335 2010-05-02  Bruno Haible  <bruno@clisp.org>
23336
23337         wctob: Work around nasty Cygwin 1.7.2 bug.
23338         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
23339         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
23340
23341 2010-05-01  Bruno Haible  <bruno@clisp.org>
23342
23343         fpurge: Sharper test.
23344         * tests/test-fpurge.c (main): Add one more ftell check.
23345         * modules/fpurge-tests (Depends-on): Add ftell.
23346         Suggested by Eric Blake.
23347
23348 2010-05-01  Bruno Haible  <bruno@clisp.org>
23349
23350         ftello: Another test.
23351         * tests/test-ftello3.c: New file.
23352         * modules/ftello-tests (Files): Add it.
23353         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
23354         MOSTLYCLEANFILES.
23355
23356         ftell: Another test.
23357         * tests/test-ftell3.c: New file.
23358         * modules/ftell-tests (Files): Add it.
23359         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
23360         MOSTLYCLEANFILES.
23361
23362 2010-05-01  Bruno Haible  <bruno@clisp.org>
23363
23364         ftell, ftello: Work around Solaris bug.
23365         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
23366         * lib/ftello.c: Include stdio-impl.h.
23367         (ftello): On Solaris, when _IOWRT is set, compute the result without
23368         looking at _IOREAD.
23369         * modules/ftello (Files): Add lib/stdio-impl.h.
23370         * doc/posix-functions/ftell.texi: Mention Solaris bug.
23371         * doc/posix-functions/ftello.texi: Likewise.
23372         Reported by Eric Blake.
23373
23374 2010-05-01  Bruno Haible  <bruno@clisp.org>
23375
23376         freading: Adapt to special meaning of _IOREAD flag on Solaris.
23377         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
23378         the _IOWRT flag is also set.
23379
23380 2010-05-01  Bruno Haible  <bruno@clisp.org>
23381
23382         Fix doc about a HP-UX stdio bug.
23383         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
23384         * doc/posix-functions/ftello.texi: Likewise.
23385
23386 2010-05-01  Bruno Haible  <bruno@clisp.org>
23387
23388         lseek test: Fix failure on Solaris.
23389         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
23390         output.
23391
23392 2010-04-30  Jim Meyering  <meyering@redhat.com>
23393
23394         bootstrap: don't ignore failure to generate po*/Makevars
23395         * build-aux/bootstrap (with_gettext): Don't ignore failure
23396         to create po/Makevars or runtime-po/Makevars.
23397
23398 2010-04-29  Eric Blake  <eblake@redhat.com>
23399
23400         headers: relax license to LGPLv2+
23401         * modules/fcntl-h (License): Relax license.
23402         * modules/getopt-posix (License): Likewise.
23403         * modules/locale (License): Likewise.
23404         * modules/math (License): Likewise.
23405         * modules/pty (License): Likewise.
23406         * modules/sched (License): Likewise.
23407         * modules/search (License): Likewise.
23408         * modules/spawn (License): Likewise.
23409         * modules/stdarg (License): Likewise.
23410         * modules/sysexits (License): Likewise.
23411
23412 2010-04-29  Jim Meyering  <meyering@redhat.com>
23413
23414         inttypes: relax license to LGPLv2+
23415         * modules/inttypes (License): Relax license.
23416
23417 2010-04-29  Simon Josefsson  <simon@josefsson.org>
23418
23419         * top/maint.mk (indent): Run twice to produce idempotent results.
23420
23421 2010-04-28  Bruno Haible  <bruno@clisp.org>
23422
23423         getdate: Generate getdate.c in the source directory.
23424         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
23425         MOSTLYCLEANFILES.
23426         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
23427
23428 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
23429
23430         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
23431         is not declared as a const *; avoid warnings in that case.
23432
23433 2010-04-28  Eric Blake  <eblake@redhat.com>
23434
23435         canonicalize-lgpl: avoid compiler warning
23436         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
23437         declaration' / 'extraneous semicolon' warning with some compilers.
23438         Reported by Andreas Gruenbacher.
23439
23440 2010-04-28  Jim Meyering  <meyering@redhat.com>
23441
23442         init.sh: ensure a more reliable exit status when exiting via trap
23443         * tests/init.sh (setup_): Don't rely on $? in signal handler.
23444         Inspired by patches from Dmitry V. Levin.
23445         Also trap on signal 3 (SIGQUIT).
23446
23447 2010-04-27  Bruno Haible  <bruno@clisp.org>
23448
23449         Update doc about utimes().
23450         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
23451         'utimens' module.
23452         Reported by Andreas Gruenbacher <agruen@suse.de>.
23453
23454 2010-04-27  Eric Blake  <eblake@redhat.com>
23455
23456         full-read, full-write: relax license
23457         * modules/full-read (License): Drop to LGPLv2+.
23458         * modules/full-write (License): Likewise.
23459         * modules/safe-read (License): Likewise.
23460         * modules/safe-write (License): Likewise.
23461
23462         pthread: mention library for linking
23463         * modules/pthread (Link): Mention $(LIB_PTHREAD).
23464
23465 2010-04-27  Jim Meyering  <meyering@redhat.com>
23466
23467         maint.mk: fix a bug introduced in last change
23468         * top/maint.mk (gl_assured_headers_): Now that all names are on
23469         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
23470         is not anchored to end of word, it should be adequate.
23471
23472         maint.mk: avoid side-effect in latest syntax-check
23473         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
23474         to run commands via $(shell...), and hence to incur cost only when
23475         the new rule is actually run.
23476
23477         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
23478         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
23479         and use that to create a regexp used to detect all #if HAVE_..._H uses.
23480         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
23481         (gl_assured_headers_, az_, AZ_): Define.
23482         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
23483
23484 2010-04-26  Jim Meyering  <jim@meyering.net>
23485             Bruno Haible  <bruno@clisp.org>
23486
23487         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
23488         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
23489         Prompted by an exchange with Gilles Espinasse.
23490
23491 2010-04-26  Jim Meyering  <meyering@redhat.com>
23492
23493         git-version-gen: aesthetic tweak
23494         * build-aux/git-version-gen: Use "$nl" rather than a literal,
23495         so that the command remains on a single line.
23496
23497 2010-04-26  Eric Blake  <eblake@redhat.com>
23498
23499         git-version-gen: allow use on EBCDIC hosts
23500         * build-aux/git-version-gen (dirty): Use literal rather than tying
23501         ourselves to ascii.
23502         Reported by Steve Goetze.
23503
23504 2010-04-25  Bruno Haible  <bruno@clisp.org>
23505
23506         netdb: Add support for GNULIB_POSIXCHECK.
23507         * lib/netdb.in.h: Include warn-on-use.h.
23508         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
23509         functions are used when GNULIB_POSIXCHECK is defined and the
23510         getaddrinfo module is not in use.
23511         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
23512         freeaddrinfo, gai_strerror, getnameinfo are declared.
23513         * modules/netdb (Depends-on): Add warn-on-use.
23514         (Makefile.am): Include warn-on-use.h in netdb.h.
23515
23516 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
23517
23518         build: avoid "make check" failure without .git/ directory
23519         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
23520         there is no .git/ directory.
23521
23522 2010-04-25  Bruno Haible  <bruno@clisp.org>
23523
23524         ptsname: Fix misuse of ttyname_r.
23525         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
23526         of errno.
23527
23528 2010-04-25  Bruno Haible  <bruno@clisp.org>
23529
23530         ttyname_r: Make it work on Solaris 10.
23531         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
23532         if the system function has the POSIX declaration. Test whether the
23533         function fails if the buffer is less than 128 bytes large.
23534         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
23535         system's ttyname_r function. Provide a reasonably large buffer.
23536         * modules/ttyname_r (Depends-on): Add extensions.
23537         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
23538
23539 2010-04-25  Bruno Haible  <bruno@clisp.org>
23540
23541         Use the 'extensions' module for some more functions on Solaris.
23542         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
23543         module.
23544         * doc/posix-functions/ctime_r.texi: Likewise.
23545         * doc/posix-functions/getgrgid_r.texi: Likewise.
23546         * doc/posix-functions/getgrnam_r.texi: Likewise.
23547         * doc/posix-functions/getpwnam_r.texi: Likewise.
23548         * doc/posix-functions/getpwuid_r.texi: Likewise.
23549         * doc/posix-functions/readdir_r.texi: Likewise.
23550         * doc/posix-functions/sigwait.texi: Likewise.
23551         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
23552         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
23553
23554 2010-04-25  Bruno Haible  <bruno@clisp.org>
23555
23556         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
23557         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
23558         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
23559         * lib/ttyname_r.c: Include <limits.h>.
23560         (ttyname_r): Define using the system's ttyname_r function, if it exists
23561         and not on Solaris.
23562         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
23563         set.
23564         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
23565         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
23566         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
23567         Reported by Simon Josefsson.
23568
23569 2010-04-25  Bruno Haible  <bruno@clisp.org>
23570
23571         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
23572         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
23573         * doc/posix-functions/ctime_r.texi: Likewise.
23574         * doc/posix-functions/getgrgid_r.texi: Likewise.
23575         * doc/posix-functions/getgrnam_r.texi: Likewise.
23576         * doc/posix-functions/getlogin_r.texi: Likewise.
23577         * doc/posix-functions/getpwnam_r.texi: Likewise.
23578         * doc/posix-functions/getpwuid_r.texi: Likewise.
23579         * doc/posix-functions/readdir_r.texi: Likewise.
23580         * doc/posix-functions/sigwait.texi: Likewise.
23581         * doc/posix-functions/ttyname_r.texi: Likewise.
23582         Reported by Simon Josefsson.
23583
23584 2010-04-25  Bruno Haible  <bruno@clisp.org>
23585
23586         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
23587         * gnulib-tool (func_usage): Document that --with-*-tests options apply
23588         also to --create-testdir.
23589         (func_acceptable): Don't consider the status of *-tests modules here.
23590         (func_modules_transitive_closure): Consider it here, before including a
23591         test module.
23592         (func_import, func_create_testdir): Set inc_all_direct_tests,
23593         inc_all_indirect_tests.
23594         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
23595         --create-testdir and --create-megatestdir.
23596
23597 2010-04-25  Bruno Haible  <bruno@clisp.org>
23598
23599         gnulib-tool: Add --without-*-tests options.
23600         * gnulib-tool (func_usage): Document the --without-*-tests options.
23601         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
23602         excl_unportable_tests): New variables.
23603         Fail if they are specified with --import or --update.
23604         (func_acceptable): Respect the excl_*_tests variables.
23605         (func_import): Set the excl_*_tests variables to empty.
23606
23607 2010-04-25  Simon Josefsson  <simon@josefsson.org>
23608             Bruno Haible  <bruno@clisp.org>
23609
23610         Work around a MacOS X 10.4 bug with openpty.
23611         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
23612         * tests/test-openpty.c (main): Close the master side explicitly.
23613
23614 2010-04-25  Bruno Haible  <bruno@clisp.org>
23615
23616         strnlen: Fix a C++ test error on MacOS X and Solaris.
23617         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
23618         the function is not declared.
23619         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
23620         Simon Josefsson.
23621
23622 2010-04-24  Bruno Haible  <bruno@clisp.org>
23623
23624         Avoid a gcc warning.
23625         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
23626         of correct type for %08lx directive.
23627         Reported by Eric Blake.
23628
23629 2010-04-24  Bruno Haible  <bruno@clisp.org>
23630
23631         vasnprintf: Correct errno value in case of out-of-memory.
23632         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
23633         or sprintf. Use the errno value from SNPRINTF or sprintf.
23634         Reported by Ian Beckwith <ianb@erislabs.net>.
23635
23636 2010-04-24  Bruno Haible  <bruno@clisp.org>
23637
23638         ansi-c++-opt: Find correct compiler when cross-compiling.
23639         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
23640         AC_CHECK_PROGS.
23641         Reported by Simon Josefsson.
23642
23643 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
23644
23645         vc-list-files: Add support for subversion
23646         * build-aux/vc-list-files: Use "svn list" to generate the list of
23647         files controlled by subversion.
23648
23649 2010-04-23  Jim Meyering  <meyering@redhat.com>
23650
23651         vc-list-files tests: convert to use init.sh
23652         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
23653         path_prepend_.
23654         Use Exit, not exit.
23655         Use skip_ rather than open coding it.
23656         Remove trap set-up and compare definitions.
23657         * tests/test-vc-list-files-git.sh: Likewise.
23658         * modules/vc-list-files-tests (Files): Add tests/init.sh.
23659
23660 2010-04-22  Simon Josefsson  <simon@josefsson.org>
23661
23662         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
23663         backup files.
23664
23665 2010-04-21  Simon Josefsson  <simon@josefsson.org>
23666
23667         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
23668
23669 2010-04-20  Eric Blake  <eblake@redhat.com>
23670
23671         tests: be robust to ignored SIGPIPE
23672         * tests/test-select-in.sh: Consume all output.
23673         * tests/test-lseek.sh: Check correct exit status, while avoiding
23674         EPIPE.
23675
23676 2010-04-20  Simon Josefsson  <simon@josefsson.org>
23677             Bruno Haible  <bruno@clisp.org>
23678
23679         visibility: Don't use -fvisibility if it leads to a warning.
23680         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
23681         yes, don't pretend that visibility works if it leads to a warning.
23682         Reported by Mike Gran <spk121@yahoo.com>.
23683
23684 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
23685
23686         * build-aux/bootstrap: Use "git -h" for testing for supported options
23687         instead of "git --help".  The short-form option only shows a summary,
23688         and doesn't layout the full man page.  Grep for the full option name
23689         in the summary, too.
23690
23691 2010-04-19  Bruno Haible  <bruno@clisp.org>
23692
23693         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
23694         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
23695         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
23696         mention of RELOCATABLE_STRIP.
23697         Reported by Sylvain Beucler <beuc@beuc.net>.
23698
23699 2010-04-19  Bruno Haible  <bruno@clisp.org>
23700
23701         * lib/diffseq.h: Fix typo in comment.
23702         Reported by Eric Blake.
23703
23704 2010-04-19  Bruno Haible  <bruno@clisp.org>
23705
23706         ioctl: Move autoconf macro to a .m4 file.
23707         * m4/ioctl.m4: New file, extracted from modules/ioctl.
23708         * modules/ioctl (Files): Add it.
23709         (configure.ac): Simply invoke gl_FUNC_IOCTL.
23710         Reported by Ian Beckwith <ianb@erislabs.net>.
23711
23712 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
23713             Bruno Haible  <bruno@clisp.org>
23714
23715         diffseq: Accommodate use-case with abstract arrays.
23716         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
23717         is not defined.
23718         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
23719         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
23720
23721 2010-04-18  Bruno Haible  <bruno@clisp.org>
23722
23723         * doc/posix-headers/stdbool.texi: More precise wording.
23724
23725 2010-04-17  Jim Meyering  <meyering@redhat.com>
23726
23727         maint.mk: use gnu-style indentation in an embedded perl script
23728         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
23729         Rename variable: s/two/last_two_bytes/
23730
23731 2010-04-16  Eric Blake  <eblake@redhat.com>
23732
23733         test-stdbool: skip test that fails with Solaris CC
23734         * tests/test-stdbool.c (f): Skip test that causes compilation
23735         error under buggy C++ compiler.
23736         * lib/stdbool.in.h: Document the limitation.
23737         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
23738
23739         setenv: allow compilation with C++
23740         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
23741         register keyword.
23742
23743         stdint: allow test to pass with C++
23744         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
23745
23746         getopt: allow compilation with C++
23747         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
23748         struct.
23749         * lib/getopt.c (_getopt_internal_r): Use correct type.
23750         Reported by Dagobert Michelson, via Joel E. Denny.
23751
23752 2010-04-16  Bruno Haible  <bruno@clisp.org>
23753
23754         Override netdb.h always.
23755         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
23756         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
23757         Reported by Ludovic Courtès <ludo@gnu.org>.
23758
23759 2010-04-15  Bruno Haible  <bruno@clisp.org>
23760
23761         openpty: Fix mistake from 2010-03-21.
23762         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
23763         Reported by Simon Josefsson.
23764
23765 2010-04-15  Eric Blake  <eblake@redhat.com>
23766
23767         test-forkpty: fix expected signature
23768         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
23769         Reported by Simon Josefsson.
23770
23771 2010-04-15  Jim Meyering  <meyering@redhat.com>
23772
23773         maint.mk: texinfo_suffix_re_: correct the default regexp
23774         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
23775
23776         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
23777         make it configurable via texinfo_suffix_re_.
23778
23779 2010-04-14  Eric Blake  <eblake@redhat.com>
23780
23781         strtok_r: relax license to LGPLv2+
23782         * modules/strtok_r (License): Relax license.
23783         Reported by Matthias Bolte.
23784
23785 2010-04-14  Simon Josefsson  <simon@josefsson.org>
23786
23787         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
23788         version 1.4.4 by default instead of requiring the libgcrypt
23789         version used during build.  This makes it possible to use the
23790         application with older but still binary compatible libgcrypt
23791         versions.
23792
23793 2010-04-13  Eric Blake  <eblake@redhat.com>
23794
23795         getopt-gnu: match recent glibc fixes and posix ruling
23796         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
23797         '+' handling, when requesting extensions.
23798         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
23799         'W;' handling.
23800         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
23801         * doc/posix-functions/getopt.texi (getopt): Document this.
23802         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
23803         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
23804         Likewise.
23805
23806         getopt: merge bug fixes from glibc
23807         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
23808         diagnostics.  Honor '+:' correctly.  Reject ';'.
23809
23810         getopt-posix: detect MacOS bug
23811         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
23812         optind when missing a required argument.
23813         * doc/posix-functions/getopt.texi (getopt): Document the bug.
23814         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
23815         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
23816         Likewise.
23817
23818         getopt-posix: avoid spurious failure on Solaris
23819         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
23820         an indicator that setting optind=1 is sufficient for reset.
23821
23822         getopt-posix: avoid spurious failure on FreeBSD
23823         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
23824         in POSIX mode, since the m4 test uses it.
23825
23826         gnulib-tool: silence warning on BSD sh
23827         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
23828
23829 2010-04-13  Jim Meyering  <meyering@redhat.com>
23830
23831         doc: users.txt: GNU patch now uses gnulib
23832         * users.txt: Add patch.
23833
23834 2010-04-12  Jim Meyering  <meyering@redhat.com>
23835
23836         maint.mk: generate more concise timing data for syntax-check rules
23837         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
23838         " done" from each line that reports a syntax-check test duration.
23839
23840 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
23841
23842         git-version-gen: use "git update-index..." rather than "git status"
23843         * build-aux/git-version-gen: Use git update-index --refresh, not
23844         "git status".  With some versions of git, "git status" would fail
23845         to update the index and result in an unwarranted "-dirty" suffix.
23846
23847 2010-04-11  Jim Meyering  <meyering@redhat.com>
23848
23849         openat: correct formatting (no semantic change)
23850         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
23851         Suggested by Bruno Haible.
23852
23853 2010-04-11  Bruno Haible  <bruno@clisp.org>
23854
23855         Stricter declaration checking in testdirs.
23856         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
23857         If for_tests is true, augment AM_CPPFLAGS to define
23858         GNULIB_STRICT_CHECKING.
23859         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
23860         GNULIB_STRICT_CHECKING is defined, verify that the function is
23861         declared.
23862
23863 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
23864             Bruno Haible  <bruno@clisp.org>
23865
23866         libunistring: Improve configure output.
23867         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
23868         Don't say "consider installing GNU libunistring" when checking again
23869         with libiconv.
23870
23871 2010-04-11  Bruno Haible  <bruno@clisp.org>
23872
23873         libunistring: Correct value of $LTLIBUNISTRING.
23874         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
23875         correct the value of $LTLIBUNISTRING.
23876
23877 2010-04-11  Bruno Haible  <bruno@clisp.org>
23878
23879         havelib: Add static libraries to LIBS in the right order.
23880         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
23881         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
23882
23883 2010-04-11  Bruno Haible  <bruno@clisp.org>
23884
23885         libunistring: Detect libunistring also when it depends on libiconv.
23886         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
23887         the second AC_LIB_HAVE_LINKFLAGS invocation.
23888
23889 2010-04-11  James Youngman  <jay@gnu.org>
23890
23891         close-stream: declare local scalars to be "const"
23892         * lib/close-stream.c (close_stream): Make boolean variables const
23893         to document the fact that we set but do not change them.
23894
23895 2010-04-11  Bruno Haible  <bruno@clisp.org>
23896
23897         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
23898
23899 2010-04-11  Jim Meyering  <meyering@redhat.com>
23900
23901         maint.mk: don't include dist-check.mk
23902         * top/maint.mk: Remove bogus include directive.
23903
23904         maint.mk: improve empty-line-at-EOF check
23905         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
23906         solution, rather than tail+Perl-based one.  The latter would read
23907         a few kilobytes from the end of each file, and did not handle empty
23908         files properly.
23909
23910         maint.mk: print the elapsed time for each syntax-check rule
23911         * top/maint.mk (sc_m_rules_): Save start time in a file.
23912         (sc_z_rules_): New rules: remove temp file and print elapsed time.
23913         (local-check): Interpose the .z rules
23914
23915 2010-04-11  Jim Meyering  <meyering@redhat.com>
23916
23917         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
23918         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
23919         empty file with one that ends in an empty line.
23920
23921 2010-04-10  Bruno Haible  <bruno@clisp.org>
23922
23923         mkdir: Make it work on mingw64.
23924         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
23925         * lib/mkdir.c: Update comment.
23926         Reported by Roman Donchenko (Роман Донченко) <dxdragon@yandex.ru>.
23927
23928 2010-04-10  Bruno Haible  <bruno@clisp.org>
23929
23930         Don't override improved macro from newer autoconf.
23931         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
23932         autoconf >= 2.62.
23933         Reported by Joel E. Denny <jdenny@clemson.edu>.
23934
23935 2010-04-10  Jim Meyering  <meyering@redhat.com>
23936
23937         maint.mk: new syntax-check rule: prohibit empty lines at end of file
23938         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
23939
23940         maint.mk: correct a diagnostic
23941         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
23942         in diagnostic; now use $prohibit.
23943
23944 2010-04-10  Bruno Haible  <address@hidden>
23945
23946         fchownat: Fix a C++ test error on Solaris 8.
23947         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
23948         the function does not exist.
23949
23950 2010-04-10  Bruno Haible  <bruno@clisp.org>
23951
23952         vasnprintf: Add more tests.
23953         * tests/test-vasnprintf-posix.c: Include <errno.h>.
23954         (test_function): Test converting an invalid wide string.
23955
23956         vasnprintf: Correct handling of unconvertible wide string arguments.
23957         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
23958         VASNPRINTF.
23959         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
23960         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
23961         smaller than the expected maximum need for the directive. Set errno to
23962         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
23963         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
23964         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
23965         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
23966         * modules/vasnprintf (Files): Add m4/printf.m4.
23967         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
23968
23969 2010-04-10  Bruno Haible  <bruno@clisp.org>
23970
23971         vasnprintf: Fix crash in %ls directive.
23972         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
23973         string is passed as argument to %ls, with no precision and no width.
23974         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
23975
23976 2010-04-10  Bruno Haible  <bruno@clisp.org>
23977
23978         vasnprintf: Fix multiple test failures on mingw.
23979         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
23980         _snprintf, or snwprintf, not _snwprintf.
23981
23982 2010-04-10  Bruno Haible  <bruno@clisp.org>
23983
23984         write: Fix a C++ test error on mingw.
23985         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
23986
23987 2010-04-10  Bruno Haible  <bruno@clisp.org>
23988
23989         vasnprintf test: Reduce code duplication.
23990         * tests/test-vasnprintf.c (test_function): New function, extracted from
23991         test_vasnprintf.
23992         (test_vasnprintf, test_asnprintf): Invoke it.
23993
23994 2010-04-10  Bruno Haible  <bruno@clisp.org>
23995
23996         strnlen: Fix warning in C++ mode on MacOS X.
23997         * lib/string.in.h (strnlen): Use the modern idiom.
23998         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
23999         defining strnlen as a macro already in <config.h>.
24000         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
24001         REPLACE_STRNLEN.
24002         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
24003         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
24004
24005 2010-04-08  James Youngman  <jay@gnu.org>
24006
24007         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
24008         the example.
24009
24010 2010-04-09  Jim Meyering  <meyering@redhat.com>
24011
24012         maint.mk: print better diagnostic when there is no $(_hv_file)
24013         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
24014         announce that when $(_hv_file) (aka help-version) does not exist.
24015
24016         init.sh: run tr in the "C" locale to avoid multibyte interpretation
24017         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
24018         not try to interpret its random input bytes.  Jarno Rajahalme reported
24019         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
24020         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
24021         (mktempd_): Likewise, just in case.
24022
24023         ftruncate: add two years to projected module removal date: 2012
24024         * m4/ftruncate.m4: Adjust comments.
24025
24026         ftruncate: mark module as obsolete; even MinGW provides it, now
24027         * modules/ftruncate (Status): Obsolete.
24028         (Notice): Say that.
24029         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
24030         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
24031
24032 2010-04-08  Bruno Haible  <bruno@clisp.org>
24033
24034         Fix side effects from tests-related modules.
24035         * modules/dprintf-posix (Comment): New section.
24036         * modules/fprintf-posix (Comment): Likewise.
24037         * modules/obstack-printf-posix (Comment): Likewise.
24038         * modules/printf-posix (Comment): Likewise.
24039         * modules/snprintf-posix (Comment): Likewise.
24040         * modules/sprintf-posix (Comment): Likewise.
24041         * modules/vasnprintf-posix (Comment): Likewise.
24042         * modules/vasprintf-posix (Comment): Likewise.
24043         * modules/vdprintf-posix (Comment): Likewise.
24044         * modules/vfprintf-posix (Comment): Likewise.
24045         * modules/vprintf-posix (Comment): Likewise.
24046         * modules/vsnprintf-posix (Comment): Likewise.
24047         * modules/vsprintf-posix (Comment): Likewise.
24048         * modules/xprintf-posix (Comment): Likewise.
24049         * modules/xvasprintf-posix (Comment): Likewise.
24050         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
24051         * modules/floorf-tests (Depends-on): Likewise.
24052         * modules/round-tests (Depends-on): Likewise.
24053         * modules/roundf-tests (Depends-on): Likewise.
24054         * modules/trunc-tests (Depends-on): Likewise.
24055         * modules/truncf-tests (Depends-on): Likewise.
24056         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
24057         'fprintf-posix' module is not present.
24058         * tests/test-floorf2.c (check): Likewise.
24059         * tests/test-trunc2.c (check): Likewise.
24060         * tests/test-truncf2.c (check): Likewise.
24061         * tests/test-round2.c (equal): Likewise.
24062         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
24063
24064 2010-04-07  Karl Berry  <karl@gnu.org>
24065
24066         * config/srclist.txt,
24067         * config/srclistvars.sh,
24068         * config/srclist-update: doc fixes.
24069
24070 2010-04-07  Jim Meyering  <meyering@redhat.com>
24071
24072         maint.mk: add a PATH crosschecking syntax-check rule
24073         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
24074         Useful if you use a test like the one in help-version (coreutils,
24075         diffutils, grep, gzip) that ensures $(VERSION) matches what is
24076         printed by prog --version.
24077
24078 2010-04-06  Bruno Haible  <bruno@clisp.org>
24079
24080         Fix link error on mingw.
24081         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
24082         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
24083
24084 2010-04-06  Bruno Haible  <bruno@clisp.org>
24085
24086         Assume rmdir exists.
24087         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
24088
24089 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
24090
24091         doc: update users.txt
24092         * users.txt: Add gcal.
24093
24094 2010-04-06  Jim Meyering  <meyering@redhat.com>
24095
24096         init.sh: simply unset TMPDIR rather than risking env -i
24097         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
24098         although it probably works fine on all Unix-based systems, some
24099         systems (Cygwin?) cannot tolerate a totally cleared environment.
24100         Suggestion from Eric Blake.
24101
24102 2010-04-06  Jim Meyering  <meyering@redhat.com>
24103
24104         init.sh: portability fix: use env's POSIX-specified -i option not -u
24105         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
24106         than unportable env -u.  Solaris 5.11's env lacks support for -u.
24107
24108 2010-04-05  Bruno Haible  <bruno@clisp.org>
24109
24110         btowc: Work around Cygwin 1.7.2 bug.
24111         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
24112         does not map NUL to 0.
24113         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
24114
24115 2010-04-05  Bruno Haible  <bruno@clisp.org>
24116
24117         Make the multithread modules work on Cygwin 1.7.2.
24118         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
24119         imported symbols can be declared weak, so that it returns "no" on
24120         Cygwin 1.7.2.
24121
24122 2010-04-05  Bruno Haible  <bruno@clisp.org>
24123
24124         Use the module 'strncat'.
24125         * modules/unistr/u8-strncat (Depends-on): Add strncat.
24126
24127         Tests for module 'strncat'.
24128         * modules/strncat-tests: New file.
24129         * tests/test-strncat.c: New file.
24130
24131         New module 'strncat'.
24132         * lib/string.in.h (strncat): New declaration.
24133         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
24134         * m4/strncat.m4: New file, based on m4/memchr.m4.
24135         * modules/strncat: New file.
24136         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
24137         is declared.
24138         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
24139         REPLACE_STRNCAT.
24140         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
24141         REPLACE_STRNCAT.
24142         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
24143         module.
24144         * tests/test-string-c++.cc: Check signature of strncat.
24145
24146 2010-04-05  Jim Meyering  <meyering@redhat.com>
24147
24148         xstrtoumax-tests: convert to use init.sh
24149         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
24150         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
24151         Use Exit, not exit.
24152         Remove uses of $EXEEXT and "./" to run a program in the current dir.
24153
24154         xstrtoimax-tests: convert to use init.sh
24155         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
24156         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
24157         Use Exit, not exit.
24158         Remove uses of $EXEEXT and "./" to run a program in the current dir.
24159
24160 2010-04-05  Bruno Haible  <bruno@clisp.org>
24161
24162         sys_socket: Avoid #define replacements in C++ mode.
24163         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
24164         warning to the function if possible, rather than #defining the symbol
24165         to a dysfunctional alias.
24166
24167 2010-04-05  Bruno Haible  <bruno@clisp.org>
24168
24169         fseeko: Fix C++ test error on mingw.
24170         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
24171         gl_FUNC_FSEEKO.
24172         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
24173         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
24174         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
24175         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
24176
24177 2010-04-05  Bruno Haible  <bruno@clisp.org>
24178
24179         duplocale: Improve test output.
24180         * tests/test-duplocale.c (main): Print reason for skipped test.
24181
24182 2010-04-05  Bruno Haible  <bruno@clisp.org>
24183
24184         Assume rmdir exists.
24185         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
24186         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
24187
24188 2010-04-05  Bruno Haible  <bruno@clisp.org>
24189
24190         Fix link error on Solaris 8 with cc.
24191         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
24192
24193 2010-04-05  Bruno Haible  <bruno@clisp.org>
24194
24195         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
24196         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
24197
24198 2010-04-05  Bruno Haible  <bruno@clisp.org>
24199
24200         vasprintf: Update documentation.
24201         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
24202
24203 2010-04-05  Bruno Haible  <bruno@clisp.org>
24204
24205         ptsname: Improve test.
24206         * tests/test-ptsname.c (main): Also try the various master names of BSD
24207         systems.
24208
24209 2010-04-05  Bruno Haible  <bruno@clisp.org>
24210
24211         memchr: Avoid a possible C++ test error.
24212         * lib/string.in.h (memchr): Provide declaration if function is missing.
24213         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
24214         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
24215         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
24216         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
24217
24218 2010-04-05  Bruno Haible  <bruno@clisp.org>
24219
24220         strtok_r: Improve idiom.
24221         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
24222         AC_LIBOBJ is used.
24223
24224 2010-04-05  Bruno Haible  <bruno@clisp.org>
24225
24226         strdup: Improve idiom.
24227         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
24228         AC_LIBOBJ is used.
24229         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
24230         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
24231         when AC_LIBOBJ is used.
24232
24233 2010-04-05  Bruno Haible  <bruno@clisp.org>
24234
24235         mbsinit, mbrtowc, wcrtomb: Improve idioms.
24236         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
24237         don't set REPLACE_MBSINIT to 1.
24238         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
24239         don't set REPLACE_MBRTOWC to 1.
24240         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
24241         exist, don't set REPLACE_MBSRTOWCS to 1.
24242         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
24243         exist, don't set REPLACE_MBSNRTOWCS to 1.
24244         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
24245         don't set REPLACE_WCRTOMB to 1.
24246         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
24247         exist, don't set REPLACE_WCSRTOMBS to 1.
24248         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
24249         exist, don't set REPLACE_WCSNRTOMBS to 1.
24250
24251 2010-04-05  Bruno Haible  <bruno@clisp.org>
24252
24253         ldexpl: Improve idiom.
24254         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
24255         make sure to set HAVE_DECL_LDEXPL to 0.
24256
24257 2010-04-05  Jim Meyering  <meyering@redhat.com>
24258
24259         xstrtol-tests: convert to use init.sh
24260         * modules/xstrtol-tests (Files): Add tests/init.sh.
24261         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
24262         Use Exit, not exit.
24263         Remove uses of $EXEEXT and "./" to run a program in the current dir.
24264
24265         atexit-tests: convert to use init.sh
24266         * modules/atexit-tests (Files): Add tests/init.sh.
24267         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
24268         Use Exit, not exit.
24269         Remove uses of $EXEEXT and "./" to run a program in the current dir.
24270
24271         init.sh: fix typo
24272         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
24273
24274         init.sh: make it easier for a test script to write to the tty, ...
24275         when using automake's parallel-tests mode.
24276         * tests/init.sh (stderr_fileno_): Define overridable variable.
24277         (warn_): New function, to use it.
24278         (fail_, skip_, framework_failure_): Use warn_.
24279
24280 2010-04-04  Bruno Haible  <bruno@clisp.org>
24281
24282         btowc: Avoid warning.
24283         * lib/btowc.c: Include <stdlib.h>.
24284         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
24285
24286 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
24287             Bruno Haible  <bruno@clisp.org>
24288
24289         wchar: Port to NetBSD 1.5.
24290         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
24291         * lib/wctype.in.h (WEOF): Likewise.
24292
24293 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
24294             Bruno Haible  <bruno@clisp.org>
24295
24296         Port extended stdio to NetBSD 1.5.
24297         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
24298         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
24299         older.
24300
24301 2010-04-04  Bruno Haible  <bruno@clisp.org>
24302
24303         string: Remove unused substitution.
24304         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
24305         HAVE_DECL_STRERROR.
24306         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
24307
24308 2010-04-04  Bruno Haible  <bruno@clisp.org>
24309
24310         strtod: Avoid a possible C++ test error.
24311         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
24312         set REPLACE_STRTOD.
24313
24314 2010-04-04  Bruno Haible  <bruno@clisp.org>
24315
24316         strerror: Update documentation.
24317         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
24318
24319 2010-04-04  Bruno Haible  <bruno@clisp.org>
24320
24321         stdio: Fix some C++ test errors on Solaris 8 with GCC.
24322         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
24323         _GL_CXXALIAS_SYS_CAST.
24324
24325 2010-04-04  Bruno Haible  <bruno@clisp.org>
24326
24327         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
24328         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
24329         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
24330         REPLACE_FREXPL to 1.
24331         * doc/posix-functions/frexpl.texi: Update documentation.
24332
24333 2010-04-04  Bruno Haible  <bruno@clisp.org>
24334
24335         math: Fix some C++ test errors on Solaris 8 and Cygwin.
24336         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
24337
24338 2010-04-04  Bruno Haible  <bruno@clisp.org>
24339
24340         Implement nanosleep for native Windows.
24341         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
24342
24343 2010-04-04  Bruno Haible  <bruno@clisp.org>
24344
24345         math: Fix some C++ test errors on Solaris 8.
24346         * lib/math.in.h (truncf, trunc): Use simpler idiom.
24347
24348 2010-04-04  Bruno Haible  <bruno@clisp.org>
24349
24350         math: Fix some C++ test errors on Cygwin.
24351         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
24352         truncl): Provide declaration if the system does not have it.
24353         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
24354         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
24355         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
24356         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
24357         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
24358         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
24359         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
24360         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
24361         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
24362         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
24363         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
24364         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
24365         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
24366         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
24367         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
24368         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
24369         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
24370         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
24371         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
24372         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
24373         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
24374         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
24375
24376 2010-04-04  Bruno Haible  <bruno@clisp.org>
24377
24378         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
24379         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
24380         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
24381         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
24382         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
24383         * m4/isinf.m4 (gl_ISINF): Likewise.
24384         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
24385
24386 2010-04-04  Bruno Haible  <bruno@clisp.org>
24387
24388         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
24389         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
24390
24391 2010-04-04  Bruno Haible  <bruno@clisp.org>
24392
24393         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
24394         * modules/tmpfile (configure.ac): Update.
24395
24396         tmpfile: Fix C++ test error on mingw.
24397         * lib/stdio.in.h (tmpfile): New declaration.
24398         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
24399         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
24400         * modules/tmpfile (Depends-on): Add stdio.
24401         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
24402         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
24403         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
24404         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
24405         REPLACE_TMPFILE.
24406         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
24407
24408 2010-04-04  Bruno Haible  <bruno@clisp.org>
24409
24410         ioctl: Fix C++ test error on mingw.
24411         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
24412         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
24413         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
24414
24415 2010-04-03  Bruno Haible  <bruno@clisp.org>
24416
24417         wcwidth: Fix C++ test error on mingw.
24418         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
24419         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
24420         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
24421
24422 2010-04-03  Bruno Haible  <bruno@clisp.org>
24423
24424         nanosleep: Fix C++ test error on mingw.
24425         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
24426         * lib/time.in.h (nanosleep): Use modern idiom.
24427         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
24428         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
24429         REPLACE_NANOSLEEP to 1.
24430         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
24431         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
24432
24433 2010-04-03  Bruno Haible  <bruno@clisp.org>
24434
24435         strptime: Fix C++ test error on mingw.
24436         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
24437         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
24438         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
24439         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
24440         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
24441         not REPLACE_STRPTIME.
24442         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
24443         REPLACE_STRPTIME.
24444
24445 2010-04-03  Bruno Haible  <bruno@clisp.org>
24446
24447         timegm: Fix C++ test error on mingw.
24448         * lib/time.in.h (timegm): Use modern idiom.
24449         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
24450         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
24451         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
24452         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
24453
24454 2010-04-03  Bruno Haible  <bruno@clisp.org>
24455
24456         timegm: Assume declaration if function exists.
24457         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
24458         if it exists. Don't clobber ac_cv_func_timegm.
24459
24460 2010-04-03  Bruno Haible  <bruno@clisp.org>
24461
24462         time_r: Fix C++ test error on mingw.
24463         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
24464         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
24465         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
24466         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
24467         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
24468
24469 2010-04-03  Bruno Haible  <bruno@clisp.org>
24470
24471         time_r: Minor updates.
24472         * modules/time_r (Description): Mention the provided functions.
24473         * lib/time_r.c: Don't include <string.h>.
24474         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
24475         * doc/posix-functions/localtime_r.texi: Likewise.
24476
24477 2010-04-03  Bruno Haible  <bruno@clisp.org>
24478
24479         time: Fix regression introduced on 2010-03-08.
24480         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
24481         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
24482
24483 2010-04-03  Jim Meyering  <meyering@redhat.com>
24484
24485         maint.mk: don't silently disable project-specific syntax-check rules
24486         * top/maint.mk (_prohibit_regexp): Define, to help people realize
24487         that they need to convert their project-specific syntax-check rules
24488         to use the new _sc_search_regexp.
24489
24490 2010-04-03  Bruno Haible  <bruno@clisp.org>
24491
24492         fchdir: Fix regression introduced on 2010-03-08.
24493         * lib/unistd.in.h (fchdir): Fix declaration.
24494         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
24495         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
24496         REPLACE_FCHDIR.
24497         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
24498         REPLACE_FCHDIR.
24499
24500 2010-04-03  Bruno Haible  <bruno@clisp.org>
24501
24502         getpagesize: Fix C++ test error on mingw.
24503         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
24504         system does not declare the function.
24505         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
24506         declared.
24507         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
24508         HAVE_DECL_GETPAGESIZE.
24509         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
24510
24511 2010-04-03  Bruno Haible  <bruno@clisp.org>
24512
24513         stdio: Make C++ tests work on mingw.
24514         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
24515         does not declare the function.
24516
24517 2010-04-03  Bruno Haible  <bruno@clisp.org>
24518
24519         ftello: Fix C++ test error on mingw.
24520         * lib/stdio.in.h (ftello): Use modern idiom.
24521         * lib/ftello.c (ftello): Renamed from rpl_ftello.
24522         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
24523         is missing and that it needs to be replaced.
24524         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
24525         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
24526         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
24527
24528 2010-04-03  Bruno Haible  <bruno@clisp.org>
24529
24530         fseeko: Fix C++ test error on mingw.
24531         * lib/stdio.in.h (fseeko): Use modern idiom.
24532         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
24533         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
24534         is missing and that it needs to be replaced.
24535         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
24536         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
24537         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
24538
24539 2010-04-03  Bruno Haible  <bruno@clisp.org>
24540
24541         mkstemp: Fix C++ test error on mingw.
24542         * lib/stdlib.in.h (mkstemp): Use modern idiom.
24543         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
24544         function is missing and that it needs to be replaced.
24545         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
24546         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
24547
24548 2010-04-03  Bruno Haible  <bruno@clisp.org>
24549
24550         stpncpy: Fix C++ test error on mingw.
24551         * lib/string.in.h (stpncpy): Use modern idiom.
24552         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
24553         function is missing and that it needs to be replaced.
24554         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
24555         REPLACE_STPNCPY.
24556         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
24557
24558 2010-04-03  Bruno Haible  <bruno@clisp.org>
24559
24560         sys_stat: Fix C++ test error on mingw.
24561         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
24562         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
24563
24564 2010-04-03  Bruno Haible  <bruno@clisp.org>
24565
24566         pty: Update doc.
24567         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
24568
24569 2010-04-03  Bruno Haible  <bruno@clisp.org>
24570
24571         unistd: Fix C++ test error on mingw.
24572         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
24573
24574 2010-04-03  Bruno Haible  <bruno@clisp.org>
24575
24576         Update doc regarding mingw.
24577         * doc/glibc-functions/openpty.texi: Update regarding mingw.
24578         * doc/glibc-functions/login_tty.texi: Likewise.
24579         * doc/glibc-functions/forkpty.texi: Likewise.
24580
24581 2010-04-03  Bruno Haible  <bruno@clisp.org>
24582
24583         stdlib: Avoid compilation failure of c-strtold on mingw.
24584         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
24585
24586 2010-04-03  Bruno Haible  <bruno@clisp.org>
24587
24588         locale: Make C++ tests work on Cygwin and mingw.
24589         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
24590         cannot provide the function.
24591         Reported by Simon Josefsson.
24592
24593 2010-04-03  Bruno Haible  <bruno@clisp.org>
24594
24595         localename: Port to MacOS X 10.6.
24596         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
24597         memory layout of the locales in MacOS X 10.6 as well.
24598         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
24599
24600 2010-04-02  Bruno Haible  <bruno@clisp.org>
24601
24602         gnulib-tool: Ensure that long-running tests are executed last.
24603         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
24604         running tests after the one for the other tests.
24605
24606 2010-04-02  Bruno Haible  <bruno@clisp.org>
24607
24608         gnulib-tool: Ensure the tests in the main directory are executed first.
24609         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
24610         start with the current directory.
24611
24612 2010-04-02  Bruno Haible  <bruno@clisp.org>
24613
24614         Tests for module 'havelib', moved here from GNU gettext.
24615         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
24616         modifications.
24617         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
24618         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
24619         with modifications.
24620         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
24621         modifications.
24622         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
24623         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
24624         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
24625         with modifications.
24626         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
24627         with modifications.
24628         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
24629         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
24630         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
24631         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
24632         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
24633         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
24634         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
24635         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
24636         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
24637         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
24638         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
24639         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
24640         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
24641         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
24642         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
24643         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
24644         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
24645         with modifications.
24646         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
24647         with modifications.
24648         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
24649         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
24650         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
24651         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
24652         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
24653         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
24654         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
24655         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
24656         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
24657         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
24658         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
24659         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
24660         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
24661         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
24662         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
24663         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
24664         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
24665         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
24666         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
24667         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
24668         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
24669         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
24670         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
24671         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
24672         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
24673         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
24674         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
24675         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
24676         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
24677         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
24678         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
24679         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
24680         * tests/havelib/rpathx/rpathx.c: New file, from
24681         gettext/autoconf-lib-link.
24682         * tests/havelib/rpathx/Makefile.am: New file, from
24683         gettext/autoconf-lib-link.
24684         * tests/havelib/rpathx/configure.ac: New file, from
24685         gettext/autoconf-lib-link with modifications.
24686         * tests/havelib/rpathy/rpathy.c: New file, from
24687         gettext/autoconf-lib-link.
24688         * tests/havelib/rpathy/Makefile.am: New file, from
24689         gettext/autoconf-lib-link.
24690         * tests/havelib/rpathy/configure.ac: New file, from
24691         gettext/autoconf-lib-link with modifications.
24692         * tests/havelib/rpathz/rpathz.c: New file, from
24693         gettext/autoconf-lib-link.
24694         * tests/havelib/rpathz/Makefile.am: New file, from
24695         gettext/autoconf-lib-link.
24696         * tests/havelib/rpathz/configure.ac: New file, from
24697         gettext/autoconf-lib-link with modifications.
24698         * tests/havelib/rpathlx/usex.c: New file, from
24699         gettext/autoconf-lib-link.
24700         * tests/havelib/rpathlx/Makefile.am: New file, from
24701         gettext/autoconf-lib-link.
24702         * tests/havelib/rpathlx/configure.ac: New file, from
24703         gettext/autoconf-lib-link with modifications.
24704         * tests/havelib/rpathly/usey.c: New file, from
24705         gettext/autoconf-lib-link.
24706         * tests/havelib/rpathly/Makefile.am: New file, from
24707         gettext/autoconf-lib-link.
24708         * tests/havelib/rpathly/configure.ac: New file, from
24709         gettext/autoconf-lib-link with modifications.
24710         * tests/havelib/rpathlz/usez.c: New file, from
24711         gettext/autoconf-lib-link.
24712         * tests/havelib/rpathlz/Makefile.am: New file, from
24713         gettext/autoconf-lib-link.
24714         * tests/havelib/rpathlz/configure.ac: New file, from
24715         gettext/autoconf-lib-link with modifications.
24716         * tests/havelib/rpathlyx/usey.c: New file, from
24717         gettext/autoconf-lib-link.
24718         * tests/havelib/rpathlyx/Makefile.am: New file, from
24719         gettext/autoconf-lib-link.
24720         * tests/havelib/rpathlyx/configure.ac: New file, from
24721         gettext/autoconf-lib-link with modifications.
24722         * tests/havelib/rpathlzyx/usez.c: New file, from
24723         gettext/autoconf-lib-link.
24724         * tests/havelib/rpathlzyx/Makefile.am: New file, from
24725         gettext/autoconf-lib-link.
24726         * tests/havelib/rpathlzyx/configure.ac: New file, from
24727         gettext/autoconf-lib-link with modifications.
24728         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
24729         with modifications.
24730
24731 2010-04-02  Bruno Haible  <bruno@clisp.org>
24732
24733         gnulib-tool: Create distributed built sources also for the tests.
24734         * gnulib-tool (func_create_testdir): Also generate distributed built
24735         sources in the tests directory.
24736
24737 2010-04-02  Bruno Haible  <bruno@clisp.org>
24738
24739         gnulib-tool: Obey user's environment variables.
24740         * gnulib-tool (func_create_testdir): When creating built sources,
24741         respect the environment variables for autoconf, automake, etc. given by
24742         the user.
24743
24744 2010-04-02  Bruno Haible  <bruno@clisp.org>
24745
24746         gnulib-tool: Provide the value of --m4-base to modules.
24747         * gnulib-tool (func_import, func_create_testdir): Emit a definition
24748         of gl_m4_base.
24749
24750 2010-04-02  Eric Blake  <eblake@redhat.com>
24751
24752         maint.mk: fix some fallout
24753         * NEWS: Document the incompatible change, and its effect on cfg.mk.
24754         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
24755
24756 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
24757
24758         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
24759         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
24760         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
24761         (sc_cast_of_x_alloc_return_value): Likewise.
24762         (sc_cast_of_alloca_return_value): Likewise.
24763         (sc_space_tab): Likewise.
24764         (sc_prohibit_atoi_atof): Likewise.
24765         (sc_prohibit_magic_number_exit): Likewise.
24766         (sc_error_exit_success): Likewise.
24767         (sc_file_system): Likewise.
24768         (sc_prohibit_have_config_h): Likewise.
24769         (sc_require_config_h): Likewise.
24770         (sc_prohibit_HAVE_MBRTOWC): Likewise.
24771         (sc_obsolete_symbols): Likewise.
24772         (sc_changelog): Likewise.
24773         (sc_program_name): Likewise.
24774         (sc_the_the): Likewise.
24775         (sc_trailing_blank): Likewise.
24776         (sc_two_space_separator_in_usage): Likewise.
24777         (sc_useless_cpp_parens): Likewise.
24778         (sc_GPL_version): Likewise.
24779         (sc_GFDL_version): Likewise.
24780         (sc_texinfo_acronym): Likewise.
24781         (sc_prohibit_cvs_keyword): Likewise.
24782         (sc_prohibit_stat_st_blocks): Likewise.
24783         (sc_prohibit_S_IS_definition): Likewise.
24784         (sc_redundant_const): Likewise.
24785         (sc_makefile_TAB_only_indentation): Likewise.
24786         (sc_m4_quote_check): Likewise.
24787         (sc_makefile_path_separator_check): Likewise.
24788         (sc_copyright_check): Likewise.
24789         (sc_Wundef_boolean): Likewise.
24790         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
24791
24792         maint.mk: match 0 or more whitespace-before-function-call '('
24793         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
24794         that have zero or two-and-more spaces between the function name
24795         and the open parenthesis.
24796         (sc_error_message_warn_fatal): Likewise.
24797         (sc_error_message_uppercase): Likewise.
24798         (sc_error_message_period): Likewise.
24799
24800 2010-03-31  Eric Blake  <eblake@redhat.com>
24801
24802         maint.mk: check for [ as well as test
24803         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
24804         Based on a libvirt report by Matthias Bolte.
24805
24806         gnumakefile: don't squelch _version output
24807         * top/GNUmakefile (_version): Create one-shot dependency rather
24808         than using $(shell) when version must be regenerated.
24809         (_autoreconf): Run verbosely, by default.
24810
24811         sys_time: avoid compiler warnings
24812         * lib/sys_time.in.h (includes): Ensure gcc pragma is
24813         unconditional, fixing regression from 2010-03-29.
24814         Reported by Simon Josefsson.
24815
24816 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
24817
24818         maint.mk: s/_header_without_use/_sc_header_without_use/
24819         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
24820         (sc_prohibit_assert_without_use): Use the new name.
24821         (sc_prohibit_close_stream_without_use): Likewise.
24822         (sc_prohibit_getopt_without_use): Likewise.
24823         (sc_prohibit_quotearg_without_use): Likewise.
24824         (sc_prohibit_quote_without_use): Likewise.
24825         (sc_prohibit_long_options_without_use): Likewise.
24826         (sc_prohibit_inttostr_without_use): Likewise.
24827         (sc_prohibit_ignore_value_without_use): Likewise.
24828         (sc_prohibit_error_without_use): Likewise.
24829         (sc_prohibit_xalloc_without_use): Likewise.
24830         (sc_prohibit_hash_without_use): Likewise.
24831         (sc_prohibit_hash_pjw_without_use): Likewise.
24832         (sc_prohibit_safe_read_without_use): Likewise.
24833         (sc_prohibit_argmatch_without_use): Likewise.
24834         (sc_prohibit_canonicalize_without_use): Likewise.
24835         (sc_prohibit_root_dev_ino_without_use): Likewise.
24836         (sc_prohibit_openat_without_use): Likewise.
24837         (sc_prohibit_c_ctype_without_use): Likewise.
24838         (sc_prohibit_signal_without_use): Likewise.
24839         (sc_prohibit_intprops_without_use): Likewise.
24840
24841 2010-03-30  Eric Blake  <eblake@redhat.com>
24842
24843         maint: improve module indicators
24844         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
24845         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
24846         columns, and avoid extra macro expansion.
24847
24848         fdopendir: work around FreeBSD bug
24849         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
24850         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
24851         * modules/dirent (Makefile.am): Substitute it.
24852         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
24853         declaration.
24854         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
24855         fix.
24856         Reported by Christian Weisgerber <naddy@mips.inka.de>.
24857
24858 2010-03-29  Bruno Haible  <bruno@clisp.org>
24859
24860         Emit #pragma system_header after the inclusion guard, not before.
24861         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
24862         guard that spans the entire file, not before. This enables an
24863         optimization in GCC's preprocessor.
24864         * lib/ctype.in.h: Likewise.
24865         * lib/dirent.in.h: Likewise.
24866         * lib/errno.in.h: Likewise.
24867         * lib/float.in.h: Likewise.
24868         * lib/getopt.in.h: Likewise.
24869         * lib/iconv.in.h: Likewise.
24870         * lib/langinfo.in.h: Likewise.
24871         * lib/locale.in.h: Likewise.
24872         * lib/math.in.h: Likewise.
24873         * lib/netdb.in.h: Likewise.
24874         * lib/netinet_in.in.h: Likewise.
24875         * lib/pty.in.h: Likewise.
24876         * lib/sched.in.h: Likewise.
24877         * lib/se-selinux.in.h: Likewise.
24878         * lib/search.in.h: Likewise.
24879         * lib/spawn.in.h: Likewise.
24880         * lib/stdarg.in.h: Likewise.
24881         * lib/stdint.in.h: Likewise.
24882         * lib/string.in.h: Likewise.
24883         * lib/strings.in.h: Likewise.
24884         * lib/sys_file.in.h: Likewise.
24885         * lib/sys_ioctl.in.h: Likewise.
24886         * lib/sys_time.in.h: Likewise.
24887         * lib/sys_times.in.h: Likewise.
24888         * lib/sys_utsname.in.h: Likewise.
24889         * lib/sys_wait.in.h: Likewise.
24890         * lib/sysexits.in.h: Likewise.
24891         * lib/wctype.in.h: Likewise.
24892
24893 2010-03-28  James Youngman  <jay@gnu.org>
24894
24895         save-cwd: don't leak a file descriptor when the caller execs.
24896         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
24897         saved file descriptor.
24898         * modules/save-cwd (Depends-on): Depend on cloexec.
24899
24900 2010-03-29  Bruno Haible  <bruno@clisp.org>
24901
24902         Remove vestiges of fts-lgpl module.
24903         * lib/fts_.h: Assume GNULIB_FTS is 1.
24904         * lib/fts.c: Likewise.
24905         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
24906
24907 2010-03-28  Bruno Haible  <bruno@clisp.org>
24908
24909         Fix definition of tests witness macro.
24910         * gnulib-tool (func_import): Fix definition of witness macro.
24911
24912 2010-03-28  Bruno Haible  <bruno@clisp.org>
24913
24914         Fix ioctl's protoype on glibc systems.
24915         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
24916         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
24917         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
24918         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
24919         signature. If not, arrange to replace the ioctl function.
24920         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
24921         REPLACE_IOCTL.
24922         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
24923         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
24924         Reported by Ludovic Courtès <ludo@gnu.org>.
24925
24926 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
24927
24928         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
24929         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
24930         made it so grep -r --include=GLOB* ... did not work.
24931
24932 2010-03-26  Jim Meyering  <meyering@redhat.com>
24933             Eric Blake  <eblake@redhat.com>
24934
24935         maint.mk: prohibit use of test's -o and -a operators
24936         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
24937
24938 2010-03-28  Bruno Haible  <bruno@clisp.org>
24939
24940         Remove unused GNULIB_XYZ macro definitions.
24941         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
24942         invocation.
24943
24944 2010-03-28  Bruno Haible  <bruno@clisp.org>
24945
24946         Mark privileged tests modules.
24947         * modules/idpriv-drop-tests (Status): New section.
24948         * modules/idpriv-droptemp-tests (Status): New section.
24949
24950 2010-03-28  Bruno Haible  <bruno@clisp.org>
24951
24952         Split C++ tests into separate tests modules.
24953         * modules/dirent-c++-tests: New file, extracted from
24954         modules/dirent-tests.
24955         * modules/dirent-tests: Depend on it.
24956         * modules/fcntl-h-c++-tests: New file, extracted from
24957         modules/fcntl-h-tests.
24958         * modules/fcntl-h-tests: Depend on it.
24959         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
24960         * modules/glob-tests: Depend on it.
24961         * modules/iconv-h-c++-tests: New file, extracted from
24962         modules/iconv-h-tests.
24963         * modules/iconv-h-tests: Depend on it.
24964         * modules/langinfo-c++-tests: New file, extracted from
24965         modules/langinfo-tests.
24966         * modules/langinfo-tests: Depend on it.
24967         * modules/locale-c++-tests: New file, extracted from
24968         modules/locale-tests.
24969         * modules/locale-tests: Depend on it.
24970         * modules/math-c++-tests: New file, extracted from modules/math-tests.
24971         * modules/math-tests: Depend on it.
24972         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
24973         * modules/pty-tests: Depend on it.
24974         * modules/search-c++-tests: New file, extracted from
24975         modules/search-tests.
24976         * modules/search-tests: Depend on it.
24977         * modules/signal-c++-tests: New file, extracted from
24978         modules/signal-tests.
24979         * modules/signal-tests: Depend on it.
24980         * modules/spawn-c++-tests: New file, extracted from
24981         modules/spawn-tests.
24982         * modules/spawn-tests: Depend on it.
24983         * modules/stdio-c++-tests: New file, extracted from
24984         modules/stdio-tests.
24985         * modules/stdio-tests: Depend on it.
24986         * modules/stdlib-c++-tests: New file, extracted from
24987         modules/stdlib-tests.
24988         * modules/stdlib-tests: Depend on it.
24989         * modules/string-c++-tests: New file, extracted from
24990         modules/string-tests.
24991         * modules/string-tests: Depend on it.
24992         * modules/sys_ioctl-c++-tests: New file, extracted from
24993         modules/sys_ioctl-tests.
24994         * modules/sys_ioctl-tests: Depend on it.
24995         * modules/sys_select-c++-tests: New file, extracted from
24996         modules/sys_select-tests.
24997         * modules/sys_select-tests: Depend on it.
24998         * modules/sys_socket-c++-tests: New file, extracted from
24999         modules/sys_socket-tests.
25000         * modules/sys_socket-tests: Depend on it.
25001         * modules/sys_stat-c++-tests: New file, extracted from
25002         modules/sys_stat-tests.
25003         * modules/sys_stat-tests: Depend on it.
25004         * modules/sys_time-c++-tests: New file, extracted from
25005         modules/sys_time-tests.
25006         * modules/sys_time-tests: Depend on it.
25007         * modules/time-c++-tests: New file, extracted from modules/time-tests.
25008         * modules/time-tests: Depend on it.
25009         * modules/unistd-c++-tests: New file, extracted from
25010         modules/unistd-tests.
25011         * modules/unistd-tests: Depend on it.
25012         * modules/wchar-c++-tests: New file, extracted from
25013         modules/wchar-tests.
25014         * modules/wchar-tests: Depend on it.
25015         * modules/wctype-c++-tests: New file, extracted from
25016         modules/wctype-tests.
25017         * modules/wctype-tests: Depend on it.
25018         Reported by Simon Josefsson.
25019
25020 2010-03-28  Bruno Haible  <bruno@clisp.org>
25021
25022         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
25023         * gnulib-tool (func_exists_module): New function, extracted from
25024         func_verify_module.
25025         (func_verify_module): Use it.
25026         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
25027         'foo' only if 'foo' exists.
25028         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
25029         module.
25030
25031 2010-03-28  Bruno Haible  <bruno@clisp.org>
25032
25033         gnulib-tool: Add support for special categories of tests.
25034         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
25035         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
25036         (func_usage): Document them.
25037         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
25038         inc_unportable_tests, inc_all_tests): New variables.
25039         (func_acceptable): Consider these variables.
25040         (func_modules_transitive_closure): Make it work when the 'Status' field
25041         consists of multiple words.
25042         (func_import): Store and restore the values of inc_cxx_tests,
25043         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
25044         inc_all_tests in gnulib-comp.m4.
25045         (func_create_testdir): Set inc_all_tests to true.
25046         * doc/gnulib.texi (Extra tests modules): New section.
25047         Suggested by Jim Meyering.
25048
25049 2010-03-28  Bruno Haible  <bruno@clisp.org>
25050
25051         ansi-c++-opt: Allow turning off the C++ build by default.
25052         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
25053         gl_CXX_CHOICE_DEFAULT_NO is defined.
25054         Requested by Eric Blake.
25055
25056 2010-03-28  Bruno Haible  <bruno@clisp.org>
25057
25058         unistd: Avoid #define replacements in C++ mode.
25059         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
25060         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
25061         setsockopt, shutdown, select): In C++, attach a warning to the function
25062         if possible, rather than #defining the symbol to a dysfunctional alias.
25063         Reported by John W. Eaton <jwe@gnu.org>.
25064
25065 2010-03-28  Bruno Haible  <bruno@clisp.org>
25066
25067         Fix link errors on mingw.
25068         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
25069         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
25070         $(LIBSOCKET).
25071         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
25072         $(LIBSOCKET).
25073
25074 2010-03-28  Bruno Haible  <bruno@clisp.org>
25075             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25076
25077         lib-ignore: Determine different options for different compilers.
25078         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
25079         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
25080         Add comments.
25081         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
25082         * NEWS: Mention the change.
25083
25084 2010-03-27  Bruno Haible  <bruno@clisp.org>
25085
25086         Remove unused GNULIB_XYZ macro definitions.
25087         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
25088         * modules/fseek (configure.ac): Likewise.
25089         * modules/ioctl (configure.ac): Likewise.
25090         * modules/open (configure.ac): Likewise.
25091         * modules/stdlib-safer (configure.ac): Likewise.
25092
25093 2010-03-27  Bruno Haible  <bruno@clisp.org>
25094
25095         Add a remark about certain modules.
25096         * modules/malloc (Comment): New section.
25097         * modules/realloc (Comment): Likewise.
25098         * modules/sigpipe (Comment): Likewise.
25099
25100 2010-03-27  Bruno Haible  <bruno@clisp.org>
25101
25102         Resolve conflict between the two kinds of module indicators.
25103         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
25104         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
25105         * modules/canonicalize (configure.ac): Invoke
25106         gl_MODULE_INDICATOR_FOR_TESTS.
25107         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
25108         GNULIB_XYZ.
25109         * tests/test-dirent-c++.cc: Likewise.
25110         * tests/test-dirent-safer.c: Likewise.
25111         * tests/test-dup2.c: Likewise.
25112         * tests/test-fchdir.c: Likewise.
25113         * tests/test-fcntl-h-c++.cc: Likewise.
25114         * tests/test-getopt.c: Likewise.
25115         * tests/test-getopt.h: Likewise.
25116         * tests/test-langinfo-c++.cc: Likewise.
25117         * tests/test-locale-c++.cc: Likewise.
25118         * tests/test-math-c++.cc: Likewise.
25119         * tests/test-pty-c++.cc: Likewise.
25120         * tests/test-search-c++.cc: Likewise.
25121         * tests/test-signal-c++.cc: Likewise.
25122         * tests/test-spawn-c++.cc: Likewise.
25123         * tests/test-stdio-c++.cc: Likewise.
25124         * tests/test-stdlib-c++.cc: Likewise.
25125         * tests/test-string-c++.cc: Likewise.
25126         * tests/test-sys_ioctl-c++.cc: Likewise.
25127         * tests/test-sys_select-c++.cc: Likewise.
25128         * tests/test-sys_socket-c++.cc: Likewise.
25129         * tests/test-sys_stat-c++.cc: Likewise.
25130         * tests/test-sys_time-c++.cc: Likewise.
25131         * tests/test-time-c++.cc: Likewise.
25132         * tests/test-unistd-c++.cc: Likewise.
25133         * tests/test-wchar-c++.cc: Likewise.
25134         * tests/uninorm/test-u8-nfc.c: Likewise.
25135         * tests/uninorm/test-u8-nfd.c: Likewise.
25136         * tests/uninorm/test-u8-nfkc.c: Likewise.
25137         * tests/uninorm/test-u8-nfkd.c: Likewise.
25138         * tests/uninorm/test-u16-nfc.c: Likewise.
25139         * tests/uninorm/test-u16-nfd.c: Likewise.
25140         * tests/uninorm/test-u16-nfkc.c: Likewise.
25141         * tests/uninorm/test-u16-nfkd.c: Likewise.
25142         * tests/uninorm/test-u32-nfc.c: Likewise.
25143         * tests/uninorm/test-u32-nfc-big.c: Likewise.
25144         * tests/uninorm/test-u32-nfd.c: Likewise.
25145         * tests/uninorm/test-u32-nfd-big.c: Likewise.
25146         * tests/uninorm/test-u32-nfkc.c: Likewise.
25147         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
25148         * tests/uninorm/test-u32-nfkd.c: Likewise.
25149         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
25150         * tests/uninorm/test-u32-normalize-big.c: Likewise.
25151
25152 2010-03-27  Bruno Haible  <bruno@clisp.org>
25153
25154         Distinguish two kinds of module indicators.
25155         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
25156         gl_MODULE_INDICATOR.
25157         (gl_MODULE_INDICATOR): New macro.
25158         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
25159         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
25160         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
25161         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
25162         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
25163         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
25164         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
25165         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
25166         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
25167         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
25168         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
25169         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
25170         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
25171         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
25172         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
25173         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
25174         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
25175         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
25176         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
25177         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
25178         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
25179         * modules/cloexec (configure.ac): Likewise.
25180         * modules/getopt-gnu (configure.ac): Likewise.
25181         * modules/uninorm/u8-normalize (configure.ac): Likewise.
25182         * modules/uninorm/u16-normalize (configure.ac): Likewise.
25183         * modules/uninorm/u32-normalize (configure.ac): Likewise.
25184         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
25185
25186 2010-03-27  Bruno Haible  <bruno@clisp.org>
25187
25188         New module description field 'Comment'.
25189         * gnulib-tool: New option --extract-comment.
25190         (func_usage): Document it.
25191         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
25192         (func_get_comment): New function.
25193         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
25194
25195 2010-03-27  Bruno Haible  <bruno@clisp.org>
25196
25197         Addendum to 2010-02-07 commit.
25198         * gnulib-tool (func_usage): Document --extract-applicability option.
25199
25200 2010-03-27  Bruno Haible  <bruno@clisp.org>
25201
25202         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
25203         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
25204         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
25205         rather than link errors.
25206
25207 2010-03-27  Bruno Haible  <bruno@clisp.org>
25208
25209         Avoid side effects from tests-related modules on the compilation of lib.
25210         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
25211         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
25212         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
25213         parameter. Emit into AM_CPPFLAGS a definition of the designated C
25214         macro.
25215         (func_import): Define a witness macro. Assign it a value that depends
25216         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
25217         tests-related modules.
25218         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
25219         Reported by Jim Meyering.
25220
25221 2010-03-27  Bruno Haible  <bruno@clisp.org>
25222
25223         Factorize common .m4 code.
25224         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
25225         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
25226         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
25227         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
25228         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
25229         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
25230         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
25231         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
25232         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
25233         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
25234         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
25235         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
25236         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
25237         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
25238         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
25239         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
25240         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
25241         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
25242         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
25243         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
25244         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
25245         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
25246         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
25247         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
25248         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
25249         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
25250         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
25251         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
25252         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
25253         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
25254         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
25255         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
25256
25257 2010-03-27  Bruno Haible  <bruno@clisp.org>
25258
25259         Fix a compilation error on Cygwin with g++ >= 4.3.
25260         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
25261         if it is undefined or if we alias it to chmod.
25262         (lstat): Don't warn about the use of this function if it is undefined
25263         or if we alias it to stat.
25264         Reported by Simon Josefsson.
25265
25266 2010-03-27  Bruno Haible  <bruno@clisp.org>
25267
25268         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
25269         * modules/getlogin (configure.ac): Update.
25270
25271         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
25272         * modules/getlogin_r (configure.ac): Update.
25273
25274         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
25275         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
25276         * modules/inet_ntop (configure.ac): Update.
25277
25278         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
25279         * modules/inet_pton (configure.ac): Update.
25280
25281         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
25282         * modules/mbslen (configure.ac): Update.
25283
25284         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
25285         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
25286         * modules/forkpty (configure.ac): Update.
25287         * modules/openpty (configure.ac): Update.
25288
25289 2010-03-26  Simon Josefsson  <simon@josefsson.org>
25290
25291         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
25292         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
25293
25294 2010-03-25  Eric Blake  <eblake@redhat.com>
25295
25296         maint: use pragma consistently across replacement headers
25297         * lib/ctype.in.h (system_header): Hoist for consistent placement.
25298         * lib/dirent.in.h (system_header): Likewise.
25299         * lib/errno.in.h (system_header): Likewise.
25300         * lib/float.in.h (system_header): Likewise.
25301         * lib/getopt.in.h (system_header): Likewise.
25302         * lib/iconv.in.h (system_header): Likewise.
25303         * lib/inttypes.in.h (system_header): Likewise.
25304         * lib/langinfo.in.h (system_header): Likewise.
25305         * lib/locale.in.h (system_header): Likewise.
25306         * lib/math.in.h (system_header): Likewise.
25307         * lib/netdb.in.h (system_header): Likewise.
25308         * lib/netinet_in.in.h (system_header): Likewise.
25309         * lib/pty.in.h (system_header): Likewise.
25310         * lib/sched.in.h (system_header): Likewise.
25311         * lib/se-selinux.in.h (system_header): Likewise.
25312         * lib/search.in.h (system_header): Likewise.
25313         * lib/spawn.in.h (system_header): Likewise.
25314         * lib/stdarg.in.h (system_header): Likewise.
25315         * lib/stdint.in.h (system_header): Likewise.
25316         * lib/string.in.h (system_header): Likewise.
25317         * lib/strings.in.h (system_header): Likewise.
25318         * lib/sys_file.in.h (system_header): Likewise.
25319         * lib/sys_ioctl.in.h (system_header): Likewise.
25320         * lib/sys_socket.in.h (system_header): Likewise.
25321         * lib/sys_times.in.h (system_header): Likewise.
25322         * lib/sys_utsname.in.h (system_header): Likewise.
25323         * lib/sys_wait.in.h (system_header): Likewise.
25324         * lib/sysexits.in.h (system_header): Likewise.
25325         * lib/unistd.in.h (system_header): Likewise.
25326         * lib/wctype.in.h (system_header): Likewise.
25327
25328         arpa/inet: fix mingw compilation warning
25329         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
25330         Reported by Matthew Bolte.
25331
25332 2010-03-25  Bruno Haible  <bruno@clisp.org>
25333
25334         Avoid collision between gnulib wrapper and libintl wrapper.
25335         * lib/printf.c (printf): Don't define if a printf wrapper is already
25336         defined in intl/printf.c.
25337         Reported by Michel Boaventura <michel@michelboaventura.com>.
25338
25339 2010-03-25  Bruno Haible  <bruno@clisp.org>
25340
25341         Use ANSI C.
25342         * lib/readutmp.h (getutent): Provide ANSI C prototype.
25343
25344 2010-03-25  Bruno Haible  <bruno@clisp.org>
25345
25346         Minor formatting changes.
25347         * lib/acosl.c: Insert space before function argument list.
25348         * lib/argz.c: Likewise.
25349         * lib/asinl.c: Likewise.
25350         * lib/expl.c: Likewise.
25351         * lib/gen-uni-tables.c: Likewise.
25352         * lib/gettext.h: Likewise.
25353         * lib/glthread/lock.h: Likewise.
25354         * lib/tanl.c: Likewise.
25355         * lib/uniname/uniname.c: Likewise.
25356         * tests/test-idpriv-drop.c: Likewise.
25357         * tests/test-idpriv-droptemp.c: Likewise.
25358         * tests/test-lock.c: Likewise.
25359         * tests/test-tls.c: Likewise.
25360         * lib/argp-help.c: Insert space before function-like macro argument
25361         list.
25362         * lib/memcmp.c: Likewise.
25363         * tests/test-base64.c: Likewise.
25364         * lib/localename.c: Insert space before sizeof's argument list.
25365         * lib/safe-alloc.h: Likewise.
25366         * lib/file-set.h: Insert space before macro argument list.
25367         * tests/test-argp.c: Likewise.
25368         * lib/argp-namefrob.h: Insert space before function parameter list.
25369         * lib/getaddrinfo.c: Likewise.
25370         * lib/netdb.in.h: Likewise.
25371         * lib/parse-duration.h: Likewise.
25372         * lib/parse-duration.c: Likewise.
25373         * lib/poll.c: Likewise.
25374         * lib/select.c: Likewise.
25375         * lib/trim.h: Likewise.
25376         * tests/test-usleep.c: Likewise.
25377         * lib/ldexpl.c: Insert space before function parameter list and before
25378         function argument list.
25379         * lib/logl.c: Likewise.
25380         * lib/sqrtl.c: Likewise.
25381         * lib/trim.c: Likewise.
25382         * lib/cosl.c: Use GNU style indentation. Insert space before function
25383         argument list.
25384         * lib/sinl.c: Likewise.
25385         * lib/tsearch.c: Insert space after 'for'.
25386         Reported by Jim Meyering.
25387
25388 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
25389
25390         * maint.mk (sc_Wundef_boolean): Check for the presence of the
25391         config header before grepping, as it's not present before
25392         autoreconf/configure are run.  Reported by Simon Josefsson.
25393
25394 2010-03-23  Bruno Haible  <bruno@clisp.org>
25395
25396         pt_chown: Make it work with automake < 1.11.
25397         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
25398         Reported by Simon Josefsson.
25399
25400 2010-03-23  Bruno Haible  <bruno@clisp.org>
25401
25402         pt_chown: Don't depend on GPLed modules.
25403         * lib/pt_chown.c: Don't include idpriv.h.
25404         (main): Don't drop privileges.
25405         * modules/pt_chown (Depends-on): Remove idpriv-drop.
25406         Reported by Simon Josefsson.
25407
25408 2010-03-24  Simon Josefsson  <simon@josefsson.org>
25409
25410         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
25411         suggestions from karl@freefriends.org (Karl Berry).
25412
25413 2010-03-22  Eric Blake  <eblake@redhat.com>
25414
25415         gethostname: further tweaks
25416         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
25417         are overriding gethostname.
25418         Suggested by Bruno Haible.
25419
25420 2010-03-21  Bruno Haible  <bruno@clisp.org>
25421
25422         Fix comments.
25423         * lib/forkpty.c (rpl_forkpty): Fix comment.
25424         * lib/openpty.c (rpl_openpty): Likewise.
25425         Reported by Eric Blake.
25426
25427 2010-03-22  Eric Blake  <eblake@redhat.com>
25428
25429         gethostname: fix build on mingw
25430         * lib/unistd.in.h (includes): Work around fact that mingw
25431         <winsock2.h> re-includes <unistd.h>, by avoiding any
25432         redeclarations if we are being included by <winsock2.h>.
25433         Reported by Matthias Bolte.
25434
25435 2010-03-21  Bruno Haible  <bruno@clisp.org>
25436
25437         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
25438         * lib/forkpty.c (forkpty): New replacement function, from glibc with
25439         modifications.
25440         * lib/pty.in.h (forkpty): Update declaration. Add comments.
25441         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
25442         provide the replacement.
25443         * modules/forkpty (Depends-on): Add openpty, login_tty.
25444         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
25445         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
25446         * doc/glibc-functions/forkpty.texi: More supported platforms.
25447         * config/srclist.txt: Add forkpty.c (commented).
25448
25449 2010-03-21  Bruno Haible  <bruno@clisp.org>
25450
25451         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
25452         (Makefile.am): Verify that PTY_LIB is defined.
25453
25454         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
25455
25456 2010-03-21  Bruno Haible  <bruno@clisp.org>
25457
25458         Tests for module 'login_tty'.
25459         * modules/login_tty-tests: New file.
25460         * tests/test-login_tty.c: New file.
25461
25462         New module 'login_tty'.
25463         * lib/login_tty.c: New file.
25464         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
25465         * modules/login_tty: New file.
25466         * doc/glibc-functions/login_tty.texi: Mention the new module.
25467
25468 2010-03-21  Bruno Haible  <bruno@clisp.org>
25469
25470         login_tty: Documentation.
25471         * doc/glibc-functions/login_tty.texi: New file.
25472         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
25473
25474 2010-03-21  Bruno Haible  <bruno@clisp.org>
25475
25476         pty: Consistent macro naming.
25477         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
25478         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
25479         * modules/pty (configure.ac): Update.
25480
25481 2010-03-21  Bruno Haible  <bruno@clisp.org>
25482
25483         Tests for openpty: Make stricter.
25484         * tests/test-openpty.c (main): Add test of canonical processing and
25485         erase.
25486         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
25487
25488         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
25489         * lib/openpty.c (openpty): New replacement function.
25490         * lib/pty.in.h: Include <termios.h>.
25491         (openpty): Update declaration. Add comments.
25492         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
25493         is not declared, arrange to provide the replacement. Check for _getpty
25494         and posix_openpt.
25495         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
25496         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
25497         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
25498         * modules/pty-tests (test_pty_c___LDADD): New variable.
25499         * doc/glibc-functions/openpty.texi: More supported platforms.
25500
25501 2010-03-21  Bruno Haible  <bruno@clisp.org>
25502
25503         setenv: Tweaks.
25504         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
25505         the test program.
25506         * doc/posix-functions/setenv.texi: Update platforms list.
25507
25508 2010-03-21  Bruno Haible  <bruno@clisp.org>
25509
25510         New module 'unlockpt'.
25511         * lib/unlockpt.c: New file, from glibc with modifications.
25512         * m4/unlockpt.m4: New file.
25513         * modules/unlockpt: New file.
25514         * lib/stdlib.in.h (unlockpt): New declaration.
25515         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
25516         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
25517         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
25518         HAVE_UNLOCKPT.
25519         * doc/posix-functions/unlockpt.texi: Mention the new module.
25520         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
25521         * config/srclist.txt: Add unlockpt.c (commented).
25522
25523 2010-03-21  Jim Meyering  <meyering@redhat.com>
25524
25525         maint.mk: prohibit inclusion of "intprops.h" without use
25526         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
25527
25528 2010-03-21  Bruno Haible  <bruno@clisp.org>
25529
25530         New module 'grantpt'.
25531         * lib/grantpt.c: New file, from glibc with modifications.
25532         * m4/grantpt.m4: New file.
25533         * modules/grantpt: New file.
25534         * lib/stdlib.in.h (grantpt): New declaration.
25535         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
25536         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
25537         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
25538         HAVE_GRANTPT.
25539         * doc/posix-functions/grantpt.texi: Mention the new module.
25540         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
25541         * config/srclist.txt: Add grantpt.c (commented).
25542
25543 2010-03-21  Bruno Haible  <bruno@clisp.org>
25544
25545         New module 'pt_chown'.
25546         * lib/pt_chown.c: New file, from glibc with modifications.
25547         * lib/pty-private.h: New file, from glibc with modifications.
25548         * modules/pt_chown: New file.
25549         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
25550
25551 2010-03-21  Bruno Haible  <bruno@clisp.org>
25552
25553         Tests for module 'ptsname'.
25554         * modules/ptsname-tests: New file.
25555         * tests/test-ptsname.c: New file.
25556
25557         New module 'ptsname'.
25558         * lib/ptsname.c: New file, from glibc with modifications.
25559         * m4/ptsname.m4: New file.
25560         * modules/ptsname: New file.
25561         * lib/stdlib.in.h (ptsname): New declaration.
25562         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
25563         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
25564         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
25565         HAVE_PTSNAME.
25566         * doc/posix-functions/ptsname.texi: Mention the new module.
25567         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
25568         * config/srclist.txt: Add ptsname.c (commented).
25569
25570 2010-03-21  Bruno Haible  <bruno@clisp.org>
25571
25572         Tests for module 'ttyname_r'.
25573         * modules/ttyname_r-tests: New file.
25574         * tests/test-ttyname_r.c: New file.
25575
25576         New module 'ttyname_r'.
25577         * lib/ttyname_r.c: New file.
25578         * m4/ttyname_r.m4: New file.
25579         * modules/ttyname_r: New file.
25580         * lib/unistd.in.h (ttyname_r): New declaration.
25581         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
25582         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
25583         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
25584         HAVE_TTYNAME_R.
25585         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
25586         * doc/posix-functions/ttyname_r.texi: Mention the new module.
25587
25588 2010-03-20  Bruno Haible  <bruno@clisp.org>
25589
25590         signal: Undefine macro definitions in C++ mode.
25591         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
25592         sigfillset): Undefine macro definitions from the system header in C++
25593         mode.
25594         Reported by John W. Eaton <jwe@gnu.org>.
25595
25596 2010-03-20  Bruno Haible  <bruno@clisp.org>
25597
25598         Ensure no #include statements inside extern "C" { ... }.
25599         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
25600         contain #include statements.
25601         * lib/time.in.h: Likewise.
25602
25603 2010-03-20  Bruno Haible  <bruno@clisp.org>
25604
25605         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
25606         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
25607         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
25608         Reported by John W. Eaton <jwe@gnu.org>.
25609
25610 2010-03-20  Bruno Haible  <bruno@clisp.org>
25611
25612         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
25613         Reported by Jim Meyering.
25614
25615 2010-03-20  Bruno Haible  <bruno@clisp.org>
25616
25617         pipe: Set errno upon failure.
25618         * lib/pipe.h: Specify that when -1 is returned, errno is set.
25619         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
25620         errno value in error message.
25621
25622 2010-03-20  Bruno Haible  <bruno@clisp.org>
25623             Jim Meyering  <meyering@redhat.com>
25624
25625         lchown: Avoid "unused variable" warning.
25626         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
25627
25628 2010-03-20  Bruno Haible  <bruno@clisp.org>
25629
25630         Work around unlink() bug on MacOS X 10.5.6.
25631         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
25632         attempting to unlink a parent directory.
25633         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
25634         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
25635         activate for the replacement function.
25636         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
25637
25638 2010-03-20  Bruno Haible  <bruno@clisp.org>
25639
25640         Fix link errors on Solaris 8.
25641         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
25642         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
25643
25644 2010-03-19  Jim Meyering  <meyering@redhat.com>
25645
25646         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
25647         The _LIBC implementation of build_range_exp correctly honors the
25648         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
25649         However, the non-_LIBC implementation would ignore that syntax-bit
25650         flag and return REG_ERANGE unconditionally.
25651         This change makes it honor that flag.
25652         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
25653         Make two pointer parameters "const".
25654         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
25655         (parse_bracket_exp): Update caller.
25656
25657         regex.m4: correct the reversed range endpoint ([b-a]) test
25658         * m4/regex.m4: When requiring that [b-a] evoke failure,
25659         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
25660         test pass once again for x86-based systems.
25661
25662 2010-03-19  Bruno Haible  <bruno@clisp.org>
25663
25664         scandir: Fix link error on Solaris 8.
25665         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
25666         macros.
25667
25668 2010-03-19  Bruno Haible  <bruno@clisp.org>
25669
25670         getusershell: Fix documentation.
25671         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
25672         module.
25673         * doc/glibc-functions/setusershell.texi: Likewise.
25674
25675         getusershell: Provide declaration, missing on Solaris 9.
25676         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
25677         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
25678         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
25679         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
25680         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
25681         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
25682         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
25683         HAVE_GETUSERSHELL.
25684         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
25685
25686 2010-03-19  Bruno Haible  <bruno@clisp.org>
25687
25688         wctype: Provide iswblank function.
25689         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
25690         exists and is fine.
25691         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
25692         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
25693         * tests/test-wctype.c (main): Re-enable the iswblank tests.
25694         * doc/posix-functions/iswblank.texi: Update.
25695
25696 2010-03-19  Bruno Haible  <bruno@clisp.org>
25697
25698         Tests of module 'pty' in C++ mode.
25699         * modules/pty-tests: New file.
25700         * tests/test-pty-c++.cc: New file.
25701         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
25702
25703 2010-03-19  Eric Blake  <eblake@redhat.com>
25704
25705         logb: fix documentation
25706         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
25707         1.5 declaration bug.
25708
25709         forkpty, openpty: prefer glibc's const-safe prototype
25710         * lib/forkpty.c (rpl_forkpty): New file.
25711         * lib/openpty.c (rpl_openpty): Likewise.
25712         * modules/forkpty (Files): Distribute it.
25713         * modules/openpty (Files): Likewise.
25714         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
25715         check...
25716         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
25717         replacement for for non-const BSD signature.
25718         * modules/pty (Makefile.am): Substitute witnesses.
25719         * lib/pty.in.h (forkpty, openpty): Declare replacements.
25720         * tests/test-forkpty.c: Update signature check.
25721         * tests/test-openpty.c: Likewise.
25722         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
25723         * doc/glibc-functions/openpty.texi (openpty): Likewise.
25724
25725         forkpty, openpty: split functions into new modules
25726         * modules/pty (Makefile.am): Substitute new witnesses.
25727         (Libraries): Move library detection...
25728         * modules/forkpty: ...into new module.
25729         * modules/openpty: Another new module.
25730         * modules/pty-tests: Rename and split...
25731         * modules/forkpty-tests: ...to this...
25732         * modules/openpty-tests: ...and this.
25733         * tests/test-pty.c: Rename and split...
25734         * tests/test-forkpty.c: ...to this...
25735         * tests/test-openpty.c: ...and this.
25736         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
25737         (gl_PTY): Split library searching...
25738         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
25739         (gl_FORKPTY, gl_OPENPTY): New macros.
25740         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
25741         * NEWS: Mention the split.
25742         * MODULES.html.sh (Misc): Document the modules.
25743         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
25744         * doc/glibc-functions/openpty.texi (openpty): Likewise.
25745
25746         pty: improve replacement header
25747         * lib/pty.in.h: New file.
25748         * modules/pty (Files): Ship it.
25749         (Makefile.am): Always build replacement.
25750         * m4/pty.m4: Rename...
25751         * m4/pty_h.m4: ...to this.
25752         (gl_PTY): Modernize setting of witness macros; update check of
25753         forkpty to take proper advantage of cache.
25754         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
25755
25756         getopt: avoid compiler warning
25757         * lib/getopt.c (attribute_hidden): Remove unused macro.
25758
25759 2010-03-18  Bruno Haible  <bruno@clisp.org>
25760
25761         Fix link errors on Solaris 8.
25762         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
25763         * modules/search-tests (test_search_c___LDADD): Likewise.
25764         * modules/signal-tests (test_signal_c___LDADD): Likewise.
25765         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
25766         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
25767         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
25768         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
25769         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
25770         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
25771
25772 2010-03-18  Bruno Haible  <bruno@clisp.org>
25773
25774         Fix bug introduced on 2010-03-14.
25775         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
25776         (gl_SPAWN_H): Require it.
25777         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
25778         Reported by Simon Josefsson.
25779
25780 2010-03-18  Bruno Haible  <bruno@clisp.org>
25781
25782         Fix typo introduced on 2009-12-31.
25783         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
25784         posix_spawn_file_actions_adddup2.
25785
25786 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
25787         and Eric Blake  <eblake@redhat.com>
25788
25789         test-vc-list-files-git: make more robust
25790         * tests/test-vc-list-files-git.sh: Unset problematic environment
25791         variables.  Chain commands together.
25792
25793 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
25794
25795         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
25796         `AC_CHECK_DECL' invocation.
25797
25798 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
25799
25800         * lib/inttostr.c (inttostr): Make sure the invocation of verify
25801         appears before executable statements. Suggested by Petr Sumbera
25802         <Petr.Sumbera@Sun.COM>.
25803
25804 2010-03-14  Bruno Haible  <bruno@clisp.org>
25805
25806         * tests/test-flock.c (test_exclusive): Comment out a test that causes
25807         portability problems. Instead use a simpler test.
25808         (main): Check that invalid arguments are rejected only on Linux.
25809
25810 2010-03-14  Bruno Haible  <bruno@clisp.org>
25811
25812         Fix bug introduced on 2009-12-31.
25813         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
25814         gl_PREREQ_SYS_H_WINSOCK2 always.
25815         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
25816         SYS_SOCKET_H variable.
25817         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
25818         Update comments.
25819         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
25820         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
25821         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
25822         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
25823         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
25824
25825 2010-03-14  Bruno Haible  <bruno@clisp.org>
25826
25827         Fix values returned by sinl, cosl.
25828         * lib/trigl.h: Add specification comments.
25829         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
25830         that combines the values from the precomputed table with the values of
25831         the Chebyshev polynomials.
25832
25833 2010-03-14  Bruno Haible  <bruno@clisp.org>
25834
25835         Fix compilation error when modules 'posix_spawn[p]' are not used.
25836         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
25837         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
25838
25839 2010-03-14  Bruno Haible  <bruno@clisp.org>
25840
25841         Fix compilation error on mingw when module 'time_r' is not used.
25842         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
25843         is 1.
25844         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
25845         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
25846         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
25847         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
25848
25849 2010-03-14  Bruno Haible  <bruno@clisp.org>
25850
25851         Fix compilation error with Sun C.
25852         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
25853         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
25854         instead of GCC specific ULONG_LONG_MAX.
25855         * lib/xstrtoll.c: Likewise.
25856         * lib/xstrtoull.c: Likewise.
25857
25858 2010-03-13  Bruno Haible  <bruno@clisp.org>
25859
25860         Allow the user to disable C++ code and tests.
25861         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
25862         (gl_PROG_ANSI_CXX): Require it.
25863
25864 2010-03-13  Bruno Haible  <bruno@clisp.org>
25865
25866         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
25867         cases.
25868
25869 2010-03-13  Bruno Haible  <bruno@clisp.org>
25870
25871         Test that gnulib does not break the standard C++ headers.
25872         * tests/test-locale-c++2.cc: New file.
25873         * modules/locale-tests (Files): Add it.
25874         (Makefile.am): Compile it for test-locale-c++.
25875         * tests/test-math-c++2.cc: New file.
25876         * modules/math-tests (Files): Add it.
25877         (Makefile.am): Compile it for test-math-c++.
25878         * tests/test-signal-c++2.cc: New file.
25879         * modules/signal-tests (Files): Add it.
25880         (Makefile.am): Compile it for test-signal-c++.
25881         * tests/test-stdio-c++2.cc: New file.
25882         * modules/stdio-tests (Files): Add it.
25883         (Makefile.am): Compile it for test-stdio-c++.
25884         * tests/test-stdlib-c++2.cc: New file.
25885         * modules/stdlib-tests (Files): Add it.
25886         (Makefile.am): Compile it for test-stdlib-c++.
25887         * tests/test-string-c++2.cc: New file.
25888         * modules/string-tests (Files): Add it.
25889         (Makefile.am): Compile it for test-string-c++.
25890         * tests/test-time-c++2.cc: New file.
25891         * modules/time-tests (Files): Add it.
25892         (Makefile.am): Compile it for test-time-c++.
25893         Reported by John W. Eaton <jwe@gnu.org>.
25894
25895 2010-03-13  Bruno Haible  <bruno@clisp.org>
25896
25897         * gnulib-tool (func_usage): Clarify which options are available for
25898         --create-testdir and --create-megatestdir.
25899
25900 2010-03-13  Bruno Haible  <bruno@clisp.org>
25901
25902         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
25903         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
25904         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
25905         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
25906         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
25907         when appropriate.
25908         Reported by Jim Meyering.
25909
25910 2010-03-12  Simon Josefsson  <simon@josefsson.org>
25911
25912         * gnulib-tool (func_import): Explain origin of code.
25913
25914 2010-03-12  Bruno Haible  <bruno@clisp.org>
25915
25916         Fix problem with automake's definition of CXXLINK.
25917         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
25918         Reported by Simon Josefsson and Ludovic Courtès.
25919
25920 2010-03-12  Bruno Haible  <bruno@clisp.org>
25921
25922         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
25923         stable releases.
25924
25925 2010-03-11  Bruno Haible  <bruno@clisp.org>
25926
25927         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
25928         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
25929         whether the system provides one variant or multiple variants of the
25930         function.
25931         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
25932         C++ compilers.
25933         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
25934         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
25935         Reported by Jim Meyering.
25936
25937 2010-03-09  Simon Josefsson  <simon@josefsson.org>
25938
25939         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
25940
25941 2010-03-08  Bruno Haible  <bruno@clisp.org>
25942
25943         gnulib-tool: Add support for --libtool in --create-testdir.
25944         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
25945         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
25946
25947 2010-03-08  Eric Blake  <eblake@redhat.com>
25948
25949         gnulib-tool.texi: mention possibility of git submodule
25950         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
25951         submodules.
25952         * doc/.gitignore: Ignore another generated file.
25953
25954 2010-03-08  Karl Berry  <karl@gnu.org>
25955
25956         * doc/gnulib-tool.texi (VCS Issues): Mention third option
25957         of committing gnulib files while skipping others.
25958
25959 2010-03-07  Bruno Haible  <bruno@clisp.org>
25960
25961         Tests of module 'wctype' in C++ mode.
25962         * tests/test-wctype-c++.cc: New file.
25963         * modules/wctype-tests (Files): Add it and tests/signature.h.
25964         (Depends-on): Add ansi-c++-opt.
25965         (Makefile.am): Arrange to compile and run test-wctype-c++.
25966
25967         Tests of module 'wchar' in C++ mode.
25968         * tests/test-wchar-c++.cc: New file.
25969         * modules/wchar-tests (Files): Add it and tests/signature.h.
25970         (Depends-on): Add ansi-c++-opt.
25971         (Makefile.am): Arrange to compile and run test-wchar-c++.
25972         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
25973         gl_MODULE_INDICATOR.
25974
25975         Tests of module 'unistd' in C++ mode.
25976         * tests/test-unistd-c++.cc: New file.
25977         * modules/unistd-tests (Files): Add it and tests/signature.h.
25978         (Depends-on): Add ansi-c++-opt.
25979         (Makefile.am): Arrange to compile and run test-unistd-c++.
25980         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
25981         gl_MODULE_INDICATOR.
25982
25983         Tests of module 'time' in C++ mode.
25984         * tests/test-time-c++.cc: New file.
25985         * modules/time-tests (Files): Add it and tests/signature.h.
25986         (Depends-on): Add ansi-c++-opt.
25987         (Makefile.am): Arrange to compile and run test-time-c++.
25988         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
25989
25990         Tests of module 'sys_time' in C++ mode.
25991         * tests/test-sys_time-c++.cc: New file.
25992         * modules/sys_time-tests (Files): Add it and tests/signature.h.
25993         (Depends-on): Add ansi-c++-opt.
25994         (Makefile.am): Arrange to compile and run test-sys_time-c++.
25995         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
25996         gl_MODULE_INDICATOR.
25997
25998         Tests of module 'sys_stat' in C++ mode.
25999         * tests/test-sys_stat-c++.cc: New file.
26000         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
26001         (Depends-on): Add ansi-c++-opt.
26002         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
26003         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
26004         gl_MODULE_INDICATOR.
26005
26006         Tests of module 'sys_socket' in C++ mode.
26007         * tests/test-sys_socket-c++.cc: New file.
26008         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
26009         (Depends-on): Add ansi-c++-opt.
26010         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
26011         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
26012         gl_MODULE_INDICATOR.
26013
26014         Tests of module 'sys_select' in C++ mode.
26015         * tests/test-sys_select-c++.cc: New file.
26016         * modules/sys_select-tests (Files): Add it and tests/signature.h.
26017         (Depends-on): Add ansi-c++-opt.
26018         (Makefile.am): Arrange to compile and run test-sys_select-c++.
26019         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
26020         gl_MODULE_INDICATOR.
26021
26022         Tests of module 'sys_ioctl' in C++ mode.
26023         * tests/test-sys_ioctl-c++.cc: New file.
26024         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
26025         (Depends-on): Add ansi-c++-opt.
26026         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
26027         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
26028         gl_MODULE_INDICATOR.
26029
26030         Tests of module 'string' in C++ mode.
26031         * tests/test-string-c++.cc: New file.
26032         * modules/string-tests (Files): Add it and tests/signature.h.
26033         (Depends-on): Add ansi-c++-opt.
26034         (Makefile.am): Arrange to compile and run test-string-c++.
26035         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
26036         gl_MODULE_INDICATOR.
26037
26038         Tests of module 'stdlib' in C++ mode.
26039         * tests/test-stdlib-c++.cc: New file.
26040         * modules/stdlib-tests (Files): Add it and tests/signature.h.
26041         (Depends-on): Add ansi-c++-opt.
26042         (Makefile.am): Arrange to compile and run test-stdlib-c++.
26043         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
26044         gl_MODULE_INDICATOR.
26045
26046         Tests of module 'stdio' in C++ mode.
26047         * tests/test-stdio-c++.cc: New file.
26048         * modules/stdio-tests (Files): Add it and tests/signature.h.
26049         (Depends-on): Add ansi-c++-opt.
26050         (Makefile.am): Arrange to compile and run test-stdio-c++.
26051         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
26052         gl_MODULE_INDICATOR.
26053
26054         Tests of module 'spawn' in C++ mode.
26055         * tests/test-spawn-c++.cc: New file.
26056         * modules/spawn-tests (Files): Add it and tests/signature.h.
26057         (Depends-on): Add ansi-c++-opt.
26058         (Makefile.am): Arrange to compile and run test-spawn-c++.
26059         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
26060         gl_MODULE_INDICATOR.
26061
26062         Tests of module 'signal' in C++ mode.
26063         * tests/test-signal-c++.cc: New file.
26064         * modules/signal-tests (Files): Add it and tests/signature.h.
26065         (Depends-on): Add ansi-c++-opt.
26066         (Makefile.am): Arrange to compile and run test-signal-c++.
26067         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
26068         gl_MODULE_INDICATOR.
26069
26070         Tests of module 'search' in C++ mode.
26071         * tests/test-search-c++.cc: New file.
26072         * modules/search-tests (Files): Add it and tests/signature.h.
26073         (Depends-on): Add ansi-c++-opt.
26074         (Makefile.am): Arrange to compile and run test-search-c++.
26075         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
26076         gl_MODULE_INDICATOR.
26077
26078         Tests of module 'math' in C++ mode.
26079         * tests/test-math-c++.cc: New file.
26080         * modules/math-tests (Files): Add it and tests/signature.h.
26081         (Depends-on): Add ansi-c++-opt.
26082         (Makefile.am): Arrange to compile and run test-math-c++.
26083         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
26084
26085         Tests of module 'locale' in C++ mode.
26086         * tests/test-locale-c++.cc: New file.
26087         * modules/locale-tests (Files): Add it and tests/signature.h.
26088         (Depends-on): Add ansi-c++-opt.
26089         (Makefile.am): Arrange to compile and run test-locale-c++.
26090         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
26091         gl_MODULE_INDICATOR.
26092
26093         Tests of module 'langinfo' in C++ mode.
26094         * tests/test-langinfo-c++.cc: New file.
26095         * modules/langinfo-tests (Files): Add it and tests/signature.h.
26096         (Depends-on): Add ansi-c++-opt.
26097         (Makefile.am): Arrange to compile and run test-langinfo-c++.
26098         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
26099         gl_MODULE_INDICATOR.
26100
26101         Tests of module 'iconv-h' in C++ mode.
26102         * tests/test-iconv-h-c++.cc: New file.
26103         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
26104         (Depends-on): Add ansi-c++-opt.
26105         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
26106
26107         Tests of module 'glob' in C++ mode.
26108         * tests/test-glob-c++.cc: New file.
26109         * modules/glob-tests (Files): Add it.
26110         (Depends-on): Add ansi-c++-opt.
26111         (Makefile.am): Arrange to compile and run test-glob-c++.
26112
26113         Tests of module 'fcntl-h' in C++ mode.
26114         * tests/test-fcntl-h-c++.cc: New file.
26115         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
26116         (Depends-on): Add ansi-c++-opt.
26117         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
26118         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
26119         gl_MODULE_INDICATOR.
26120
26121         Tests of module 'dirent' in C++ mode.
26122         * tests/test-dirent-c++.cc: New file.
26123         * modules/dirent-tests (Files): Add it and tests/signature.h.
26124         (Depends-on): Add ansi-c++-opt.
26125         (Makefile.am): Arrange to compile and run test-dirent-c++.
26126         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
26127         gl_MODULE_INDICATOR.
26128
26129         New module 'ansi-c++-opt'.
26130         * modules/ansi-c++-opt: New file.
26131         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
26132
26133         Document C++ namespace mode.
26134         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
26135
26136         wctype: Avoid #define replacements in C++ mode.
26137         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
26138         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
26139         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
26140         In C++, define a namespaced alias symbol.
26141         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
26142         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
26143         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
26144         rule.
26145
26146         wchar: Avoid #define replacements in C++ mode.
26147         * lib/wchar.in.h: Include c++defs.h.
26148         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
26149         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
26150         symbol.
26151         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
26152         * modules/wchar (Depends-on): Add c++defs.
26153         (Makefile.am): Update wchar.h rule.
26154
26155         unistd: Avoid #define replacements in C++ mode.
26156         * lib/unistd.in.h: Include c++defs.h.
26157         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
26158         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
26159         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
26160         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
26161         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
26162         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
26163         symbol.
26164         (environ): Update.
26165         * modules/unistd (Depends-on): Add c++defs.
26166         (Makefile.am): Update unistd.h rule.
26167
26168         time: Avoid #define replacements in C++ mode.
26169         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
26170         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
26171         define a namespaced alias symbol.
26172         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
26173         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
26174         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
26175         * modules/time (Depends-on): Add c++defs, warn-on-use.
26176         (Makefile.am): Update time.h rule.
26177         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
26178         * modules/nanosleep (configure.ac): Likewise.
26179         * modules/strptime (configure.ac): Likewise.
26180         * modules/timegm (configure.ac): Likewise.
26181
26182         sys_time: Avoid #define replacements in C++ mode.
26183         * lib/sys_time.in.h: Include c++defs.h.
26184         (gettimeofday): In C++, define a namespaced alias symbol.
26185         * modules/sys_time (Depends-on): Add c++defs.
26186         (Makefile.am): Update sys/time.h rule.
26187
26188         sys_stat: Avoid #define replacements in C++ mode.
26189         * lib/sys_stat.in.h: Include c++defs.h.
26190         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
26191         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
26192         namespaced alias symbol.
26193         In C++, define a namespaced alias symbol.
26194         * modules/sys_stat (Depends-on): Add c++defs.
26195         (Makefile.am): Update sys/stat.h rule.
26196
26197         sys_socket: Avoid #define replacements in C++ mode.
26198         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
26199         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
26200         definitions also when the system has a <sys/socket.h>.
26201         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
26202         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
26203         In C++, define a namespaced alias symbol.
26204         * modules/sys_socket (Depends-on): Add c++defs.
26205         (Makefile.am): Update sys/socket.h rule.
26206
26207         sys_select: Avoid #define replacements in C++ mode.
26208         * lib/sys_select.in.h: Include c++defs.h. Enable the function
26209         definitions also when the system has a <sys/select.h>.
26210         (select): In C++, define a namespaced alias symbol.
26211         * modules/sys_select (Depends-on): Add c++defs.
26212         (Makefile.am): Update sys/select.h rule.
26213
26214         sys_ioctl: Avoid #define replacements in C++ mode.
26215         * lib/sys_ioctl.in.h: Include c++defs.h.
26216         (ioctl): In C++, define a namespaced alias symbol.
26217         * modules/sys_ioctl (Depends-on): Add c++defs.
26218         (Makefile.am): Update sys/ioctl.h rule.
26219
26220         string: Avoid #define replacements in C++ mode.
26221         * lib/string.in.h: Include c++defs.h.
26222         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
26223         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
26224         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
26225         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
26226         strsignal, strverscmp): In C++, define a namespaced alias symbol.
26227         * modules/string (Depends-on): Add c++defs.
26228         (Makefile.am): Update string.h rule.
26229
26230         stdlib: Avoid #define replacements in C++ mode.
26231         * lib/stdlib.in.h: Include c++defs.h.
26232         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
26233         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
26234         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
26235         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
26236         symbol.
26237         * modules/stdlib (Depends-on): Add c++defs.
26238         (Makefile.am): Update stdlib.h rule.
26239
26240         stdio: Avoid #define replacements in C++ mode.
26241         * lib/stdio.in.h: Include c++defs.h.
26242         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
26243         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
26244         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
26245         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
26246         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
26247         namespaced alias symbol.
26248         * modules/stdio (Depends-on): Add c++defs.
26249         (Makefile.am): Update stdio.h rule.
26250
26251         spawn: Avoid #define replacements in C++ mode.
26252         * lib/spawn.in.h: Include c++defs.h.
26253         (posix_spawn, posix_spawnp, posix_spawnattr_init,
26254         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
26255         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
26256         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
26257         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
26258         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
26259         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
26260         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
26261         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
26262         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
26263         In C++, define a namespaced alias symbol.
26264         * modules/spawn (Depends-on): Add c++defs.
26265         (Makefile.am): Update spawn.h rule.
26266
26267         signal: Avoid #define replacements in C++ mode.
26268         * lib/signal.in.h: Include c++defs.h.
26269         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
26270         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
26271         namespaced alias symbol.
26272         * modules/signal (Depends-on): Add c++defs.
26273         (Makefile.am): Update signal.h rule.
26274
26275         search: Avoid #define replacements in C++ mode.
26276         * lib/search.in.h: Include c++defs.h.
26277         (_gl_search_compar_fn, _gl_search_action_fn): New types.
26278         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
26279         symbol.
26280         * modules/search (Depends-on): Add c++defs.
26281         (Makefile.am): Update search.h rule.
26282
26283         math: Avoid #define replacements in C++ mode.
26284         * lib/math.in.h: Include c++defs.h.
26285         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
26286         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
26287         trunc, truncl): In C++, define a namespaced alias symbol.
26288         * modules/math (Depends-on): Add c++defs.
26289         (Makefile.am): Update math.h rule.
26290
26291         locale: Avoid #define replacements in C++ mode.
26292         * lib/locale.in.h: Include c++defs.h.
26293         (duplocale): In C++, define a namespaced alias symbol.
26294         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
26295         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
26296         * modules/locale (Depends-on): Add c++defs.
26297         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
26298
26299         langinfo: Avoid #define replacements in C++ mode.
26300         * lib/langinfo.in.h: Include c++defs.h.
26301         (nl_langinfo): In C++, define a namespaced alias symbol.
26302         * modules/langinfo (Depends-on): Add c++defs.
26303         (Makefile.am): Update langinfo.h rule.
26304
26305         iconv-h: Avoid #define replacements in C++ mode.
26306         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
26307         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
26308         symbol.
26309         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
26310         whenever iconv is present.
26311         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
26312         (Makefile.am): Update iconv.h rule.
26313
26314         glob: Avoid #define replacements in C++ mode.
26315         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
26316         (_gl_glob_errfunc_fn): New type.
26317         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
26318         symbol.
26319         * modules/glob (Depends-on): Add c++defs, warn-on-use.
26320         (Makefile.am): Update glob.h rule.
26321
26322         fcntl-h: Avoid #define replacements in C++ mode.
26323         * lib/fcntl.in.h: Include c++defs.h.
26324         (fcntl, open, openat): In C++, define a namespaced alias symbol.
26325         * modules/fcntl-h (Depends-on): Add c++defs.
26326         (Makefile.am): Update fcntl.h rule.
26327
26328         dirent: Avoid #define replacements in C++ mode.
26329         * lib/dirent.in.h: Include c++defs.h.
26330         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
26331         namespaced alias symbol.
26332         (dirfd): Update declaration.
26333         * modules/dirent (Depends-on): Add c++defs.
26334         (Makefile.am): Update dirent.h rule.
26335
26336         ctype: Make it usable in C++ code.
26337         * lib/ctype.in.h: Include c++defs.h.
26338         (isblank): Declare as extern "C".
26339         * modules/ctype (Depends-on): Add c++defs.
26340         (Makefile.am): Update ctype.h rule.
26341
26342         New module 'c++defs'.
26343         * modules/c++defs: New file.
26344         * build-aux/c++defs.h: New file.
26345         Reported by John W. Eaton <jwe@gnu.org>.
26346
26347 2010-03-07  Bruno Haible  <bruno@clisp.org>
26348
26349         logb: Provide missing declaration for Cygwin.
26350         * lib/math.in.h (logb): New declaration.
26351         * m4/logb.m4: New file.
26352         * modules/logb (Files): Add m4/logb.m4.
26353         (Depends-on): Add math.
26354         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
26355         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
26356         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
26357         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
26358         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
26359
26360 2010-03-07  Bruno Haible  <bruno@clisp.org>
26361
26362         Fix test-cond link error.
26363         * tests/test-cond.c: Include <stdio.h>.
26364
26365 2010-03-07  Bruno Haible  <bruno@clisp.org>
26366
26367         Fix test-dirent-safer link error.
26368         * modules/dirent-safer-tests (Makefile.am): Define
26369         test_dirent_safer_LDADD.
26370
26371 2010-03-07  Bruno Haible  <bruno@clisp.org>
26372
26373         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
26374         among default module list.
26375
26376 2010-03-07  Bruno Haible  <bruno@clisp.org>
26377
26378         Fix link error on platforms with GNU libiconv.
26379         * modules/unistr/u8-strcoll-tests (Makefile): Define
26380         test_u8_strcoll_LDADD.
26381         * modules/unistr/u16-strcoll-tests (Makefile): Define
26382         test_u16_strcoll_LDADD.
26383         * modules/unistr/u32-strcoll-tests (Makefile): Define
26384         test_u32_strcoll_LDADD.
26385
26386 2010-03-07  Bruno Haible  <bruno@clisp.org>
26387
26388         Use POSIX declarations for socket functions.
26389         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
26390         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
26391         rpl_sendto): Change declaration to match POSIX.
26392         * lib/connect.c (rpl_connect): Likewise.
26393         * lib/accept.c (rpl_accept): Likewise.
26394         * lib/bind.c (rpl_bind): Likewise.
26395         * lib/getpeername.c (rpl_getpeername): Likewise.
26396         * lib/getsockname.c (rpl_getsockname): Likewise.
26397         * lib/recv.c (rpl_recv): Likewise.
26398         * lib/send.c (rpl_send): Likewise.
26399         * lib/recvfrom.c (rpl_recvfrom): Likewise.
26400         * lib/sendto.c (rpl_sendto): Likewise.
26401
26402 2010-03-06  Bruno Haible  <bruno@clisp.org>
26403
26404         Clarify access, euidaccess, faccessat.
26405         * doc/posix-functions/faccessat.texi: Mention security problem under
26406         "Other problems", not "Portability problems".
26407         * doc/posix-functions/access.texi: Likewise. Mention a related security
26408         problem.
26409         * doc/glibc-functions/euidaccess.texi: Mention security problems.
26410         * lib/euidaccess.c: Add comments about platforms.
26411         * lib/unistd.in.h (access, euidaccess): Add warnings.
26412
26413 2010-03-07  Bruno Haible  <bruno@clisp.org>
26414
26415         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
26416         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
26417         (POSIX_SPAWN_SETSCHEDULER): Likewise.
26418         (POSIX_SPAWN_USEVFORK): Define in a way that works when
26419         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
26420         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
26421         declare when POSIX_SPAWN_SETSCHEDULER is zero.
26422         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
26423         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
26424         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
26425         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
26426         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
26427         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
26428         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
26429         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
26430         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
26431         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
26432         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
26433         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
26434         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
26435         Likewise.
26436         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
26437         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
26438         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
26439         Likewise.
26440         * tests/test-spawn.c (main): Make it work when
26441         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
26442
26443 2010-03-07  Bruno Haible  <bruno@clisp.org>
26444
26445         Fix incorrect Makefile.am generation in German locale.
26446         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
26447         Execute sed command with character range in C locale.
26448
26449 2010-03-06  Bruno Haible  <bruno@clisp.org>
26450
26451         Tests for module 'iconv-h'.
26452         * modules/iconv-h-tests: New file.
26453         * tests/test-iconv-h.c: New file.
26454
26455         New module 'iconv-h'.
26456         * modules/iconv-h: New file.
26457         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
26458         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
26459         (configure.ac): Remove gl_ICONV_H.
26460         (Makefile.am): Remove rule for iconv.h.
26461
26462 2010-03-06  Bruno Haible  <bruno@clisp.org>
26463
26464         More consistent naming of *.m4 files.
26465         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
26466         * modules/wctype (Files): Update.
26467
26468         More consistent naming of *.m4 files.
26469         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
26470         * modules/wchar (Files): Update.
26471
26472 2010-03-06  Jim Meyering  <meyering@redhat.com>
26473
26474         euidaccess: relax license to LGPLv2+
26475         * modules/euidaccess (License): Relax to LGPLv2+.
26476
26477 2010-03-06  Bruno Haible  <bruno@clisp.org>
26478
26479         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
26480         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
26481         (Makefile.am): Augment lib_SOURCES instead.
26482
26483 2010-03-04  Jim Meyering  <meyering@redhat.com>
26484
26485         utime: remove obsolete module
26486         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
26487         unnecessary for years, and has been marked as obsolete for 10 months.
26488         * modules/utime: Remove file.
26489         * lib/utime.c: Remove file.
26490         * m4/utime.m4: Remove file.
26491         * m4/utimes-null.m4: Remove file.
26492         * doc/posix-functions/utime.texi (utime): Remove reference to
26493         the module.  Move the sole "fixed by gnulib" item into the
26494         "problems not fixed by Gnulib" list.
26495         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
26496
26497 2010-03-05  Simon Josefsson  <simon@josefsson.org>
26498
26499         * modules/exit (License): Relax license to LGPLv2+.
26500         (Status): Mark as obsolete.
26501         * NEWS: Mention deprecated 'exit' module.
26502         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
26503         of now obsolete 'exit'.
26504
26505 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26506
26507         fts-lgpl: remove unused module
26508         * modules/fts-lgpl: Remove.
26509         * MODULES.html.sh (func_all_modules): Adjust.
26510         * check-module (find_included_lib_files): Adjust.
26511         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
26512
26513 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
26514
26515         copy-acl: enhance Solaris ACL error handling
26516         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
26517         * lib/set-mode-acl.c (qset_acl): Likewise.
26518
26519 2010-03-02  Bruno Haible  <bruno@clisp.org>
26520
26521         spawn: Don't override the system defined values on FreeBSD 8.
26522         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
26523         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
26524         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
26525         if HAVE_POSIX_SPAWN is 1.
26526         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
26527
26528 2010-03-01  Bruno Haible  <bruno@clisp.org>
26529
26530         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
26531         regarding Automake.
26532
26533 2010-02-25  Bruno Haible  <bruno@clisp.org>
26534
26535         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
26536         * gnulib-tool: Define 'echo' as a function only before the ksh alias
26537         setting, not afterwards.
26538         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
26539
26540 2010-02-24  Eric Blake  <eblake@redhat.com>
26541
26542         bootstrap, git-version-gen: use timestamp
26543         * build-aux/git-version-gen (scriptversion): Force UTC.
26544         * build-aux/bootstrap (scriptversion): New variable.
26545
26546         bootstrap: allow older git
26547         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
26548         older than 1.6.4.  Requested by the libvirt project.
26549
26550 2010-02-23  Eric Blake  <eblake@redhat.com>
26551
26552         warn-on-use: work with old autoconf
26553         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
26554         AS_VAR semantics of autoconf 2.60.
26555         Reported by Bruno Haible.
26556
26557         bootstrap: improve some comments
26558         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
26559         clarification comments.
26560
26561         gettimeofday: provide correct function
26562         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
26563         when replacement is declared, otherwise provide gettimeofday.
26564         Reported by Michael Goffioul.
26565
26566 2010-02-23  Jim Meyering  <meyering@redhat.com>
26567
26568         lib-ignore: relax license to "unlimited", not LGPLv2+
26569         * modules/lib-ignore (License): Relax to "unlimited".
26570
26571 2010-02-23  Jim Meyering  <meyering@redhat.com>
26572
26573         lib-ignore: relax license to LGPLv2+
26574         * modules/lib-ignore (License): Relax to LGPLv2+.
26575
26576 2010-02-22  Eric Blake  <eblake@redhat.com>
26577
26578         lseek: avoid bash 3.2 broken pipe bug
26579         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
26580         warning from bash 3.2.
26581         Reported by Ben Pfaff, with analysis from Bruno Haible.
26582
26583         bootstrap: support non-FSF copyright holder
26584         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
26585         bootstrap.conf override of COPYRIGHT_HOLDER.
26586         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
26587
26588         bootstrap: interoperate with gettext 0.14.1
26589         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
26590
26591         bootstrap: allow for alternate submodule location
26592         * build-aux/bootstrap (gnulib_path): New variable; use instead of
26593         hardcoding submodule location.
26594         (gnulib_mk): Allow direct use of Makefile.am.
26595
26596         bootstrap: use GNULIB_SRCDIR to reduce disk usage
26597         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
26598         rather than reconfiguring where the submodule points.
26599
26600         gettimeofday: restore support for platforms that lack function
26601         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
26602         replacement if function is missing.
26603         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
26604         * modules/sys_time (Makefile.am): Substitute it.
26605         * lib/sys_time.in.h (gettimeofday): Check it.
26606         Reported by Michael Goffioul.
26607
26608 2010-02-21  Bruno Haible  <bruno@clisp.org>
26609
26610         * lib/stdio.in.h (obstack_printf): Fix typo.
26611
26612 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
26613
26614         vc-list-files: use bzr ls's -R option
26615         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
26616         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
26617
26618 2010-02-21  Jim Meyering  <meyering@redhat.com>
26619
26620         init.sh: fix EXEEXT shims to work also for names like test-prog
26621         * tests/init.sh: Re-exec a better shell, when needed.
26622         If the current shell lacks support for posix $(...), an init.sh-using
26623         test will now try to find a shell that supports that.  If EXEEXT is
26624         nonempty, we also require support for hyphen-in-alias-name and shell
26625         substitutions like ${var#glob}.  Failure to find such a shell results
26626         in a skipped test.
26627
26628 2010-02-21  Bruno Haible  <bruno@clisp.org>
26629
26630         Really work around around "broken pipe" error message from bash 3.2.
26631         * gnulib-tool (func_reset_sigpipe): Remove function.
26632         (echo): In bash 3.2, define to a function that uses printf.
26633         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
26634
26635 2010-02-20  Bruno Haible  <bruno@clisp.org>
26636
26637         Restore support for automake 1.9.6 with autoconf 2.61.
26638         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
26639         Reported by James Youngman <jay@gnu.org>.
26640
26641 2010-02-20  Bruno Haible  <bruno@clisp.org>
26642
26643         Improve *printf warning condition.
26644         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
26645         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
26646         and the function is overridden due to SIGPIPE emulation.
26647
26648 2010-02-20  Bruno Haible  <bruno@clisp.org>
26649
26650         * lib/stdio.in.h: Tweak comments.
26651
26652 2010-02-19  Bruno Haible  <bruno@clisp.org>
26653
26654         Make it easier to find modules. New gnulib-tool option '--find'.
26655         * gnulib-tool: New option --find.
26656         (func_usage): Document it.
26657         (func_sanitize_modulelist): New function, extracted from
26658         func_all_modules.
26659         (func_all_modules): Invoke it.
26660         * doc/gnulib-tool.texi (Which modules?): New node.
26661
26662 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
26663
26664         * lib/sys_select.in.h: Provide select replacement even if
26665         sys/select.h exists on a system, for Interix.
26666
26667 2010-02-18  Jim Meyering  <meyering@redhat.com>
26668
26669         init.sh: don't use $(...) just yet
26670         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
26671         to accommodate e.g., Solaris' /bin/sh.
26672
26673 2010-02-17  Bruno Haible  <bruno@clisp.org>
26674
26675         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
26676         Reported by Ludovic Courtès <ludo@gnu.org>.
26677
26678 2010-02-16  Simon Josefsson  <simon@josefsson.org>
26679
26680         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
26681         linking with -lintl.
26682
26683 2010-02-17  Simon Josefsson  <simon@josefsson.org>
26684
26685         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
26686         if not provided by the system's netdb.h.  Reported by
26687         ludo@gnu.org (Ludovic Courtès).
26688
26689 2010-02-15  Jim Meyering  <meyering@redhat.com>
26690
26691         init.sh: improve portability and efficiency
26692         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
26693         "dummy" in a for loop.
26694         Use '!', not '^' to select the complement of a character set used
26695         in a "case" statement.
26696         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
26697         Suggestions from Eric Blake.
26698
26699         init.sh: automatically accommodate programs with the .exe suffix
26700         Automatically arrange for an invocation of "prog" to execute the
26701         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
26702         may use the simpler "prog", yet still work when built on a system
26703         that requires specifying the added suffix.
26704         Do this by constructing a function named "prog" that invokes
26705         "prog.exe" for each .exe file in selected directories.
26706         * tests/init.sh (find_exe_basenames_): New function.
26707         (create_exe_shim_functions_): New function.
26708         (path_prepend_): Use it.
26709
26710         maint.mk: mark syntax-check sc_*.m rules as .PHONY
26711         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
26712         "make -t syntax-check" doesn't create a ton of sc_*.m files.
26713
26714 2010-02-14  Jim Meyering  <meyering@redhat.com>
26715
26716         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
26717         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
26718         (sc_prohibit_hash_pjw_without_use): New rule.
26719
26720         maint.mk: allow the default upload destination dir to be overridden
26721         * top/maint.mk (upload_dest_dir_): Define with a default that
26722         preserves the status quo.
26723         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
26724         Reported by Peter Simons.
26725
26726         maint.mk: prohibit inclusion of "hash.h" without_use
26727         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
26728
26729 2010-02-10  Jim Meyering  <meyering@redhat.com>
26730
26731         maint.mk: prohibit inclusion of "ignore-value.h" without_use
26732         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
26733
26734 2010-02-09  Eric Blake  <ebb9@byu.net>
26735         and Bruno Haible  <bruno@clisp.org>
26736
26737         obstack-printf-posix: ensure declaration
26738         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
26739         extracted from gl_FUNC_OBSTACK_PRINTF.
26740         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
26741         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
26742         Likewise.
26743         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
26744         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
26745         0.
26746
26747 2010-02-08  Bruno Haible  <bruno@clisp.org>
26748
26749         gnulib-tool: Fix typo in 2010-02-07 commit.
26750         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
26751         Reported by Eric Blake.
26752
26753 2010-02-07  Bruno Haible  <bruno@clisp.org>
26754
26755         gnulib-tool: Fix up caching patches.
26756         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
26757         option --no-cache. Use associative arrays when supported by the shell.
26758         (sed_comments): New variable.
26759         (modcache): Renamed from do_cache.
26760         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
26761         abbreviate unnecessarily.
26762         (have_associative): New variable.
26763         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
26764         way also for ksh and zsh.
26765         (func_init_sed_convert_to_cache_statements): New function, extracted
26766         from func_cache_lookup_module. Add support for associative arrays.
26767         Don't set the c_MODULE_cached variable here. Ignore all lines before
26768         the first field header. Remove only the final newline, not all trailing
26769         newlines. Support empty fields correctly. Limit the use of 'eval' to
26770         assignments.
26771         (func_get_description, func_get_status, func_get_notice,
26772         func_get_applicability, func_get_filelist, func_get_dependencies,
26773         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
26774         func_get_automake_snippet, func_get_include_directive,
26775         func_get_link_directive, func_get_license, func_get_maintainer):
26776         Update documentation. List the unoptimized code first. Add support for
26777         associative arrays. Limit the use of 'eval' to assignments.
26778         (func_get_applicability): Undo stylistic pessimisations.
26779         (func_get_automake_snippet, func_get_include_directive): Reduce code
26780         duplication.
26781         (func_modules_transitive_closure, func_modules_add_dummy,
26782         func_modules_notice, func_modules_to_filelist, func_add_file,
26783         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
26784         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
26785         func_create_testdir, func_create_megatestdir): Update documentation.
26786
26787 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26788
26789         * gnulib-tool (func_cache_lookup_module): Store the module name
26790         belonging to the cache variable; error out if two different
26791         module names map to the same cache variable name.
26792
26793 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26794
26795         gnulib-tool: Make caching optional.
26796         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
26797         Update matching short versions of --no-changelog.
26798         (func_usage): Update.
26799         (sed_extract_cache_prog): Renamed from ...
26800         (sed_extract_prog): ... this; revert to old extraction script.
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): If $do_cache is false,
26807         use old, non-caching extraction scripts.
26808         Suggestion by Bruno Haible.
26809
26810 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26811
26812         gnulib-tool: cache module metainformation.
26813         * gnulib-tool (sed_extract_prog): Match newline before each
26814         header, and rewrite header to a shell variable suffix.
26815         (func_cache_var, func_cache_lookup_module): New functions,
26816         to turn a module name into a cache variable prefix, and to
26817         look up and cache module metainformation.
26818         (func_get_description, func_get_status)
26819         (func_get_notice, func_get_applicability, func_get_filelist)
26820         (func_get_dependencies, func_get_autoconf_early_snippet)
26821         (func_get_autoconf_snippet, func_get_automake_snippet)
26822         (func_get_include_directive, func_get_link_directive)
26823         (func_get_license, func_get_maintainer): Use
26824         func_cache_lookup_module.
26825
26826 2010-02-07  Bruno Haible  <bruno@clisp.org>
26827
26828         fnctl: Fix missing dependency.
26829         * modules/fcntl (Depends-on): Add getdtablesize.
26830         Reported by John W. Eaton <jwe@gnu.org>.
26831
26832 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
26833
26834         Argp: fix recognition of short alias options.
26835
26836         * lib/argp-parse.c (convert_options): Fix improper use of
26837         `|' between character values.
26838         * tests/test-argp.c (group1_option): New alias option
26839         --read (-r).
26840         (group1_parser): Special handling for 'r'.
26841         (test15): New test case.
26842         (test_fun): Add test15.
26843         * tests/test-argp-2.sh: Update expected --help and --usage
26844         outputs.
26845
26846 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
26847
26848         * tests/test-argp.c: Fix indentation.
26849
26850 2010-02-04  Eric Blake  <ebb9@byu.net>
26851
26852         gettimeofday: expose type of second argument
26853         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
26854         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
26855         * tests/test-gettimeofday.c: Use it to silence warning.
26856         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
26857         the issue.
26858
26859 2010-02-03  Jim Meyering  <meyering@redhat.com>
26860
26861         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
26862         * lib/regcomp.c (TYPE_SIGNED): Define.
26863         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
26864
26865         regcomp.c: avoid a new -Wshadow warning
26866         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
26867
26868 2010-02-01  Jim Meyering  <meyering@redhat.com>
26869
26870         removing useless parentheses in cpp #define directives
26871         For motivation, see commit c0221df4, "define STREQ(a,b)
26872         consistently, removing useless parentheses"
26873         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
26874         * lib/mountlist.c (MNT_IGNORE): Likewise.
26875         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
26876
26877 2010-02-01  Eric Blake  <ebb9@byu.net>
26878
26879         sys_time: use link-warning
26880         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
26881         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
26882         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
26883         * modules/sys_time (Depends-on): Add warn-on-use.
26884         (Makefile.am): Always build replacement.
26885         (configure.ac): Update substitutions.
26886         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
26887         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
26888         bother with SYS_TIME_H.
26889         * modules/gettimeofday (configure.ac): Declare indicator.
26890         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
26891         in use.
26892
26893         closein-tests: silence compiler warning
26894         * tests/test-closein.c (main): Ignore fread result.
26895         * modules/closein-tests (Depends-on): Add ignore-value.
26896
26897         tests: silence warning about system return
26898         * tests/test-areadlink-with-size.c (main): Ignore system result.
26899         * tests/test-areadlink.c (main): Likewise.
26900         * tests/test-areadlinkat-with-size.c (main): Likewise.
26901         * tests/test-areadlinkat.c (main): Likewise.
26902         * tests/test-canonicalize-lgpl.c (main): Likewise.
26903         * tests/test-canonicalize.c (main): Likewise.
26904         * tests/test-chown.c (main): Likewise.
26905         * tests/test-fchownat.c (main): Likewise.
26906         * tests/test-fdutimensat.c (main): Likewise.
26907         * tests/test-fstatat.c (main): Likewise.
26908         * tests/test-futimens.c (main): Likewise.
26909         * tests/test-lchown.c (main): Likewise.
26910         * tests/test-link.c (main): Likewise.
26911         * tests/test-linkat.c (main): Likewise.
26912         * tests/test-lstat.c (main): Likewise.
26913         * tests/test-mkdir.c (main): Likewise.
26914         * tests/test-mkdirat.c (main): Likewise.
26915         * tests/test-mkfifo.c (main): Likewise.
26916         * tests/test-mkfifoat.c (main): Likewise.
26917         * tests/test-mknod.c (main): Likewise.
26918         * tests/test-readlink.c (main): Likewise.
26919         * tests/test-remove.c (main): Likewise.
26920         * tests/test-rename.c (main): Likewise.
26921         * tests/test-renameat.c (main): Likewise.
26922         * tests/test-rmdir.c (main): Likewise.
26923         * tests/test-symlink.c (main): Likewise.
26924         * tests/test-symlinkat.c (main): Likewise.
26925         * tests/test-unlink.c (main): Likewise.
26926         * tests/test-unlinkat.c (main): Likewise.
26927         * tests/test-utimens.c (main): Likewise.
26928         * tests/test-utimensat.c (main): Likewise.
26929         * modules/areadlink-tests (Depends-on): Add ignore-value.
26930         * modules/areadlink-with-size-tests (Depends-on): Likewise.
26931         * modules/areadlinkat-tests (Depends-on): Likewise.
26932         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
26933         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
26934         * modules/canonicalize-tests (Depends-on): Likewise.
26935         * modules/chown-tests (Depends-on): Likewise.
26936         * modules/fdutimensat-tests (Depends-on): Likewise.
26937         * modules/futimens-tests (Depends-on): Likewise.
26938         * modules/lchown-tests (Depends-on): Likewise.
26939         * modules/link-tests (Depends-on): Likewise.
26940         * modules/linkat-tests (Depends-on): Likewise.
26941         * modules/lstat-tests (Depends-on): Likewise.
26942         * modules/mkdir-tests (Depends-on): Likewise.
26943         * modules/mkfifo-tests (Depends-on): Likewise.
26944         * modules/mkfifoat-tests (Depends-on): Likewise.
26945         * modules/mknod-tests (Depends-on): Likewise.
26946         * modules/openat-tests (Depends-on): Likewise.
26947         * modules/readlink-tests (Depends-on): Likewise.
26948         * modules/remove-tests (Depends-on): Likewise.
26949         * modules/rename-tests (Depends-on): Likewise.
26950         * modules/renameat-tests (Depends-on): Likewise.
26951         * modules/rmdir-tests (Depends-on): Likewise.
26952         * modules/symlink-tests (Depends-on): Likewise.
26953         * modules/symlinkat-tests (Depends-on): Likewise.
26954         * modules/unlink-tests (Depends-on): Likewise.
26955         * modules/utimens-tests (Depends-on): Likewise.
26956         * modules/utimensat-tests (Depends-on): Likewise.
26957
26958 2010-01-31  Bruno Haible  <bruno@clisp.org>
26959
26960         Perform the same test for many <math.h> functions.
26961         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
26962         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
26963         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
26964         of gl_MATHFUNC.
26965         * modules/acos (configure.ac): Likewise.
26966         * modules/asin (configure.ac): Likewise.
26967         * modules/atan (configure.ac): Likewise.
26968         * modules/atan2 (configure.ac): Likewise.
26969         * modules/cbrt (configure.ac): Likewise.
26970         * modules/copysign (configure.ac): Likewise.
26971         * modules/cos (configure.ac): Likewise.
26972         * modules/cosh (configure.ac): Likewise.
26973         * modules/erf (configure.ac): Likewise.
26974         * modules/erfc (configure.ac): Likewise.
26975         * modules/exp (configure.ac): Likewise.
26976         * modules/fmod (configure.ac): Likewise.
26977         * modules/hypot (configure.ac): Likewise.
26978         * modules/j0 (configure.ac): Likewise.
26979         * modules/j1 (configure.ac): Likewise.
26980         * modules/jn (configure.ac): Likewise.
26981         * modules/lgamma (configure.ac): Likewise.
26982         * modules/log (configure.ac): Likewise.
26983         * modules/log10 (configure.ac): Likewise.
26984         * modules/log1p (configure.ac): Likewise.
26985         * modules/pow (configure.ac): Likewise.
26986         * modules/remainder (configure.ac): Likewise.
26987         * modules/sin (configure.ac): Likewise.
26988         * modules/sinh (configure.ac): Likewise.
26989         * modules/tan (configure.ac): Likewise.
26990         * modules/tanh (configure.ac): Likewise.
26991         * modules/y0 (configure.ac): Likewise.
26992         * modules/y1 (configure.ac): Likewise.
26993         * modules/yn (configure.ac): Likewise.
26994         Suggested by Paolo Bonzini.
26995
26996 2010-01-31  Bruno Haible  <bruno@clisp.org>
26997
26998         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
26999
27000 2010-01-31  Bruno Haible  <bruno@clisp.org>
27001
27002         Work around getdelim() bug on FreeBSD 8.0.
27003         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
27004         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
27005         not work.
27006         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
27007         is 1.
27008         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
27009         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
27010         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
27011         a non-zero size.
27012         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
27013
27014 2010-01-31  Bruno Haible  <bruno@clisp.org>
27015
27016         Work around getline() bug on FreeBSD 8.0.
27017         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
27018         and a non-zero size.
27019         * tests/test-getline.c (main): Likewise.
27020         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
27021         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
27022
27023 2010-01-28  Eric Blake  <ebb9@byu.net>
27024
27025         regex: fix build failure
27026         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
27027         platforms.
27028
27029 2010-01-28  Jim Meyering  <meyering@redhat.com>
27030
27031         regex: do not ignore memory allocation failure
27032         * lib/regex_internal.c (create_cd_newstate): Detect
27033         re_node_set_init_copy failure.   Extracted from glibc commit
27034         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
27035
27036         regex: sync more white-space changes from libc
27037         * lib/regex_internal.c: White-space only changes.
27038         * lib/regexec.c: Likewise.
27039
27040         regex: add many uses of __attribute_warn_unused_result__
27041         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
27042         * lib/regexec.c: Likewise.
27043         Extracted from a messy glibc commit.
27044
27045         regcomp.c: spelling and merge-artifact from glibc
27046         * lib/regcomp.c: Merge remainder of glibc's
27047         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
27048
27049         regcomp.c: sync white-space changes from glibc
27050         * lib/regcomp.c: Merge to accommodate white space
27051         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
27052
27053         regcomp.c: do not ignore internal return values
27054         * lib/regcomp.c: Do not ignore internal return values.
27055         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
27056         but without its white-space changes and spelling fixes.
27057
27058         regex_internal.h: define __attribute_warn_unused_result__
27059         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
27060
27061         maint: add a syntax-check rule to check for vulnerable Makefile.in
27062         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
27063
27064 2010-01-27  Jim Meyering  <meyering@redhat.com>
27065
27066         ncftpput-ftp: clean up spaces
27067         * build-aux/ncftpput-ftp: Make Copyright line consistent.
27068         Remove trailing blanks.
27069
27070 2010-01-27  Simon Josefsson  <simon@josefsson.org>
27071
27072         * build-aux/git-version-gen: Fix copyright statement.
27073         * build-aux/gnupload: Likewise.
27074         * tests/test-arcfour.c: Likewise.
27075         * tests/test-arctwo.c: Likewise.
27076         * tests/test-count-one-bits.c: Likewise.
27077         * tests/test-crc.c: Likewise.
27078         * tests/test-des.c: Likewise.
27079         * tests/test-gc-arcfour.c: Likewise.
27080         * tests/test-gc-arctwo.c: Likewise.
27081         * tests/test-gc-des.c: Likewise.
27082         * tests/test-gc-hmac-md5.c: Likewise.
27083         * tests/test-gc-hmac-sha1.c: Likewise.
27084         * tests/test-gc-md2.c: Likewise.
27085         * tests/test-gc-md4.c: Likewise.
27086         * tests/test-gc-md5.c: Likewise.
27087         * tests/test-gc-pbkdf2-sha1.c: Likewise.
27088         * tests/test-gc-rijndael.c: Likewise.
27089         * tests/test-gc-sha1.c: Likewise.
27090         * tests/test-gc.c: Likewise.
27091         * tests/test-gethostname.c: Likewise.
27092         * tests/test-gettimeofday.c: Likewise.
27093         * tests/test-hash.c: Likewise.
27094         * tests/test-hmac-md5.c: Likewise.
27095         * tests/test-hmac-sha1.c: Likewise.
27096         * tests/test-md2.c: Likewise.
27097         * tests/test-md4.c: Likewise.
27098         * tests/test-md5.c: Likewise.
27099         * tests/test-memchr.c: Likewise.
27100         * tests/test-memchr2.c: Likewise.
27101         * tests/test-memcmp.c: Likewise.
27102         * tests/test-memmem.c: Likewise.
27103         * tests/test-memrchr.c: Likewise.
27104         * tests/test-rawmemchr.c: Likewise.
27105         * tests/test-read-file.c: Likewise.
27106         * tests/test-rijndael.c: Likewise.
27107         * tests/test-sockets.c: Likewise.
27108         * tests/test-strchrnul.c: Likewise.
27109         * tests/test-strstr.c: Likewise.
27110         * tests/test-strtod.c: Likewise.
27111         * build-aux/ncftpput-ftp: Likewise.
27112
27113 2010-01-26  Eric Blake  <ebb9@byu.net>
27114
27115         ignore-value: update recommended header name
27116         * modules/ignore-value (Include): Only use <> for headers that
27117         exist in glibc.
27118
27119 2010-01-26  Jim Meyering  <meyering@redhat.com>
27120
27121         test-userspec.c: avoid compiler warnings
27122         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
27123         and "initialization discards qualifiers..." warnings.
27124         Put the first "uid" in its own scope, and make char* members "const".
27125
27126 2010-01-25  Bruno Haible  <bruno@clisp.org>
27127
27128         gnulib-tool: Make warning diagnostics consistent.
27129         * gnulib-tool (func_warning): New function.
27130         Use it everywhere where gnulib-tool produces output to stderr and it is
27131         not a fatal error.
27132
27133 2010-01-25  Bruno Haible  <bruno@clisp.org>
27134
27135         Fix test dependencies.
27136         * modules/xstrtol-tests (Depends-on): Add inttypes.
27137         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
27138
27139 2010-01-25 Pádraig Brady <P@draigBrady.com>
27140
27141         syntax-check: detect incorrect boolean macro values in config.h
27142         * modules/maintainer-makefile (configure.ac): Parameterize the location
27143         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
27144         The logic is from Eric Blake and the location indicated by Jim Meyering.
27145         Note the more natural CONFIG_HEADER name is prohibited by automake
27146         for backwards compatibility reasons.
27147         * top/maint.mk (sc_Wundef_boolean): New rule.
27148
27149 2010-01-25  Jim Meyering  <meyering@redhat.com>
27150
27151         bootstrap: detect MacOS 10.6's shasum, too
27152         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
27153         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
27154
27155 2010-01-23  Jim Meyering  <meyering@redhat.com>
27156
27157         xstrtoll: new module
27158         * modules/xstrtoll: New file.
27159         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
27160         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
27161         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
27162         ./configure fails if you use this module and lack "long long".
27163         * modules/xstrtoll-tests: New module.
27164         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
27165         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
27166         new init.sh-based test framework.
27167
27168 2010-01-24  Bruno Haible  <bruno@clisp.org>
27169
27170         Tests for module 'yn'.
27171         * modules/yn-tests: New file.
27172         * tests/test-yn.c: New file.
27173
27174         Tests for module 'y1'.
27175         * modules/y1-tests: New file.
27176         * tests/test-y1.c: New file.
27177
27178         Tests for module 'y0'.
27179         * modules/y0-tests: New file.
27180         * tests/test-y0.c: New file.
27181
27182         Tests for module 'tanh'.
27183         * modules/tanh-tests: New file.
27184         * tests/test-tanh.c: New file.
27185
27186         Tests for module 'tan'.
27187         * modules/tan-tests: New file.
27188         * tests/test-tan.c: New file.
27189
27190         Tests for module 'sqrt'.
27191         * modules/sqrt-tests: New file.
27192         * tests/test-sqrt.c: New file.
27193
27194         Tests for module 'sinh'.
27195         * modules/sinh-tests: New file.
27196         * tests/test-sinh.c: New file.
27197
27198         Tests for module 'sin'.
27199         * modules/sin-tests: New file.
27200         * tests/test-sin.c: New file.
27201
27202         Tests for module 'rint'.
27203         * modules/rint-tests: New file.
27204         * tests/test-rint.c: New file.
27205
27206         Tests for module 'remainder'.
27207         * modules/remainder-tests: New file.
27208         * tests/test-remainder.c: New file.
27209
27210         Tests for module 'pow'.
27211         * modules/pow-tests: New file.
27212         * tests/test-pow.c: New file.
27213
27214         Tests for module 'nextafter'.
27215         * modules/nextafter-tests: New file.
27216         * tests/test-nextafter.c: New file.
27217
27218         Tests for module 'modf'.
27219         * modules/modf-tests: New file.
27220         * tests/test-modf.c: New file.
27221
27222         Tests for module 'logb'.
27223         * modules/logb-tests: New file.
27224         * tests/test-logb.c: New file.
27225
27226         Tests for module 'log1p'.
27227         * modules/log1p-tests: New file.
27228         * tests/test-log1p.c: New file.
27229
27230         Tests for module 'log10'.
27231         * modules/log10-tests: New file.
27232         * tests/test-log10.c: New file.
27233
27234         Tests for module 'log'.
27235         * modules/log-tests: New file.
27236         * tests/test-log.c: New file.
27237
27238         Tests for module 'lgamma'.
27239         * modules/lgamma-tests: New file.
27240         * tests/test-lgamma.c: New file.
27241
27242         Tests for module 'ldexp'.
27243         * modules/ldexp-tests: New file.
27244         * tests/test-ldexp.c: New file.
27245
27246         Tests for module 'jn'.
27247         * modules/jn-tests: New file.
27248         * tests/test-jn.c: New file.
27249
27250         Tests for module 'j1'.
27251         * modules/j1-tests: New file.
27252         * tests/test-j1.c: New file.
27253
27254         Tests for module 'j0'.
27255         * modules/j0-tests: New file.
27256         * tests/test-j0.c: New file.
27257
27258         Tests for module 'hypot'.
27259         * modules/hypot-tests: New file.
27260         * tests/test-hypot.c: New file.
27261
27262         Tests for module 'fmod'.
27263         * modules/fmod-tests: New file.
27264         * tests/test-fmod.c: New file.
27265
27266         Tests for module 'fabs'.
27267         * modules/fabs-tests: New file.
27268         * tests/test-fabs.c: New file.
27269
27270         Tests for module 'exp'.
27271         * modules/exp-tests: New file.
27272         * tests/test-exp.c: New file.
27273
27274         Tests for module 'erfc'.
27275         * modules/erfc-tests: New file.
27276         * tests/test-erfc.c: New file.
27277
27278         Tests for module 'erf'.
27279         * modules/erf-tests: New file.
27280         * tests/test-erf.c: New file.
27281
27282         Tests for module 'cosh'.
27283         * modules/cosh-tests: New file.
27284         * tests/test-cosh.c: New file.
27285
27286         Tests for module 'cos'.
27287         * modules/cos-tests: New file.
27288         * tests/test-cos.c: New file.
27289
27290         Tests for module 'copysign'.
27291         * modules/copysign-tests: New file.
27292         * tests/test-copysign.c: New file.
27293
27294         Tests for module 'cbrt'.
27295         * modules/cbrt-tests: New file.
27296         * tests/test-cbrt.c: New file.
27297
27298         Tests for module 'atan2'.
27299         * modules/atan2-tests: New file.
27300         * tests/test-atan2.c: New file.
27301
27302         Tests for module 'atan'.
27303         * modules/atan-tests: New file.
27304         * tests/test-atan.c: New file.
27305
27306         Tests for module 'asin'.
27307         * modules/asin-tests: New file.
27308         * tests/test-asin.c: New file.
27309
27310         Tests for module 'acos'.
27311         * modules/acos-tests: New file.
27312         * tests/test-acos.c: New file.
27313
27314 2010-01-24  Bruno Haible  <bruno@clisp.org>
27315
27316         Fix tests for common <math.h> functions.
27317         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
27318         code snippet that references the function pointer, rather than merely
27319         calling the function. Substitute the FUNC_LIBM variable.
27320         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
27321         * modules/acos (configure.ac): Likewise.
27322         * modules/asin (configure.ac): Likewise.
27323         * modules/atan (configure.ac): Likewise.
27324         * modules/atan2 (configure.ac): Likewise.
27325         * modules/cbrt (configure.ac): Likewise.
27326         * modules/copysign (configure.ac): Likewise.
27327         * modules/cos (configure.ac): Likewise.
27328         * modules/cosh (configure.ac): Likewise.
27329         * modules/erf (configure.ac): Likewise.
27330         * modules/erfc (configure.ac): Likewise.
27331         * modules/exp (configure.ac): Likewise.
27332         * modules/fabs (configure.ac): Likewise.
27333         * modules/fmod (configure.ac): Likewise.
27334         * modules/hypot (configure.ac): Likewise.
27335         * modules/j0 (configure.ac): Likewise.
27336         * modules/j1 (configure.ac): Likewise.
27337         * modules/jn (configure.ac): Likewise.
27338         * modules/ldexp (configure.ac): Likewise.
27339         * modules/lgamma (configure.ac): Likewise.
27340         * modules/log (configure.ac): Likewise.
27341         * modules/log10 (configure.ac): Likewise.
27342         * modules/log1p (configure.ac): Likewise.
27343         * modules/logb (configure.ac): Likewise.
27344         * modules/modf (configure.ac): Likewise.
27345         * modules/nextafter (configure.ac): Likewise.
27346         * modules/pow (configure.ac): Likewise.
27347         * modules/remainder (configure.ac): Likewise.
27348         * modules/rint (configure.ac): Likewise.
27349         * modules/sin (configure.ac): Likewise.
27350         * modules/sinh (configure.ac): Likewise.
27351         * modules/tan (configure.ac): Likewise.
27352         * modules/tanh (configure.ac): Likewise.
27353         * modules/y0 (configure.ac): Likewise.
27354         * modules/y1 (configure.ac): Likewise.
27355         * modules/yn (configure.ac): Likewise.
27356
27357 2010-01-24  Bruno Haible  <bruno@clisp.org>
27358
27359         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
27360         * tests/test-acosl.c (x): New variable.
27361         (main): Store argument in x and fetch it from x.
27362         * tests/test-asinl.c (x): New variable.
27363         (main): Store argument in x and fetch it from x.
27364         * tests/test-atanl.c (x): New variable.
27365         (main): Store argument in x and fetch it from x.
27366         * tests/test-cosl.c (x): New variable.
27367         (main): Store argument in x and fetch it from x.
27368         * tests/test-expl.c (x): New variable.
27369         (main): Store argument in x and fetch it from x.
27370         * tests/test-logl.c (x): New variable.
27371         (main): Store argument in x and fetch it from x.
27372         * tests/test-sinl.c (x): New variable.
27373         (main): Store argument in x and fetch it from x.
27374         * tests/test-sqrtl.c (x): New variable.
27375         (main): Store argument in x and fetch it from x.
27376         * tests/test-tanl.c (x): New variable.
27377         (main): Store argument in x and fetch it from x.
27378
27379 2010-01-24  Bruno Haible  <bruno@clisp.org>
27380
27381         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
27382         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
27383         assignments to the initial TESTS_ENVIRONMENT.
27384         * doc/gnulib.texi (Unit test modules): Document it.
27385         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
27386         TESTS_ENVIRONMENT.
27387         * modules/btowc-tests (Makefile.am): Likewise.
27388         * modules/c-stack-tests (Makefile.am): Likewise.
27389         * modules/c-strcase-tests (Makefile.am): Likewise.
27390         * modules/copy-file-tests (Makefile.am): Likewise.
27391         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
27392         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
27393         * modules/mbrtowc-tests (Makefile.am): Likewise.
27394         * modules/mbscasecmp-tests (Makefile.am): Likewise.
27395         * modules/mbscasestr-tests (Makefile.am): Likewise.
27396         * modules/mbschr-tests (Makefile.am): Likewise.
27397         * modules/mbscspn-tests (Makefile.am): Likewise.
27398         * modules/mbsinit-tests (Makefile.am): Likewise.
27399         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
27400         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
27401         * modules/mbspbrk-tests (Makefile.am): Likewise.
27402         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
27403         * modules/mbsrchr-tests (Makefile.am): Likewise.
27404         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
27405         * modules/mbsspn-tests (Makefile.am): Likewise.
27406         * modules/mbsstr-tests (Makefile.am): Likewise.
27407         * modules/nl_langinfo-tests (Makefile.am): Likewise.
27408         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
27409         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
27410         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
27411         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
27412         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
27413         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
27414         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
27415         * modules/wcrtomb-tests (Makefile.am): Likewise.
27416         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
27417         * modules/wcsrtombs-tests (Makefile.am): Likewise.
27418         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
27419         assignments from TESTS_ENVIRONMENT.
27420         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
27421         augmentation.
27422         * modules/argp-version-etc-tests (Makefile.am): Likewise.
27423         * modules/atexit-tests (Makefile.am): Likewise.
27424         * modules/binary-io-tests (Makefile.am): Likewise.
27425         * modules/closein-tests (Makefile.am): Likewise.
27426         * modules/dprintf-posix-tests (Makefile.am): Likewise.
27427         * modules/exclude-tests (Makefile.am): Likewise.
27428         * modules/fflush-tests (Makefile.am): Likewise.
27429         * modules/fpending-tests (Makefile.am): Likewise.
27430         * modules/fprintf-posix-tests (Makefile.am): Likewise.
27431         * modules/freadahead-tests (Makefile.am): Likewise.
27432         * modules/freadptr-tests (Makefile.am): Likewise.
27433         * modules/freadseek-tests (Makefile.am): Likewise.
27434         * modules/fseek-tests (Makefile.am): Likewise.
27435         * modules/fseeko-tests (Makefile.am): Likewise.
27436         * modules/ftell-tests (Makefile.am): Likewise.
27437         * modules/ftello-tests (Makefile.am): Likewise.
27438         * modules/idpriv-drop-tests (Makefile.am): Likewise.
27439         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
27440         * modules/lseek-tests (Makefile.am): Likewise.
27441         * modules/parse-duration-tests (Makefile.am): Likewise.
27442         * modules/perror-tests (Makefile.am): Likewise.
27443         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
27444         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
27445         * modules/pipe-tests (Makefile.am): Likewise.
27446         * modules/pread-tests (Makefile.am): Likewise.
27447         * modules/printf-posix-tests (Makefile.am): Likewise.
27448         * modules/select-tests (Makefile.am): Likewise.
27449         * modules/sigpipe-tests (Makefile.am): Likewise.
27450         * modules/tsearch-tests (Makefile.am): Likewise.
27451         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
27452         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
27453         * modules/uniname/uniname-tests (Makefile.am): Likewise.
27454         * modules/uniwidth/width-tests (Makefile.am): Likewise.
27455         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
27456         * modules/version-etc-tests (Makefile.am): Likewise.
27457         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
27458         * modules/vprintf-posix-tests (Makefile.am): Likewise.
27459         * modules/xalloc-die-tests (Makefile.am): Likewise.
27460         * modules/xprintf-posix-tests (Makefile.am): Likewise.
27461         * modules/xstrtoimax-tests (Makefile.am): Likewise.
27462         * modules/xstrtol-tests (Makefile.am): Likewise.
27463         * modules/xstrtoumax-tests (Makefile.am): Likewise.
27464         * modules/yesno-tests (Makefile.am): Likewise.
27465         Suggested by Jim Meyering.
27466
27467 2010-01-24  Bruno Haible  <bruno@clisp.org>
27468
27469         More documentation.
27470         * doc/gnulib.texi (Writing modules): New chapter.
27471         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
27472         the new chapter.
27473
27474 2010-01-24  Jim Meyering  <meyering@redhat.com>
27475
27476         maint.mk: do not prepend "./" after filtering
27477         * top/maint.mk (_prepend_srcdir_prefix): New variable
27478         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
27479         "./" when $(srcdir) is ".".
27480
27481         define STREQ(a,b) consistently, removing useless parentheses
27482         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
27483         since the only risk is that "a" or "b" contains an unparenthesized
27484         comma, but if either did that, STREQ would have 3 or more arguments.
27485         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
27486         * lib/fts.c (STREQ): Remove unnecessary parentheses.
27487         * lib/hash-triple.c (STREQ): Likewise.
27488         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
27489         * lib/getugroups.c (STREQ): Likewise.
27490
27491 2010-01-23  Jim Meyering  <meyering@redhat.com>
27492
27493         maint.mk: fix syntax-check in a non-srcdir build directory
27494         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
27495         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
27496
27497 2010-01-22  Jim Meyering  <meyering@redhat.com>
27498
27499         userspec: add unit tests
27500         * tests/test-userspec.c: New file.
27501         * modules/userspec-tests: Likewise.
27502
27503 2010-01-21  Jim Meyering  <meyering@redhat.com>
27504
27505         maint.mk: handle source file names containing "." robustly
27506         * top/maint.mk (_dot_escaped_srcdir): Define.
27507         (VC_LIST): Use it in LHS of sed substitution.
27508
27509 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
27510
27511         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
27512         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
27513         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
27514         from a non-srcdir build.
27515
27516 2010-01-20  Eric Blake  <ebb9@byu.net>
27517
27518         warn-on-use: use instead of link-warning
27519         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
27520         * modules/unistd (Depends-on, Makefile.am): Likewise.
27521         * modules/arpa_inet (Depends-on): Replace link-warning with
27522         warn-on-use.
27523         (Makefile.am): Update rules accordingly.
27524         * modules/ctype (Depends-on, Makefile.am): Likewise.
27525         * modules/dirent (Depends-on, Makefile.am): Likewise.
27526         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
27527         * modules/inttypes (Depends-on, Makefile.am): Likewise.
27528         * modules/langinfo (Depends-on, Makefile.am): Likewise.
27529         * modules/locale (Depends-on, Makefile.am): Likewise.
27530         * modules/math (Depends-on, Makefile.am): Likewise.
27531         * modules/search (Depends-on, Makefile.am): Likewise.
27532         * modules/signal (Depends-on, Makefile.am): Likewise.
27533         * modules/spawn (Depends-on, Makefile.am): Likewise.
27534         * modules/stdlib (Depends-on, Makefile.am): Likewise.
27535         * modules/string (Depends-on, Makefile.am): Likewise.
27536         * modules/strings (Depends-on, Makefile.am): Likewise.
27537         * modules/sys_file (Depends-on, Makefile.am): Likewise.
27538         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
27539         * modules/sys_select (Depends-on, Makefile.am): Likewise.
27540         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
27541         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
27542         * modules/sys_times (Depends-on, Makefile.am): Likewise.
27543         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
27544         * modules/wchar (Depends-on, Makefile.am): Likewise.
27545         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
27546         should be poisoned.
27547         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
27548         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
27549         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
27550         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
27551         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
27552         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
27553         * m4/math_h.m4 (gl_MATH_H): Likewise.
27554         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
27555         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
27556         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
27557         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
27558         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
27559         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
27560         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
27561         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
27562         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
27563         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
27564         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
27565         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
27566         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
27567         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
27568         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
27569         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
27570         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
27571         GL_LINK_WARNING.
27572         * lib/ctype.in.h: Likewise.
27573         * lib/dirent.in.h: Likewise.
27574         * lib/fcntl.in.h: Likewise.
27575         * lib/inttypes.in.h: Likewise.
27576         * lib/langinfo.in.h: Likewise.
27577         * lib/locale.in.h: Likewise.
27578         * lib/math.in.h: Likewise.
27579         * lib/search.in.h: Likewise.
27580         * lib/signal.in.h: Likewise.
27581         * lib/spawn.in.h: Likewise.
27582         * lib/stdio.in.h: Likewise.
27583         * lib/stdlib.in.h: Likewise.
27584         * lib/string.in.h: Likewise.
27585         * lib/strings.in.h: Likewise.
27586         * lib/sys_file.in.h: Likewise.
27587         * lib/sys_ioctl.in.h: Likewise.
27588         * lib/sys_select.in.h: Likewise.
27589         * lib/sys_socket.in.h: Likewise.
27590         * lib/sys_stat.in.h: Likewise.
27591         * lib/sys_times.in.h: Likewise.
27592         * lib/sys_utsname.in.h: Likewise.
27593         * lib/unistd.in.h: Likewise.
27594         * lib/wchar.in.h: Likewise.
27595
27596 2010-01-20  Bruno Haible  <bruno@clisp.org>
27597
27598         Avoid duplicate -lm.
27599         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
27600         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
27601         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
27602         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
27603         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
27604         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
27605         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
27606         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
27607         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
27608         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
27609         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
27610         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
27611         Reported by Paolo Bonzini.
27612
27613 2010-01-19  Bruno Haible  <bruno@clisp.org>
27614
27615         langinfo, nl_langinfo: Relicense under LGPLv2+.
27616         * modules/langinfo (License): Change to LGPLv2+.
27617         * modules/nl_langinfo (License): Likewise.
27618         Patch by David Lutterkort <lutter@redhat.com>.
27619
27620 2010-01-19  Bruno Haible  <bruno@clisp.org>
27621
27622         Avoid compilation error with cc on OSF/1 5.1.
27623         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
27624         statement, not before.
27625         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
27626
27627 2010-01-18  Bruno Haible  <bruno@clisp.org>
27628
27629         Avoid a link error due to the __printf__ symbol.
27630         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
27631         and 2.6.x.
27632         (__format__, __printf__): Remove definitions.
27633         * lib/argp-fmtstream.h: Likewise.
27634         * lib/argp.h: Likewise.
27635         * lib/error.h: Likewise.
27636         * lib/vasnprintf.h: Likewise.
27637         * lib/xprintf.h: Likewise.
27638         * lib/xvasprintf.h: Likewise.
27639         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
27640
27641 2010-01-18  Bruno Haible  <bruno@clisp.org>
27642
27643         Tests for module 'tanl'.
27644         * modules/tanl-tests: New file.
27645         * tests/test-tanl.c: New file.
27646
27647         Tests for module 'sqrtl'.
27648         * modules/sqrtl-tests: New file.
27649         * tests/test-sqrtl.c: New file.
27650
27651         Tests for module 'sinl'.
27652         * modules/sinl-tests: New file.
27653         * tests/test-sinl.c: New file.
27654
27655         Tests for module 'logl'.
27656         * modules/logl-tests: New file.
27657         * tests/test-logl.c: New file.
27658
27659         Tests for module 'expl'.
27660         * modules/expl-tests: New file.
27661         * tests/test-expl.c: New file.
27662
27663         Tests for module 'cosl'.
27664         * modules/cosl-tests: New file.
27665         * tests/test-cosl.c: New file.
27666
27667         Tests for module 'atanl'.
27668         * modules/atanl-tests: New file.
27669         * tests/test-atanl.c: New file.
27670
27671         Tests for module 'asinl'.
27672         * modules/asinl-tests: New file.
27673         * tests/test-asinl.c: New file.
27674
27675         Tests for module 'acosl'.
27676         * modules/acosl-tests: New file.
27677         * tests/test-acosl.c: New file.
27678
27679         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
27680         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
27681         tanl): Use the standard gnulib idiom.
27682         * lib/cosl.c: Don't include trigl.c and sincosl.c.
27683         * lib/sinl.c: Likewise.
27684         * lib/tanl.c: Don't include trigl.c.
27685         (kernel_tanl): Make static.
27686         * lib/sincosl.c: Include trigl.h first.
27687         * lib/trigl.c: Likewise.
27688         * m4/acosl.m4: New file.
27689         * m4/asinl.m4: New file.
27690         * m4/atanl.m4: New file.
27691         * m4/cosl.m4: New file.
27692         * m4/expl.m4: New file.
27693         * m4/logl.m4: New file.
27694         * m4/sinl.m4: New file.
27695         * m4/sqrtl.m4: New file.
27696         * m4/tanl.m4: New file.
27697         * m4/mathl.m4: Remove file.
27698         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
27699         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
27700         Don't initialize GNULIB_MATHL.
27701         * modules/acosl: New file.
27702         * modules/asinl: New file.
27703         * modules/atanl: New file.
27704         * modules/cosl: New file.
27705         * modules/expl: New file.
27706         * modules/logl: New file.
27707         * modules/sinl: New file.
27708         * modules/sqrtl: New file.
27709         * modules/tanl: New file.
27710         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
27711         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
27712         substitute GNULIB_MATHL.
27713         * modules/mathl: Rewritten.
27714         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
27715         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
27716         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
27717         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
27718         * doc/posix-functions/expl.texi: Mention the 'expl' module.
27719         * doc/posix-functions/logl.texi: Mention the 'logl' module.
27720         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
27721         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
27722         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
27723
27724 2010-01-18  Bruno Haible  <bruno@clisp.org>
27725
27726         sqrt: Make gl_FUNC_SQRT requirable.
27727         * m4/sqrt.m4: New file.
27728         * modules/sqrt (Files): Add it.
27729         (configure.ac): Invoke gl_FUNC_SQRT.
27730
27731 2010-01-18  Bruno Haible  <bruno@clisp.org>
27732
27733         New modules for common <math.h> functions.
27734         * m4/mathfunc.m4: New file.
27735         * modules/acos: New file.
27736         * modules/asin: New file.
27737         * modules/atan: New file.
27738         * modules/atan2: New file.
27739         * modules/cbrt: New file.
27740         * modules/copysign: New file.
27741         * modules/cos: New file.
27742         * modules/cosh: New file.
27743         * modules/erf: New file.
27744         * modules/erfc: New file.
27745         * modules/exp: New file.
27746         * modules/fabs: New file.
27747         * modules/fmod: New file.
27748         * modules/hypot: New file.
27749         * modules/j0: New file.
27750         * modules/j1: New file.
27751         * modules/jn: New file.
27752         * modules/ldexp: New file.
27753         * modules/lgamma: New file.
27754         * modules/log: New file.
27755         * modules/log10: New file.
27756         * modules/log1p: New file.
27757         * modules/logb: New file.
27758         * modules/modf: New file.
27759         * modules/nextafter: New file.
27760         * modules/pow: New file.
27761         * modules/remainder: New file.
27762         * modules/rint: New file.
27763         * modules/sin: New file.
27764         * modules/sinh: New file.
27765         * modules/sqrt: New file.
27766         * modules/tan: New file.
27767         * modules/tanh: New file.
27768         * modules/y0: New file.
27769         * modules/y1: New file.
27770         * modules/yn: New file.
27771         * doc/posix-functions/acos.texi: Mention the 'acos' module.
27772         * doc/posix-functions/asin.texi: Mention the 'asin' module.
27773         * doc/posix-functions/atan.texi: Mention the 'atan' module.
27774         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
27775         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
27776         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
27777         * doc/posix-functions/cos.texi: Mention the 'cos' module.
27778         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
27779         * doc/posix-functions/erf.texi: Mention the 'erf' module.
27780         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
27781         * doc/posix-functions/exp.texi: Mention the 'exp' module.
27782         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
27783         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
27784         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
27785         * doc/posix-functions/j0.texi: Mention the 'j0' module.
27786         * doc/posix-functions/j1.texi: Mention the 'j1' module.
27787         * doc/posix-functions/jn.texi: Mention the 'jn' module.
27788         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
27789         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
27790         * doc/posix-functions/log.texi: Mention the 'log' module.
27791         * doc/posix-functions/log10.texi: Mention the 'log10' module.
27792         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
27793         * doc/posix-functions/logb.texi: Mention the 'logb' module.
27794         * doc/posix-functions/modf.texi: Mention the 'modf' module.
27795         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
27796         * doc/posix-functions/pow.texi: Mention the 'pow' module.
27797         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
27798         * doc/posix-functions/rint.texi: Mention the 'rint' module.
27799         * doc/posix-functions/sin.texi: Mention the 'sin' module.
27800         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
27801         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
27802         * doc/posix-functions/tan.texi: Mention the 'tan' module.
27803         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
27804         * doc/posix-functions/y0.texi: Mention the 'y0' module.
27805         * doc/posix-functions/y1.texi: Mention the 'y1' module.
27806         * doc/posix-functions/yn.texi: Mention the 'yn' module.
27807
27808 2010-01-18  Jim Meyering  <meyering@redhat.com>
27809
27810         ignore-value: relax license to LGPLv2+
27811         * modules/ignore-value (License): Relax to LGPLv2+.
27812
27813         getdate: don't leak when TZ contains two or more '"'s
27814         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
27815         double quote in TZ after the first one.
27816
27817         readtokens: do not leak internal token_lengths buffer
27818         * lib/readtokens.c (readtokens): Free the local, lengths,
27819         when the supplied "token_lengths" parameter is NULL.
27820
27821 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27822
27823         Fix a couple of missing LIBTHREAD link failures on AIX.
27824         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
27825         $(LIBTHREAD).
27826         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
27827
27828         Link test-poll against INET_PTON_LIB.
27829         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
27830         for inet_pton on Solaris 10.
27831
27832 2010-01-17  Bruno Haible  <bruno@clisp.org>
27833
27834         unistdio/*-sprintf: Fix typo in module description.
27835         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
27836         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
27837         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
27838         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
27839         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
27840         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
27841         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
27842         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
27843
27844 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27845
27846         gnulib-tool: fix filelist for AIX, HP-UX ksh.
27847         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
27848         variables in shell case patterns, for AIX and HP-UX ksh.
27849
27850         Split large sed scripts, for HP-UX sed.
27851         * modules/stdio: Split sed scripts around 50 sed commands,
27852         to avoid HP-UX limit of 99 commands, in the near future.
27853         * modules/string: Likewise.
27854         * modules/unistd: Likewise.
27855
27856         gnulib-tool: avoid writing in the current directory.
27857         * gnulib-tool (func_emit_lib_Makefile_am)
27858         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
27859         not in the current directory, so concurrent gnulib-tool
27860         instances do not interfere.
27861
27862 2010-01-16  Jim Meyering  <meyering@redhat.com>
27863
27864         doc: update users.txt
27865         * users.txt: Add grep.
27866         (diffutils, gzip): Update URLs.
27867
27868 2010-01-12  Bruno Haible  <bruno@clisp.org>
27869
27870         posix_spawn: Avoid test failure on Cygwin.
27871         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
27872         characters.
27873         Reported by Simon Josefsson.
27874
27875 2010-01-12  Bruno Haible  <bruno@clisp.org>
27876
27877         * tests/test-cond.c (main): When skipping the test, show the reason.
27878
27879 2010-01-12  Simon Josefsson  <simon@josefsson.org>
27880
27881         * lib/striconv.c (str_cd_iconv): Avoid if before free.
27882
27883 2010-01-12  Simon Josefsson  <simon@josefsson.org>
27884
27885         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
27886         VC_LIST_ALWAYS_EXCLUDE_REGEX.
27887
27888 2010-01-12  Eric Blake  <ebb9@byu.net>
27889
27890         build: guarantee AS_VAR_IF
27891         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
27892         (gl_AS_VAR_IF): Move...
27893         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
27894         Reported by Simon Josefsson.
27895
27896 2010-01-12  Simon Josefsson  <simon@josefsson.org>
27897
27898         * lib/stdio.in.h: Fix typo.
27899
27900 2010-01-12  Simon Josefsson  <simon@josefsson.org>
27901
27902         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
27903         libgpg-error.
27904
27905 2010-01-12  Simon Josefsson  <simon@josefsson.org>
27906
27907         * tests/test-xalloc-die.sh: Use $EXEEXT.
27908
27909 2010-01-12  Simon Josefsson  <simon@josefsson.org>
27910             Bruno Haible  <bruno@clisp.org>
27911
27912         getlogin, getlogin_r: Avoid test failure.
27913         * tests/test-getlogin.c: Include <stdio.h>.
27914         (main): Skip the test when the function fails because stdin is not a
27915         tty.
27916         * tests/test-getlogin_r.c: Include <stdio.h>.
27917         (main): Skip the test when the function fails because stdin is not a
27918         tty.
27919
27920 2010-01-11  Eric Blake  <ebb9@byu.net>
27921
27922         tests: avoid more large file warnings
27923         * tests/test-fflush.c: Avoid warning about ftell use.
27924         * tests/test-fseek.c: Avoid warning about fseek use.
27925
27926 2010-01-10  Bruno Haible  <bruno@clisp.org>
27927
27928         nproc: Work better on Linux when /proc and /sys are not mounted.
27929         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
27930         as lower bound when, on glibc/Linux systems,
27931         sysconf (_SC_NPROCESSORS_CONF) returns 1.
27932         Suggested by Pádraig Brady <P@draigbrady.com>.
27933         Reported by Dmitry V. Levin <ldv@altlinux.org>.
27934
27935         nproc: Refactor.
27936         * lib/nproc.c (num_processors_via_affinity_mask): New function,
27937         extracted from num_processors.
27938         (num_processors): Call it.
27939
27940 2010-01-11  Jim Meyering  <meyering@redhat.com>
27941
27942         utimecmp: avoid new warning from upcoming gcc-4.5.0
27943         * lib/utimecmp.c (BILLION): Define using #define rather than an
27944         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
27945
27946 2010-01-11  Eric Blake  <ebb9@byu.net>
27947
27948         math: add portability warnings for classification macros
27949         * modules/math (Depends-on): Add warn-on-use.
27950         (Makefile.am): Provide new substitutions.
27951         * m4/math_h.m4 (gl_MATH_H): Require inline.
27952         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
27953         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
27954         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
27955         implement warnings.
27956
27957         unistd: warn on use of environ without module
27958         * modules/unistd (Depends-on): Add warn-on-use.
27959         (Makefile.am): Provide new substitutions.
27960         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
27961         * lib/unistd.in.h (environ): Wrap with a warning helper function.
27962
27963         stdio: warn on suspicious uses
27964         * modules/stdio (Depends-on): Add warn-on-use.
27965         (Makefile.am): Provide new substitutions.
27966         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
27967         fseeko.
27968         * lib/stdio.in.h (gets): Always warn on use.
27969         (fseek, ftell): Adjust when warnings are issued, and honor
27970         _GL_NO_LARGE_FILES as a way to silence the warning.
27971         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
27972         any warning about large file offsets.
27973         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
27974         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
27975         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
27976         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
27977         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
27978         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
27979         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
27980         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
27981
27982         warn-on-use: new module
27983         * modules/warn-on-use: New file.
27984         * build-aux/warn-on-use.h: Likewise.
27985         * m4/warn-on-use.m4: Likewise.
27986         * MODULES.html.sh (Support for building): Mention it.
27987
27988 2010-01-10  Bruno Haible  <bruno@clisp.org>
27989
27990         Tests for module 'unistr/u32-strdup'.
27991         * modules/unistr/u32-strdup-tests: New file.
27992         * tests/unistr/test-u32-strdup.c: New file.
27993
27994         Tests for module 'unistr/u16-strdup'.
27995         * modules/unistr/u16-strdup-tests: New file.
27996         * tests/unistr/test-u16-strdup.c: New file.
27997
27998         Tests for module 'unistr/u8-strdup'.
27999         * modules/unistr/u8-strdup-tests: New file.
28000         * tests/unistr/test-u8-strdup.c: New file.
28001         * tests/unistr/test-strdup.h: New file.
28002
28003         Tests for module 'unistr/u32-strncmp'.
28004         * modules/unistr/u32-strncmp-tests: New file.
28005         * tests/unistr/test-u32-strncmp.c: New file.
28006
28007         Tests for module 'unistr/u16-strncmp'.
28008         * modules/unistr/u16-strncmp-tests: New file.
28009         * tests/unistr/test-u16-strncmp.c: New file.
28010
28011         Tests for module 'unistr/u8-strncmp'.
28012         * modules/unistr/u8-strncmp-tests: New file.
28013         * tests/unistr/test-u8-strncmp.c: New file.
28014         * tests/unistr/test-strncmp.h: New file.
28015
28016         Tests for module 'unistr/u32-strcoll'.
28017         * modules/unistr/u32-strcoll-tests: New file.
28018         * tests/unistr/test-u32-strcoll.c: New file.
28019
28020         Tests for module 'unistr/u16-strcoll'.
28021         * modules/unistr/u16-strcoll-tests: New file.
28022         * tests/unistr/test-u16-strcoll.c: New file.
28023
28024         Tests for module 'unistr/u8-strcoll'.
28025         * modules/unistr/u8-strcoll-tests: New file.
28026         * tests/unistr/test-u8-strcoll.c: New file.
28027
28028         Tests for module 'unistr/u32-strcmp'.
28029         * modules/unistr/u32-strcmp-tests: New file.
28030         * tests/unistr/test-u32-strcmp.c: New file.
28031         * tests/unistr/test-u32-strcmp.h: New file.
28032
28033         Tests for module 'unistr/u16-strcmp'.
28034         * modules/unistr/u16-strcmp-tests: New file.
28035         * tests/unistr/test-u16-strcmp.c: New file.
28036         * tests/unistr/test-u16-strcmp.h: New file.
28037
28038         Tests for module 'unistr/u8-strcmp'.
28039         * modules/unistr/u8-strcmp-tests: New file.
28040         * tests/unistr/test-u8-strcmp.c: New file.
28041         * tests/unistr/test-u8-strcmp.h: New file.
28042         * tests/unistr/test-strcmp.h: New file.
28043
28044         Tests for module 'unistr/u32-strncat'.
28045         * modules/unistr/u32-strncat-tests: New file.
28046         * tests/unistr/test-u32-strncat.c: New file.
28047
28048         Tests for module 'unistr/u16-strncat'.
28049         * modules/unistr/u16-strncat-tests: New file.
28050         * tests/unistr/test-u16-strncat.c: New file.
28051
28052         Tests for module 'unistr/u8-strncat'.
28053         * modules/unistr/u8-strncat-tests: New file.
28054         * tests/unistr/test-u8-strncat.c: New file.
28055         * tests/unistr/test-strncat.h: New file.
28056
28057         Tests for module 'unistr/u32-strcat'.
28058         * modules/unistr/u32-strcat-tests: New file.
28059         * tests/unistr/test-u32-strcat.c: New file.
28060
28061         Tests for module 'unistr/u16-strcat'.
28062         * modules/unistr/u16-strcat-tests: New file.
28063         * tests/unistr/test-u16-strcat.c: New file.
28064
28065         Tests for module 'unistr/u8-strcat'.
28066         * modules/unistr/u8-strcat-tests: New file.
28067         * tests/unistr/test-u8-strcat.c: New file.
28068         * tests/unistr/test-strcat.h: New file.
28069
28070         Tests for module 'unistr/u32-stpncpy'.
28071         * modules/unistr/u32-stpncpy-tests: New file.
28072         * tests/unistr/test-u32-stpncpy.c: New file.
28073
28074         Tests for module 'unistr/u16-stpncpy'.
28075         * modules/unistr/u16-stpncpy-tests: New file.
28076         * tests/unistr/test-u16-stpncpy.c: New file.
28077
28078         Tests for module 'unistr/u8-stpncpy'.
28079         * modules/unistr/u8-stpncpy-tests: New file.
28080         * tests/unistr/test-u8-stpncpy.c: New file.
28081         * tests/unistr/test-stpncpy.h: New file.
28082
28083         Tests for module 'unistr/u32-strncpy'.
28084         * modules/unistr/u32-strncpy-tests: New file.
28085         * tests/unistr/test-u32-strncpy.c: New file.
28086
28087         Tests for module 'unistr/u16-strncpy'.
28088         * modules/unistr/u16-strncpy-tests: New file.
28089         * tests/unistr/test-u16-strncpy.c: New file.
28090
28091         Tests for module 'unistr/u8-strncpy'.
28092         * modules/unistr/u8-strncpy-tests: New file.
28093         * tests/unistr/test-u8-strncpy.c: New file.
28094         * tests/unistr/test-strncpy.h: New file.
28095
28096         Tests for module 'unistr/u32-stpcpy'.
28097         * modules/unistr/u32-stpcpy-tests: New file.
28098         * tests/unistr/test-u32-stpcpy.c: New file.
28099
28100         Tests for module 'unistr/u16-stpcpy'.
28101         * modules/unistr/u16-stpcpy-tests: New file.
28102         * tests/unistr/test-u16-stpcpy.c: New file.
28103
28104         Tests for module 'unistr/u8-stpcpy'.
28105         * modules/unistr/u8-stpcpy-tests: New file.
28106         * tests/unistr/test-u8-stpcpy.c: New file.
28107         * tests/unistr/test-stpcpy.h: New file.
28108
28109         Tests for module 'unistr/u32-strcpy'.
28110         * modules/unistr/u32-strcpy-tests: New file.
28111         * tests/unistr/test-u32-strcpy.c: New file.
28112
28113         Tests for module 'unistr/u16-strcpy'.
28114         * modules/unistr/u16-strcpy-tests: New file.
28115         * tests/unistr/test-u16-strcpy.c: New file.
28116
28117         Tests for module 'unistr/u8-strcpy'.
28118         * modules/unistr/u8-strcpy-tests: New file.
28119         * tests/unistr/test-u8-strcpy.c: New file.
28120         * tests/unistr/test-strcpy.h: New file.
28121
28122         Tests for module 'unistr/u32-strnlen'.
28123         * modules/unistr/u32-strnlen-tests: New file.
28124         * tests/unistr/test-u32-strnlen.c: New file.
28125
28126         Tests for module 'unistr/u16-strnlen'.
28127         * modules/unistr/u16-strnlen-tests: New file.
28128         * tests/unistr/test-u16-strnlen.c: New file.
28129
28130         Tests for module 'unistr/u8-strnlen'.
28131         * modules/unistr/u8-strnlen-tests: New file.
28132         * tests/unistr/test-u8-strnlen.c: New file.
28133         * tests/unistr/test-strnlen.h: New file.
28134
28135         Tests for module 'unistr/u32-strlen'.
28136         * modules/unistr/u32-strlen-tests: New file.
28137         * tests/unistr/test-u32-strlen.c: New file.
28138
28139         Tests for module 'unistr/u16-strlen'.
28140         * modules/unistr/u16-strlen-tests: New file.
28141         * tests/unistr/test-u16-strlen.c: New file.
28142
28143         Tests for module 'unistr/u8-strlen'.
28144         * modules/unistr/u8-strlen-tests: New file.
28145         * tests/unistr/test-u8-strlen.c: New file.
28146
28147         Tests for module 'unistr/u32-prev'.
28148         * modules/unistr/u32-prev-tests: New file.
28149         * tests/unistr/test-u32-prev.c: New file.
28150
28151         Tests for module 'unistr/u16-prev'.
28152         * modules/unistr/u16-prev-tests: New file.
28153         * tests/unistr/test-u16-prev.c: New file.
28154
28155         Tests for module 'unistr/u8-prev'.
28156         * modules/unistr/u8-prev-tests: New file.
28157         * tests/unistr/test-u8-prev.c: New file.
28158
28159         Tests for module 'unistr/u32-next'.
28160         * modules/unistr/u32-next-tests: New file.
28161         * tests/unistr/test-u32-next.c: New file.
28162
28163         Tests for module 'unistr/u16-next'.
28164         * modules/unistr/u16-next-tests: New file.
28165         * tests/unistr/test-u16-next.c: New file.
28166
28167         Tests for module 'unistr/u8-next'.
28168         * modules/unistr/u8-next-tests: New file.
28169         * tests/unistr/test-u8-next.c: New file.
28170
28171         Tests for module 'unistr/u32-strmbtouc'.
28172         * modules/unistr/u32-strmbtouc-tests: New file.
28173         * tests/unistr/test-u32-strmbtouc.c: New file.
28174
28175         Tests for module 'unistr/u16-strmbtouc'.
28176         * modules/unistr/u16-strmbtouc-tests: New file.
28177         * tests/unistr/test-u16-strmbtouc.c: New file.
28178
28179         Tests for module 'unistr/u8-strmbtouc'.
28180         * modules/unistr/u8-strmbtouc-tests: New file.
28181         * tests/unistr/test-u8-strmbtouc.c: New file.
28182
28183         Tests for module 'unistr/u32-strmblen'.
28184         * modules/unistr/u32-strmblen-tests: New file.
28185         * tests/unistr/test-u32-strmblen.c: New file.
28186
28187         Tests for module 'unistr/u16-strmblen'.
28188         * modules/unistr/u16-strmblen-tests: New file.
28189         * tests/unistr/test-u16-strmblen.c: New file.
28190
28191         Tests for module 'unistr/u8-strmblen'.
28192         * modules/unistr/u8-strmblen-tests: New file.
28193         * tests/unistr/test-u8-strmblen.c: New file.
28194
28195         Tests for module 'unistr/u32-cpy-alloc'.
28196         * modules/unistr/u32-cpy-alloc-tests: New file.
28197         * tests/unistr/test-u32-cpy-alloc.c: New file.
28198
28199         Tests for module 'unistr/u16-cpy-alloc'.
28200         * modules/unistr/u16-cpy-alloc-tests: New file.
28201         * tests/unistr/test-u16-cpy-alloc.c: New file.
28202
28203         Tests for module 'unistr/u8-cpy-alloc'.
28204         * modules/unistr/u8-cpy-alloc-tests: New file.
28205         * tests/unistr/test-u8-cpy-alloc.c: New file.
28206         * tests/unistr/test-cpy-alloc.h: New file.
28207
28208         Tests for module 'unistr/u32-mbsnlen'.
28209         * modules/unistr/u32-mbsnlen-tests: New file.
28210         * tests/unistr/test-u32-mbsnlen.c: New file.
28211
28212         Tests for module 'unistr/u16-mbsnlen'.
28213         * modules/unistr/u16-mbsnlen-tests: New file.
28214         * tests/unistr/test-u16-mbsnlen.c: New file.
28215
28216         Tests for module 'unistr/u8-mbsnlen'.
28217         * modules/unistr/u8-mbsnlen-tests: New file.
28218         * tests/unistr/test-u8-mbsnlen.c: New file.
28219
28220         Tests for module 'unistr/u32-chr'.
28221         * modules/unistr/u32-chr-tests: New file.
28222         * tests/unistr/test-u32-chr.c: New file.
28223
28224         Tests for module 'unistr/u16-chr'.
28225         * modules/unistr/u16-chr-tests: New file.
28226         * tests/unistr/test-u16-chr.c: New file.
28227
28228         Tests for module 'unistr/u8-chr'.
28229         * modules/unistr/u8-chr-tests: New file.
28230         * tests/unistr/test-u8-chr.c: New file.
28231         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
28232
28233         Tests for module 'unistr/u32-cmp2'.
28234         * modules/unistr/u32-cmp2-tests: New file.
28235         * tests/unistr/test-u32-cmp2.c: New file.
28236
28237         Tests for module 'unistr/u16-cmp2'.
28238         * modules/unistr/u16-cmp2-tests: New file.
28239         * tests/unistr/test-u16-cmp2.c: New file.
28240
28241         Tests for module 'unistr/u8-cmp2'.
28242         * modules/unistr/u8-cmp2-tests: New file.
28243         * tests/unistr/test-u8-cmp2.c: New file.
28244         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
28245
28246         Tests for module 'unistr/u32-cmp'.
28247         * modules/unistr/u32-cmp-tests: New file.
28248         * tests/unistr/test-u32-cmp.c: New file.
28249
28250         Tests for module 'unistr/u16-cmp'.
28251         * modules/unistr/u16-cmp-tests: New file.
28252         * tests/unistr/test-u16-cmp.c: New file.
28253
28254         Tests for module 'unistr/u8-cmp'.
28255         * modules/unistr/u8-cmp-tests: New file.
28256         * tests/unistr/test-u8-cmp.c: New file.
28257         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
28258
28259         Tests for module 'unistr/u32-set'.
28260         * modules/unistr/u32-set-tests: New file.
28261         * tests/unistr/test-u32-set.c: New file.
28262
28263         Tests for module 'unistr/u16-set'.
28264         * modules/unistr/u16-set-tests: New file.
28265         * tests/unistr/test-u16-set.c: New file.
28266
28267         Tests for module 'unistr/u8-set'.
28268         * modules/unistr/u8-set-tests: New file.
28269         * tests/unistr/test-u8-set.c: New file.
28270         * tests/unistr/test-set.h: New file.
28271
28272         Tests for module 'unistr/u32-move'.
28273         * modules/unistr/u32-move-tests: New file.
28274         * tests/unistr/test-u32-move.c: New file.
28275
28276         Tests for module 'unistr/u16-move'.
28277         * modules/unistr/u16-move-tests: New file.
28278         * tests/unistr/test-u16-move.c: New file.
28279
28280         Tests for module 'unistr/u8-move'.
28281         * modules/unistr/u8-move-tests: New file.
28282         * tests/unistr/test-u8-move.c: New file.
28283         * tests/unistr/test-move.h: New file.
28284
28285         Tests for module 'unistr/u32-cpy'.
28286         * modules/unistr/u32-cpy-tests: New file.
28287         * tests/unistr/test-u32-cpy.c: New file.
28288
28289         Tests for module 'unistr/u16-cpy'.
28290         * modules/unistr/u16-cpy-tests: New file.
28291         * tests/unistr/test-u16-cpy.c: New file.
28292
28293         Tests for module 'unistr/u8-cpy'.
28294         * modules/unistr/u8-cpy-tests: New file.
28295         * tests/unistr/test-u8-cpy.c: New file.
28296         * tests/unistr/test-cpy.h: New file.
28297
28298 2010-01-09  Bruno Haible  <bruno@clisp.org>
28299
28300         Tests for module 'unistr/u32-uctomb'.
28301         * modules/unistr/u32-uctomb-tests: New file.
28302         * tests/unistr/test-u32-uctomb.c: New file.
28303
28304         Tests for module 'unistr/u16-uctomb'.
28305         * modules/unistr/u16-uctomb-tests: New file.
28306         * tests/unistr/test-u16-uctomb.c: New file.
28307
28308         Tests for module 'unistr/u8-uctomb'.
28309         * modules/unistr/u8-uctomb-tests: New file.
28310         * tests/unistr/test-u8-uctomb.c: New file.
28311
28312         Tests for module 'unistr/u32-mbtoucr'.
28313         * modules/unistr/u32-mbtoucr-tests: New file.
28314         * tests/unistr/test-u32-mbtoucr.c: New file.
28315
28316         Tests for module 'unistr/u16-mbtoucr'.
28317         * modules/unistr/u16-mbtoucr-tests: New file.
28318         * tests/unistr/test-u16-mbtoucr.c: New file.
28319
28320         Tests for module 'unistr/u8-mbtoucr'.
28321         * modules/unistr/u8-mbtoucr-tests: New file.
28322         * tests/unistr/test-u8-mbtoucr.c: New file.
28323
28324         Tests for module 'unistr/u32-mbtouc'.
28325         * modules/unistr/u32-mbtouc-tests: New file.
28326         * tests/unistr/test-u32-mbtouc.c: New file.
28327
28328         Tests for module 'unistr/u16-mbtouc'.
28329         * modules/unistr/u16-mbtouc-tests: New file.
28330         * tests/unistr/test-u16-mbtouc.c: New file.
28331
28332         Tests for module 'unistr/u8-mbtouc'.
28333         * modules/unistr/u8-mbtouc-tests: New file.
28334         * tests/unistr/test-u8-mbtouc.c: New file.
28335
28336         Tests for module 'unistr/u32-mbtouc-unsafe'.
28337         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
28338         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
28339         * tests/unistr/test-u32-mbtouc.h: New file.
28340
28341         Tests for module 'unistr/u16-mbtouc-unsafe'.
28342         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
28343         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
28344         * tests/unistr/test-u16-mbtouc.h: New file.
28345
28346         Tests for module 'unistr/u8-mbtouc-unsafe'.
28347         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
28348         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
28349         * tests/unistr/test-u8-mbtouc.h: New file.
28350
28351         Tests for module 'unistr/u32-mblen'.
28352         * modules/unistr/u32-mblen-tests: New file.
28353         * tests/unistr/test-u32-mblen.c: New file.
28354
28355         Tests for module 'unistr/u16-mblen'.
28356         * modules/unistr/u16-mblen-tests: New file.
28357         * tests/unistr/test-u16-mblen.c: New file.
28358
28359         Tests for module 'unistr/u8-mblen'.
28360         * modules/unistr/u8-mblen-tests: New file.
28361         * tests/unistr/test-u8-mblen.c: New file.
28362
28363         Tests for module 'unistr/u32-to-u16'.
28364         * modules/unistr/u32-to-u16-tests: New file.
28365         * tests/unistr/test-u32-to-u16.c: New file.
28366
28367         Tests for module 'unistr/u32-to-u8'.
28368         * modules/unistr/u32-to-u8-tests: New file.
28369         * tests/unistr/test-u32-to-u8.c: New file.
28370
28371         Tests for module 'unistr/u16-to-u32'.
28372         * modules/unistr/u16-to-u32-tests: New file.
28373         * tests/unistr/test-u16-to-u32.c: New file.
28374
28375         Tests for module 'unistr/u16-to-u8'.
28376         * modules/unistr/u16-to-u8-tests: New file.
28377         * tests/unistr/test-u16-to-u8.c: New file.
28378
28379         Tests for module 'unistr/u8-to-u32'.
28380         * modules/unistr/u8-to-u32-tests: New file.
28381         * tests/unistr/test-u8-to-u32.c: New file.
28382
28383         Tests for module 'unistr/u8-to-u16'.
28384         * modules/unistr/u8-to-u16-tests: New file.
28385         * tests/unistr/test-u8-to-u16.c: New file.
28386
28387         Tests for module 'unistr/u32-check'.
28388         * modules/unistr/u32-check-tests: New file.
28389         * tests/unistr/test-u32-check.c: New file.
28390
28391         Tests for module 'unistr/u16-check'.
28392         * modules/unistr/u16-check-tests: New file.
28393         * tests/unistr/test-u16-check.c: New file.
28394
28395         Tests for module 'unistr/u8-check'.
28396         * modules/unistr/u8-check-tests: New file.
28397         * tests/unistr/test-u8-check.c: New file.
28398
28399         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
28400         (category_equals): New function.
28401         (main): Add more tests.
28402         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
28403
28404         * tests/unictype/test-bidi_byname.c (main): Add more tests.
28405
28406 2010-01-10  Bruno Haible  <bruno@clisp.org>
28407
28408         unistr/u*-strcoll: Try harder to distinguish different strings.
28409         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
28410         compare s1 and s2 to see if they are different.
28411
28412 2010-01-10  Bruno Haible  <bruno@clisp.org>
28413
28414         unistr/u*-stpncpy: Fix the return value.
28415         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
28416         description of the return value consistent with stpncpy in glibc.
28417         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
28418         written non-NUL unit.
28419
28420 2010-01-10  Bruno Haible  <bruno@clisp.org>
28421
28422         unistr/u*-next: Add missing dependencies.
28423         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
28424         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
28425         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
28426
28427 2010-01-10  Bruno Haible  <bruno@clisp.org>
28428
28429         unistr/u8-mbsnlen: Fix return value for incomplete character.
28430         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
28431         u8_mblen.
28432         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
28433         Remove unistr/u8-mblen.
28434         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
28435         u16_mblen.
28436         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
28437         Remove unistr/u16-mblen.
28438
28439 2010-01-10  Bruno Haible  <bruno@clisp.org>
28440
28441         wchar: Fix compilation error when <wchar.h> is used from coreutils.
28442         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
28443         Reported by Brian Gough <bjg@gnu.org> and
28444         Chris Clayton <chris2553@googlemail.com> via
28445         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
28446
28447 2010-01-09  Bruno Haible  <bruno@clisp.org>
28448
28449         unistr/u16-to-u32: Reject invalid input.
28450         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
28451         u16_mbtouc.
28452         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
28453         Remove unistr/u16-mbtouc.
28454
28455         unistr/u16-to-u8: Reject invalid input.
28456         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
28457         u16_mbtouc.
28458         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
28459         Remove unistr/u16-mbtouc.
28460
28461         unistr/u8-to-u32: Reject invalid input.
28462         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
28463         u8_mbtouc.
28464         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
28465         Remove unistr/u8-mbtouc.
28466
28467         unistr/u8-to-u16: Reject invalid input.
28468         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
28469         u8_mbtouc.
28470         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
28471         Remove unistr/u8-mbtouc.
28472
28473 2010-01-09  Bruno Haible  <bruno@clisp.org>
28474
28475         Tests for module 'getlogin'.
28476         * modules/getlogin-tests: New file.
28477         * tests/test-getlogin.c: New file.
28478
28479         New module 'getlogin'.
28480         * lib/unistd.in.h (getlogin): New declaration.
28481         * lib/getlogin.c: New file.
28482         * m4/getlogin.m4: New file.
28483         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
28484         HAVE_GETLOGIN.
28485         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
28486         HAVE_GETLOGIN.
28487         * modules/getlogin: New file.
28488         * doc/posix-functions/getlogin.texi: Mention the new module.
28489         Reported by John W. Eaton <jwe@gnu.org>.
28490
28491 2010-01-09  Bruno Haible  <bruno@clisp.org>
28492
28493         getlogin_r: Support for native Windows.
28494         * lib/getlogin_r.c: Include <windows.h>
28495         (getlogin_r): Implement for native Windows.
28496         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
28497         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
28498         via John W. Eaton <jwe@gnu.org>.
28499
28500 2010-01-09  Bruno Haible  <bruno@clisp.org>
28501
28502         getlogin_r: Small fixes.
28503         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
28504         succeeds.
28505         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
28506         before testing whether getlogin_r is declared. No need to set
28507         HAVE_DECL_GETLOGIN_R to 1.
28508         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
28509
28510 2010-01-09  Bruno Haible  <bruno@clisp.org>
28511
28512         * lib/unistd.in.h (getlogin_r): Add comment.
28513
28514 2010-01-09  Bruno Haible  <bruno@clisp.org>
28515
28516         Tests for module 'getlogin_r'.
28517         * modules/getlogin_r-tests: New file.
28518         * tests/test-getlogin_r.c: New file.
28519
28520 2010-01-09  Jim Meyering  <meyering@redhat.com>
28521
28522         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
28523         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
28524         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
28525
28526 2010-01-08  Simon Josefsson  <simon@josefsson.org>
28527
28528         * lib/dup2.c (rpl_dup2): Improve comment.
28529
28530 2010-01-08  Eric Blake  <ebb9@byu.net>
28531
28532         maint.mk: allow packages to add makefile @@ exceptions
28533         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
28534         (sc_makefile_check): Rename...
28535         (sc_makefile_at_at_check): ...to this, and use hook.
28536
28537         dup2: work around mingw bug
28538         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
28539         Reported by Simon Josefsson.
28540
28541 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
28542
28543         glob: Fix C++ compilation.
28544         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
28545         C++.
28546
28547 2010-01-07  Bruno Haible  <bruno@clisp.org>
28548
28549         Fix indentation of wctype.in.h, broken since 2007-01-06.
28550         * lib/wctype.in.h: Fix indentation of preprocessor directives.
28551
28552 2010-01-07  Bruno Haible  <bruno@clisp.org>
28553
28554         mbslen: Avoid collision with system function.
28555         * lib/string.in.h [MirBSD]: Include <wchar.h>.
28556         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
28557         * m4/mbslen.m4: New file.
28558         * modules/mbslen (Files): Add it.
28559         (configure.ac): Invoke gl_MBSLEN.
28560         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
28561         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
28562         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
28563         via Ian Beckwith <ianb@erislabs.net>.
28564
28565 2010-01-07  Bruno Haible  <bruno@clisp.org>
28566
28567         dirent: Document the last fix.
28568         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
28569
28570 2010-01-07  Bruno Haible  <bruno@clisp.org>
28571
28572         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
28573         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
28574         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
28575         va_list are defined.
28576         * doc/posix-headers/stdio.texi: Document the bug of missing types.
28577         Reported by Eric Blake.
28578
28579 2010-01-07  Bruno Haible  <bruno@clisp.org>
28580
28581         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
28582         * modules/xlist (Depends-on): Add 'list',
28583         * modules/xoset (Depends-on): Add 'oset'.
28584         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
28585
28586 2010-01-07  Bruno Haible  <bruno@clisp.org>
28587
28588         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
28589         * doc/posix-functions/strncasecmp.texi: Likewise.
28590
28591 2010-01-07  Bruno Haible  <bruno@clisp.org>
28592
28593         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
28594
28595 2010-01-07  John W. Eaton  <jwe@octave.org>
28596
28597         wctype: allow C++ use
28598         * lib/wctype.in.h: Add extern "C" block for C++.
28599
28600 2010-01-06  Eric Blake  <ebb9@byu.net>
28601
28602         maint.mk: detect incorrect GFDL usage
28603         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
28604
28605 2010-01-06  Jim Meyering  <meyering@redhat.com>
28606         and Eric Blake  <ebb9@byu.net>
28607
28608         maint.mk: ignore multi-line copyright in NEWS
28609         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
28610
28611 2010-01-06  Eric Blake  <ebb9@byu.net>
28612
28613         select: add missing dependency
28614         * modules/select-tests (Depends-on): Move sockets dependency...
28615         * modules/select (Depends-on): ...here.
28616         Reported by Ian Beckwith.
28617
28618         doc: regenerate INSTALL
28619         * doc/INSTALL: Reflect recent autoconf update.
28620         * doc/INSTALL.ISO: Likewise.
28621         * doc/INSTALL.UTF-8: Likewise.
28622
28623         pread: fix compilation on glibc
28624         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
28625         Reported by Ralf Wildenhues.
28626
28627         dirent: fix test failure
28628         * lib/dirent.in.h (includes): Guarantee ino_t.
28629         Reported by Ralf Wildenhues.
28630
28631 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
28632
28633         linkat, renameat: avoid bad free
28634         * lib/at-func2.c (at_func2): Fix typo.
28635         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
28636
28637 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28638
28639         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
28640         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
28641         to avoid failure of symlink test later.
28642
28643 2010-01-06  Eric Blake  <ebb9@byu.net>
28644
28645         stdio, unistd: guarantee ssize_t
28646         * lib/unistd.in.h (includes): Ensure that types required by POSIX
28647         2008 are exposed when needed.
28648         * lib/stdio.in.h (includes): Likewise.
28649         Reported by Ralf Wildenhues.
28650
28651 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
28652
28653         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
28654         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
28655         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
28656
28657 2010-01-06  Jim Meyering  <meyering@redhat.com>
28658
28659         readtokens: this module *does* require xalloc.h
28660         It uses only functions that were omitted by the old syntax-check rule.
28661         * lib/readtokens.c: Include "xalloc.h" once again.
28662         * modules/readtokens (Depends-on): Add xalloc.
28663         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
28664
28665 2010-01-05  Eric Blake  <ebb9@byu.net>
28666
28667         maint: support 'make announcement' from a VPATH build
28668         * top/maint.mk (announcement): Look for correct NEWS file.
28669
28670 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
28671
28672         utimens (fdutimens): ignore a negative FD, per contract
28673         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
28674         when we have a valid file descriptor.  Otherwise, using a brand
28675         new glibc (with just-patched futimens that now fails with EBADF)
28676         would cause this function to fail with ENOSYS.
28677         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
28678         See also http://bugzilla.redhat.com/552320.
28679
28680 2010-01-05  Eric Blake  <ebb9@byu.net>
28681
28682         strcase: document what it provides
28683         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
28684         gnulib module.
28685         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
28686         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
28687
28688 2010-01-05  Jim Meyering  <meyering@redhat.com>
28689
28690         maint: remove useless inclusions of "xalloc.h"
28691         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
28692         * lib/readtokens.c: Likewise.
28693         * lib/same.c: Likewise.
28694         * modules/getloadavg (Depends-on): Remove xalloc.
28695         * modules/readtokens: Likewise.
28696         * modules/same: Likewise.
28697
28698         maint.mk: include 4 more function names in alloca.h-checking regexp
28699         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
28700         regexp.  Before, we would give a false-positive (saying alloca.h
28701         is included unnecessarily) when the only uses involved omitted symbols.
28702
28703         xalloc.h: use consistent formatting
28704         * lib/xalloc.h: Move declarations to start in the first column.
28705
28706 2010-01-05  Eric Blake  <ebb9@byu.net>
28707
28708         mkdir: avoid xalloc
28709         * lib/mkdir.c (includes): Drop unused header.
28710         Reported by John W. Eaton.
28711
28712 2010-01-04  Jim Meyering  <meyering@redhat.com>
28713
28714         nl_langinfo: avoid configure-time syntax error
28715         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
28716         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
28717         the empty string.  Don't let that provoke a shell syntax error.
28718
28719         regcomp, regexec, fnmatch: avoid array bounds read error
28720         * lib/regcomp.c (build_equiv_class): From glibc:
28721         Use only the low 24 bits of a findidx return value as an index
28722         into the weights array.  Patch by Ulrich Drepper:
28723         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
28724         * lib/regexec.c (check_node_accept_bytes): Likewise.
28725         * lib/fnmatch_loop.c (FCT): Likewise.
28726
28727         regcomp: skip collseq lookup when there are no rules
28728         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
28729         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
28730
28731         regcomp: recognize ill-formed { } expressions
28732         * lib/regcomp.c (parse_dup_op): From glibc:
28733         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
28734
28735         regcomp: fix typo in comment
28736         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
28737         s/satisfy/satisfies/.
28738
28739         regcomp: sync from glibc: remove dead store
28740         * lib/regcomp.c (duplicate_node_closure): Remove useless
28741         search_duplicated_node call and dead store.
28742
28743         regcomp: sync from glibc; always use nl_langinfo
28744         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
28745         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
28746         * modules/regex (Depends-on): Add nl_langinfo.
28747
28748 2010-01-04  Eric Blake  <ebb9@byu.net>
28749
28750         fdopendir: fix configure test
28751         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
28752
28753 2010-01-01  Bruno Haible  <bruno@clisp.org>
28754
28755         wchar: Remove unused configure check.
28756         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
28757
28758 2010-01-01  Eric Blake  <ebb9@byu.net>
28759
28760         headers: make check of system header explicit
28761         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
28762         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
28763         ourselves.
28764         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
28765         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
28766         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
28767         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
28768         internals.
28769         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
28770         missing.
28771         Suggested by Bruno Haible.
28772
28773 2010-01-01  Jim Meyering  <meyering@redhat.com>
28774
28775         ChangeLog: tweak to eliminate unnecessary copyright line
28776         * ChangeLog: Remove a copyright line that was mistakenly updated
28777         by today's update-copyright run.  Reported by Eric Blake.
28778
28779         test-update-copyright: don't let envvar setting cause test failure
28780         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
28781
28782 2010-01-01  Bruno Haible  <bruno@clisp.org>
28783
28784         localename: Avoid gcc warning.
28785         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
28786         function if it is not used.
28787
28788 2010-01-01  Jim Meyering  <meyering@redhat.com>
28789
28790         update nearly all FSF copyright year lists to include 2010
28791         Use the same procedure as for 2009, outlined in
28792         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
28793
28794         version-etc: set COPYRIGHT_YEAR to 2010
28795         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
28796
28797 2009-12-31  Eric Blake  <ebb9@byu.net>
28798
28799         doc: correct availability of cygwin 1.5.x getopt
28800         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
28801         variables.
28802         * doc/posix-functions/opterr.texi (opterr): Likewise.
28803         * doc/posix-functions/optind.texi (optind): Likewise.
28804         * doc/posix-functions/optopt.texi (optopt): Likewise.
28805         * doc/posix-functions/tzname.texi (tzname): Likewise.
28806
28807         openat: update maintainer
28808         * modules/openat (Maintainer): Add myself.
28809
28810         utimens: avoid shadowing warning
28811         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
28812         buffers into one, to avoid shadowing, as well as avoiding a
28813         redundant stat.
28814         Reported by Jim Meyering.
28815
28816         test-dup2: avoid compiler warning
28817         * tests/test-dup2.c (is_inheritable): Only define if used.
28818
28819 2010-01-01  Bruno Haible  <bruno@clisp.org>
28820
28821         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
28822         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
28823         defined, use wctomb instead of wcrtomb.
28824
28825 2010-01-01  Bruno Haible  <bruno@clisp.org>
28826
28827         iconv: Reject native Solaris iconv.
28828         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
28829         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
28830
28831 2009-12-31  Bruno Haible  <bruno@clisp.org>
28832
28833         * tests/test-signal.c (main): Remove test of 'SIG'.
28834
28835 2009-12-31  Bruno Haible  <bruno@clisp.org>
28836
28837         spawn: Fix incomplete fix.
28838         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
28839         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
28840         warnings for GNULIB_POSIXCHECK again.
28841         Reported by Eric Blake.
28842
28843 2009-12-31  Bruno Haible  <bruno@clisp.org>
28844
28845         Avoid namespace pollution on glibc systems.
28846         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
28847         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
28848         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
28849         glibc systems.
28850
28851 2009-12-31  Bruno Haible  <bruno@clisp.org>
28852
28853         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
28854         (gl_REPLACE_WCHAR_H): Turn into a no-op.
28855         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
28856         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
28857         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
28858         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
28859         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
28860
28861 2009-12-31  Bruno Haible  <bruno@clisp.org>
28862
28863         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
28864         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
28865         afterwards.
28866
28867 2009-12-31  Bruno Haible  <bruno@clisp.org>
28868
28869         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
28870         SYS_UTSNAME_H.
28871
28872 2009-12-31  Bruno Haible  <bruno@clisp.org>
28873
28874         spawn: Fix misapplied patch.
28875         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
28876         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
28877         warnings for GNULIB_POSIXCHECK.
28878
28879 2009-12-31  Bruno Haible  <bruno@clisp.org>
28880
28881         times: Update after sys_times changed.
28882         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
28883         * modules/times (Files): Add it.
28884         (configure.ac): Invoke gl_FUNC_TIMES.
28885
28886 2009-12-31  Bruno Haible  <bruno@clisp.org>
28887
28888         Use AC_C_INLINE where necessary.
28889         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
28890         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
28891         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
28892         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
28893         * m4/mbfile.m4 (gl_MBFILE): Likewise.
28894         * m4/mbiter.m4 (gl_MBITER): Likewise.
28895         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
28896         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
28897         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
28898         * modules/u64 (configure.ac): Likewise.
28899
28900 2009-12-31  Bruno Haible  <bruno@clisp.org>
28901
28902         Use AC_C_INLINE instead of module 'inline' where possible.
28903         * modules/inline (Description): Clarify purpose.
28904         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
28905         * modules/count-one-bits (Depends-on): Remove inline.
28906         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
28907         * modules/openat (Depends-on): Remove inline.
28908         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
28909         instead of depending on module 'inline'.
28910         * modules/filevercmp (Depends-on, configure.ac): Likewise.
28911         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
28912         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
28913         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
28914         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
28915         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
28916         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
28917         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
28918         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
28919         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
28920         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
28921         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
28922         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
28923         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
28924         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
28925         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
28926         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
28927         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
28928         Likewise.
28929         * modules/unictype/property-ascii-hex-digit (Depends-on,
28930         configure.ac): Likewise.
28931         * modules/unictype/property-bidi-arabic-digit (Depends-on,
28932         configure.ac): Likewise.
28933         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
28934         configure.ac): Likewise.
28935         * modules/unictype/property-bidi-block-separator (Depends-on,
28936         configure.ac): Likewise.
28937         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
28938         configure.ac): Likewise.
28939         * modules/unictype/property-bidi-common-separator (Depends-on,
28940         configure.ac): Likewise.
28941         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
28942         Likewise.
28943         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
28944         configure.ac): Likewise.
28945         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
28946         configure.ac): Likewise.
28947         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
28948         configure.ac): Likewise.
28949         * modules/unictype/property-bidi-european-digit (Depends-on,
28950         configure.ac): Likewise.
28951         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
28952         configure.ac): Likewise.
28953         * modules/unictype/property-bidi-left-to-right (Depends-on,
28954         configure.ac): Likewise.
28955         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
28956         configure.ac): Likewise.
28957         * modules/unictype/property-bidi-other-neutral (Depends-on,
28958         configure.ac): Likewise.
28959         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
28960         Likewise.
28961         * modules/unictype/property-bidi-segment-separator (Depends-on,
28962         configure.ac): Likewise.
28963         * modules/unictype/property-bidi-whitespace (Depends-on,
28964         configure.ac): Likewise.
28965         * modules/unictype/property-combining (Depends-on, configure.ac):
28966         Likewise.
28967         * modules/unictype/property-composite (Depends-on, configure.ac):
28968         Likewise.
28969         * modules/unictype/property-currency-symbol (Depends-on,
28970         configure.ac): Likewise.
28971         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
28972         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
28973         Likewise.
28974         * modules/unictype/property-default-ignorable-code-point (Depends-on,
28975         configure.ac): Likewise.
28976         * modules/unictype/property-deprecated (Depends-on, configure.ac):
28977         Likewise.
28978         * modules/unictype/property-diacritic (Depends-on, configure.ac):
28979         Likewise.
28980         * modules/unictype/property-extender (Depends-on, configure.ac):
28981         Likewise.
28982         * modules/unictype/property-format-control (Depends-on, configure.ac):
28983         Likewise.
28984         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
28985         Likewise.
28986         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
28987         Likewise.
28988         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
28989         Likewise.
28990         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
28991         Likewise.
28992         * modules/unictype/property-hyphen (Depends-on, configure.ac):
28993         Likewise.
28994         * modules/unictype/property-id-continue (Depends-on, configure.ac):
28995         Likewise.
28996         * modules/unictype/property-id-start (Depends-on, configure.ac):
28997         Likewise.
28998         * modules/unictype/property-ideographic (Depends-on, configure.ac):
28999         Likewise.
29000         * modules/unictype/property-ids-binary-operator (Depends-on,
29001         configure.ac): Likewise.
29002         * modules/unictype/property-ids-trinary-operator (Depends-on,
29003         configure.ac): Likewise.
29004         * modules/unictype/property-ignorable-control (Depends-on,
29005         configure.ac): Likewise.
29006         * modules/unictype/property-iso-control (Depends-on, configure.ac):
29007         Likewise.
29008         * modules/unictype/property-join-control (Depends-on, configure.ac):
29009         Likewise.
29010         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
29011         Likewise.
29012         * modules/unictype/property-line-separator (Depends-on, configure.ac):
29013         Likewise.
29014         * modules/unictype/property-logical-order-exception (Depends-on,
29015         configure.ac): Likewise.
29016         * modules/unictype/property-lowercase (Depends-on, configure.ac):
29017         Likewise.
29018         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
29019         * modules/unictype/property-non-break (Depends-on, configure.ac):
29020         Likewise.
29021         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
29022         Likewise.
29023         * modules/unictype/property-numeric (Depends-on, configure.ac):
29024         Likewise.
29025         * modules/unictype/property-other-alphabetic (Depends-on,
29026         configure.ac): Likewise.
29027         * modules/unictype/property-other-default-ignorable-code-point
29028         (Depends-on, configure.ac): Likewise.
29029         * modules/unictype/property-other-grapheme-extend (Depends-on,
29030         configure.ac): Likewise.
29031         * modules/unictype/property-other-id-continue (Depends-on,
29032         configure.ac): Likewise.
29033         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
29034         Likewise.
29035         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
29036         Likewise.
29037         * modules/unictype/property-other-math (Depends-on, configure.ac):
29038         Likewise.
29039         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
29040         Likewise.
29041         * modules/unictype/property-paired-punctuation (Depends-on,
29042         configure.ac): Likewise.
29043         * modules/unictype/property-paragraph-separator (Depends-on,
29044         configure.ac): Likewise.
29045         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
29046         Likewise.
29047         * modules/unictype/property-pattern-white-space (Depends-on,
29048         configure.ac): Likewise.
29049         * modules/unictype/property-private-use (Depends-on, configure.ac):
29050         Likewise.
29051         * modules/unictype/property-punctuation (Depends-on, configure.ac):
29052         Likewise.
29053         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
29054         Likewise.
29055         * modules/unictype/property-radical (Depends-on, configure.ac):
29056         Likewise.
29057         * modules/unictype/property-sentence-terminal (Depends-on,
29058         configure.ac): Likewise.
29059         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
29060         Likewise.
29061         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
29062         * modules/unictype/property-terminal-punctuation (Depends-on,
29063         configure.ac): Likewise.
29064         * modules/unictype/property-titlecase (Depends-on, configure.ac):
29065         Likewise.
29066         * modules/unictype/property-unassigned-code-value (Depends-on,
29067         configure.ac): Likewise.
29068         * modules/unictype/property-unified-ideograph (Depends-on,
29069         configure.ac): Likewise.
29070         * modules/unictype/property-uppercase (Depends-on, configure.ac):
29071         Likewise.
29072         * modules/unictype/property-variation-selector (Depends-on,
29073         configure.ac): Likewise.
29074         * modules/unictype/property-white-space (Depends-on, configure.ac):
29075         Likewise.
29076         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
29077         Likewise.
29078         * modules/unictype/property-xid-start (Depends-on, configure.ac):
29079         Likewise.
29080         * modules/unictype/property-zero-width (Depends-on, configure.ac):
29081         Likewise.
29082         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
29083         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
29084         Likewise.
29085
29086 2009-12-31  Bruno Haible  <bruno@clisp.org>
29087
29088         Remove unnecessary AC_C_INLINE invocation.
29089         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
29090         since 2009-08-21.
29091
29092 2009-12-31  Jim Meyering  <meyering@redhat.com>
29093
29094         maint.mk: don't require explicit gpg_key_ID in cfg.mk
29095         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
29096         With this change, we can all remove the gpg_key_ID = ... definition
29097         from our respective cfg.mk files.
29098
29099         maint.mk: create announcement template in ~/, not in /tmp
29100         * top/maint.mk (emit_upload_commands): Adjust.
29101         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
29102         Remove temporary file, .ci-msg.
29103
29104 2009-12-31  Eric Blake  <ebb9@byu.net>
29105
29106         link-warning: always build headers with link warnings
29107         * modules/arpa_inet (Makefile.am): Always build replacement
29108         header.
29109         * modules/ctype (Makefile.am): Likewise.
29110         * modules/dirent (Makefile.am): Likewise.
29111         * modules/inttypes (Makefile.am): Likewise.
29112         * modules/langinfo (Makefile.am): Likewise.
29113         * modules/locale (Makefile.am): Likewise.
29114         * modules/spawn (Makefile.am): Likewise.
29115         * modules/sys_file (Makefile.am): Likewise.
29116         * modules/sys_ioctl (Makefile.am): Likewise.
29117         * modules/sys_select (Makefile.am): Likewise.
29118         * modules/sys_socket (Makefile.am): Likewise.
29119         * modules/sys_times (Makefile.am): Likewise.
29120         * modules/sys_utsname (Makefile.am): Likewise.
29121         * modules/sys_wait (Makefile.am): Likewise.
29122         * modules/wchar (Makefile.am): Likewise.
29123         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
29124         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
29125         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
29126         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
29127         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
29128         Likewise.
29129         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
29130         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
29131         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
29132         Likewise.
29133         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
29134         Likewise.
29135         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
29136         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
29137         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
29138         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
29139         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
29140         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
29141         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
29142         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
29143         (gl_WCHAR_H_DEFAULTS): Likewise.
29144
29145 2009-12-31  Eric Blake  <ebb9@byu.net>
29146
29147         signal, spawn: use link warnings
29148         * lib/signal.in.h (sigset_t): Make unconditional.
29149         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
29150         (sigpending, sigprocmask, sigaction): Add link warnings.
29151         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
29152         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
29153         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
29154         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
29155         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
29156         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
29157         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
29158         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
29159         (posix_spawn_file_actions_destroy)
29160         (posix_spawn_file_actions_addopen)
29161         (posix_spawn_file_actions_addclose)
29162         (posix_spawn_file_actions_adddup2): Likewise.
29163         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
29164         * tests/test-signal.c (main): Enhance test.
29165
29166         spawn: improve wrapper support
29167         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
29168         (gl_SPAWN_H_DEFAULTS): New defaults.
29169         * modules/spawn (Makefile.am): Substitute them.
29170         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
29171         Only declare if missing or broken.
29172
29173         sys_times, sys_utsname: use include_next
29174         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
29175         header.
29176         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
29177         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
29178         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
29179         * modules/sys_times (Depends-on): Add include_next.
29180         (Makefile.am): Substitute additional values.
29181         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
29182         * lib/sys_times.in.h (includes): Include native header, if
29183         available.
29184         * lib/sys_utsname.in.h (includes): Likewise.
29185         * tests/test-sys_times.c (main): Enhance test.
29186
29187         fdutimensat: revert prior patch
29188         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
29189         utimens.h.
29190         Reported by Bruno Haible.
29191
29192 2009-12-30  Eric Blake  <ebb9@byu.net>
29193
29194         sys_wait: drop link-warning dependency
29195         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
29196         link-warning efforts.
29197         * lib/sys_wait.in.h: Likewise.
29198
29199         fdutimensat: remove bogus dependency
29200         * modules/fdutimensat (Depends-on): Drop inline.
29201
29202         unistd: fix typo
29203         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
29204
29205 2009-12-30  Bruno Haible  <bruno@clisp.org>
29206
29207         Fix compilation error with Solaris cc.
29208         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
29209         * lib/unicase/u16-is-invariant.c: Likewise.
29210         * lib/unicase/u32-is-invariant.c: Likewise.
29211         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
29212
29213 2009-12-30  Bruno Haible  <bruno@clisp.org>
29214
29215         Fix test crash.
29216         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
29217         locales.
29218         Reported by Simon Josefsson <simon@josefsson.org>.
29219
29220 2009-12-30  Bruno Haible  <bruno@clisp.org>
29221
29222         Fix compilation error on most platforms.
29223         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
29224         Reported by Simon Josefsson <simon@josefsson.org>
29225         and Nelson H. F. Beebe <beebe@math.utah.edu>.
29226
29227 2009-12-30  Eric Blake  <ebb9@byu.net>
29228
29229         futimens, utimensat: work around ntfs-3g bug
29230         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
29231         a ctime bug is present, and expand workaround to cover ntfs-3g.
29232         * lib/utimens.c (fdutimens, lutimens): Likewise.
29233         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
29234         (validate_timespec): Adjust return value.
29235         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
29236         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
29237         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
29238
29239 2009-12-29  Eric Blake  <ebb9@byu.net>
29240
29241         link-warning: make usage consistent
29242         * modules/ctype (Depends-on): Add link-warning.
29243         (Makefile.am): Update rules accordingly.
29244         * modules/langinfo (Depends-on, Makefile.am): Likewise.
29245         * modules/locale (Depends-on, Makefile.am): Likewise.
29246         * modules/sys_file (Makefile.am): Likewise.
29247         * modules/getopt-posix (Makefile.am): Delete unused link warning
29248         efforts.
29249         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
29250         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
29251         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
29252         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
29253
29254         stdio: remove unused variables
29255         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
29256         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
29257         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
29258
29259         tests: test more substitute headers
29260         * modules/ctype-tests: New file.
29261         * modules/dirent-tests: Likewise.
29262         * modules/spawn-tests: Likewise.
29263         * modules/sys_file-tests: Likewise.
29264         * modules/sys_ioctl-tests: Likewise.
29265         * modules/sys_wait-tests: Likewise.
29266         * tests/test-ctype.c: Likewise.
29267         * tests/test-dirent.c: Likewise.
29268         * tests/test-spawn.c: Likewise.
29269         * tests/test-sys_file.c: Likewise.
29270         * tests/test-sys_ioctl.c: Likewise.
29271         * tests/test-sys_wait.c: Likewise.
29272         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
29273         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
29274         whether or not flock is in use.
29275
29276         tests: remove License section from module
29277         * modules/arpa_inet-tests: Remove unneeded section.
29278         * modules/byteswap-tests: Likewise.
29279         * modules/ceilf-tests: Likewise.
29280         * modules/ceill-tests: Likewise.
29281         * modules/crypto/des-tests: Likewise.
29282         * modules/crypto/gc-arcfour-tests: Likewise.
29283         * modules/crypto/gc-arctwo-tests: Likewise.
29284         * modules/crypto/gc-des-tests: Likewise.
29285         * modules/crypto/gc-hmac-md5-tests: Likewise.
29286         * modules/crypto/gc-hmac-sha1-tests: Likewise.
29287         * modules/crypto/gc-md2-tests: Likewise.
29288         * modules/crypto/gc-md4-tests: Likewise.
29289         * modules/crypto/gc-md5-tests: Likewise.
29290         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
29291         * modules/crypto/gc-rijndael-tests: Likewise.
29292         * modules/crypto/gc-sha1-tests: Likewise.
29293         * modules/crypto/gc-tests: Likewise.
29294         * modules/crypto/md2-tests: Likewise.
29295         * modules/crypto/md4-tests: Likewise.
29296         * modules/fcntl-h-tests: Likewise.
29297         * modules/floorf-tests: Likewise.
29298         * modules/floorl-tests: Likewise.
29299         * modules/frexp-nolibm-tests: Likewise.
29300         * modules/frexp-tests: Likewise.
29301         * modules/frexpl-nolibm-tests: Likewise.
29302         * modules/frexpl-tests: Likewise.
29303         * modules/getaddrinfo-tests: Likewise.
29304         * modules/inttypes-tests: Likewise.
29305         * modules/isfinite-tests: Likewise.
29306         * modules/isinf-tests: Likewise.
29307         * modules/ldexpl-tests: Likewise.
29308         * modules/locale-tests: Likewise.
29309         * modules/math-tests: Likewise.
29310         * modules/netdb-tests: Likewise.
29311         * modules/netinet_in-tests: Likewise.
29312         * modules/printf-frexp-tests: Likewise.
29313         * modules/printf-frexpl-tests: Likewise.
29314         * modules/priv-set-tests: Likewise.
29315         * modules/random_r-tests: Likewise.
29316         * modules/round-tests: Likewise.
29317         * modules/roundf-tests: Likewise.
29318         * modules/roundl-tests: Likewise.
29319         * modules/search-tests: Likewise.
29320         * modules/select-tests: Likewise.
29321         * modules/signal-tests: Likewise.
29322         * modules/stdbool-tests: Likewise.
29323         * modules/stddef-tests: Likewise.
29324         * modules/stdint-tests: Likewise.
29325         * modules/stdio-tests: Likewise.
29326         * modules/stdlib-tests: Likewise.
29327         * modules/string-tests: Likewise.
29328         * modules/strings-tests: Likewise.
29329         * modules/sys_select-tests: Likewise.
29330         * modules/sys_socket-tests: Likewise.
29331         * modules/sys_stat-tests: Likewise.
29332         * modules/sys_time-tests: Likewise.
29333         * modules/sys_utsname-tests: Likewise.
29334         * modules/sysexits-tests: Likewise.
29335         * modules/time-tests: Likewise.
29336         * modules/trunc-tests: Likewise.
29337         * modules/truncf-tests: Likewise.
29338         * modules/truncl-tests: Likewise.
29339         * modules/tsearch-tests: Likewise.
29340         * modules/unistd-tests: Likewise.
29341         * modules/wchar-tests: Likewise.
29342         * modules/wctype-tests: Likewise.
29343
29344         tests: fix license on several tests
29345         * tests/test-des.c: Update to GPLv3+.
29346         * tests/test-flock.c: Likewise.
29347         * tests/test-fsync.c: Likewise.
29348         * tests/test-futimens.h: Likewise.
29349         * tests/test-gc-arcfour.c: Likewise.
29350         * tests/test-gc-arctwo.c: Likewise.
29351         * tests/test-gc-des.c: Likewise.
29352         * tests/test-gc-hmac-md5.c: Likewise.
29353         * tests/test-gc-hmac-sha1.c: Likewise.
29354         * tests/test-gc-md2.c: Likewise.
29355         * tests/test-gc-md4.c: Likewise.
29356         * tests/test-gc-md5.c: Likewise.
29357         * tests/test-gc-pbkdf2-sha1.c: Likewise.
29358         * tests/test-gc-rijndael.c: Likewise.
29359         * tests/test-gc-sha1.c: Likewise.
29360         * tests/test-gc.c: Likewise.
29361         * tests/test-getcwd.c: Likewise.
29362         * tests/test-link.c: Likewise.
29363         * tests/test-link.h: Likewise.
29364         * tests/test-lutimens.h: Likewise.
29365         * tests/test-md2.c: Likewise.
29366         * tests/test-md4.c: Likewise.
29367         * tests/test-mkdir.h: Likewise.
29368         * tests/test-rename.c: Likewise.
29369         * tests/test-rename.h: Likewise.
29370         * tests/test-safe-alloc.c: Likewise.
29371         * tests/test-utimens-common.h: Likewise.
29372         * tests/test-utimens.h: Likewise.
29373
29374         maint: sync license texts
29375         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
29376         * doc/gpl-3.0.texi: Revert copyright year update.
29377         * doc/lgpl-3.0.texi: Likewise.
29378
29379 2009-12-29  Jim Meyering  <meyering@redhat.com>
29380
29381         update nearly all FSF copyright year lists to include 2009
29382         The files named by the following are exempted:
29383             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
29384               test -f "$dst" && { echo "$dst"; continue; }
29385               test -d "$dst" || continue
29386               echo "$dst"/$(basename "$src")
29387             done > exempt
29388             git ls-files tests/unictype >> exempt
29389         In the remaining files, convert to all-interval notation if
29390         - there is already at least one year interval like 2000-2003
29391         - the file is maintained by me
29392         - the file is in lib/uni*/, where that style already prevails
29393         Otherwise, use update-copyright's default.
29394
29395 2009-12-29  Simon Josefsson  <simon@josefsson.org>
29396         and Eric Blake  <ebb9@byu.net>
29397
29398         tests: don't require debug system() to pass
29399         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
29400         * tests/test-rmdir.h (test_rmdir_func): Likewise.
29401         * tests/test-unlink.h (test_unlink_func): Likewise.
29402         * tests/test-fstatat.c (main): ...into callers.
29403         * tests/test-lstat.c (main): Likewise.
29404         * tests/test-rmdir.c (main): Likewise.
29405         * tests/test-unlink.c (main): Likewise.
29406         * tests/test-unlinkat.c (main): Likewise.
29407         * tests/test-areadlink-with-size.c (main): Don't require a
29408         debug-only system call to pass, aiding cross-testing to mingw.
29409         * tests/test-areadlink.c (main): Likewise.
29410         * tests/test-areadlinkat-with-size.c (main): Likewise.
29411         * tests/test-areadlinkat.c (main): Likewise.
29412         * tests/test-canonicalize-lgpl.c (main): Likewise.
29413         * tests/test-canonicalize.c (main): Likewise.
29414         * tests/test-chown.c (main): Likewise.
29415         * tests/test-fchownat.c (main): Likewise.
29416         * tests/test-lchown.c (main): Likewise.
29417         * tests/test-fdutimensat.c (main): Likewise.
29418         * tests/test-futimens.c (main): Likewise.
29419         * tests/test-link.c (main): Likewise.
29420         * tests/test-linkat.c (main): Likewise.
29421         * tests/test-mkdir.c (main): Likewise.
29422         * tests/test-mkdirat.c (main): Likewise.
29423         * tests/test-mkfifo.c (main): Likewise.
29424         * tests/test-mkfifoat.c (main): Likewise.
29425         * tests/test-mknod.c (main): Likewise.
29426         * tests/test-readlink.c (main): Likewise.
29427         * tests/test-remove.c (main): Likewise.
29428         * tests/test-rename.c (main): Likewise.
29429         * tests/test-renameat.c (main): Likewise.
29430         * tests/test-symlink.c (main): Likewise.
29431         * tests/test-symlinkat.c (main): Likewise.
29432         * tests/test-utimens.c (main): Likewise.
29433         * tests/test-utimensat.c (main): Likewise.
29434
29435 2009-12-29  Simon Josefsson  <simon@josefsson.org>
29436
29437         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
29438         on $(UNUSED_PARAMETER_H) to avoid build failure.
29439
29440 2009-12-28  Jim Meyering  <meyering@redhat.com>
29441
29442         update-copyright: you may specify a max. line length other than 72
29443         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
29444
29445         maint: use consistent FSF copyright line syntax
29446         * lib/posixtm.c: Add missing comma in FSF copyright line.
29447         * lib/posixtm.h: Likewise.
29448         * lib/getugroups.c: Add missing ", Inc.".
29449
29450         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
29451         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
29452         FSF copyright line.  Remove trailing blanks.
29453
29454 2009-12-28  Eric Blake  <ebb9@byu.net>
29455
29456         test-dup2: reduce dependencies
29457         * modules/cloexec (Configure.ac): Set witness.
29458         * modules/dup2-tests (Depends-on): Drop cloexec.
29459         * tests/test-dup2.c (main): Skip portion of test if cloexec module
29460         not present.
29461         Suggested by Bruno Haible.
29462
29463 2009-12-26  Bruno Haible  <bruno@clisp.org>
29464
29465         Remove an unneeded dependency.
29466         * modules/fseterr (Depends-on): Remove dup2.
29467
29468 2009-12-26  Eric Blake  <ebb9@byu.net>
29469
29470         tests: use macros.h in more places
29471         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
29472         (ASSERT_STREAM): Provide default of stderr.
29473         * tests/test-dirent-safer.c: Include macros.h, using alternate
29474         stream for assertions.
29475         * tests/test-dup-safer.c: Likewise.
29476         * tests/test-freopen-safer.c: Likewise.
29477         * tests/test-getopt.c: Likewise.
29478         * tests/test-openat-safer.c: Likewise.
29479         * tests/test-pipe.c: Likewise.
29480         * tests/test-popen-safer.c: Likewise.
29481         * modules/dirent-safer-tests (Files): Include macros.h.
29482         * modules/unistd-safer-tests (Files): Likewise.
29483         * modules/freopen-safer-tests (Files): Likewise.
29484         * modules/getopt-posix-tests (Files): Likewise.
29485         * modules/openat-safer-tests (Files): Likewise.
29486         * modules/pipe-tests (Files): Likewise.
29487
29488 2009-12-26  Bruno Haible  <bruno@clisp.org>
29489
29490         javacomp: Portability fix.
29491         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
29492         that it also works on Solaris.
29493
29494 2009-12-26  Bruno Haible  <bruno@clisp.org>
29495
29496         localename: Fix storage allocation of gl_locale_name_thread's result.
29497         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
29498         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
29499         all platforms that have 'uselocale'.
29500         (gl_locale_name_thread_unsafe): New function, extracted from
29501         gl_locale_name_thread.
29502         (gl_locale_name_thread): Call struniq on all platforms that have
29503         'uselocale'.
29504         * tests/test-localename.c (test_locale_name_thread): Check that the
29505         resulting strings are permanently allocated.
29506         * modules/localename-tests (Depends-on): Add strdup.
29507
29508 2009-12-26  Bruno Haible  <bruno@clisp.org>
29509
29510         * tests/test-localename.c (categories): Fill in the strings.
29511
29512 2009-12-26  Jim Meyering  <meyering@redhat.com>
29513
29514         isdir: complete the removal of m4/isdir.m4
29515         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
29516
29517         isdir: clean up, since at least grep still uses it
29518         * lib/isdir.c: Include "isdir.h".
29519         (S_ISDIR): Remove now-unneeded definition.
29520         * modules/isdir (Files): Add lib/isdir.h.
29521         * lib/isdir.h: New file, with declaration.
29522         * m4/isdir.m4: Remove file -- unneeded.
29523
29524 2009-12-25  Bruno Haible  <bruno@clisp.org>
29525
29526         selinux-h: Make generated .h files standalone.
29527         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
29528         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
29529         * lib/se-selinux.in.h: Likewise.
29530         * modules/selinux-h (Depends-on): Add unused-parameter.
29531         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
29532         selinux/selinux.h and selinux/context.h.
29533         Suggested by Eric Blake.
29534
29535 2009-12-25  Bruno Haible  <bruno@clisp.org>
29536
29537         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
29538         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
29539         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
29540         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
29541         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
29542
29543 2009-12-24  Bruno Haible  <bruno@clisp.org>
29544
29545         openat: Fix warning.
29546         * lib/openat-proc.c: Include <unistd.h>.
29547
29548 2009-12-24  Bruno Haible  <bruno@clisp.org>
29549
29550         New module 'unused-parameter'.
29551         * build-aux/unused-parameter.h: New file, extracted from earlier
29552         gnulib-common.m4.
29553         * modules/unused-parameter: New file.
29554         * lib/unistr.h: Include unused-parameter.h.
29555         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
29556         _GL_UNUSED.
29557         * modules/unistr/base (Depends-on): Add unused-parameter.
29558
29559 2009-12-24  Bruno Haible  <bruno@clisp.org>
29560
29561         Add missing dependencies to 'extensions' module.
29562         * m4/extensions.m4: Add comment.
29563         * modules/accept4 (Depends-on): Add extensions.
29564         * modules/dup3 (Depends-on): Likewise.
29565         * modules/fcntl (Depends-on): Likewise.
29566         * modules/futimens (Depends-on): Likewise.
29567         * modules/mknod (Depends-on): Likewise.
29568         * modules/pipe2 (Depends-on): Likewise.
29569         * modules/stat-time (Depends-on): Likewise.
29570         * modules/strcasestr-simple (Depends-on): Likewise.
29571         * modules/strsignal (Depends-on): Likewise.
29572         * modules/utimensat (Depends-on): Likewise.
29573         * modules/localcharset (Depends-on): Likewise. Needed because of
29574         gl_FCNTL_O_FLAGS.
29575         * modules/wcrtomb (Depends-on): Likewise. Needed because of
29576         AC_TYPE_MBSTATE_T.
29577         * modules/wcsnrtombs (Depends-on): Likewise.
29578         * modules/wcsrtombs (Depends-on): Likewise.
29579
29580 2009-12-24  Bruno Haible  <bruno@clisp.org>
29581
29582         binary-io: Avoid gcc warning due to SET_BINARY.
29583         * lib/binary-io.h (SET_BINARY): Cast the result to void.
29584         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
29585
29586 2009-12-24  Bruno Haible  <bruno@clisp.org>
29587
29588         Avoid future namespace pollution on glibc systems.
29589         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
29590         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
29591         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
29592         glibc systems.
29593
29594 2009-12-24  Bruno Haible  <bruno@clisp.org>
29595
29596         Refactor common macros used in tests.
29597         * tests/macros.h: New file.
29598         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
29599         and/or <stdlib.h>, if appropriate.
29600         (ASSERT, SIZEOF): Remove macros.
29601         * tests/test-areadlink-with-size.c: Likewise.
29602         * tests/test-areadlinkat.c: Likewise.
29603         * tests/test-areadlinkat-with-size.c: Likewise.
29604         * tests/test-argmatch.c: Likewise.
29605         * tests/test-argv-iter.c: Likewise.
29606         * tests/test-array-mergesort.c: Likewise.
29607         * tests/test-array_list.c: Likewise.
29608         * tests/test-array_oset.c: Likewise.
29609         * tests/test-avltree_list.c: Likewise.
29610         * tests/test-avltree_oset.c: Likewise.
29611         * tests/test-avltreehash_list.c: Likewise.
29612         * tests/test-base64.c: Likewise.
29613         * tests/test-binary-io.c: Likewise.
29614         * tests/test-bitrotate.c: Likewise.
29615         * tests/test-btowc.c: Likewise.
29616         * tests/test-byteswap.c: Likewise.
29617         * tests/test-c-ctype.c: Likewise.
29618         * tests/test-c-stack.c: Likewise.
29619         * tests/test-c-strcasecmp.c: Likewise.
29620         * tests/test-c-strcasestr.c: Likewise.
29621         * tests/test-c-strncasecmp.c: Likewise.
29622         * tests/test-c-strstr.c: Likewise.
29623         * tests/test-canonicalize-lgpl.c: Likewise.
29624         * tests/test-canonicalize.c: Likewise.
29625         * tests/test-carray_list.c: Likewise.
29626         * tests/test-ceilf1.c: Likewise.
29627         * tests/test-ceilf2.c: Likewise.
29628         * tests/test-ceill.c: Likewise.
29629         * tests/test-chown.c: Likewise.
29630         * tests/test-cloexec.c: Likewise.
29631         * tests/test-copy-acl.c: Likewise.
29632         * tests/test-copy-file.c: Likewise.
29633         * tests/test-count-one-bits.c: Likewise.
29634         * tests/test-dprintf-posix.c: Likewise.
29635         * tests/test-dup2.c: Likewise.
29636         * tests/test-dup3.c: Likewise.
29637         * tests/test-duplocale.c: Likewise.
29638         * tests/test-fbufmode.c: Likewise.
29639         * tests/test-fchdir.c: Likewise.
29640         * tests/test-fchownat.c: Likewise.
29641         * tests/test-fcntl-safer.c: Likewise.
29642         * tests/test-fcntl.c: Likewise.
29643         * tests/test-fdopendir.c: Likewise.
29644         * tests/test-fdutimensat.c: Likewise.
29645         * tests/test-fflush2.c: Likewise.
29646         * tests/test-file-has-acl.c: Likewise.
29647         * tests/test-filevercmp.c: Likewise.
29648         * tests/test-flock.c: Likewise.
29649         * tests/test-floorf1.c: Likewise.
29650         * tests/test-floorf2.c: Likewise.
29651         * tests/test-floorl.c: Likewise.
29652         * tests/test-fnmatch.c: Likewise.
29653         * tests/test-fopen.h: Likewise.
29654         * tests/test-fpending.c: Likewise.
29655         * tests/test-fprintf-posix.c: Likewise.
29656         * tests/test-fpurge.c: Likewise.
29657         * tests/test-freadable.c: Likewise.
29658         * tests/test-freadahead.c: Likewise.
29659         * tests/test-freading.c: Likewise.
29660         * tests/test-freadptr.c: Likewise.
29661         * tests/test-freadptr2.c: Likewise.
29662         * tests/test-freadseek.c: Likewise.
29663         * tests/test-freopen.c: Likewise.
29664         * tests/test-frexp.c: Likewise.
29665         * tests/test-frexpl.c: Likewise.
29666         * tests/test-fseek.c: Likewise.
29667         * tests/test-fseeko.c: Likewise.
29668         * tests/test-fstatat.c: Likewise.
29669         * tests/test-fstrcmp.c: Likewise.
29670         * tests/test-fsync.c: Likewise.
29671         * tests/test-ftell.c: Likewise.
29672         * tests/test-ftello.c: Likewise.
29673         * tests/test-func.c: Likewise.
29674         * tests/test-futimens.c: Likewise.
29675         * tests/test-fwritable.c: Likewise.
29676         * tests/test-fwriting.c: Likewise.
29677         * tests/test-getcwd.c: Likewise.
29678         * tests/test-getdate.c: Likewise.
29679         * tests/test-getdelim.c: Likewise.
29680         * tests/test-getdtablesize.c: Likewise.
29681         * tests/test-getgroups.c: Likewise.
29682         * tests/test-getline.c: Likewise.
29683         * tests/test-getndelim2.c: Likewise.
29684         * tests/test-glob.c: Likewise.
29685         * tests/test-hash.c: Likewise.
29686         * tests/test-i-ring.c: Likewise.
29687         * tests/test-iconv-utf.c: Likewise.
29688         * tests/test-iconv.c: Likewise.
29689         * tests/test-idpriv-drop.c: Likewise.
29690         * tests/test-idpriv-droptemp.c: Likewise.
29691         * tests/test-inet_ntop.c: Likewise.
29692         * tests/test-inet_pton.c: Likewise.
29693         * tests/test-isblank.c: Likewise.
29694         * tests/test-isfinite.c: Likewise.
29695         * tests/test-isinf.c: Likewise.
29696         * tests/test-isnan.c: Likewise.
29697         * tests/test-isnand.h: Likewise.
29698         * tests/test-isnanf.h: Likewise.
29699         * tests/test-isnanl.h: Likewise.
29700         * tests/test-lchown.c: Likewise.
29701         * tests/test-ldexpl.c: Likewise.
29702         * tests/test-link.c: Likewise.
29703         * tests/test-linkat.c: Likewise.
29704         * tests/test-linked_list.c: Likewise.
29705         * tests/test-linkedhash_list.c: Likewise.
29706         * tests/test-localename.c: Likewise.
29707         * tests/test-lseek.c: Likewise.
29708         * tests/test-lstat.c: Likewise.
29709         * tests/test-mbmemcasecmp.c: Likewise.
29710         * tests/test-mbmemcasecoll.c: Likewise.
29711         * tests/test-mbrtowc.c: Likewise.
29712         * tests/test-mbscasecmp.c: Likewise.
29713         * tests/test-mbscasestr1.c: Likewise.
29714         * tests/test-mbscasestr2.c: Likewise.
29715         * tests/test-mbscasestr3.c: Likewise.
29716         * tests/test-mbscasestr4.c: Likewise.
29717         * tests/test-mbschr.c: Likewise.
29718         * tests/test-mbscspn.c: Likewise.
29719         * tests/test-mbsinit.c: Likewise.
29720         * tests/test-mbsncasecmp.c: Likewise.
29721         * tests/test-mbsnrtowcs.c: Likewise.
29722         * tests/test-mbspbrk.c: Likewise.
29723         * tests/test-mbspcasecmp.c: Likewise.
29724         * tests/test-mbsrchr.c: Likewise.
29725         * tests/test-mbsrtowcs.c: Likewise.
29726         * tests/test-mbsspn.c: Likewise.
29727         * tests/test-mbsstr1.c: Likewise.
29728         * tests/test-mbsstr2.c: Likewise.
29729         * tests/test-mbsstr3.c: Likewise.
29730         * tests/test-memchr.c: Likewise.
29731         * tests/test-memchr2.c: Likewise.
29732         * tests/test-memcmp.c: Likewise.
29733         * tests/test-memmem.c: Likewise.
29734         * tests/test-memrchr.c: Likewise.
29735         * tests/test-mkdir.c: Likewise.
29736         * tests/test-mkdirat.c: Likewise.
29737         * tests/test-mkfifo.c: Likewise.
29738         * tests/test-mkfifoat.c: Likewise.
29739         * tests/test-mknod.c: Likewise.
29740         * tests/test-nanosleep.c: Likewise.
29741         * tests/test-nl_langinfo.c: Likewise.
29742         * tests/test-obstack-printf.c: Likewise.
29743         * tests/test-open.c: Likewise.
29744         * tests/test-openat.c: Likewise.
29745         * tests/test-pipe-filter-gi1.c: Likewise.
29746         * tests/test-pipe-filter-gi2-main.c: Likewise.
29747         * tests/test-pipe-filter-ii1.c: Likewise.
29748         * tests/test-pipe-filter-ii2-main.c: Likewise.
29749         * tests/test-pipe2.c: Likewise.
29750         * tests/test-popen.h: Likewise.
29751         * tests/test-posixtm.c: Likewise.
29752         * tests/test-pread.c: Likewise.
29753         * tests/test-printf-frexp.c: Likewise.
29754         * tests/test-printf-frexpl.c: Likewise.
29755         * tests/test-printf-posix.c: Likewise.
29756         * tests/test-priv-set.c: Likewise.
29757         * tests/test-quotearg.c: Likewise.
29758         * tests/test-random_r.c: Likewise.
29759         * tests/test-rawmemchr.c: Likewise.
29760         * tests/test-rbtree_list.c: Likewise.
29761         * tests/test-rbtree_oset.c: Likewise.
29762         * tests/test-rbtreehash_list.c: Likewise.
29763         * tests/test-readlink.c: Likewise.
29764         * tests/test-remove.c: Likewise.
29765         * tests/test-rename.c: Likewise.
29766         * tests/test-renameat.c: Likewise.
29767         * tests/test-rmdir.c: Likewise.
29768         * tests/test-round1.c: Likewise.
29769         * tests/test-roundf1.c: Likewise.
29770         * tests/test-roundl.c: Likewise.
29771         * tests/test-safe-alloc.c: Likewise.
29772         * tests/test-sameacls.c: Likewise.
29773         * tests/test-set-mode-acl.c: Likewise.
29774         * tests/test-setenv.c: Likewise.
29775         * tests/test-sigaction.c: Likewise.
29776         * tests/test-signbit.c: Likewise.
29777         * tests/test-sleep.c: Likewise.
29778         * tests/test-snprintf-posix.c: Likewise.
29779         * tests/test-snprintf.c: Likewise.
29780         * tests/test-sprintf-posix.c: Likewise.
29781         * tests/test-stat-time.c: Likewise.
29782         * tests/test-stat.c: Likewise.
29783         * tests/test-strcasestr.c: Likewise.
29784         * tests/test-strchrnul.c: Likewise.
29785         * tests/test-strerror.c: Likewise.
29786         * tests/test-striconv.c: Likewise.
29787         * tests/test-striconveh.c: Likewise.
29788         * tests/test-striconveha.c: Likewise.
29789         * tests/test-strsignal.c: Likewise.
29790         * tests/test-strstr.c: Likewise.
29791         * tests/test-strtod.c: Likewise.
29792         * tests/test-strverscmp.c: Likewise.
29793         * tests/test-symlink.c: Likewise.
29794         * tests/test-symlinkat.c: Likewise.
29795         * tests/test-trunc1.c: Likewise.
29796         * tests/test-trunc2.c: Likewise.
29797         * tests/test-truncf1.c: Likewise.
29798         * tests/test-truncf2.c: Likewise.
29799         * tests/test-truncl.c: Likewise.
29800         * tests/test-uname.c: Likewise.
29801         * tests/test-unlink.c: Likewise.
29802         * tests/test-unlinkat.c: Likewise.
29803         * tests/test-unsetenv.c: Likewise.
29804         * tests/test-usleep.c: Likewise.
29805         * tests/test-utimens.c: Likewise.
29806         * tests/test-utimensat.c: Likewise.
29807         * tests/test-vasnprintf-posix.c: Likewise.
29808         * tests/test-vasnprintf-posix2.c: Likewise.
29809         * tests/test-vasnprintf.c: Likewise.
29810         * tests/test-vasprintf-posix.c: Likewise.
29811         * tests/test-vasprintf.c: Likewise.
29812         * tests/test-vdprintf-posix.c: Likewise.
29813         * tests/test-vfprintf-posix.c: Likewise.
29814         * tests/test-vprintf-posix.c: Likewise.
29815         * tests/test-vsnprintf-posix.c: Likewise.
29816         * tests/test-vsnprintf.c: Likewise.
29817         * tests/test-vsprintf-posix.c: Likewise.
29818         * tests/test-wcrtomb.c: Likewise.
29819         * tests/test-wcsnrtombs.c: Likewise.
29820         * tests/test-wcsrtombs.c: Likewise.
29821         * tests/test-wctype.c: Likewise.
29822         * tests/test-wcwidth.c: Likewise.
29823         * tests/test-xfprintf-posix.c: Likewise.
29824         * tests/test-xmemdup0.c: Likewise.
29825         * tests/test-xprintf-posix.c: Likewise.
29826         * tests/test-xvasprintf.c: Likewise.
29827         * tests/unicase/test-locale-language.c: Likewise.
29828         * tests/unicase/test-mapping-part1.h: Likewise.
29829         * tests/unicase/test-predicate-part1.h: Likewise.
29830         * tests/unicase/test-u8-casecmp.c: Likewise.
29831         * tests/unicase/test-u8-casecoll.c: Likewise.
29832         * tests/unicase/test-u8-casefold.c: Likewise.
29833         * tests/unicase/test-u8-is-cased.c: Likewise.
29834         * tests/unicase/test-u8-is-casefolded.c: Likewise.
29835         * tests/unicase/test-u8-is-lowercase.c: Likewise.
29836         * tests/unicase/test-u8-is-titlecase.c: Likewise.
29837         * tests/unicase/test-u8-is-uppercase.c: Likewise.
29838         * tests/unicase/test-u8-tolower.c: Likewise.
29839         * tests/unicase/test-u8-totitle.c: Likewise.
29840         * tests/unicase/test-u8-toupper.c: Likewise.
29841         * tests/unicase/test-u16-casecmp.c: Likewise.
29842         * tests/unicase/test-u16-casecoll.c: Likewise.
29843         * tests/unicase/test-u16-casefold.c: Likewise.
29844         * tests/unicase/test-u16-is-cased.c: Likewise.
29845         * tests/unicase/test-u16-is-casefolded.c: Likewise.
29846         * tests/unicase/test-u16-is-lowercase.c: Likewise.
29847         * tests/unicase/test-u16-is-titlecase.c: Likewise.
29848         * tests/unicase/test-u16-is-uppercase.c: Likewise.
29849         * tests/unicase/test-u16-tolower.c: Likewise.
29850         * tests/unicase/test-u16-totitle.c: Likewise.
29851         * tests/unicase/test-u16-toupper.c: Likewise.
29852         * tests/unicase/test-u32-casecmp.c: Likewise.
29853         * tests/unicase/test-u32-casecoll.c: Likewise.
29854         * tests/unicase/test-u32-casefold.c: Likewise.
29855         * tests/unicase/test-u32-is-cased.c: Likewise.
29856         * tests/unicase/test-u32-is-casefolded.c: Likewise.
29857         * tests/unicase/test-u32-is-lowercase.c: Likewise.
29858         * tests/unicase/test-u32-is-titlecase.c: Likewise.
29859         * tests/unicase/test-u32-is-uppercase.c: Likewise.
29860         * tests/unicase/test-u32-tolower.c: Likewise.
29861         * tests/unicase/test-u32-totitle.c: Likewise.
29862         * tests/unicase/test-u32-toupper.c: Likewise.
29863         * tests/unicase/test-ulc-casecmp.c: Likewise.
29864         * tests/unicase/test-ulc-casecoll.c: Likewise.
29865         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
29866         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
29867         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
29868         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
29869         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
29870         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
29871         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
29872         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
29873         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
29874         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
29875         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
29876         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
29877         * tests/unictype/test-bidi_byname.c: Likewise.
29878         * tests/unictype/test-bidi_name.c: Likewise.
29879         * tests/unictype/test-bidi_of.c: Likewise.
29880         * tests/unictype/test-bidi_test.c: Likewise.
29881         * tests/unictype/test-block_list.c: Likewise.
29882         * tests/unictype/test-block_of.c: Likewise.
29883         * tests/unictype/test-block_test.c: Likewise.
29884         * tests/unictype/test-categ_and.c: Likewise.
29885         * tests/unictype/test-categ_and_not.c: Likewise.
29886         * tests/unictype/test-categ_byname.c: Likewise.
29887         * tests/unictype/test-categ_name.c: Likewise.
29888         * tests/unictype/test-categ_none.c: Likewise.
29889         * tests/unictype/test-categ_of.c: Likewise.
29890         * tests/unictype/test-categ_or.c: Likewise.
29891         * tests/unictype/test-categ_test_withtable.c: Likewise.
29892         * tests/unictype/test-combining.c: Likewise.
29893         * tests/unictype/test-decdigit.c: Likewise.
29894         * tests/unictype/test-digit.c: Likewise.
29895         * tests/unictype/test-mirror.c: Likewise.
29896         * tests/unictype/test-numeric.c: Likewise.
29897         * tests/unictype/test-pr_byname.c: Likewise.
29898         * tests/unictype/test-pr_test.c: Likewise.
29899         * tests/unictype/test-predicate-part1.h: Likewise.
29900         * tests/unictype/test-scripts.c: Likewise.
29901         * tests/unictype/test-sy_c_ident.c: Likewise.
29902         * tests/unictype/test-sy_java_ident.c: Likewise.
29903         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
29904         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
29905         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
29906         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
29907         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
29908         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
29909         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
29910         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
29911         * tests/uninorm/test-canonical-decomposition.c: Likewise.
29912         * tests/uninorm/test-compat-decomposition.c: Likewise.
29913         * tests/uninorm/test-composition.c: Likewise.
29914         * tests/uninorm/test-decomposing-form.c: Likewise.
29915         * tests/uninorm/test-decomposition.c: Likewise.
29916         * tests/uninorm/test-u8-nfc.c: Likewise.
29917         * tests/uninorm/test-u8-nfd.c: Likewise.
29918         * tests/uninorm/test-u8-nfkc.c: Likewise.
29919         * tests/uninorm/test-u8-nfkd.c: Likewise.
29920         * tests/uninorm/test-u8-normcmp.c: Likewise.
29921         * tests/uninorm/test-u8-normcoll.c: Likewise.
29922         * tests/uninorm/test-u16-nfc.c: Likewise.
29923         * tests/uninorm/test-u16-nfd.c: Likewise.
29924         * tests/uninorm/test-u16-nfkc.c: Likewise.
29925         * tests/uninorm/test-u16-nfkd.c: Likewise.
29926         * tests/uninorm/test-u16-normcmp.c: Likewise.
29927         * tests/uninorm/test-u16-normcoll.c: Likewise.
29928         * tests/uninorm/test-u32-nfc.c: Likewise.
29929         * tests/uninorm/test-u32-nfd.c: Likewise.
29930         * tests/uninorm/test-u32-nfkc.c: Likewise.
29931         * tests/uninorm/test-u32-nfkd.c: Likewise.
29932         * tests/uninorm/test-u32-normalize-big.c: Likewise.
29933         * tests/uninorm/test-u32-normcmp.c: Likewise.
29934         * tests/uninorm/test-u32-normcoll.c: Likewise.
29935         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
29936         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
29937         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
29938         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
29939         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
29940         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
29941         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
29942         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
29943         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
29944         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
29945         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
29946         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
29947         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
29948         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
29949         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
29950         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
29951         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
29952         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
29953         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
29954         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
29955         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
29956         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
29957         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
29958         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
29959         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
29960         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
29961         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
29962         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
29963         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
29964         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
29965         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
29966         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
29967         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
29968         * tests/uniwidth/test-u8-strwidth.c: Likewise.
29969         * tests/uniwidth/test-u8-width.c: Likewise.
29970         * tests/uniwidth/test-u16-strwidth.c: Likewise.
29971         * tests/uniwidth/test-u16-width.c: Likewise.
29972         * tests/uniwidth/test-u32-strwidth.c: Likewise.
29973         * tests/uniwidth/test-u32-width.c: Likewise.
29974         * tests/uniwidth/test-uc_width.c: Likewise.
29975         * tests/uniwidth/test-uc_width2.c: Likewise.
29976         * modules/acl-tests (Files): Add tests/macros.h.
29977         * modules/areadlink-tests (Files): Likewise.
29978         * modules/areadlink-with-size-tests (Files): Likewise.
29979         * modules/areadlinkat-tests (Files): Likewise.
29980         * modules/areadlinkat-with-size-tests (Files): Likewise.
29981         * modules/argmatch-tests (Files): Likewise.
29982         * modules/argv-iter-tests (Files): Likewise.
29983         * modules/array-list-tests (Files): Likewise.
29984         * modules/array-mergesort-tests (Files): Likewise.
29985         * modules/array-oset-tests (Files): Likewise.
29986         * modules/avltree-list-tests (Files): Likewise.
29987         * modules/avltree-oset-tests (Files): Likewise.
29988         * modules/avltreehash-list-tests (Files): Likewise.
29989         * modules/base64-tests (Files): Likewise.
29990         * modules/binary-io-tests (Files): Likewise.
29991         * modules/bitrotate-tests (Files): Likewise.
29992         * modules/btowc-tests (Files): Likewise.
29993         * modules/byteswap-tests (Files): Likewise.
29994         * modules/c-ctype-tests (Files): Likewise.
29995         * modules/c-stack-tests (Files): Likewise.
29996         * modules/c-strcase-tests (Files): Likewise.
29997         * modules/c-strcasestr-tests (Files): Likewise.
29998         * modules/c-strstr-tests (Files): Likewise.
29999         * modules/canonicalize-lgpl-tests (Files): Likewise.
30000         * modules/canonicalize-tests (Files): Likewise.
30001         * modules/carray-list-tests (Files): Likewise.
30002         * modules/ceilf-tests (Files): Likewise.
30003         * modules/ceill-tests (Files): Likewise.
30004         * modules/chown-tests (Files): Likewise.
30005         * modules/cloexec-tests (Files): Likewise.
30006         * modules/copy-file-tests (Files): Likewise.
30007         * modules/count-one-bits-tests (Files): Likewise.
30008         * modules/dprintf-posix-tests (Files): Likewise.
30009         * modules/dup2-tests (Files): Likewise.
30010         * modules/dup3-tests (Files): Likewise.
30011         * modules/duplocale-tests (Files): Likewise.
30012         * modules/fbufmode-tests (Files): Likewise.
30013         * modules/fchdir-tests (Files): Likewise.
30014         * modules/fcntl-safer-tests (Files): Likewise.
30015         * modules/fcntl-tests (Files): Likewise.
30016         * modules/fdopendir-tests (Files): Likewise.
30017         * modules/fdutimensat-tests (Files): Likewise.
30018         * modules/fflush-tests (Files): Likewise.
30019         * modules/filevercmp-tests (Files): Likewise.
30020         * modules/flock-tests (Files): Likewise.
30021         * modules/floorf-tests (Files): Likewise.
30022         * modules/floorl-tests (Files): Likewise.
30023         * modules/fnmatch-tests (Files): Likewise.
30024         * modules/fopen-safer-tests (Files): Likewise.
30025         * modules/fopen-tests (Files): Likewise.
30026         * modules/fpending-tests (Files): Likewise.
30027         * modules/fprintf-posix-tests (Files): Likewise.
30028         * modules/fpurge-tests (Files): Likewise.
30029         * modules/freadable-tests (Files): Likewise.
30030         * modules/freadahead-tests (Files): Likewise.
30031         * modules/freading-tests (Files): Likewise.
30032         * modules/freadptr-tests (Files): Likewise.
30033         * modules/freadseek-tests (Files): Likewise.
30034         * modules/freopen-tests (Files): Likewise.
30035         * modules/frexp-nolibm-tests (Files): Likewise.
30036         * modules/frexp-tests (Files): Likewise.
30037         * modules/frexpl-nolibm-tests (Files): Likewise.
30038         * modules/frexpl-tests (Files): Likewise.
30039         * modules/fseek-tests (Files): Likewise.
30040         * modules/fseeko-tests (Files): Likewise.
30041         * modules/fstrcmp-tests (Files): Likewise.
30042         * modules/fsync-tests (Files): Likewise.
30043         * modules/ftell-tests (Files): Likewise.
30044         * modules/ftello-tests (Files): Likewise.
30045         * modules/func-tests (Files): Likewise.
30046         * modules/futimens-tests (Files): Likewise.
30047         * modules/fwritable-tests (Files): Likewise.
30048         * modules/fwriting-tests (Files): Likewise.
30049         * modules/getcwd-tests (Files): Likewise.
30050         * modules/getdate-tests (Files): Likewise.
30051         * modules/getdelim-tests (Files): Likewise.
30052         * modules/getdtablesize-tests (Files): Likewise.
30053         * modules/getgroups-tests (Files): Likewise.
30054         * modules/getline-tests (Files): Likewise.
30055         * modules/getndelim2-tests (Files): Likewise.
30056         * modules/glob-tests (Files): Likewise.
30057         * modules/hash-tests (Files): Likewise.
30058         * modules/i-ring-tests (Files): Likewise.
30059         * modules/iconv-tests (Files): Likewise.
30060         * modules/iconv_open-utf-tests (Files): Likewise.
30061         * modules/idpriv-drop-tests (Files): Likewise.
30062         * modules/idpriv-droptemp-tests (Files): Likewise.
30063         * modules/inet_ntop-tests (Files): Likewise.
30064         * modules/inet_pton-tests (Files): Likewise.
30065         * modules/isblank-tests (Files): Likewise.
30066         * modules/isfinite-tests (Files): Likewise.
30067         * modules/isinf-tests (Files): Likewise.
30068         * modules/isnan-tests (Files): Likewise.
30069         * modules/isnand-nolibm-tests (Files): Likewise.
30070         * modules/isnand-tests (Files): Likewise.
30071         * modules/isnanf-nolibm-tests (Files): Likewise.
30072         * modules/isnanf-tests (Files): Likewise.
30073         * modules/isnanl-nolibm-tests (Files): Likewise.
30074         * modules/isnanl-tests (Files): Likewise.
30075         * modules/lchown-tests (Files): Likewise.
30076         * modules/ldexpl-tests (Files): Likewise.
30077         * modules/link-tests (Files): Likewise.
30078         * modules/linkat-tests (Files): Likewise.
30079         * modules/linked-list-tests (Files): Likewise.
30080         * modules/linkedhash-list-tests (Files): Likewise.
30081         * modules/localename-tests (Files): Likewise.
30082         * modules/lseek-tests (Files): Likewise.
30083         * modules/lstat-tests (Files): Likewise.
30084         * modules/mbmemcasecmp-tests (Files): Likewise.
30085         * modules/mbmemcasecoll-tests (Files): Likewise.
30086         * modules/mbrtowc-tests (Files): Likewise.
30087         * modules/mbscasecmp-tests (Files): Likewise.
30088         * modules/mbscasestr-tests (Files): Likewise.
30089         * modules/mbschr-tests (Files): Likewise.
30090         * modules/mbscspn-tests (Files): Likewise.
30091         * modules/mbsinit-tests (Files): Likewise.
30092         * modules/mbsncasecmp-tests (Files): Likewise.
30093         * modules/mbsnrtowcs-tests (Files): Likewise.
30094         * modules/mbspbrk-tests (Files): Likewise.
30095         * modules/mbspcasecmp-tests (Files): Likewise.
30096         * modules/mbsrchr-tests (Files): Likewise.
30097         * modules/mbsrtowcs-tests (Files): Likewise.
30098         * modules/mbsspn-tests (Files): Likewise.
30099         * modules/mbsstr-tests (Files): Likewise.
30100         * modules/memchr-tests (Files): Likewise.
30101         * modules/memchr2-tests (Files): Likewise.
30102         * modules/memcmp-tests (Files): Likewise.
30103         * modules/memmem-tests (Files): Likewise.
30104         * modules/memrchr-tests (Files): Likewise.
30105         * modules/mkdir-tests (Files): Likewise.
30106         * modules/mkfifo-tests (Files): Likewise.
30107         * modules/mkfifoat-tests (Files): Likewise.
30108         * modules/mknod-tests (Files): Likewise.
30109         * modules/nanosleep-tests (Files): Likewise.
30110         * modules/nl_langinfo-tests (Files): Likewise.
30111         * modules/obstack-printf-tests (Files): Likewise.
30112         * modules/open-tests (Files): Likewise.
30113         * modules/openat-tests (Files): Likewise.
30114         * modules/pipe-filter-gi-tests (Files): Likewise.
30115         * modules/pipe-filter-ii-tests (Files): Likewise.
30116         * modules/pipe2-tests (Files): Likewise.
30117         * modules/popen-safer-tests (Files): Likewise.
30118         * modules/popen-tests (Files): Likewise.
30119         * modules/posixtm-tests (Files): Likewise.
30120         * modules/pread-tests (Files): Likewise.
30121         * modules/printf-frexp-tests (Files): Likewise.
30122         * modules/printf-frexpl-tests (Files): Likewise.
30123         * modules/printf-posix-tests (Files): Likewise.
30124         * modules/priv-set-tests (Files): Likewise.
30125         * modules/quotearg-tests (Files): Likewise.
30126         * modules/random_r-tests (Files): Likewise.
30127         * modules/rawmemchr-tests (Files): Likewise.
30128         * modules/rbtree-list-tests (Files): Likewise.
30129         * modules/rbtree-oset-tests (Files): Likewise.
30130         * modules/rbtreehash-list-tests (Files): Likewise.
30131         * modules/readlink-tests (Files): Likewise.
30132         * modules/remove-tests (Files): Likewise.
30133         * modules/rename-tests (Files): Likewise.
30134         * modules/renameat-tests (Files): Likewise.
30135         * modules/rmdir-tests (Files): Likewise.
30136         * modules/round-tests (Files): Likewise.
30137         * modules/roundf-tests (Files): Likewise.
30138         * modules/roundl-tests (Files): Likewise.
30139         * modules/safe-alloc-tests (Files): Likewise.
30140         * modules/setenv-tests (Files): Likewise.
30141         * modules/sigaction-tests (Files): Likewise.
30142         * modules/signbit-tests (Files): Likewise.
30143         * modules/sleep-tests (Files): Likewise.
30144         * modules/snprintf-posix-tests (Files): Likewise.
30145         * modules/snprintf-tests (Files): Likewise.
30146         * modules/sprintf-posix-tests (Files): Likewise.
30147         * modules/stat-tests (Files): Likewise.
30148         * modules/stat-time-tests (Files): Likewise.
30149         * modules/strcasestr-tests (Files): Likewise.
30150         * modules/strchrnul-tests (Files): Likewise.
30151         * modules/strerror-tests (Files): Likewise.
30152         * modules/striconv-tests (Files): Likewise.
30153         * modules/striconveh-tests (Files): Likewise.
30154         * modules/striconveha-tests (Files): Likewise.
30155         * modules/strsignal-tests (Files): Likewise.
30156         * modules/strstr-tests (Files): Likewise.
30157         * modules/strtod-tests (Files): Likewise.
30158         * modules/strverscmp-tests (Files): Likewise.
30159         * modules/symlink-tests (Files): Likewise.
30160         * modules/symlinkat-tests (Files): Likewise.
30161         * modules/trunc-tests (Files): Likewise.
30162         * modules/truncf-tests (Files): Likewise.
30163         * modules/truncl-tests (Files): Likewise.
30164         * modules/uname-tests (Files): Likewise.
30165         * modules/unicase/cased-tests (Files): Likewise.
30166         * modules/unicase/ignorable-tests (Files): Likewise.
30167         * modules/unicase/locale-language-tests (Files): Likewise.
30168         * modules/unicase/tolower-tests (Files): Likewise.
30169         * modules/unicase/totitle-tests (Files): Likewise.
30170         * modules/unicase/toupper-tests (Files): Likewise.
30171         * modules/unicase/u8-casecmp-tests (Files): Likewise.
30172         * modules/unicase/u8-casecoll-tests (Files): Likewise.
30173         * modules/unicase/u8-casefold-tests (Files): Likewise.
30174         * modules/unicase/u8-is-cased-tests (Files): Likewise.
30175         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
30176         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
30177         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
30178         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
30179         * modules/unicase/u8-tolower-tests (Files): Likewise.
30180         * modules/unicase/u8-totitle-tests (Files): Likewise.
30181         * modules/unicase/u8-toupper-tests (Files): Likewise.
30182         * modules/unicase/u16-casecmp-tests (Files): Likewise.
30183         * modules/unicase/u16-casecoll-tests (Files): Likewise.
30184         * modules/unicase/u16-casefold-tests (Files): Likewise.
30185         * modules/unicase/u16-is-cased-tests (Files): Likewise.
30186         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
30187         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
30188         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
30189         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
30190         * modules/unicase/u16-tolower-tests (Files): Likewise.
30191         * modules/unicase/u16-totitle-tests (Files): Likewise.
30192         * modules/unicase/u16-toupper-tests (Files): Likewise.
30193         * modules/unicase/u32-casecmp-tests (Files): Likewise.
30194         * modules/unicase/u32-casecoll-tests (Files): Likewise.
30195         * modules/unicase/u32-casefold-tests (Files): Likewise.
30196         * modules/unicase/u32-is-cased-tests (Files): Likewise.
30197         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
30198         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
30199         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
30200         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
30201         * modules/unicase/u32-tolower-tests (Files): Likewise.
30202         * modules/unicase/u32-totitle-tests (Files): Likewise.
30203         * modules/unicase/u32-toupper-tests (Files): Likewise.
30204         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
30205         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
30206         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
30207         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
30208         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
30209         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
30210         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
30211         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
30212         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
30213         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
30214         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
30215         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
30216         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
30217         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
30218         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
30219         * modules/unictype/bidicategory-name-tests (Files): Likewise.
30220         * modules/unictype/bidicategory-of-tests (Files): Likewise.
30221         * modules/unictype/bidicategory-test-tests (Files): Likewise.
30222         * modules/unictype/block-list-tests (Files): Likewise.
30223         * modules/unictype/block-of-tests (Files): Likewise.
30224         * modules/unictype/block-test-tests (Files): Likewise.
30225         * modules/unictype/category-C-tests (Files): Likewise.
30226         * modules/unictype/category-Cc-tests (Files): Likewise.
30227         * modules/unictype/category-Cf-tests (Files): Likewise.
30228         * modules/unictype/category-Cn-tests (Files): Likewise.
30229         * modules/unictype/category-Co-tests (Files): Likewise.
30230         * modules/unictype/category-Cs-tests (Files): Likewise.
30231         * modules/unictype/category-L-tests (Files): Likewise.
30232         * modules/unictype/category-Ll-tests (Files): Likewise.
30233         * modules/unictype/category-Lm-tests (Files): Likewise.
30234         * modules/unictype/category-Lo-tests (Files): Likewise.
30235         * modules/unictype/category-Lt-tests (Files): Likewise.
30236         * modules/unictype/category-Lu-tests (Files): Likewise.
30237         * modules/unictype/category-M-tests (Files): Likewise.
30238         * modules/unictype/category-Mc-tests (Files): Likewise.
30239         * modules/unictype/category-Me-tests (Files): Likewise.
30240         * modules/unictype/category-Mn-tests (Files): Likewise.
30241         * modules/unictype/category-N-tests (Files): Likewise.
30242         * modules/unictype/category-Nd-tests (Files): Likewise.
30243         * modules/unictype/category-Nl-tests (Files): Likewise.
30244         * modules/unictype/category-No-tests (Files): Likewise.
30245         * modules/unictype/category-P-tests (Files): Likewise.
30246         * modules/unictype/category-Pc-tests (Files): Likewise.
30247         * modules/unictype/category-Pd-tests (Files): Likewise.
30248         * modules/unictype/category-Pe-tests (Files): Likewise.
30249         * modules/unictype/category-Pf-tests (Files): Likewise.
30250         * modules/unictype/category-Pi-tests (Files): Likewise.
30251         * modules/unictype/category-Po-tests (Files): Likewise.
30252         * modules/unictype/category-Ps-tests (Files): Likewise.
30253         * modules/unictype/category-S-tests (Files): Likewise.
30254         * modules/unictype/category-Sc-tests (Files): Likewise.
30255         * modules/unictype/category-Sk-tests (Files): Likewise.
30256         * modules/unictype/category-Sm-tests (Files): Likewise.
30257         * modules/unictype/category-So-tests (Files): Likewise.
30258         * modules/unictype/category-Z-tests (Files): Likewise.
30259         * modules/unictype/category-Zl-tests (Files): Likewise.
30260         * modules/unictype/category-Zp-tests (Files): Likewise.
30261         * modules/unictype/category-Zs-tests (Files): Likewise.
30262         * modules/unictype/category-and-not-tests (Files): Likewise.
30263         * modules/unictype/category-and-tests (Files): Likewise.
30264         * modules/unictype/category-byname-tests (Files): Likewise.
30265         * modules/unictype/category-name-tests (Files): Likewise.
30266         * modules/unictype/category-none-tests (Files): Likewise.
30267         * modules/unictype/category-of-tests (Files): Likewise.
30268         * modules/unictype/category-or-tests (Files): Likewise.
30269         * modules/unictype/category-test-withtable-tests (Files): Likewise.
30270         * modules/unictype/combining-class-tests (Files): Likewise.
30271         * modules/unictype/ctype-alnum-tests (Files): Likewise.
30272         * modules/unictype/ctype-alpha-tests (Files): Likewise.
30273         * modules/unictype/ctype-blank-tests (Files): Likewise.
30274         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
30275         * modules/unictype/ctype-digit-tests (Files): Likewise.
30276         * modules/unictype/ctype-graph-tests (Files): Likewise.
30277         * modules/unictype/ctype-lower-tests (Files): Likewise.
30278         * modules/unictype/ctype-print-tests (Files): Likewise.
30279         * modules/unictype/ctype-punct-tests (Files): Likewise.
30280         * modules/unictype/ctype-space-tests (Files): Likewise.
30281         * modules/unictype/ctype-upper-tests (Files): Likewise.
30282         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
30283         * modules/unictype/decimal-digit-tests (Files): Likewise.
30284         * modules/unictype/digit-tests (Files): Likewise.
30285         * modules/unictype/mirror-tests (Files): Likewise.
30286         * modules/unictype/numeric-tests (Files): Likewise.
30287         * modules/unictype/property-alphabetic-tests (Files): Likewise.
30288         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
30289         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
30290         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
30291         Likewise.
30292         * modules/unictype/property-bidi-block-separator-tests (Files):
30293         Likewise.
30294         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
30295         Likewise.
30296         * modules/unictype/property-bidi-common-separator-tests (Files):
30297         Likewise.
30298         * modules/unictype/property-bidi-control-tests (Files): Likewise.
30299         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
30300         Likewise.
30301         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
30302         Likewise.
30303         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
30304         Likewise.
30305         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
30306         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
30307         Likewise.
30308         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
30309         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
30310         Likewise.
30311         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
30312         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
30313         * modules/unictype/property-bidi-segment-separator-tests (Files):
30314         Likewise.
30315         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
30316         * modules/unictype/property-byname-tests (Files): Likewise.
30317         * modules/unictype/property-combining-tests (Files): Likewise.
30318         * modules/unictype/property-composite-tests (Files): Likewise.
30319         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
30320         * modules/unictype/property-dash-tests (Files): Likewise.
30321         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
30322         * modules/unictype/property-default-ignorable-code-point-tests (Files):
30323         Likewise.
30324         * modules/unictype/property-deprecated-tests (Files): Likewise.
30325         * modules/unictype/property-diacritic-tests (Files): Likewise.
30326         * modules/unictype/property-extender-tests (Files): Likewise.
30327         * modules/unictype/property-format-control-tests (Files): Likewise.
30328         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
30329         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
30330         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
30331         * modules/unictype/property-hex-digit-tests (Files): Likewise.
30332         * modules/unictype/property-hyphen-tests (Files): Likewise.
30333         * modules/unictype/property-id-continue-tests (Files): Likewise.
30334         * modules/unictype/property-id-start-tests (Files): Likewise.
30335         * modules/unictype/property-ideographic-tests (Files): Likewise.
30336         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
30337         * modules/unictype/property-ids-trinary-operator-tests (Files):
30338         Likewise.
30339         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
30340         * modules/unictype/property-iso-control-tests (Files): Likewise.
30341         * modules/unictype/property-join-control-tests (Files): Likewise.
30342         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
30343         * modules/unictype/property-line-separator-tests (Files): Likewise.
30344         * modules/unictype/property-logical-order-exception-tests (Files):
30345         Likewise.
30346         * modules/unictype/property-lowercase-tests (Files): Likewise.
30347         * modules/unictype/property-math-tests (Files): Likewise.
30348         * modules/unictype/property-non-break-tests (Files): Likewise.
30349         * modules/unictype/property-not-a-character-tests (Files): Likewise.
30350         * modules/unictype/property-numeric-tests (Files): Likewise.
30351         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
30352         * modules/unictype/property-other-default-ignorable-code-point-tests
30353         (Files): Likewise.
30354         * modules/unictype/property-other-grapheme-extend-tests (Files):
30355         Likewise.
30356         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
30357         * modules/unictype/property-other-id-start-tests (Files): Likewise.
30358         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
30359         * modules/unictype/property-other-math-tests (Files): Likewise.
30360         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
30361         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
30362         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
30363         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
30364         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
30365         * modules/unictype/property-private-use-tests (Files): Likewise.
30366         * modules/unictype/property-punctuation-tests (Files): Likewise.
30367         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
30368         * modules/unictype/property-radical-tests (Files): Likewise.
30369         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
30370         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
30371         * modules/unictype/property-space-tests (Files): Likewise.
30372         * modules/unictype/property-terminal-punctuation-tests (Files):
30373         Likewise.
30374         * modules/unictype/property-test-tests (Files): Likewise.
30375         * modules/unictype/property-titlecase-tests (Files): Likewise.
30376         * modules/unictype/property-unassigned-code-value-tests (Files):
30377         Likewise.
30378         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
30379         * modules/unictype/property-uppercase-tests (Files): Likewise.
30380         * modules/unictype/property-variation-selector-tests (Files): Likewise.
30381         * modules/unictype/property-white-space-tests (Files): Likewise.
30382         * modules/unictype/property-xid-continue-tests (Files): Likewise.
30383         * modules/unictype/property-xid-start-tests (Files): Likewise.
30384         * modules/unictype/property-zero-width-tests (Files): Likewise.
30385         * modules/unictype/scripts-tests (Files): Likewise.
30386         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
30387         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
30388         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
30389         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
30390         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
30391         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
30392         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
30393         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
30394         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
30395         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
30396         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
30397         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
30398         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
30399         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
30400         * modules/uninorm/composition-tests (Files): Likewise.
30401         * modules/uninorm/decomposing-form-tests (Files): Likewise.
30402         * modules/uninorm/decomposition-tests (Files): Likewise.
30403         * modules/uninorm/filter-tests (Files): Likewise.
30404         * modules/uninorm/nfc-tests (Files): Likewise.
30405         * modules/uninorm/nfd-tests (Files): Likewise.
30406         * modules/uninorm/nfkc-tests (Files): Likewise.
30407         * modules/uninorm/nfkd-tests (Files): Likewise.
30408         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
30409         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
30410         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
30411         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
30412         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
30413         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
30414         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
30415         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
30416         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
30417         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
30418         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
30419         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
30420         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
30421         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
30422         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
30423         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
30424         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
30425         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
30426         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
30427         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
30428         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
30429         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
30430         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
30431         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
30432         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
30433         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
30434         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
30435         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
30436         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
30437         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
30438         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
30439         * modules/uniwidth/u8-width-tests (Files): Likewise.
30440         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
30441         * modules/uniwidth/u16-width-tests (Files): Likewise.
30442         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
30443         * modules/uniwidth/u32-width-tests (Files): Likewise.
30444         * modules/uniwidth/width-tests (Files): Likewise.
30445         * modules/unlink-tests (Files): Likewise.
30446         * modules/unsetenv-tests (Files): Likewise.
30447         * modules/usleep-tests (Files): Likewise.
30448         * modules/utimens-tests (Files): Likewise.
30449         * modules/utimensat-tests (Files): Likewise.
30450         * modules/vasnprintf-posix-tests (Files): Likewise.
30451         * modules/vasnprintf-tests (Files): Likewise.
30452         * modules/vasprintf-posix-tests (Files): Likewise.
30453         * modules/vasprintf-tests (Files): Likewise.
30454         * modules/vdprintf-posix-tests (Files): Likewise.
30455         * modules/vfprintf-posix-tests (Files): Likewise.
30456         * modules/vprintf-posix-tests (Files): Likewise.
30457         * modules/vsnprintf-posix-tests (Files): Likewise.
30458         * modules/vsnprintf-tests (Files): Likewise.
30459         * modules/vsprintf-posix-tests (Files): Likewise.
30460         * modules/wcrtomb-tests (Files): Likewise.
30461         * modules/wcsnrtombs-tests (Files): Likewise.
30462         * modules/wcsrtombs-tests (Files): Likewise.
30463         * modules/wctype-tests (Files): Likewise.
30464         * modules/wcwidth-tests (Files): Likewise.
30465         * modules/xmemdup0-tests (Files): Likewise.
30466         * modules/xprintf-posix-tests (Files): Likewise.
30467         * modules/xvasprintf-tests (Files): Likewise.
30468
30469 2009-12-24  Eric Blake  <ebb9@byu.net>
30470
30471         test-nanosleep: fix typo
30472         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
30473         patch.
30474         Reported by Bruno Haible.
30475
30476 2009-12-24  Bruno Haible  <bruno@clisp.org>
30477
30478         Reduce namespace pollution on glibc systems.
30479         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
30480         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
30481         systems.
30482         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
30483         <getopt.h> on glibc systems.
30484         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
30485         systems.
30486         * lib/fcntl.c: Include <unistd.h> here instead.
30487
30488 2009-12-24  Bruno Haible  <bruno@clisp.org>
30489
30490         * lib/stdlib.in.h (includes): Fix typo in today's commit.
30491
30492 2009-12-24  Eric Blake  <ebb9@byu.net>
30493
30494         tests: add signature checks
30495         * tests/signature.h (SIGNATURE_CHECK): New file.
30496         * modules/atexit-tests (Files): Use it.
30497         * modules/btowc-tests (Files): Likewise.
30498         * modules/canonicalize-lgpl-tests (Files): Likewise.
30499         * modules/ceilf-tests (Files): Likewise.
30500         * modules/ceill-tests (Files): Likewise.
30501         * modules/chown-tests (Files): Likewise.
30502         * modules/dprintf-posix-tests (Files): Likewise.
30503         * modules/dup2-tests (Files): Likewise.
30504         * modules/dup3-tests (Files): Likewise.
30505         * modules/duplocale-tests (Files): Likewise.
30506         * modules/fchdir-tests (Files): Likewise.
30507         * modules/fcntl-tests (Files): Likewise.
30508         * modules/fdopendir-tests (Files): Likewise.
30509         * modules/fflush-tests (Files): Likewise.
30510         * modules/flock-tests (Files): Likewise.
30511         * modules/floorf-tests (Files): Likewise.
30512         * modules/floorl-tests (Files): Likewise.
30513         * modules/fnmatch-tests (Files): Likewise.
30514         * modules/fopen-tests (Files): Likewise.
30515         * modules/fprintf-posix-tests (Files): Likewise.
30516         * modules/freopen-tests (Files): Likewise.
30517         * modules/frexp-nolibm-tests (Files): Likewise.
30518         * modules/frexp-tests (Files): Likewise.
30519         * modules/frexpl-nolibm-tests (Files): Likewise.
30520         * modules/frexpl-tests (Files): Likewise.
30521         * modules/fseek-tests (Files): Likewise.
30522         * modules/fseeko-tests (Files): Likewise.
30523         * modules/fsync-tests (Files): Likewise.
30524         * modules/ftell-tests (Files): Likewise.
30525         * modules/ftello-tests (Files): Likewise.
30526         * modules/futimens-tests (Files): Likewise.
30527         * modules/getaddrinfo-tests (Files): Likewise.
30528         * modules/getcwd-tests (Files): Likewise.
30529         * modules/getdelim-tests (Files): Likewise.
30530         * modules/getdtablesize-tests (Files): Likewise.
30531         * modules/getgroups-tests (Files): Likewise.
30532         * modules/gethostname-tests (Files): Likewise.
30533         * modules/getline-tests (Files): Likewise.
30534         * modules/getopt-posix-tests (Files): Likewise.
30535         * modules/gettimeofday-tests (Files): Likewise.
30536         * modules/glob-tests (Files): Likewise.
30537         * modules/iconv-tests (Files): Likewise.
30538         * modules/inet_ntop-tests (Files): Likewise.
30539         * modules/inet_pton-tests (Files): Likewise.
30540         * modules/isblank-tests (Files): Likewise.
30541         * modules/lchown-tests (Files): Likewise.
30542         * modules/ldexpl-tests (Files): Likewise.
30543         * modules/link-tests (Files): Likewise.
30544         * modules/linkat-tests (Files): Likewise.
30545         * modules/lseek-tests (Files): Likewise.
30546         * modules/lstat-tests (Files): Likewise.
30547         * modules/mbrtowc-tests (Files): Likewise.
30548         * modules/mbsinit-tests (Files): Likewise.
30549         * modules/mbsnrtowcs-tests (Files): Likewise.
30550         * modules/mbsrtowcs-tests (Files): Likewise.
30551         * modules/memchr-tests (Files): Likewise.
30552         * modules/memcmp-tests (Files): Likewise.
30553         * modules/memmem-tests (Files): Likewise.
30554         * modules/memrchr-tests (Files): Likewise.
30555         * modules/mkdir-tests (Files): Likewise.
30556         * modules/mkfifo-tests (Files): Likewise.
30557         * modules/mkfifoat-tests (Files): Likewise.
30558         * modules/mknod-tests (Files): Likewise.
30559         * modules/nanosleep-tests (Files): Likewise.
30560         * modules/nl_langinfo-tests (Files): Likewise.
30561         * modules/obstack-printf-tests (Files): Likewise.
30562         * modules/open-tests (Files): Likewise.
30563         * modules/openat-tests (Files): Likewise.
30564         * modules/perror-tests (Files): Likewise.
30565         * modules/pipe2-tests (Files): Likewise.
30566         * modules/poll-tests (Files): Likewise.
30567         * modules/popen-tests (Files): Likewise.
30568         * modules/posix_spawn-tests (Files): Likewise.
30569         * modules/posix_spawnp-tests (Files): Likewise.
30570         * modules/pread-tests (Files): Likewise.
30571         * modules/printf-posix-tests (Files): Likewise.
30572         * modules/pty-tests (Files): Likewise.
30573         * modules/random_r-tests (Files): Likewise.
30574         * modules/rawmemchr-tests (Files): Likewise.
30575         * modules/readlink-tests (Files): Likewise.
30576         * modules/remove-tests (Files): Likewise.
30577         * modules/rename-tests (Files): Likewise.
30578         * modules/renameat-tests (Files): Likewise.
30579         * modules/rmdir-tests (Files): Likewise.
30580         * modules/round-tests (Files): Likewise.
30581         * modules/roundf-tests (Files): Likewise.
30582         * modules/roundl-tests (Files): Likewise.
30583         * modules/select-tests (Files): Likewise.
30584         * modules/setenv-tests (Files): Likewise.
30585         * modules/sigaction-tests (Files): Likewise.
30586         * modules/sleep-tests (Files): Likewise.
30587         * modules/snprintf-posix-tests (Files): Likewise.
30588         * modules/snprintf-tests (Files): Likewise.
30589         * modules/sprintf-posix-tests (Files): Likewise.
30590         * modules/stat-tests (Files): Likewise.
30591         * modules/strcasestr-tests (Files): Likewise.
30592         * modules/strchrnul-tests (Files): Likewise.
30593         * modules/strerror-tests (Files): Likewise.
30594         * modules/strsignal-tests (Files): Likewise.
30595         * modules/strstr-tests (Files): Likewise.
30596         * modules/strtod-tests (Files): Likewise.
30597         * modules/strverscmp-tests (Files): Likewise.
30598         * modules/symlink-tests (Files): Likewise.
30599         * modules/symlinkat-tests (Files): Likewise.
30600         * modules/times-tests (Files): Likewise.
30601         * modules/trunc-tests (Files): Likewise.
30602         * modules/truncf-tests (Files): Likewise.
30603         * modules/truncl-tests (Files): Likewise.
30604         * modules/tsearch-tests (Files): Likewise.
30605         * modules/uname-tests (Files): Likewise.
30606         * modules/unlink-tests (Files): Likewise.
30607         * modules/unsetenv-tests (Files): Likewise.
30608         * modules/usleep-tests (Files): Likewise.
30609         * modules/utimensat-tests (Files): Likewise.
30610         * modules/vasprintf-tests (Files): Likewise.
30611         * modules/vdprintf-posix-tests (Files): Likewise.
30612         * modules/vfprintf-posix-tests (Files): Likewise.
30613         * modules/vprintf-posix-tests (Files): Likewise.
30614         * modules/vsnprintf-posix-tests (Files): Likewise.
30615         * modules/vsnprintf-tests (Files): Likewise.
30616         * modules/vsprintf-posix-tests (Files): Likewise.
30617         * modules/wcrtomb-tests (Files): Likewise.
30618         * modules/wcsnrtombs-tests (Files): Likewise.
30619         * modules/wcsrtombs-tests (Files): Likewise.
30620         * modules/wcwidth-tests (Files): Likewise.
30621         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
30622         * tests/test-isinf.c (isinf): Likewise.
30623         * tests/test-isnan.c (isnan): Likewise.
30624         * tests/test-signbit.c (signbit): Likewise.
30625         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
30626         declaration, either as macro or with correct signature.
30627         (select): Ensure function under test is declared with correct
30628         signature in correct header.
30629         * tests/test-atexit.c (atexit): Likewise.
30630         * tests/test-btowc.c (btowc): Likewise.
30631         * tests/test-canonicalize-lgpl.c (realpath)
30632         (canonicalize_file_name): Likewise.
30633         * tests/test-ceilf1.c (ceilf): Likewise.
30634         * tests/test-ceill.c (ceill): Likewise.
30635         * tests/test-chown.c (chown): Likewise.
30636         * tests/test-dprintf-posix.c (dprintf): Likewise.
30637         * tests/test-dup2.c (dup2): Likewise.
30638         * tests/test-dup3.c (dup3): Likewise.
30639         * tests/test-duplocale.c (duplocale): Likewise.
30640         * tests/test-fchdir.c (fchdir): Likewise.
30641         * tests/test-fchownat.c (fchownat): Likewise.
30642         * tests/test-fcntl.c (fcntl): Likewise.
30643         * tests/test-fdopendir.c (fdopendir): Likewise.
30644         * tests/test-fflush.c (fflush): Likewise.
30645         * tests/test-flock.c (flock): Likewise.
30646         * tests/test-floorf1.c (floorf): Likewise.
30647         * tests/test-floorl.c (floorl): Likewise.
30648         * tests/test-fnmatch.c (fnmatch): Likewise.
30649         * tests/test-fopen.c (fopen): Likewise.
30650         * tests/test-fprintf-posix.c (fprintf): Likewise.
30651         * tests/test-freopen.c (freopen): Likewise.
30652         * tests/test-frexp.c (frexp): Likewise.
30653         * tests/test-frexpl.c (frexpl): Likewise.
30654         * tests/test-fseek.c (fseek): Likewise.
30655         * tests/test-fseeko.c (fseeko): Likewise.
30656         * tests/test-fstatat.c (fstatat): Likewise.
30657         * tests/test-fsync.c (fsync): Likewise.
30658         * tests/test-ftell.c (ftell): Likewise.
30659         * tests/test-ftello.c (ftello): Likewise.
30660         * tests/test-futimens.c (futimens): Likewise.
30661         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
30662         (gai_strerror): Likewise.
30663         * tests/test-getcwd.c (getcwd): Likewise.
30664         * tests/test-getdelim.c (getdelim): Likewise.
30665         * tests/test-getdtablesize.c (getdtablesize): Likewise.
30666         * tests/test-getgroups.c (getgroups): Likewise.
30667         * tests/test-gethostname.c (gethostname): Likewise.
30668         * tests/test-getline.c (getline): Likewise.
30669         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
30670         Likewise.
30671         * tests/test-gettimeofday.c (gettimeofday): Likewise.
30672         * tests/test-glob.c (glob, globfree): Likewise.
30673         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
30674         * tests/test-inet_ntop.c (inet_ntop): Likewise.
30675         * tests/test-inet_pton.c (inet_pton): Likewise.
30676         * tests/test-isblank.c (isblank): Likewise.
30677         * tests/test-lchown.c (lchown): Likewise.
30678         * tests/test-ldexpl.c (ldexpl): Likewise.
30679         * tests/test-link.c (link): Likewise.
30680         * tests/test-linkat.c (linkat): Likewise.
30681         * tests/test-lseek.c (lseek): Likewise.
30682         * tests/test-lstat.c (lstat): Likewise.
30683         * tests/test-mbrtowc.c (mbrtowc): Likewise.
30684         * tests/test-mbsinit.c (mbsinit): Likewise.
30685         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
30686         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
30687         * tests/test-memchr.c (memchr): Likewise.
30688         * tests/test-memcmp.c (memcmp): Likewise.
30689         * tests/test-memmem.c (memmem): Likewise.
30690         * tests/test-memrchr.c (memrchr): Likewise.
30691         * tests/test-mkdir.c (mkdir): Likewise.
30692         * tests/test-mkdirat.c (mkdirat): Likewise.
30693         * tests/test-mkfifo.c (mkfifo): Likewise.
30694         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
30695         * tests/test-mknod.c (mknod): Likewise.
30696         * tests/test-nanosleep.c (nanosleep): Likewise.
30697         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
30698         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
30699         Likewise.
30700         * tests/test-open.c (open): Likewise.
30701         * tests/test-openat.c (openat): Likewise.
30702         * tests/test-perror.c (perror): Likewise.
30703         * tests/test-pipe2.c (pipe2): Likewise.
30704         * tests/test-poll.c (poll): Likewise.
30705         * tests/test-popen.c (popen, pclose): Likewise.
30706         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
30707         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
30708         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
30709         (posix_spawn_file_actions_destroy)
30710         (posix_spawn_file_actions_addclose)
30711         (posix_spawn_file_actions_addopen)
30712         (posix_spawn_file_actions_adddup2): Likewise.
30713         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
30714         * tests/test-pread.c (pread): Likewise.
30715         * tests/test-printf-posix.c (printf): Likewise.
30716         * tests/test-pty.c (openpty, forkpty): Likewise.
30717         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
30718         (random_r): Likewise.
30719         * tests/test-rawmemchr.c (rawmemchr): Likewise.
30720         * tests/test-readlink.c (readlink): Likewise.
30721         * tests/test-remove.c (remove): Likewise.
30722         * tests/test-rename.c (rename): Likewise.
30723         * tests/test-renameat.c (renameat): Likewise.
30724         * tests/test-rmdir.c (rmdir): Likewise.
30725         * tests/test-round1.c (round): Likewise.
30726         * tests/test-roundf1.c (roundf): Likewise.
30727         * tests/test-roundl.c (roundl): Likewise.
30728         * tests/test-setenv.c (setenv): Likewise.
30729         * tests/test-sigaction.c (sigaction): Likewise.
30730         * tests/test-sleep.c (sleep): Likewise.
30731         * tests/test-snprintf.c (snprintf): Likewise.
30732         * tests/test-sprintf-posix.c (sprintf): Likewise.
30733         * tests/test-stat.c (stat): Likewise.
30734         * tests/test-stpncpy.c (stpncpy): Likewise.
30735         * tests/test-strcasestr.c (strcasestr): Likewise.
30736         * tests/test-strchrnul.c (strchrnul): Likewise.
30737         * tests/test-strerror.c (strerror): Likewise.
30738         * tests/test-strsignal.c (strsignal): Likewise.
30739         * tests/test-strstr.c (strstr): Likewise.
30740         * tests/test-strtod.c (strtod): Likewise.
30741         * tests/test-strverscmp.c (strverscmp): Likewise.
30742         * tests/test-symlink.c (symlink): Likewise.
30743         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
30744         * tests/test-times.c (times): Likewise.
30745         * tests/test-trunc1.c (trunc): Likewise.
30746         * tests/test-truncf1.c (truncf): Likewise.
30747         * tests/test-truncl.c (truncl): Likewise.
30748         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
30749         Likewise.
30750         * tests/test-uname.c (uname): Likewise.
30751         * tests/test-unlink.c (unlink): Likewise.
30752         * tests/test-unlinkat.c (unlinkat): Likewise.
30753         * tests/test-unsetenv.c (unsetenv): Likewise.
30754         * tests/test-usleep.c (usleep): Likewise.
30755         * tests/test-utimensat.c (utimensat): Likewise.
30756         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
30757         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
30758         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
30759         * tests/test-vprintf-posix.c (vprintf): Likewise.
30760         * tests/test-vsnprintf.c (vsnprintf): Likewise.
30761         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
30762         * tests/test-wcrtomb.c (wcrtomb): Likewise.
30763         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
30764         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
30765         * tests/test-wcwidth.c (wcwidth): Likewise.
30766
30767         build: pull in conditional headers during GNULIB_POSIXCHECK
30768         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
30769         definitions from any conditionally-included headers.
30770         * lib/stdlib.in.h (includes): Likewise.
30771         * lib/unistd.in.h (includes): Likewise.
30772
30773 2009-12-24  Bruno Haible  <bruno@clisp.org>
30774
30775         * tests/test-argv-iter.c: Include header file being tested immediately
30776         after config.h.
30777         * tests/test-base64.c: Likewise.
30778         * tests/test-flock.c: Likewise.
30779         * tests/test-fsync.c: Likewise.
30780         * tests/test-getdate.c: Likewise.
30781         * tests/test-getndelim2.c: Likewise.
30782         * tests/test-isfinite.c: Likewise.
30783         * tests/test-isinf.c: Likewise.
30784         * tests/test-strerror.c: Likewise.
30785         * tests/test-strsignal.c: Likewise.
30786
30787 2009-12-23  Eric Blake  <ebb9@byu.net>
30788
30789         unistd: work around cygwin bug
30790         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
30791         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
30792         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
30793
30794 2009-12-23  Bruno Haible  <bruno@clisp.org>
30795
30796         localename: More tests.
30797         * tests/test-localename.c (SIZEOF): New macro.
30798         (categories): New variable.
30799         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
30800         test_locale_name_default): Add test w.r.t. thread locale.
30801         (test_locale_name_thread): New function.
30802         (main): Invoke it.
30803
30804         localename: Make aware of thread locale.
30805         * lib/localename.h (gl_locale_name_thread): New declaration.
30806         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
30807         behaviour with respect to thread locale.
30808         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
30809         <langinfo.h>, glthread/lock.h.
30810         (SIZE_BITS): New macro.
30811         (string_hash): New function.
30812         (struct hash_node): New type.
30813         (HASH_TABLE_SIZE): New macro.
30814         (struniq_hash_table, struniq_lock): New variables.
30815         (struniq): New function.
30816         (gl_locale_name_thread): New function.
30817         (gl_locale_name): Invoke it.
30818         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
30819         * modules/localename (Depends-on): Add lock.
30820         Reported by Mike Gran <spk121@yahoo.com>.
30821
30822 2009-12-23  Eric Blake  <ebb9@byu.net>
30823
30824         va-args: new module
30825         * modules/va-args: New file.
30826         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
30827         * MODULES.html.sh (Core language properties): Mention it.
30828
30829         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
30830         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
30831         named alias for __attribute__((__unused__)).
30832         * lib/chown.c: Update client.
30833         * lib/fchmodat.c: Likewise.
30834         * lib/fts.c: Likewise.
30835         * lib/getdate.y: Likewise.
30836         * lib/getgroups.c: Likewise.
30837         * lib/getopt.c: Likewise.
30838         * lib/getugroups.c: Likewise.
30839         * lib/mkdir.c: Likewise.
30840         * lib/mkfifo.c: Likewise.
30841         * lib/mkfifoat.c: Likewise.
30842         * lib/mknod.c: Likewise.
30843         * lib/mknodat.c: Likewise.
30844         * lib/readlink.c: Likewise.
30845         * lib/se-context.in.h: Likewise.
30846         * lib/se-selinux.in.h: Likewise.
30847         * lib/sockets.c: Likewise.
30848         * lib/symlink.c: Likewise.
30849         * lib/symlinkat.c: Likewise.
30850         * lib/unicodeio.c: Likewise.
30851         * lib/unistr.h: Likewise.
30852         * tests/test-areadlink.c: Likewise.
30853         * tests/test-areadlinkat.c: Likewise.
30854         * tests/test-filenamecat.c: Likewise.
30855         * tests/test-fseeko.c: Likewise.
30856         * tests/test-ftello.c: Likewise.
30857         * tests/test-getdate.c: Likewise.
30858         * tests/test-getgroups.c: Likewise.
30859         * tests/test-gethostname.c: Likewise.
30860         * tests/test-quotearg.c: Likewise.
30861         * tests/test-version-etc.c: Likewise.
30862         * tests/test-xalloc-die.c: Likewise.
30863         * tests/test-xfprintf-posix.c: Likewise.
30864         * tests/test-xprintf-posix.c: Likewise.
30865         * tests/test-xvasprintf.c: Likewise.
30866
30867         tests: avoid compiler warnings
30868         * tests/test-fcntl.c (main): Delete unused parameters.
30869         * tests/test-freopen-safer.c (main): Likewise.
30870         * tests/test-xalloc-die.c (main): Mark unused parameters.
30871         * tests/test-fseeko.c (main): Likewise.
30872         * tests/test-ftello.c (main): Likewise.
30873         * tests/test-nanosleep.c (main): Avoid declaration warning.
30874         * tests/test-sleep.c (main): Likewise.
30875         * tests/test-unsetenv.c (main): Silence warning about string
30876         literal.
30877         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
30878
30879 2009-12-23  Bruno Haible  <bruno@clisp.org>
30880
30881         * tests/test-localename.c (test_locale_name): New function, extracted
30882         from main. Also test mixed situations.
30883         (test_locale_name_posix, test_locale_name_environ,
30884         test_locale_name_default): New functions.
30885         (main): Invoke them all.
30886         * modules/localename-tests (configure.ac): Test for newlocale.
30887
30888 2009-12-23  Bruno Haible  <bruno@clisp.org>
30889
30890         unistd: Ensure getcwd gets declared before being overridden.
30891         * lib/unistd.in.h: Conditionally include <io.h>.
30892
30893 2009-12-22  Bruno Haible  <bruno@clisp.org>
30894
30895         wchar: Diagnose broken combination of glibc and gcc versions and flags.
30896         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
30897         (gl_WCHAR_H): Invoke it.
30898         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
30899         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
30900         Reported by Karl Berry <karl@freefriends.org>.
30901
30902 2009-12-22  Eric Blake  <ebb9@byu.net>
30903
30904         math, unistd: avoid redundant includes
30905         * lib/math.in.h (isnan): No need to re-include <math.h>.
30906         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
30907
30908         getsubopt: work around cygwin bug
30909         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
30910         avoid conflicting with system getsubopt.
30911         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
30912         bug.
30913
30914         getopt: synchronize from glibc
30915         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
30916         parameter order.  Adjust all callers.
30917         (_getopt_internal_r, main): Adjust quoting in error messages.
30918         Drop considerations for outdated POSIX 1003.2 error message.
30919         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
30920         callers.
30921         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
30922
30923         test-getopt: test stderr behavior
30924         * modules/getopt-posix-tests (Depends-on): Add dup2.
30925         * tests/test-getopt.c (ASSERT): Avoid stderr.
30926         (main): Move stderr to a temporary file.
30927         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
30928         Instead, add parameter to inform caller if output occurred.
30929         (test_getopt): Adjust all existing tests to expect silence, and
30930         add new tests of leading ":".
30931         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
30932         glibc shortcomings with leading "-:" or "+:" in optstring.
30933         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
30934         Likewise.
30935         * doc/posix-functions/getopt.texi (getopt): Likewise.
30936
30937         test-getopt: enhance test
30938         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
30939         supports optind=0.
30940         * tests/test-getopt.c (OPTIND_MIN): Move...
30941         * tests/test-getopt.h (OPTIND_MIN): ...here.
30942         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
30943         Require that optind=0 works, since modern BSD supports it in
30944         addition to optreset, and since coreutils expects it.
30945         (test_getopt_long_only): New test.
30946         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
30947         glibc shortcomings with 'W;', and enforcement of optind=0.
30948         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
30949         Likewise.
30950
30951 2009-12-21  Bruno Haible  <bruno@clisp.org>
30952
30953         localename: Improvements for MacOS X and Cygwin.
30954         * lib/localename.h (gl_locale_name_environ): New declaration.
30955         * lib/localename.c (gl_locale_name_environ): New function, extracted from
30956         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
30957         (gl_locale_name_posix): Invoke it.
30958         (gl_locale_name_default): Add comments. Use Windows native API also on
30959         Cygwin.
30960
30961 2009-12-21  Bruno Haible  <bruno@clisp.org>
30962
30963         Update list of Win32 locale ids.
30964         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
30965         (LANG_SAMI): Renamed from LANG_SAAMI.
30966         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
30967         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
30968         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
30969         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
30970         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
30971         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
30972         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
30973         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
30974         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
30975         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
30976         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
30977         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
30978         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
30979         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
30980         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
30981         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
30982         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
30983         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
30984         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
30985         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
30986         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
30987         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
30988         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
30989         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
30990         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
30991         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
30992         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
30993         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
30994         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
30995         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
30996         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
30997         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
30998         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
30999         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
31000         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
31001         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
31002         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
31003         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
31004         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
31005         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
31006         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
31007         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
31008         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
31009         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
31010         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
31011         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
31012         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
31013         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
31014         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
31015         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
31016         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
31017         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
31018         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
31019         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
31020         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
31021         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
31022         Add more languages and countries for Sami, Sorbian. Add more countries
31023         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
31024         for Pashto. Change country for Syriac, Tswana.
31025
31026 2009-12-21  Eric Blake  <ebb9@byu.net>
31027
31028         test-utimens: avoid spurious failure
31029         * tests/test-chown.h (nap): Factor...
31030         * tests/nap.h: ...into new file.
31031         * tests/test-lchown.h (nap): Avoid duplication.
31032         * tests/test-utimens-common.h (nap): Use shared implementation,
31033         necessary on file systems with 1-second resolution.
31034         * modules/chown-tests (Files): Include new file.
31035         * modules/fdutimensat-tests (Files): Likewise.
31036         * modules/futimens-tests (Files): Likewise.
31037         * modules/lchown-tests (Files): Likewise.
31038         * modules/openat-tests (Files): Likewise.
31039         * modules/utimens-tests (Files): Likewise.
31040         * modules/utimensat-tests (Files): Likewise.
31041
31042 2009-12-19  Eric Blake  <ebb9@byu.net>
31043
31044         futimens, utimensat: work around Linux bug
31045         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
31046         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
31047         * lib/utimensat.c (rpl_utimensat): Work around it.
31048         * lib/futimens.c (rpl_futimens): Adjust comment.
31049
31050         utimens: work around Linux ctime bug
31051         * lib/utimens.c (detect_ctime_bug): New helper function.
31052         (update_timespec): Differentiate between workaround needed for
31053         this bug vs. what is needed for systems that lack utimensat.
31054         (fdutimens, lutimens): Work around bug.
31055
31056         utimens: check for ctime update
31057         * tests/test-utimens-common.h (check_ctime): Define.
31058         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
31059         * tests/test-futimens.h (test_futimens): Likewise.
31060         * tests/test-lutimens.h (test_lutimens): Likewise.
31061         * doc/posix-functions/futimens.texi (futimens): Document the bug.
31062         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
31063
31064 2009-12-19  Bruno Haible  <bruno@clisp.org>
31065
31066         dprintf-posix: Check against memory leak fixed on 2009-12-15.
31067         * tests/test-dprintf-posix2.sh: New file.
31068         * tests/test-dprintf-posix2.c: New file.
31069         * modules/dprintf-posix-tests (Files): Add them.
31070         (configure.ac): Check for getrlimit and setrlimit.
31071         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
31072
31073 2009-12-19  Bruno Haible  <bruno@clisp.org>
31074
31075         fprintf-posix: Check against memory leak fixed on 2009-12-15.
31076         * tests/test-fprintf-posix3.sh: New file.
31077         * tests/test-fprintf-posix3.c: New file.
31078         * modules/fprintf-posix-tests (Files): Add them.
31079         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
31080
31081 2009-12-19  Eric Blake  <ebb9@byu.net>
31082
31083         dirfd: fix prototype
31084         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
31085         * lib/dirfd.c (dirfd): Likewise.
31086
31087         canonicalize: reduce memory usage
31088         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
31089         allocation to size.
31090         Reported by Solar Designer <solar@openwall.com>.
31091
31092 2009-12-19  Bruno Haible  <bruno@clisp.org>
31093
31094         New module attribute 'Applicability'.
31095         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
31096         * gnulib-tool: New option --extract-applicability.
31097         (func_usage): Document it.
31098         (sed_extract_prog): Recognize it.
31099         (func_get_applicability): New function.
31100         (func_import): Generalize handling of 'link-warning' module.
31101         * modules/link-warning (Applicability): New section.
31102         * modules/arg-nonnull (Applicability): New section.
31103         Repoted by Simon Josefsson <simon@josefsson.org>.
31104
31105 2009-12-19  Bruno Haible  <bruno@clisp.org>
31106
31107         fflush: tweak
31108         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
31109         * lib/fseeko.c (rpl_fseeko): Likewise.
31110
31111 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
31112
31113         * lib/gl_list.h: Fix typo in comment.
31114
31115 2009-12-16  Eric Blake  <ebb9@byu.net>
31116
31117         fcntl: use to simplify other modules
31118         * modules/cloexec (Depends-on): Add fcntl.
31119         * modules/fchdir (Depends-on): Likewise.
31120         * modules/fd-safer-flag (Depends-on): Likewise.
31121         * modules/unistd-safer (Depends-on): Likewise.
31122         * modules/dup3 (configure.ac): Set module indicator.
31123         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
31124         missing.
31125         * lib/fchdir.c (_gl_register_dup): Fix comment.
31126         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
31127         * lib/dup-safer.c (dup_safer): Likewise.
31128         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
31129         * lib/dup3.c (dup3): Likewise.
31130         * tests/test-fchdir.c (main): Enhance test.
31131         Fixes a dup_cloexec bug reported by Ondřej Vašík.
31132
31133         fcntl: port portions of fcntl to mingw
31134         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
31135         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
31136         replacement for mingw.
31137         * modules/fcntl (Description): Update.
31138         (Depends-on): Add dup2.
31139         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
31140         * modules/fcntl-h (Makefile.am): Substitute it.
31141         * lib/fcntl.in.h (fcntl): Update declaration.
31142         (F_DUPFD, F_GETFD): New macros, when needed.
31143         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
31144         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
31145         * tests/test-fcntl.c (check_flags, main): Enhance test for items
31146         we now guarantee.
31147
31148         fcntl: work around cygwin bug in F_DUPFD
31149         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
31150         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
31151         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
31152         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
31153         * doc/posix-functions/fcntl.texi (fcntl): Document it.
31154
31155         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
31156         * modules/fcntl (Files): List new files.
31157         (configure.ac): Run a test.
31158         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
31159         * lib/fcntl.c (rpl_fcntl): Likewise.
31160         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
31161         (gl_FCNTL_H): Always replace fcntl.h.
31162         * modules/fcntl-h (Makefile.am): Substitute witnesses.
31163         * lib/fcntl.in.h (fcntl): Declare replacement.
31164         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
31165         needed, plus a witness.
31166         * doc/posix-functions/fcntl.texi (fcntl): Document this.
31167         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
31168         * tests/test-fcntl.c: New file.
31169         * modules/fcntl-tests: Likewise.
31170
31171         binary-io: avoid potential compilation warning
31172         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
31173         directives.
31174
31175         fflush: avoid compilation error on NetBSD
31176         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
31177         between off_t and fpos_t, since the latter is sometimes a struct.
31178         * lib/fseeko.c (rpl_fseeko): Likewise.
31179         Reported by Alexander Nasonov <alnsn@yandex.ru>.
31180
31181 2009-12-15  Eric Blake  <ebb9@byu.net>
31182
31183         fcntl-h, stdio, sys_ioctl: fix declarations
31184         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
31185         function must not take arguments.
31186         * lib/sys_ioctl.in.h (ioctl): Likewise.
31187         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
31188         (open): Add a link warning.
31189
31190 2009-12-15  Jim Meyering  <meyering@redhat.com>
31191
31192         areadlink, areadlink-with-size: relax license to LGPLv2+
31193         * modules/areadlink (License): Relax to LGPLv2+.
31194         * modules/areadlink-with-size (License): Likewise.
31195
31196 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
31197             Bruno Haible  <bruno@clisp.org>
31198
31199         *printf: Fix memory leak.
31200         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
31201         * lib/vfprintf.c (vfprintf): Likewise.
31202         * lib/dprintf.c (dprintf): Likewise.
31203         * lib/vdprintf.c (vdprintf): Likewise.
31204
31205 2009-12-14  Eric Blake  <ebb9@byu.net>
31206
31207         accept4: adjust module dependencies
31208         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
31209
31210         utimens: one more try at avoiding compiler warning
31211         * lib/utimens.c (lutimens): Lower scope of result.
31212
31213 2009-12-13  Bruno Haible  <bruno@clisp.org>
31214
31215         Move the malloc checking from module 'list' to new module 'xlist'.
31216         * modules/xlist: New file.
31217         * lib/gl_xlist.h: New file.
31218         * lib/gl_xlist.c: New file.
31219         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
31220         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
31221         gl_list_add_last, gl_list_add_before, gl_list_add_after,
31222         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
31223         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
31224         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
31225         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
31226         gl_sortedlist_nx_add): New declarations.
31227         (struct gl_list_implementation): Rename and change methods accordingly.
31228         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
31229         (gl_list_nx_create): Renamed from gl_list_create.
31230         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
31231         (gl_list_nx_set_at): Renamed from gl_list_set_at.
31232         (gl_list_nx_add_first): Renamed from gl_list_add_first.
31233         (gl_list_nx_add_last): Renamed from gl_list_add_last.
31234         (gl_list_nx_add_before): Renamed from gl_list_add_before.
31235         (gl_list_nx_add_after): Renamed from gl_list_add_after.
31236         (gl_list_nx_add_at): Renamed from gl_list_add_at.
31237         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
31238         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
31239         gl_list_create_empty.
31240         (gl_list_nx_create): Renamed from gl_list_create.
31241         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
31242         (gl_list_nx_set_at): Renamed from gl_list_set_at.
31243         (gl_list_nx_add_first): Renamed from gl_list_add_first.
31244         (gl_list_nx_add_last): Renamed from gl_list_add_last.
31245         (gl_list_nx_add_before): Renamed from gl_list_add_before.
31246         (gl_list_nx_add_after): Renamed from gl_list_add_after.
31247         (gl_list_nx_add_at): Renamed from gl_list_add_at.
31248         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
31249         * lib/gl_array_list.c: Don't include xalloc.h.
31250         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
31251         NULL upon out-of-memory.
31252         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
31253         out-of-memory.
31254         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
31255         Change return type to 'int'.
31256         (gl_array_nx_set_at): Renamed from gl_array_set_at.
31257         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
31258         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
31259         upon out-of-memory.
31260         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
31261         upon out-of-memory.
31262         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
31263         upon out-of-memory.
31264         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
31265         upon out-of-memory.
31266         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
31267         out-of-memory.
31268         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
31269         Update.
31270         (gl_array_list_implementation): Update.
31271         * lib/gl_carray_list.c: Don't include xalloc.h.
31272         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
31273         Return NULL upon out-of-memory.
31274         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
31275         out-of-memory.
31276         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
31277         Change return type to 'int'.
31278         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
31279         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
31280         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
31281         upon out-of-memory.
31282         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
31283         upon out-of-memory.
31284         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
31285         out-of-memory.
31286         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
31287         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
31288         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
31289         Update.
31290         (gl_carray_list_implementation): Update.
31291         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
31292         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
31293         gl_linked_create_empty. Return NULL upon out-of-memory.
31294         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
31295         out-of-memory.
31296         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
31297         Change return type to 'int'. Return -1 upon out-of-memory.
31298         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
31299         out-of-memory.
31300         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
31301         upon out-of-memory.
31302         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
31303         upon out-of-memory.
31304         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
31305         NULL upon out-of-memory.
31306         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
31307         upon out-of-memory.
31308         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
31309         out-of-memory.
31310         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
31311         Update.
31312         * lib/gl_linked_list.c: Don't include xalloc.h.
31313         (gl_linked_list_implementation): Update.
31314         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
31315         (add_to_bucket): Change return type to 'int'.
31316         (gl_linkedhash_list_implementation): Update.
31317         * lib/gl_anytree_list1.h (free_subtree): New function.
31318         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
31319         gl_tree_create_empty. Return NULL upon out-of-memory.
31320         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
31321         Change return type to 'int'. Return -1 upon out-of-memory.
31322         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
31323         out-of-memory.
31324         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
31325         (gl_tree_remove_node): New function, moved here from
31326         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
31327         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
31328         Update.
31329         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
31330         malloc, not xmalloc. Return NULL upon out-of-memory.
31331         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
31332         out-of-memory.
31333         (gl_tree_remove_node_from_tree): New function, extracted from
31334         gl_tree_remove_node.
31335         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
31336         upon out-of-memory.
31337         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
31338         out-of-memory.
31339         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
31340         upon out-of-memory.
31341         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
31342         upon out-of-memory.
31343         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
31344         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
31345         not xmalloc. Return NULL upon out-of-memory.
31346         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
31347         out-of-memory.
31348         (gl_tree_remove_node_from_tree): New function, extracted from
31349         gl_tree_remove_node.
31350         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
31351         upon out-of-memory.
31352         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
31353         out-of-memory.
31354         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
31355         upon out-of-memory.
31356         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
31357         upon out-of-memory.
31358         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
31359         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
31360         gl_anytree_list1.h before gl_anyavltree_list2.h.
31361         (gl_avltree_list_implementation): Update.
31362         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
31363         gl_anytree_list1.h before gl_anyavltree_list2.h.
31364         (gl_rbtree_list_implementation): Update.
31365         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
31366         Change return type to 'int'. Return -1 upon out-of-memory. Use
31367         __builtin_expect.
31368         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
31369         (gl_avltreehash_list_implementation): Update.
31370         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
31371         (gl_rbtreehash_list_implementation): Update.
31372         * modules/array-list (Depends-on): Remove xalloc.
31373         * modules/carray-list (Depends-on): Likewise.
31374         * modules/linked-list (Depends-on): Likewise.
31375         * modules/linkedhash-list (Depends-on): Likewise.
31376         * modules/avltree-list (Depends-on): Likewise.
31377         * modules/rbtree-list (Depends-on): Likewise.
31378         * modules/avltreehash-list (Depends-on): Likewise.
31379         * modules/rbtreehash-list (Depends-on): Likewise.
31380
31381         * modules/xsublist: New file.
31382         * lib/gl_xsublist.h: New file.
31383         * lib/gl_xsublist.c: New file.
31384         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
31385         (gl_sublist_nx_create): New declaration.
31386         * lib/gl_sublist.c: Don't include xalloc.h.
31387         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
31388         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
31389         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
31390         Change return type to 'int'. Return -1 upon out-of-memory.
31391         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
31392         upon out-of-memory.
31393         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
31394         NULL upon out-of-memory.
31395         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
31396         upon out-of-memory.
31397         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
31398         NULL upon out-of-memory.
31399         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
31400         NULL upon out-of-memory.
31401         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
31402         upon out-of-memory.
31403         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
31404         (gl_sublist_list_implementation): Update.
31405         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
31406         upon out-of-memory.
31407         * modules/sublist (Depends-on): Remove xalloc.
31408
31409         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
31410         * tests/test-carray_list.c: Likewise.
31411         * tests/test-linked_list.c: Likewise.
31412         * tests/test-linkedhash_list.c: Likewise.
31413         * tests/test-avltree_list.c: Likewise.
31414         * tests/test-rbtree_list.c: Likewise.
31415         * tests/test-avltreehash_list.c: Likewise.
31416         * tests/test-rbtreehash_list.c: Likewise.
31417         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
31418         * modules/carray-list-tests (Makefile.am): Likewise.
31419         * modules/linked-list-tests (Makefile.am): Likewise.
31420         * modules/linkedhash-list-tests (Makefile.am): Likewise.
31421         * modules/avltree-list-tests (Makefile.am): Likewise.
31422         * modules/rbtree-list-tests (Makefile.am): Likewise.
31423         * modules/avltreehash-list-tests (Makefile.am): Likewise.
31424         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
31425
31426         * NEWS: Mention the changes.
31427
31428         * lib/clean-temp.c: Include gl_xlist.h.
31429         * modules/clean-temp (Depends-on): Add xlist.
31430
31431         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
31432         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
31433
31434         * tests/test-array_oset.c: Include gl_xlist.h.
31435         * modules/array-oset-tests (Depends-on): Add xlist.
31436
31437         Reported by José E. Marchesi <jemarch@gnu.org>.
31438
31439 2009-12-13  Bruno Haible  <bruno@clisp.org>
31440
31441         Move the malloc checking from module 'oset' to new module 'xoset'.
31442         * modules/xoset: New file.
31443         * lib/gl_xoset.h: New file.
31444         * lib/gl_xoset.c: New file.
31445         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
31446         declarations.
31447         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
31448         (struct gl_oset_implementation): Rename and change methods accordingly.
31449         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
31450         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
31451         'int'. Mark as __warn_unused_result__.
31452         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
31453         gl_oset_create_empty.
31454         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
31455         'int'.
31456         * lib/gl_array_oset.c: Don't include xalloc.h.
31457         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
31458         malloc, not xmalloc.
31459         (grow): Change return type to 'int'. Don't call xalloc_die.
31460         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
31461         to 'int'.
31462         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
31463         'int'.
31464         (gl_array_oset_implementation): Update.
31465         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
31466         gl_tree_create_empty.
31467         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
31468         'int'.
31469         * lib/gl_avltree_oset.c: Don't include xalloc.h.
31470         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
31471         xmalloc.
31472         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
31473         not xmalloc.
31474         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
31475         xmalloc.
31476         (gl_avltree_oset_implementation): Update.
31477         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
31478         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
31479         xmalloc.
31480         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
31481         not xmalloc.
31482         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
31483         xmalloc.
31484         (gl_rbtree_oset_implementation): Update.
31485         * modules/array-oset (Depends-on): Remove xalloc.
31486         * modules/avltree-oset (Depends-on): Likewise.
31487         * modules/rbtree-oset (Depends-on): Likewise.
31488         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
31489         * tests/test-avltree_oset.c: Likewise.
31490         * tests/test-rbtree_oset.c: Likewise.
31491         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
31492         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
31493         * modules/rbtree-oset-tests (Makefile.am): Likewise.
31494         * NEWS: Mention the change.
31495
31496 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
31497
31498         maint.mk: allow a project to override release-prep commands
31499         * top/maint.mk (alpha, beta, stable): Move release-preparatory
31500         commands into a new rule.
31501         (release-prep): New rule.
31502         (release-prep-hook): New overridable variable.
31503
31504 2009-12-13  Bruno Haible  <bruno@clisp.org>
31505
31506         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
31507
31508 2009-12-13  Jim Meyering  <meyering@redhat.com>
31509
31510         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
31511         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
31512
31513 2009-12-12  Bruno Haible  <bruno@clisp.org>
31514
31515         duplocale: Tweak.
31516         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
31517
31518 2009-12-12  Karl Berry  <karl@gnu.org>
31519
31520         * config/srclist.txt (strtoll.c): tab changes, no more sync.
31521
31522 2009-12-12  Bruno Haible  <bruno@clisp.org>
31523
31524         * m4/po.m4: Undo incorrect untabification.
31525
31526 2009-12-12  Bruno Haible  <bruno@clisp.org>
31527
31528         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
31529         * modules/c-strtod (Depends-on): Add locale.
31530         * modules/c-strtold (Depends-on): Likewise.
31531
31532 2009-12-12  Bruno Haible  <bruno@clisp.org>
31533
31534         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
31535
31536 2009-12-11  Eric Blake  <ebb9@byu.net>
31537
31538         setenv: relax requirement in light of POSIX ruling
31539         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
31540         not NULL.
31541         * tests/test-setenv.c (main): Relax test.
31542         * tests/test-unsetenv.c (main): Likewise.
31543         * doc/posix-functions/setenv.texi (setenv): Document this.
31544         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
31545
31546 2009-12-11  Bruno Haible  <bruno@clisp.org>
31547
31548         New module 'fd-safer-flag'.
31549         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
31550         * lib/dup-safer.c (dup_safer_flag): Remove function.
31551         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
31552         * lib/fd-safer.c (fd_safer_flag): Remove function.
31553         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
31554         * modules/cloexec (configure.ac): Drop indicator macro.
31555         * modules/fd-safer-flag: New file.
31556         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
31557         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
31558         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
31559
31560 2009-12-11  Bruno Haible  <bruno@clisp.org>
31561
31562         Tests for module 'nl_langinfo'.
31563         * modules/nl_langinfo-tests: New file.
31564         * tests/test-nl_langinfo.sh: New file.
31565         * tests/test-nl_langinfo.c: New file.
31566
31567         New module 'nl_langinfo'.
31568         * lib/nl_langinfo.c: New file.
31569         * m4/nl_langinfo.m4: New file.
31570         * modules/nl_langinfo: New file.
31571         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
31572
31573 2009-12-11  Bruno Haible  <bruno@clisp.org>
31574
31575         Tests for module 'langinfo'.
31576         * modules/langinfo-tests: New file.
31577         * tests/test-langinfo.c: New file.
31578
31579         New module 'langinfo'.
31580         * lib/langinfo.in.h: New file.
31581         * m4/langinfo_h.m4: New file.
31582         * modules/langinfo: New file.
31583         * doc/posix-headers/langinfo.texi: Mention the new module.
31584
31585 2009-12-11  Bruno Haible  <bruno@clisp.org>
31586
31587         * lib/config.charset: Untabify.
31588
31589 2009-12-11  Bruno Haible  <bruno@clisp.org>
31590
31591         * modules/unistd-safer (configure.ac): Drop indicator macro.
31592
31593 2009-12-11  Bruno Haible  <bruno@clisp.org>
31594
31595         Move pipe2-safer code to its own file.
31596         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
31597         * lib/pipe-safer.c (pipe2_safer): Remove function.
31598         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
31599         (Makefile.am): Add it to lib_SOURCES.
31600
31601 2009-12-10  Bruno Haible  <bruno@clisp.org>
31602
31603         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
31604
31605 2009-12-10  Bruno Haible  <bruno@clisp.org>
31606
31607         Declare which arguments expect non-NULL values, for GCC and clang.
31608         * build-aux/arg-nonnull.h: New file.
31609         * modules/arg-nonnull: New file.
31610         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
31611         (inet_ntop, inet_pton): Use it.
31612         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
31613         (closedir, dirfd, opendir, scandir, alphasort): Use it.
31614         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
31615         (open, openat): Use it.
31616         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
31617         (fnmatch): Use it.
31618         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
31619         (getopt, getopt_long, getopt_long_only): Use it.
31620         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
31621         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
31622         Use it.
31623         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
31624         (iconv_open): Use it.
31625         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
31626         (strtoimax, strtoumax): Use it.
31627         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
31628         (duplocale): Use it.
31629         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
31630         (frexp, frexpl): Use it.
31631         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
31632         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
31633         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
31634         (tsearch, tfind, tdelete, twalk): Use it.
31635         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
31636         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
31637         sigpending): Use it.
31638         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
31639         (posix_spawn, posix_spawnp, posix_spawnattr_init,
31640         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
31641         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
31642         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
31643         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
31644         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
31645         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
31646         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
31647         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
31648         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
31649         Use it.
31650         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
31651         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
31652         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
31653         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
31654         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
31655         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
31656         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
31657         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
31658         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
31659         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
31660         strtoull, unsetenv): Use it.
31661         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
31662         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
31663         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
31664         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
31665         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
31666         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
31667         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
31668         (strcasecmp, strncasecmp): Use it.
31669         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
31670         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
31671         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
31672         rpl_setsockopt): Use it.
31673         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
31674         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
31675         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
31676         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
31677         (gettimeofday): Use it.
31678         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
31679         (times): Use it.
31680         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
31681         (uname): Use it.
31682         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
31683         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
31684         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
31685         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
31686         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
31687         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
31688         unlinkat, write): Use it.
31689         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
31690         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
31691         * lib/argv-iter.h: Include arg-nonnull.h.
31692         (_ATTRIBUTE_NONNULL_): Remove macro.
31693         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
31694         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
31695         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
31696         optimization.
31697         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
31698         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
31699         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
31700         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
31701         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
31702         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
31703         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
31704         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
31705         * modules/arpa_inet (Depends-on): Add arg-nonnull.
31706         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
31707         * modules/dirent (Depends-on): Add arg-nonnull.
31708         (Makefile.am): Insert arg-nonnull.h into dirent.h.
31709         * modules/fcntl-h (Depends-on): Add arg-nonnull.
31710         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
31711         * modules/fnmatch (Depends-on): Add arg-nonnull.
31712         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
31713         * modules/getopt-posix (Depends-on): Add arg-nonnull.
31714         (Makefile.am): Insert arg-nonnull.h into getopt.h.
31715         * modules/glob (Depends-on): Add arg-nonnull.
31716         (Makefile.am): Insert arg-nonnull.h into glob.h.
31717         * modules/iconv_open (Depends-on): Add arg-nonnull.
31718         (Makefile.am): Insert arg-nonnull.h into iconv.h.
31719         * modules/inttypes (Depends-on): Add arg-nonnull.
31720         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
31721         * modules/locale (Depends-on): Add arg-nonnull.
31722         (Makefile.am): Insert arg-nonnull.h into locale.h.
31723         * modules/math (Depends-on): Add arg-nonnull.
31724         (Makefile.am): Insert arg-nonnull.h into math.h.
31725         * modules/netdb (Depends-on): Add arg-nonnull.
31726         (Makefile.am): Insert arg-nonnull.h into netdb.h.
31727         * modules/search (Depends-on): Add arg-nonnull.
31728         (Makefile.am): Insert arg-nonnull.h into search.h.
31729         * modules/signal (Depends-on): Add arg-nonnull.
31730         (Makefile.am): Insert arg-nonnull.h into signal.h.
31731         * modules/spawn (Depends-on): Add arg-nonnull.
31732         (Makefile.am): Insert arg-nonnull.h into spawn.h.
31733         * modules/stdio (Depends-on): Add arg-nonnull.
31734         (Makefile.am): Insert arg-nonnull.h into stdio.h.
31735         * modules/stdlib (Depends-on): Add arg-nonnull.
31736         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
31737         * modules/string (Depends-on): Add arg-nonnull.
31738         (Makefile.am): Insert arg-nonnull.h into string.h.
31739         * modules/strings (Depends-on): Add arg-nonnull.
31740         (Makefile.am): Insert arg-nonnull.h into strings.h.
31741         * modules/sys_socket (Depends-on): Add arg-nonnull.
31742         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
31743         * modules/sys_stat (Depends-on): Add arg-nonnull.
31744         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
31745         * modules/sys_time (Depends-on): Add arg-nonnull.
31746         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
31747         * modules/sys_times (Depends-on): Add arg-nonnull.
31748         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
31749         * modules/sys_utsname (Depends-on): Add arg-nonnull.
31750         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
31751         * modules/time (Depends-on): Add arg-nonnull.
31752         (Makefile.am): Insert arg-nonnull.h into time.h.
31753         * modules/unistd (Depends-on): Add arg-nonnull.
31754         (Makefile.am): Insert arg-nonnull.h into unistd.h.
31755         * modules/wchar (Depends-on): Add arg-nonnull.
31756         (Makefile.am): Insert arg-nonnull.h into wchar.h.
31757         * modules/argv-iter (Depends-on): Add arg-nonnull.
31758         * tests/test-canonicalize.c (null_ptr): New function.
31759         (main): Use it.
31760         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
31761         (main): Use it.
31762         * tests/test-memmem.c (null_ptr): New function.
31763         (main): Use it.
31764         Reported by Jim Meyering.
31765
31766 2009-12-10  Bruno Haible  <bruno@clisp.org>
31767
31768         Use spaces for indentation, not tabs.
31769         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
31770         * m4/*.m4: Untabify.
31771         * build-aux/*.h: Untabify.
31772         * tests/**/*.[hc]: Untabify.
31773         * README: New section "Indent with spaces, not TABs", based on
31774         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
31775         * NEWS: Mention the change.
31776
31777 2009-12-10  Bruno Haible  <bruno@clisp.org>
31778
31779         pty test: Fix link error.
31780         * modules/pty-tests (Makefile.am): Add the default LDADD value to
31781         test_pty_LDADD.
31782
31783 2009-12-07  Simon Josefsson  <simon@josefsson.org>
31784
31785         * modules/pty: New file.
31786         * modules/pty-tests: New file.
31787         * m4/pty.m4: New file.
31788         * tests/test-pty.c: New file.
31789         * doc/glibc-headers/pty.texi: Modified.
31790         * doc/glibc-functions/forkpty.texi: Modified.
31791         * doc/glibc-functions/openpty.texi: Modified.
31792
31793 2009-12-10  Bruno Haible  <bruno@clisp.org>
31794
31795         Avoid syntax error in C++ mode.
31796         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
31797
31798 2009-12-10  Bruno Haible  <bruno@clisp.org>
31799
31800         Use sed with option -e.
31801         * gnulib-tool (func_version, func_emit_copyright_notice,
31802         func_emit_initmacro_end, func_import, func_create_testdir): Pass
31803         option -e to sed.
31804         * modules/link-warning (Makefile.am): Likewise.
31805
31806 2009-12-10  Jim Meyering  <meyering@redhat.com>
31807
31808         mgetgroups: do not write bytes beyond end of malloc'd buffer
31809         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
31810         username, we call getgroups with a one-element-shorter buffer,
31811         but still told it the length was original, max_n_groups.
31812
31813 2009-12-09  Eric Blake  <ebb9@byu.net>
31814
31815         cloexec: relax license
31816         * modules/cloexec (Maintainer): Add myself.
31817         (License): Use LGPL, not GPL.
31818
31819         link-warning: optimize generation
31820         * modules/link-warning (Makefile.am): Reduce process usage.
31821
31822 2009-12-09  Bruno Haible  <bruno@clisp.org>
31823
31824         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
31825         workaround was added on 2009-11-17.
31826
31827 2009-12-09  Jim Meyering  <meyering@redhat.com>
31828             Bruno Haible  <bruno@clisp.org>
31829
31830         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
31831         * modules/link-warning (Makefile.am): Make the comment-removing sed
31832         command more robust in the face of bootstrap-prepended comment lines.
31833
31834 2009-12-09  Bruno Haible  <bruno@clisp.org>
31835
31836         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
31837         most one group.
31838
31839 2009-12-09  Simon Josefsson <simon@josefsson.org>
31840             Bruno Haible  <bruno@clisp.org>
31841
31842         * build-aux/link-warning.h: Add copyright notice.
31843         * modules/link-warning (Makefile.am): Generate link-warning.h from
31844         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
31845         * NEWS: Mention change in link-warning module.
31846         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
31847         * modules/dirent (Makefile.am): Add dependency to dirent.h.
31848         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
31849         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
31850         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
31851         * modules/math (Makefile.am): Add dependency to math.h.
31852         * modules/search (Makefile.am): Add dependency to search.h.
31853         * modules/signal (Makefile.am): Add dependency to signal.h.
31854         * modules/spawn (Makefile.am): Add dependency to spawn.h.
31855         * modules/stdio (Makefile.am): Add dependency to stdio.h.
31856         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
31857         * modules/string (Makefile.am): Add dependency to string.h.
31858         * modules/strings (Makefile.am): Add dependency to strings.h.
31859         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
31860         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
31861         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
31862         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
31863         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
31864         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
31865         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
31866         * modules/unistd (Makefile.am): Add dependency to unistd.h.
31867         * modules/wchar (Makefile.am): Add dependency to wchar.h.
31868
31869 2009-12-09  Bruno Haible  <bruno@clisp.org>
31870
31871         fchdir: Optimize away rpl_fstat when possible.
31872         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
31873         REPLACE_OPEN_DIRECTORY.
31874         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
31875
31876 2009-12-09  Bruno Haible  <bruno@clisp.org>
31877
31878         * lib/fchdir.c: Update comment.
31879
31880 2009-12-09  Bruno Haible  <bruno@clisp.org>
31881
31882         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
31883
31884 2009-12-08  Eric Blake  <ebb9@byu.net>
31885
31886         fchdir: avoid memory leak on re-registration.
31887         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
31888
31889 2009-12-08  Jim Meyering  <meyering@redhat.com>
31890
31891         init.sh: avoid Solaris 10 /bin/sh portability problem
31892         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
31893         sourced script:
31894           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
31895           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
31896           bar
31897         tests/init.sh relied on that, accepting a --set-path=DIR argument,
31898         and two tests used that idiom.
31899         * tests/init.sh: Update suggested usage comments.
31900         (path_prepend_): New function, to be used in place
31901         of the --src-path=DIR option.
31902         (setup_): Move PATH-prepending code into path_prepend_.
31903         * tests/test-pread.sh: Adapt to new usage.
31904         * tests/test-xalloc-die.sh: Likewise.
31905
31906 2009-12-08  Simon Josefsson  <simon@josefsson.org>
31907
31908         * doc/gnulib.texi (Glibc pty.h): Add.
31909         * doc/glibc-functions/forkpty.texi: Add.
31910         * doc/glibc-functions/openpty.texi: Add.
31911         Suggested by Bruno Haible.
31912
31913 2009-12-08  Eric Blake  <ebb9@byu.net>
31914
31915         fchdir: fix logic bugs
31916         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
31917         * tests/test-fchdir.c (main): Enhance test.
31918         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
31919         is in use.
31920
31921         dup2: fix logic bugs
31922         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
31923         REPLACE_DUP2 to decide when rpl_dup2 is needed.
31924         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
31925         exists.
31926         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
31927
31928 2009-12-07  Eric Blake  <ebb9@byu.net>
31929
31930         unlink: fix m4 detection
31931         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
31932
31933         unistd-safer: add unit test
31934         * modules/unistd-safer-tests: New file.
31935         * tests/test-dup-safer.c: Likewise.
31936         * tests/test-cloexec.c (setmode): Avoid compiler warning.
31937         * tests/test-dup2.c (setmode): Likewise.
31938         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
31939
31940         cloexec: preserve text vs. binary across dup_cloexec
31941         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
31942         mode.
31943         * modules/dup2-tests (Depends-on): Add binary-io.
31944         * modules/cloexec-tests (Depends-on): Likewise.
31945         * tests/test-dup2.c (setmode, is_mode): New helpers.
31946         (main): Add tests that translation mode is preserved.
31947         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
31948         Reported by Bruno Haible.
31949
31950         mgetgroups: reduce duplicate listings
31951         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
31952         resulting array.
31953         * tests/test-chown.h (test_chown): Simplify client.
31954         * tests/test-lchown.h (test_lchown): Likewise.
31955
31956 2009-12-06  Bruno Haible  <bruno@clisp.org>
31957
31958         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
31959         value.
31960
31961 2009-12-06  Bruno Haible  <bruno@clisp.org>
31962
31963         * lib/progname.c: Include stdio.h, stdlib.h.
31964         (set_program_name): Reject a NULL argument.
31965
31966 2009-12-05  Eric Blake  <ebb9@byu.net>
31967
31968         pipe2-safer: new module
31969         * modules/pipe2-safer: New file.
31970         * lib/unistd-safer.h (pipe2_safer): New prototype.
31971         * lib/unistd--.h (pipe2): New wrapper.
31972         * lib/pipe-safer.c (pipe2_safer): New function.
31973         * modules/pipe (Depends-on): Add pipe2-safer.
31974         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
31975
31976         stdlib-safer: preserve cloexec flag for mkostemp[s]
31977         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
31978         fd_safer_flag.
31979
31980         unistd-safer: allow preservation of cloexec status via flag
31981         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
31982         prototypes.
31983         * lib/dup-safer.c (dup_safer_flag): New function.
31984         * lib/fd-safer.c (fd_safer_flag): Likewise.
31985         * modules/cloexec (configure.ac): Set witness.
31986
31987         test-dup2: enhance test
31988         * modules/dup2-tests (Depends-on): Add cloexec.
31989         * tests/test-dup2.c (main): Enhance test.
31990
31991         cloexec: add dup_cloexec
31992         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
31993         header and comments.
31994         * lib/cloexec.c (set_cloexec_flag): Add comments.
31995         (dup_cloexec): New function, with mingw implementation borrowed
31996         from...
31997         * lib/w32spawn.h (dup_noinherit): ...here.
31998         * modules/execute (Depends-on): Add cloexec.
31999         * modules/pipe (Depends-on): Likewise.
32000         * modules/cloexec (Depends-on): Add dup2.
32001         * modules/cloexec-tests (Files): New file.
32002         * tests/test-cloexec.c: Likewise.
32003
32004         test-xalloc-die: fix test for mingw
32005         * modules/xalloc-die-tests (Files): Add tests/init.sh.
32006         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
32007         directory and .exe suffix off argv[0] output.
32008
32009         test-fseeko: fix test for mingw
32010         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
32011         than undefining fseek, so test will pass on mingw.
32012
32013 2009-12-05  Bruno Haible  <bruno@clisp.org>
32014
32015         * lib/progname.h (set_program_name): Clarify specification.
32016         * lib/progname.c (set_program_name): Likewise.
32017         Reported by Jim Meyering.
32018
32019 2009-12-05  Jim Meyering  <meyering@redhat.com>
32020
32021         maint.mk: backslash-escape parens in default regexp
32022         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
32023         backslash-escape the literal parentheses.
32024
32025         maint.mk: news-date-check: use grep -E
32026         * top/maint.mk (today): Define a Make variable, not a...
32027         (news-date-check): ...shell variable.
32028         (news-date-regexp): Use the Make variable.
32029         Use grep's -E option.  Change the failing diagnostic to mention
32030         the variable, $(news-date-regexp).
32031
32032 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
32033
32034         maintainer-makefile: allow customization of NEWS entry format
32035         * top/maint.mk (news-date-regexp): New overridable variable.
32036         (news-date-check): Use it.
32037
32038 2009-12-04  Eric Blake  <ebb9@byu.net>
32039
32040         mgetgroups: add xgetgroups, and avoid ENOSYS failures
32041         * lib/mgetgroups.h (xgetgroups): New prototype.
32042         * lib/mgetgroups.c (xgetgroups): New wrapper.
32043         (mgetgroups): Handle ENOSYS.
32044         * modules/mgetgroups (Depends-on): Add realloc.
32045         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
32046
32047         mgetgroups: avoid argument promotion issues with -1
32048         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
32049         for invalid gid_t.
32050         * tests/test-chown.h (getegid, test_chown): Likewise.
32051         * tests/test-lchown.h (getegid, test_lchown): Likewise.
32052
32053 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
32054
32055         exclude: Fix header file problems.
32056         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
32057
32058 2009-12-01  Jim Meyering  <meyering@redhat.com>
32059
32060         fts: fts_open: do not let an empty string cause immediate failure
32061         This is required in support of GNU rm, for which the command
32062         "rm A '' B" must process and remove both A and B, in spite of
32063         the empty string argument.
32064         * lib/fts.c (fts_open): Do not let the presence of an empty string
32065         cause fts_open to fail immediately.  Most fts-using tools must be
32066         able to process all arguments, in order, and can be expected to
32067         diagnose such arguments themselves.
32068
32069 2009-11-30  Eric Blake  <ebb9@byu.net>
32070
32071         utimens: fix compilation error
32072         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
32073         Declare variable at right scope.
32074
32075 2009-11-29  Jim Meyering  <meyering@redhat.com>
32076
32077         bootstrap: handle perl-5.11's changed --version output
32078         * build-aux/bootstrap (get_version): Handle perl separately,
32079         since perl-5.11's --version output is different.
32080
32081 2009-11-28  Jim Meyering  <meyering@redhat.com>
32082
32083         userspec: depend on the inttostr module, too
32084         * modules/userspec (Depends-on): Add inttostr.
32085
32086         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
32087         * lib/userspec.c (parse_with_separator): Do not accept a user ID
32088         number of MAXUID when it evaluates to (uid_t) -1.
32089         Likewise for group ID.  Reported by Matt McCutchen in
32090         <http://savannah.gnu.org/bugs/?28113>
32091
32092         userspec: reformat to use spaces, not TABs
32093         * lib/userspec.c: Expand TABs to spaces.
32094         Add Emacs' "indent-tabs-mode: nil" hint.
32095
32096 2009-11-27  Eric Blake  <ebb9@byu.net>
32097
32098         getopt-gnu: flush out another BSD bug
32099         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
32100         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
32101         flush out BSD bug.
32102         * tests/test-getopt.h (test_getopt): End lists with NULL.
32103         * tests/test-getopt_long.h (test_getopt_long): Likewise.
32104         (test_getopt_long_posix): Enhance test.
32105         * modules/getopt-posix-tests (Depends-on): Add stdbool.
32106         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
32107         getopt-gnu.
32108         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
32109         Likewise.
32110
32111 2009-11-27  Simon Josefsson  <simon@josefsson.org>
32112
32113         * modules/idpriv-droptemp-tests (Notice): Fix text.
32114
32115 2009-11-27  Jim Meyering  <meyering@redhat.com>
32116
32117         test-xalloc-die: avoid spurious failure due to libtool argv difference
32118         In a libtool-enabled project, this test would fail due to a difference
32119         in the emitted program name, e.g.,
32120         -test-xalloc-die: memory exhausted
32121         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
32122         Use program to avoid that.
32123         * modules/xalloc-die-tests (Depends-on): Add progname.
32124         * tests/test-xalloc-die.c: Include progname.h".
32125         (program_name): Remove decl.
32126         (main): Call set_program_name.
32127         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
32128
32129 2009-11-26  Richard Jones  <rjones@redhat.com>
32130
32131         w32sock: leave win32 error in place.
32132         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
32133
32134 2009-11-26  Eric Blake  <ebb9@byu.net>
32135
32136         init.sh: suggest to use skip_ and fail_ functions in comments
32137         * tests/init.sh: Add a sentence.
32138
32139 2009-11-25  Bruno Haible  <bruno@clisp.org>
32140
32141         init.sh: add documentation in comments
32142         * tests/init.sh: Add some developer and user documentation.
32143
32144 2009-11-26  Jim Meyering  <meyering@redhat.com>
32145
32146         init.sh: accommodate even those who specify bogus srcdir manually
32147         * tests/init.sh: Normally, srcdir is guaranteed by automake and
32148         configure-time tests to be sanitized, so that there is no need to
32149         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
32150         (with no double quotes) suffices.  However, since tests may be
32151         invoked manually, and since you may explicitly set srcdir to the
32152         name of a directory containing spaces, do quote its uses here.
32153         * tests/test-pread.sh: Likewise.
32154         Suggested by Bruno Haible.
32155
32156         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
32157         * tests/test-pread.sh: Write no data into the pipe, because
32158         test-pread actually reads none.  This avoids a diagnostic,
32159         "bash: echo: write error: Broken pipe", that arises in the unusual
32160         event something is ignoring SIGPIPE, and might be interpreted
32161         as some sort of failure.  Reported by Bruno Haible.
32162
32163 2009-11-25  Jim Meyering  <meyering@redhat.com>
32164
32165         test-pread: cover failure with ESPIPE and EINVAL
32166         * tests/test-pread.c (main): Test for failure, too.
32167         * tests/test-pread.sh: Invoke with stdin on a pipe.
32168         Suggested by Eric Blake.
32169
32170         pread: improvement and fix
32171         * modules/pread (Depends-on): Depend on lseek, for portability to
32172         e.g., mingw.  Suggested by Eric Blake.
32173         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
32174
32175         unistd.in.h: correct declaration of pread
32176         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
32177         Reported by Richard W.M. Jones.
32178
32179         test-pread.sh: distribute the test script
32180         * modules/pread-tests (Files): Include test-pread.sh.
32181
32182         test-pread.sh: clean up
32183         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
32184         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
32185         That is unnecessary, since it's always ".".
32186         Suggestion from Eric Blake.
32187
32188         test-pread.sh: make executable
32189         * tests/test-pread.sh: Set executable bit.
32190         Reported by Eric Blake.
32191
32192         correct typo in test-pread.sh
32193         * tests/test-pread.sh: Add #! line.
32194
32195         test pread
32196         * tests/test-pread.c: New file.
32197         * tests/test-pread.sh: Likewise.
32198         * modules/pread-tests: Likewise.
32199
32200         pread: new module
32201         * modules/pread: New file.
32202         * lib/unistd.in.h (pread): Define/declare.
32203         * lib/pread.c (pread): New file.
32204         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
32205         * modules/unistd (Makefile.am): Substitute witnesses.
32206         * doc/posix-functions/pread.texi (pread): Update.
32207         * MODULES.html.sh: Add pread.
32208
32209 2009-11-25  Jim Meyering  <meyering@redhat.com>
32210
32211         tests/init.sh: new file to be used via most *.sh tests
32212         * tests/init.sh: New file.
32213
32214 2009-11-25  Eric Blake  <ebb9@byu.net>
32215
32216         utimens: work around older Linux failure with symlinks
32217         * lib/utimens.c (lutimensat_works_really): New variable.
32218         (fdutimens, lutimens): Use it to manage kernels that support
32219         nanosecond times on files, but not on symlinks.
32220         Reported by Ondřej Vašík.
32221
32222         utimes: fix configure grammar
32223         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
32224
32225 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
32226
32227         regex: Fix fastmap for multibyte character ranges.
32228         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
32229         characters when a multibyte character range is included.
32230
32231 2009-11-22  Andy Wingo  <wingo@pobox.com>
32232
32233         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
32234         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
32235
32236 2009-11-24  Bruno Haible  <bruno@clisp.org>
32237
32238         doc: Most *_l functions exist in MacOS X 10.5.
32239         * doc/posix-functions/duplocale.texi: Update platforms list.
32240         * doc/posix-functions/freelocale.texi: Likewise.
32241         * doc/posix-functions/newlocale.texi: Likewise.
32242         * doc/posix-functions/uselocale.texi: Likewise.
32243         * doc/posix-functions/isalnum_l.texi: Likewise.
32244         * doc/posix-functions/isalpha_l.texi: Likewise.
32245         * doc/posix-functions/isblank_l.texi: Likewise.
32246         * doc/posix-functions/iscntrl_l.texi: Likewise.
32247         * doc/posix-functions/isdigit_l.texi: Likewise.
32248         * doc/posix-functions/isgraph_l.texi: Likewise.
32249         * doc/posix-functions/islower_l.texi: Likewise.
32250         * doc/posix-functions/isprint_l.texi: Likewise.
32251         * doc/posix-functions/ispunct_l.texi: Likewise.
32252         * doc/posix-functions/isspace_l.texi: Likewise.
32253         * doc/posix-functions/isupper_l.texi: Likewise.
32254         * doc/posix-functions/iswalnum_l.texi: Likewise.
32255         * doc/posix-functions/iswalpha_l.texi: Likewise.
32256         * doc/posix-functions/iswblank_l.texi: Likewise.
32257         * doc/posix-functions/iswcntrl_l.texi: Likewise.
32258         * doc/posix-functions/iswctype_l.texi: Likewise.
32259         * doc/posix-functions/iswdigit_l.texi: Likewise.
32260         * doc/posix-functions/iswgraph_l.texi: Likewise.
32261         * doc/posix-functions/iswlower_l.texi: Likewise.
32262         * doc/posix-functions/iswprint_l.texi: Likewise.
32263         * doc/posix-functions/iswpunct_l.texi: Likewise.
32264         * doc/posix-functions/iswspace_l.texi: Likewise.
32265         * doc/posix-functions/iswupper_l.texi: Likewise.
32266         * doc/posix-functions/iswxdigit_l.texi: Likewise.
32267         * doc/posix-functions/isxdigit_l.texi: Likewise.
32268         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
32269         * doc/posix-functions/strcasecmp_l.texi: Likewise.
32270         * doc/posix-functions/strcoll_l.texi: Likewise.
32271         * doc/posix-functions/strfmon_l.texi: Likewise.
32272         * doc/posix-functions/strftime_l.texi: Likewise.
32273         * doc/posix-functions/strncasecmp_l.texi: Likewise.
32274         * doc/posix-functions/strxfrm_l.texi: Likewise.
32275         * doc/posix-functions/tolower_l.texi: Likewise.
32276         * doc/posix-functions/toupper_l.texi: Likewise.
32277         * doc/posix-functions/towctrans_l.texi: Likewise.
32278         * doc/posix-functions/towlower_l.texi: Likewise.
32279         * doc/posix-functions/towupper_l.texi: Likewise.
32280         * doc/posix-functions/wcscoll_l.texi: Likewise.
32281         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
32282         * doc/posix-functions/wctrans_l.texi: Likewise.
32283         * doc/posix-functions/wctype_l.texi: Likewise.
32284         * doc/glibc-functions/strptime_l.texi: Likewise.
32285         * doc/glibc-functions/strtod_l.texi: Likewise.
32286         * doc/glibc-functions/strtof_l.texi: Likewise.
32287         * doc/glibc-functions/strtol_l.texi: Likewise.
32288         * doc/glibc-functions/strtold_l.texi: Likewise.
32289         * doc/glibc-functions/strtoll_l.texi: Likewise.
32290         * doc/glibc-functions/strtoul_l.texi: Likewise.
32291         * doc/glibc-functions/strtoull_l.texi: Likewise.
32292         * doc/glibc-functions/wcsftime_l.texi: Likewise.
32293         * doc/glibc-functions/wcstod_l.texi: Likewise.
32294         * doc/glibc-functions/wcstof_l.texi: Likewise.
32295         * doc/glibc-functions/wcstol_l.texi: Likewise.
32296         * doc/glibc-functions/wcstold_l.texi: Likewise.
32297         * doc/glibc-functions/wcstoll_l.texi: Likewise.
32298         * doc/glibc-functions/wcstoul_l.texi: Likewise.
32299         * doc/glibc-functions/wcstoull_l.texi: Likewise.
32300
32301 2009-11-24  Bruno Haible  <bruno@clisp.org>
32302
32303         duplocale: Fix logic bug.
32304         * lib/duplocale.c: Don't include <langinfo.h>.
32305         (_NL_LOCALE_NAME): Remove macro.
32306         (rpl_duplocale): Use setlocale instead of nl_langinfo.
32307         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
32308
32309 2009-11-23  Jim Meyering  <meyering@redhat.com>
32310
32311         test-update-copyright: don't hard-code /usr/bin/perl
32312         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
32313         perl to print the current year.  Gilles Espinasse reported that
32314         the replaced use of perl was hard-coded as /usr/bin/perl.
32315
32316 2009-11-23  Bruno Haible  <bruno@clisp.org>
32317
32318         duplocale: Add support for glibc 2.3.x.
32319         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
32320
32321 2009-11-22  Bruno Haible  <bruno@clisp.org>
32322
32323         vasnprintf: Tiny optimization.
32324         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
32325         MacOS X.
32326
32327 2009-11-22  Bruno Haible  <bruno@clisp.org>
32328
32329         Tests for module 'duplocale'.
32330         * modules/duplocale-tests: New file.
32331         * tests/test-duplocale.c: New file.
32332
32333         New module 'duplocale'.
32334         * m4/duplocale.m4: New file.
32335         * lib/locale.in.h (duplocale): New declaration.
32336         * lib/duplocale.c: New file.
32337         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
32338         gl_LOCALE_H_DEFAULTS): New macros.
32339         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
32340         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
32341         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
32342         REPLACE_DUPLOCALE.
32343         * modules/duplocale: New file.
32344         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
32345
32346 2009-11-22  Bruno Haible  <bruno@clisp.org>
32347
32348         * modules/locale-tests (configure.ac): Test for newlocale function.
32349         * tests/test-locale.c: When the system has extended locale functions,
32350         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
32351
32352         locale: Make locale_t available when possible.
32353         * lib/locale.in.h: Include <xlocale.h> when it exists.
32354         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
32355         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
32356         * modules/locale (Depends-on): Add extensions.
32357         (Makefile.am): Also substitute HAVE_XLOCALE_H.
32358         * doc/posix-headers/locale.texi: Document the problem with locale_t.
32359
32360 2009-11-22  Bruno Haible  <bruno@clisp.org>
32361
32362         Add comments.
32363         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
32364         invocation.
32365         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
32366         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
32367         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
32368
32369 2009-11-22  Bruno Haible  <bruno@clisp.org>
32370
32371         error: account for the possibility of freopen (stdout).
32372         * lib/error.c: Include <unistd.h>.
32373         (flush_stdout): New function, extracted from error and error_at_line.
32374         Determine stdout's fd dynamically.
32375         (error, error_at_line): Invoke flush_stdout.
32376         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
32377         * modules/error (Depends-on): Add unistd.
32378
32379 2009-11-22  Bruno Haible  <bruno@clisp.org>
32380
32381         diffseq: Add comment.
32382         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
32383
32384 2009-11-22  Jim Meyering  <meyering@redhat.com>
32385
32386         c-stack: avoid defining an unused static function
32387         * lib/c-stack.c (find_stack_direction): Do not define this function
32388         when it will not be used.
32389
32390         diffseq: avoid spurious gcc warnings
32391         * lib/diffseq.h (IF_LINT2): Define.
32392         (compareseq): Use it to initialize two members of "part".
32393         This avoids two used-uninitialized warnings.
32394
32395 2009-11-21  Jim Meyering  <meyering@redhat.com>
32396
32397         c-stack: avoid "ignoring return value of `write'" warning
32398         * lib/c-stack.c: Include "ignore-value.h".
32399         (die): Explicitly ignore each write return value.
32400         * modules/c-stack (Depends-on): Add ignore-value.
32401
32402 2009-11-21  Bruno Haible  <bruno@clisp.org>
32403
32404         diffseq: reduce scope of variable 'best'.
32405         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
32406         variable, earlier used for two different purposes.
32407
32408 2009-11-21  Jim Meyering  <meyering@redhat.com>
32409
32410         diffseq: remove useless assignment to "best"
32411         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
32412         assignment.  At that point "best" is already guaranteed to be zero.
32413
32414 2009-11-20  Eric Blake  <ebb9@byu.net>
32415
32416         build: mention ftp redirector in release announcements
32417         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
32418         values that used to come from cfg.mk; mention FTP redirect URL.
32419         * build-aux/announce-gen: Mention the mirror list.
32420         Suggested by Karl Berry.
32421
32422         nanosleep: improve port to mingw
32423         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
32424         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
32425         LIB_NANOSLEEP, but only when needed.
32426         * modules/select (Link): Document LIBSOCKET.
32427         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
32428         enough.
32429
32430         nanosleep: work around cygwin bug
32431         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
32432         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
32433         bug.
32434         (getnow): Delete, not needed.
32435         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
32436         LIB_CLOCK_GETTIME.
32437         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
32438         clock-time, gettime.
32439         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
32440         bug.
32441         * modules/nanosleep-tests: New test.
32442         * tests/test-nanosleep.c: New file.
32443
32444         sleep: work around cygwin bug
32445         * lib/sleep.c (rpl_sleep): Work around the bug.
32446         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
32447         (gl_PREREQ_SLEEP): Delete unused macro.
32448         * modules/sleep (Depends-on): Add verify.
32449         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
32450         * modules/unistd (Makefile.am): Substitute witness.
32451         * lib/unistd.in.h (sleep): Update prototype.
32452         * doc/posix-functions/sleep.texi (sleep): Document the bug.
32453         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
32454         * modules/sleep-tests (Depends-on): Check for alarm.
32455
32456 2009-11-20  Jim Meyering  <meyering@redhat.com>
32457
32458         maint.mk: improve sc_prohibit_magic_number_exit
32459         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
32460         so it does not match uses like System.exit(1).
32461         Add comments showing how to correct all offenders.
32462
32463 2009-11-19  Eric Blake  <ebb9@byu.net>
32464
32465         xalloc-die-tests: add missing library
32466         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
32467
32468         test-xvasprintf: silence compiler warnings
32469         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
32470         empty string from gcc.
32471
32472 2009-11-19  Jim Meyering  <meyering@redhat.com>
32473
32474         xfreopen: new module, from coreutils
32475         * modules/xfreopen: New module.
32476         * lib/xfreopen.c: New file.
32477         * lib/xfreopen.h: New file.
32478         * MODULES.html.sh (File stream based Input/Output"): Add it.
32479
32480 2009-11-19  Eric Blake  <ebb9@byu.net>
32481
32482         manywarnings: depend on warnings
32483         * modules/manywarnings (Depends-on): Add warnings.
32484
32485         build: avoid compiler warnings
32486         * lib/select.c (rpl_select): Delete unused variable.
32487         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
32488
32489 2009-11-18  Eric Blake  <ebb9@byu.net>
32490
32491         tests: avoid false negative with --with-packager
32492         * tests/test-version-etc.sh: Discard packager information.
32493         * tests/test-argp-version-etc-1.sh: Likewise.
32494         Reported by Mike Frysinger.
32495
32496         utimens: fix regression on Solaris
32497         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
32498         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
32499         can only change fd timestamps via futimesat.  Instead, use an
32500         additional witness macro to avoid BSD bug.
32501         Reported by Jim Meyering.
32502
32503 2009-11-17  Eric Blake  <ebb9@byu.net>
32504
32505         usleep: use it to simplify tests
32506         * modules/stat-time-tests (Depends-on): Add usleep.
32507         (configure.ac): Drop usleep check.
32508         * modules/chown-tests (Depends-on, configure.ac): Likewise.
32509         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
32510         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
32511         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
32512         * modules/openat-tests (Depends-on, configure.ac): Likewise.
32513         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
32514         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
32515         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
32516         Likewise.
32517         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
32518         * tests/test-lchown.h (nap): Likewise.
32519         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
32520         * tests/test-stat-time.c (nap): Likewise.
32521         * tests/test-utimens-common.h (nap): Update comments.
32522
32523         usleep: new module
32524         * modules/usleep: New file.
32525         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
32526         * lib/usleep.c (usleep): Likewise.
32527         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
32528         * modules/unistd (Makefile.am): Substitute witnesses.
32529         * lib/unistd.in.h (usleep): Add declaration.
32530         * doc/pastposix-functions/usleep.texi (usleep): Document this.
32531         * MODULES.html.sh (Date and time): Likewise.
32532         * modules/usleep-tests (Depends-on): New test.
32533         * tests/test-usleep.c: New file.
32534
32535         chown: work around OpenBSD bug
32536         * lib/chown.c (rpl_chown): Work around the bug.
32537         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
32538         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
32539         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
32540         * modules/chown (Depends-on): Add stdbool.
32541         * modules/lchown (Depends-on): Likewise.
32542         * doc/posix-functions/chown.texi (chown): Document the bug.
32543         * doc/posix-functions/lchown.texi (lchown): Likewise.
32544         * tests/test-lchown.h (test_chown): Relax test.
32545
32546         mkstemp: avoid conflict with C++ keyword template
32547         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
32548         * lib/mkostemp.c (mkostemp): Likewise.
32549         * lib/mkostemps.c (mkostemps): Likewise.
32550         * lib/mkstemp.c (mkstemp): Likewise.
32551         * lib/mkstemps.c (mkstemps): Likewise.
32552
32553         xalloc-die-tests: optimize
32554         * tests/test-xalloc-die.sh: Reduce number of processes.
32555
32556 2009-11-17  Simon Josefsson  <simon@josefsson.org>
32557
32558         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
32559         patch from ludo@gnu.org (Ludovic Courtès).
32560
32561 2009-11-17  Jim Meyering  <meyering@redhat.com>
32562
32563         version-etc: use proper license string
32564         * modules/version-etc (License): Use LGPL, not LGPLv3+.
32565         * modules/version-etc-fsf: Likewise.
32566
32567 2009-11-17  Simon Josefsson  <simon@josefsson.org>
32568
32569         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
32570         printed to stdout.  Deal with EOL differences.
32571
32572 2009-11-17  Eric Blake  <ebb9@byu.net>
32573
32574         unsetenv: work around Solaris bug
32575         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
32576         * lib/unsetenv.c (rpl_unsetenv): Work around it.
32577         Reported by Jim Meyering.
32578
32579         vasnprintf: avoid compiler warnings
32580         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
32581         variables.
32582         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
32583
32584 2009-11-17  Simon Josefsson  <simon@josefsson.org>
32585
32586         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
32587         settings since xalloc-die is no longer the self test,
32588         xalloc-die.sh is.
32589
32590 2009-11-17  Jim Meyering  <meyering@redhat.com>
32591
32592         test-xalloc-die.sh: make the code agree with the commit log
32593         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
32594         at the end, just in case you happen to have a test-xalloc-die
32595         program in some other PATH directory.
32596
32597         test-xalloc-die.sh: fix a portability bug
32598         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
32599         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
32600         Otherwise, argv[0] (as often seen in diagnostics) would be too
32601         system-dependent, sometimes with, and sometimes without the leading "./".
32602
32603         version-etc-fsf: relax license to LGPLv3+
32604         * modules/version-etc-fsf (License): Relax license.
32605
32606 2009-11-16  Eric Blake  <ebb9@byu.net>
32607
32608         xalloc-die-tests: avoid printing null pointer
32609         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
32610         shell script.
32611         * tests/test-xalloc-die.c (program_name): Declare.
32612         * tests/test-xalloc-die.sh (tmpfiles): New file.
32613
32614         setenv, unsetenv: work around various bugs
32615         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
32616         (setenv) [HAVE_SETENV]: Work around bugs.
32617         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
32618         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
32619         for bugs.
32620         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
32621         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
32622         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
32623         * modules/stdlib (Makefile.am): Update substitutions.
32624         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
32625         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
32626         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
32627         * modules/setenv-tests: New test.
32628         * modules/unsetenv-tests: Likewise.
32629         * tests/test-setenv.c: New file.
32630         * tests/test-unsetenv.c: Likewise.
32631
32632 2009-11-16  Jim Meyering  <meyering@redhat.com>
32633
32634         version-etc: relax license to LGPLv3+
32635         * modules/version-etc (License): Relax license.
32636
32637         better AC_REQUIRE expanded-before-required-warning avoidance
32638         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
32639         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
32640         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
32641         which is no longer needed.
32642
32643 2009-11-16  Eric Blake  <ebb9@byu.net>
32644
32645         test-freading: clean up temporary file
32646         * tests/test-freading.c (main): Remove file on success, and use
32647         ASSERT more liberally.
32648         Reported by Jim Meyering.
32649
32650 2009-11-16  Jim Meyering  <meyering@redhat.com>
32651
32652         avoid new AC_REQUIRE expanded-before-required warnings
32653         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
32654         merely using it.
32655         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
32656         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
32657
32658 2009-11-15  Simon Josefsson  <simon@josefsson.org>
32659
32660         * tests/test-xalloc-die.c: New file.
32661         * modules/xalloc-die-tests: New file.
32662         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
32663         XFAIL_TESTS so it can be appended by modules.
32664
32665 2009-11-15  Simon Josefsson  <simon@josefsson.org>
32666
32667         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
32668         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
32669
32670 2009-11-14  Eric Blake  <ebb9@byu.net>
32671
32672         fnmatch: avoid compiler warning
32673         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
32674         to silence compiler warning about mismatch signedness in ?:.
32675         Reported by Robert Millan.
32676
32677         intprops: add double-inclusion guard
32678         * lib/intprops.h: Allow idempotent includes.
32679         Suggested by Bruce Korb.
32680
32681         openat: detect Solaris fchownat bug
32682         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
32683         penalizing glibc chownat when only lchownat is broken.
32684         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
32685         trailing slash bugs.
32686         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
32687         * modules/openat-tests (Files): Include more files.
32688         (Depends-on): Add mgetgroups, sleep, stat-time.
32689         (configure.ac): Add additional checks.
32690         (Makefile.am): Build new test.
32691         * tests/test-fchownat.c: New file.
32692
32693         lchown: detect Solaris and FreeBSD bug
32694         * lib/lchown.c (rpl_lchown): Work around bug.
32695         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
32696         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
32697         * modules/unistd (Makefile.am): Populate it.
32698         * lib/unistd.in.h (lchown): Update declaration.
32699         * doc/posix-functions/lchown.texi (lchown): Document the bug.
32700         * modules/lchown-tests: New file.
32701         * tests/test-lchown.h (test_lchown): Likewise.
32702         * tests/test-lchown.c (main): Likewise.
32703
32704         chown: detect Solaris and FreeBSD bug
32705         * lib/chown.c (rpl_chown): Work around bug.
32706         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
32707         (gl_PREREQ_CHOWN): Delete.
32708         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
32709         * modules/unistd (Makefile.am): Populate it.
32710         * lib/unistd.in.h (chown): Update declaration.
32711         * lib/lchown.c (chown): Update client.
32712         * modules/lchown (Depends-on): Add lstat.
32713         * doc/posix-functions/chown.texi (chown): Document the bug.
32714         * doc/posix-functions/getgroups.texi (getgroups): Document
32715         getgroups pitfall.
32716         * modules/chown-tests: New file.
32717         * tests/test-chown.h (test_chown): Likewise.
32718         * tests/test-chown.c (main): Likewise.
32719
32720 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
32721
32722         gnulib-tool: correctly detect absence of m4 directories
32723         * gnulib-tool: Avoid extra newline on data passed to wc -l.
32724
32725 2009-11-14  Jim Meyering  <meyering@redhat.com>
32726
32727         maint.mk: Prohibit inclusion of "xalloc.h" without use.
32728         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
32729
32730 2009-11-14  John W. Eaton  <jwe@gnu.org>
32731
32732         strftime.h: wrap funtion declaration in extern "C" block
32733         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
32734
32735 2009-11-13  Eric Blake  <ebb9@byu.net>
32736
32737         getgroups: avoid compiler warning
32738         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
32739
32740         getgroups: work around FreeBSD bug
32741         * lib/getgroups.c (rpl_getgroups): Work around the bug.
32742         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
32743         * doc/posix-functions/getgroups.texi (getgroups): Document it.
32744         * tests/test-getgroups.c (main): Fix buffer overrun.
32745
32746         getgroups: avoid compilation failure
32747         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
32748         * modules/getgroups (Depends-on): Add stdint.
32749
32750 2009-11-13  Jim Meyering  <meyering@redhat.com>
32751
32752         test-getgroups: avoid compilation failure
32753         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
32754
32755 2009-11-13  Eric Blake  <ebb9@byu.net>
32756
32757         mgetgroups: new module, taken from coreutils
32758         * modules/mgetgroups: New file.
32759         * lib/mgetgroups.h: Likewise.
32760         * lib/mgetgroups.c (mgetgroups): Likewise.
32761         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
32762         * MODULES.html.sh (Users and groups): Mention it.
32763
32764         getgroups: don't expose GETGROUPS_T to user
32765         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
32766         an element at a time if GETGROUPS_T is wrong size.
32767         * lib/getugroups.h (getugroups): Change signature.
32768         * lib/unistd.in.h (getgroups): Likewise.
32769         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
32770         signature needs fixing.
32771         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
32772         AC_TYPE_GETGROUPS.
32773         * modules/group-member (Depends-on): Add getgroups.
32774         * lib/group-member.c (group_info, get_group_info): Use gid_t.
32775         (group_member): Rely on getgroups replacement.
32776         * lib/getugroups.c (getugroups): Use gid_t.
32777         * tests/test-getgroups.c (main): Likewise.
32778         * NEWS: Mention the signature change.
32779         * doc/posix-functions/getgroups.texi (getgroups): Mention the
32780         problem with signature.
32781         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
32782         GETGROUPS_T is still useful for setgroups.
32783
32784         getgroups, getugroups: provide stubs for mingw
32785         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
32786         * lib/getugroups.c (getugroups): Likewise.
32787         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
32788         function.  Modernize replacement scheme.
32789         (gl_PREREQ_GETGROUPS): Delete.
32790         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
32791         * modules/getgroups (configure.ac): Declare witness.
32792         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
32793         * modules/unistd (Depends-on): Substitute witness.
32794         * lib/unistd.in.h (getgroups): Declare replacement.
32795
32796         getgroups: avoid calling exit
32797         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
32798         drop xalloc.
32799         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
32800         dependencies.
32801         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
32802         exiting, in the rare case of malloc failure.
32803
32804         getgroups: fix logic error
32805         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
32806         has more than 20 groups.
32807         * modules/getgroups-tests: New test.
32808         * tests/test-getgroups.c: New file.
32809
32810 2009-11-13  Simon Josefsson  <simon@josefsson.org>
32811
32812         * tests/test-base64.c: Improve.
32813
32814 2009-11-13  Simon Josefsson  <simon@josefsson.org>
32815
32816         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
32817         Blake <ebb9@byu.net>.
32818
32819 2009-11-13  Simon Josefsson  <simon@josefsson.org>
32820
32821         * tests/test-xvasprintf.c: Add %s%s related checks.
32822
32823 2009-11-12  Eric Blake  <ebb9@byu.net>
32824
32825         version-etc: match standards.texi style
32826         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
32827         and use <> only for URLs.
32828
32829 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
32830
32831         fts: do not fail on a submount during traversal
32832         * lib/fts.c (fts_build): Read the stat info again after opening
32833         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
32834         Original report at http://bugzilla.redhat.com/501848.
32835
32836 2009-11-12  Jim Meyering  <meyering@redhat.com>
32837
32838         bootstrap: sync from coreutils
32839         * build-aux/bootstrap (bootstrap_epilogue): New function.
32840         Use git_modules_config in one more place.  This make bootstrap's
32841         --gnulib-srcdir option more useful for testing.
32842
32843         bootstrap: generalize autoheader check
32844         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
32845         AC_CONFIG_HEADERS.
32846
32847 2009-11-11  Eric Blake  <ebb9@byu.net>
32848
32849         mkfifoat: use new modules for Solaris and BSD bugs
32850         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
32851         * lib/mkfifoat.c (mknodat): Split...
32852         * lib/mknodat.c (mknodat): ...into new file.
32853         * modules/mkfifoat (Files): Ship new file.
32854         (Depends-on): Add mkfifo, mknod.
32855         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
32856         (Depends-on): Add symlink.
32857         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
32858         redundant with test_mkfifo.h.
32859         (do_mkfifoat, do_mknodat): New helpers.
32860
32861         mknod: new module
32862         * modules/mknod: New file.
32863         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
32864         * lib/mknod.c (mknod): Likewise.
32865         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
32866         defaults.
32867         * modules/sys_stat (Makefile.am): Substitute them.
32868         * lib/sys_stat.in.h (mknod): Declare replacement.
32869         * MODULES.html.sh (Support for systems lacking POSIX:2008):
32870         Document it.
32871         * doc/posix-functions/mknod.texi (mknod): Likewise.
32872         * modules/mknod-tests: New test.
32873         * tests/test-mknod.c: Likewise.
32874
32875         mkfifo: new module
32876         * modules/mkfifo: New file.
32877         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
32878         * lib/mkfifo.c (mkfifo): Likewise.
32879         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
32880         defaults.
32881         * modules/sys_stat (Makefile.am): Substitute them.
32882         * lib/sys_stat.in.h (mkfifo): Declare replacement.
32883         * MODULES.html.sh (Support for systems lacking POSIX:2008):
32884         Document it.
32885         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
32886         * modules/mkfifo-tests: New test.
32887         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
32888         from test-mkfifoat.c.
32889         * tests/test-mkfifo.c: New file.
32890
32891         readlink: detect FreeBSD bug
32892         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
32893         slash on symlink.
32894         * doc/posix-functions/readlink.texi (readlink): Document the bug.
32895         * tests/test-readlink.h (test_readlink): Enhance test.
32896
32897         symlink: detect FreeBSD bug
32898         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
32899         slash on symlink.
32900         * doc/posix-functions/symlink.texi (symlink): Document the bug.
32901         * tests/test-symlink.h (test_symlink): Enhance test.
32902
32903 2009-11-10  Eric Blake  <ebb9@byu.net>
32904
32905         link: detect FreeBSD bug
32906         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
32907         symlink.
32908         * doc/posix-functions/link.texi (link): Document the bug.
32909         * tests/test-link.h (test_link): Enhance test.
32910         * tests/test-linkat.c (main): Update caller.
32911
32912         unlink, remove: detect FreeBSD bug
32913         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
32914         slash on symlink.
32915         * doc/posix-functions/unlink.texi (unlink): Document the bug.
32916         * doc/posix-functions/remove.texi (remove): Likewise.
32917         * tests/test-unlink.h (test_unlink): Enhance test.
32918         * tests/test-remove.c (main): Likewise.
32919
32920 2009-11-09  Eric Blake  <ebb9@byu.net>
32921
32922         rename: detect FreeBSD bug
32923         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
32924         slash on symlink.
32925         * modules/renameat-tests (Depends-on): Add filenamecat.
32926         * tests/test-rename.h (test_rename): Allow one more errno.
32927         * tests/test-renameat.c (main): Likewise.
32928         * doc/posix-functions/rename.texi (rename): Document the bug.
32929
32930         open: detect FreeBSD bug
32931         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
32932         symlink.
32933         * doc/posix-functions/open.texi (open): Document the bug.
32934         * doc/posix-functions/utimes.texi (utimes): Likewise.
32935         * tests/test-open.h (test_open): Add parameters, and test symlink
32936         handling.
32937         * tests/test-open.c (main): Adjust caller.
32938         * tests/test-fcntl-safer.c (main): Likewise.
32939         * modules/open-tests (Depends-on): Add stdbool, symlink.
32940         * modules/fcntl-safer-tests (Depends-on): Likewise.
32941         * tests/test-openat.c (main): Add test-open tests.
32942
32943         stat: detect FreeBSD bug
32944         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
32945         symlink.
32946         * doc/posix-functions/stat.texi (stat): Document the bug.
32947         * tests/test-stat.h (test_stat_func): Add argument.
32948         * tests/test-stat.c (main): Adjust caller.
32949         * tests/test-fstatat.c (main): Likewise.
32950         * modules/stat-tests (Depends-on): Add stdbool, symlink.
32951         Reported by Jim Meyering.
32952
32953 2009-11-09  James Youngman  <jay@gnu.org>
32954
32955         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
32956         * lib/strftime.c: Correct placement of #include "ignore-value.h".
32957
32958 2009-11-08  Jim Meyering  <meyering@redhat.com>
32959
32960         utimens: remove invalid futimesat call
32961         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
32962         It used the file descriptor of the target file as the DIR_FD
32963         parameter and NULL as the file name.  That caused failure with
32964         errno == EFAULT on FreeBSD-8.0-rc2
32965
32966 2009-11-07  Eric Blake  <ebb9@byu.net>
32967
32968         fflush, freadseek: use fseeko, not fseek
32969         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
32970         (clear_ungetc_buffer): Avoid potential problems on large files.
32971         * lib/freadseek.c (freadseek): Likewise.
32972         * modules/freadseek (Depends-on): Add fseeko.
32973         * modules/fseek (configure.ac): Set a witness.
32974         * tests/test-fflush.c (main): Use fseeko.
32975         * tests/test-fpurge.c (fseek): Disable link warning.
32976         * tests/test-freadable.c (fseek): Likewise.
32977         * tests/test-freading.c (fseek): Likewise.
32978         * tests/test-fseeko.c (fseek): Likewise.
32979         * tests/test-ftell.c (fseek): Likewise.
32980         * tests/test-ftello.c (fseek): Likewise.
32981         * tests/test-fwritable.c (fseek): Likewise.
32982         * tests/test-fwriting.c (fseek): Likewise.
32983
32984 2009-11-06  Simon Josefsson  <simon@josefsson.org>
32985
32986         * modules/memchr (Depends-on): Drop getpagesize dependency.
32987
32988 2009-11-06  Simon Josefsson  <simon@josefsson.org>
32989
32990         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
32991         Reported by Ludovic Courtès.
32992         * build-aux/pmccabe2html: Improve example usage.
32993         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
32994
32995 2009-11-06  Jim Meyering  <meyering@redhat.com>
32996
32997         do-release-commit-and-tag: New module.
32998         Automate the release-commit and tag process.
32999         * build-aux/do-release-commit-and-tag: New script, from coreutils.
33000         * modules/do-release-commit-and-tag: New file.
33001         * MODULES.html.sh (Support for maintaining and releasing): Add it.
33002
33003 2009-11-06  Simon Josefsson  <simon@josefsson.org>
33004
33005         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
33006         because test-select.c uses inet_pton.
33007
33008 2009-11-06  Simon Josefsson  <simon@josefsson.org>
33009
33010         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
33011         GETADDRINFO_LIB.  Bump serial number.
33012         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
33013         Suggested by Eric Blake <ebb9@byu.net>.
33014
33015 2009-11-05  Eric Blake  <ebb9@byu.net>
33016
33017         strtod: detect darwin bug
33018         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
33019         Reported by Leo Davis.
33020
33021         freopen-safer: new module
33022         * modules/freopen-safer: New module.
33023         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
33024         * lib/freopen-safer.c (freopen_safer): New file.
33025         * lib/stdio-safer.h (freopen_safer): New declaration.
33026         * lib/stdio--.h (freopen): New override.
33027         * MODULES.html.sh (File stream based Input/Output): Mention it.
33028         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
33029         freopen-safer module.
33030         * doc/posix-functions/stderr.texi (stderr): Likewise.
33031         * doc/posix-functions/stdin.texi (stdin): Likewise.
33032         * doc/posix-functions/stdout.texi (stdout): Likewise.
33033         * modules/freopen-safer-tests: New test.
33034         * tests/test-reopen-safer.c: New file.
33035
33036 2009-11-05  Jim Meyering  <meyering@redhat.com>
33037
33038         maint.mk: Prohibit inclusion of "close-stream.h" without use.
33039         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
33040
33041 2009-11-05  Simon Josefsson  <simon@josefsson.org>
33042
33043         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
33044
33045 2009-11-05  Simon Josefsson  <simon@josefsson.org>
33046
33047         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
33048
33049 2009-11-05  Simon Josefsson  <simon@josefsson.org>
33050
33051         Fix link error.
33052         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
33053         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
33054
33055 2009-11-05  Simon Josefsson  <simon@josefsson.org>
33056
33057         * tests/test-func.c: Also test value of __func__.
33058
33059 2009-11-05  Simon Josefsson  <simon@josefsson.org>
33060
33061         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
33062         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
33063
33064 2009-11-05  Bruno Haible  <bruno@clisp.org>
33065
33066         Fix link error.
33067         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
33068         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
33069         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
33070
33071 2009-11-05  Bruno Haible  <bruno@clisp.org>
33072
33073         Tests for module 'inet_pton'.
33074         * modules/inet_pton-tests: New file.
33075         * tests/test-inet_pton.c: New file.
33076
33077 2009-11-05  Bruno Haible  <bruno@clisp.org>
33078
33079         Tests for module 'inet_ntop'.
33080         * modules/inet_ntop-tests: New file.
33081         * tests/test-inet_ntop.c: New file.
33082
33083 2009-11-04  Eric Blake  <ebb9@byu.net>
33084
33085         stdlib-safer: wrap all mkstemp variants
33086         * modules/mkostemp (configure.ac): Set witness.
33087         * modules/mkostemps (configure.ac): Likewise.
33088         * modules/mkstemps (configure.ac): Likewise.
33089         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
33090         (mkstemps_safer): Wrap more functions.
33091         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
33092         wrapping.
33093         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
33094         (mkstemps_safer): Implement the wrappers.
33095
33096         mkstemps, mkostemps: new modules
33097         * modules/mkostemps: New module.
33098         * modules/mkstemps: Likewise.
33099         * lib/mkostemps.c (mkostemps): New file.
33100         * lib/mkstemps.c (mkstemps): Likewise.
33101         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
33102         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
33103         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
33104         * modules/stdlib (Makefile.am): Substitute them.
33105         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
33106         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
33107         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
33108         * doc/gnulib.texi (Glibc stdlib.h): Include them.
33109         * MODULES.html.sh (File system functions): Mention them.
33110
33111         tempname: resync from glibc
33112         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
33113         same values for __GT_FILE as glibc.  Abort even when assertions
33114         are disabled.
33115         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
33116         match its value otherwise.  Allow idempotent inclusion.
33117         * lib/mkdtemp.c (mkdtemp): Adjust caller.
33118         * lib/mkostemp.c (mkostemp): Likewise.
33119         * lib/mkstemp.c (mkstemp): Likewise.
33120         * lib/tmpfile.c (tmpfile): Likewise.
33121         * NEWS: Document this.
33122
33123         utimens: fix use of futimens on older Linux
33124         * lib/utimens.c (fdutimens): Use updated, rather than original,
33125         timespec to avoid bug in older Linux kernel.
33126         Reported by Simon Josefsson.
33127
33128 2009-11-04  Bruno Haible  <bruno@clisp.org>
33129
33130         Make num_processors more flexible and consistent.
33131         * lib/nproc.h (enum nproc_query): New type.
33132         (num_processors): Add a 'query' argument.
33133         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
33134         (num_processors): Add a 'query' argument. Test the value of the
33135         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
33136         mingw, count the number of CPUs available for the current process.
33137         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
33138         Check for sched_getaffinity and sched_getaffinity_np.
33139         * modules/nproc (Depends-on): Add c-ctype, extensions.
33140         * NEWS: Mention the change.
33141
33142 2009-11-03  Bruno Haible  <bruno@clisp.org>
33143
33144         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
33145
33146 2009-11-03  Jim Meyering  <meyering@redhat.com>
33147
33148         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
33149         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
33150         if it is defined.
33151
33152 2009-11-02  Eric Blake  <ebb9@byu.net>
33153
33154         mktime, timegm: share common declaration
33155         * lib/mktime-internal.h: New file.
33156         * lib/mktime.c: Use it rather than open-coding a declaration.
33157         * lib/timegm.c: Likewise.
33158         * modules/mktime (Files): Ship it.
33159         * modules/timegm (Files): Likewise.
33160         Suggested by Bruno Haible.
33161
33162         test-update-copyright: update test to match script changes
33163         * tests/test-update-copyright.sh: Avoid hard-coding perl
33164         location.  Don't update *.bak created by earlier runs.
33165
33166 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
33167             Simon Josefsson  <simon@josefsson.org>
33168             Bruno Haible  <bruno@clisp.org>
33169
33170         Fix link error on Solaris 8.
33171         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
33172         also in libnsl. Define also INET_PTON_LIB.
33173         * modules/inet_pton (Link): New section.
33174
33175 2009-11-02  Simon Josefsson  <simon@josefsson.org>
33176             Bruno Haible  <bruno@clisp.org>
33177
33178         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
33179         * modules/inet_ntop (Link): New section.
33180         Reported by Boyan Kasarov <bkasarov@gmail.com>.
33181
33182 2009-11-02  Eric Blake  <ebb9@byu.net>
33183
33184         maint: avoid compiler warnings in m4 macros
33185         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
33186         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
33187
33188 2009-11-02  Simon Josefsson  <simon@josefsson.org>
33189
33190         * m4/pmccabe2html.m4: Remove file.
33191         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
33192         function.  Change maintainer.
33193         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
33194         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
33195         Courtès).
33196
33197 2009-10-31  Eric Blake  <ebb9@byu.net>
33198
33199         fseeko: fix m4 regression
33200         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
33201         regression from 2009-10-27.
33202         Reported by Ralf Wildenhues.
33203
33204 2009-10-31  Jim Meyering  <meyering@redhat.com>
33205
33206         inttostr: aesthetics and improved (compile-time) safety
33207         Define inttype_is_signed rather than inttype_is_unsigned,
33208         since the sole use is via "#if inttype_is_signed".
33209         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
33210         inttype_is_unsigned.
33211         * lib/offtostr.c (inttype_is_signed): Likewise.
33212         * lib/uinttostr.c (inttype_is_signed): Likewise.
33213         * lib/umaxtostr.c (inttype_is_signed): Likewise.
33214         * lib/inttostr.c (inttostr): Use verify to cross-check the
33215         inttype_is_signed value and the signedness of the actual type.
33216         * modules/inttostr (Depends-on): Add verify.
33217
33218 2009-10-30  Eric Blake  <ebb9@byu.net>
33219
33220         build: avoid compiler warnings
33221         * lib/fchmodat.c (lchmod): Mark unused variables.
33222         * lib/getopt.c (_getopt_initialize): Likewise.
33223         * lib/mktime.c (__mktime_internal): Provide prototype.
33224         * lib/inttostr.c (inttostr): Avoid compiler warning even with
33225         older gcc that do not understand #pragma GCC diagnostic.
33226         * lib/uinttostr.c (inttype_is_unsigned): Define.
33227         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
33228
33229 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
33230
33231         stat: fix compilation on AIX
33232         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
33233         only see struct stat64.
33234
33235 2009-10-30  Eric Blake  <ebb9@byu.net>
33236
33237         exclude: make more robust
33238         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
33239         rather than masking a coding bug.
33240         Suggested by Bruno Haible.
33241
33242 2009-10-30  Jim Meyering  <meyering@redhat.com>
33243
33244         perl scripts: remove #!/usr/bin/perl in favor of more portable...
33245         Rather than putting #!/usr/bin/perl on the first line,
33246         start with a variant of what's recommended by "man perlrun" that
33247         invokes the first "perl" program from your shell's search path.
33248         * build-aux/gitlog-to-changelog: Replace #!... as above.
33249         Add a "Local Variables" perl mode setting.
33250         Prompted by a patch from Ludovic Courtès.
33251         Improved by Eric Blake.
33252         * build-aux/useless-if-before-free: Likewise.
33253         * build-aux/announce-gen: Likewise.
33254         * build-aux/update-copyright: Likewise.
33255
33256 2009-10-29  Eric Blake  <ebb9@byu.net>
33257
33258         filenamecat-lgpl: adjust clients
33259         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
33260         filenamecat.
33261         * modules/renameat (Depends-on): Likewise.
33262
33263         filenamecat: split into filenamecat-lgpl
33264         * modules/filenamecat-lgpl: New module.
33265         * modules/filenamecat (Files): Move library-safe files into
33266         filenamecat-lgpl.
33267         (Depends-on): Add filenamecat-lgpl.
33268         (configure.ac): Declare witness.
33269         * lib/filenamecat.h (file_name_concat): Only declare when using
33270         GPL module.
33271         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
33272         Move...
33273         * lib/filenamecat-lgpl.c: ...into new file.
33274         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
33275         (gl_FILE_NAME_CONCAT): Use it.
33276         * MODULES.html.sh (File system functions): Mention new module.
33277
33278         argp: avoid memory leak
33279         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
33280         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
33281         base_name, since the latter malloc()s and can call exit().
33282         Leak introduced 2006-07-03.
33283
33284         dirname-lgpl: adjust clients that don't need full dirname
33285         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
33286         * modules/filenamecat (Depends-on): Likewise.
33287         * modules/linkat (Depends-on): Likewise.
33288         * modules/mkancesdirs (Depends-on): Likewise.
33289         * modules/mkdir (Depends-on): Likewise.
33290         * modules/openat (Depends-on): Likewise.
33291         * modules/savewd (Depends-on): Likewise.
33292         * modules/rename (Depends-on): Likewise.
33293         (License): Relax license.
33294         * modules/mkdir-tests (Depends-on): Drop progname.
33295         (Makefile.am): Delete unneeded LDADD.
33296         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
33297
33298         dirname: split into dirname-lgpl
33299         * modules/dirname-lgpl: New module.
33300         * modules/dirname (Files): Move library-safe files into
33301         dirname-lgpl.
33302         (Depends-on): Add dirname-lgpl.
33303         (configure.ac): Declare witness.
33304         * modules/double-slash-root (License): Relax license.
33305         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
33306         module.
33307         * lib/dirname.c (dir_len, mdir_name): Move...
33308         * lib/dirname-lgpl.c: ...into new file.
33309         * lib/basename.c (last_component, base_len): Move...
33310         * lib/basename-lgpl.c: ...into new file.
33311         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
33312         (gl_DIRNAME): Use it.
33313         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
33314         Mention new module.
33315         * modules/dirname-tests (Depends-on): Add progname.
33316         * tests/test-dirname.c (program_name): Delete.
33317
33318         mkdir: make safe for libraries
33319         * modules/mkdir (Depends-on): Drop xalloc.
33320         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
33321         exit.
33322
33323         tests: avoid some compiler warnings
33324         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
33325         literals.
33326         * tests/test-memchr.c (main): Avoid type mismatch.
33327         * tests/test-arpa_inet.c (main): Avoid unused parameters.
33328         * tests/test-base64.c (main): Likewise.
33329         * tests/test-getdelim.c (main): Likewise.
33330         * tests/test-gethostname.c (main): Likewise.
33331         * tests/test-getline.c (main): Likewise.
33332         * tests/test-netinet_in.c (main): Likewise.
33333         * tests/test-select.c (open_server_socket, main): Likewise.
33334         * tests/test-select-stdin.c (main): Likewise.
33335         * tests/test-sockets.c (main): Likewise.
33336         * tests/test-strsignal.c (main): Likewise.
33337         * tests/test-sys_select.c (main): Likewise.
33338         * tests/test-sys_socket.c (main): Likewise.
33339         * tests/test-u64.c (main): Likewise.
33340         * tests/test-xfprintf-posix.c (main): Likewise.
33341         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
33342
33343         sockets: avoid compiler warning
33344         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
33345
33346         maint: detect usage(1) and other suspicious exits
33347         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
33348
33349 2009-10-29  Jim Meyering  <meyering@redhat.com>
33350
33351         timespec: long-to-int truncation could make timespec_cmp malfunction
33352         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
33353         a multiple of 2^32 nanoseconds as no difference.
33354
33355 2009-10-28  Jim Meyering  <meyering@redhat.com>
33356
33357         fprintftime: wrap macro code argument in "do {...} while(0)"
33358         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
33359         cpy macro must be a statement that can be followed by a semicolon.
33360         Now that the else clause contains a comment and is hence longer
33361         than one line, I require curly braces.  That in turn requires
33362         that we wrap this code block in the standard do...while(0).
33363
33364         fprintftime: remove stray semicolon from previous change
33365         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
33366
33367         fprintftime: avoid a warning about ignored fwrite return value
33368         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
33369         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
33370         that is unsafe.
33371         * modules/fprintftime (Depends-on): Add ignore-value.
33372
33373         exclude: avoid an unwarranted warning
33374         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
33375
33376 2009-10-27  Eric Blake  <ebb9@byu.net>
33377
33378         fseek: avoid compilation failure when fflush is replaced
33379         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
33380         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
33381         module is in use.
33382         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
33383         module is not in use; since REPLACE_FSEEK worked otherwise.
33384         (GNULIB_FTELLO): Likewise for ftell.
33385         Reported by Ian Beckwith and others.
33386
33387 2009-10-27  Bruno Haible  <bruno@clisp.org>
33388
33389         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
33390         Reported by Jim Meyering.
33391
33392 2009-10-27  Jim Meyering  <jim@meyering.net>
33393             Bruno Haible  <bruno@clisp.org>
33394
33395         Avoid warning despite dropping the return value of fwrite.
33396         * lib/unicodeio.c: Include ignore-value.h.
33397         (fwrite_success_callback): Explicitly ignore fwrite's return value.
33398         * modules/unicodeio (Depends-on): Add ignore-value.
33399
33400 2009-10-26  Eric Blake  <ebb9@byu.net>
33401
33402         areadlinkat: fix fallback path
33403         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
33404         pointer and zero.
33405
33406 2009-10-22  Pádraig Brady  <P@draigBrady.com>
33407
33408         Use a better IO block size for modern systems
33409         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
33410         * lib/md2.c: Likewise.
33411         * lib/md4.c: Likewise.
33412         * lib/md5.c: Likewise.
33413         * lib/sha1.c: Likewise.
33414         * lib/sha256.c: Likewise.
33415         * lib/sha512.c: Likewise.
33416
33417 2009-10-22  Eric Blake  <ebb9@byu.net>
33418
33419         tests: avoid several compiler warnings
33420         * tests/test-getcwd.c (main): Avoid buffer underflow.
33421         * tests/test-getdate.c (main): String literals are not safe with
33422         putenv, so use setenv.  Declare unused argument.
33423         * modules/getdate-tests (Depends-on): Add setenv.
33424         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
33425         problems with string literals in char *.
33426         * tests/test-hash.c (main): Avoid shadowing declaration.
33427         (insert_new): Treat string literals as char const *.
33428         * tests/test-getopt.h (test_getopt): Likewise.
33429         (getopt_loop): Alter types to minimize casting elsewhere.
33430         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
33431         (test_getopt_long_posix): Likewise.
33432         (do_getopt_long): Add wrapper to minimize casting.
33433         * tests/test-atexit.c (clear_temp_file): Use void.
33434         * tests/test-areadlink-with-size.c (main): Declare unused
33435         arguments.
33436         * tests/test-areadlink.c (main): Likewise.
33437         * tests/test-areadlinkat-with-size.c (main): Likewise.
33438         * tests/test-areadlinkat.c (main): Likewise.
33439         * tests/test-canonicalize-lgpl.c (main): Likewise.
33440         * tests/test-canonicalize.c (main): Likewise.
33441         * tests/test-dirent-safer.c (main): Likewise.
33442         * tests/test-dirname.c (main): Likewise.
33443         * tests/test-dup2.c (main): Likewise.
33444         * tests/test-fchdir.c (main): Likewise.
33445         * tests/test-fcntl-h.c (main): Likewise.
33446         * tests/test-fcntl-safer.c (main): Likewise.
33447         * tests/test-fdopendir.c (main): Likewise.
33448         * tests/test-fdutimensat.c (main): Likewise.
33449         * tests/test-fflush.c (main): Likewise.
33450         * tests/test-filenamecat.c (main): Likewise.
33451         * tests/test-filevercmp.c (main): Likewise.
33452         * tests/test-fopen-safer.c (main): Likewise.
33453         * tests/test-fopen.c (main): Likewise.
33454         * tests/test-fpending.c (main): Likewise.
33455         * tests/test-fpurge.c (main): Likewise.
33456         * tests/test-freading.c (main): Likewise.
33457         * tests/test-fstatat.c (main): Likewise.
33458         * tests/test-fsync.c (main): Likewise.
33459         * tests/test-futimens.c (main): Likewise.
33460         * tests/test-getndelim2.c (main): Likewise.
33461         * tests/test-gettimeofday.c (main): Likewise.
33462         * tests/test-getopt.c (main): Likewise.
33463         * tests/test-i-ring.c (main): Likewise.
33464         * tests/test-inttypes.c (main): Likewise.
33465         * tests/test-link.c (main): Likewise.
33466         * tests/test-lstat.c (main): Likewise.
33467         * tests/test-math.c (main): Likewise.
33468         * tests/test-md5.c (main): Likewise.
33469         * tests/test-memchr2.c (main): Likewise.
33470         * tests/test-memrchr.c (main): Likewise.
33471         * tests/test-mkdir.c (main): Likewise.
33472         * tests/test-mkdirat.c (main): Likewise.
33473         * tests/test-mkfifoat.c (main): Likewise.
33474         * tests/test-open.c (main): Likewise.
33475         * tests/test-openat-safer.c (main): Likewise.
33476         * tests/test-openat.c (main): Likewise.
33477         * tests/test-quotearg.c (main): Likewise.
33478         * tests/test-rawmemchr.c (main): Likewise.
33479         * tests/test-readlink.c (main): Likewise.
33480         * tests/test-remove.c (main): Likewise.
33481         * tests/test-rename.c (main): Likewise.
33482         * tests/test-renameat.c (main): Likewise.
33483         * tests/test-rmdir.c (main): Likewise.
33484         * tests/test-sha1.c (main): Likewise.
33485         * tests/test-signal.c (main): Likewise.
33486         * tests/test-sigaction.c (main): Likewise.
33487         * tests/test-stat.c (main): Likewise.
33488         * tests/test-stat-time.c (main): Likewise.
33489         * tests/test-stddef.c (main): Likewise.
33490         * tests/test-stdint.c (main): Likewise.
33491         * tests/test-stdio.c (main): Likewise.
33492         * tests/test-stdlib.c (main): Likewise.
33493         * tests/test-strchrnul.c (main): Likewise.
33494         * tests/test-strerror.c (main): Likewise.
33495         * tests/test-string.c (main): Likewise.
33496         * tests/test-strtod.c (main): Likewise.
33497         * tests/test-strverscmp.c (main): Likewise.
33498         * tests/test-symlink.c (main): Likewise.
33499         * tests/test-symlinkat.c (main): Likewise.
33500         * tests/test-sys_stat.c (main): Likewise.
33501         * tests/test-sys_time.c (main): Likewise.
33502         * tests/test-time.c (main): Likewise.
33503         * tests/test-unistd.c (main): Likewise.
33504         * tests/test-unlink.c (main): Likewise.
33505         * tests/test-unlinkat.c (main): Likewise.
33506         * tests/test-utimens.c (main): Likewise.
33507         * tests/test-utimensat.c (main): Likewise.
33508         * tests/test-version-etc.c (main): Likewise.
33509         * tests/test-wchar.c (main): Likewise.
33510         * tests/test-wctype.c (main): Likewise.
33511         * tests/test-xprintf-posix.c (main): Likewise.
33512         * tests/test-posixtm.c (main): Likewise.
33513         (STREQ): Delete unused macro.
33514         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
33515         shadowed variables.
33516         * tests/test-memchr.c (main): Likewise.
33517
33518 2009-10-21  Eric Blake  <ebb9@byu.net>
33519
33520         areadlinkat: avoid failure on older glibc
33521         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
33522         rather than mis-comparing 0 against FUNC_RESULT of char*.
33523
33524 2009-10-21  Bruno Haible  <bruno@clisp.org>
33525
33526         * modules/stpncpy (License): Relicense under LGPLv2+.
33527         Reported by David Lutterkort <lutter@redhat.com>.
33528
33529 2009-10-20  Eric Blake  <ebb9@byu.net>
33530
33531         utimensat: work around Solaris 9 bug
33532         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
33533         has trailing slash bugs.
33534         * tests/test-lutimens.h (test_lutimens): Enhance test.
33535         * tests/test-utimens.h (test_utimens): Likewise.
33536         * doc/posix-functions/utime.texi (utime): Enhance documentation.
33537         * doc/posix-functions/utimes.texi (utimes): Likewise.
33538         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
33539         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
33540         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
33541         * doc/posix-functions/futimens.texi (futimens): Likewise.
33542
33543         fdutimensat: new module
33544         * modules/fdutimensat: New file.
33545         * lib/fdutimensat.c (fdutimensat): Likewise.
33546         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
33547         * MODULES.html.sh (File system functions): Mention module.
33548         * modules/fdutimensat-tests: New test.
33549         * tests/test-fdutimensat.c: Likewise.
33550
33551         doc: regenerate INSTALL
33552         * doc/INSTALL: Reflect recent autoconf update.
33553         * doc/INSTALL.ISO: Likewise.
33554         * doc/INSTALL.UTF-8: Likewise.
33555
33556 2009-10-20  Pádraig Brady  <P@draigBrady.com>
33557
33558         acl: warn if ACL support is not detected
33559         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
33560
33561 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
33562
33563         * lib/nproc.h: Add extern "C" block for C++.
33564
33565 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
33566             Bruno Haible  <bruno@clisp.org>
33567
33568         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
33569         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
33570         * doc/posix-functions/isalpha.texi: Likewise.
33571         * doc/posix-functions/isblank.texi: Likewise.
33572         * doc/posix-functions/iscntrl.texi: Likewise.
33573         * doc/posix-functions/isdigit.texi: Likewise.
33574         * doc/posix-functions/isgraph.texi: Likewise.
33575         * doc/posix-functions/islower.texi: Likewise.
33576         * doc/posix-functions/isprint.texi: Likewise.
33577         * doc/posix-functions/ispunct.texi: Likewise.
33578         * doc/posix-functions/isspace.texi: Likewise.
33579         * doc/posix-functions/isupper.texi: Likewise.
33580         * doc/posix-functions/isxdigit.texi: Likewise.
33581
33582 2009-10-18  Bruno Haible  <bruno@clisp.org>
33583
33584         Tests for module 'isblank'.
33585         * modules/isblank-tests: New file.
33586         * tests/test-isblank.c: New file.
33587
33588         New module 'isblank'.
33589         * lib/isblank.c: New file.
33590         * m4/isblank.m4: New file.
33591         * modules/isblank: New file.
33592         * doc/posix-functions/isblank.texi: Mention the new module.
33593
33594 2009-10-18  Bruno Haible  <bruno@clisp.org>
33595
33596         New module 'ctype'.
33597         * lib/ctype.in.h: New file.
33598         * m4/ctype.m4: New file.
33599         * modules/ctype: New file.
33600         * doc/posix-headers/ctype.texi: Mention the new module.
33601
33602 2009-10-18  Jim Meyering  <meyering@redhat.com>
33603
33604         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
33605         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
33606         right after its initialization, rather than farther down.
33607         Keeping these in close proximity makes it easier to ensure
33608         that each such variable is initialized.  E.g.,
33609
33610             LIB_CLOCK_GETTIME=
33611             AC_SUBST([LIB_CLOCK_GETTIME])
33612
33613         This change also increments these serial numbers.
33614         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
33615         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
33616         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
33617
33618 2009-10-18  Bruno Haible  <bruno@clisp.org>
33619
33620         Don't let environment variables perturb build.
33621         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
33622         (gl_PREREQ_GETHRXTIME): ... not here.
33623
33624 2009-10-18  Bruno Haible  <bruno@clisp.org>
33625
33626         Avoid symlink attack in localcharset module.
33627         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
33628         (O_NOFOLLOW): Define fallback.
33629         (get_charset_aliases): Don't open the file if it is a symbolic link.
33630         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
33631         gl_FCNTL_H.
33632         (gl_FCNTL_H): Require it.
33633         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
33634         * modules/localcharset (Files): Add m4/fcntl_h.m4.
33635         Reported by Fergal Glynn <fglynn@veracode.com>.
33636
33637 2009-10-18  Bruno Haible  <bruno@clisp.org>
33638
33639         Implement nproc for mingw.
33640         * lib/nproc.c: Include <windows.h>
33641         (num_processors): On native Windows platforms, try GetSystemInfo.
33642
33643 2009-10-18  Bruno Haible  <bruno@clisp.org>
33644
33645         Implement nproc for IRIX.
33646         * lib/nproc.c: Include <sys/sysmp.h>.
33647         (num_processors): On IRIX systems, try sysmp.
33648         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
33649
33650 2009-10-18  Bruno Haible  <bruno@clisp.org>
33651
33652         Implement nproc for HP-UX.
33653         * lib/nproc.c: Include <sys/pstat.h>
33654         (num_processors): On HP-UX systems, try pstat_getdynamic.
33655         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
33656         pstat_getdynamic.
33657
33658 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
33659             Bruno Haible  <bruno@clisp.org>
33660
33661         Implement nproc for NetBSD, OpenBSD.
33662         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
33663         (ARRAY_SIZE): New macro.
33664         (num_processors): On BSD systems, try sysctl of HW_NCPU.
33665         * m4/nproc.m4: New file.
33666         * modules/nproc (Files): Add m4/nproc.m4.
33667         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
33668         (Makefile.am): Instead, augment lib_SOURCES.
33669
33670 2009-10-18  Bruno Haible  <bruno@clisp.org>
33671
33672         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
33673         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
33674         sys/param.h.
33675
33676 2009-10-16  Eric Blake  <ebb9@byu.net>
33677
33678         utimensat: new module
33679         * modules/utimensat: New file.
33680         * lib/utimensat.c (utimensat): Likewise.
33681         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
33682         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
33683         so we can work around Linux bugs.
33684         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
33685         * modules/sys_stat (Makefile.am): Substitute them.
33686         * lib/sys_stat.in.h (utimensat): Declare it.
33687         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
33688         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
33689         * modules/utimensat-tests: New test.
33690         * tests/test-utimensat.c: Likewise.
33691
33692         utimens: let lutimens work on non-symlinks
33693         * lib/utimens.c (lutimens): Fall back to utimens rather than
33694         failing with ENOSYS, when file is not a symlink.
33695         (utimens): Reduce redirection.
33696         * tests/test-lutimens.h (test_lutimens): Update test to cover
33697         non-symlinks.
33698         * tests/test-utimens.h (test_utimens): Update test to cover
33699         symlinks.
33700         * tests/test-utimens.c (main): Update caller.
33701
33702         utimens: cache whether utimensat syscall works
33703         * lib/utimens.c (utimensat_works_really): New cache variable.
33704         (fdutimens, lutimens): Use it to avoid failing syscall.
33705
33706         test-stat-time, test-utimens: improve portability
33707         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
33708         ext4 on alpha, and for cygwin.
33709         * tests/test-utimens-common.h: New file.
33710         (nap): Factor delays into single function.
33711         * tests/test-lutimens.h (test_lutimens): Use new header.
33712         * tests/test-futimens.h (test_futimens): Likewise.
33713         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
33714         timestamps to occur from same machine, as was done previously for
33715         test_utimens.
33716         * modules/utimens-tests (Files): Ship new file.
33717         * modules/futimens-tests (Files): Likewise.
33718         Reported in part by Jim Meyering.
33719
33720         sys_stat: sort replacement declarations
33721         * lib/sys_stat.in.h: Sort declarations.
33722         * lib/futimens.c (futimens): Fix typo.
33723
33724 2009-10-15  Jim Meyering  <meyering@redhat.com>
33725
33726         don't let environment settings perturb build
33727         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
33728         could cause a configure-time and/or build-time malfunction.
33729         Typically, a configure-time function-in-library test is performed
33730         via code like this:
33731
33732           LIB_VAR=
33733           AC_SUBST([LIB_VAR])
33734           prefix_saved_LIBS=$LIBS
33735             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
33736                        [test "$ac_cv_search_FUNC" = "none required" ||
33737                         LIB_VAR=$ac_cv_search_FUNC])
33738           LIBS=$prefix_saved_LIBS
33739
33740         However, in each of the files affected by this change, the LIB_VAR=
33741         initialization was omitted.  Thus, when set in the environment, its
33742         value would propagate into generated Makefiles when FUNC is not found
33743         in LIB_NAME.
33744         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
33745         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
33746         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
33747
33748 2009-10-14  Eric Blake  <ebb9@byu.net>
33749
33750         fchdir: avoid infinite recursion in mingw
33751         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
33752         recursing.
33753
33754         test-stat-time: port to mingw
33755         * tests/test-stat-time.c (force_unlink): Return a value.
33756         (test_ctime) [W32]: Fix compilation error.
33757         (nap): Don't call usleep with too large an argument.  Use
33758         force_unlink.
33759         * doc/pastposix-functions/usleep.texi (usleep): Document the
33760         portability issue.
33761
33762 2009-10-13  Jim Meyering  <meyering@redhat.com>
33763
33764         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
33765         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
33766         * modules/pipe-filter-ii: Likewise.
33767         * modules/sys_socket-tests: Likewise.
33768         * modules/tsearch-tests: Likewise.
33769         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
33770         (check): Depend on it.
33771
33772 2009-10-12  Eric Blake  <ebb9@byu.net>
33773
33774         utimens-tests: port to NFS file systems
33775         * tests/test-utimens.h (test_utimens): Refactor utimecmp
33776         comparisons to avoid spurious failures from timestamp drift
33777         between NFS machines.
33778
33779 2009-10-12  Eric Blake  <ebb9@byu.net>
33780
33781         stat-time-tests: minor cleanups
33782         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
33783         * tests/test-stat-time.c (nap): Separate assignment from call.
33784         Suggested by Paolo Bonzini and Bruno Haible.
33785
33786         sys_stat: guarantee struct timespec
33787         * lib/sys_stat.in.h (includes): Always include <time.h>
33788         * modules/sys_stat (Depends-on): Add time.
33789         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
33790         mode_t permission values.
33791         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
33792         get at subsecond timestamps.
33793
33794 2009-10-10  Eric Blake  <ebb9@byu.net>
33795
33796         futimens: new module
33797         * modules/futimens: New file.
33798         * lib/futimens.c (futimens): Likewise.
33799         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
33800         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
33801         we can work around Linux bugs.
33802         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
33803         * modules/sys_stat (Makefile.am): Substitute them.
33804         * lib/sys_stat.in.h (futimens): Declare it.
33805         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
33806         * doc/posix-functions/futimens.texi (futimens): Likewise.
33807         * modules/futimens-tests: New test.
33808         * tests/test-futimens.c: Likewise.
33809
33810         utimens: introduce fdutimens
33811         * lib/utimens.h (fdutimens): New prototype.
33812         * lib/utimens.c (gl_futimens): Move guts...
33813         (fdutimens): ...to new interface.
33814         * tests/test-utimens.c (do_fdutimens): Use it.
33815
33816         utimens: add UTIME_NOW and UTIME_OMIT support
33817         * lib/utimens.c (validate_timespec, update_timespec): New helper
33818         functions.
33819         (gl_futimens, lutimens): Use them.
33820         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
33821         stdbool, sys_stat.
33822         (Link): Mention resulting library dependency.
33823         * modules/utimecmp (Link): Likewise.
33824         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
33825         (Makefile.am): Pick up library dependency.
33826         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
33827         definition.
33828         * tests/test-sys_stat.c: Test the definitions.
33829         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
33830         * NEWS: Document library dependency.
33831
33832         utimecmp: support symlink timestamps
33833         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
33834         hashing when possible.  Use pathconf when available.
33835         (SYSCALL_RESOLUTION): Recognize tighter resolution.
33836         * modules/utimecmp (Depends-on): Add lstat.
33837
33838         utimens: add lutimens interface
33839         * lib/utimens.c (lutimens): New function.
33840         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
33841         * lib/utimens.h (lutimens): Declare new interface.
33842         * tests/test-utimens.c (main): Enhance test.
33843         * tests/test-lutimens.h (test_lutimens): New file.
33844         * modules/utimens-tests (Files): Distribute it.
33845         (Depends-on): Add symlink.
33846         (configure.ac): Check for usleep.
33847
33848         utimens: validate futimens usage
33849         * lib/utimens.c (gl_futimens): Require valid fd up front, using
33850         fewer syscalls on failure later on.  Avoid compiler warning on
33851         mingw.
33852         * modules/utimens (Depends-on): Add dup2.
33853
33854         utimens: add test
33855         * modules/utimens-tests: New test.
33856         * tests/test-utimens.h: New file.
33857         * tests/test-futimens.h: Likewise.
33858         * tests/test-utimens.c: Likewise.
33859
33860         doc: mention timestamp portability issues
33861         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
33862         instead.
33863         * doc/posix-functions/utime.texi (utime): Likewise.
33864         * doc/posix-functions/utimes.texi (utimes): Likewise.
33865         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
33866         instead.
33867         * doc/posix-functions/futimens.texi (futimens): Mention utimens
33868         module.
33869         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
33870         Mention weakness with symlink timestamps.
33871         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
33872         to utimensat/futimens instead.
33873         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
33874
33875         test-dup2: enhance test
33876         * tests/test-dup2.c (main): Also check AT_FDCWD.
33877
33878         test-stat-time: avoid more spurious failures
33879         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
33880         xfs; and avoid race if the two timestamps cross quantization edge.
33881
33882         relocatable: prefer 'file system' over 'filesystem'
33883         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
33884         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
33885         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
33886         * doc/relocatable.texi (Enabling Relocatability): Likewise.
33887         * lib/relocatable.c (compute_curr_prefix): Likewise.
33888
33889 2009-10-10  Jim Meyering  <meyering@redhat.com>
33890
33891         stat-time-tests: check for the usleep function
33892         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
33893
33894 2009-10-10  Bruno Haible  <bruno@clisp.org>
33895
33896         * modules/xnanosleep: Put the Link section after the Include section.
33897
33898 2009-10-09  Eric Blake  <ebb9@byu.net>
33899
33900         dup2: work around FreeBSD 6.1 bug
33901         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
33902         * doc/posix-functions/dup2.texi (dup2): Document it.
33903         Reported by Nelson H. F. Beebe and Jim Meyering.
33904
33905         test-stat-time: port to buggy NFS clients
33906         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
33907         (test_ctime): Also skip test if mtime and ctime are skewed.
33908
33909         maint: prefer 'file system' over 'filesystem'
33910         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
33911         * doc/posix-functions/lstat.texi (lstat): Likewise.
33912         * lib/file-has-acl.c (file_has_acl): Likewise.
33913         * lib/fwriteerror.c [TEST]: Likewise.
33914         * tests/test-areadlink.h (test_areadlink): Likewise.
33915         * tests/test-areadlinkat-with-size.c (main): Likewise.
33916         * tests/test-areadlinkat.c (main): Likewise.
33917         * tests/test-canonicalize-lgpl.c (main): Likewise.
33918         * tests/test-canonicalize.c (main): Likewise.
33919         * tests/test-fstatat.c (main): Likewise.
33920         * tests/test-linkat.c (main): Likewise.
33921         * tests/test-lstat.h (test_lstat_func): Likewise.
33922         * tests/test-mkdir.h (test_mkdir): Likewise.
33923         * tests/test-readlink.h (test_readlink): Likewise.
33924         * tests/test-remove.c (main): Likewise.
33925         * tests/test-rename.h (test_rename): Likewise.
33926         * tests/test-renameat.c (main): Likewise.
33927         * tests/test-rmdir.h (test_rmdir_func): Likewise.
33928         * tests/test-symlink.h (test_symlink): Likewise.
33929         * tests/test-symlinkat.c (main): Likewise.
33930         * tests/test-unlink.h (test_unlink_func): Likewise.
33931         * tests/test-unlinkat.c (main): Likewise.
33932
33933         maint: make realtime library usage explicit
33934         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
33935         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
33936         * modules/settime (Link): Likewise.
33937         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
33938
33939         test-stat-time: speed up execution
33940         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
33941         warning on mingw.
33942         (nap): New helper function.
33943         (prepare_test): Use it to reduce sleep time.
33944         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
33945         execution.
33946         * modules/stat-time-tests (configure.ac): Check for usleep.
33947
33948 2009-10-09  Jim Meyering  <meyering@redhat.com>
33949
33950         selinux-h: always use getfilecon wrappers
33951         * lib/getfilecon.c: New file.
33952         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
33953         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
33954         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
33955         (fgetfilecon): Provide a stub.
33956         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
33957         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
33958         file unconditionally.
33959         When <selinux/selinux.h> is found, arrange to use wrappers.
33960         * modules/selinux-h (Files): Add getfilecon.c.
33961         (Makefile.am): Substitute include-next-related bits
33962         into the now-always-generated selinux/selinux.h file.
33963         * doc/glibc-functions/lgetfilecon.texi: New file.
33964         * doc/glibc-functions/fgetfilecon.texi: New file.
33965         * doc/glibc-functions/getfilecon.texi: New file.
33966         * doc/glibc-functions/getfilecon-desc.texi: New file.
33967         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
33968         which to pull in the new files.
33969         * MODULES.html.sh (Misc): Add selinux-h.
33970
33971 2009-10-08  Jim Meyering  <meyering@redhat.com>
33972
33973         unistd: fix comment typo
33974         * lib/unistd.in.h (euidaccess): Fix a comment typo.
33975
33976 2009-10-08  Eric Blake  <ebb9@byu.net>
33977
33978         areadlink: use SIZE_MAX consistently
33979         * modules/areadlink (Depends-on): Add stdint.
33980         * modules/areadlink-with-size (Depends-on): Likewise.
33981         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
33982         gives NULL; drop sys/types, since unistd gives size_t; and add
33983         stdint for SIZE_MAX.
33984         (SIZE_MAX): Rely on headers.
33985         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
33986         and add stdint.
33987         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
33988         (SIZE_MAX): Likewise.
33989         (INITIAL_BUF_SIZE): Turn into enum.
33990         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
33991
33992 2009-10-08  Jim Meyering  <meyering@redhat.com>
33993
33994         areadlinkat: avoid compilation failure
33995         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
33996         Fix typo in comment.
33997
33998 2009-10-07  Eric Blake  <ebb9@byu.net>
33999
34000         areadlinkat-with-size: new module
34001         * modules/areadlinkat-with-size: New module.
34002         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
34003         * lib/areadlink.h (areadlinkat): Declare it.
34004         * MODULES.html.sh (File system functions): Mention it.
34005         * modules/areadlinkat-with-size-tests: New test.
34006         * tests/test-areadlinkat-with-size.c: New file.
34007
34008         xreadlinkat: new module
34009         * modules/xreadlinkat: New module.
34010         * lib/xreadlinkat.c (xreadlinkat): New file.
34011         * lib/xreadlink.h (xreadlinkat): Declare it.
34012         * MODULES.html.sh (File system functions): Mention it.
34013
34014         areadlinkat: new module
34015         * lib/at-func.c (FUNC_FAIL): New define.
34016         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
34017         * modules/areadlinkat: New module.
34018         * lib/linkat.c (areadlinkat): Move...
34019         * lib/areadlinkat.c (areadlinkat): ...to new file.
34020         * lib/areadlink.h (areadlinkat): Declare it.
34021         * modules/linkat (Depends-on): Add areadlinkat.
34022         * MODULES.html.sh (File system functions): Mention it.
34023         * modules/areadlinkat-tests: New test.
34024         * tests/test-areadlinkat.c: New file.
34025
34026         areadlink, areadlink-with-size: add tests
34027         * modules/areadlink-tests: New test.
34028         * modules/areadlink-with-size-tests: Likewise.
34029         * tests/test-areadlink.h: New file.
34030         * tests/test-areadlink.c: Likewise.
34031         * tests/test-areadlink-with-size.c: Likewise.
34032
34033         maint: minor cleanups
34034         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
34035         _UNUSED_PARAMETER_ instead.
34036         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
34037         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
34038         * modules/linkat-tests (Files): Distribute test-link.h.
34039
34040         openat, utimens: whitespace cleanup
34041         * lib/openat.c: Prefer space throughout, rather than mix of 8
34042         spaces vs. tabs.
34043         * lib/at-func.c: Likewise.
34044         * lib/utimens.c: Likewise.
34045
34046         openat: avoid using wrong fd
34047         * lib/openat.c (openat_permissive): Reject user's fd if saving the
34048         working directory chooses same fd.
34049         * lib/at-func.c (AT_FUNC_NAME): Likewise.
34050
34051         mkdir, mkdirat: fix cygwin 1.5.x bug
34052         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
34053         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
34054         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
34055         bug.
34056         (gl_PREREQ_MKDIR): Delete unused macro.
34057         * modules/mkdir (Files): Track file rename.
34058         (configure.ac): Update macro name.
34059         * modules/openat (Depends-on): Add mkdir.
34060         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
34061
34062         mkdir, mkdirat: add tests
34063         * modules/mkdir-tests: New test.
34064         * tests/test-mkdir.h: New file.
34065         * tests/test-mkdir.c: Likewise.
34066         * tests/test-mkdirat.c: Likewise.
34067         * modules/openat-tests (Files): Add new files.
34068         (Makefile.am): Run new test.
34069
34070 2009-10-06  Eric Blake  <ebb9@byu.net>
34071
34072         doc: tweak *at function documentation
34073         * doc/posix-functions/faccessat.texi (faccessat): Mention
34074         known issue with replacement.
34075         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
34076         * doc/posix-functions/linkat.texi (linkat): Likewise.
34077         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
34078         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
34079         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
34080         * doc/posix-functions/renameat.texi (renameat): Likewise.
34081         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
34082
34083         openat: fix GNU/Hurd bug in unlinkat
34084         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
34085         broken.
34086         * doc/posix-functions/unlink.texi (unlink): Document this.
34087         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
34088
34089         fdopendir: fix GNU/Hurd bug
34090         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
34091         allowing non-directory fds.
34092         * lib/fdopendir.c (rpl_fdopendir): Work around it.
34093         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
34094         * modules/dirent (Makefile.am): Substitute it.
34095         * lib/dirent.in.h (fdopendir): Declare replacement.
34096         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
34097         * tests/test-fdopendir.c (main): Test something other than
34098         /dev/null, since on Hurd that behaves like a directory.
34099
34100         test-symlink: port to GNU/Hurd
34101         * tests/test-symlink.h (test_symlink): Relax expected errno.
34102
34103         doc: tweak more cygwin information
34104         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
34105         now compatible with glibc.
34106         * doc/posix-functions/getopt.texi (getopt): Likewise.
34107
34108         getopt-gnu: add another test
34109         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
34110         guarantee behavior relied on by m4.
34111         * tests/test-getopt.c (main): Use it.
34112         * modules/getopt-posix-tests (Depends-on): Add setenv.
34113         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
34114
34115         getopt: fix compilation on darwin
34116         * lib/getopt.in.h (includes): Leave breadcrumbs during system
34117         include.
34118         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
34119         Reported by Ludovic Courtès.
34120
34121 2009-10-06  Bruno Haible  <bruno@clisp.org>
34122
34123         * modules/size_max (Description): Discourage its use.
34124         Reported by Simon Josefsson.
34125
34126 2009-10-06  Jim Meyering  <meyering@redhat.com>
34127
34128         linkat: avoid compilation failure
34129         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
34130
34131 2009-10-05  Eric Blake  <ebb9@byu.net>
34132
34133         linkat: support Linux 2.6.17
34134         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
34135         linkat on Linux, but allow cache variable override.
34136         * lib/linkat.c (rpl_linkat): Define override.
34137         * modules/linkat (Depends-on): Add symlinkat.
34138         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
34139         * modules/unistd (Makefile.am): Substitute it.
34140         * lib/unistd.in.h (linkat): Declare replacement.
34141         Reported by Pádraig Brady.
34142
34143         quotearg: port test to systems with C.UTF-8 locale
34144         * tests/test-quotearg.c (struct result_strings): Add another
34145         member, differentiating between C.ASCII and C.UTF-8 handling.
34146         (compare_strings): Add parameter.
34147         (main): Adjust all callers.
34148
34149         getopt: avoid clash with FreeBSD _getopt_internal
34150         * lib/getopt.in.h (_getopt_internal): Override the name.
34151         * lib/getopt_int.h (includes): Pick up any overrides.
34152         Reported by Reuben Thomas.
34153
34154         hash: allow C89 compilation
34155         * lib/hash.c (check_tuning): Move declaration before statement.
34156         Reported by Reuben Thomas.
34157
34158 2009-10-05  Karl Berry  <karl@gnu.org>
34159
34160         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
34161
34162 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
34163             Bruno Haible  <bruno@clisp.org>
34164
34165         * lib/uname.c (uname): Use a table-driven algorithm to compute
34166         Windows NT versions.
34167
34168 2009-10-04  Bruno Haible  <bruno@clisp.org>
34169
34170         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
34171         program_invocation_short_name.
34172         * modules/progname (configure.ac): Test for presence of
34173         program_invocation_short_name.
34174         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
34175
34176 2009-10-04  Bruno Haible  <bruno@clisp.org>
34177
34178         * lib/progname.c (set_program_name): Fix comment.
34179         Reported by Jim Meyering.
34180
34181 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
34182             Bruno Haible  <bruno@clisp.org>
34183
34184         * lib/uname.c: Include <string.h>.
34185         (uname): Do only one call to GetVersionEx in the common case.
34186
34187 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
34188             Bruno Haible  <bruno@clisp.org>
34189
34190         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
34191         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
34192         (uname): Add support for Windows CE and various non-x86 CPU types.
34193
34194 2009-10-03  Bruno Haible  <bruno@clisp.org>
34195
34196         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
34197         invocation to tests/configure.ac.
34198         Reported by Ian Beckwith <ianb@erislabs.net>.
34199
34200 2009-10-02  Eric Blake  <ebb9@byu.net>
34201
34202         fchdir: avoid compiler warning
34203         * lib/fchdir.c (canonicalize_file_name)
34204         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
34205
34206         test-open: support mingw errno values
34207         * tests/test-open.h (test_open): Relax test.
34208         * tests/test-fopen.h (test_fopen): Likewise.
34209         * tests/test-openat-safer.c (main): Likewise.
34210
34211         open: fix opening directory on mingw
34212         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
34213
34214         test-open: on GNU/Hurd, /dev/null is a directory
34215         * tests/test-fopen.h (main): Rename...
34216         (test_fopen): ...to this.  Use a guaranteed non-directory when
34217         confirming open behavior on trailing slash.
34218         * tests/test-openat-safer.c (main): Likewise.
34219         * tests/test-open.h (main): Likewise....
34220         (test_open): ...to this.
34221         * tests/test-fopen.c (main): Adjust caller.
34222         * tests/test-fopen-safer.c (main): Likewise.
34223         * tests/test-open.c (main): Likewise.
34224         * tests/test-fcntl-safer.c (main): Likewise.
34225         Reported by Samuel Thibault.
34226
34227         rename, fchdir: don't ignore chdir failure
34228         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
34229         * lib/rename.c (rpl_rename) [W32]: Likewise.
34230         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
34231         an empty destination directory if source cannot be renamed,
34232         although there is still possibility for failure.
34233         * doc/posix-functions/rename.texi (rename): Document the race.
34234         Reported by Jim Meyering.
34235
34236         maint: cleanup whitespace in recent commits
34237         * lib/rename.c (rpl_rename): Remove tabs.
34238         * tests/test-link.h (test_link): Likewise.
34239         * lib/fchdir.c (get_name): Likewise.
34240         Reported by Jim Meyering.
34241
34242 2009-10-02  Ben Pfaff  <blp@gnu.org>
34243
34244         relocatable-prog-wrapper: Add missing dependency on
34245         double-slash-root.
34246         * modules/relocatable-prog-wrapper: Add dependency.
34247         Reported by Ian Beckwith <ianb@erislabs.net>.
34248
34249 2009-10-02  Eric Blake  <ebb9@byu.net>
34250
34251         renameat: fix Solaris bugs
34252         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
34253         needed fixing.
34254         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
34255         * modules/stdio (Makefile.am): Substitute it.
34256         * lib/stdio.in.h (renameat): Declare replacement.
34257         * lib/renameat.c (rpl_renameat): Implement fix.
34258
34259         renameat: new module
34260         * modules/renameat: New file.
34261         * lib/renameat.c (renameat): Likewise.
34262         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
34263         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
34264         * modules/stdio (Makefile.am): Substitute them.
34265         * lib/stdio.in.h (renameat): Declare it.
34266         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
34267         * doc/posix-functions/renameat.texi (renameat): Likewise.
34268         * modules/renameat-tests: New test.
34269         * tests/test-renameat.c: Likewise.
34270
34271         rename: fix mingw bugs
34272         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
34273         directory overwrite bugs.
34274
34275         rename: fix another cygwin 1.5 bug
34276         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
34277         checks.
34278         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
34279         unnecessary cygwin workarounds.  Also work around bug with moving
34280         full directory onto an empty one.
34281         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
34282
34283         rename-dest-slash: merge into rename module
34284         * modules/rename-dest-slash (Status): Mark obsolete.
34285         (Depends-on): Add rename.
34286         (Files): Let rename do it all.
34287         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
34288         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
34289         * m4/rename-dest-slash.m4: ...so this file can be deleted.
34290         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
34291         * lib/rename.c (rpl_rename): Update comments.
34292
34293         rename: fix cygwin 1.5.x bugs
34294         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
34295         * lib/rename.c (rpl_rename): Work around them.
34296         * modules/rename (Depends-on): Add same-inode.
34297
34298         rename: fix Solaris 10 bug
34299         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
34300         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
34301         was the only bug.
34302
34303         rename: fix Solaris 9 bug
34304         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
34305         on non-directory.  Avoid calling exit.
34306         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
34307         strdup.
34308         * modules/rename-tests (Depends-on): Drop lstat.
34309         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
34310         (gl_PREREQ_RENAME): Delete unused macro.
34311
34312         rename-dest-slash: fix NetBSD bug
34313         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
34314         links.
34315         * modules/rename-dest-slash (Depends-on): Add same-inode.
34316
34317         rename-tests: new test, exposes several platform bugs
34318         * modules/rename-tests: New file.
34319         * tests/test-rename.h: Likewise.
34320         * tests/test-rename.c: Likewise.
34321         * doc/posix-functions/rename.texi (rename): Improve documentation,
34322         including bugs that will eventually be fixed in gnulib.
34323
34324 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
34325
34326         * lib/uname.c: Include <stdlib.h>
34327         (uname): Assume version info is available.
34328
34329 2009-10-02  Jim Meyering  <meyering@redhat.com>
34330
34331         gnu-web-doc-update: correct --help output
34332         * build-aux/gnu-web-doc-update: Make --help output relevant.
34333
34334         gnu-web-doc-update: add standard options
34335         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
34336
34337         gnu-web-doc-update: New module.
34338         Use this script to automatically update the on-line web documentation
34339         for your GNU project at http://www.gnu.org/software/$pkg/manual/
34340         * modules/gnu-web-doc-update: New file, from coreutils.
34341         * build-aux/gnu-web-doc-update: New script.
34342
34343 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
34344
34345         link: LoadLibrary is not needed.
34346         * lib/link.c: Use GetModuleHandle.
34347
34348 2009-10-01  Eric Blake  <ebb9@byu.net>
34349
34350         getopt: bump serial number
34351         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
34352         change.
34353
34354         tests: tighten link, rmdir, and remove tests
34355         * tests/test-link.h (includes): No need to use <config.h> here.
34356         Clean up if directory hard link was created, otherwise test for
34357         trailing '.'.
34358         * tests/test-linkat.c (main): Simplify.
34359         * tests/test-remove.c (main): Enhance test for trailing '.'.
34360         * tests/test-rmdir.h (test_rmdir_func): Likewise.
34361
34362 2009-10-01  Jim Meyering  <meyering@redhat.com>
34363
34364         maint.mk: requiring "make major" was annoying, for a "minor" release.
34365         What is intended is "stable", to contrast with alpha and beta,
34366         so require "make stable", not "make major".
34367         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
34368         (get_tool_versions): Likewise.
34369         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
34370
34371 2009-09-30  Ben Pfaff  <blp@gnu.org>
34372
34373         Fix broken build of replacement for Windows tmpfile().
34374         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
34375         flags argument added along with the 'mkostemp' module.
34376
34377 2009-09-28  Bruno Haible  <bruno@clisp.org>
34378
34379         Avoid identifier clash with POSIX function 'remove' defined as a macro.
34380         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
34381         to 'remove_elt'.
34382         (gl_list_remove): Update.
34383         * lib/gl_list.c (gl_list_remove): Update.
34384         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
34385         to 'remove_elt'.
34386         (gl_oset_remove): Update.
34387         * lib/gl_list.c (gl_oset_remove): Update.
34388         Reported by Eric Blake.
34389
34390 2009-09-28  Eric Blake  <ebb9@byu.net>
34391
34392         doc: mention yet more cygwin 1.7 status
34393         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
34394         cygwin.
34395         * doc/glibc-functions/execvpe.texi (execvpe): New file.
34396         * doc/gnulib.texi (Glibc unistd.h): Mention it.
34397
34398         argp: fix test failure
34399         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
34400         that are not upper-case.  Pass correct range to tolower.
34401
34402 2009-09-27  Jim Meyering  <meyering@redhat.com>
34403
34404         test-yesno: work around sparc-dash here-document infelicity
34405         Without this change, the literal \177 byte in a here document
34406         would make dash 0.5.5.1-3 access uninitialized memory.
34407         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
34408         Instead, use a marker, "@", and filter through tr to create the desired
34409         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
34410
34411 2009-09-27  Bruno Haible  <bruno@clisp.org>
34412
34413         Disable untested support for new flavours of ACLs on AIX.
34414         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
34415         progress.
34416         * lib/set-mode-acl.c (qset_acl): Likewise.
34417
34418 2008-12-07  Bruno Haible  <bruno@clisp.org>
34419
34420         Add support for new flavours of ACLs on AIX. (Untested.)
34421         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
34422         (file_has_acl): Add support for newer AIX.
34423         * lib/set-mode-acl.c (qset_acl): Likewise.
34424         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
34425         Rainer Tammer <tammer@tammer.net>.
34426
34427 2009-09-26  Eric Blake  <ebb9@byu.net>
34428
34429         argp: fix compilation of getopt
34430         * lib/getopt.in.h (includes): Use different guard than glibc.
34431         Reported by Sergey Poznyakoff.
34432
34433         doc: mention more cygwin 1.7 status
34434         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
34435         bug.
34436         * doc/posix-functions/execl.texi (execl): Likewise.
34437         * doc/posix-functions/execle.texi (execle): Likewise.
34438         * doc/posix-functions/execlp.texi (execlp): Likewise.
34439         * doc/posix-functions/execv.texi (execv): Likewise.
34440         * doc/posix-functions/execve.texi (execve): Likewise.
34441         * doc/posix-functions/execvp.texi (execvp): Likewise.
34442         * doc/glibc-functions/canonicalize_file_name.texi
34443         (canonicalize_file_name): Cygwin 1.7 now provides this.
34444         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
34445         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
34446         on AT_SYMLINK_NOFOLLOW.
34447
34448 2009-09-24  Eric Blake  <ebb9@byu.net>
34449
34450         test-linkat: make test more robust
34451         * tests/test-linkat.c (main): Avoid collision with EEXIST.
34452
34453         getopt: fix inclusion guards for cygwin
34454         * modules/getopt-posix (Depends-on): Add include-next.
34455         (Makefile.am): Substitute more items in replacement header.
34456         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
34457         <getopt.h>.
34458         * lib/getopt.in.h (includes): Use split inclusion guard, and
34459         prefer <getopt.h> over include <unistd.h> when one is present.
34460         (option): Also override name of 'struct option'.
34461
34462         same-inode: revert prior change; it is not yet ready
34463         * NEWS: Undo mention of this change.
34464         * lib/same-inode.h (same-inode.h): Undo tri-state change.
34465         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
34466         * lib/cycle-check.c (cycle_check): Likewise.
34467         * lib/same.c (same_name): Likewise.
34468         * lib/at-func2.c (at_func2): Likewise.
34469
34470 2009-09-23  Eric Blake  <ebb9@byu.net>
34471
34472         linkat: new module
34473         * modules/linkat: New file.
34474         * lib/at-func2.c (at_func2): Likewise.
34475         * lib/linkat.c (linkat): Likewise.
34476         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
34477         * lib/openat-priv.h (at_func2): Add declaration.
34478         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
34479         * modules/unistd (Makefile.am): Substitute them.
34480         * lib/unistd.in.h (linkat): Declare it.
34481         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
34482         * doc/posix-functions/linkat.texi (linkat): Likewise.
34483         * doc/posix-functions/link.texi (link): Tweak wording.
34484         * tests/test-link.c (main): Move guts...
34485         * tests/test-link.h (test_link): ...into new file.
34486         * modules/linkat-tests: New test.
34487         * tests/test-linkat.c: Likewise.
34488         * modules/link-tests (Files): Ship new file.
34489         (Depends-on): Add stdbool.
34490
34491         dirname: add library-safe mdir_name
34492         * lib/dirname.h (mdir_name): New prototype.
34493         * lib/dirname.c (dir_name): Move guts...
34494         (mdir_name): ...to new function that avoids xalloc_die.
34495
34496         fchdir: another mingw fix
34497         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
34498         * lib/fchdir.c (get_name): New helper method; skips canonicalize
34499         on mingw (where it has not yet been ported), and make it optional
34500         elsewhere.
34501         (_gl_register_fd): Use it.
34502
34503         same-inode: make SAME_INODE tri-state, to port to mingw
34504         * NEWS: Mention this change.
34505         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
34506         st_ino always being 0.
34507         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
34508         * lib/cycle-check.c (cycle_check): Likewise.
34509         * lib/same.c (same_name): Likewise.
34510
34511         lstat: avoid mingw compilation error
34512         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
34513         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
34514         lstat ourselves.
34515         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
34516         was adequate.
34517         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
34518         the checks for lstat.
34519         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
34520
34521         link: fix test failure on Solaris 9
34522         * lib/link.c (rpl_link): Don't assume link will catch bogus
34523         trailing slash on source.
34524
34525         test-symlinkat: enhance test
34526         * tests/test-readlink.c (main): Move guts...
34527         * tests/test-readlink.h (test_readlink): ...into new file.
34528         * tests/test-symlink.c (main): Move guts...
34529         * tests/test-symlink.h (test_symlink): ...into new file.
34530         * tests/test-symlinkat.c (main): Use new files for further
34531         coverage.
34532         (do_symlink, do_readlink): New helper functions.
34533         * modules/symlink-tests (Files): Ship new file.
34534         (Depends-on): Add stdbool.
34535         * modules/readlink-tests (Files): Ship new file.
34536         (Depends-on): Add stdbool.
34537         * modules/symlinkat-tests (Files): Use new files.
34538
34539 2009-09-23  Eric Blake  <ebb9@byu.net>
34540
34541         readlink: document portability issue with symlink length
34542         * doc/posix-functions/lstat.texi (lstat): Mention that some file
34543         systems have bogus st_size on symlinks, and mention the
34544         areadlink-with-size module.
34545         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
34546         * doc/posix-functions/readlink.texi (readlink): Mention the
34547         areadlink module, and ERANGE failure.
34548         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
34549         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
34550
34551         readlink: fix Solaris 9 bug with trailing slash
34552         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
34553         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
34554         * doc/posix-functions/readlink.texi (readlink): Document this.
34555         * modules/readlink-tests: New test.
34556         * tests/test-readlink.c: Likewise.
34557
34558         readlink: fix cygwin 1.5.x bug with return type
34559         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
34560         * lib/unistd.in.h (readlink): Use ssize_t.
34561         * lib/readlink.c (readlink): Likewise.
34562         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
34563         * modules/unistd (Makefile.am): Substitute it.
34564         * lib/unistd.in.h (readlink): Declare replacement.
34565         * doc/posix-functions/readlink.texi (readlink): Document this.
34566
34567         symlink: use throughout gnulib
34568         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
34569         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
34570         symlink is not used.
34571         * modules/symlinkat (Depends-on): Add symlink.
34572         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
34573         * modules/canonicalize-tests (Depends-on): Likewise.
34574         * modules/lstat-tests (Depends-on): Likewise.
34575         * modules/openat-tests (Depends-on): Likewise.
34576         * modules/remove-tests (Depends-on): Likewise.
34577         * modules/rmdir-tests (Depends-on): Likewise.
34578         * modules/unlink-tests (Depends-on): Likewise.
34579         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
34580         * tests/test-canonicalize.c (symlink): Likewise.
34581         * tests/test-fstatat.c (symlink): Likewise.
34582         * tests/test-lstat.c (symlink): Likewise.
34583         * tests/test-remove.c (symlink): Likewise.
34584         * tests/test-rmdir.c (symlink): Likewise.
34585         * tests/test-unlink.c (symlink): Likewise.
34586         * tests/test-unlinkat.c (symlink): Likewise.
34587
34588         symlink: new module, for Solaris 9 bug
34589         * modules/symlink: New file.
34590         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
34591         * lib/symlink.c: Likewise.
34592         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
34593         * modules/unistd (Makefile.am): Substitute them.
34594         * lib/unistd.in.h (symlink): Declare replacement.
34595         * MODULES.html.sh (File system functions): Mention it.
34596         * doc/posix-functions/symlink.texi (symlink): Likewise.
34597         * modules/symlink-tests: New test.
34598         * tests/test-symlink.c: Likewise.
34599
34600 2009-09-23  Bruno Haible  <bruno@clisp.org>
34601
34602         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
34603         when needed.
34604         Test case: gnulib-tool --import --with-tests atexit inttypes.
34605         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
34606
34607 2009-09-23  Bruno Haible  <bruno@clisp.org>
34608
34609         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
34610         subcommand, not in a subshell.
34611
34612 2009-09-22  Eric Blake  <ebb9@byu.net>
34613
34614         unistd: sort replacement declarations
34615         * lib/unistd.in.h: Sort declarations.
34616
34617         open, openat: minor optimization
34618         * lib/open.c (open): If open succeeded, len is non-zero.
34619         * lib/openat.c (rpl_openat): Likewise.
34620
34621         link-follow: ensure correct result
34622         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
34623         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
34624         distinguish between possible failures.
34625
34626 2009-09-21  Eric Blake  <ebb9@byu.net>
34627
34628         fts: avoid compiler warning
34629         * lib/fts.c (dirent_inode_sort_may_be_useful)
34630         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
34631
34632 2009-09-19  Bruno Haible  <bruno@clisp.org>
34633
34634         * lib/progreloc.c (canonicalize_file_name): New declaration.
34635
34636 2009-09-19  Eric Blake  <ebb9@byu.net>
34637
34638         link: fix quoting
34639         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
34640
34641         openat: fix openat bugs on Solaris 9
34642         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
34643         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
34644         * modules/openat (Depends-on): Add open.
34645         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
34646         * modules/fcntl-h (Makefile.am): Substitute it.
34647         * lib/fcntl.in.h (openat): Declare replacement.
34648         * doc/posix-functions/openat.texi (openat): Document this.
34649
34650         openat: move fstatat and unlinkat into correct files
34651         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
34652         compiled.
34653         * lib/openat.c (fstatat, unlinkat): Move...
34654         * lib/fstatat.c (fstatat): ...into correct files.
34655         * lib/unlinkat.c (unlinkat): Likewise.
34656
34657         openat: fix unlinkat bugs on Solaris 9
34658         * lib/unlinkat.c (unlinkat): New file.
34659         * modules/openat (Depends-on): Add unlink.
34660         (Files): Distribute it.
34661         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
34662         trailing slash behavior is broken.
34663         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
34664         * modules/unistd (Makefile.am): Substitute it.
34665         * lib/unistd.in.h (unlinkat): Declare replacement.
34666         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
34667
34668         openat: fix fstatat bugs on Solaris 9
34669         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
34670         stat.
34671         * doc/posix-functions/fstatat.texi (fstatat): Document this.
34672
34673         test-unlinkat: enhance test, to expose Solaris 9 bug
34674         * tests/test-unlink.c (main): Factor guts...
34675         * tests/test-unlink.h (test_rmdir_func): ...into new file.
34676         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
34677         * tests/test-rmdir.c (main): Adjust caller.
34678         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
34679         (unlinker): New helper function.
34680         (rmdirat): Enhance check.
34681         * modules/rmdir-tests (Depends-on): Add stdbool.
34682         * modules/unlink-tests (Depends-on): Likewise.
34683         (Files): Add test-unlink.h.
34684         * modules/openat-tests (Files): Likewise.
34685         (Depends-on): Add unlinkdir.
34686
34687         test-fstatat: new test, to expose Solaris 9 bugs
34688         * tests/test-stat.c (main): Factor guts...
34689         * tests/test-stat.h (test_stat_func): ...into new file.
34690         * tests/test-lstat.c (main): Factor guts...
34691         * tests/test-lstat.h (test_lstat_func): ...into new file.
34692         * tests/test-fstatat.c: New file.
34693         * modules/stat-tests (Files): Add test-stat.h.
34694         * modules/lstat-tests (Files): Add test-lstat.h.
34695         (Depends-on): Add stdbool.
34696         * modules/openat-tests (Depends-on): Add pathmax.
34697         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
34698         (Makefile.am): Run new test.
34699
34700         remove: new module, for mingw and Solaris 9 bugs
34701         * modules/remove: New file.
34702         * lib/remove.c: Likewise.
34703         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
34704         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
34705         * modules/stdio (Makefile.am): Use them.
34706         * lib/stdio.in.h (remove): Declare replacement.
34707         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
34708         * doc/posix-functions/remove.texi (remove): Likewise.
34709         * modules/remove-tests: New test.
34710         * tests/test-remove.c: Likewise.
34711
34712         unlink: new module, for Solaris 9 bug
34713         * modules/unlink: New file.
34714         * lib/unlink.c: Likewise.
34715         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
34716         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
34717         * modules/unistd (Makefile.am): Use them.
34718         * lib/unistd.in.h (stat): Declare replacement.
34719         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
34720         * doc/posix-functions/unlink.texi (unlink): Likewise.
34721         * modules/unlink-tests: New test.
34722         * tests/test-unlink.c: Likewise.
34723
34724         lstat: fix Solaris 9 bug
34725         * lib/lstat.c (lstat): Also check for trailing slash on
34726         non-symlink, non-directories.  Use stat module to simplify logic.
34727         * doc/posix-functions/lstat.texi (lstat): Document it.
34728         * modules/lstat-tests (Depends-on): Add errno, same-inode.
34729         (configure.ac): Check for symlink.
34730         * tests/test-lstat.c (main): Add more tests.
34731
34732         stat: add as dependency to other modules
34733         * modules/chown (Depends-on): Add stat.
34734         * modules/euidaccess (Depends-on): Likewise.
34735         * modules/fchdir (Depends-on): Likewise.
34736         * modules/isdir (Depends-on): Likewise.
34737         * modules/link (Depends-on): Likewise.
34738         * modules/lstat (Depends-on): Likewise.
34739         * modules/mkdir-p (Depends-on): Likewise.
34740         * modules/modechange (Depends-on): Likewise.
34741         * modules/open (Depends-on): Likewise.
34742         * modules/readlink (Depends-on): Likewise.
34743         * modules/same (Depends-on): Likewise.
34744
34745         stat: fix Solaris 9 bug
34746         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
34747         slash.
34748         * lib/stat.c (rpl_stat): Work around it.
34749         * doc/posix-functions/stat.texi (stat): Update documentation.
34750
34751         stat: new module, for mingw bug
34752         * modules/stat: New file.
34753         * lib/stat.c: Likewise.
34754         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
34755         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
34756         * modules/sys_stat (Makefile.am): Use them.
34757         * lib/sys_stat.in.h (stat): Declare replacement.
34758         * lib/openat.c (fstatat): Deal with lstat and stat being function
34759         macros.
34760         * modules/openat (Depends-on): Add inline.
34761         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
34762         * doc/posix-functions/stat.texi (stat): Likewise.
34763         * modules/stat-tests: New test.
34764         * tests/test-stat.c: Likewise.
34765
34766 2009-09-19  Jim Meyering  <meyering@redhat.com>
34767
34768         syntax-check: detect unnecessary inclusion of canonicalize.h
34769         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
34770
34771 2009-09-19  Eric Blake  <ebb9@byu.net>
34772
34773         canonicalize-lgpl: adjust clients to use correct header
34774         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
34775         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
34776         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
34777         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
34778         * lib/progreloc.c (includes): Likewise.
34779
34780 2009-09-19  Jim Meyering  <meyering@redhat.com>
34781
34782         test-posixtm.c: correct a comment
34783         * tests/test-posixtm.c: Correct first-line comment.
34784         Spotted by Eric Blake.
34785
34786 2009-09-16  Jim Meyering  <meyering@redhat.com>
34787
34788         posixtm-tests: make T const-correct; add a test case
34789         * tests/test-posixtm.c (T): Declare const.
34790         Add a test for -(2^31+1).
34791         Remove useless can-succeed-only-in-2002 test.
34792
34793         posixtm-tests: adjust the sole failing test
34794         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
34795         expected output matches what mktime now produces.  Cross-checked via
34796         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
34797
34798         posixtm: move #ifdef'd tests into a new module
34799         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
34800         * tests/test-posixtm.c: ... this new file.
34801         * modules/posixtm-tests: New module.
34802
34803 2009-09-19  Eric Blake  <ebb9@byu.net>
34804
34805         openat: simplify use of at-func.c
34806         * lib/at-func.c (includes): Include prerequisites here, to
34807         simplify requirements on client files.
34808         * lib/openat-priv.h: Add double-inclusion guard.
34809         * lib/faccessat.c (includes): Simplify.
34810         * lib/fchmodat.c (includes): Likewise.
34811         * lib/fchownat.c (includes): Likewise.
34812         * lib/mkdirat.c (includes): Likewise.
34813         * lib/mkfifoat.c (includes): Likewise.
34814         * lib/symlinkat.c (includes): Likewise.
34815
34816         openat: allow return of fd 0
34817         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
34818         * modules/save-cwd (Depends-on): Replace fcntl-safer with
34819         unistd-safer.
34820         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
34821         <fcntl.h>; this module does not leak fds.
34822         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
34823         must be allowed to return 0, leaving openat_safer to add the
34824         safety.
34825         (openat_permissive): Avoid writing to just-opened fd 2 if
34826         restoring the current directory fails.
34827         * lib/openat-die.c (openat_restore_fail): Add comment.
34828         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
34829         (save_cwd): Guarantee safe fd, but without use of open_safer.
34830         * tests/test-openat.c: New test.
34831         * modules/openat-tests (Files, Makefile.am): Distribute and build
34832         new file.
34833
34834         relocatable-prog-wrapper: fix build
34835         * modules/relocatable-prog-wrapper (Files): Update name of
34836         canonicalize m4 file, broken on 2009-09-17.
34837         Reported by emad hajjar <aleppos@hotmail.com>.
34838
34839 2009-09-19  Bruno Haible  <bruno@clisp.org>
34840
34841         * lib/safe-alloc.h: Use the standard header with GPL copyright.
34842         * lib/safe-alloc.c: Likewise.
34843         Reported by Ian Beckwith <ianb@erislabs.net>.
34844
34845 2009-09-18  Bruno Haible  <bruno@clisp.org>
34846
34847         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
34848         Reported by <erobles@sensacd.com.mx>.
34849
34850 2009-09-17  Eric Blake  <ebb9@byu.net>
34851
34852         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
34853         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
34854         slashes when checking if last component is missing.
34855         * tests/test-canonicalize.c (main): Test this.
34856
34857         canonicalize, canonicalize-lgpl: honor // if distinct from /
34858         * modules/canonicalize (Files): Add double-slash-root.m4.
34859         * modules/canonicalize-lgpl (Files): Likewise.
34860         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
34861         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
34862         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
34863         fallback definition.
34864         (canonicalize_filename_mode): Use it to protect //.
34865         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
34866         (__realpath): Likewise.
34867         * tests/test-canonicalize.c (main): Test this.
34868         * tests/test-canonicalize-lgpl.c (main): Likewise.
34869         * modules/canonicalize-tests (Depends-on): Add same-inode.
34870         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
34871
34872         canonicalize-lgpl: fix glibc bug with trailing slash
34873         * m4/canonicalize-lgpl.m4: Move contents...
34874         * m4/canonicalize.m4: ...here.
34875         (gl_CANONICALIZE_LGPL): Factor realpath check...
34876         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
34877         glibc 2.3.5 bug, fixed 2005-04-27.
34878         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
34879         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
34880         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
34881         * modules/canonicalize-lgpl (Files): Manage file rename.
34882         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
34883         * modules/stdlib (Makefile.am): Substitute witness.
34884         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
34885         is needed.
34886         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
34887         replacement is required.
34888         * lib/canonicalize.c (canonicalize_file_name): Likewise.
34889         * doc/glibc-functions/canonicalize_file_name.texi
34890         (canonicalize_file_name): Document this.
34891         * doc/posix-functions/realpath.texi (realpath): Likewise.
34892
34893         canonicalize-lgpl: reject non-directory with trailing slash
34894         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
34895         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
34896         catches failures in glibc 2.3.5.
34897         * tests/test-canonicalize.c (main): Likewise.
34898
34899         canonicalize-lgpl: use native realpath if it works
34900         * lib/canonicalize-lgpl.c (realpath): Guard with
34901         FUNC_REALPATH_WORKS.
34902         * lib/stdlib.in.h (realpath): Make declaration optional based on
34903         HAVE_REALPATH.
34904         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
34905         native realpath works.
34906         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
34907         * modules/stdlib (Makefile.am): Substitute witness.
34908
34909         canonicalize, canonicalize-lgpl: use <stdlib.h>
34910         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
34911         (Include): Mention <stdlib.h>.
34912         (configure.ac): Mention functions we provide.
34913         * modules/canonicalize (configure.ac): Likewise.
34914         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
34915         realpath if canonicalize_file_name is missing.
34916         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
34917         * modules/stdlib (Makefile.am): Substitute witnesses.
34918         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
34919         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
34920         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
34921         * NEWS: Document this.
34922         * doc/glibc-functions/canonicalize_file_name.texi
34923         (canonicalize_file_name): Likewise.
34924         * doc/posix-functions/realpath.texi (realpath): Likewise.
34925         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
34926
34927         test-canonicalize: consolidate into single C program
34928         * tests/test-canonicalize.sh: Delete; move setup into...
34929         * tests/test-canonicalize.c (main): ...the program, making it
34930         easier to run in debugger.  Add some tests.
34931         * modules/canonicalize-tests (Files): Remove unused file.
34932         (Depends-on): Add progname.
34933         (configure.ac, Makefile.am): Simplify.
34934
34935         test-canonicalize-lgpl: consolidate into single C program
34936         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
34937         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
34938         easier to run in debugger.  Add some tests.
34939         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
34940         (configure.ac, Makefile.am): Simplify.
34941
34942         canonicalize: avoid resolvepath
34943         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
34944         unnecessary checks.
34945         * lib/canonicalize.c (includes): Simplify.
34946         (canonicalize_file_name): Drop resolvepath implementation.
34947         * modules/canonicalize (Depends-on): Drop filenamecat.
34948
34949         canonicalize: don't lose errno
34950         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
34951         over calls to free.
34952
34953         canonicalize: simplify errno handling
34954         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
34955         assignment.
34956
34957         canonicalize, canonicalize-lgpl: update module dependencies
34958         * modules/canonicalize (Depends-on): Add extensions, lstat,
34959         pathmax, stdlib.
34960         (Files): Drop pathmax.h.
34961         (configure.ac): Adjust macro name.
34962         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
34963         lstat, stdlib, sys_stat.
34964         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
34965         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
34966         extensions.
34967         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
34968         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
34969         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
34970         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
34971         declaration, if available.
34972         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
34973         we can rely on the readlink module.
34974         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
34975         (includes): Use <unistd.h> unconditionally.
34976
34977 2009-09-17  Eric Blake  <ebb9@byu.net>
34978
34979         maint: make Include sections of modules consistent
34980         * modules/alloca: Use only header name; no need to list #include.
34981         * modules/alloca-opt: Likewise.
34982         * modules/arpa_inet: Likewise.
34983         * modules/canon-host: Likewise.
34984         * modules/configmake: Likewise.
34985         * modules/dirent: Likewise.
34986         * modules/eealloc: Likewise.
34987         * modules/environ: Likewise.
34988         * modules/fchdir: Likewise.
34989         * modules/fcntl: Likewise.
34990         * modules/fcntl-h: Likewise.
34991         * modules/gethrxtime: Likewise.
34992         * modules/gettime: Likewise.
34993         * modules/ignore-value: Likewise.
34994         * modules/inet_ntop: Likewise.
34995         * modules/inet_pton: Likewise.
34996         * modules/inttypes: Likewise.
34997         * modules/isnand-nolibm: Likewise.
34998         * modules/isnanf-nolibm: Likewise.
34999         * modules/mbchar: Likewise.
35000         * modules/mbfile: Likewise.
35001         * modules/mbiter: Likewise.
35002         * modules/mbuiter: Likewise.
35003         * modules/netdb: Likewise.
35004         * modules/netinet_in: Likewise.
35005         * modules/nproc: Likewise.
35006         * modules/pagealign_alloc: Likewise.
35007         * modules/poll: Likewise.
35008         * modules/printf-frexp: Likewise.
35009         * modules/pthread: Likewise.
35010         * modules/putenv: Likewise.
35011         * modules/random_r: Likewise.
35012         * modules/relocatable-prog: Likewise.
35013         * modules/search: Likewise.
35014         * modules/select: Likewise.
35015         * modules/selinux-h: Likewise.
35016         * modules/settime: Likewise.
35017         * modules/signal: Likewise.
35018         * modules/size_max: Likewise.
35019         * modules/socklen: Likewise.
35020         * modules/ssize_t: Likewise.
35021         * modules/stdarg: Likewise.
35022         * modules/stdbool: Likewise.
35023         * modules/stddef: Likewise.
35024         * modules/stdint: Likewise.
35025         * modules/stdio: Likewise.
35026         * modules/stdlib: Likewise.
35027         * modules/string: Likewise.
35028         * modules/strings: Likewise.
35029         * modules/sys_file: Likewise.
35030         * modules/sys_ioctl: Likewise.
35031         * modules/sys_select: Likewise.
35032         * modules/sys_socket: Likewise.
35033         * modules/sys_stat: Likewise.
35034         * modules/sys_time: Likewise.
35035         * modules/sys_times: Likewise.
35036         * modules/sys_utsname: Likewise.
35037         * modules/sys_wait: Likewise.
35038         * modules/sysexits: Likewise.
35039         * modules/time: Likewise.
35040         * modules/times: Likewise.
35041         * modules/tmpfile: Likewise.
35042         * modules/trim: Likewise.
35043         * modules/unistd: Likewise.
35044         * modules/wchar: Likewise.
35045         * modules/wctype: Likewise.
35046
35047 2009-09-17  Bruno Haible  <bruno@clisp.org>
35048
35049         Make getdate.y compile on QNX and NetBSD 5 / i386.
35050         * m4/getdate.m4 (gl_GETDATE): Conditionally define
35051         TIME_T_FITS_IN_LONG_INT.
35052         * lib/getdate.y (long_time_t): New type.
35053         (relative_time): Change type of 'seconds' field to long_time_t.
35054         (get_date): Update types of local variables. Check against overflow
35055         during conversion from long_time_t to time_t.
35056         Reported by Matt Kraai <kraai@ftbfs.org>
35057         and Hasso Tepper <hasso@netbsd.org>.
35058
35059 2009-09-17  Bruno Haible  <bruno@clisp.org>
35060
35061         * modules/COPYING: Update copyright years.
35062         * modules/README: Likeiwse.
35063         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
35064         Reported by Ian Beckwith <ianb@erislabs.net>.
35065
35066 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
35067
35068         * users.txt: Update references for gnuit package.
35069
35070 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
35071
35072         * m4/getdelim.m4: Fix typo in copyright line.
35073
35074 2009-09-17  Bruno Haible  <bruno@clisp.org>
35075
35076         * lib/atoll.c: Use the standard header with GPL copyright.
35077         * lib/argz.in.h: Likewise.
35078         * lib/glob.c: Likewise.
35079         * lib/glob-libc.h: Likewise.
35080         * lib/random_r.c: Likewise.
35081         * lib/siglist.h: Likewise.
35082         * lib/strsignal.c: Likewise.
35083         Reported by Ian Beckwith <ianb@erislabs.net>.
35084
35085 2009-09-17  Eric Blake  <ebb9@byu.net>
35086
35087         rmdir: ensure correct dependency order
35088         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
35089
35090 2009-09-17  Bruno Haible  <bruno@clisp.org>
35091
35092         Disable assertion that fails on NetBSD 5 / i386.
35093         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
35094         Reported by Sam Steingold <sds@gnu.org>
35095         and Hasso Tepper <hasso@netbsd.org>.
35096
35097 2009-09-16  Eric Blake  <ebb9@byu.net>
35098
35099         unlinkdir: port to mingw
35100         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
35101         on which no one can unlink a directory.
35102
35103         stdlib: sort witness names
35104         * modules/stdlib (Makefile.am): Sort replacements.
35105         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
35106         * lib/stdlib.in.h: Likewise.
35107
35108         parse-duration-tests: avoid link failure
35109         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
35110         LIBINTL.
35111         Reported by Tom G. Christensen.
35112
35113         openat-tests: ensure unlinkat behaves like rmdir
35114         * tests/test-rmdir.c (main): Factor guts...
35115         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
35116         * modules/rmdir-tests (Files): Ship new file.
35117         * modules/openat-tests: New test.
35118         * tests/test-unlinkat.c: Likewise.
35119
35120         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
35121         * modules/rmdir-errno (Status, Notice): Now obsolete.
35122
35123         rmdir: work around cygwin 1.5.x and mingw bugs
35124         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
35125         * lib/rmdir.c (rmdir): Work around it.
35126         * modules/rmdir (Status, Notice): No longer obsolete.
35127         (Files): Add dos.m4.
35128         (Depends-on): Add unistd.
35129         (configure.ac): Set witnesses.
35130         (License): Relax to LGPLv2+.
35131         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
35132         * modules/unistd (Makefile.am): Substitute witnesses.
35133         * lib/unistd.in.h (rmdir): Declare replacement.
35134         * doc/posix-functions/rmdir.texi (rmdir): Document this.
35135         * modules/rmdir-tests: New tests.
35136         * tests/test-rmdir.c: Likewise.
35137
35138 2009-09-15  Eric Blake  <ebb9@byu.net>
35139
35140         fchdir: improve use of replacement functions
35141         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
35142         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
35143         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
35144         REPLACE_CLOSEDIR.
35145         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
35146         * modules/sys_stat (Makefile.am): Substitute correct witness.
35147         * modules/dirent (Makefile.am): Likewise.
35148         * modules/unistd (Makefile.am): Likewise.
35149         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
35150         * lib/unistd.in.h (dup): Likewise.
35151         * lib/sys_stat.in.h (fstat): Likewise.
35152
35153         maint: ignore gnulib-tool temp files
35154         * .gitignore: Ignore files created during gnulib-tool --test.
35155
35156 2009-09-13  Jim Meyering  <meyering@redhat.com>
35157
35158         posixtm: don't reject a time that specify "60" as the number of seconds
35159         * lib/posixtm.c (posixtime): The code to reject invalid dates
35160         would also reject a time specified with the .60 suffix.
35161         But POSIX allows that, in order to accommodate leap seconds.
35162         So don't reject it.
35163         (main): Adjust tests accordingly.
35164         * modules/posixtm (Depends-on): Add stpcpy.
35165
35166 2009-09-11  Jim Meyering  <meyering@redhat.com>
35167
35168         announce-gen: include [$release_type] in emitted Subject:
35169         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
35170         e.g., [stable] in the emitted Subject: line.
35171
35172 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35173
35174         Remove obsolete macros from several modules.
35175         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
35176         obsolete Autoconf macros with their modern counterparts.
35177         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
35178         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
35179         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
35180         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
35181         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
35182         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
35183         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
35184         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
35185         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
35186         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
35187         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
35188         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
35189         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
35190         * m4/sockets.m4 (gl_SOCKETS): Likewise.
35191         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
35192         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
35193         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
35194         * m4/time_r.m4 (gl_TIME_R): Likewise.
35195         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
35196         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
35197         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
35198
35199         Fix copyright header in build-aux scripts.
35200         * build-aux/git-version-gen: Fix copyright header to match GPLv3
35201         recommendation.
35202         * build-aux/ncftpput-ftp: Likewise.
35203         * build-aux/update-copyright: Likewise.
35204
35205 2009-09-09  Eric Blake  <ebb9@byu.net>
35206
35207         test-link: allow Linux choice of errno
35208         * tests/test-link.c (main): Relax test for alternate error.
35209
35210         strndup: fix improper m4 caching
35211         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
35212         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
35213         (gl_PREREQ_STRNDUP): Delete.
35214         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
35215         * modules/string (Makefile.am): Substitute it.
35216         * lib/string.in.h (strndup): Modernize prototype.
35217
35218         getcwd: port to mingw
35219         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
35220         different from the POSIX assumptions made throughout the getcwd
35221         module; fortunately, the mingw getcwd does not need replacement.
35222         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
35223         * modules/getcwd-tests: New test.
35224         * tests/test-getcwd.c: Likewise.
35225
35226         link: fix platform bugs
35227         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
35228         * lib/link.c (link): Work around them.  Fix related mingw bug.
35229         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
35230         * modules/unistd (Makefile.am): Substitute it.
35231         * lib/unistd.in.h (link): Declare replacement.
35232         * doc/posix-functions/link.texi (link): Document this.
35233         * modules/link (Depends-on): Add strdup-posix, sys_stat.
35234
35235         test-link: consolidate into single C program, test more cases
35236         * tests/test-link.sh: Delete.
35237         * tests/test-link.c: Test more error conditions.  Exposes bugs on
35238         at least Cygwin and Solaris.
35239         * modules/link-tests (Files): Remove unused file.
35240         (Depends-on): Add errno, sys_stat.
35241         (Makefile.am): Simplify.
35242
35243 2009-09-08  Bruno Haible  <bruno@clisp.org>
35244
35245         Work around towlower, towupper bug on mingw.
35246         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
35247         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
35248         * doc/posix-functions/towlower.texi: Mention the mingw bug.
35249         * doc/posix-functions/towupper.texi: Likewise.
35250         Reported by Eric Blake.
35251
35252 2009-09-08  Jim Meyering  <meyering@redhat.com>
35253
35254         build: don't try to run autoheader if we don't use it
35255         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
35256         is not used in configure.ac.
35257
35258 2009-09-08  Eric Blake  <ebb9@byu.net>
35259
35260         euidaccess: fix compilation error
35261         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
35262
35263         rawmemchr: relax license
35264         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
35265         okay.
35266         Reported by Jim Meyering.
35267
35268         mkfifoat: new module
35269         * modules/mkfifoat: New file.
35270         * lib/mkfifoat.c: Likewise.
35271         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
35272         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
35273         * modules/sys_stat (Makefile.am): Use them.
35274         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
35275         * MODULES.html.sh (File system functions): Mention module.
35276         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
35277         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
35278         * modules/mkfifoat-tests: New test.
35279         * tests/test-mkfifoat.c: Likewise.
35280
35281         strchrnul: relax license
35282         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
35283         okay.
35284         Reported by Jim Meyering.
35285
35286 2009-09-08  Eric Blake  <ebb9@byu.net>
35287
35288         fstatat: fix compilation on Solaris
35289         * lib/fstatat.c (includes): Add fcntl.h.
35290         Reported by Pádraig Brady.
35291
35292 2009-09-07  Eric Blake  <ebb9@byu.net>
35293
35294         rename: modernize replacement
35295         * modules/rename (Depends-on): Add stdio.
35296         (configure.ac): Declare witness.
35297         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
35298         stdio take care of replacement.
35299         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
35300         * modules/stdio (Makefile.am): Substitute them.
35301         * lib/stdio.in.h (rename): Declare replacement.
35302         * lib/rename.c (includes): Allow cross-compilation to non-windows
35303         machines.
35304         * doc/posix-functions/rename.texi (rename): Improve
35305         documentation.
35306
35307         stdio: sort witness names
35308         * modules/stdio (Makefile.am): Sort replacements.
35309         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
35310         * lib/stdio.in.h: Likewise.
35311
35312         getcwd: minor cleanups
35313         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
35314         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
35315
35316         openat: provide more convenience names
35317         * modules/faccessat (configure.ac): Add C witness.
35318         * lib/unistd.in.h (readlinkat): Fix typo.
35319         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
35320         convenience wrappers.
35321         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
35322         wrappers in syntax checks.
35323
35324 2009-09-06  Eric Blake  <ebb9@byu.net>
35325
35326         doc: fix comments in recent patches
35327         * lib/faccessat.c: Mention correct function.
35328         * lib/fchmodat.c: Likewise.
35329         * lib/fchownat.c: Likewise.
35330         * lib/symlinkat.c: Likewise.
35331         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
35332         constants.
35333
35334         faccessat, symlinkat: continue cleanup of previous patch
35335         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
35336         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
35337         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
35338         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
35339         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
35340         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
35341         set.
35342
35343 2009-09-06  Bruno Haible  <bruno@clisp.org>
35344
35345         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
35346         (fstatat): Declare if GNULIB_FSTATAT is set.
35347         (mkdirat): Declare if GNULIB_MKDIRAT is set.
35348         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
35349         (unlinkat): Declare if GNULIB_UNLINKAT is set.
35350         * modules/fcntl-h (Files): Remove m4/openat.m4.
35351         * modules/sys_stat (Files): Remove m4/openat.m4.
35352         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
35353         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
35354         * modules/unistd (Files): Remove m4/openat.m4.
35355         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
35356         GNULIB_OPENAT.
35357         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
35358         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
35359         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
35360         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
35361         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
35362         gl_OPENAT_DEFAULTS.
35363         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
35364         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
35365         Don't require gl_OPENAT_DEFAULTS.
35366         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
35367         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
35368         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
35369         (gl_OPENAT_DEFAULTS): Remove macro.
35370
35371 2009-09-06  Bruno Haible  <bruno@clisp.org>
35372
35373         * modules/openat (configure.ac): Remove unneeded witness.
35374
35375 2009-09-06  Bruno Haible  <bruno@clisp.org>
35376
35377         Set errno to ENOSYS when a function is entirely unsupported.
35378         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
35379         EOPNOTSUPP.
35380         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
35381         * modules/chown (Depends-on): Remove errno.
35382
35383 2009-09-06  Bruno Haible  <bruno@clisp.org>
35384
35385         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
35386
35387 2009-09-06  Bruno Haible  <bruno@clisp.org>
35388
35389         * lib/sys_stat.in.h: Fix preprocessor command indentation.
35390
35391 2009-09-06  Ben Pfaff  <blp@gnu.org>
35392             Bruno Haible  <bruno@clisp.org>
35393
35394         Work around a glibc bug in strtok_r.
35395         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
35396         Undefine if UNDEFINE_STRTOK_R is set.
35397         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
35398         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
35399         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
35400         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
35401         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
35402         UNDEFINE_STRTOK_R.
35403         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
35404
35405 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
35406
35407         exclude: minor fix
35408         * lib/exclude.c: Include wctype.h
35409
35410 2009-09-06  Akim Demaille  <demaille@gostai.com>
35411
35412         bootstrap: improve error message
35413         * build-aux/bootstrap (find_tool): Upon failure, report the list
35414         of candidates.
35415         Honor the initial value of the envvar.
35416
35417 2009-09-05  Eric Blake  <ebb9@byu.net>
35418
35419         symlinkat: new module
35420         * modules/symlinkat: New file.
35421         * lib/symlinkat.c: Likewise.
35422         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
35423         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
35424         * modules/unistd (Makefile.am): Use them.
35425         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
35426         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
35427         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
35428         * MODULES.html.sh (File system functions): Mention module.
35429         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
35430         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
35431         * modules/symlinkat-tests: New test.
35432         * tests/test-symlinkat.c: Likewise.
35433
35434         test-openat-safer: add more checks
35435         * tests/test-openat-safer.c (main): Check more code paths.
35436
35437 2009-09-05  Jim Meyering  <meyering@redhat.com>
35438
35439         syntax-check: detect unnecessary inclusion of openat.h
35440         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
35441
35442 2009-09-05  Bruno Haible  <bruno@clisp.org>
35443
35444         Support towlower, towupper.
35445         * doc/posix-functions/towlower.texi: Mention module wctype.
35446         * doc/posix-functions/towupper.texi: Likewise.
35447         * lib/wctype.in.h (towlower, towupper): New functions.
35448         * tests/test-wctype.c: Include stdio.h, stdlib.h.
35449         (ASSERT): New macro.
35450         (e): New variable.
35451         (main): Test also towlower, towupper. Test WEOF argument.
35452         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
35453
35454 2009-09-05  Bruno Haible  <bruno@clisp.org>
35455
35456         Fix conversion behaviour when the input is invalid.
35457         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
35458         mark occurring in first pass of indirect conversion.
35459         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
35460         input.
35461         Found by clang's static analyzer.
35462
35463 2009-09-05  Bruno Haible  <bruno@clisp.org>
35464
35465         * tests/test-striconveh.c (main): Test indirect conversion on platforms
35466         where direct conversion is possible.
35467
35468 2009-09-04  Eric Blake  <ebb9@byu.net>
35469
35470         openat: fail with ENOENT on empty name
35471         * lib/openat-proc.c (openat_proc_name): Special-case the empty
35472         buffer.
35473
35474         link-follow: fix logic bug in prior patch
35475         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
35476         reversed sense of yes and no in prior patch.  Avoid confusing
35477         compilation failure with desired semantics.
35478
35479         link-follow: accomodate mingw and cross-compilation
35480         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
35481         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
35482         cross-compilation results to -1, to make linkat easier to
35483         implement when cross-compiling.  Trivially support mingw.
35484         * modules/link-follow (configure.ac): Call new name.
35485         * NEWS: Mention this.
35486
35487 2009-09-03  Eric Blake  <ebb9@byu.net>
35488
35489         faccessat: compile replacement
35490         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
35491         needed.
35492
35493         fts: fix compilation error
35494         * lib/fts.c (includes): Re-add "openat.h", for
35495         openat_needs_fchdir.
35496
35497         faccessat: new module
35498         * modules/faccessat: New file.
35499         * lib/faccessat.c: Likewise.
35500         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
35501         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
35502         * modules/unistd (Makefile.am): Use it.
35503         * lib/unistd.in.h (faccessat): Declare it.
35504         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
35505         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
35506         * MODULES.html.sh (File system functions): Mention it.
35507         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
35508         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
35509
35510         euidaccess: prefer POSIX over non-standard implementation
35511         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
35512         * lib/euidaccess.c (euidaccess): Use it if available.
35513
35514         openat: make template easier to use
35515         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
35516         AT_FUNC_F2 to be undefined.
35517         (VALIDATE_FLAG): New macro; use it to reject bad flags.
35518         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
35519         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
35520         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
35521         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
35522         Likewise.
35523         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
35524         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
35525         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
35526         Likewise.
35527
35528         openat: declare in POSIX headers
35529         * NEWS: Mention this.
35530         * modules/openat (configure.ac): Declare witnesses.
35531         (Depends-on): Add fcntl-h, sys_stat, unistd.
35532         (Include): Mention correct headers.
35533         * modules/fcntl-h (Depends-on): Add link-warning.
35534         (Files): Add openat.m4.
35535         (Makefile.am): Substitute witnesses.
35536         * modules/sys_stat (Files, Makefile.am): Likewise.
35537         * modules/unistd (Files, Makefile.am): Likewise.
35538         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
35539         (gl_OPENAT_DEFAULTS): New macro.
35540         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
35541         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
35542         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
35543         (SYS_STAT_H): Remove unused variable.
35544         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
35545         * lib/fcntl--.h (includes): Remove unneeded header.
35546         * lib/openat-safer.c (includes): Likewise.
35547         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
35548         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
35549         appropriate headers.
35550         (__OPENAT_PREFIX): Delete.
35551         * lib/fcntl.in.h (openat): Provide declaration.
35552         (AT_FDCWD): Fix Solaris bug.
35553         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
35554         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
35555         * lib/fchmodat.c (includes):  Adjust to find declaration.
35556         * lib/fchownat.c (includes): Likewise.
35557         * lib/mkdirat.c (includes): Likewise.
35558         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
35559         still visible.
35560
35561 2009-09-02  Eric Blake  <ebb9@byu.net>
35562
35563         errno: use consistently
35564         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
35565         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
35566         * lib/canonicalize.c (ELOOP): Likewise.
35567         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
35568         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
35569         * lib/lchown.c (EOPNOTSUPP): Likewise.
35570         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
35571         * lib/savewd.c (ESTALE): Likewise.
35572         * lib/settime.c (ENOSYS): Likewise.
35573         * lib/utimens.c (ENOSYS): Likewise.
35574         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
35575         * lib/chdir-safer.c (ELOOP): Likewise.
35576         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
35577         * modules/c-stack (Depends-on): Add errno.
35578         * modules/canonicalize (Depends-on): Likewise.
35579         * modules/chdir-safer (Depends-on): Likewise.
35580         * modules/fdopendir (Depends-on): Likewise.
35581         * modules/inet_ntop (Depends-on): Likewise.
35582         * modules/inet_pton (Depends-on): Likewise.
35583         * modules/lchown (Depends-on): Likewise.
35584         * modules/openat (Depends-on): Likewise.
35585         * modules/savewd (Depends-on): Likewise.
35586         * modules/settime (Depends-on): Likewise.
35587         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
35588
35589         fts: avoid leaking fds
35590         * modules/fts (Depends-on): Add cloexec.
35591         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
35592         flag.
35593
35594         fts: make directory fds more robust
35595         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
35596         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
35597
35598         backupfile, chdir-long, fts, savedir: make safer
35599         * lib/backupfile.c (includes): Use "dirent--.h", since
35600         numbered_backup can write to stderr during readdir.
35601         * lib/savedir.c (includes): Likewise.
35602         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
35603         emulation can write to stderr on failure.
35604         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
35605         * lib/getcwd.c: Document why opendir_safer is unused.
35606         * lib/glob.c: Likewise.
35607         * lib/scandir.c: Likewise.
35608         * lib/openat-proc.c: Likewise, for open_safer.
35609         * modules/backupfile (Depends-on): Add dirent-safer.
35610         * modules/savedir (Depends-on): Likewise.
35611         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
35612         * modules/chdir-long (Depends-on): Add openat-safer.
35613
35614         openat-safer: new module
35615         * modules/openat-safer: New file.
35616         * lib/openat-safer.c: Likewise.
35617         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
35618         * lib/fcntl-safer.h (openat_safer): Declare.
35619         * lib/fcntl--.h (openat): Override.
35620         * MODULES.html.sh (File descriptor based I/O): Mention it.
35621         * lib/openat.h: Add double-inclusion guards.
35622         * lib/openat.c (includes): Only include "fcntl-safer.h", not
35623         "fcntl--.h", so we can implement openat.
35624         * modules/openat-safer-tests: New test.
35625         * tests/test-openat-safer.c: New file.
35626
35627         dirent-safer: new module
35628         * modules/dirent-safer: New file.
35629         * lib/dirent--.h: Likewise.
35630         * lib/dirent-safer.h: Likewise.
35631         * lib/opendir-safer.c: Likewise.
35632         * m4/dirent-safer.m4: Likewise.
35633         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
35634         * modules/dirent-safer-tests: New test.
35635         * tests/test-dirent-safer.c: New file.
35636         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
35637
35638         fdopendir: optimize on mingw
35639         * lib/unistd.in.h (_gl_directory_name): New prototype.
35640         * lib/fchdir.c (_gl_directory_name): Implement it.
35641         (fchdir): Use it to simplify implementation.
35642         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
35643         fchdir, when available, to avoid calling [f]chdir().
35644
35645         fdopendir: split into its own module
35646         * lib/openat.c (fdopendir): Move...
35647         * lib/fdopendir.c: ...into new file.
35648         * modules/fdopendir: New module.
35649         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
35650         * modules/openat (Depends-on): Add fdopendir.
35651         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
35652         fdopendir here.
35653         * modules/savedir (Depends-on): Only need fdopendir, not full
35654         openat.
35655         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
35656         * lib/openat.h (fdopendir): Drop prototype.
35657         * lib/dirent.in.h (fdopendir): Provide prototype.
35658         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
35659         * modules/dirent (Makefile.am): Substitute them.
35660         * MODULES.html.sh (File system functions): Mention it.
35661         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
35662         * modules/fdopendir-tests: New file.
35663         * tests/test-fdopendir.c: Likewise.
35664
35665         fchdir: use more consistent macro convention
35666         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
35667         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
35668         REPLACE_FCHDIR, rather than relying on config.h macros.
35669         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
35670         inside a single make-time REPLACE_FCHDIR block, rather than using
35671         the config.h FCHDIR_REPLACEMENT.
35672         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
35673         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
35674         Manage fstat replacement.
35675         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
35676         REPLACE_FCHDIR.
35677         * modules/sys_stat (Files): Add m4/unistd_h.m4.
35678         (Makefile.am): Substitute REPLACE_FCHDIR.
35679         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
35680         FCHDIR_REPLACEMENT.
35681         * lib/dup-safer.c (dup_safer): Likewise.
35682         * lib/dup2.c (rpl_dup2): Likewise.
35683         * lib/dup3.c (rpl_dup3): Likewise.
35684         * lib/open.c (rpl_open): Likewise.
35685
35686         fchdir: simplify error handling, and support dup3
35687         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
35688         stdbool, malloc-posix, realloc-posix.
35689         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
35690         (ensure_dirs_slot): Return false on allocation failure.
35691         (rpl_dup2): Delete.
35692         (_gl_register_dup): New function.
35693         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
35694         (_gl_register_fd): Close fd on allocation failure.
35695         * lib/fcntl.in.h (_gl_register_fd): Update signature.
35696         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
35697         prototype.
35698         (rpl_dup2_fchdir): Delete prototype.
35699         * lib/open.c (open): Update caller.
35700         * lib/dup2.c (dup2): Track fchdir metadata.
35701         * lib/dup3.c (dup3): Likewise.
35702         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
35703         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
35704
35705 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35706
35707         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
35708         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
35709         don't pass arguments to AC_OUTPUT.
35710
35711 2009-09-02  Bruno Haible  <bruno@clisp.org>
35712
35713         * modules/mkdtemp (License): Relicense under LGPLv2+.
35714         Reported by Paolo Bonzini.
35715
35716 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35717
35718         Replace uses of obsolete autoconf macros in Jim's modules.
35719         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
35720         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
35721         can evoke a warning from autoconf when run with -Wobsolete
35722         enabled.  They were declared obsolete for good reasons (see
35723         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
35724         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
35725         should not continue using the deprecated macros.
35726         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
35727         obsolete Autoconf macros with modern counterparts.
35728         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
35729         * m4/dos.m4 (gl_AC_DOS): Likewise.
35730         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
35731         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
35732         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
35733         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
35734         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
35735         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
35736         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
35737         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
35738         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
35739         Likewise.
35740         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
35741         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
35742         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
35743         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
35744         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
35745         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
35746
35747 2009-09-01  Eric Blake  <ebb9@byu.net>
35748
35749         fchdir: fix off-by-one bug in previous patch
35750         * lib/fchdir.c (rpl_fstat): Use correct bounds.
35751         (_gl_unregister_fd): Delete useless if.
35752
35753 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
35754
35755         maint.mk: sort the list of syntax-check rules
35756         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
35757         easier to get a sense of progress when the rules are run sequentially
35758         and take a long time.
35759
35760 2009-09-01  Simon Josefsson  <simon@josefsson.org>
35761
35762         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
35763         * modules/netinet_in: Likewise.
35764         * modules/sys_file: Likewise.
35765         * modules/sys_ioctl: Likewise.
35766         * modules/sys_select: Likewise.
35767         * modules/sys_socket: Likewise.
35768         * modules/sys_stat: Likewise.
35769         * modules/sys_time: Likewise.
35770         * modules/sys_times: Likewise.
35771         * modules/sys_utsname: Likewise.
35772         * modules/sys_wait: Likewise.
35773
35774 2009-09-01  Jim Meyering  <meyering@redhat.com>
35775
35776         fts: help ensure that return values are not ignored
35777         * lib/fts_.h (__GNUC_PREREQ): Define.
35778         (__attribute_warn_unused_result__): Define.
35779         (fts_children, fts_close, fts_open, fts_read): Declare with
35780         __attribute_warn_unused_result__.
35781
35782         fts: fts_close now fails also when closing a dir file descriptor fails
35783         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
35784         and propagate to caller, along with errno.
35785
35786         announce-gen: correct formatting in --help output
35787         * build-aux/announce-gen (usage): Move the one-line description in
35788         --help output "up", to where it belongs, just after Usage:.
35789
35790 2009-08-31  Eric Blake  <ebb9@byu.net>
35791
35792         fchdir: port to mingw
35793         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
35794         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
35795         opened, then use a substitute.
35796         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
35797         replacement.
35798         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
35799         (_gl_register_fd): No need to check stat if open already filters
35800         all directories.
35801         (fchdir): Fix error condition to match POSIX.
35802         * modules/fchdir (Depends-on): Add sys_stat.
35803         * doc/posix-functions/open.texi (open): Document the limitation.
35804         * modules/fchdir-tests: New file.
35805         * tests/test-fchdir.c: Likewise.
35806
35807         canonicalize: allow cross-testing from cygwin to mingw
35808         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
35809         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
35810         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
35811         Likewise.
35812         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
35813         target does not support symlinks.
35814         * tests/test-canonicalize-lgpl.sh: Likewise.
35815
35816         chown: avoid compilation warning on mingw
35817         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
35818         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
35819         mingw.
35820         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
35821         * modules/chown (Depends-on): Add errno.
35822
35823 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
35824
35825         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
35826         command.
35827
35828 2009-08-31  Jim Meyering  <meyering@redhat.com>
35829
35830         canonicalize: remove useless initialization
35831         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
35832         initialization of local, "end".
35833
35834 2009-08-30  Bruno Haible  <bruno@clisp.org>
35835
35836         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
35837         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
35838         ENOSYS.
35839
35840 2009-08-30  Bruno Haible  <bruno@clisp.org>
35841
35842         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
35843         /usr/xpg4/bin/tr when it exists.
35844         * tests/test-pipe-filter-gi1.sh: Likewise.
35845
35846 2009-08-30  Bruno Haible  <bruno@clisp.org>
35847
35848         Work around deficient /usr/bin/id program on Solaris.
35849         * tests/test-file-has-acl.sh (ID): New variable.
35850         * tests/test-set-mode-acl.sh (ID): Likewise.
35851         * tests/test-copy-acl.sh (ID): Likewise.
35852         * tests/test-copy-file.sh (ID): Likewise.
35853
35854 2009-08-30  Bruno Haible  <bruno@clisp.org>
35855
35856         New module 'xstriconveh'.
35857         * lib/xstriconveh.h: New file.
35858         * lib/xstriconveh.c: New file.
35859         * modules/xstriconveh: New file.
35860
35861 2009-08-30  Bruno Haible  <bruno@clisp.org>
35862
35863         Make it easier to use mem_cd_iconveh.
35864         * lib/striconveh.h (iconveh_t): New type.
35865         (iconveh_open, iconveh_close): New declarations.
35866         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
35867         with a single 'const iconveh_t *' argument.
35868         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
35869         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
35870         with a single 'const iconveh_t *' argument.
35871         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
35872         * tests/test-striconveh.c (main): Update.
35873         * NEWS: Mention the change.
35874
35875 2009-08-30  Bruno Haible  <bruno@clisp.org>
35876
35877         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
35878         problem.
35879
35880 2009-08-30  Bruno Haible  <bruno@clisp.org>
35881
35882         Work around iconv_open problem on Solaris.
35883         * lib/iconv_open-solaris.gperf: New file.
35884         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
35885         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
35886         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
35887         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
35888         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
35889         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
35890
35891 2009-08-29  Jim Meyering  <meyering@redhat.com>
35892
35893         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
35894         * top/maint.mk (cvs-check): Remove target; it was just an alias
35895         to the better-named vc-diff-check.
35896         (maintainer-distcheck): Remove rule.  It was used only from
35897         the (alpha/beta/major) target, and all of its commands but one
35898         were coreutils-specific.
35899         (vc-dist): Remove rule.
35900         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
35901         Run vc-diff-check, not vc-dist.
35902         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
35903
35904 2009-08-27  Bruno Haible  <bruno@clisp.org>
35905
35906         * tests/test-bitrotate.c (main): Remove test that uses a shift count
35907         of 0.
35908
35909 2009-08-27  Bruno Haible  <bruno@clisp.org>
35910
35911         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
35912         compilers.
35913         * doc/func.texi: Document the SunPRO C bug.
35914
35915 2009-08-27  Bruno Haible  <bruno@clisp.org>
35916
35917         Fix link error on Solaris.
35918         * tests/test-parse-duration.c (xstrdup): Remove function.
35919
35920 2009-08-26  Pádraig Brady  <P@draigbrady.com>
35921
35922         ignore-value: handle pointer types, too
35923         * lib/ignore-value.h (__attribute__): Remove definition.
35924         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
35925         of a more concise and more-often effective "(void) i" statement.
35926         (ignore_ptr): New function to suppress warnings from functions that
35927         return pointers, and to make it explicit that one function doesn't
35928         handle all cases.
35929
35930 2009-08-25  Bruno Haible  <bruno@clisp.org>
35931
35932         dup2: work around a Linux bug.
35933         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
35934         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
35935         * doc/posix-functions/dup2.texi: Mention the Linux bug.
35936         Reported by Simon Josefsson.
35937
35938 2009-08-25  Jim Meyering  <meyering@redhat.com>
35939
35940         libguestfs uses gnulib
35941         * users.txt: Add libguestfs.
35942
35943 2009-08-24  Eric Blake  <ebb9@byu.net>
35944
35945         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
35946         * lib/pipe2.c (includes): Add binary-io.h.
35947         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
35948
35949 2009-08-24  Bruno Haible  <bruno@clisp.org>
35950
35951         Tolerate declared but missing accept4 syscall.
35952         * lib/accept4.c (accept4): Invoke original accept4 function first, if
35953         available.
35954         * lib/sys_socket.in.h (accept4): If the function is already present,
35955         override it.
35956         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
35957         * modules/accept4 (Makefile.am): Compile accept4.c always.
35958         Reported by Paolo Bonzini and Eric Blake.
35959
35960 2009-08-23  Bruno Haible  <bruno@clisp.org>
35961
35962         New module 'accept4'.
35963         * lib/sys_socket.in.h (accept4): New declaration.
35964         * lib/accept4.c: New file.
35965         * m4/accept4.m4: New file.
35966         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
35967         GNULIB_ACCEPT4, HAVE_ACCEPT4.
35968         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
35969         HAVE_ACCEPT4.
35970         * modules/accept4: New file.
35971         * doc/glibc-functions/accept4.texi: Mention the new module.
35972
35973 2009-08-24  Jim Meyering  <meyering@redhat.com>
35974
35975         progname: also set global program_invocation_name, when possible
35976         Before this change, a libtool-enabled program that calls glibc's
35977         error function would report the program name as
35978         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
35979         * modules/progname (configure.ac): Check for a declaration of
35980         program_invocation_name.
35981         * lib/progname.c:  Include <errno.h>.
35982         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
35983         Set program_invocation_name.
35984
35985 2009-08-23  Bruno Haible  <bruno@clisp.org>
35986
35987         * lib/dup3.c: Include <string.h>.
35988
35989 2009-08-23  Bruno Haible  <bruno@clisp.org>
35990
35991         * lib/dup3.c (dup3): Test only once whether the system actually exists.
35992         * lib/pipe2.c (pipe2): Likewise.
35993         Suggested by Eric Blake.
35994
35995 2009-08-23  Bruno Haible  <bruno@clisp.org>
35996
35997         Tolerate declared but missing dup3 syscall.
35998         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
35999         * lib/unistd.in.h (dup3): If the function is already present,
36000         override it.
36001         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
36002         * modules/dup3 (Makefile.am): Compile dup3.c always.
36003         Reported by Paolo Bonzini.
36004
36005 2009-08-23  Bruno Haible  <bruno@clisp.org>
36006
36007         Tolerate declared but missing pipe2 syscall.
36008         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
36009         available.
36010         * lib/unistd.in.h (pipe2): If the function is already present,
36011         override it.
36012         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
36013         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
36014         Reported by Paolo Bonzini.
36015
36016 2009-08-23  Bruno Haible  <bruno@clisp.org>
36017
36018         * lib/pipe2.c (pipe2): Move #ifs inside function.
36019
36020 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
36021
36022         quotearg: document limitations of quote_these_too
36023         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
36024         those limitations are created.
36025         * lib/quotearg.h (set_char_quoting): Document that digits and
36026         letters that are special after backslash are not permitted.
36027         (quotearg_char): Cross-reference set_char_quoting documentation.
36028
36029 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
36030
36031         quotearg: implement custom_quoting_style
36032         * lib/quotearg.c: (struct quoting_options): Add left_quote and
36033         right_quote fields.
36034         (set_custom_quoting): New public function.
36035         (quotearg_buffer_restyled): Add left_quote and right_quote
36036         arguments, handle them very much like locale quoting, and update
36037         all uses.
36038         (quotearg_n_custom): New public function.
36039         (quotearg_n_custom_mem): New public function.
36040         (quotearg_custom): New public function.
36041         (quotearg_custom_mem): New public function.
36042         * lib/quotearg.h: Prototype and document new public functions.
36043         (enum quoting_style): For escape_quoting_style and
36044         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
36045         ignored even though they're otherwise like c_quoting_style.
36046         Add custom_quoting_style member and document with comparison to
36047         clocale_quoting_style.
36048         * tests/test-quotearg.c (custom_quotes): New array.
36049         (custom_results): New array.
36050         (main): Extend to test custom quoting.
36051
36052 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
36053
36054         quotearg: fix right quote escaping when it's in quote_these_too
36055         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
36056         quote, be sure to prepend only one backslash.
36057         * tests/test-quotearg.c (use_quote_double_quotes): New function.
36058         (main): Test it.
36059
36060 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
36061
36062         quotearg-tests: test escaping of embedded locale quotes
36063         * tests/test-quotearg.c (struct result_strings): Add member for
36064         new input.
36065         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
36066         (inputs): Add new input.
36067         (results_g): Add expected results.
36068         (flag_results): Likewise.
36069         (locale_results): Likewise.
36070         (compare_strings): Check those.
36071
36072 2009-08-23  Bruno Haible  <bruno@clisp.org>
36073
36074         Tests for module 'dup3'.
36075         * modules/dup3-tests: New file.
36076         * tests/test-dup3.c: New file.
36077
36078         New module 'dup3'.
36079         * lib/unistd.in.h (dup3): New declaration.
36080         * lib/dup3.c: New file.
36081         * m4/dup3.m4: New file.
36082         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
36083         HAVE_DUP3.
36084         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
36085         * modules/dup3: New file.
36086         * doc/glibc-functions/dup3.texi: Mention the new module.
36087
36088 2009-08-23  Bruno Haible  <bruno@clisp.org>
36089
36090         Tweak the dup2 test.
36091         * tests/test-dup2.c (main): Create the test file empty. Verify that an
36092         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
36093         the test file is still empty. Fix argument order of lseek.
36094
36095 2009-08-23  Bruno Haible  <bruno@clisp.org>
36096
36097         Avoid test link errors when the modules getopt-gnu, gettext are used.
36098         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
36099         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
36100
36101 2009-08-23  Bruno Haible  <bruno@clisp.org>
36102
36103         Fix getdtablesize() on mingw.
36104         * lib/getdtablesize.c (getdtablesize): Implement differently.
36105         * lib/unistd.in.h (getdtablesize): Improve comment.
36106
36107 2009-08-23  Bruno Haible  <bruno@clisp.org>
36108
36109         New module 'mkostemp'.
36110         Based on Ulrich Drepper's 2007-08-10 change in glibc.
36111         * lib/stdlib.in.h (mksotemp): New declaration.
36112         * lib/mkostemp.c: New file, from glibc with modifications.
36113         * lib/tempname.h (GT_FILE): Remove outdated comment.
36114         (gen_tempname): Add flags argument.
36115         * lib/tempname.c (__GT_BIGFILE): Remove macro.
36116         (__GT_FILE): Map to 1.
36117         (small_open, large_open): Remove macros.
36118         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
36119         * lib/mkstemp.c (mkstemp): Update.
36120         * lib/mkdtemp.c (mkdtemp): Likewise.
36121         * m4/mkostemp.m4: New file.
36122         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
36123         HAVE_MKOSTEMP.
36124         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
36125         HAVE_MKOSTEMP.
36126         * modules/mkostemp: New file, based on modules/mkstemp.
36127         * doc/glibc-functions/mkostemp.texi: Mention the new module.
36128         * NEWS: Mention the change.
36129
36130 2009-08-23  Bruno Haible  <bruno@clisp.org>
36131
36132         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
36133         Reported by Eric Blake.
36134
36135 2009-08-23  Bruno Haible  <bruno@clisp.org>
36136
36137         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
36138         Reported by Eric Blake.
36139
36140 2009-08-23  Bruno Haible  <bruno@clisp.org>
36141
36142         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
36143         * modules/pipe2 (Depends-on): Likewise.
36144
36145 2009-08-23  Eric Blake  <ebb9@byu.net>
36146
36147         fcntl-h: add O_TTY_INIT support
36148         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
36149         * tests/test-fcntl-h.c (o): Test it.
36150         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
36151
36152         fcntl-h: rename from fcntl, in preparation for fcntl(2)
36153         * modules/fcntl: Move <fcntl.h> header replacement...
36154         * modules/fcntl-h: ...to new name, so as not to collide with
36155         like-named function.
36156         * tests/test-fcntl.c: Rename...
36157         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
36158         * modules/fcntl-tests: Rename...
36159         * modules/fcntl-h-tests: ...to this.  Update test file name.
36160         * modules/chdir-long (Depends-on): Update clients.
36161         * modules/chdir-safer (Depends-on): Likewise.
36162         * modules/fcntl-safer (Depends-on): Likewise.
36163         * modules/fts (Depends-on): Likewise.
36164         * modules/mkancesdirs (Depends-on): Likewise.
36165         * modules/mkdir-p (Depends-on): Likewise.
36166         * modules/open (Depends-on): Likewise.
36167         * modules/savewd (Depends-on): Likewise.
36168         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
36169         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
36170
36171 2009-08-22  Bruno Haible  <bruno@clisp.org>
36172
36173         * modules/binary-io (License): Relicense under LGPL.
36174         * modules/pipe2 (License): Likewise.
36175
36176 2009-08-22  Bruno Haible  <bruno@clisp.org>
36177
36178         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
36179         return value.
36180         * lib/pipe-filter-gi.c (filter_init): Likewise.
36181         Reported by Eric Blake.
36182
36183 2009-08-22  Bruno Haible  <bruno@clisp.org>
36184
36185         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
36186         * modules/pipe (Depends-on): Add pipe2.
36187
36188 2009-08-22  Bruno Haible  <bruno@clisp.org>
36189
36190         Tests for module 'pipe2'.
36191         * modules/pipe2-tests: New file.
36192         * tests/test-pipe2.c: New file.
36193
36194         New module 'pipe2'.
36195         * lib/unistd.in.h (pipe2): New declaration.
36196         * lib/pipe2.c: New file.
36197         * m4/pipe2.m4: New file.
36198         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
36199         HAVE_PIPE2.
36200         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
36201         * modules/pipe2: New file.
36202         * doc/glibc-functions/pipe2.texi: Mention the new module.
36203
36204 2009-08-22  Bruno Haible  <bruno@clisp.org>
36205
36206         Reference some new glibc functions.
36207         * doc/glibc-functions/accept4.texi: New file.
36208         * doc/glibc-functions/dup3.texi: New file.
36209         * doc/glibc-functions/mkostemp.texi: New file.
36210         * doc/glibc-functions/pipe2.texi: New file.
36211         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
36212         (Glibc sys/socket.h): Refer to accept4.
36213         (Glibc unistd.h): Refer to dup3, pipe2.
36214         Reported by Eric Blake.
36215
36216 2009-08-22  Jim Meyering  <meyering@redhat.com>
36217             Bruno Haible  <bruno@clisp.org>
36218
36219         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
36220         This makes it so packages using automake-1.11's silent-rules option
36221         can print e.g., a single "GEN    configmake.h" line, rather than
36222         the 30+ statements that perform the job.  If you want to see the
36223         actual commands, you can still run "make V=1".
36224         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
36225         so that make output is abbreviated when those variables are defined
36226         appropriately.
36227         * modules/argz: Likewise.
36228         * modules/arpa_inet: Likewise.
36229         * modules/byteswap: Likewise.
36230         * modules/configmake: Likewise.
36231         * modules/dirent: Likewise.
36232         * modules/errno: Likewise.
36233         * modules/fcntl: Likewise.
36234         * modules/float: Likewise.
36235         * modules/fnmatch: Likewise.
36236         * modules/getopt-posix: Likewise.
36237         * modules/glob: Likewise.
36238         * modules/iconv_open: Likewise.
36239         * modules/inttypes: Likewise.
36240         * modules/localcharset: Likewise.
36241         * modules/locale: Likewise.
36242         * modules/math: Likewise.
36243         * modules/netdb: Likewise.
36244         * modules/netinet_in: Likewise.
36245         * modules/poll: Likewise.
36246         * modules/posix_spawnp-tests: Likewise.
36247         * modules/sched: Likewise.
36248         * modules/search: Likewise.
36249         * modules/selinux-h: Likewise.
36250         * modules/signal: Likewise.
36251         * modules/spawn: Likewise.
36252         * modules/stdarg: Likewise.
36253         * modules/stdbool: Likewise.
36254         * modules/stddef: Likewise.
36255         * modules/stdint: Likewise.
36256         * modules/stdio: Likewise.
36257         * modules/stdlib: Likewise.
36258         * modules/string: Likewise.
36259         * modules/strings: Likewise.
36260         * modules/sys_file: Likewise.
36261         * modules/sys_ioctl: Likewise.
36262         * modules/sys_select: Likewise.
36263         * modules/sys_socket: Likewise.
36264         * modules/sys_stat: Likewise.
36265         * modules/sys_time: Likewise.
36266         * modules/sys_times: Likewise.
36267         * modules/sys_utsname: Likewise.
36268         * modules/sys_wait: Likewise.
36269         * modules/sysexits: Likewise.
36270         * modules/time: Likewise.
36271         * modules/unistd: Likewise.
36272         * modules/wchar: Likewise.
36273         * modules/wctype: Likewise.
36274
36275 2009-08-22  Jim Meyering  <meyering@redhat.com>
36276
36277         announce-gen: detect write failure
36278         * build-aux/announce-gen: Add Coda at end.
36279         Remove equivalent-but-more-verbose block at top.
36280
36281 2009-08-19  Akim Demaille  <demaille@gostai.com>
36282
36283         bootstrap: --help to stdout.
36284         * bootstrap (usage): Don't send --help to stderr.
36285         Use a here doc instead of a long string.
36286
36287 2009-08-21  Eric Blake  <ebb9@byu.net>
36288
36289         test-popen-safer: split from test-popen
36290         * tests/test-popen.c (main): Move...
36291         * tests/test-popen.h: ...into new file.
36292         * tests/test-popen-safer2.c: New file.
36293         * modules/popen-tests (Files): Add test-popen.h.
36294         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
36295         Suggested by Bruno Haible.
36296
36297         test-fcntl-safer: split from test-open
36298         * tests/test-open.c (main): Move...
36299         * tests/test-open.h: ...into new file.
36300         * tests/test-fcntl-safer.c: New file.
36301         * modules/open-tests (Files): Add test-open.h.
36302         * modules/fcntl-safer-tests: New file.
36303         Suggested by Bruno Haible.
36304
36305         test-fopen-safer: split from test-fopen
36306         * tests/test-fopen.c (main): Move...
36307         * tests/test-fopen.h: ...into new file.
36308         * tests/test-fopen-safer.c: New file.
36309         * modules/fopen-tests (Files): Add test-fopen.h.
36310         * modules/fopen-safer-tests: New file.
36311         Suggested by Bruno Haible.
36312
36313 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
36314
36315         popen-safer: test O_CLOEXEC at run-time.
36316         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
36317
36318 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
36319
36320         fcntl: move more flags to the header
36321         * lib/cloexec.c: Do not define FD_CLOEXEC here.
36322         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
36323         * lib/fcntl.in.h: Do both things here.
36324
36325 2009-08-21  Jim Meyering  <meyering@redhat.com>
36326
36327         consistently remove $@-t before redirecting to it
36328         * modules/argz: Remove $@-t and $@ before redirecting to the former.
36329         * modules/alloca-opt: Likewise.
36330         * modules/byteswap: Likewise.
36331         * modules/fnmatch: Likewise.
36332         * modules/getopt-posix: Likewise.
36333         * modules/glob: Likewise.
36334         * modules/poll: Likewise.
36335         * modules/posix_spawnp-tests: Likewise.
36336         * modules/sys_socket: Likewise.
36337         * modules/sysexits: Likewise.
36338
36339 2009-08-21  Eric Blake  <ebb9@byu.net>
36340
36341         popen: simplify access to original popen
36342         * lib/popen.c (rpl_popen): No need to worry about popen being a
36343         macro.
36344         Reported by Bruno Haible.
36345
36346 2009-08-20  Eric Blake  <ebb9@byu.net>
36347
36348         build: avoid some compiler warnings
36349         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
36350         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
36351         type.
36352         (new_exclude_segment, excluded_file_pattern_p)
36353         (excluded_file_name_p): Reduce scope.
36354         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
36355         old-style declaration.
36356
36357 2009-08-20  Simon Josefsson  <simon@josefsson.org>
36358
36359         * tests/test-exclude1.sh: Handle Windows EOL.
36360         * tests/test-exclude2.sh: Likewise.
36361         * tests/test-exclude3.sh: Likewise.
36362         * tests/test-exclude4.sh: Likewise.
36363         * tests/test-exclude5.sh: Likewise.
36364         * tests/test-exclude6.sh: Likewise.
36365         * tests/test-exclude7.sh: Likewise.
36366
36367 2009-08-19  Akim Demaille  <demaille@gostai.com>
36368
36369         bootstrap: find sha1sum when named gsha1sum.
36370         * bootstrap (find_tool): New.
36371         ($SHA1SUM): New.
36372         Use it.
36373
36374 2009-08-20  Jim Meyering  <meyering@redhat.com>
36375
36376         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
36377         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
36378         expression that converts "." in a file name to "\." in the resulting
36379         regexp.  Start with a dummy statement, so that prior shell variable
36380         definitions are expanded portably.  Reported by Simon Josefsson.
36381
36382 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
36383
36384         Fix polling for writeability of a screen buffer.
36385         * lib/poll.c: Distinguish input and screen buffers for the
36386         Win32 implementation.
36387         * lib/select.c: Likewise.
36388
36389 2009-08-19  Eric Blake  <ebb9@byu.net>
36390
36391         popen-safer: prevent popen from clobbering std descriptors
36392         * modules/popen-safer: New file.
36393         * lib/popen-safer.c: Likewise.
36394         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
36395         * lib/stdio--.h (popen): Provide override.
36396         * lib/stdio-safer.h (popen_safer): Provide declaration.
36397         * tests/test-popen.c (includes): Partially test this.
36398         * modules/popen-safer-tests: New file, for more tests.
36399         * tests/test-popen-safer.c: Likewise.
36400         * MODULES.html.sh (file stream based Input/Output): Mention it.
36401
36402         tests: test some of the *-safer modules
36403         * modules/fopen-safer (Depends-on): Add fopen.
36404         * modules/fcntl-safer (Depends-on): Add fcntl.
36405         * modules/stdlib-safer (Depends-on): Add stdlib.
36406         (configure.ac): Set indicator.
36407         * modules/unistd-safer (configure.ac): Likewise.
36408         * modules/tmpfile-safer (configure.ac): Likewise.
36409         (Depends-on): Add tmpfile.
36410         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
36411         active.
36412         * tests/test-fopen.c (includes): Test safer versions when they are
36413         in use.
36414         * tests/test-open.c (includes): Likewise.
36415
36416         popen: fix cygwin 1.5 bug when stdin closed
36417         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
36418         * modules/popen: New file.
36419         * modules/popen-tests: Likewise.
36420         * tests/test-popen.c: Likewise.
36421         * m4/popen.m4: Likewise.
36422         * lib/popen.c: Likewise.
36423         * lib/stdio.in.h (popen): New declaration.
36424         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
36425         * modules/stdio (Makefile.am): Likewise.
36426         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
36427
36428 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
36429
36430         maint.mk: give full control over update-copyright exclusions
36431         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
36432         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
36433         (update-copyright): Don't force inclusion of top-level
36434         ChangeLog.  Don't force exclusion of all COPYING files, but make
36435         them the default exclusion instead.
36436
36437 2009-08-16  Bruno Haible  <bruno@clisp.org>
36438
36439         Fix test failures on Solaris 10.
36440         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
36441         tests when Solaris iconv() is used.
36442         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
36443         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
36444         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
36445         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
36446         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
36447
36448 2009-08-16  Bruno Haible  <bruno@clisp.org>
36449
36450         Fix test failures on Solaris 10.
36451         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
36452         'tr' program and pass it as first argument.
36453         * tests/test-pipe-filter-gi1.sh: Likewise.
36454         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
36455         program as first argument.
36456         * tests/test-pipe-filter-gi1.c (main): Likewise.
36457
36458 2009-08-16  Eric Blake  <ebb9@byu.net>
36459
36460         fpurge: fix previous commits
36461         * modules/fpurge (Makefile.am): Make replacement conditional,
36462         partially reverting 2007-04-29 change; missed in previous
36463         attempt.
36464         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
36465         is missing.
36466
36467 2009-08-16  Bruno Haible  <bruno@clisp.org>
36468
36469         Clarify fpurge's effect on the file position.
36470         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
36471         * tests/test-fpurge.c (main): Make a second pass for checking the file
36472         position.
36473
36474 2009-08-16  Bruno Haible  <bruno@clisp.org>
36475
36476         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
36477         declaration of fpurge is missing.
36478         * tests/test-fpurge.c (main): Check that the file has not more contents
36479         than expected. Close the file before removing it.
36480
36481 2009-08-15  Eric Blake  <ebb9@byu.net>
36482
36483         fpurge: don't wrap working cygwin implementation
36484         * lib/fpurge.c (fpurge): Fix comment typo.
36485         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
36486         1.7 to avoid replacement.
36487         * tests/test-fpurge.c (main): Enhance test.
36488
36489 2009-08-15  Eric Blake  <ebb9@byu.net>
36490         and Jim Meyering  <meyering@redhat.com>
36491
36492         test-update-copyright: skip if perl is insufficient
36493         * tests/test-update-copyright.sh: Failure to run maintainer tool
36494         should not cause testsuite failure on cygwin 1.5.
36495
36496 2009-08-14  Eric Blake  <ebb9@byu.net>
36497
36498         doc: mention more functions added in cygwin 1.7.0
36499         * doc/posix-headers/limits.texi (limits.h): Update for recent
36500         cygwin additions.
36501         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
36502         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
36503         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
36504         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
36505         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
36506
36507 2009-08-14  Eric Blake  <ebb9@byu.net>
36508
36509         maint.mk: simplify update-copyright rule
36510         * top/maint.mk (update-copyright-local): Delete, and document how
36511         to do it in cfg.mk instead.
36512         (update-copyright-exclude-regexp): Delete, and document how to do
36513         it in .x-update-copyright instead.
36514         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
36515         exclude ChangeLog.
36516
36517 2009-08-14  Bruno Haible  <bruno@clisp.org>
36518
36519         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
36520
36521 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
36522
36523         maint.mk: support update-copyright-env
36524         * top/maint.mk (update-copyright-env): Define place-holder.
36525         (update-copyright): Expand $(update-copyright-env) before
36526         invoking update-copyright.
36527
36528 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
36529
36530         update-copyright: implement forced reformatting
36531         * build-aux/update-copyright: Implement and document
36532         UPDATE_COPYRIGHT_FORCE.
36533         * tests/test-update-copyright.sh: Test it.
36534
36535 2009-08-14  Eric Blake  <ebb9@byu.net>
36536         and Bruno Haible  <bruno@clisp.org>
36537
36538         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
36539         * tests/test-locale.c: Revert previous patch related to NULL.
36540         * tests/test-stdio.c: Likewise.
36541         * tests/test-stdlib.c: Likewise.
36542         * tests/test-string.c: Likewise.
36543         * tests/test-unistd.c: Likewise.
36544         * modules/time-tests (Depends-on): Add verify.
36545         * modules/wchar-tests (Depends-on): Likewise.
36546         * tests/test-time.c: Test for NULL compliance.
36547         * tests/test-wchar.c: Likewise.
36548         * modules/locale (Depends-on): Add stddef.
36549         * modules/stdio (Depends-on): Likewise.
36550         * modules/stdlib (Depends-on): Likewise.
36551         * modules/string (Depends-on): Likewise.
36552         * modules/time (Depends-on): Likewise.
36553         * modules/unistd (Depends-on): Likewise.
36554         * modules/wchar (Depends-on): Likewise.
36555         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
36556         * lib/stdlib.in.h (includes): Likewise.
36557         * lib/string.in.h (includes): Likewise.
36558         * lib/time.in.h (includes): Likewise.
36559         * lib/unistd.in.h (includes): Likewise.
36560         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
36561         replaced.
36562         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
36563         * m4/stddef_h.m4: New file.
36564         * modules/stddef: Likewise.
36565         * lib/stddef.in.h: Likewise.
36566         * modules/stddef-tests: Likewise.
36567         * tests/test-stddef.c: Likewise.
36568         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
36569         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
36570         * doc/posix-headers/locale.texi (locale.h): Likewise.
36571         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
36572         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
36573         * doc/posix-headers/string.texi (string.h): Likewise.
36574         * doc/posix-headers/time.texi (time.h): Likewise.
36575         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
36576         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
36577
36578 2009-08-14  Eric Blake  <ebb9@byu.net>
36579
36580         doc: improve git diff of texinfo files
36581         * .gitattributes: Add rule for *.texi files, with hint on how to
36582         use it.
36583         Copied from m4, and based on a report by Bruno Haible.
36584
36585 2009-08-14  Bruno Haible  <bruno@clisp.org>
36586
36587         Disable multithread support by default on Cygwin 1.5.x for real.
36588         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
36589
36590 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
36591
36592         update-copyright: much ado about intervals
36593         * build-aux/update-copyright: Implement and document
36594         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
36595         of copyright year intervals.
36596         Also, document UPDATE_COPYRIGHT_YEAR.
36597         * tests/test-update-copyright.sh: Test it.
36598
36599         update-copyright: convert 2-digit to 4-digit years
36600         * build-aux/update-copyright: Implement and document.
36601         * tests/test-update-copyright.sh: Update.
36602
36603 2009-08-14  Jim Meyering  <meyering@redhat.com>
36604
36605         test-exclude: avoid coreutils "make check" failure
36606         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
36607         just as in test-argmatch.c.
36608
36609 2009-08-13  Eric Blake  <ebb9@byu.net>
36610
36611         test-dup2: fix bad assumption
36612         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
36613         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
36614
36615         test-version-etc: fix CRLF portability issue
36616         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
36617         recognize \r.
36618         * tests/test-argp-version-etc-1.sh: Likewise.
36619
36620         getopt: update client modules
36621         * modules/argp (Depends-on): Use getopt-gnu.
36622         * modules/git-merge-changelog (Depends-on): Likewise.
36623         * modules/long-options (Depends-on): Likewise.
36624         * modules/xstrtol (Depends-on): Likewise.
36625
36626 2009-08-13  Simon Josefsson  <simon@josefsson.org>
36627
36628         * tests/test-version-etc.sh: Don't fail on different
36629         project/version.  Don't fail on CRLF differences.  Rewrite to use
36630         multiple -e instead of multiple sed forks, suggested by Eric Blake
36631         <ebb9@byu.net>.
36632         * tests/test-argp-version-etc-1.sh: Likewise.
36633
36634 2009-08-13  Simon Josefsson  <simon@josefsson.org>
36635
36636         * tests/test-version-etc.sh: Don't fail on different
36637         project/version.
36638
36639 2009-08-12  Bruno Haible  <bruno@clisp.org>
36640
36641         Tests for modules 'getopt-posix', 'getopt-gnu'.
36642         * modules/getopt-posix-tests: New file.
36643         * tests/test-getopt.c: New file.
36644         * tests/test-getopt.h: New file.
36645         * tests/test-getopt_long.h: New file.
36646
36647         New modules 'getopt-posix', 'getopt-gnu'.
36648         * modules/getopt-gnu: New file, renamed from modules/getopt.
36649         * modules/getopt-posix: New file.
36650         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
36651         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
36652         (gl_GETOPT): Remove macro.
36653         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
36654         Disable the test against BSD systems that declare optreset. Test
36655         against mingw bug. Test against lack of support of optional arguments
36656         on many platforms.
36657         * doc/glibc-headers/getopt.texi: Update module name and list of
36658         relevant platforms.
36659         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
36660         'getopt-gnu' and more portability problems.
36661         * NEWS: Mention the changes.
36662
36663 2009-08-12  Bruno Haible  <bruno@clisp.org>
36664
36665         Ensure that optarg etc. get declared by <unistd.h>.
36666         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
36667         AC_USE_SYSTEM_EXTENSIONS.
36668         * modules/getopt (Depends-on): Add 'extensions'.
36669
36670 2009-08-12  Bruno Haible  <bruno@clisp.org>
36671
36672         Avoid test link errors.
36673         * modules/pipe-filter-ii-tests (Makefile.am): Define
36674         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
36675         * modules/pipe-filter-gi-tests (Makefile.am): Define
36676         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
36677         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
36678
36679 2009-08-12  Bruno Haible  <bruno@clisp.org>
36680
36681         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
36682         gl_GETOPT_SUBSTITUTE before.
36683         (gl_GETOPT): Use it.
36684         * m4/argp.m4 (gl_ARGP): Update.
36685         Reported by Sergey Poznyakoff.
36686
36687         * m4/getopt.m4: Reorder macros.
36688         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
36689         (gl_GETOPT_SUBSTITUTE): Remove macro.
36690
36691 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
36692
36693         Minor improvement in gitlog-to-changelog
36694
36695         * build-aux/gitlog-to-changelog: New option `--format' makes
36696         output format string configurable.
36697
36698 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
36699
36700         Optimize exclude: use hash tables for non-wildcard patterns.
36701
36702         * lib/exclude.c: Include hash.h and mbuiter.h
36703         (struct exclude_pattern, exclude_segment): New data types.
36704         (struct exclude): Rewrite.
36705         (fnmatch_pattern_has_wildcards): New function.
36706         (new_exclude_segment, free_exclude_segment): New functions.
36707         (excluded_file_pattern_p, excluded_file_name_p): New functions.
36708         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
36709         * lib/exclude.h (is_fnmatch_pattern): New prototype.
36710         * modules/exclude: Depend on hash and mbuiter.
36711
36712         * modules/exclude-tests: New file.
36713         * tests/test-exclude.c: New file.
36714         * tests/test-exclude1.sh: New file.
36715         * tests/test-exclude2.sh: New file.
36716         * tests/test-exclude3.sh: New file.
36717         * tests/test-exclude4.sh: New file.
36718         * tests/test-exclude5.sh: New file.
36719         * tests/test-exclude6.sh: New file.
36720         * tests/test-exclude7.sh: New file.
36721
36722 2009-08-12  Bruno Haible  <bruno@clisp.org>
36723
36724         Ensure that getopt() gets declared by <unistd.h>.
36725         * lib/unistd.in.h: Conditionally include getopt.h.
36726         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
36727         Set GNULIB_UNISTD_H_GETOPT.
36728         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
36729         GNULIB_UNISTD_H_GETOPT.
36730         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
36731
36732 2009-08-12  Bruno Haible  <bruno@clisp.org>
36733
36734         Clarify logic.
36735         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
36736         gl_replace_getopt instead of GETOPT_H.
36737
36738 2009-08-12  Bruno Haible  <bruno@clisp.org>
36739
36740         * m4/getopt.m4: Add comments.
36741
36742 2009-08-12  Bruno Haible  <bruno@clisp.org>
36743
36744         Disable multithread support by default on Cygwin 1.5.x.
36745         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
36746         set gl_use_threads=no if not specified otherwise.
36747
36748 2009-08-11  Bruno Haible  <bruno@clisp.org>
36749
36750         Avoid compilation error on NetBSD 5.0.
36751         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
36752         * tests/test-stdio.c: Likewise.
36753         * tests/test-stdlib.c: Likewise.
36754         * tests/test-string.c: Likewise.
36755         * tests/test-unistd.c: Likewise.
36756         Reported by Greg Troxel <gdt@ir.bbn.com>
36757         at <https://savannah.gnu.org/support/?106973>.
36758
36759 2009-08-11  Bruno Haible  <bruno@clisp.org>
36760
36761         * modules/dup2-tests (Depends-on): Remove close.
36762
36763         Undo 2009-07-19 commit.
36764         * modules/acl-tests (Depends-on): Remove close.
36765         * modules/binary-io-tests (Depends-on): Likewise.
36766         * modules/closein-tests (Depends-on): Likewise.
36767         * modules/flock-tests (Depends-on): Likewise.
36768         * modules/fsync-tests (Depends-on): Likewise.
36769         * modules/lseek-tests (Depends-on): Likewise.
36770         * modules/pipe-tests (Depends-on): Likewise.
36771         * modules/posix_spawn-tests (Depends-on): Likewise.
36772         * modules/posix_spawnp-tests (Depends-on): Likewise.
36773         * modules/stat-time-tests (Depends-on): Likewise.
36774         * modules/yesno-tests (Depends-on): Likewise.
36775
36776 2009-08-10  Bruno Haible  <bruno@clisp.org>
36777
36778         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
36779
36780 2009-08-10  Bruno Haible  <bruno@clisp.org>
36781
36782         Fix a gcc warning.
36783         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
36784
36785 2009-08-10  Bruno Haible  <bruno@clisp.org>
36786
36787         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
36788         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
36789         not only the first time.
36790         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
36791         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
36792         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
36793         is 1, not only the the first time.
36794
36795 2009-08-10  Bruno Haible  <bruno@clisp.org>
36796
36797         Make it possible to use module 'gethostname' without module 'close'.
36798         * lib/unistd.in.h (close): Evoke a link error only if
36799         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
36800         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
36801         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
36802         * modules/unistd (Makefile.am): Substitute
36803         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
36804         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
36805         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
36806         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
36807         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
36808         * modules/sys_ioctl (Makefile.am): Substitute
36809         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
36810         * modules/socket (configure.ac): On native Windows, set
36811         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
36812         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
36813         Reported by Sam Steingold <sds@gnu.org>.
36814
36815 2009-08-10  Bruno Haible  <bruno@clisp.org>
36816
36817         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
36818         * modules/ioctl (configure.ac): Likewise.
36819
36820 2009-08-10  Bruno Haible  <bruno@clisp.org>
36821
36822         Avoid collision between gnulib wrapper and libintl wrapper.
36823         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
36824         already defined in intl/printf.c.
36825         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
36826         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
36827
36828 2009-08-09  Bruno Haible  <bruno@clisp.org>
36829
36830         Make <sys/select.h> really self-contained, also on Solaris 10.
36831         * lib/sys_select.in.h: Include <string.h>.
36832         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
36833         Solaris 10 problem.
36834         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
36835         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
36836         Reported by Jim Meyering.
36837
36838 2009-08-09  Bruno Haible  <bruno@clisp.org>
36839
36840         Avoid warnings from 'aclocal' that are due to a use of macro name
36841         AM_XGETTEXT_OPTION that is not defined in automake.
36842         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
36843         automake.
36844         * modules/error (configure.ac): Likewise.
36845         * modules/propername (configure.ac): Likewise.
36846         * modules/vasprintf (configure.ac): Likewise.
36847         * modules/verror (configure.ac): Likewise.
36848         * modules/xprintf (configure.ac): Likewise.
36849         * modules/xvasprintf (configure.ac): Likewise.
36850
36851 2009-08-08  Bruno Haible  <bruno@clisp.org>
36852
36853         Avoid compilation error in C++ mode.
36854         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
36855         Reported by Sam Steingold <sds@gnu.org>.
36856
36857 2009-08-08  Bruno Haible  <bruno@clisp.org>
36858
36859         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
36860         for the various Unix platforms.
36861         * doc/posix-headers/limits.texi: Update platforms list regarding
36862         HOST_NAME_MAX.
36863         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
36864
36865 2009-08-07  Jim Meyering  <meyering@redhat.com>
36866
36867         selinux-at: fix typo in a comment
36868         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
36869         Spotted by Paolo Bonzini.
36870
36871         selinux-at: remove redundant m4 code, add documentation
36872         * modules/selinux-at (configure.ac): Remove redundant code.
36873         LIB_SELINUX is already set via the dependent module, selinux-h.
36874         (Include): Add quotes around selinux-at.h.
36875         * lib/selinux-at.h: Add documentation.
36876         Reported by Bruno Haible in
36877         http://marc.info/?l=gnulib-bug&m=124958988300749
36878
36879 2009-08-07  Bruno Haible  <bruno@clisp.org>
36880
36881         Avoid link error on MacOS X 10.3 and 10.4.
36882         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
36883         on non-ELF systems.
36884         * lib/argp-pv.c (argp_program_version): Likewise.
36885         Reported by Simon Josefsson.
36886
36887 2009-08-07  Simon Josefsson  <simon@josefsson.org>
36888
36889         * tests/test-version-etc.sh: Use $EXEEXT.
36890
36891 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
36892
36893         update-copyright: update documentation to point to maint.mk
36894         * build-aux/update-copyright: Here.
36895
36896 2009-08-06  Jim Meyering  <meyering@redhat.com>
36897
36898         maint.mk: support update-copyright-local
36899         * top/maint.mk (update-copyright-local): Define place-holder.
36900         (update-copyright): Depend on $(update-copyright-local).
36901
36902 2009-08-06  Jim Meyering  <meyering@redhat.com>
36903
36904         selinux-at: new module
36905         Initially written for coreutils, this module will soon be
36906         used by findutils, too.
36907         * MODULES.html.sh [Misc]: Add selinux-at.
36908         * lib/selinux-at.h: New file, from coreutils.
36909         * lib/selinux-at.c: Likewise.
36910         * modules/selinux-at: Likewise.
36911         (License): Change from LGPL to GPL, since it depends
36912         on the GPL'd openat module.
36913
36914         doc: update README
36915         * README: Remove references to cogito.
36916         Remove cvs-repo-updating instructions from 2007.
36917         Don't imply that CVS is better if you have limited disk space.
36918
36919 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
36920
36921         update-copyright: support C-style comments
36922         * build-aux/update-copyright: Implement and document.
36923         * tests/test-update-copyright.sh: Test.
36924
36925 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
36926
36927         update-copyright: support omitted "(C)"
36928         * build-aux/update-copyright: Implement and document.  Also,
36929         allow variable whitespace before "(C)".
36930         * tests/test-update-copyright.sh: Test.
36931
36932 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
36933
36934         update-copyright: don't trip on non-FSF copyright statements
36935         * build-aux/update-copyright: Fix so that the first correctly
36936         formatted FSF copyright statement is recognized no matter what
36937         appears before it.  Update documentation.
36938         * tests/test-update-copyright.sh: Test that.
36939
36940 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
36941
36942         update-copyright: clean up code a little
36943         * build-aux/update-copyright: Append "_re" to the name of any
36944         variable holding a regular expression.
36945         Replace "old" and "new" with "stmt" in variable names.
36946         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
36947         handled correctly.
36948         Format code more consistently.
36949
36950 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
36951
36952         update-copyright-tests: improve portability
36953         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
36954         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
36955
36956 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
36957
36958         update-copyright: support @copyright{} and &copy;
36959         * build-aux/update-copyright: Implement and document.
36960         * tests/test-update-copyright.sh: Test.
36961
36962 2009-08-04  Jim Meyering  <meyering@redhat.com>
36963
36964         update-copyright-tests: correctly test EOL=\r\n handling
36965         * tests/test-update-copyright.sh: Put \r at the end of some lines
36966         for the dos-eol tests.  Based on a patch by Joel E. Denny.
36967
36968         maint.mk: make update-copyright exclusion list more configurable
36969         * top/maint.mk (update-copyright): Default to excluding COPYING,
36970         but allow an override, in case someone does want to update that file.
36971
36972         maint.mk: don't update copyright date in COPYING
36973         * top/maint.mk (update-copyright): Exclude COPYING.
36974
36975         maint.mk: add a copyright-updating rule
36976         * top/maint.mk (update-copyright): New rule.
36977         Derived from coreutils/Makefile.am.
36978
36979         update-copyright: rename some variables
36980         * build-aux/update-copyright: Rename a few variables for clarity.
36981         Tweak syntax.  List Joel E. Denny as coauthor.
36982
36983 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
36984
36985         update-copyright: fix bug for 2-digit last year and add tests
36986         * build-aux/update-copyright: Fix bug.
36987         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
36988         specified.
36989         * modules/update-copyright-tests: New
36990         * tests/test-update-copyright.sh: New.
36991
36992 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
36993
36994         update-copyright: handle leading tabs in line prefix
36995         * build-aux/update-copyright: Count leading tabs as 8 spaces
36996         when computing margin.  This helps with the formatting of
36997         ChangeLogs, for example.
36998         Fix documentation a little.
36999
37000 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
37001
37002         update-copyright: support EOL=\r\n
37003         * build-aux/update-copyright: Implement that.
37004
37005 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
37006
37007         update-copyright: automatically format copyright statements
37008         * build-aux/update-copyright: Implement that.
37009         Also, be a little more predictable and safer by always failing
37010         when the full copyright format is not perfectly recognized as an
37011         unbroken whole.  Discussed at
37012         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
37013         Rewrite documentation.
37014
37015 2009-08-03  Bruno Haible  <bruno@clisp.org>
37016
37017         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
37018
37019 2009-08-02  Bruno Haible  <bruno@clisp.org>
37020
37021         Tests for module 'uname'.
37022         * modules/uname-tests: New file.
37023         * tests/test-uname.c: New file.
37024
37025         New module 'uname'.
37026         * lib/uname.c: New file.
37027         * m4/uname.m4: New file.
37028         * modules/uname: New file.
37029         * doc/posix-functions/uname.texi: Mention the new module.
37030
37031 2009-08-02  Bruno Haible  <bruno@clisp.org>
37032
37033         Tests for module 'sys_utsname'.
37034         * modules/sys_utsname-tests: New file.
37035         * tests/test-sys_utsname.c: New file.
37036
37037         New module 'sys_utsname'.
37038         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
37039         * m4/sys_utsname_h.m4: New file.
37040         * modules/sys_utsname: New file.
37041         * doc/posix-headers/sys_utsname.texi: Mention the new module.
37042
37043 2009-08-02  Bruno Haible  <bruno@clisp.org>
37044
37045         Implicitly initialize the sockets library.
37046         * lib/gethostname.c: Include sockets.h.
37047         (rpl_gethostname): Invoke gl_sockets_startup.
37048         * lib/socket.c: Include sockets.h.
37049         (rpl_socket): Invoke gl_sockets_startup.
37050         * modules/gethostname (Depends-on): Add sockets.
37051         * modules/socket (Depends-on): Likewise.
37052         * tests/test-poll.c: Don't include sockets.h.
37053         (main): Don't invoke gl_sockets_startup.
37054         * tests/test-select.c: Don't include sockets.h.
37055         (main): Don't invoke gl_sockets_startup.
37056
37057 2009-08-02  Bruno Haible  <bruno@clisp.org>
37058
37059         Allow multiple calls to gl_sockets_startup.
37060         * lib/sockets.c (initialized_sockets_version): New variable.
37061         (gl_sockets_startup): Do nothing if already called for this or a higher
37062         version.
37063         (gl_sockets_cleanup): Reset initialized_sockets_version.
37064
37065 2009-08-03  Simon Josefsson  <simon@josefsson.org>
37066
37067         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
37068         different project/version.
37069
37070 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
37071             Bruno Haible  <bruno@clisp.org>
37072
37073         Tests for module 'pipe-filter-gi'.
37074         * modules/pipe-filter-gi-tests: New file.
37075         * tests/test-pipe-filter-gi1.sh: New file.
37076         * tests/test-pipe-filter-gi1.c: New file.
37077         * tests/test-pipe-filter-gi2.sh: New file.
37078         * tests/test-pipe-filter-gi2-main.c: New file.
37079         * tests/test-pipe-filter-gi2-child.c: New file.
37080
37081         New module 'pipe-filter-gi'.
37082         * lib/pipe-filter-gi.c: New file.
37083         * modules/pipe-filter-gi: New file.
37084
37085 2009-08-02  Bruno Haible  <bruno@clisp.org>
37086             Paolo Bonzini  <bonzini@gnu.org>
37087
37088         Tests for module 'pipe-filter-ii'.
37089         * modules/pipe-filter-ii-tests: New file.
37090         * tests/test-pipe-filter-ii1.sh: New file.
37091         * tests/test-pipe-filter-ii1.c: New file.
37092         * tests/test-pipe-filter-ii2.sh: New file.
37093         * tests/test-pipe-filter-ii2-main.c: New file.
37094         * tests/test-pipe-filter-ii2-child.c: New file.
37095
37096         New module 'pipe-filter-ii'.
37097         * lib/pipe-filter.h: New file.
37098         * lib/pipe-filter-ii.c: New file.
37099         * lib/pipe-filter-aux.h: New file.
37100         * modules/pipe-filter-ii: New file.
37101
37102 2009-08-02  Simon Josefsson  <simon@josefsson.org>
37103
37104         * lib/gc-libgcrypt.c: Change copyright to FSF.
37105         * lib/gc-gnulib.c: Likewise.
37106
37107 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
37108
37109         * lib/gethostname.c: Include limits.h.
37110
37111 2009-08-02  Simon Josefsson  <simon@josefsson.org>
37112             Bruno Haible  <bruno@clisp.org>
37113
37114         Ensure HOST_NAME_MAX as part of the gethostname module.
37115         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
37116         define also HOST_NAME_MAX.
37117         * tests/test-gethostname.c: Include <limits.h>.
37118         (main): Check also HOST_NAME_MAX.
37119         * doc/posix-headers/limits.texi: Document the mingw problem.
37120
37121 2009-08-02  Bruno Haible  <bruno@clisp.org>
37122
37123         * lib/gethostname.c (gethostname): Fix handling of large len argument.
37124         Add comments.
37125
37126 2009-03-31  Simon Josefsson  <simon@josefsson.org>
37127
37128         * lib/gethostname.c: Add Windows wrapper.
37129         * m4/gethostname.m4: Look for gethostname in -lws2_32.
37130         * modules/gethostname: Depend on sys_socket & errno, for also
37131         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
37132         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
37133
37134 2009-07-31  Jim Meyering  <meyering@redhat.com>
37135
37136         getloadavg: fix symbol name in comment
37137         * lib/getloadavg.c: Correct a typo I introduced when adding
37138         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
37139         Matt Kraai spotted the problem.
37140
37141 2009-07-29  Matt Kraai  <mkraai@beckman.com>
37142
37143         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
37144         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
37145         code also if ! defined N_NAME_POINTER.
37146         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
37147         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
37148         but the n_name member is a 12-byte array.
37149
37150 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
37151
37152         update-copyright: generalize comment handling
37153         * build-aux/update-copyright: Handle copyright statements
37154         within more comment styles.
37155         Document usage.
37156         Report any file with an external copyright holder or parse failure.
37157
37158 2009-07-29  Jim Meyering  <meyering@redhat.com>
37159
37160         mktime: correct setting of REPLACE_MKTIME
37161         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
37162
37163         update-copyright: new module
37164         * modules/update-copyright: New file.
37165         * build-aux/update-copyright: New file.
37166         * MODULES.html.sh (maint+release support): Add update-copyright.
37167
37168 2009-07-27  Bruno Haible  <bruno@clisp.org>
37169
37170         Fix compilation error when <ctime> is used and mktime is replaced.
37171         * lib/time.in.h (mktime): New declaration.
37172         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
37173         REPLACE_MKTIME instead of defining mktime in config.h.
37174         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
37175         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
37176         Reported by Ross McFarland <rwmcfa1@neces.com>.
37177
37178 2009-07-27  Bruno Haible  <bruno@clisp.org>
37179
37180         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
37181         Reported by Matt Kraai <mkraai@beckman.com>.
37182
37183 2009-07-25  Jim Meyering  <meyering@redhat.com>
37184
37185         maint.mk: avoid warnings about missing files
37186         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
37187         diagnostic when .prev-version does not exist.
37188         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
37189         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
37190         nonexistent cfg.mk.
37191         Suggestions from Simon Josefsson.
37192
37193 2009-07-25  Bruno Haible  <bruno@clisp.org>
37194
37195         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
37196         defined as macros. Needed on QNX 6.4.1.
37197         Reported by Matt Kraai <mkraai@beckman.com>.
37198
37199 2009-07-23  Jim Meyering  <meyering@redhat.com>
37200
37201         maint.mk: invoke "make dist" with a working value of XZ_OPT
37202         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
37203
37204 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
37205
37206         Make fseeko.c compile on QNX.
37207         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
37208
37209 2009-07-22  Peter Simons  <simons@cryp.to>
37210
37211         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
37212         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
37213         * lib/md4.h: Likewise.
37214         * lib/md5.h: Likewise.
37215         * lib/sha1.h: Likewise.
37216         * lib/sha256.h: Likewise.
37217         * lib/sha512.h: Likewise.
37218
37219         tests-sha1: don't assign literal string to 'char *' variable
37220         * tests/test-sha1.c (main): Declare locals with "const" to match
37221         attributes of the right hand side.
37222
37223 2009-07-21  Eric Blake  <ebb9@byu.net>
37224
37225         dup2: fix more mingw problems
37226         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
37227         fd to itself.
37228         * doc/posix-functions/dup2.texi (dup2): Document the bug.
37229         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
37230         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
37231         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
37232         care of mingw bugs.
37233
37234 2009-07-21  Jim Meyering  <meyering@redhat.com>
37235
37236         vc-list-files: avoid failure when /bin/sh is dash
37237         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
37238         On some Debian based systems, /bin/sh is a symlink to dash, and running
37239         this command would omit the "/" following each 'tests' prefix:
37240           dash -x build-aux/vc-list-files -C . tests
37241         That is because bash and dash work differently:
37242           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
37243           bash ok
37244           dash odd
37245
37246 2009-07-21  Eric Blake  <ebb9@byu.net>
37247
37248         dup2-tests: test previous patch
37249         * modules/dup2-tests: New file.
37250         * tests/test-dup2.c: Likewise.
37251         * tests/test-open.c (main): Avoid unspecified behavior.
37252         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
37253         test.
37254
37255         dup2: work around mingw and cygwin 1.5 bug
37256         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
37257         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
37258         * modules/unistd (Makefile.am): Substitute it.
37259         * lib/unistd.in.h (dup2): Declare the replacement.
37260         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
37261         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
37262         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
37263         * modules/execute (Depends-on): Add dup2.
37264         * modules/fseterr (Depends-on): Likewise.
37265         * modules/pipe (Depends-on): Likewise.
37266         * modules/posix_spawn-internal (Depends-on): Likewise.
37267
37268 2009-07-21  Bruno Haible  <bruno@clisp.org>
37269
37270         * modules/.gitattributes: New file.
37271
37272 2009-07-20  Bruno Haible  <bruno@clisp.org>
37273
37274         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
37275         (main): Use it.
37276
37277 2009-07-20  Eric Blake  <ebb9@byu.net>
37278
37279         test-pipe: make a bit more robust.
37280         * tests/test-pipe.c (myerr): Allow error messages regardless of
37281         what we do to stderr.
37282         (test_pipe): Rearrange to avoid deadlock.
37283         (child_main): Try a larger read, to ensure we avoided deadlock.
37284         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
37285         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
37286         if misused.
37287
37288 2009-07-19  Jim Meyering  <meyering@redhat.com>
37289
37290         fts: avoid false-positive cycle-detection
37291         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
37292         for each new command line argument.
37293
37294 2009-07-19  Bruno Haible  <bruno@clisp.org>
37295
37296         Fix build error on mingw with the modules sys_select and unistd.
37297         * modules/acl-tests (Depends-on): Add close.
37298         * modules/binary-io-tests (Depends-on): Likewise.
37299         * modules/closein-tests (Depends-on): Likewise.
37300         * modules/flock-tests (Depends-on): Likewise.
37301         * modules/fsync-tests (Depends-on): Likewise.
37302         * modules/lseek-tests (Depends-on): Likewise.
37303         * modules/pipe-tests (Depends-on): Likewise.
37304         * modules/posix_spawn-tests (Depends-on): Likewise.
37305         * modules/posix_spawnp-tests (Depends-on): Likewise.
37306         * modules/stat-time-tests (Depends-on): Likewise.
37307         * modules/yesno-tests (Depends-on): Likewise.
37308
37309 2009-07-19  Bruno Haible  <bruno@clisp.org>
37310
37311         Unify conditionals.
37312         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
37313         macros, not at the compiler macros.
37314         * lib/pipe.c: Likewise.
37315         * lib/execute.c: Likewise.
37316         * lib/spawni.c: Likewise.
37317
37318 2009-07-19  Bruno Haible  <bruno@clisp.org>
37319
37320         Fix handling of closed stdin/stdout/stderr on mingw.
37321         * lib/w32spawn.h: Include unistd.h.
37322         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
37323         file descriptor with O_NOINHERIT flag.
37324         (fd_safer_noinherit): New function, based on fd-safer.c.
37325         (dup_safer_noinherit): New function, based on dup-safer.c.
37326         (undup_safer_noinherit): New function.
37327         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
37328         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
37329         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
37330         instead of fd_safer.
37331         * tests/test-pipe.c: Include <windows.h>.
37332         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
37333         result.
37334
37335         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
37336         from main.
37337         (test_pipe): Pass an extra argument for disambiguation.
37338         (main): Invoke parent_main or child_main.
37339
37340         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
37341         consistently.
37342
37343 2009-07-18  Eric Blake  <ebb9@byu.net>
37344
37345         test-pipe: fix mingw build
37346         * tests/test-pipe.c (main): Avoid fcntl on mingw.
37347
37348 2009-07-18  Bruno Haible  <bruno@clisp.org>
37349
37350         * modules/pipe-tests (Makefile.am): Fix typo.
37351
37352 2009-07-18  Eric Blake  <ebb9@byu.net>
37353
37354         error: fix mingw build
37355         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
37356         Reported by Bruno Haible.
37357
37358         error: avoid undefined use of stdout
37359         * lib/error.c (error, error_at_line): Check that fd 1 is open
37360         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
37361         is handling faults and the close_stdout module wants to report the
37362         detection of closed stdout as an error.
37363
37364 2009-07-17  Eric Blake  <ebb9@byu.net>
37365
37366         pipe: be robust in face of closed fds
37367         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
37368         should cause child to misbehave.
37369         * modules/pipe-tests: New module.
37370         * tests/test-pipe.c: New file.
37371         * tests/test-pipe.sh: New file.
37372         Reported by Akim Demaille.
37373
37374 2009-07-14  Bruno Haible  <bruno@clisp.org>
37375
37376         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
37377         Reported by anonymous kc.
37378
37379 2009-07-07  Jim Meyering  <meyering@redhat.com>
37380
37381         maint.mk: don't look for translatable strings in *.m4 or *.mk
37382         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
37383         when searching for translatable strings.
37384
37385 2009-07-05  Jim Meyering  <meyering@redhat.com>
37386
37387         remove superfluous parentheses in STREQ definition
37388         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
37389         * lib/getugroups.c (STREQ): Likewise.
37390         * lib/fnmatch.c (STREQ): Likewise.
37391         Spotted by Bruno Haible.
37392
37393 2009-07-04  Jim Meyering  <meyering@redhat.com>
37394
37395         argv-iter: new module
37396         * MODULES.html.sh: Add argv-iter.
37397         * lib/argv-iter.c, lib/argv-iter.h: New files.
37398         * modules/argv-iter: New file.
37399         * modules/argv-iter-tests: New file.
37400         * tests/test-argv-iter.c: Test it.
37401
37402 2009-07-04  Bruno Haible  <bruno@clisp.org>
37403
37404         Fix assertion.
37405         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
37406         contains more exact copies of a given entry than file2, leave the extra
37407         copies unpaired rather than aborting.
37408         Reported by Eric Blake.
37409
37410 2009-07-02  Bruno Haible  <bruno@clisp.org>
37411
37412         Speedup git-merge-changelog for git cherry-pick.
37413         * lib/git-merge-changelog.c (struct entries_mapping): New type.
37414         (entries_mapping_get): New function, extracted from compute_mapping.
37415         (entries_mapping_reverse_get): New function.
37416         (compute_mapping): Add a 'full' argument. Return the result in a
37417         'struct entries_mapping'.
37418         (main): Update. Access the mappings through entries_mapping_get.
37419         Reported by Eric Blake.
37420
37421 2009-07-02  Bruno Haible  <bruno@clisp.org>
37422
37423         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
37424         best_i.
37425
37426 2009-07-02  Bruno Haible  <bruno@clisp.org>
37427
37428         Speed up approximate search for matching ChangeLog entries.
37429         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
37430         argument. Call fstrcmp_bounded instead of fstrcmp.
37431         (compute_mapping, try_split_merged_entry, main): Update callers.
37432
37433 2009-07-02  Bruno Haible  <bruno@clisp.org>
37434
37435         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
37436
37437 2009-06-30  Bruno Haible  <bruno@clisp.org>
37438
37439         Reduce the number of uc_is_cased calls.
37440         * lib/unicase.h (casing_suffix_context_t): Add
37441         'first_char_except_ignorable' field.
37442         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
37443         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
37444         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
37445         Update initializer.
37446         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
37447         case-ignorable characters.
37448         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
37449         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
37450         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
37451         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
37452         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
37453
37454 2009-06-30  Bruno Haible  <bruno@clisp.org>
37455
37456         Tests for module 'unicase/ignorable'.
37457         * modules/unicase/ignorable-tests: New file.
37458         * tests/unicase/test-ignorable.c: New file, generated by
37459         gen-uni-tables.
37460
37461         Tests for module 'unicase/cased'.
37462         * modules/unicase/cased-tests: New file.
37463         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
37464         * tests/unicase/test-predicate-part1.h: New file, derived from
37465         tests/unictype/test-predicate-part1.h.
37466         * tests/unicase/test-predicate-part2.h: New file, same as
37467         tests/unictype/test-predicate-part2.h.
37468
37469         Fix evaluation of "Before C" condition of FINAL_SIGMA.
37470         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
37471         (output_casing_properties): New function.
37472         (main): Call it.
37473         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
37474         * lib/unicase/cased.c: Include unictype/bitmap.h.
37475         (uc_is_cased): Define through a bitmap lookup.
37476         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
37477         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
37478         (uc_is_case_ignorable): Define through a bitmap lookup.
37479         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
37480         lib/unictype/bitmap.h.
37481         (Depends-on): Add inline. Clean up.
37482         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
37483         lib/unictype/bitmap.h.
37484         (Depends-on): Add inline. Clean up.
37485         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
37486         recognition.
37487         * tests/unicase/test-u16-tolower.c (main): Likewise.
37488         * tests/unicase/test-u32-tolower.c (main): Likewise.
37489
37490 2009-06-30  Bruno Haible  <bruno@clisp.org>
37491
37492         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
37493         * lib/unicase/u16-casemap.c: Likewise.
37494         * lib/unicase/u32-casemap.c: Likewise.
37495
37496 2009-06-29  Bruno Haible  <bruno@clisp.org>
37497
37498         Define u32_casefold as a wrapper around u32_ct_casefold.
37499         * lib/unicase/u32-casefold.c: Update.
37500         * modules/unicase/u32-casefold (Depends-on): Add
37501         unicase/u32-ct-casefold, unicase/empty-prefix-context,
37502         unicase/empty-suffix-context. Clean up.
37503
37504         Define u16_casefold as a wrapper around u16_ct_casefold.
37505         * lib/unicase/u16-casefold.c: Update.
37506         * modules/unicase/u16-casefold (Depends-on): Add
37507         unicase/u16-ct-casefold, unicase/empty-prefix-context,
37508         unicase/empty-suffix-context. Clean up.
37509
37510         Define u8_casefold as a wrapper around u8_ct_casefold.
37511         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
37512         * lib/unicase/u8-casefold.c: Update.
37513         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
37514         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
37515
37516         Define u32_totitle as a wrapper around u32_ct_totitle.
37517         * lib/unicase/u32-totitle.c: Update.
37518         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
37519         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
37520
37521         Define u16_totitle as a wrapper around u16_ct_totitle.
37522         * lib/unicase/u16-totitle.c: Update.
37523         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
37524         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
37525
37526         Define u8_totitle as a wrapper around u8_ct_totitle.
37527         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
37528         functions.
37529         (FUNC): Delegate to U_CT_TOTITLE.
37530         * lib/unicase/u8-totitle.c: Update.
37531         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
37532         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
37533
37534         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
37535         invocation.
37536         * modules/unicase/u32-tolower (Depends-on): Add
37537         unicase/empty-prefix-context, unicase/empty-suffix-context.
37538
37539         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
37540         invocation.
37541         * modules/unicase/u16-tolower (Depends-on): Add
37542         unicase/empty-prefix-context, unicase/empty-suffix-context.
37543
37544         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
37545         * modules/unicase/u8-tolower (Depends-on): Add
37546         unicase/empty-prefix-context, unicase/empty-suffix-context.
37547
37548         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
37549         invocation.
37550         * modules/unicase/u32-toupper (Depends-on): Add
37551         unicase/empty-prefix-context, unicase/empty-suffix-context.
37552
37553         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
37554         invocation.
37555         * modules/unicase/u16-toupper (Depends-on): Add
37556         unicase/empty-prefix-context, unicase/empty-suffix-context.
37557
37558         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
37559         * modules/unicase/u8-toupper (Depends-on): Add
37560         unicase/empty-prefix-context, unicase/empty-suffix-context.
37561
37562         New module 'unicase/u32-ct-casefold'.
37563         * lib/unicase/u32-ct-casefold.c: New file.
37564         * modules/unicase/u32-ct-casefold: New file.
37565
37566         New module 'unicase/u16-ct-casefold'.
37567         * lib/unicase/u16-ct-casefold.c: New file.
37568         * modules/unicase/u16-ct-casefold: New file.
37569
37570         New module 'unicase/u8-ct-casefold'.
37571         * lib/unicase/u8-ct-casefold.c: New file.
37572         * lib/unicase/u-ct-casefold.h: New file, derived from
37573         lib/unicase/u-casefold.h.
37574         * modules/unicase/u8-ct-casefold: New file.
37575
37576         New module 'unicase/u32-ct-totitle'.
37577         * lib/unicase/u32-ct-totitle.c: New file.
37578         * modules/unicase/u32-ct-totitle: New file.
37579
37580         New module 'unicase/u16-ct-totitle'.
37581         * lib/unicase/u16-ct-totitle.c: New file.
37582         * modules/unicase/u16-ct-totitle: New file.
37583
37584         New module 'unicase/u8-ct-totitle'.
37585         * lib/unicase/u8-ct-totitle.c: New file.
37586         * lib/unicase/u-ct-totitle.h: New file, derived from
37587         lib/unicase/u-totitle.h.
37588         * modules/unicase/u8-ct-totitle: New file.
37589
37590         New module 'unicase/u32-ct-tolower'.
37591         * lib/unicase/u32-ct-tolower.c: New file.
37592         * modules/unicase/u32-ct-tolower: New file.
37593
37594         New module 'unicase/u16-ct-tolower'.
37595         * lib/unicase/u16-ct-tolower.c: New file.
37596         * modules/unicase/u16-ct-tolower: New file.
37597
37598         New module 'unicase/u8-ct-tolower'.
37599         * lib/unicase/u8-ct-tolower.c: New file.
37600         * modules/unicase/u8-ct-tolower: New file.
37601
37602         New module 'unicase/u32-ct-toupper'.
37603         * lib/unicase/u32-ct-toupper.c: New file.
37604         * modules/unicase/u32-ct-toupper: New file.
37605
37606         New module 'unicase/u16-ct-toupper'.
37607         * lib/unicase/u16-ct-toupper.c: New file.
37608         * modules/unicase/u16-ct-toupper: New file.
37609
37610         New module 'unicase/u8-ct-toupper'.
37611         * lib/unicase/u8-ct-toupper.c: New file.
37612         * modules/unicase/u8-ct-toupper: New file.
37613
37614         Add context arguments to u*_casemap functions.
37615         * lib/unicase/unicasemap.h: Include unicase.h.
37616         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
37617         suffix_context arguments.
37618         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
37619         functions.
37620         (FUNC): Add prefix_context and suffix_context arguments. Use
37621         uc_is_cased and uc_is_case_ignorable.
37622         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
37623         * lib/unicase/u16-casemap.c: Likewise.
37624         * lib/unicase/u32-casemap.c: Likewise.
37625         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
37626         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
37627         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
37628         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
37629         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
37630         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
37631
37632         New module 'unicase/u32-suffix-context'.
37633         * lib/unicase/u32-suffix-context.c: New file.
37634         * modules/unicase/u32-suffix-context: New file.
37635
37636         New module 'unicase/u16-suffix-context'.
37637         * lib/unicase/u16-suffix-context.c: New file.
37638         * modules/unicase/u16-suffix-context: New file.
37639
37640         New module 'unicase/u8-suffix-context'.
37641         * lib/unicase/u8-suffix-context.c: New file.
37642         * lib/unicase/u-suffix-context.h: New file.
37643         * modules/unicase/u8-suffix-context: New file.
37644
37645         New module 'unicase/empty-suffix-context'.
37646         * lib/unicase/empty-suffix-context.c: New file.
37647         * modules/unicase/empty-suffix-context: New file.
37648
37649         New module 'unicase/u32-prefix-context'.
37650         * lib/unicase/u32-prefix-context.c: New file.
37651         * modules/unicase/u32-prefix-context: New file.
37652
37653         New module 'unicase/u16-prefix-context'.
37654         * lib/unicase/u16-prefix-context.c: New file.
37655         * modules/unicase/u16-prefix-context: New file.
37656
37657         New module 'unicase/u8-prefix-context'.
37658         * lib/unicase/u8-prefix-context.c: New file.
37659         * lib/unicase/u-prefix-context.h: New file.
37660         * lib/unicase/context.h: New file.
37661         * modules/unicase/u8-prefix-context: New file.
37662
37663         New module 'unicase/empty-prefix-context'.
37664         * lib/unicase/empty-prefix-context.c: New file.
37665         * modules/unicase/empty-prefix-context: New file.
37666
37667         New module 'unicase/ignorable'.
37668         * lib/unicase/ignorable.c: New file.
37669         * modules/unicase/ignorable: New file.
37670
37671         New module 'unicase/cased'.
37672         * lib/unicase/caseprop.h: New file.
37673         * lib/unicase/cased.c: New file.
37674         * modules/unicase/cased: New file.
37675
37676         New functions for case mapping of substrings.
37677         * lib/unicase.h (casing_prefix_context_t): New type.
37678         (unicase_empty_prefix_context): New variable.
37679         (u8_casing_prefix_context, u16_casing_prefix_context,
37680         u32_casing_prefix_context, u8_casing_prefixes_context,
37681         u16_casing_prefixes_context, u32_casing_prefixes_context): New
37682         declarations.
37683         (casing_suffix_context_t): New type.
37684         (unicase_empty_suffix_context): New variable.
37685         (u8_casing_suffix_context, u16_casing_suffix_context,
37686         u32_casing_suffix_context, u8_casing_suffixes_context,
37687         u16_casing_suffixes_context, u32_casing_suffixes_context,
37688         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
37689         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
37690         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
37691         declarations.
37692
37693 2009-06-28  Jim Meyering  <meyering@redhat.com>
37694
37695         boostrap: indent only with spaces
37696         * build-aux/bootstrap: Indent only with spaces, never TABs.
37697
37698         bootstrap: split long lines
37699         * build-aux/bootstrap: Keep line length < 80.
37700
37701         bootstrap: sync from coreutils
37702         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
37703         just as autoreconf does.  Verify a list of prerequisite
37704         package-name,version-number pairs if defined in bootstrap.conf.
37705         Refer to README-prereq, if prerequisites are not satisfied.
37706
37707 2009-06-27  Eric Blake  <ebb9@byu.net>
37708
37709         tests: add test for bogus NULL definition
37710         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
37711         * tests/test-stdlib.c: Likewise.
37712         * tests/test-string.c: Likewise.
37713         * tests/test-locale.c: Likewise.
37714         * tests/test-unistd.c: Likewise.
37715         * modules/stdio-tests (Depends-on): Add verify.
37716         * modules/stdlib-tests (Depends-on): Likewise.
37717         * modules/string-tests (Depends-on): Likewise.
37718         * modules/locale-tests (Depends-on): Likewise.
37719         * modules/unistd-tests (Depends-on): Likewise.
37720
37721 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
37722
37723         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
37724         self-explaining comment.
37725         * m4/selinux-selinux-h: Update serial.
37726         (gl_LIBSELINUX): New macro, adding a warning for missing development
37727         packages to code extracted from...
37728         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
37729         Add warning for missing development packages here, too.
37730
37731 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
37732
37733         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
37734
37735 2009-06-25  Eric Blake  <ebb9@byu.net>
37736
37737         version-etc: fix regression
37738         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
37739         gcc.
37740         (version_etc): Use it, to catch bugs with trailing NULL.
37741         * lib/version-etc.c (version_etc_arn): Delete unused argument.
37742         (version_etc_va): Fix logic bug.
37743         * modules/version-etc-tests: Add test.
37744         * tests/test-version-etc.c: New file.
37745         * tests/test-version-etc.sh: Likewise.
37746
37747 2009-06-25  Sam Steingold  <sds@gnu.org>
37748
37749         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
37750         mbtowc declaration.
37751
37752 2009-06-25  Eric Blake  <ebb9@byu.net>
37753
37754         fpurge: migrate into <stdio.h>
37755         * lib/fpurge.h: Delete...
37756         * lib/stdio.in.h (fpurge): ...and declare here, instead.
37757         * lib/fpurge.c (fpurge): Change declaring header.
37758         * modules/fpurge (Files): Drop deleted file.
37759         (Depends-on): Add stdio.
37760         (configure.ac): Set witness.
37761         * modules/stdio (Makefile.am): Support fpurge macros.
37762         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
37763         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
37764         * lib/fflush.c: Update client.
37765         * tests/test-fpurge.c: Likewise.
37766         * NEWS: Mention the change.
37767
37768 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
37769
37770         * lib/argp-version-etc.c (program_authors): Add const
37771         qualifier.
37772         * lib/version-etc.c: Fix typos in the comments.
37773         * modules/argp-version-etc: Depends on version-etc.
37774
37775 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
37776
37777         argp-version-etc: new module.
37778
37779         * lib/argp-version-etc.c: New file.
37780         * lib/argp-version-etc.h: New file.
37781         * modules/argp-version-etc: New file.
37782         * modules/argp-version-etc-tests: New file.
37783         * tests/test-argp-version-etc.c: New test.
37784         * tests/test-argp-version-etc-1.sh: New test.
37785
37786 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
37787
37788         Provide additional interfaces and documentation for version-etc
37789         module.
37790
37791         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
37792         interfaces.
37793         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
37794         prototypes.
37795
37796 2009-06-24  Bruno Haible  <bruno@clisp.org>
37797
37798         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
37799         HAVE_LIB${NAME} macro.
37800         Reported by Sam Steingold <sds@gnu.org>.
37801
37802 2009-06-23  Simon Josefsson  <simon@josefsson.org>
37803
37804         * modules/hash-tests (test_hash_LDADD): Link to libintl when
37805         needed.
37806
37807 2009-06-21  Bruno Haible  <bruno@clisp.org>
37808
37809         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
37810         work.
37811         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
37812         together with LIB${NAME}, LTLIB${NAME}.
37813         Reported by Sam Steingold <sds@gnu.org>.
37814
37815 2009-06-20  Jim Meyering  <meyering@redhat.com>
37816
37817         tests: make sc_require_test_exit_idiom more generic
37818         * top/maint.mk (Exit_witness_file): New overridable variable.
37819         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
37820         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
37821
37822 2009-06-19  Jim Meyering  <meyering@redhat.com>
37823
37824         hash: reverse order of src/dst parameters in an internal interface
37825         * lib/hash.c (transfer_entries): Reverse order of parameters to
37826         put DST before SRC.  Adjust callers.
37827
37828         tests: test-hash: avoid wholesale duplication
37829         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
37830         Instead, use a loop and add a single conditional.
37831
37832         tests: test-hash: allow seed selection via a command line argument
37833         * tests/test-hash.c (get_seed): New function.
37834         (main): Use it.
37835
37836 2009-06-19  Eric Blake  <ebb9@byu.net>
37837
37838         hash: avoid memory leak on allocation failure
37839         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
37840         failure.  Factor repeated algorithm...
37841         (transfer_entries): ...into new helper routine.
37842         (hash_delete): React to hash_rehash return value.
37843
37844         hash: reduce memory pressure in hash_rehash no-op case
37845         * lib/hash.c (next_prime): Avoid overflow.
37846         (hash_initialize): Factor bucket size computation...
37847         (compute_bucket_size): ...into new helper function.
37848         (hash_rehash): Use new function and open coding to reduce memory
37849         pressure, and avoid a memory leak in USE_OBSTACK code.
37850         Reported by Jim Meyering.
37851
37852 2009-06-18  Eric Blake  <ebb9@byu.net>
37853
37854         hash: make rotation more obvious
37855         * modules/hash (Depends-on): Add bitrotate and stdint.
37856         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
37857         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
37858         (SIZE_MAX): Rely on headers for definition.
37859         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
37860         (raw_hasher): Use rotr_sz.
37861         Suggested by Jim Meyering.
37862
37863         hash: fix memory leak in last patch
37864         * lib/hash.c (hash_rehash): Avoid memory leak.
37865
37866         hash: avoid no-op rehashing
37867         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
37868
37869         hash: provide default callback functions
37870         * lib/hash.c (raw_hasher, raw_comparator): New functions.
37871         (hash_initialize): Use them as defaults.
37872         * tests/test-hash.c (main): Test this.
37873
37874         hash: minor optimization
37875         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
37876         when possible.
37877         (hash_initialize): Document this promise.
37878         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
37879         * tests/test-hash.c (hash_compare_strings): Test this.
37880
37881 2009-06-18  Bruno Haible  <bruno@clisp.org>
37882
37883         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
37884         going to be replaced anyway.
37885
37886 2009-06-18  Bruno Haible  <bruno@clisp.org>
37887
37888         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
37889         in one place.
37890         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
37891         be replaced anyway.
37892
37893 2009-06-18  Eric Blake  <ebb9@byu.net>
37894
37895         hash: check for resize before insertion
37896         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
37897         threshold before insertion, so that a pathological hash_rehash
37898         that fills every bucket can still trigger another rehash.
37899
37900 2009-06-18  Jim Meyering  <meyering@redhat.com>
37901
37902         hash-tests: add a loop around the small tests
37903         * tests/test-hash.c (main): Repeat small tests with selected
37904         small initial table sizes.
37905
37906 2009-06-17  Eric Blake  <ebb9@byu.net>
37907
37908         hash: minor cleanups
37909         * lib/hash.h (hash_entry): Make opaque, by moving...
37910         * lib/hash.c (hash_entry): ...here.
37911         (hash_insert): Clarify restrictions on what can be inserted.
37912         (hash_get_next): Clarify when it is safe to remove an element
37913         during traversal.
37914         (check_tuning): Skip verification when tuning is known safe.
37915         (hash_initialize): Clarify restrictions on tuning.
37916
37917 2009-06-17  Jim Meyering  <jim@meyering.net>
37918         and Eric Blake  <ebb9@byu.net>
37919
37920         hash-tests: new module
37921         * modules/hash-tests: New file.
37922         * tests/test-hash.c: New file.
37923
37924 2009-06-17  Eric Blake  <ebb9@byu.net>
37925
37926         strstr-simple: document new module
37927         * MODULES.html.sh: Document new module.
37928
37929         strstr, strcasestr: replace on platforms with broken memchr
37930         * modules/strstr: Split into...
37931         * modules/strstr-simple: ...new module that does not care about
37932         performance, but does care about glibc bug.
37933         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
37934         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
37935         if platform memchr is broken, per Debian bug 521737.
37936         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
37937         memchr.
37938         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
37939         * doc/posix-functions/strstr.texi (strstr): Document the fix.
37940         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
37941         * modules/mountlist (Depends-on): Add strstr-simple.
37942         * modules/gen-uni-tables (Depends-on): Likewise.
37943         * modules/argz (Depends-on): Add strstr.
37944
37945 2009-06-17  Bruno Haible  <bruno@clisp.org>
37946
37947         * modules/posix_spawn-internal (Depends-on): Add errno.
37948
37949 2009-06-17  Bruno Haible  <bruno@clisp.org>
37950
37951         Define missing ESTALE on Interix 3.5.
37952         * lib/errno.in.h (ESTALE): Assign a value if missing.
37953         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
37954         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
37955         missing.
37956         * doc/posix-headers/errno.texi: Mention the Interix bug.
37957         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
37958
37959 2009-06-15  Eric Blake  <ebb9@byu.net>
37960
37961         memchr, memchr2: add valgrind exception
37962         * lib/memchr.valgrind: New file.
37963         * lib/memchr2.valgrind: New file.
37964         * modules/memchr (Files): Distribute valgrind file.
37965         * modules/memchr2 (Files): Likewise.
37966
37967         docs: memchr is no longer obsolete
37968         * MODULES.html.sh: Move memchr from obsolete to string.h section.
37969         * lib/string.in.h (memchr): Simplify logic.
37970
37971 2009-06-14  Jim Meyering  <meyering@redhat.com>
37972
37973         link-follow: fix the "checking..." message to not mention trailing slash
37974         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
37975         never considered trailing slashes.
37976
37977 2009-06-14  Bruno Haible  <bruno@clisp.org>
37978
37979         * m4/memchr.m4: Mention also the bug on IA-64.
37980         * doc/posix-functions/memchr.texi: Likewise.
37981
37982 2009-06-12  Eric Blake  <ebb9@byu.net>
37983
37984         memchr: detect broken x86_64 and alpha implementations
37985         * modules/memchr-tests (Depends-on): Move mmap detection...
37986         * modules/memchr (Depends-on): ...here.
37987         (configure.ac): Set indicator.
37988         * lib/string.in.h (memchr): Declare replacement.
37989         * modules/string (Makefile.am): Trigger replacement.
37990         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
37991         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
37992         bugs.
37993         * doc/posix-functions/memchr.texi (memchr): Document the bug.
37994         * modules/getpagesize (License): Relax license.
37995
37996 2009-06-11  Bruno Haible  <bruno@clisp.org>
37997
37998         * lib/idpriv.h: Add more references.
37999
38000 2009-06-08  Bruno Haible  <bruno@clisp.org>
38001
38002         Tests for module 'idpriv-droptemp'.
38003         * modules/idpriv-droptemp-tests: New file.
38004         * tests/test-idpriv-droptemp.sh: New file.
38005         * tests/test-idpriv-droptemp.su.sh: New file.
38006         * tests/test-idpriv-droptemp.c: New file.
38007
38008         New module 'idpriv-droptemp'.
38009         * lib/idpriv-droptemp.c: New file.
38010         * modules/idpriv-droptemp: New file.
38011
38012 2009-06-08  Bruno Haible  <bruno@clisp.org>
38013
38014         Tests for module 'idpriv-drop'.
38015         * modules/idpriv-drop-tests: New file.
38016         * tests/test-idpriv-drop.sh: New file.
38017         * tests/test-idpriv-drop.su.sh: New file.
38018         * tests/test-idpriv-drop.c: New file.
38019
38020         New module 'idpriv-drop'.
38021         * lib/idpriv.h: New file.
38022         * lib-idpriv-drop.c: New file.
38023         * m4/idpriv.m4: New file.
38024         * modules/idpriv-drop: New file.
38025
38026 2009-06-08  Bruno Haible  <bruno@clisp.org>
38027
38028         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
38029         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
38030         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
38031         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
38032         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
38033         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
38034         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
38035
38036 2009-06-08  Eric Blake  <ebb9@byu.net>
38037
38038         test-strstr: use memory fence, when possible
38039         * tests/test-strstr.c (main): Use memory fence, in order to be
38040         more likely to trigger Debian bug 521737.
38041         * modules/strstr-tests (Files): Pull in additional files.
38042
38043         memchr: no longer obsolete, for wider field testing
38044         * modules/memchr (Status, Notice): Delete, this module is no
38045         longer obsolete.
38046         * modules/vasnprintf (Depends-on): Add memchr.
38047
38048 2009-06-07  Jim Meyering  <meyering@redhat.com>
38049
38050         hash: declare some functions with the warn_unused_result attribute
38051         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
38052
38053 2009-06-07  Bruno Haible  <bruno@clisp.org>
38054
38055         * tests/test-alignof.c: Don't test int64_t if it does not exist.
38056         Reported by Eric Blake.
38057
38058 2009-06-06  Eric Blake  <ebb9@byu.net>
38059
38060         test-alignof: fix typo with long double
38061         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
38062         compiler error.
38063
38064 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
38065
38066         Escape non-texinfo { and }s.
38067         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
38068         markup error.
38069
38070 2009-06-04  Jim Meyering  <meyering@redhat.com>
38071
38072         gitlog-to-changelog: don't infloop on an empty commit log
38073         * build-aux/gitlog-to-changelog: Warn about an empty log message.
38074         Reported by Boris Petersen <transacid@centerim.org>.
38075
38076 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
38077
38078         version-etc: extend for packagers
38079         Add three new configure options, intended for packagers:
38080           --with-packager="packager name"
38081           --with-packager-version="packager-specific version"
38082           --with-packager-bug-reports="packager bug reporting"
38083         An example with coreutils:
38084           $ ./configure \
38085             --with-packager=Gentoo \
38086             --with-packager-bug-report=http://bugs.gentoo.org/ \
38087             --with-packager-version="patchset 1.6"
38088           $ ./src/ls --version | head -n2
38089           ls (GNU coreutils) 7.1-dirty
38090           Packaged by Gentoo (patchset 1.6)
38091         Note that the bug reporting info via --help doesn't show up because
38092         coreutils uses its own custom emit_bug_reporting_address() implementation
38093         in src/system.h.  If it didn't, it'd look like:
38094           $ ./src/ls --help | tail -n4
38095           Report bugs to <bug-coreutils@gnu.org>.
38096           Report Gentoo bugs to <http://bugs.gentoo.org/>.
38097           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
38098           General help using GNU software: <http://www.gnu.org/gethelp/>.
38099         * lib/version-etc.c: Print new information, if provided.
38100         * m4/version-etc.m4: New file.
38101         * modules/version-etc (Files): Add m4/version-etc.m4.
38102         (configure.ac): Add gl_VERSION_ETC.
38103
38104 2009-05-31  Bruno Haible  <bruno@clisp.org>
38105
38106         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
38107         and 'int64_t'.
38108         * modules/alignof-tests (Dependencies): Add stdint.
38109         Reported by Eric Blake.
38110
38111 2009-05-31  Bruno Haible  <bruno@clisp.org>
38112
38113         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
38114         restriction due to compiler bugs.
38115         Reported by Eric Blake.
38116
38117 2009-05-31  Simon Josefsson  <simon@josefsson.org>
38118             Bruno Haible  <bruno@clisp.org>
38119
38120         Fix test-alignof failure.
38121         * lib/alignof.h (alignof_slot): New macro.
38122         (alignof_type): New macro, with the same semantics as the previous
38123         'alignof'.
38124         (alignof): Alias to alignof_slot.
38125         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
38126         check that the results are usable as constant expressions.
38127
38128 2009-05-31  Bruno Haible  <bruno@clisp.org>
38129
38130         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
38131         * tests/test-memchr.c (main): Check that memchr does not read past the
38132         first occurrence of the byte.
38133         * tests/test-strstr.c (main): Update comment.
38134         Suggested by Eric Blake.
38135
38136 2009-05-30  Bruno Haible  <bruno@clisp.org>
38137
38138         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
38139         detail how to use dumpbin.
38140         Reported by David Byron <dbyron@dbyron.com>.
38141
38142 2009-06-02  Simon Josefsson  <simon@josefsson.org>
38143
38144         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
38145
38146 2009-06-02  Simon Josefsson  <simon@josefsson.org>
38147
38148         * m4/manywarnings.m4: Add GCC 4.4 warnings.
38149
38150 2009-05-28  Bruno Haible  <bruno@clisp.org>
38151
38152         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
38153         build-aux/ files.
38154
38155 2009-05-28  Simon Josefsson  <simon@josefsson.org>
38156
38157         * gnulib-tool (func_import): Transform license on build-aux/ files too.
38158
38159 2009-05-27  Simon Josefsson  <simon@josefsson.org>
38160
38161         * gnulib-tool (sed_transform_main_lib_file)
38162         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
38163         regexps.
38164
38165 2009-05-26  Simon Josefsson  <simon@josefsson.org>
38166
38167         * tests/test-strstr.c: Add another self-test.
38168         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
38169         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
38170
38171 2009-05-23  Bruno Haible  <bruno@clisp.org>
38172
38173         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
38174         change.
38175
38176 2009-05-21  Bruno Haible  <bruno@clisp.org>
38177
38178         Simplify use of mode_t varargs.
38179         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
38180         uses 'mode_t' or 'int'.
38181         * lib/openat.c (openat): Likewise.
38182         * lib/open-safer.c (open_safer): Likewise.
38183         * m4/mode_t.m4: New file.
38184         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
38185         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
38186         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
38187         * modules/open (Files): Add m4/mode_t.m4.
38188         * modules/openat (Files): Likewise.
38189         * modules/fcntl-safer (Files): Likewise.
38190         Suggested by Eric Blake.
38191
38192 2009-05-21  Pádraig Brady  <P@draigbrady.com>
38193
38194         * doc/glibc-functions/fallocate.texi: New file.
38195         * doc/gnulib.texi: Include it.
38196
38197 2009-05-21  Eric Blake  <ebb9@byu.net>
38198             Bruno Haible  <bruno@clisp.org>
38199
38200         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
38201         invocations.
38202         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
38203
38204 2009-05-21  Eric Blake  <ebb9@byu.net>
38205             Bruno Haible  <bruno@clisp.org>
38206
38207         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
38208         include_next. Fix of 2008-11-20 commit.
38209         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
38210         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
38211         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
38212         NEXT_MATH_H.
38213         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
38214         instead of NEXT_MATH_H.
38215
38216 2009-05-21  Bruno Haible  <bruno@clisp.org>
38217
38218         Avoid redefinition warnings for SIZE_MAX.
38219         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
38220         Reported by Simon Josefsson.
38221
38222 2009-05-21  Bruno Haible  <bruno@clisp.org>
38223
38224         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
38225         AC_CACHE_VAL.
38226
38227 2009-05-20  Bruno Haible  <bruno@clisp.org>
38228
38229         Make zeroptr.h work on mingw.
38230         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
38231         mprotect.
38232         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
38233         * modules/memchr2-tests (configure.ac): Likewise.
38234         * modules/memcmp-tests (configure.ac): Likewise.
38235         * modules/memmem-tests (configure.ac): Likewise.
38236         * modules/memrchr-tests (configure.ac): Likewise.
38237         Reported by Simon Josefsson.
38238
38239 2009-05-20  Simon Josefsson  <simon@josefsson.org>
38240
38241         * tests/test-glob.c: Include string.h for strcmp prototype.
38242
38243 2009-05-20  Simon Josefsson  <simon@josefsson.org>
38244
38245         * modules/getdelim (Depends-on): Add explicit stdint, although it
38246         was implicitly already pulled in via realloc-posix.
38247         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
38248
38249 2009-05-20  Simon Josefsson  <simon@josefsson.org>
38250
38251         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
38252         G. Christensen" <tgc@jupiterrise.com>.
38253         * m4/sys_socket_h.m4: Check for sa_family_t.
38254         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
38255         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
38256         * tests/test-sys_socket.c: Check that sa_family_t works.
38257
38258 2009-05-18  Eric Blake  <ebb9@byu.net>
38259
38260         maint.mk: allow gnulib_dir in VPATH build
38261         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
38262
38263 2009-05-15  Jim Meyering  <meyering@redhat.com>
38264
38265         maint.mk: Give gnulib_dir a default definition.
38266         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
38267         Thus, most packages no longer need to specify this variable in cfg.mk
38268
38269 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
38270
38271         rename.m4: fix typos that would make non-mingw cross-configure fail
38272         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
38273
38274 2009-05-13  Eric Blake  <ebb9@byu.net>
38275
38276         mmap-anon: avoid out-of-order autoconf expansion
38277         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
38278         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
38279         * modules/memchr-tests (Depends-on): Add extensions.
38280         * modules/memchr2-tests (Depends-on): Add extensions.
38281         * modules/memcmp-tests (Depends-on): Add extensions.
38282         * modules/memmem-tests (Depends-on): Add extensions.
38283         * modules/memrchr-tests (Depends-on): Add extensions.
38284
38285 2009-05-13  Bruno Haible  <bruno@clisp.org>
38286
38287         Make some tests ISO C 99 compliant.
38288         * tests/zerosize-ptr.h: New file.
38289         * tests/test-memchr.c: Include zerosize-ptr.h.
38290         (main): Use a zero-size object pointer instead of NULL.
38291         * tests/test-memchr2.c: Include zerosize-ptr.h.
38292         (main): Use a zero-size object pointer instead of NULL.
38293         * tests/test-memcmp.c: Include zerosize-ptr.h.
38294         (main): Use a zero-size object pointer instead of NULL.
38295         * tests/test-memmem.c: Include zerosize-ptr.h.
38296         (main): Use a zero-size object pointer instead of NULL.
38297         * tests/test-memrchr.c: Include zerosize-ptr.h.
38298         (main): Use a zero-size object pointer instead of NULL.
38299         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
38300         m4/mmap-anon.m4.
38301         (Depends-on): Add getpagesize.
38302         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
38303         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
38304         m4/mmap-anon.m4.
38305         (Depends-on): Add getpagesize.
38306         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
38307         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
38308         m4/mmap-anon.m4.
38309         (Depends-on): Add getpagesize.
38310         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
38311         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
38312         m4/mmap-anon.m4.
38313         (Depends-on): Add getpagesize.
38314         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
38315         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
38316         m4/mmap-anon.m4.
38317         (Depends-on): Add getpagesize.
38318         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
38319
38320 2009-05-12  Bruno Haible  <bruno@clisp.org>
38321
38322         Tests for module 'alignof'.
38323         * modules/alignof-tests: New file.
38324         * tests/test-alignof.c: New file.
38325
38326 2009-05-12  Bruno Haible  <bruno@clisp.org>
38327
38328         Fix alignof macro.
38329         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
38330         vendor compilers that are always correct.
38331
38332 2009-05-12  Bruno Haible  <bruno@clisp.org>
38333
38334         Make the MAP_ANONYMOUS detection work on HP-UX 11.
38335         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
38336         not whether its fully works.
38337
38338 2009-05-12  Bruno Haible  <bruno@clisp.org>
38339
38340         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
38341
38342 2009-05-12  Jim Meyering  <meyering@redhat.com>
38343
38344         * top/maint.mk: Adjust backslash alignment.
38345
38346 2009-05-11  Simon Josefsson  <simon@josefsson.org>
38347
38348         * top/maint.mk: Make $(srcdir)/build-aux configurable.
38349
38350 2009-05-11  Eric Blake  <ebb9@byu.net>
38351
38352         argp: avoid undefined behavior
38353         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
38354         macros.
38355
38356 2009-05-08  Simon Josefsson  <simon@josefsson.org>
38357
38358         * tests/test-vc-list-files-git.sh: Do git config of user.email and
38359         user.name to prevent git commit from complaining.
38360
38361 2009-05-10  Bruno Haible  <bruno@clisp.org>
38362
38363         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
38364         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
38365         it rewrites every file name only once.
38366         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
38367
38368 2009-05-08  Bruno Haible  <bruno@clisp.org>
38369
38370         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
38371         instead of 'max'.
38372
38373 2009-05-08  Simon Josefsson  <simon@josefsson.org>
38374
38375         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
38376         sockaddr_storage test.
38377
38378 2009-05-07  Simon Josefsson  <simon@josefsson.org>
38379
38380         * modules/sys_socket (Makefile.am): Substitute
38381         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
38382         * m4/sys_socket_h.m4: Check for sockaddr_storage.
38383         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
38384         * tests/test-sys_socket.c: Check sockaddr_storage.
38385
38386 2009-05-08  Bruno Haible  <bruno@clisp.org>
38387
38388         New module 'alignof'.
38389         * lib/alignof.h: New file.
38390         * modules/alignof: New file.
38391
38392 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
38393             Bruno Haible  <bruno@clisp.org>
38394
38395         Fix test-file-has-acl on FreeBSD.
38396         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
38397         mask is implicitly added.
38398         * tests/test-file-has-acl.c: Include <signal.h>.
38399         (main): Terminate the test after 5 seconds.
38400         * modules/acl-tests (configure.ac): Check for alarm function.
38401
38402 2009-05-04  Bruno Haible  <bruno@clisp.org>
38403
38404         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
38405         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
38406         * modules/errno (configure.ac): Drop AC_REQUIRE.
38407         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
38408         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
38409
38410 2009-05-04  Simon Josefsson  <simon@josefsson.org>
38411
38412         * modules/glob-tests: New module.
38413         * tests/test-glob.c: Add.
38414
38415 2009-05-04  Simon Josefsson  <simon@josefsson.org>
38416
38417         * modules/fnmatch-tests: New module.
38418         * tests/test-fnmatch.c: Add.
38419
38420 2009-05-04  Eric Blake  <ebb9@byu.net>
38421
38422         maint: make the new no-submodule-changes rule VPATH-safe
38423         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
38424
38425 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
38426             Bruno Haible  <bruno@clisp.org>
38427
38428         acl: Fix infinite loop on FreeBSD.
38429         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
38430         of return value from acl_get_entry.
38431         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
38432         Likewise.
38433
38434 2009-05-03  Bruno Haible  <bruno@clisp.org>
38435
38436         * lib/acl-internal.h (acl_entries): Clarify return value.
38437         * lib/acl_entries.c (acl_entries): Likewise.
38438
38439 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
38440
38441         Bug fix in acl module.
38442         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
38443
38444 2009-05-03  Bruno Haible  <bruno@clisp.org>
38445
38446         Create gperf-generated file in the source dir, not in the build dir.
38447         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
38448         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
38449         * modules/unicase/locale-language (unicase/locale-languages.h):
38450         Likewise.
38451         * modules/unicase/special-casing (unicase/special-casing-table.h):
38452         Likewise.
38453         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
38454         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
38455         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
38456         Reported by Ralf Wildenhues.
38457
38458 2009-05-03  Bruno Haible  <bruno@clisp.org>
38459
38460         * modules/fnmatch (Description, configure.ac): Taken from
38461         fnmatch-posix.
38462         * modules/fnmatch-posix: Turn into a symbolic reference to the
38463         'fnmatch' module, and deprecate.
38464         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
38465
38466 2009-05-03  Bruno Haible  <bruno@clisp.org>
38467
38468         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
38469         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
38470         Reported by Ralf Wildenhues.
38471
38472 2009-05-04  Simon Josefsson  <simon@josefsson.org>
38473
38474         * m4/fnmatch.m4: Fix fnmatch re-define.
38475
38476 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
38477
38478         priv-set: new module and tests; adapt write-any-file
38479         * lib/priv-set.c: New file.
38480         * lib/priv-set.h: New file.
38481         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
38482         * lib/write-any-file.c: Simplify by using priv-set module.
38483         * m4/priv-set.m4: New file.
38484         * modules/priv-set: New file.
38485         * modules/unlinkdir: Add dependency on priv-set module.
38486         * modules/write-any-file: Likewise.
38487
38488         Tests for module 'priv-set'.
38489         * modules/priv-set-tests: New file.
38490         * tests/test-priv-set.c: New file.
38491
38492 2009-05-03  Jim Meyering  <meyering@redhat.com>
38493             Bruno Haible  <bruno@clisp.org>
38494
38495         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
38496         use the converted UTF-8 variant of the name instead.
38497
38498 2009-05-03  Jim Meyering  <meyering@redhat.com>
38499
38500         tests: tighten some getdate tests
38501         * tests/test-getdate.c (main): Tighten tests: require equality,
38502         not just greater than.  Set TZ envvar to UTC0.
38503
38504 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
38505
38506         getdate: correctly interpret "next monday" when run on a Monday
38507         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
38508         that e.g., "next tues" (when run on a tuesday) results in a date
38509         that is one week in the future, and not today's date.
38510         I.e., add a week when the wday is the same as the current one.
38511         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
38512         and earlier by Martin Bernreuther and Jan Minář.
38513         * tests/test-getdate.c (main): Check that "next DAY" is always in
38514         the future and that "last DAY" is always in the past.
38515
38516 2009-05-02  Jim Meyering  <meyering@redhat.com>
38517
38518         build: ensure that a release build fails when a submodule is unclean
38519         * top/maint.mk (no-submodule-changes): New rule.
38520         (alpha beta major): Depend on it.
38521
38522 2009-05-02  Bruno Haible  <bruno@clisp.org>
38523
38524         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
38525         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
38526         shell variable gl_fnmatch_required to detect which variant is
38527         requested.
38528         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
38529         gl_FUNC_FNMATCH_POSIX.
38530         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
38531         exclude fnmatch-posix.
38532
38533 2009-05-02  Bruno Haible  <bruno@clisp.org>
38534
38535         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
38536         * modules/mbsrtowcs (License): Change to LGPLv2+.
38537         * modules/strnlen1 (License): Likewise.
38538         Reported by Simon Josefsson.
38539
38540 2009-05-02  Bruno Haible  <bruno@clisp.org>
38541
38542         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
38543         "cross".
38544         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
38545         gnulib-tool was called with option --source-base=lib.
38546
38547 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38548
38549         Use automake *-local hooks without commands, for extensibility.
38550         * modules/localcharset (Makefile.am): Rename install-exec-local
38551         rule to install-exec-localcharset, and make it a prerequisite of
38552         install-exec-local.  Likewise, rename the uninstall-local rule to
38553         uninstall-localcharset, and make it a prerequisite of the former.
38554
38555 2009-05-01  Bruno Haible  <bruno@clisp.org>
38556
38557         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
38558         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
38559         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
38560         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
38561         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
38562         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
38563         m4/locale-zh.m4, m4/codeset.m4.
38564
38565         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
38566         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
38567         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
38568         m4/locale-zh.m4.
38569
38570         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
38571         REPLACE_WCRTOMB if mbstate_t must be replaced.
38572         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
38573         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
38574
38575 2009-05-01  Bruno Haible  <bruno@clisp.org>
38576
38577         Avoid compiler warnings when redefining macros defined by <libintl.h>.
38578         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
38579         dngettext, dcngettext, textdomain, bindtextdomain,
38580         bind_textdomain_codeset): Undefine before redefining.
38581
38582 2009-04-30  Bruno Haible  <bruno@clisp.org>
38583
38584         Fix bug introduced on 2009-04-25.
38585         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
38586         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
38587         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
38588         is defined.
38589         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
38590         is defined.
38591         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
38592         is defined.
38593         Reported by Elbert_Pol <elbert.pol@gmail.com>.
38594
38595 2009-04-28  Bruno Haible  <bruno@clisp.org>
38596
38597         Comment tweaks.
38598         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
38599         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
38600         * lib/unicase.h (u*_casexfrm): Likewise.
38601         Reported by Paolo Bonzini.
38602
38603 2009-04-28  Bruno Haible  <bruno@clisp.org>
38604
38605         Fix a compilation error.
38606         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
38607         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
38608         Reported by Jim Meyering.
38609
38610 2009-04-27  Bruno Haible  <bruno@clisp.org>
38611
38612         New module 'libunistring'.
38613         * modules/libunistring: New file.
38614         * m4/libunistring.m4: New file.
38615         * MODULES.html.sh (Unicode string functions): Add it.
38616
38617 2009-04-27  Eric Blake  <ebb9@byu.net>
38618
38619         maint.mk: allow package-specific header to provide <config.h>
38620         * top/maint.mk (sc_require_config_h): New variable.
38621         (sc_require_config_h, sc_require_config_h_first): Use it.
38622
38623 2009-04-27  Simon Josefsson  <simon@josefsson.org>
38624
38625         * top/maint.mk (sc_avoid_if_before_free): Except
38626         useless-if-before-free script.
38627
38628 2009-04-27  Eric Blake  <ebb9@byu.net>
38629
38630         maintainer-makefile: depend on all required helper scripts
38631         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
38632         useless-if-before-free.
38633         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
38634         version, rather than assuming gnulib checkout is available.
38635         Reported by Simen Josefsson.
38636
38637 2009-04-26  Bruno Haible  <bruno@clisp.org>
38638
38639         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
38640         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
38641         "../" or "..".
38642
38643 2009-04-26  Bruno Haible  <bruno@clisp.org>
38644
38645         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
38646         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
38647         AC_LIB_HAVE_LINKFLAGS.
38648
38649 2009-04-26  Bruno Haible  <bruno@clisp.org>
38650
38651         Simplify calling convention of u*_conv_from_encoding.
38652         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
38653         u32_conv_from_encoding): Expect a resultbuf argument and return the
38654         result directly as a pointer.
38655         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
38656         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
38657         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
38658         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
38659         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
38660         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
38661         Update.
38662         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
38663         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
38664         * lib/vasnprintf.c (VASNPRINTF): Update.
38665         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
38666         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
38667         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
38668         * NEWS: Mention the change.
38669
38670 2009-04-26  Bruno Haible  <bruno@clisp.org>
38671
38672         Simplify calling convention of u*_conv_to_encoding.
38673         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
38674         u32_conv_to_encoding): Expect a resultbuf argument and return the
38675         result directly as a pointer.
38676         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
38677         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
38678         freeing scaled_offsets if mem_iconveha failed.
38679         * lib/unicase/u-casexfrm.h (FUNC): Update.
38680         * lib/uninorm/u-normxfrm.h (FUNC): Update.
38681         * lib/vasnprintf.c (VASNPRINTF): Update.
38682         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
38683         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
38684         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
38685         * NEWS: Mention the change.
38686
38687 2009-04-26  Bruno Haible  <bruno@clisp.org>
38688
38689         Avoid test failures on AIX and OSF/1.
38690         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
38691         malloc(0).
38692         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
38693         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
38694         Likewise.
38695         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
38696         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
38697         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
38698         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
38699         * doc/posix-functions/malloc.texi: Document the portability problem
38700         related to malloc(0).
38701
38702 2009-04-26  Bruno Haible  <bruno@clisp.org>
38703
38704         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
38705         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
38706         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
38707
38708 2009-04-25  Bruno Haible  <bruno@clisp.org>
38709
38710         Avoid link error when creating a namespace clean library.
38711         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
38712         as macro with arguments if already defined as an alias.
38713         * lib/signbitf.c (gl_signbitf): Don't undefine.
38714         * lib/signbitd.c (gl_signbitd): Don't undefine.
38715         * lib/signbitl.c (gl_signbitl): Don't undefine.
38716
38717 2009-04-25  Jim Meyering  <meyering@redhat.com>
38718
38719         vc-list-files: fix another quoting bug
38720         * build-aux/vc-list-files: Avoid sed backslash expansion
38721         of pathological directory names.
38722
38723 2009-04-25  Eric Blake  <ebb9@byu.net>
38724
38725         vc-list-files: fix shell quoting error
38726         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
38727         timestamp.
38728
38729 2009-04-25  Jim Meyering  <meyering@redhat.com>
38730
38731         vc-list-files: restore lost functionality with subdir argument
38732         * build-aux/vc-list-files: When given a non-"." sub-directory
38733         argument, substitute the $dir/ prefix back onto each resulting name.
38734         Otherwise, coreutils' root_tests check would fail.
38735
38736 2009-04-24  Eric Blake  <ebb9@byu.net>
38737
38738         vc-list-files: ignore git symlinks
38739         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
38740         than ls-files, to ignore git symlinks.
38741
38742         maint.mk: import improvements from m4
38743         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
38744         (move_if_change): Delete unused macro.
38745         (news-date-check, vc-diff-check): Support VPATH builds.
38746         (announcement): Likewise.  Split --bootstrap-tools list...
38747         (boostrap-tools): ...into separate list, which can be overridden
38748         in cfg.mk.
38749         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
38750         requiring dependency on useless-if-before-free module.
38751         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
38752         Support VPATH builds.
38753
38754 2009-04-24  Jim Meyering  <meyering@redhat.com>
38755
38756         maint.mk: remove coreutils-specific rules and variables
38757         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
38758         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
38759         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
38760
38761         maint.mk: remove obsolete rule
38762         * top/maint.mk (rel-check): Remove rule.
38763         (WGET, WGETFLAGS): Remove now-unused variables.
38764
38765 2009-04-24  Simon Josefsson  <simon@josefsson.org>
38766
38767         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
38768         consistency.
38769
38770         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
38771         '$(PATH_SEPARATOR)' instead of ':'.
38772
38773 2009-04-24  Simon Josefsson  <simon@josefsson.org>
38774
38775         * lib/getopt1.c (main): Use 'const' for static array.
38776
38777 2009-04-24  Simon Josefsson  <simon@josefsson.org>
38778
38779         * top/maint.mk: Sync with coreutils.
38780         * NEWS: Explain incompatibilities.
38781
38782 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
38783             Bruno Haible  <bruno@clisp.org>
38784
38785         Fix cross-compilation results.
38786         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
38787         statement, as third argument of AC_TRY_RUN.
38788         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
38789         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
38790         Likewise.
38791         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
38792         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
38793         Likewise.
38794         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
38795         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
38796         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
38797
38798 2009-04-20  Bruno Haible  <bruno@clisp.org>
38799
38800         Avoid test failure on mingw.
38801         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
38802
38803 2009-04-20  Bruno Haible  <bruno@clisp.org>
38804
38805         Avoid compilation error on mingw.
38806         * modules/localename-tests (Depends-on): Add locale.
38807
38808 2009-04-19  Bruno Haible  <bruno@clisp.org>
38809
38810         Support for building a shared library on Windows platforms.
38811         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
38812         (main): Test the presence of UNINORM_NFC here.
38813         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
38814         (main): Test the presence of UNINORM_NFD here.
38815         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
38816         (main): Test the presence of UNINORM_NFKC here.
38817         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
38818         (main): Test the presence of UNINORM_NFKD here.
38819
38820 2009-04-19  Bruno Haible  <bruno@clisp.org>
38821
38822         Avoid a compiler warning.
38823         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
38824         Change type of variable 'sequence'.
38825
38826 2009-04-19  Bruno Haible  <bruno@clisp.org>
38827
38828         * modules/configmake (Makefile.am): When the contents of configmake.h
38829         does not change, arrange to preserve its modification time.
38830
38831 2009-04-17  Simon Josefsson  <simon@josefsson.org>
38832
38833         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
38834         gettext domain.
38835
38836 2009-04-16  Jim Meyering  <meyering@redhat.com>
38837
38838         useless-if-before-free: improve conversion code
38839         * build-aux/useless-if-before-free: Adjust code-in-comment to match
38840         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
38841
38842 2009-04-14  Bruno Haible  <bruno@clisp.org>
38843
38844         * modules/fcntl (Depends-on): Add extensions.
38845         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
38846
38847 2009-04-12  Ben Pfaff  <blp@gnu.org>
38848
38849         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
38850         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
38851
38852 2009-03-20  Ben Pfaff  <blp@gnu.org>
38853
38854         Make rename replace existing destinations on Windows.
38855         * m4/rename.m4: Add test for Mingw.
38856         * lib/rename.c: Add rename replacement that uses MoveFileEx with
38857         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
38858         * doc/posix-functions/rename.texi: Document.
38859
38860 2009-04-10  Bruno Haible  <bruno@clisp.org>
38861
38862         New include file "iconveh.h".
38863         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
38864         * lib/striconveh.h: Include it.
38865         (enum iconv_ilseq_handler): Remove definition.
38866         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
38867         striconveh.h.
38868         * lib/striconveha.c: Include striconveh.h.
38869         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
38870         * modules/striconveh (Files): Add lib/iconveh.h.
38871         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
38872         lib/striconveh.h.
38873
38874 2009-04-10  Bruno Haible  <bruno@clisp.org>
38875
38876         * lib/uniconv.h: Update comment.
38877
38878 2009-04-10  Bruno Haible  <bruno@clisp.org>
38879
38880         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
38881         always.
38882         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
38883         * lib/unistr/u16-mbtouc-aux.c: Likewise.
38884         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
38885         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
38886         "unistring-notinline.h", so that the function gets defined always.
38887         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
38888         * lib/unistr/u8-uctomb.c: Likewise.
38889         * lib/unistr/u16-mbtouc.c: Likewise.
38890         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
38891         * lib/unistr/u16-uctomb.c: Likewise.
38892         * lib/unistr/u32-mbtouc.c: Likewise.
38893         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
38894         * lib/unistr/u32-uctomb.c: Likewise.
38895
38896 2009-04-10  Bruno Haible  <bruno@clisp.org>
38897
38898         Mark 'utime' obsolete.
38899         * modules/utime (Status, Notice): New sections.
38900         Suggested by Jim Meyering.
38901
38902         Fix cross-compile guess for utime test.
38903         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
38904         autoconf.
38905         * doc/posix-functions/utime.texi: Give more precisions.
38906         Reported by Jan <ipif@ymail.com>.
38907
38908 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
38909
38910         filevercmp: correct today's change
38911         * lib/filevercmp.c: Also handle coreutils' test inputs.
38912         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
38913
38914         Fix regression in 'filevercmp' module. Thanks Sven Joachim
38915         for reporting it.
38916         * lib/filevercmp.c: Special handle for "", "." and "..".
38917         * tests/test-filevercmp.c: Enlarge the set suite.
38918
38919 2009-04-07  Jim Meyering  <meyering@redhat.com>
38920
38921         useless-if-before-free: show how to remove braced useless free, too
38922         * build-aux/useless-if-before-free: still only in a comment, though.
38923
38924 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
38925
38926         maint.mk: import changes to syntax-check macros from coreutils
38927         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
38928         Use them in the relevant macros.
38929
38930 2009-04-06  Bruno Haible  <bruno@clisp.org>
38931
38932         Fix unportable use of bit-fields.
38933         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
38934         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
38935         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
38936
38937 2009-04-06  Bruno Haible  <bruno@clisp.org>
38938
38939         Avoid test failures on AIX and OSF/1.
38940         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
38941         that malloc(0) = NULL.
38942         * tests/unicase/test-u8-tolower.c (check): Likewise.
38943         * tests/unicase/test-u8-totitle.c (check): Likewise.
38944         * tests/unicase/test-u8-toupper.c (check): Likewise.
38945         * tests/unicase/test-u16-casefold.c (check): Likewise.
38946         * tests/unicase/test-u16-tolower.c (check): Likewise.
38947         * tests/unicase/test-u16-totitle.c (check): Likewise.
38948         * tests/unicase/test-u16-toupper.c (check): Likewise.
38949         * tests/unicase/test-u32-casefold.c (check): Likewise.
38950         * tests/unicase/test-u32-tolower.c (check): Likewise.
38951         * tests/unicase/test-u32-totitle.c (check): Likewise.
38952         * tests/unicase/test-u32-toupper.c (check): Likewise.
38953         * tests/uninorm/test-u8-nfc.c (check): Likewise.
38954         * tests/uninorm/test-u8-nfd.c (check): Likewise.
38955         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
38956         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
38957         * tests/uninorm/test-u16-nfc.c (check): Likewise.
38958         * tests/uninorm/test-u16-nfd.c (check): Likewise.
38959         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
38960         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
38961         * tests/uninorm/test-u32-nfc.c (check): Likewise.
38962         * tests/uninorm/test-u32-nfd.c (check): Likewise.
38963         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
38964         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
38965
38966 2009-04-05  Bruno Haible  <bruno@clisp.org>
38967
38968         Work around an autoconf limitation.
38969         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
38970         comment line if it would be longer than 3 KB.
38971
38972 2009-04-05  Bruno Haible  <bruno@clisp.org>
38973
38974         Avoid test failure with libiconv-1.13.
38975         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
38976         of the expected test results.
38977
38978 2009-04-05  Bruno Haible  <bruno@clisp.org>
38979
38980         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
38981         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
38982         that it should be installed.
38983
38984 2009-04-05  Bruno Haible  <bruno@clisp.org>
38985
38986         * gnulib-tool: New option --copy-file.
38987         (func_usage): Document it.
38988         (func_dest_tmpfilename): Moved out of func_import.
38989         (func_add_file, func_update_file): New functions, extracted from
38990         func_import.
38991         (func_import): Update.
38992
38993 2009-04-05  Karl Berry  <karl@gnu.org>
38994
38995         * README: prominently mention gnulib-tool.
38996         Rearrange sections so getting the code is near the top.
38997
38998 2009-04-05  Bruno Haible  <bruno@clisp.org>
38999
39000         * lib/unicase.h: Mention u*_cmp2.
39001         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
39002         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
39003         * lib/unicase/ulc-casecmp.c: Likewise.
39004         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
39005         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
39006         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
39007         unistr/u8-cmp.
39008         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
39009         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
39010         unistr/u16-cmp.
39011         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
39012         unistr/u32-cmp.
39013
39014         * lib/uninorm.h: Mention u*_cmp2.
39015         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
39016         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
39017         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
39018         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
39019         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
39020         unistr/u8-cmp.
39021         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
39022         unistr/u16-cmp.
39023         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
39024         unistr/u32-cmp.
39025
39026         New module 'unistr/u32-cmp2'.
39027         * lib/unistr/u32-cmp2.c: New file.
39028         * modules/unistr/u32-cmp2: New file.
39029
39030         New module 'unistr/u16-cmp2'.
39031         * lib/unistr/u16-cmp2.c: New file.
39032         * modules/unistr/u16-cmp2: New file.
39033
39034         New module 'unistr/u8-cmp2'.
39035         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
39036         * lib/unistr/u8-cmp2.c: New file.
39037         * lib/unistr/u-cmp2.h: New file.
39038         * modules/unistr/u8-cmp2: New file.
39039
39040 2009-04-05  Bruno Haible  <bruno@clisp.org>
39041
39042         * lib/unictype.h (uc_property_is_valid): New macro.
39043         * tests/unictype/test-pr_byname.c (main): Use it.
39044
39045         * lib/unistr.h: Doc fixes.
39046         * lib/uniconv.h: Doc fixes.
39047         * lib/unictype.h: Doc fixes.
39048
39049 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
39050
39051         Port coreutils 7.2 to Solaris 8.
39052
39053         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
39054         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
39055         for Solaris 8.  This is a bit of a hack, as it means it's the
39056         caller's responsibility to add -lnsl if needed, but most likely it
39057         won't be needed since only getaddrinfo uses this and getaddrinfo
39058         isn't needed on Solaris 8.
39059
39060         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
39061         problem to Solaris 8 encountered with coreutils 7.2, which
39062         resulted in a message "fnmatch.c:292: warning: passing argument 4
39063         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
39064         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
39065
39066 2009-04-03  Simon Josefsson  <simon@josefsson.org>
39067
39068         * m4/ld-version-script.m4: Add FIXME comment.
39069
39070 2009-04-02  Simon Josefsson  <simon@josefsson.org>
39071
39072         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
39073         SOVERSION variable.
39074
39075 2009-04-02  Bruno Haible  <bruno@clisp.org>
39076
39077         * Makefile (info, html, dvi, pdf): Combine the rules.
39078         Suggested by Jim Meyering.
39079
39080 2009-04-01  Bruno Haible  <bruno@clisp.org>
39081
39082         * Makefile (info, html, dvi, pdf): New targets.
39083         Reported by Reuben Thomas <rrt@sc3d.org>.
39084
39085 2009-04-01  Bruno Haible  <bruno@clisp.org>
39086
39087         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
39088         can be put into PATH.
39089         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
39090
39091 2009-04-01  Bruno Haible  <bruno@clisp.org>
39092
39093         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
39094
39095 2009-04-01  Bruno Haible  <bruno@clisp.org>
39096
39097         Rename module 'visibility'.
39098         * modules/lib-symbol-visibility: Renamed from modules/visibility.
39099         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
39100         * doc/gnulib.texi: Update.
39101         * MODULES.html.sh (Misc): Update.
39102         * NEWS: Mention the change.
39103
39104 2009-04-01  Simon Josefsson  <simon@josefsson.org>
39105
39106         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
39107         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
39108         Eric Blake <ebb9@byu.net> for review.
39109         * MODULES.html.sh: Add lib-msvc-compat.
39110         * doc/gnulib.texi: Link to new section.
39111         * m4/ld-output-def.m4: New file.
39112         * doc/ld-output-def.texi: New file.
39113
39114 2009-04-01  Simon Josefsson  <simon@josefsson.org>
39115
39116         Rename ld-version-script to lib-symbol-versions.  Suggested by
39117         Bruno Haible <bruno@clisp.org>.
39118         * modules/ld-version-script: Renamed to lib-symbol-versions.
39119         * doc/ld-version-script.texi: Fix module name.
39120         * MODULES.html.sh: Add lib-symbol-versions.
39121
39122 2009-03-31  Simon Josefsson  <simon@josefsson.org>
39123
39124         * modules/u64-tests: New file.
39125         * tests/test-u64.c: New file.
39126
39127 2009-03-04  Simon Josefsson  <simon@josefsson.org>
39128
39129         * MODULES.html.sh: Mention u64.
39130         * modules/u64: New module.
39131         * modules/crypto/sha512: Depend on u64 module instead of providing
39132         u64.h.
39133
39134 2009-03-27  Eric Blake  <ebb9@byu.net>
39135
39136         test-strerror: make debugging EAI_SYSTEM easier
39137         * modules/getaddrinfo-tests (Depends-on): Add strerror.
39138         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
39139         failure was EAI_SYSTEM.
39140
39141 2009-03-25  Bruno Haible  <bruno@clisp.org>
39142
39143         Fix a problem with --enable-relocatable on Solaris 7.
39144         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
39145         since 2008-02-24.
39146
39147 2009-03-25  Eric Blake  <ebb9@byu.net>
39148
39149         test-sockets: avoid gcc warning
39150         * tests/test-sockets.c (main): Silence compiler warning.
39151
39152 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
39153
39154         New modules nproc, pthread, contributed by Glen Lenker.
39155
39156         * MODULES.html.sh: Add pthread, nproc.
39157         * lib/nproc.c: New file.
39158         * lib/nproc.h: New file.
39159         * lib/pthread.in.h: New file.
39160         * m4/pthread.m4: New file.
39161         * modules/nproc: New file.
39162         * modules/pthread: New file.
39163
39164 2009-03-24  Simon Josefsson  <simon@josefsson.org>
39165
39166         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
39167         New variable.
39168
39169 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
39170
39171         filevercmp: handle simple~ and numbered.~3~ backup suffixes
39172         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
39173         * tests/test-filevercmp.c: Add tests for backup suffixes.
39174
39175 2009-03-24  Simon Josefsson  <simon@josefsson.org>
39176
39177         * modules/stdlib (Depends-on): Add stdint, needed when defining
39178         struct random_data on, for example, HP-UX 10.20.  Reported by
39179         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
39180
39181 2009-03-24  Simon Josefsson  <simon@josefsson.org>
39182
39183         * lib/readline.c (readline): Call fflush on stdout after printing
39184         prompt.
39185
39186 2009-03-20  Bruno Haible  <bruno@clisp.org>
39187
39188         Remove dependency from 'close' module to -lws2_32 on native Windows.
39189         * lib/close-hook.h: New file.
39190         * lib/close-hook.c: New file.
39191         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
39192         w32sock.h.
39193         (_gl_close_fd_maybe_socket): Remove function.
39194         (rpl_close): Invoke execute_all_close_hooks instead of
39195         _gl_close_fd_maybe_socket.
39196         * lib/sockets.c: Include close-hook.h, w32sock.h.
39197         (close_fd_maybe_socket): New function, essentially from lib/close.c.
39198         (close_sockets_hook): New variable.
39199         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
39200         (gl_sockets_cleanup): Unregister it.
39201         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
39202         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
39203         * modules/close-hook: New file.
39204         * modules/close (Files): Remove lib/w32sock.h.
39205         (Depends-on): Add close-hook.
39206         (Link): Remove section.
39207         * modules/sockets (Files): Add lib/w32sock.h.
39208         (Depends-on): Add close-hook.
39209         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
39210         invocation.
39211         * NEWS: Mention that LIB_CLOSE is gone.
39212
39213 2009-03-23  Eric Blake  <ebb9@byu.net>
39214
39215         signal-tests: test previous patch
39216         * tests/test-signal.c: New file.
39217         * modules/signal-tests: Likewise.
39218
39219         signal.h: always support 'volatile sig_atomic_t'
39220         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
39221         (gl_SIGNAL_H_DEFAULTS): Add a default.
39222         * modules/signal (Makefile.am): Substitute if needed.
39223         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
39224         users can blindly add volatile.
39225         * doc/posix-headers/signal.texi (signal.h): Document it.
39226         Reported by Matthew Woehlke.
39227
39228 2009-03-23  Jim Meyering  <meyering@redhat.com>
39229
39230         pathmax: PATH_MAX: use pathconf only when available
39231         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
39232         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
39233         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
39234         This avoids a link failure in a PSP cross-compilation environment
39235         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
39236
39237         * lib/vasnprintf.c (divide): Fix typo in comment.
39238
39239 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39240
39241         * gnulib-tool (func_filter_filelist): Fix comment.
39242
39243 2009-03-20  Bruno Haible  <bruno@clisp.org>
39244
39245         Make sockets.h self-contained.
39246         * lib/sockets.c: Include sockets.h first.
39247         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
39248
39249 2009-03-19  Eric Blake  <ebb9@byu.net>
39250
39251         doc: mention more functions added in cygwin 1.7.0
39252         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
39253         addition.
39254         * doc/posix-functions/log2f.texi: Likewise.
39255
39256 2009-03-19  Jim Meyering  <meyering@redhat.com>
39257
39258         fsusage: avoid syntax error due to statement-before-declaration
39259         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
39260         after all declarations.  Reported by Matthew Woehlke in
39261         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
39262
39263 2009-03-18  Eric Blake  <ebb9@byu.net>
39264
39265         build-aux/compile: sync from automake
39266         * build-aux/compile: New file, from automake.
39267         * config/srclist.txt: Mention build-aux/compile.
39268
39269 2009-03-17  Bruno Haible  <bruno@clisp.org>
39270
39271         * lib/git-merge-changelog.c: Fix typo in comment.
39272         Reported by Reuben Thomas <rrt@sc3d.org>.
39273
39274 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
39275
39276         * m4/regex.m4: update and improve help for
39277         --without-included-regex.
39278
39279 2009-03-17  Simon Josefsson  <simon@josefsson.org>
39280
39281         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
39282         failure on missing include files.
39283
39284 2009-03-17  Eric Blake  <ebb9@byu.net>
39285
39286         doc: mention more functions added in cygwin 1.7.0
39287         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
39288         addition.
39289         * doc/posix-functions/fwscanf.texi: Likewise.
39290         * doc/posix-functions/swprintf.texi: Likewise.
39291         * doc/posix-functions/swscanf.texi: Likewise.
39292         * doc/posix-functions/vfwprintf.texi: Likewise.
39293         * doc/posix-functions/vfwscanf.texi: Likewise.
39294         * doc/posix-functions/vswprintf.texi: Likewise.
39295         * doc/posix-functions/vswscanf.texi: Likewise.
39296         * doc/posix-functions/vwprintf.texi: Likewise.
39297         * doc/posix-functions/vwscanf.texi: Likewise.
39298         * doc/posix-functions/wcscasecmp.texi: Likewise.
39299         * doc/posix-functions/wcsdup.texi: Likewise.
39300         * doc/posix-functions/wcsftime.texi: Likewise.
39301         * doc/posix-functions/wcsncasecmp.texi: Likewise.
39302         * doc/posix-functions/wprintf.texi: Likewise.
39303         * doc/posix-functions/wscanf.texi: Likewise.
39304         * doc/glibc-functions/gethostbyname2.texi: Likewise.
39305
39306 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39307
39308         maint.mk: really add $(AM_MAKEFLAGS)
39309         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
39310         was inadvertently omitted in the last commit.
39311         Spotted by Bruno Haible.
39312
39313         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
39314         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
39315         $(AM_MAKEFLAGS)' rather than plain `make'.
39316
39317         gnulib-tool: execute $MAKE not make
39318         * gnulib-tool: Default $MAKE to 'make'.
39319         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
39320         than make.  Initialize $MAKE in the do-autobuild script.
39321
39322         gnulib-tool: use $MAKE not make in generated files
39323         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
39324         make, in generated files.  Initialize $MAKE in the do-autobuild
39325         script.
39326
39327         * top/GNUmakefile (_have-git-version-gen): Fix typo.
39328
39329         GNUmakefile: disable parallelism only for multiple, recursive targets
39330         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
39331         additions in the Makefile.
39332         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
39333         by Automake.
39334         (.NOTPARALLEL): Only disable parallel builds if multiple targets
39335         are listed on the command line and at least one of them is
39336         listed in $(ALL_RECURSIVE_TARGETS).
39337
39338 2009-03-14  Bruno Haible  <bruno@clisp.org>
39339
39340         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
39341         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
39342         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
39343         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
39344         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
39345         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
39346         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
39347         unistr/u8-uctomb.
39348         * modules/unistr/u8-strchr (Depends-on): Likewise.
39349         * modules/unistr/u8-strrchr (Depends-on): Likewise.
39350         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
39351         unistr/u16-uctomb.
39352         * modules/unistr/u16-strchr (Depends-on): Likewise.
39353         * modules/unistr/u16-strrchr (Depends-on): Likewise.
39354
39355 2009-03-12  Bruno Haible  <bruno@clisp.org>
39356
39357         Work around select() bug on Interix 3.5.
39358         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
39359         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
39360         * m4/select.m4: New file.
39361         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
39362         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
39363         * modules/select (Files): Add m4/select.m4.
39364         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
39365         * modules/nanosleep (Depends-on): Add select.
39366         * modules/poll (Depends-on): Likewise.
39367         * doc/posix-functions/select.texi: Mention the Interix bug.
39368         Reported by Markus Duft <mduft@gentoo.org>.
39369
39370         * lib/select.c: Renamed from lib/winsock-select.c.
39371         * modules/select (Files): Add lib/select.c, remove
39372         lib/winsock-select.c.
39373         (configure.ac): Update.
39374
39375 2009-03-12  Jim Meyering  <meyering@redhat.com>
39376
39377         avoid gcc warnings about unused macro definitions
39378         * lib/readtokens.c (STREQ): Remove unused definition.
39379         * lib/xmalloc.c (SIZE_MAX): Likewise.
39380         * lib/openat-die.c (N_): Likewise.
39381         * lib/mountlist.c (SIZE_MAX): Remove definition.
39382         Instead, include <stdint.h>.
39383         * lib/readutmp.c: Likewise.
39384         * modules/readutmp (Depends-on): Add stdint.
39385         * modules/mountlist (Depends-on): Add stdint.
39386         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
39387
39388 2009-03-10  Bruno Haible  <bruno@clisp.org>
39389
39390         Tests for module 'mbmemcasecoll'.
39391         * modules/mbmemcasecoll-tests: New file.
39392         * tests/test-mbmemcasecoll1.sh: New file.
39393         * tests/test-mbmemcasecoll2.sh: New file.
39394         * tests/test-mbmemcasecoll3.sh: New file.
39395         * tests/test-mbmemcasecoll.c: New file.
39396
39397         New module 'mbmemcasecoll'.
39398         * lib/mbmemcasecoll.h: New file.
39399         * lib/mbmemcasecoll.c: New file.
39400         * modules/mbmemcasecoll: New file.
39401
39402         * tests/test-mbmemcasecmp.h: New file, extracted from
39403         tests/test-mbmemcasecmp.c.
39404         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
39405         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
39406         (main): Update.
39407         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
39408
39409 2009-03-09  Bruno Haible  <bruno@clisp.org>
39410
39411         Tests for module 'mbmemcasecmp'.
39412         * modules/mbmemcasecmp-tests: New file.
39413         * tests/test-mbmemcasecmp1.sh: New file.
39414         * tests/test-mbmemcasecmp2.sh: New file.
39415         * tests/test-mbmemcasecmp3.sh: New file.
39416         * tests/test-mbmemcasecmp.c: New file.
39417
39418         New module 'mbmemcasecmp'.
39419         * lib/mbmemcasecmp.h: New file.
39420         * lib/mbmemcasecmp.c: New file.
39421         * modules/mbmemcasecmp: New file.
39422
39423 2009-03-09  Bruno Haible  <bruno@clisp.org>
39424
39425         Tests for module 'unicase/ulc-casecoll'.
39426         * modules/unicase/ulc-casecoll-tests: New file.
39427         * tests/unicase/test-ulc-casecoll1.sh: New file.
39428         * tests/unicase/test-ulc-casecoll2.sh: New file.
39429         * tests/unicase/test-ulc-casecoll.c: New file.
39430
39431         New module 'unicase/ulc-casecoll'.
39432         * lib/unicase.h (ulc_casecoll): New declaration.
39433         * lib/unicase/ulc-casecoll.c: New file.
39434         * modules/unicase/ulc-casecoll: New file.
39435
39436         New module 'unicase/ulc-casexfrm'.
39437         * lib/unicase.h (ulc_casexfrm): New declaration.
39438         * lib/unicase/ulc-casexfrm.c: New file.
39439         * modules/unicase/ulc-casexfrm: New file.
39440
39441 2009-03-09  Bruno Haible  <bruno@clisp.org>
39442
39443         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
39444         invocations.
39445
39446         * m4/mbscasecmp.m4: Remove file.
39447         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
39448         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
39449
39450         * m4/mbscasestr.m4: Remove file.
39451         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
39452         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
39453
39454         * m4/mbschr.m4: Remove file.
39455         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
39456         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
39457
39458         * m4/mbscspn.m4: Remove file.
39459         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
39460         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
39461
39462         * m4/mbslen.m4: Remove file.
39463         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
39464         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
39465
39466         * m4/mbsncasecmp.m4: Remove file.
39467         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
39468         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
39469
39470         * m4/mbsnlen.m4: Remove file.
39471         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
39472         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
39473
39474         * m4/mbspbrk.m4: Remove file.
39475         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
39476         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
39477
39478         * m4/mbspcasecmp.m4: Remove file.
39479         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
39480         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
39481
39482         * m4/mbsrchr.m4: Remove file.
39483         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
39484         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
39485
39486         * m4/mbssep.m4: Remove file.
39487         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
39488         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
39489
39490         * m4/mbsspn.m4: Remove file.
39491         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
39492         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
39493
39494         * m4/mbsstr.m4: Remove file.
39495         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
39496         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
39497
39498         * m4/mbstok_r.m4: Remove file.
39499         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
39500         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
39501
39502         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
39503
39504         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
39505         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
39506
39507         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
39508
39509 2009-03-08  Bruno Haible  <bruno@clisp.org>
39510
39511         Tests for module 'unicase/ulc-casecmp'.
39512         * modules/unicase/ulc-casecmp-tests: New file.
39513         * tests/unicase/test-ulc-casecmp1.sh: New file.
39514         * tests/unicase/test-ulc-casecmp2.sh: New file.
39515         * tests/unicase/test-ulc-casecmp.c: New file.
39516
39517         New module 'unicase/ulc-casecmp'.
39518         * lib/unicase.h (ulc_casecmp): New declaration.
39519         * lib/unicase/ulc-casecmp.c: New file.
39520         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
39521         'const SRC_UNIT *'.
39522         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
39523         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
39524         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
39525         * modules/unicase/ulc-casecmp: New file.
39526
39527         Tests for module 'unicase/u32-is-cased'.
39528         * modules/unicase/u32-is-cased-tests: New file.
39529         * tests/unicase/test-u32-is-cased.c: New file.
39530
39531         Tests for module 'unicase/u16-is-cased'.
39532         * modules/unicase/u16-is-cased-tests: New file.
39533         * tests/unicase/test-u16-is-cased.c: New file.
39534
39535         Tests for module 'unicase/u8-is-cased'.
39536         * modules/unicase/u8-is-cased-tests: New file.
39537         * tests/unicase/test-u8-is-cased.c: New file.
39538         * tests/unicase/test-is-cased.h: New file.
39539
39540         New module 'unicase/u32-is-cased'.
39541         * lib/unicase/u32-is-cased.c: New file.
39542         * modules/unicase/u32-is-cased: New file.
39543
39544         New module 'unicase/u16-is-cased'.
39545         * lib/unicase/u16-is-cased.c: New file.
39546         * modules/unicase/u16-is-cased: New file.
39547
39548         New module 'unicase/u8-is-cased'.
39549         * lib/unicase/u8-is-cased.c: New file.
39550         * lib/unicase/u-is-cased.h: New file.
39551         * modules/unicase/u8-is-cased: New file.
39552
39553         Tests for module 'unicase/u32-is-casefolded'.
39554         * modules/unicase/u32-is-casefolded-tests: New file.
39555         * tests/unicase/test-u32-is-casefolded.c: New file.
39556
39557         Tests for module 'unicase/u16-is-casefolded'.
39558         * modules/unicase/u16-is-casefolded-tests: New file.
39559         * tests/unicase/test-u16-is-casefolded.c: New file.
39560
39561         Tests for module 'unicase/u8-is-casefolded'.
39562         * modules/unicase/u8-is-casefolded-tests: New file.
39563         * tests/unicase/test-u8-is-casefolded.c: New file.
39564         * tests/unicase/test-is-casefolded.h: New file.
39565
39566         New module 'unicase/u32-is-casefolded'.
39567         * lib/unicase/u32-is-casefolded.c: New file.
39568         * modules/unicase/u32-is-casefolded: New file.
39569
39570         New module 'unicase/u16-is-casefolded'.
39571         * lib/unicase/u16-is-casefolded.c: New file.
39572         * modules/unicase/u16-is-casefolded: New file.
39573
39574         New module 'unicase/u8-is-casefolded'.
39575         * lib/unicase/u8-is-casefolded.c: New file.
39576         * modules/unicase/u8-is-casefolded: New file.
39577
39578         Tests for module 'unicase/u32-is-titlecase'.
39579         * modules/unicase/u32-is-titlecase-tests: New file.
39580         * tests/unicase/test-u32-is-titlecase.c: New file.
39581
39582         Tests for module 'unicase/u16-is-titlecase'.
39583         * modules/unicase/u16-is-titlecase-tests: New file.
39584         * tests/unicase/test-u16-is-titlecase.c: New file.
39585
39586         Tests for module 'unicase/u8-is-titlecase'.
39587         * modules/unicase/u8-is-titlecase-tests: New file.
39588         * tests/unicase/test-u8-is-titlecase.c: New file.
39589         * tests/unicase/test-is-titlecase.h: New file.
39590
39591         New module 'unicase/u32-is-titlecase'.
39592         * lib/unicase/u32-is-titlecase.c: New file.
39593         * modules/unicase/u32-is-titlecase: New file.
39594
39595         New module 'unicase/u16-is-titlecase'.
39596         * lib/unicase/u16-is-titlecase.c: New file.
39597         * modules/unicase/u16-is-titlecase: New file.
39598
39599         New module 'unicase/u8-is-titlecase'.
39600         * lib/unicase/u8-is-titlecase.c: New file.
39601         * modules/unicase/u8-is-titlecase: New file.
39602
39603         Tests for module 'unicase/u32-is-lowercase'.
39604         * modules/unicase/u32-is-lowercase-tests: New file.
39605         * tests/unicase/test-u32-is-lowercase.c: New file.
39606
39607         Tests for module 'unicase/u16-is-lowercase'.
39608         * modules/unicase/u16-is-lowercase-tests: New file.
39609         * tests/unicase/test-u16-is-lowercase.c: New file.
39610
39611         Tests for module 'unicase/u8-is-lowercase'.
39612         * modules/unicase/u8-is-lowercase-tests: New file.
39613         * tests/unicase/test-u8-is-lowercase.c: New file.
39614         * tests/unicase/test-is-lowercase.h: New file.
39615
39616         New module 'unicase/u32-is-lowercase'.
39617         * lib/unicase/u32-is-lowercase.c: New file.
39618         * modules/unicase/u32-is-lowercase: New file.
39619
39620         New module 'unicase/u16-is-lowercase'.
39621         * lib/unicase/u16-is-lowercase.c: New file.
39622         * modules/unicase/u16-is-lowercase: New file.
39623
39624         New module 'unicase/u8-is-lowercase'.
39625         * lib/unicase/u8-is-lowercase.c: New file.
39626         * modules/unicase/u8-is-lowercase: New file.
39627
39628         Tests for module 'unicase/u32-is-uppercase'.
39629         * modules/unicase/u32-is-uppercase-tests: New file.
39630         * tests/unicase/test-u32-is-uppercase.c: New file.
39631
39632         Tests for module 'unicase/u16-is-uppercase'.
39633         * modules/unicase/u16-is-uppercase-tests: New file.
39634         * tests/unicase/test-u16-is-uppercase.c: New file.
39635
39636         Tests for module 'unicase/u8-is-uppercase'.
39637         * modules/unicase/u8-is-uppercase-tests: New file.
39638         * tests/unicase/test-u8-is-uppercase.c: New file.
39639         * tests/unicase/test-is-uppercase.h: New file.
39640
39641         New module 'unicase/u32-is-uppercase'.
39642         * lib/unicase/u32-is-uppercase.c: New file.
39643         * modules/unicase/u32-is-uppercase: New file.
39644
39645         New module 'unicase/u16-is-uppercase'.
39646         * lib/unicase/u16-is-uppercase.c: New file.
39647         * modules/unicase/u16-is-uppercase: New file.
39648
39649         New module 'unicase/u8-is-uppercase'.
39650         * lib/unicase/u8-is-uppercase.c: New file.
39651         * modules/unicase/u8-is-uppercase: New file.
39652
39653         New module 'unicase/u32-is-invariant'.
39654         * lib/unicase/u32-is-invariant.c: New file.
39655         * modules/unicase/u32-is-invariant: New file.
39656
39657         New module 'unicase/u16-is-invariant'.
39658         * lib/unicase/u16-is-invariant.c: New file.
39659         * modules/unicase/u16-is-invariant: New file.
39660
39661         New module 'unicase/u8-is-invariant'.
39662         * lib/unicase/u8-is-invariant.c: New file.
39663         * lib/unicase/invariant.h: New file.
39664         * lib/unicase/u-is-invariant.h: New file.
39665         * modules/unicase/u8-is-invariant: New file.
39666
39667         Tests for module 'unicase/u32-casecoll'.
39668         * modules/unicase/u32-casecoll-tests: New file.
39669         * tests/unicase/test-u32-casecoll.c: New file.
39670
39671         Tests for module 'unicase/u16-casecoll'.
39672         * modules/unicase/u16-casecoll-tests: New file.
39673         * tests/unicase/test-u16-casecoll.c: New file.
39674
39675         Tests for module 'unicase/u8-casecoll'.
39676         * modules/unicase/u8-casecoll-tests: New file.
39677         * tests/unicase/test-u8-casecoll.c: New file.
39678
39679         New module 'unicase/u32-casecoll'.
39680         * lib/unicase/u32-casecoll.c: New file.
39681         * modules/unicase/u32-casecoll: New file.
39682
39683         New module 'unicase/u16-casecoll'.
39684         * lib/unicase/u16-casecoll.c: New file.
39685         * modules/unicase/u16-casecoll: New file.
39686
39687         New module 'unicase/u8-casecoll'.
39688         * lib/unicase/u8-casecoll.c: New file.
39689         * lib/unicase/u-casecoll.h: New file.
39690         * modules/unicase/u8-casecoll: New file.
39691
39692         New module 'unicase/u32-casexfrm'.
39693         * lib/unicase/u32-casexfrm.c: New file.
39694         * modules/unicase/u32-casexfrm: New file.
39695
39696         New module 'unicase/u16-casexfrm'.
39697         * lib/unicase/u16-casexfrm.c: New file.
39698         * modules/unicase/u16-casexfrm: New file.
39699
39700         New module 'unicase/u8-casexfrm'.
39701         * lib/unicase/u8-casexfrm.c: New file.
39702         * lib/unicase/u-casexfrm.h: New file.
39703         * modules/unicase/u8-casexfrm: New file.
39704
39705         Tests for module 'unicase/u32-casecmp'.
39706         * modules/unicase/u32-casecmp-tests: New file.
39707         * tests/unicase/test-u32-casecmp.c: New file.
39708
39709         Tests for module 'unicase/u16-casecmp'.
39710         * modules/unicase/u16-casecmp-tests: New file.
39711         * tests/unicase/test-u16-casecmp.c: New file.
39712
39713         Tests for module 'unicase/u8-casecmp'.
39714         * modules/unicase/u8-casecmp-tests: New file.
39715         * tests/unicase/test-u8-casecmp.c: New file.
39716         * tests/unicase/test-casecmp.h: New file.
39717
39718         New module 'unicase/u32-casecmp'.
39719         * lib/unicase/u32-casecmp.c: New file.
39720         * modules/unicase/u32-casecmp: New file.
39721
39722         New module 'unicase/u16-casecmp'.
39723         * lib/unicase/u16-casecmp.c: New file.
39724         * modules/unicase/u16-casecmp: New file.
39725
39726         New module 'unicase/u8-casecmp'.
39727         * lib/unicase/u8-casecmp.c: New file.
39728         * lib/unicase/u-casecmp.h: New file.
39729         * modules/unicase/u8-casecmp: New file.
39730
39731         Tests for module 'unicase/u32-casefold'.
39732         * modules/unicase/u32-casefold-tests: New file.
39733         * tests/unicase/test-u32-casefold.c: New file.
39734
39735         Tests for module 'unicase/u16-casefold'.
39736         * modules/unicase/u16-casefold-tests: New file.
39737         * tests/unicase/test-u16-casefold.c: New file.
39738
39739         Tests for module 'unicase/u8-casefold'.
39740         * modules/unicase/u8-casefold-tests: New file.
39741         * tests/unicase/test-u8-casefold.c: New file.
39742
39743         New module 'unicase/u32-casefold'.
39744         * lib/unicase/u32-casefold.c: New file.
39745         * modules/unicase/u32-casefold: New file.
39746
39747         New module 'unicase/u16-casefold'.
39748         * lib/unicase/u16-casefold.c: New file.
39749         * modules/unicase/u16-casefold: New file.
39750
39751         New module 'unicase/u8-casefold'.
39752         * lib/unicase/u8-casefold.c: New file.
39753         * lib/unicase/u-casefold.h: New file.
39754         * modules/unicase/u8-casefold: New file.
39755
39756         New module 'unicase/tocasefold'.
39757         * lib/unicase/casefold.h: New file.
39758         * lib/unicase/tocasefold.c: New file.
39759         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
39760         * modules/unicase/tocasefold: New file.
39761
39762         Tests for module 'unicase/u32-totitle'.
39763         * modules/unicase/u32-totitle-tests: New file.
39764         * tests/unicase/test-u32-totitle.c: New file.
39765
39766         Tests for module 'unicase/u16-totitle'.
39767         * modules/unicase/u16-totitle-tests: New file.
39768         * tests/unicase/test-u16-totitle.c: New file.
39769
39770         Tests for module 'unicase/u8-totitle'.
39771         * modules/unicase/u8-totitle-tests: New file.
39772         * tests/unicase/test-u8-totitle.c: New file.
39773
39774         New module 'unicase/u32-totitle'.
39775         * lib/unicase/u32-totitle.c: New file.
39776         * modules/unicase/u32-totitle: New file.
39777
39778         New module 'unicase/u16-totitle'.
39779         * lib/unicase/u16-totitle.c: New file.
39780         * modules/unicase/u16-totitle: New file.
39781
39782         New module 'unicase/u8-totitle'.
39783         * lib/unicase/u8-totitle.c: New file.
39784         * lib/unicase/u-totitle.h: New file.
39785         * modules/unicase/u8-totitle: New file.
39786
39787         Tests for module 'unicase/u32-tolower'.
39788         * modules/unicase/u32-tolower-tests: New file.
39789         * tests/unicase/test-u32-tolower.c: New file.
39790
39791         Tests for module 'unicase/u16-tolower'.
39792         * modules/unicase/u16-tolower-tests: New file.
39793         * tests/unicase/test-u16-tolower.c: New file.
39794
39795         Tests for module 'unicase/u8-tolower'.
39796         * modules/unicase/u8-tolower-tests: New file.
39797         * tests/unicase/test-u8-tolower.c: New file.
39798
39799         New module 'unicase/u32-tolower'.
39800         * lib/unicase/u32-tolower.c: New file.
39801         * modules/unicase/u32-tolower: New file.
39802
39803         New module 'unicase/u16-tolower'.
39804         * lib/unicase/u16-tolower.c: New file.
39805         * modules/unicase/u16-tolower: New file.
39806
39807         New module 'unicase/u8-tolower'.
39808         * lib/unicase/u8-tolower.c: New file.
39809         * modules/unicase/u8-tolower: New file.
39810
39811         Tests for module 'unicase/u32-toupper'.
39812         * modules/unicase/u32-toupper-tests: New file.
39813         * tests/unicase/test-u32-toupper.c: New file.
39814
39815         Tests for module 'unicase/u16-toupper'.
39816         * modules/unicase/u16-toupper-tests: New file.
39817         * tests/unicase/test-u16-toupper.c: New file.
39818
39819         Tests for module 'unicase/u8-toupper'.
39820         * modules/unicase/u8-toupper-tests: New file.
39821         * tests/unicase/test-u8-toupper.c: New file.
39822
39823         New module 'unicase/u32-toupper'.
39824         * lib/unicase/u32-toupper.c: New file.
39825         * modules/unicase/u32-toupper: New file.
39826
39827         New module 'unicase/u16-toupper'.
39828         * lib/unicase/u16-toupper.c: New file.
39829         * modules/unicase/u16-toupper: New file.
39830
39831         New module 'unicase/u8-toupper'.
39832         * lib/unicase/u8-toupper.c: New file.
39833         * modules/unicase/u8-toupper: New file.
39834
39835         New module 'unicase/u32-casemap'.
39836         * lib/unicase/u32-casemap.c: New file.
39837         * modules/unicase/u32-casemap: New file.
39838
39839         New module 'unicase/u16-casemap'.
39840         * lib/unicase/u16-casemap.c: New file.
39841         * modules/unicase/u16-casemap: New file.
39842
39843         New module 'unicase/u8-casemap'.
39844         * lib/unicase/unicasemap.h: New file.
39845         * lib/unicase/u8-casemap.c: New file.
39846         * lib/unicase/u-casemap.h: New file.
39847         * modules/unicase/u8-casemap: New file.
39848
39849         New module 'unicase/special-casing'.
39850         * lib/unicase/special-casing.h: New file.
39851         * lib/unicase/special-casing.c: New file.
39852         * lib/unicase/special-casing-table.gperf: New file, generated by
39853         gen-uni-tables.c.
39854         * modules/unicase/special-casing: New file.
39855
39856         Tests for module 'unicase/locale-language'.
39857         * modules/unicase/locale-language-tests: New file.
39858         * tests/unicase/test-locale-language.sh: New file.
39859         * tests/unicase/test-locale-language.c: New file.
39860
39861         New module 'unicase/locale-language'.
39862         * lib/unicase/locale-language.c: New file.
39863         * lib/unicase/locale-languages.gperf: New file.
39864         * modules/unicase/locale-language: New file.
39865
39866         Generate more tables for case conversion and case folding.
39867         * lib/gen-uni-tables.c (SCC_*): New enum items.
39868         (struct special_casing_rule): New type.
39869         (casing_rules, num_casing_rules, allocated_casing_rules): New
39870         variables.
39871         (add_casing_rule, fill_casing_rules): New functions.
39872         (struct casefold_rule): New type.
39873         (casefolding_rules, num_casefolding_rules,
39874         allocated_casefolding_rules): New variables.
39875         (fill_casefolding_rules): New function.
39876         (unicode_casefold): New variable.
39877         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
39878         sort_casing_rules, output_casing_rules): New functions.
39879         (main): Accept to more arguments: SpecialCasing.txt and
39880         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
39881         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
39882         Output mapping for casefolding.
39883
39884         * lib/unicase.h: Include stdbool.h, uninorm.h.
39885         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
39886         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
39887         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
39888         arguments.
39889         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
39890         resultp arguments.
39891         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
39892         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
39893         resultp arguments.
39894         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
39895         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
39896         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
39897         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
39898         declarations.
39899         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
39900
39901 2009-03-08  Bruno Haible  <bruno@clisp.org>
39902
39903         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
39904         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
39905         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
39906         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
39907
39908 2009-03-07  Bruno Haible  <bruno@clisp.org>
39909
39910         Adjust u*_normcmp, u*_normcoll API.
39911         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
39912         u16_normcoll, u32_normcoll): Change failure conventions.
39913         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
39914         errno and return -1.
39915         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
39916
39917 2009-03-07  Bruno Haible  <bruno@clisp.org>
39918
39919         Tests for module 'uninorm/u32-normcoll'.
39920         * modules/uninorm/u32-normcoll-tests: New file.
39921         * tests/uninorm/test-u32-normcoll.c: New file.
39922
39923         Tests for module 'uninorm/u16-normcoll'.
39924         * modules/uninorm/u16-normcoll-tests: New file.
39925         * tests/uninorm/test-u16-normcoll.c: New file.
39926
39927         Tests for module 'uninorm/u8-normcoll'.
39928         * modules/uninorm/u8-normcoll-tests: New file.
39929         * tests/uninorm/test-u8-normcoll.c: New file.
39930
39931 2009-03-07  Bruno Haible  <bruno@clisp.org>
39932
39933         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
39934         tests/uninorm/test-u32-normcmp.c.
39935         * tests/uninorm/test-u32-normcmp.c: Include it.
39936         (test_nonascii): New function, extracted from main. Add some more
39937         tests.
39938         (main): Invoke test_ascii and test_nonascii.
39939         * modules/uninorm/u32-normcmp-tests (Files): Add
39940         tests/uninorm/test-u32-normcmp.h.
39941         (Depends-on): Remove uninorm/u32-normcmp.
39942
39943         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
39944         tests/uninorm/test-u16-normcmp.c.
39945         * tests/uninorm/test-u16-normcmp.c: Include it.
39946         (test_nonascii): New function, extracted from main. Add some more
39947         tests.
39948         (main): Invoke test_ascii and test_nonascii.
39949         * modules/uninorm/u16-normcmp-tests (Files): Add
39950         tests/uninorm/test-u16-normcmp.h.
39951         (Depends-on): Remove uninorm/u16-normcmp.
39952
39953         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
39954         tests/uninorm/test-u8-normcmp.c.
39955         * tests/uninorm/test-u8-normcmp.c: Include it.
39956         (test_nonascii): New function, extracted from main. Add some more
39957         tests.
39958         (main): Invoke test_ascii and test_nonascii.
39959         * modules/uninorm/u8-normcmp-tests (Files): Add
39960         tests/uninorm/test-u8-normcmp.h.
39961         (Depends-on): Remove uninorm/u8-normcmp.
39962
39963 2009-03-07  Bruno Haible  <bruno@clisp.org>
39964
39965         New module 'uninorm/u32-normcoll'.
39966         * lib/uninorm/u32-normcoll.c: New file.
39967         * modules/uninorm/u32-normcoll: New file.
39968
39969         New module 'uninorm/u16-normcoll'.
39970         * lib/uninorm/u16-normcoll.c: New file.
39971         * modules/uninorm/u16-normcoll: New file.
39972
39973         New module 'uninorm/u8-normcoll'.
39974         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
39975         declarations.
39976         * lib/uninorm/u8-normcoll.c: New file.
39977         * lib/uninorm/u-normcoll.h: New file.
39978         * modules/uninorm/u8-normcoll: New file.
39979
39980         New module 'uninorm/u32-normxfrm'.
39981         * lib/uninorm/u32-normxfrm.c: New file.
39982         * modules/uninorm/u32-normxfrm: New file.
39983
39984         New module 'uninorm/u16-normxfrm'.
39985         * lib/uninorm/u16-normxfrm.c: New file.
39986         * modules/uninorm/u16-normxfrm: New file.
39987
39988         New module 'uninorm/u8-normxfrm'.
39989         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
39990         declarations.
39991         * lib/uninorm/u8-normxfrm.c: New file.
39992         * lib/uninorm/u-normxfrm.h: New file.
39993         * modules/uninorm/u8-normxfrm: New file.
39994
39995 2009-03-07  Bruno Haible  <bruno@clisp.org>
39996
39997         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
39998         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
39999         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
40000
40001 2009-03-07  Bruno Haible  <bruno@clisp.org>
40002
40003         New module 'memxfrm'.
40004         * lib/memxfrm.h: New file.
40005         * lib/memxfrm.c: New file.
40006         * modules/memxfrm: New file.
40007
40008 2009-03-07  Bruno Haible  <bruno@clisp.org>
40009
40010         New module 'memcmp2'.
40011         * lib/memcmp2.h: New file.
40012         * lib/memcmp2.c: New file.
40013         * modules/memcmp2: New file.
40014
40015 2009-03-07  Bruno Haible  <bruno@clisp.org>
40016
40017         Tests for module 'uninorm/decomposing-form'.
40018         * modules/uninorm/decomposing-form-tests: New file.
40019         * tests/uninorm/test-decomposing-form.c: New file.
40020
40021         New module 'uninorm/decomposing-form'.
40022         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
40023         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
40024         Add 'decomposing_variant' field.
40025         * lib/uninorm/decomposing-form.c: New file.
40026         * lib/uninorm/nfc.c (uninorm_nfc): Update.
40027         * lib/uninorm/nfd.c (uninorm_nfd): Update.
40028         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
40029         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
40030         * modules/uninorm/decomposing-form: New file.
40031         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
40032         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
40033
40034 2009-03-07  Bruno Haible  <bruno@clisp.org>
40035
40036         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
40037         strings.
40038
40039 2009-03-06  Bruno Haible  <bruno@clisp.org>
40040
40041         Tests for module 'uninorm/u32-normcmp'.
40042         * tests/uninorm/test-u32-normcmp.c: New file.
40043         * modules/uninorm/u32-normcmp-tests: New file.
40044
40045         Tests for module 'uninorm/u16-normcmp'.
40046         * tests/uninorm/test-u16-normcmp.c: New file.
40047         * modules/uninorm/u16-normcmp-tests: New file.
40048
40049         Tests for module 'uninorm/u8-normcmp'.
40050         * tests/uninorm/test-u8-normcmp.c: New file.
40051         * modules/uninorm/u8-normcmp-tests: New file.
40052
40053         New module 'uninorm/u32-normcmp'.
40054         * lib/uninorm/u32-normcmp.c: New file.
40055         * modules/uninorm/u32-normcmp: New file.
40056
40057         New module 'uninorm/u16-normcmp'.
40058         * lib/uninorm/u16-normcmp.c: New file.
40059         * modules/uninorm/u16-normcmp: New file.
40060
40061         New module 'uninorm/u8-normcmp'.
40062         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
40063         declarations.
40064         * lib/uninorm/u8-normcmp.c: New file.
40065         * lib/uninorm/u-normcmp.h: New file.
40066         * modules/uninorm/u8-normcmp: New file.
40067
40068 2009-03-06  Bruno Haible  <bruno@clisp.org>
40069
40070         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
40071         Reported by Eric Blake.
40072
40073 2009-03-06  Eric Blake  <ebb9@byu.net>
40074             Bruno Haible  <bruno@clisp.org>
40075
40076         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
40077         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
40078         condition.
40079         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
40080         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
40081         condition.
40082         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
40083
40084 2009-03-06  Eric Blake  <ebb9@byu.net>
40085
40086         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
40087         to avoid compiler warnings.
40088         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
40089
40090 2009-03-05  Bruno Haible  <bruno@clisp.org>
40091
40092         * tests/test-ftell.c (main): Disable test beyond end of file on
40093         FreeMiNT.
40094         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
40095
40096 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
40097
40098         * lib/filevercmp.c: Move hidden files up in ordering.
40099         * tests/test-filevercmp.c: Add tests for hidden files.
40100
40101 2009-03-04  Bruno Haible  <bruno@clisp.org>
40102
40103         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
40104         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
40105         AM_CFLAGS.
40106         Reported by Simon Josefsson.
40107
40108 2009-03-03  Bruno Haible  <bruno@clisp.org>
40109
40110         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
40111         Reported by Simon Josefsson.
40112
40113         * doc/ld-version-script.texi: Update node reference.
40114
40115 2009-03-03  Bruno Haible  <bruno@clisp.org>
40116
40117         * modules/visibility (License): Change to 'unlimited'.
40118         Suggested by Simon Josefsson.
40119
40120 2009-03-03  Jim Meyering  <meyering@redhat.com>
40121
40122         unlinkdir: cannot_unlink_dir may modify process state
40123         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
40124         it's neither thread-safe nor appropriate for use in a library.
40125
40126 2009-03-03  Eric Blake  <ebb9@byu.net>
40127
40128         test-closein: silence test under Darwin
40129         * tests/test-closein.sh: Ignore stderr from cat, since we don't
40130         care if it dies from EPIPE or EBADF.
40131
40132 2009-03-03  Bruno Haible  <bruno@clisp.org>
40133
40134         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
40135         earlier.
40136         * doc/visibility.texi: Fix @node and @section.
40137
40138 2009-03-03  Simon Josefsson  <simon@josefsson.org>
40139
40140         * doc/gnulib.texi: Link to sections for ld version script and
40141         visibility.
40142         * doc/visibility.texi: Add @node and @section.
40143         * modules/ld-version-script: New module.
40144         * m4/ld-version-script.m4: New file.
40145         * doc/ld-version-script.texi: New file.
40146
40147 2009-03-02  David Lutterkort  <lutter@redhat.com>
40148
40149         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
40150         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
40151
40152 2009-03-02  Bruno Haible  <bruno@clisp.org>
40153
40154         * doc/visibility.texi: Mention libtool's -export-symbols option.
40155
40156 2009-03-02  Jim Meyering  <meyering@redhat.com>
40157
40158         announce-gen: new option: --no-print-checksums
40159         * build-aux/announce-gen (usage): Describe it.
40160         (print_checksums): Print a newline here, not in the [*] footnote.
40161         (main): Honor it.
40162
40163 2009-03-01  Bruno Haible  <bruno@clisp.org>
40164
40165         Use socklen_t in the native Windows replacements prototypes.
40166         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
40167         instead of 'int'.
40168         * lib/getsockopt.c (rpl_getsockopt): Likewise.
40169         * lib/setsockopt.c (rpl_setsockopt): Likewise.
40170         * modules/getsockopt (Depends-on): Add socklen.
40171         * modules/setsockopt (Depends-on): Add socklen.
40172
40173 2009-03-01  Bruno Haible  <bruno@clisp.org>
40174
40175         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
40176         least 4.2.
40177
40178 2009-03-01  Eric Blake  <ebb9@byu.net>
40179             Bruno Haible  <bruno@clisp.org>
40180
40181         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
40182         error messages.
40183         * lib/wait-process.c (wait_subprocess): Omit error message about
40184         deadly signal sent to the child of termsigp != NULL.
40185
40186 2009-03-01  Eric Blake  <ebb9@byu.net>
40187
40188         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
40189
40190 2009-03-01  Bruno Haible  <bruno@clisp.org>
40191
40192         Avoid a gcc warning.
40193         * tests/test-sched.c (b): Make global.
40194         Reported by Eric Blake.
40195
40196 2009-01-19  Martin Lambers  <marlam@marlam.de>
40197
40198         Provide POSIX semantics for socket timeout options on W32.
40199         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
40200         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
40201         * modules/setsockopt: Depend on sys_time module for struct timeval.
40202         * modules/getsockopt: Depend on sys_time module for struct timeval.
40203
40204 2009-03-01  Simon Josefsson  <simon@josefsson.org>
40205
40206         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
40207         __USE_GNU, for consistency with netdb.in.h.
40208         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
40209
40210 2009-03-01  Bruno Haible  <bruno@clisp.org>
40211
40212         More support for FreeMiNT.
40213         * lib/fseeko.c (rpl_fseeko): Complete last commit.
40214         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
40215
40216 2009-03-01  Bruno Haible  <bruno@clisp.org>
40217
40218         More support for FreeMiNT.
40219         * lib/fpurge.c (fpurge): Correct last commit.
40220         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
40221
40222 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40223
40224         Fix unportable awk script in vc-list-files.
40225         * build-aux/vc-list-files: In the replacement awk script, use
40226         substr with a second argument of 1, not zero.
40227         Report by Simon Josefsson.
40228
40229 2009-02-28  Bruno Haible  <bruno@clisp.org>
40230
40231         More support for FreeMiNT.
40232         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
40233         to FreeMiNT today.
40234         * lib/fwriting.c (fwriting): Likewise.
40235         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
40236
40237 2009-02-28  Bruno Haible  <bruno@clisp.org>
40238
40239         * tests/test-freadseek.c (main): Disable test beyond end of file on
40240         FreeMiNT.
40241         * tests/test-ftello.c (main): Likewise.
40242         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
40243
40244 2009-02-28  Bruno Haible  <bruno@clisp.org>
40245
40246         Add tentative support for FreeMiNT.
40247         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
40248         * lib/fpurge.c (fpurge): Likewise.
40249         * lib/freadable.c (freadable): Likewise.
40250         * lib/freading.c (freading): Likewise.
40251         * lib/freadptr.c (freadptr): Likewise.
40252         * lib/freadseek.c (freadptrinc): Likewise.
40253         * lib/fseeko.c (rpl_fseeko): Likewise.
40254         * lib/fseterr.c (fseterr): Likewise.
40255         * lib/fwritable.c (fwritable): Likewise.
40256         * lib/fwriting.c (fwriting): Likewise.
40257         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
40258         Hourihane.
40259         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
40260
40261 2009-02-28  Bruno Haible  <bruno@clisp.org>
40262
40263         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
40264         SIGCHLD.
40265         Reported by Jim Meyering.
40266
40267 2009-02-28  Bruno Haible  <bruno@clisp.org>
40268
40269         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
40270         Mention the results of these tests on various platforms.
40271         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
40272         order.
40273         * doc/posix-functions/printf.texi: Likewise.
40274         * doc/posix-functions/snprintf.texi: Likewise.
40275         * doc/posix-functions/sprintf.texi: Likewise.
40276         * doc/posix-functions/vfprintf.texi: Likewise.
40277         * doc/posix-functions/vprintf.texi: Likewise.
40278         * doc/posix-functions/vsnprintf.texi: Likewise.
40279         * doc/posix-functions/vsprintf.texi: Likewise.
40280         * doc/glibc-functions/obstack_printf.texi: Likewise.
40281         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
40282
40283 2009-02-28  Bruno Haible  <bruno@clisp.org>
40284
40285         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
40286         Reported by Loïc Minier <lool@dooz.org>.
40287
40288 2009-02-27  Bruno Haible  <bruno@clisp.org>
40289
40290         * gnulib-tool (func_import): Make the sed expression used to create the
40291         sed script for updating the .gitignore file POSIX compliant.
40292         Reported by Eric Blake.
40293
40294 2009-02-27  Bruno Haible  <bruno@clisp.org>
40295
40296         * gnulib-tool (sed): Don't alias as "sed --posix".
40297         Reported by Eric Blake.
40298
40299 2009-02-27  Bruno Haible  <bruno@clisp.org>
40300
40301         Avoid test link errors.
40302         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
40303         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
40304         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
40305         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
40306         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
40307
40308 2009-02-27  Bruno Haible  <bruno@clisp.org>
40309
40310         Avoid spurious "(cached)" in configure output.
40311         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
40312         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
40313         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
40314         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
40315         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
40316         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
40317         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
40318         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
40319         Reported by Eric Blake.
40320
40321 2009-02-27  Eric Blake  <ebb9@byu.net>
40322
40323         printf: fix regression in previous patch
40324         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
40325
40326 2009-02-27  Bruno Haible  <bruno@clisp.org>
40327
40328         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
40329         value.
40330         * lib/stdint.in.h: Likewise.
40331         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
40332
40333 2009-02-27  Eric Blake  <ebb9@byu.net>
40334
40335         doc: mention more functions added in cygwin 1.7.0
40336         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
40337         addition.
40338         * doc/posix-functions/open_wmemstream.texi: Likewise.
40339         * doc/posix-functions/wcsnlen.texi: Likewise.
40340         * doc/posix-functions/wcsnrtombs.texi: Likewise.
40341         * doc/posix-functions/wcstod.texi: Likewise.
40342         * doc/posix-functions/wcstof.texi: Likewise.
40343         * doc/posix-functions/wcstoimax.texi: Likewise.
40344         * doc/posix-functions/wcstok.texi: Likewise.
40345         * doc/posix-functions/wcstoumax.texi: Likewise.
40346
40347         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
40348         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
40349         * doc/posix-functions/fprintf.texi: Update.
40350         * doc/posix-functions/printf.texi: Update.
40351         * doc/posix-functions/snprintf.texi: Update.
40352         * doc/posix-functions/sprintf.texi: Update.
40353         * doc/posix-functions/vfprintf.texi: Update.
40354         * doc/posix-functions/vprintf.texi: Update.
40355         * doc/posix-functions/vsnprintf.texi: Update.
40356         * doc/posix-functions/vsprintf.texi: Update.
40357         * doc/glibc-functions/obstack_printf.texi: Update.
40358         * doc/glibc-functions/obstack_vprintf.texi: Update.
40359
40360 2009-02-26  Eric Blake  <ebb9@byu.net>
40361
40362         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
40363         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
40364         compilation bug by using runtime conversion.
40365         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
40366         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
40367         * modules/ceill-tests (Files): Use nan.h.
40368         * modules/floorl-tests (Files): Likewise.
40369         * modules/frexpl-tests (Files): Likewise.
40370         * modules/isnanl-tests (Files): Likewise.
40371         * modules/ldexpl-tests (Files): Likewise.
40372         * modules/roundl-tests (Files): Likewise.
40373         * modules/truncl-tests (Files): Likewise.
40374         * tests/test-ceill.c (main): Use a working NaN.
40375         * tests/test-floorl.c (main): Likewise.
40376         * tests/test-frexpl.c (main): Likewise.
40377         * tests/test-isnan.c (test_long_double): Likewise.
40378         * tests/test-isnanl.h (main): Likewise.
40379         * tests/test-ldexpl.h (main): Likewise.
40380         * tests/test-roundl.h (main): Likewise.
40381         * tests/test-truncl.h (main): Likewise.
40382         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
40383
40384 2009-02-26  Eric Blake  <ebb9@byu.net>
40385             Bruno Haible  <bruno@clisp.org>
40386
40387         Work around a *printf bug with %ls on Solaris.
40388         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
40389         precision is specified, sprintf stops converting the wide string
40390         argument when the number of bytes that have been produced by this
40391         conversion equals or exceeds the precision.
40392         * doc/posix-functions/fprintf.texi: Update.
40393         * doc/posix-functions/printf.texi: Update.
40394         * doc/posix-functions/snprintf.texi: Update.
40395         * doc/posix-functions/sprintf.texi: Update.
40396         * doc/posix-functions/vfprintf.texi: Update.
40397         * doc/posix-functions/vprintf.texi: Update.
40398         * doc/posix-functions/vsnprintf.texi: Update.
40399         * doc/posix-functions/vsprintf.texi: Update.
40400         * doc/glibc-functions/obstack_printf.texi: Update.
40401         * doc/glibc-functions/obstack_vprintf.texi: Update.
40402
40403 2009-02-26  Eric Blake  <ebb9@byu.net>
40404
40405         stdlib: favor compiler check of random.h
40406         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
40407         to avoid an ObjC random.h installed by Swarm.
40408
40409 2009-02-26  Bruno Haible  <bruno@clisp.org>
40410
40411         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
40412         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
40413         Reported by Gary V. Vaughan <gary@gnu.org>.
40414
40415 2009-02-26  Bruno Haible  <bruno@clisp.org>
40416
40417         Fix *printf behaviour regarding the %ls directive.
40418         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
40419         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
40420         NEED_PRINTF_DIRECTIVE_LS.
40421         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
40422         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
40423         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
40424         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
40425         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
40426         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
40427         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
40428         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
40429         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
40430         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
40431         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
40432         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
40433         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
40434         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
40435         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
40436         * doc/posix-functions/fprintf.texi: Update.
40437         * doc/posix-functions/printf.texi: Update.
40438         * doc/posix-functions/snprintf.texi: Update.
40439         * doc/posix-functions/sprintf.texi: Update.
40440         * doc/posix-functions/vfprintf.texi: Update.
40441         * doc/posix-functions/vprintf.texi: Update.
40442         * doc/posix-functions/vsnprintf.texi: Update.
40443         * doc/posix-functions/vsprintf.texi: Update.
40444         * doc/glibc-functions/obstack_printf.texi: Update.
40445         * doc/glibc-functions/obstack_vprintf.texi: Update.
40446         Reported by Eric Blake.
40447
40448 2009-02-25  Bruno Haible  <bruno@clisp.org>
40449
40450         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
40451         with known value.
40452         Reported by Gary V. Vaughan <gary@gnu.org>.
40453
40454 2009-02-25  Bruno Haible  <bruno@clisp.org>
40455
40456         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
40457         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
40458         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
40459         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
40460         Reported by Gary V. Vaughan <gary@gnu.org>.
40461
40462 2009-02-25  Bruno Haible  <bruno@clisp.org>
40463
40464         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
40465         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
40466         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
40467         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
40468         Reported by Gary V. Vaughan <gary@gnu.org>.
40469
40470 2009-02-25  Eric Blake  <ebb9@byu.net>
40471
40472         tests: skip fseek/ftell tests if ungetc is broken
40473         * m4/ungetc.m4: New file.
40474         * modules/fseek-tests: Split test, so ungetc dependency is
40475         separate from rest of test.
40476         * modules/fseeko-tests: Likewise.
40477         * modules/ftell-tests: Likewise.
40478         * modules/ftello-tests: Likewise.
40479         * tests/test-fseek.c (main): Isolate ungetc dependency.
40480         * tests/test-fseeko.c (main): Likewise.
40481         * tests/test-ftell.c (main): Likewise.
40482         * tests/test-ftello.c (main): Likewise.
40483         * tests/test-fseek2.sh: New file.
40484         * tests/test-fseeko2.sh: Likewise.
40485         * tests/test-ftell2.sh: Likewise.
40486         * tests/test-ftello2.sh: Likewise.
40487
40488 2009-02-25  Ondřej Vašík  <ovasik@redhat.com>
40489
40490         test-getaddrinfo: fix usage of skip return code 77
40491         * tests/test-gettaddrinfo.c: Return skip code 77 only
40492         for first occurance of skip (4x77 is not 77)
40493
40494 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
40495
40496         strtod: avoid C99 decl-after-statement
40497         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
40498
40499 2009-02-24  Eric Blake  <ebb9@byu.net>
40500
40501         strtod: detect HP-UX 11.31 bug
40502         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
40503         Reported by Gary V. Vaughan.
40504
40505 2009-02-23  Bruno Haible  <bruno@clisp.org>
40506
40507         Fix invalid read past end of memory block.
40508         * lib/vasnprintf.c (DCHAR_SET): Define.
40509         (local_wcslen): Define only when needed.
40510         (local_strnlen, local_wcsnlen): New functions.
40511         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
40512         directives that involve a conversion ourselves.
40513         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
40514         wcsnlen, mbrtowc, wcrtomb.
40515         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
40516         * tests/test-vasprintf-posix.c (test_function): Likewise.
40517         * tests/test-snprintf-posix.h (test_function): Likewise.
40518         * tests/test-sprintf-posix.h (test_function): Likewise.
40519         Reported by Ben Pfaff <blp@cs.stanford.edu>.
40520
40521 2009-02-22  Bruno Haible  <bruno@clisp.org>
40522
40523         Implement new clarified decomposition of Hangul syllables.
40524         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
40525         of type LTV, return only a pairwise decomposition.
40526         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
40527         Likewise.
40528         * tests/uninorm/test-decomposition.c (main): Updated expected result.
40529         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
40530         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
40531
40532 2009-02-22  Bruno Haible  <bruno@clisp.org>
40533
40534         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
40535         zero-length results and shrink excess allocated memory.
40536         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
40537         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
40538         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
40539         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
40540         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
40541         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
40542         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
40543         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
40544         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
40545         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
40546         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
40547         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
40548
40549 2009-02-21  Bruno Haible  <bruno@clisp.org>
40550
40551         * doc/gnulib.texi: Include safe-alloc.texi earlier.
40552         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
40553         spaces after a period. Put a space between a macro name and its
40554         argument list. Trivial rewordings.
40555         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
40556         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
40557         (main): Return 0 explicitly.
40558
40559 2009-02-21  Bruno Haible  <bruno@clisp.org>
40560
40561         Tests for module 'uninorm/filter'.
40562         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
40563         * modules/uninorm/filter-tests: New file.
40564
40565         New module 'uninorm/filter'.
40566         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
40567         uninorm_filter_flush, uninorm_filter_free): New declarations.
40568         * lib/uninorm/uninorm-filter.c: New file.
40569         * modules/uninorm/filter: New file.
40570
40571 2009-02-21  Bruno Haible  <bruno@clisp.org>
40572
40573         Tests for module 'uninorm/nfkc'.
40574         * tests/uninorm/test-nfkc.c: New file.
40575         * tests/uninorm/test-u8-nfkc.c: New file.
40576         * tests/uninorm/test-u16-nfkc.c: New file.
40577         * tests/uninorm/test-u32-nfkc.c: New file.
40578         * tests/uninorm/test-u32-nfkc-big.sh: New file.
40579         * tests/uninorm/test-u32-nfkc-big.c: New file.
40580         * modules/uninorm/nfkc-tests: New file.
40581
40582         New module 'uninorm/nfkc'.
40583         * lib/uninorm/nfkc.c: New file.
40584         * modules/uninorm/nfkc: New file.
40585
40586         Tests for module 'uninorm/nfkd'.
40587         * tests/uninorm/test-nfkd.c: New file.
40588         * tests/uninorm/test-u8-nfkd.c: New file.
40589         * tests/uninorm/test-u16-nfkd.c: New file.
40590         * tests/uninorm/test-u32-nfkd.c: New file.
40591         * tests/uninorm/test-u32-nfkd-big.sh: New file.
40592         * tests/uninorm/test-u32-nfkd-big.c: New file.
40593         * modules/uninorm/nfkd-tests: New file.
40594
40595         New module 'uninorm/nfkd'.
40596         * lib/uninorm/nfkd.c: New file.
40597         * modules/uninorm/nfkd: New file.
40598
40599         Tests for module 'uninorm/nfc'.
40600         * tests/uninorm/test-nfc.c: New file.
40601         * tests/uninorm/test-u8-nfc.c: New file.
40602         * tests/uninorm/test-u16-nfc.c: New file.
40603         * tests/uninorm/test-u32-nfc.c: New file.
40604         * tests/uninorm/test-u32-nfc-big.sh: New file.
40605         * tests/uninorm/test-u32-nfc-big.c: New file.
40606         * modules/uninorm/nfc-tests: New file.
40607
40608         New module 'uninorm/nfc'.
40609         * lib/uninorm/nfc.c: New file.
40610         * modules/uninorm/nfc: New file.
40611
40612         Tests for module 'uninorm/nfd'.
40613         * tests/uninorm/test-nfd.c: New file.
40614         * tests/uninorm/test-u8-nfd.c: New file.
40615         * tests/uninorm/test-u16-nfd.c: New file.
40616         * tests/uninorm/test-u32-nfd.c: New file.
40617         * tests/uninorm/test-u32-nfd-big.sh: New file.
40618         * tests/uninorm/test-u32-nfd-big.c: New file.
40619         * tests/uninorm/test-u32-normalize-big.h: New file.
40620         * tests/uninorm/test-u32-normalize-big.c: New file.
40621         * tests/uninorm/NormalizationTest.txt: New file, created from
40622         Unicode 5.1.0 NormalizationTest.txt.
40623         * modules/uninorm/nfd-tests: New file.
40624
40625         New module 'uninorm/nfd'.
40626         * lib/uninorm/nfd.c: New file.
40627         * modules/uninorm/nfd: New file.
40628
40629         New module 'uninorm/u32-normalize'.
40630         * lib/uninorm/u32-normalize.c: New file.
40631         * modules/uninorm/u32-normalize: New file.
40632
40633         New module 'uninorm/u16-normalize'.
40634         * lib/uninorm/u16-normalize.c: New file.
40635         * modules/uninorm/u16-normalize: New file.
40636
40637         New module 'uninorm/u8-normalize'.
40638         * lib/uninorm/u8-normalize.c: New file.
40639         * lib/uninorm/normalize-internal.h: New file.
40640         * lib/uninorm/u-normalize-internal.h: New file.
40641         * modules/uninorm/u8-normalize: New file.
40642
40643         New module 'uninorm/decompose-internal'.
40644         * lib/uninorm/decompose-internal.c: New file.
40645         * modules/uninorm/decompose-internal: New file.
40646
40647         Tests for module 'uninorm/composition'.
40648         * tests/uninorm/test-composition.c: New file.
40649         * modules/uninorm/composition-tests: New file.
40650
40651         New module 'uninorm/composition'.
40652         * lib/uninorm/composition.c: New file.
40653         * lib/uninorm/composition-table.gperf: New file, generated by
40654         gen-uni-tables.
40655         * modules/uninorm/composition: New file.
40656
40657         Tests for module 'uninorm/compat-decomposition'.
40658         * tests/uninorm/test-compat-decomposition.c: New file.
40659         * modules/uninorm/compat-decomposition-tests: New file.
40660
40661         New module 'uninorm/compat-decomposition'.
40662         * lib/uninorm/decompose-internal.h: New file.
40663         * lib/uninorm/compat-decomposition.c: New file.
40664         * modules/uninorm/compat-decomposition: New file.
40665
40666         Tests for module 'uninorm/canonical-decomposition'.
40667         * tests/uninorm/test-canonical-decomposition.c: New file.
40668         * modules/uninorm/canonical-decomposition-tests: New file.
40669
40670         New module 'uninorm/canonical-decomposition'.
40671         * lib/uninorm/canonical-decomposition.c: New file.
40672         * modules/uninorm/canonical-decomposition: New file.
40673
40674         Tests for module 'uninorm/decomposition'.
40675         * tests/uninorm/test-decomposition.c: New file.
40676         * modules/uninorm/decomposition-tests: New file.
40677
40678         New module 'uninorm/decomposition'.
40679         * lib/uninorm/decomposition.c: New file.
40680         * modules/uninorm/decomposition: New file.
40681
40682         New module 'uninorm/decomposition-table'.
40683         * lib/uninorm/decomposition-table.h: New file.
40684         * lib/uninorm/decomposition-table.c: New file.
40685         * lib/uninorm/decomposition-table1.h: New file, generated by
40686         gen-uni-tables.
40687         * lib/uninorm/decomposition-table2.h: New file, generated by
40688         gen-uni-tables.
40689         * modules/uninorm/decomposition-table: New file.
40690
40691         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
40692         (UC_DECOMP_*): New enumeration items.
40693         (get_decomposition): New function.
40694         (struct decomp_table): New type.
40695         (output_decomposition, output_decomposition_tables): New functions.
40696         (unicode_composition_exclusions): New variable.
40697         (fill_composition_exclusions, debug_output_composition_tables): New
40698         functions.
40699         (main): Accept one more argument. Invoke fill_composition_exclusions.
40700         Output decomposition and composition tables.
40701
40702         New module 'uninorm/base'.
40703         * lib/uninorm.h: New file.
40704         * lib/unictype.h: Update comment.
40705         * modules/uninorm/base: New file.
40706
40707 2009-02-21  David Lutterkort  <lutter@redhat.com>
40708
40709         Tests for module 'safe-alloc'.
40710         * tests/test-safe-alloc.c: New file.
40711         * modules/safe-alloc-tests: New file.
40712
40713         New module 'safe-alloc'.
40714         * lib/safe-alloc.h: New file.
40715         * lib/safe-alloc.c: New file.
40716         * m4/safe-alloc.m4: New file.
40717         * modules/safe-alloc: New file.
40718         * doc/safe-alloc.texi: New file.
40719         * doc/gnulib.texi: Include it.
40720         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
40721         safe-alloc.
40722
40723 2009-02-18  Bruno Haible  <bruno@clisp.org>
40724
40725         Fix link error on non-glibc systems.
40726         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
40727         variable.
40728         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
40729
40730 2009-02-18  Jim Meyering  <meyering@redhat.com>
40731
40732         fts: avoid used-uninitialized error due to recent change
40733         * lib/fts.c (fts_read): Guard uses of the new member,
40734         parent->fts_n_dirs_remaining, since it's not relevant for
40735         the parent of a directory specified on the command-line.
40736
40737 2009-02-17  James Youngman  <jay@gnu.org>
40738             Bruno Haible  <bruno@clisp.org>
40739
40740         * m4/include_next.m4: Reformulate comment.
40741
40742 2009-02-16  Jim Meyering  <meyering@redhat.com>
40743
40744         fts: add #if guards so that the fts_lgpl module still builds
40745         * lib/fts.c: Guard just-added hash-table-using parts with
40746         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
40747         Reported by Simon Josefsson.
40748
40749 2009-02-15  Bruno Haible  <bruno@clisp.org>
40750
40751         * modules/array-mergesort-tests: New file.
40752         * tests/test-array-mergesort.c: New file.
40753
40754         New module 'array-mergesort'.
40755         * modules/array-mergesort: New file.
40756         * lib/array-mergesort.h: New file.
40757
40758 2009-02-15  Bruno Haible  <bruno@clisp.org>
40759
40760         Fix 2009-02-07 commit.
40761         * lib/gen-uni-tables.c (output_predicate, output_category,
40762         output_combclass, output_bidi_category, output_decimal_digit,
40763         output_digit, output_numeric, output_mirror, output_scripts,
40764         output_ident_category, output_simple_mapping): Fix format directives.
40765         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
40766
40767 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
40768
40769         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
40770         fixes are available from IBM.
40771
40772 2009-02-13  Jim Meyering  <meyering@redhat.com>
40773
40774         fts: arrange not to stat non-directories in more cases
40775         This makes GNU find (when it doesn't need to stat each file)
40776         *much* more efficient at traversing reiserfs file systems.
40777         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
40778         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
40779         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
40780         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
40781         (leaf_optimization_applies): New function.
40782         (LCO_hash, LCO_compare): New helper functions.
40783         (link_count_optimize_ok): New function.
40784         (fts_stat): Initialize new member (if dir).
40785         (fts_read): Decrement parent's fts_n_dirs_remaining count if
40786         we've just stat'ed a directory.  Skip the stat call when possible.
40787         ---
40788         Note this AFS-related exchange:
40789         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
40790         and note find's pioctl call in find/fstype.c.
40791         But that is necessary only if you want to enable the
40792         optimization for AFS, and for now, I don't.
40793
40794         fts: move a function definition "up" (no semantic change)
40795         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
40796         "up" to precede upcoming use of a related function.
40797
40798 2009-02-11  Jim Meyering  <meyering@redhat.com>
40799
40800         fts: correct internal computation of nlinks (optimization-related)
40801         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
40802         whether the current entry is a directory, so don't test it.
40803
40804 2009-02-10  Bruno Haible  <bruno@clisp.org>
40805
40806         Tests for module 'uniwbrk/ulc-wordbreaks'.
40807         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
40808         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
40809         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
40810
40811         Tests for module 'uniwbrk/u32-wordbreaks'.
40812         * modules/uniwbrk/u32-wordbreaks-tests: New file.
40813         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
40814
40815         Tests for module 'uniwbrk/u16-wordbreaks'.
40816         * modules/uniwbrk/u16-wordbreaks-tests: New file.
40817         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
40818
40819         Tests for module 'uniwbrk/u8-wordbreaks'.
40820         * modules/uniwbrk/u8-wordbreaks-tests: New file.
40821         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
40822
40823 2009-02-10  Bruno Haible  <bruno@clisp.org>
40824
40825         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
40826         property.
40827         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
40828         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
40829         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
40830
40831 2009-02-10  Simon Josefsson  <simon@josefsson.org>
40832
40833         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
40834         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
40835
40836 2009-02-10  Bruno Haible  <bruno@clisp.org>
40837
40838         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
40839         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
40840         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
40841         * lib/unilbrk/u8-possible-linebreaks.c: Update.
40842         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
40843         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
40844
40845 2009-02-09  Simon Josefsson  <simon@josefsson.org>
40846
40847         * lib/sockets.h (gl_fd_to_handle): New function.
40848
40849         * tests/test-sockets.c: Call gl_fd_to_handle.
40850
40851 2009-02-09  Bruno Haible  <bruno@clisp.org>
40852
40853         * doc/havelib.texi: Document the conventions on bi-arch systems.
40854
40855 2009-02-08  Bruno Haible  <bruno@clisp.org>
40856
40857         Document the AC_LIB_LINKFLAGS macro.
40858         * doc/havelib.texi: New file, mostly written on 2005-05-24.
40859         * doc/gnulib.texi: Include it.
40860
40861 2009-02-08  Bruno Haible  <bruno@clisp.org>
40862
40863         Fix wrong order of sections, compared to TOC.
40864         * doc/gnulib.texi: Include relocatable-maint.texi after the
40865         "Regular expressions" node, not before.
40866
40867 2009-02-08  Bruno Haible  <bruno@clisp.org>
40868
40869         Tests for module 'unicase/totitle'.
40870         * modules/unicase/totitle-tests: New file.
40871
40872         Tests for module 'unicase/tolower'.
40873         * modules/unicase/tolower-tests: New file.
40874
40875         Tests for module 'unicase/toupper'.
40876         * modules/unicase/toupper-tests: New file.
40877         * tests/unicase/test-mapping-part1.h: New file.
40878         * tests/unicase/test-mapping-part2.h: New file.
40879
40880         New module 'unicase/totitle'.
40881         * modules/unicase/totitle: New file.
40882         * lib/unicase/totitle.c: New file.
40883
40884         New module 'unicase/tolower'.
40885         * modules/unicase/tolower: New file.
40886         * lib/unicase/tolower.c: New file.
40887
40888         New module 'unicase/toupper'.
40889         * modules/unicase/toupper: New file.
40890         * lib/unicase/toupper.c: New file.
40891         * lib/unicase/simple-mapping.h: New file.
40892
40893         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
40894         (mapping_table): New structure.
40895         (output_simple_mapping): New function.
40896         (main): Invoke output_simple_mapping_test and output_simple_mapping.
40897         * modules/gen-uni-tables (Description): Update.
40898         * lib/unicase/toupper.h: New file, automatically generated by
40899         gen-uni-tables.
40900         * lib/unicase/tolower.h: New file, automatically generated by
40901         gen-uni-tables.
40902         * lib/unicase/totitle.h: New file, automatically generated by
40903         gen-uni-tables.
40904         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
40905         gen-uni-tables.
40906         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
40907         gen-uni-tables.
40908         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
40909         gen-uni-tables.
40910
40911         New module 'unicase/base'.
40912         * modules/unicase/base: New file.
40913         * lib/unicase.h: New file.
40914
40915 2009-02-08  Bruno Haible  <bruno@clisp.org>
40916
40917         New module 'uniwbrk/ulc-wordbreaks'.
40918         * modules/uniwbrk/ulc-wordbreaks: New file.
40919         * lib/uniwbrk/ulc-wordbreaks.c: New file.
40920
40921         New module 'uniwbrk/u32-wordbreaks'.
40922         * modules/uniwbrk/u32-wordbreaks: New file.
40923         * lib/uniwbrk/u32-wordbreaks.c: New file.
40924
40925         New module 'uniwbrk/u16-wordbreaks'.
40926         * modules/uniwbrk/u16-wordbreaks: New file.
40927         * lib/uniwbrk/u16-wordbreaks.c: New file.
40928
40929         New module 'uniwbrk/u8-wordbreaks'.
40930         * modules/uniwbrk/u8-wordbreaks: New file.
40931         * lib/uniwbrk/u8-wordbreaks.c: New file.
40932         * lib/uniwbrk/u-wordbreaks.h: New file.
40933
40934         New module 'uniwbrk/table'.
40935         * modules/uniwbrk/table: New file.
40936         * lib/uniwbrk/wbrktable.h: New file.
40937         * lib/uniwbrk/wbrktable.c: New file.
40938
40939         New module 'uniwbrk/wordbreak-property'.
40940         * modules/uniwbrk/wordbreak-property: New file.
40941         * lib/uniwbrk/wordbreak-property.c: New file.
40942
40943         * lib/gen-uni-tables.c (WBP_*): New enum items.
40944         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
40945         (unicode_org_wbp): New variable.
40946         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
40947         New functions.
40948         (wbp_table): New structure.
40949         (output_wbp, output_wbrk_tables): New functions.
40950         (main): Accept additional argument. Invoke fill_org_wbp,
40951         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
40952         output_wbrk_tables.
40953         * modules/gen-uni-tables (Description): Update.
40954         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
40955         gen-uni-tables.
40956
40957         New module 'uniwbrk/base'.
40958         * modules/uniwbrk/base: New file.
40959         * lib/uniwbrk.h: New file.
40960
40961 2009-02-08  Bruno Haible  <bruno@clisp.org>
40962
40963         Update to Unicode 5.1.0.
40964         * lib/gen-uni-tables.c (is_property_alphabetic): Include
40965         U+2185..U+2188.
40966         (is_property_default_ignorable_code_point): Don't include characters
40967         of category Cc or Cs and not-a-characters.
40968         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
40969         U+0D79, U+109E, U+109F, U+A60C.
40970         * lib/unictype/bidi_of.h: Regenerated.
40971         * lib/unictype/blocks.h: Regenerated.
40972         * lib/unictype/categ_C.h: Regenerated.
40973         * lib/unictype/categ_Cf.h: Regenerated.
40974         * lib/unictype/categ_Cn.h: Regenerated.
40975         * lib/unictype/categ_L.h: Regenerated.
40976         * lib/unictype/categ_Ll.h: Regenerated.
40977         * lib/unictype/categ_Lm.h: Regenerated.
40978         * lib/unictype/categ_Lo.h: Regenerated.
40979         * lib/unictype/categ_Lu.h: Regenerated.
40980         * lib/unictype/categ_M.h: Regenerated.
40981         * lib/unictype/categ_Mc.h: Regenerated.
40982         * lib/unictype/categ_Me.h: Regenerated.
40983         * lib/unictype/categ_Mn.h: Regenerated.
40984         * lib/unictype/categ_N.h: Regenerated.
40985         * lib/unictype/categ_Nd.h: Regenerated.
40986         * lib/unictype/categ_Nl.h: Regenerated.
40987         * lib/unictype/categ_No.h: Regenerated.
40988         * lib/unictype/categ_P.h: Regenerated.
40989         * lib/unictype/categ_Pd.h: Regenerated.
40990         * lib/unictype/categ_Pe.h: Regenerated.
40991         * lib/unictype/categ_Pf.h: Regenerated.
40992         * lib/unictype/categ_Pi.h: Regenerated.
40993         * lib/unictype/categ_Po.h: Regenerated.
40994         * lib/unictype/categ_Ps.h: Regenerated.
40995         * lib/unictype/categ_S.h: Regenerated.
40996         * lib/unictype/categ_Sk.h: Regenerated.
40997         * lib/unictype/categ_Sm.h: Regenerated.
40998         * lib/unictype/categ_So.h: Regenerated.
40999         * lib/unictype/categ_of.h: Regenerated.
41000         * lib/unictype/combining.h: Regenerated.
41001         * lib/unictype/ctype_alnum.h: Regenerated.
41002         * lib/unictype/ctype_alpha.h: Regenerated.
41003         * lib/unictype/ctype_graph.h: Regenerated.
41004         * lib/unictype/ctype_lower.h: Regenerated.
41005         * lib/unictype/ctype_print.h: Regenerated.
41006         * lib/unictype/ctype_punct.h: Regenerated.
41007         * lib/unictype/ctype_upper.h: Regenerated.
41008         * lib/unictype/decdigit.h: Regenerated.
41009         * lib/unictype/digit.h: Regenerated.
41010         * lib/unictype/mirror.h: Regenerated.
41011         * lib/unictype/numeric.h: Regenerated.
41012         * lib/unictype/pr_alphabetic.h: Regenerated.
41013         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
41014         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
41015         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
41016         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
41017         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
41018         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
41019         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
41020         * lib/unictype/pr_combining.h: Regenerated.
41021         * lib/unictype/pr_dash.h: Regenerated.
41022         * lib/unictype/pr_decimal_digit.h: Regenerated.
41023         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
41024         * lib/unictype/pr_deprecated.h: Regenerated.
41025         * lib/unictype/pr_diacritic.h: Regenerated.
41026         * lib/unictype/pr_extender.h: Regenerated.
41027         * lib/unictype/pr_format_control.h: Regenerated.
41028         * lib/unictype/pr_grapheme_base.h: Regenerated.
41029         * lib/unictype/pr_grapheme_extend.h: Regenerated.
41030         * lib/unictype/pr_grapheme_link.h: Regenerated.
41031         * lib/unictype/pr_id_continue.h: Regenerated.
41032         * lib/unictype/pr_id_start.h: Regenerated.
41033         * lib/unictype/pr_ideographic.h: Regenerated.
41034         * lib/unictype/pr_ignorable_control.h: Regenerated.
41035         * lib/unictype/pr_lowercase.h: Regenerated.
41036         * lib/unictype/pr_math.h: Regenerated.
41037         * lib/unictype/pr_numeric.h: Regenerated.
41038         * lib/unictype/pr_other_alphabetic.h: Regenerated.
41039         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
41040         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
41041         * lib/unictype/pr_other_id_continue.h: Regenerated.
41042         * lib/unictype/pr_other_lowercase.h: Regenerated.
41043         * lib/unictype/pr_other_math.h: Regenerated.
41044         * lib/unictype/pr_punctuation.h: Regenerated.
41045         * lib/unictype/pr_sentence_terminal.h: Regenerated.
41046         * lib/unictype/pr_soft_dotted.h: Regenerated.
41047         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
41048         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
41049         * lib/unictype/pr_unified_ideograph.h: Regenerated.
41050         * lib/unictype/pr_uppercase.h: Regenerated.
41051         * lib/unictype/pr_xid_continue.h: Regenerated.
41052         * lib/unictype/pr_xid_start.h: Regenerated.
41053         * lib/unictype/pr_zero_width.h: Regenerated.
41054         * lib/unictype/scripts.h: Regenerated.
41055         * lib/unictype/scripts_byname.gperf: Regenerated.
41056         * lib/unictype/sy_java_ident.h: Regenerated.
41057         * lib/unilbrk/lbrkprop1.h: Regenerated.
41058         * lib/unilbrk/lbrkprop2.h: Regenerated.
41059         * tests/unictype/test-categ_C.c: Regenerated.
41060         * tests/unictype/test-categ_Cf.c: Regenerated.
41061         * tests/unictype/test-categ_Cn.c: Regenerated.
41062         * tests/unictype/test-categ_L.c: Regenerated.
41063         * tests/unictype/test-categ_Ll.c: Regenerated.
41064         * tests/unictype/test-categ_Lm.c: Regenerated.
41065         * tests/unictype/test-categ_Lo.c: Regenerated.
41066         * tests/unictype/test-categ_Lu.c: Regenerated.
41067         * tests/unictype/test-categ_M.c: Regenerated.
41068         * tests/unictype/test-categ_Mc.c: Regenerated.
41069         * tests/unictype/test-categ_Me.c: Regenerated.
41070         * tests/unictype/test-categ_Mn.c: Regenerated.
41071         * tests/unictype/test-categ_N.c: Regenerated.
41072         * tests/unictype/test-categ_Nd.c: Regenerated.
41073         * tests/unictype/test-categ_Nl.c: Regenerated.
41074         * tests/unictype/test-categ_No.c: Regenerated.
41075         * tests/unictype/test-categ_P.c: Regenerated.
41076         * tests/unictype/test-categ_Pd.c: Regenerated.
41077         * tests/unictype/test-categ_Pe.c: Regenerated.
41078         * tests/unictype/test-categ_Pf.c: Regenerated.
41079         * tests/unictype/test-categ_Pi.c: Regenerated.
41080         * tests/unictype/test-categ_Po.c: Regenerated.
41081         * tests/unictype/test-categ_Ps.c: Regenerated.
41082         * tests/unictype/test-categ_S.c: Regenerated.
41083         * tests/unictype/test-categ_Sk.c: Regenerated.
41084         * tests/unictype/test-categ_Sm.c: Regenerated.
41085         * tests/unictype/test-categ_So.c: Regenerated.
41086         * tests/unictype/test-ctype_alnum.c: Regenerated.
41087         * tests/unictype/test-ctype_alpha.c: Regenerated.
41088         * tests/unictype/test-ctype_graph.c: Regenerated.
41089         * tests/unictype/test-ctype_lower.c: Regenerated.
41090         * tests/unictype/test-ctype_print.c: Regenerated.
41091         * tests/unictype/test-ctype_punct.c: Regenerated.
41092         * tests/unictype/test-ctype_upper.c: Regenerated.
41093         * tests/unictype/test-decdigit.h: Regenerated.
41094         * tests/unictype/test-digit.h: Regenerated.
41095         * tests/unictype/test-numeric.h: Regenerated.
41096         * tests/unictype/test-pr_alphabetic.c: Regenerated.
41097         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
41098         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
41099         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
41100         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
41101         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
41102         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
41103         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
41104         * tests/unictype/test-pr_combining.c: Regenerated.
41105         * tests/unictype/test-pr_dash.c: Regenerated.
41106         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
41107         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
41108         * tests/unictype/test-pr_deprecated.c: Regenerated.
41109         * tests/unictype/test-pr_diacritic.c: Regenerated.
41110         * tests/unictype/test-pr_extender.c: Regenerated.
41111         * tests/unictype/test-pr_format_control.c: Regenerated.
41112         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
41113         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
41114         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
41115         * tests/unictype/test-pr_id_continue.c: Regenerated.
41116         * tests/unictype/test-pr_id_start.c: Regenerated.
41117         * tests/unictype/test-pr_ideographic.c: Regenerated.
41118         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
41119         * tests/unictype/test-pr_lowercase.c: Regenerated.
41120         * tests/unictype/test-pr_math.c: Regenerated.
41121         * tests/unictype/test-pr_numeric.c: Regenerated.
41122         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
41123         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
41124         Regenerated.
41125         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
41126         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
41127         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
41128         * tests/unictype/test-pr_other_math.c: Regenerated.
41129         * tests/unictype/test-pr_punctuation.c: Regenerated.
41130         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
41131         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
41132         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
41133         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
41134         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
41135         * tests/unictype/test-pr_uppercase.c: Regenerated.
41136         * tests/unictype/test-pr_xid_continue.c: Regenerated.
41137         * tests/unictype/test-pr_xid_start.c: Regenerated.
41138         * tests/unictype/test-pr_zero_width.c: Regenerated.
41139
41140         Update to Unicode 5.1.0.
41141         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
41142         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
41143         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
41144         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
41145         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
41146         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
41147         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
41148         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
41149         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
41150         (nonspacing_table_ind): Update.
41151         * tests/uniwidth/test-uc_width2.sh: Update expected result.
41152
41153         Update to Unicode 5.1.0.
41154         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
41155         code transform.
41156         * lib/uniname/uniname.c (unicode_character_name,
41157         unicode_name_character): Add the range 0x1Fxxx to the code transform.
41158         * lib/uniname/uninames.h: Regenerated.
41159         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
41160
41161 2009-02-07  Bruno Haible  <bruno@clisp.org>
41162
41163         Merge gen-ctype and gen-lbrk into a single program.
41164         * lib/gen-uni-tables.c: New file, incorporating
41165         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
41166         Add directory prefixes to the names of the generated files.
41167         * lib/unictype/gen-ctype.c: Remove file.
41168         * lib/unilbrk/gen-lbrk.c: Remove file.
41169         * modules/gen-uni-tables: New file.
41170         * modules/unictype/gen-ctype: Remove file.
41171         * modules/unilbrk/gen-lbrk: Remove file.
41172
41173 2009-02-07  Bruno Haible  <bruno@clisp.org>
41174
41175         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
41176
41177         New module 'unistr/u32-strcoll'.
41178         * modules/unistr/u32-strcoll: New file.
41179         * lib/unistr/u32-strcoll.c: New file.
41180
41181         New module 'unistr/u16-strcoll'.
41182         * modules/unistr/u16-strcoll: New file.
41183         * lib/unistr/u16-strcoll.c: New file.
41184
41185         New module 'unistr/u8-strcoll'.
41186         * modules/unistr/u8-strcoll: New file.
41187         * lib/unistr/u8-strcoll.c: New file.
41188         * lib/unistr/u-strcoll.h: New file.
41189
41190 2009-02-07  Bruno Haible  <bruno@clisp.org>
41191
41192         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
41193         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
41194         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
41195         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
41196         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
41197         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
41198
41199 2009-02-07  Bruno Haible  <bruno@clisp.org>
41200
41201         Make 64-bit clean.
41202         * lib/unictype/gen-ctype.c (output_predicate, output_category,
41203         output_combclass, output_bidi_category, output_decimal_digit,
41204         output_digit, output_numeric, output_mirror, output_scripts,
41205         output_ident_category): Use proper width specifier in format strings.
41206
41207 2009-02-07  Bruno Haible  <bruno@clisp.org>
41208
41209         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
41210         failure behaviour.
41211
41212 2009-02-07  Jim Meyering  <meyering@redhat.com>
41213
41214         regex: avoid compilation failure with upcoming gcc-4.4
41215         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
41216         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
41217         "... error: integer overflow in preprocessor expression".
41218
41219 2009-02-05  Ben Pfaff  <blp@gnu.org>
41220
41221         Fix link errors on Windows when close module is used.
41222         * modules/close: Add $(LIB_CLOSE) to Link section.
41223         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
41224         $(LIB_CLOSE) on Windows.
41225
41226 2009-02-05  Jim Meyering  <meyering@redhat.com>
41227
41228         still avoid unused-parameter warnings, but do it cleanly
41229         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
41230         (get_fs_usage): Cast to void instead.
41231         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
41232         (dev_from_mount_options, read_file_system_list): Cast to void.
41233         Prompted by Bruno Haible.
41234
41235 2009-02-04  Jim Meyering  <meyering@redhat.com>
41236
41237         fsusage.c: correct copyright year
41238         * lib/fsusage.c: Reflect year in which the change is pushed into
41239
41240         avoid misc. warnings
41241         * lib/fsusage.c (UNUSED_PARAM): Define.
41242         (get_fs_usage): Mark parameter "disk" as unused.
41243         * lib/getugroups.c (getgrent): Use "void" in prototype.
41244         * lib/mountlist.c: Mark unused parameters.
41245         (read_file_system_list): Declare a local with "const".
41246         * lib/nanosleep.c (getnow): Declare static.
41247         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
41248
41249         dirfd: set errno upon failure
41250         * lib/dirfd.c: Include <errno.h>.
41251         Set errno to ENOTSUP when returning -1.
41252         * modules/dirfd (Depends-on): Add errno.
41253         Suggested by John Kodis <kodis@comcast.net>.
41254
41255 2009-02-01  Bruno Haible  <bruno@clisp.org>
41256
41257         Don't assume sizeof (long) >= sizeof (void *).
41258         * lib/memcmp.c: Include stdint.h.
41259         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
41260         srcp2 to 'const byte *'.
41261         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
41262         types to uintptr_t.
41263         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
41264         * modules/memcmp (Depends-on): Add stdint.
41265         Reported by Ozkan Sezer <sezeroz@gmail.com>.
41266
41267 2009-01-30  Eric Blake  <ebb9@byu.net>
41268
41269         fix more require-before-expand issues
41270         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
41271         expand, AC_PROG_AWK.
41272         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
41273
41274 2009-01-28  Eric Blake  <ebb9@byu.net>
41275
41276         version-etc: use consistent URL formatting
41277         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
41278         Improve formatting.  Use fputs for string without %.
41279
41280 2009-01-28  Jim Meyering  <meyering@redhat.com>
41281
41282         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
41283         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
41284         "underquoted definition of NAME" from autoconf-2.59.
41285
41286 2009-01-28  Bruno Haible  <bruno@clisp.org>
41287
41288         * doc/gnulib.texi: Add "Obsolete modules" to index.
41289
41290 2009-01-28  Jim Meyering  <meyering@redhat.com>
41291
41292         useless-if-before-free: recognize more variants
41293         * build-aux/useless-if-before-free: Also recognize e.g.,
41294         if (NULL != p) free (p);
41295
41296 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
41297
41298         test-getaddrinfo: skip (don't fail) this test when there's no network
41299         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
41300         on the presumption that it means you lack network access.
41301
41302 2009-01-26  Jim Meyering  <meyering@redhat.com>
41303
41304         fflush: avoid warnings on modern systems
41305         * lib/fflush.c (rpl_fflush): Move declarations of locals,
41306         pos and result, into scopes where they're used.
41307
41308 2009-01-26  Eric Blake  <ebb9@byu.net>
41309
41310         Silence warning reintroduced by recent extensions patch.
41311         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
41312         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
41313         autoconf.
41314
41315         Backport improved autoconf semantics of AC_DEFUN_ONCE.
41316         * m4/00gnulib.m4: New file.
41317         * gnulib-tool (func_get_filelist): Always use it.
41318         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
41319         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
41320
41321 2009-01-25  Bruno Haible  <bruno@clisp.org>
41322
41323         Make test-quotearg work on MacOS X and AIX.
41324         * tests/test-quotearg.sh: New file.
41325         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
41326         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
41327         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
41328         include <libintl.h>.
41329         (fake_locale): Remove variable.
41330         (gettext, dgettext, dcgettext): Remove functions.
41331         (main): Instead of setting a fake locale, set a real locale. Call
41332         textdomain and bindtextdomain.
41333         * modules/quotearg-tests (Files): Add the new files.
41334         (Depends-on): Add gettext, setenv, unsetenv.
41335         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
41336         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
41337         Augment TESTS_ENVIRONMENT.
41338
41339 2009-01-25  Bruno Haible  <bruno@clisp.org>
41340
41341         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
41342         fr_FR.ISO8859-1 locale on MacOS X.
41343         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
41344         ja_JP.eucJP locale on MacOS X.
41345         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
41346         zh_CN.GB18030 locale on MacOS X.
41347
41348 2009-01-25  Bruno Haible  <bruno@clisp.org>
41349
41350         Avoid link errors on MacOS X 10.3.
41351         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
41352         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
41353
41354 2009-01-25  Bruno Haible  <bruno@clisp.org>
41355
41356         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
41357         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
41358         * modules/pipe (Files): Remove m4/posix_spawn.m4.
41359         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
41360         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
41361         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
41362         posix_spawnattr_init, posix_spawnattr_setsigmask,
41363         posix_spawnattr_setflags, posix_spawnattr_destroy.
41364
41365         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
41366         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
41367         * modules/execute (Files): Remove m4/posix_spawn.m4.
41368         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
41369         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
41370         posix_spawnattr_init, posix_spawnattr_setsigmask,
41371         posix_spawnattr_setflags, posix_spawnattr_destroy.
41372
41373 2009-01-25  Bruno Haible  <bruno@clisp.org>
41374
41375         * lib/glthread/threadlib.c: Include <stdlib.h>.
41376
41377 2009-01-25  Bruno Haible  <bruno@clisp.org>
41378
41379         * lib/glthread/threadlib.c (dummy): New declaration.
41380
41381 2009-01-25  Bruno Haible  <bruno@clisp.org>
41382
41383         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
41384         multibyte characters also for the GB18030 encoding. Don't crash when
41385         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
41386
41387 2009-01-25  Bruno Haible  <bruno@clisp.org>
41388
41389         Avoid redefining 'struct random_data' on OSF/1 5.1.
41390         * lib/stdlib.in.h: Include <random.h> if it exists.
41391         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
41392         HAVE_RANDOM_H. Include <random.h> when testing whether
41393         'struct random_data' exists.
41394         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
41395
41396 2009-01-25  Bruno Haible  <bruno@clisp.org>
41397
41398         Don't install charset.alias on MacOS X >= 10.3.
41399         * lib/localcharset.c (DARWIN7): New macro.
41400         (get_charset_aliases): Hardcode the result for Darwin7.
41401         * modules/localcharset (install-exec-local): Don't install
41402         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
41403
41404 2009-01-25  Bruno Haible  <bruno@clisp.org>
41405
41406         Don't install charset.alias on mingw and Cygwin.
41407         * modules/localcharset (install-exec-local): Don't install
41408         charset.alias on mingw and Cygwin, if the file does not yet exist.
41409         The result for these platforms is hardcoded in localcharset.c.
41410
41411 2009-01-25  Bruno Haible  <bruno@clisp.org>
41412
41413         Make it possible again to use AC_GNU_SOURCE together with gnulib.
41414         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
41415         before requiring AC_USE_SYSTEM_EXTENSIONS.
41416
41417 2009-01-25  Jim Meyering  <meyering@redhat.com>
41418
41419         c-strtod: avoid warnings
41420         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
41421         "assignment discards qualifiers from pointer target type" warnings.
41422
41423 2009-01-24  Bruno Haible  <bruno@clisp.org>
41424
41425         Add support for non-UTF-8 locales on MacOS X.
41426         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
41427         canonical encodings. For Darwin 7 and newer, don't map traditional
41428         encodings to UTF-8.
41429         Reported by Vincent Lefevre <vincent@vinc17.org>
41430         at <http://savannah.gnu.org/bugs/?25235>.
41431
41432 2009-01-24  Bruno Haible  <bruno@clisp.org>
41433
41434         * doc/gnulib.texi (Obsolete modules): New section.
41435         Reported by Mike Frysinger <vapier@gentoo.org>.
41436
41437 2009-01-24  Bruno Haible  <bruno@clisp.org>
41438
41439         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
41440         (%.dvi): New rule.
41441
41442 2009-01-24  Bruno Haible  <bruno@clisp.org>
41443
41444         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
41445         Reported by Eric Blake.
41446
41447 2009-01-24  Bruno Haible  <bruno@clisp.org>
41448
41449         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
41450         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
41451         Reported by Gary V. Vaughan <gary@gnu.org>.
41452
41453 2009-01-24  Bruno Haible  <bruno@clisp.org>
41454
41455         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
41456
41457 2009-01-23  Bruno Haible  <bruno@clisp.org>
41458
41459         Make c-strtod, c-strtold usable in libraries.
41460         * lib/c-strtod.c: Include string.h instead of xalloc.h.
41461         (C_STRTOD): Call strdup instead of xstrdup.
41462         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
41463         * modules/c-strtold (Depends-on): Likewise.
41464         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
41465         * NEWS: Mention the change.
41466         Reported by Michael Gold <mgold@ncf.ca>.
41467
41468 2009-01-23  Jim Meyering  <meyering@redhat.com>
41469
41470         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
41471         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
41472         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
41473
41474 2009-01-23  Simon Josefsson  <simon@josefsson.org>
41475
41476         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
41477         GNU CoreUtils.
41478         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
41479         * modules/version-etc (Description): Update.
41480
41481 2009-01-22  Bruno Haible  <bruno@clisp.org>
41482
41483         Cache the C locale object.
41484         * lib/c-strtod.c (c_locale_cache): New variable.
41485         (c_locale): New function.
41486         (C_STRTOD): Use it, and don't call freelocale.
41487         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
41488         Suggested by Paolo Bonzini.
41489
41490 2009-01-21  Bruno Haible  <bruno@clisp.org>
41491
41492         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
41493         conditions other than overflow.
41494
41495 2009-01-21  Bruno Haible  <bruno@clisp.org>
41496
41497         * lib/c-strtod.c: Include errno.h.
41498         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
41499         value from STRTOD_L and STRTOD.
41500
41501 2009-01-21  Bruno Haible  <bruno@clisp.org>
41502         and Jim Meyering  <meyering@redhat.com>
41503
41504         nanosleep: skip configure test (fail it) for apple universal builds
41505         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
41506         universal builds, assume that nanosleep does not work.
41507         * modules/nanosleep (Depends-on): Add multiarch.
41508
41509         mktime: skip configure test (fail it) for apple universal builds
41510         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
41511         universal builds, assume that mktime does not work.
41512         * modules/mktime (Depends-on): Add multiarch.
41513
41514 2009-01-21  Eric Blake  <ebb9@byu.net>
41515
41516         multiarch: avoid expand-before-require warning
41517         * modules/multiarch (configure.ac): Require, rather than expand,
41518         gl_MULTIARCH.
41519         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
41520         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
41521         enforce that all clients require it.  Partial reversion of
41522         2008-12-29 patch.
41523
41524         error: avoid expand-before-require warning
41525         * modules/errno (configure.ac): Require, rather than expand,
41526         gl_HEADER_ERRNO_H.
41527         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
41528         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
41529         enforce that all clients require it.
41530
41531         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
41532         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
41533         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
41534         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
41535
41536 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
41537
41538         Revert:
41539         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
41540
41541         regex: do not depend on obsolete modules.
41542         * modules/regex: Remove memcmp and memmove.
41543
41544 2009-01-20  Bruno Haible  <bruno@clisp.org>
41545
41546         Make the 'link' module link on Windows NT 4.
41547         * lib/link.c (_WIN32_WINNT): Don't define.
41548         (CreateHardLinkFuncType): New type.
41549         (CreateHardLinkFunc, initialized): New variables.
41550         (initialize): New function.
41551         (link): Invoke CreateHardLink indirectly through the function pointer.
41552
41553 2009-01-20  Bruno Haible  <bruno@clisp.org>
41554
41555         Fix compilation failure on mingw.
41556         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
41557
41558 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
41559
41560         * doc/c-strtod.texi: Mention a couple of restrictions.
41561
41562 2009-01-20  Jim Meyering  <meyering@redhat.com>
41563
41564         gettimeofday: move more declarations out of functions
41565         * lib/gettimeofday.c: Move extern declarations of tzset and
41566         gmtime out of containing functions.  Prompted by Bruno Haible.
41567
41568 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
41569
41570         regex: do not depend on obsolete modules.
41571         * modules/regex: Remove memcmp and memmove.
41572
41573 2009-01-19  Bruno Haible  <bruno@clisp.org>
41574
41575         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
41576         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
41577         gl_BIGENDIAN, not AC_C_BIGENDIAN.
41578         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
41579         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
41580
41581 2009-01-19  Bruno Haible  <bruno@clisp.org>
41582
41583         * tests/test-link.c: Include <errno.h>.
41584         (main): Exit with code 77 when a hard link cannot be created due to
41585         the file system.
41586         * tests/test-link.sh: Skip test when a hard link cannot be created due
41587         to the file system.
41588         Suggested by Eric Blake.
41589
41590 2009-01-19  Martin Lambers  <marlam@marlam.de>
41591
41592         * modules/link-tests: New file.
41593         * tests/test-link.sh: New file.
41594         * tests/test-link.c: New file.
41595
41596 2009-01-19  Eric Blake  <ebb9@byu.net>
41597
41598         doc: mention another function added in cygwin 1.7.0
41599         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
41600         Another new function in cygwin 1.7.
41601
41602 2009-01-19  Bruno Haible  <bruno@clisp.org>
41603
41604         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
41605         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
41606         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
41607         gl_BIGENDIAN, not AC_C_BIGENDIAN.
41608         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
41609         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
41610         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
41611         * m4/md4.m4 (gl_MD4): Likewise.
41612         * m4/md5.m4 (gl_MD5): Likewise.
41613         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
41614         * m4/sha1.m4 (gl_SHA1): Likewise.
41615         * m4/sha256.m4 (gl_SHA256): Likewise.
41616         * m4/sha512.m4 (gl_SHA512): Likewise.
41617
41618 2009-01-19  Bruno Haible  <bruno@clisp.org>
41619
41620         * modules/uniname/uniname-tests (Depends-on): Add progname.
41621         * tests/uniname/test-uninames.c: Include progname.h.
41622         (main): Call set_program_name.
41623
41624         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
41625         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
41626         (main): Call set_program_name.
41627
41628         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
41629         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
41630         (main): Call set_program_name.
41631
41632         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
41633         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
41634         (main): Call set_program_name.
41635
41636         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
41637         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
41638         (main): Call set_program_name.
41639
41640         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
41641         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
41642         (main): Call set_program_name.
41643
41644         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
41645         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
41646         (main): Call set_program_name.
41647
41648         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
41649         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
41650         (main): Call set_program_name.
41651
41652         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
41653         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
41654         (main): Call set_program_name.
41655
41656 2009-01-19  Eric Blake  <ebb9@byu.net>
41657
41658         test-unistd: test previous patch
41659         * tests/test-unistd.c: Test *_FILENO macros.
41660
41661         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
41662         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
41663         Guarantee a definition.
41664         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
41665         * modules/unistd-safer (Depends-on): Add dependency on unistd.
41666         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
41667         * lib/dup-safer.c (STDERR_FILENO): Likewise.
41668         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
41669         Likewise.
41670         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
41671         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
41672         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
41673         Likewise.
41674         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
41675         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
41676         (STDERR_FILENO): Likewise.
41677         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
41678         (STDERR_FILENO): Likewise.
41679         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
41680         (STDERR_FILENO): Likewise.
41681         Reported by Elbert Pol.
41682
41683 2009-01-19  Eric Blake  <ebb9@byu.net>
41684
41685         doc: mention more functions added in cygwin 1.7.0
41686         * doc/posix-functions/abort.texi (abort): Update wording related
41687         to cygwin.
41688         * doc/posix-functions/daylight.texi (daylight): Likewise.
41689         * doc/posix-functions/optarg.texi (optarg): Likewise.
41690         * doc/posix-functions/optarg.texi (opterr): Likewise.
41691         * doc/posix-functions/optarg.texi (optind): Likewise.
41692         * doc/posix-functions/optarg.texi (optopt): Likewise.
41693         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
41694         worked in 1.5.x, and was withdrawn in 1.7.
41695         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
41696         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
41697         cygwin versions.
41698         * doc/posix-functions/perror.texi (perror): Likewise.
41699         * doc/posix-functions/printf.texi (printf): Likewise.
41700         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
41701         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
41702         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
41703         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
41704         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
41705         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
41706         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
41707         Likewise.
41708         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
41709         Likewise.
41710         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
41711         this function.
41712         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
41713         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
41714         Likewise.
41715         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
41716         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
41717         * doc/posix-functions/confstr.texi (confstr): Likewise.
41718         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
41719         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
41720         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
41721         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
41722         * doc/posix-functions/fputws.texi (fputws): Likewise.
41723         * doc/posix-functions/fwide.texi (fwide): Likewise.
41724         * doc/posix-functions/getwc.texi (getwc): Likewise.
41725         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
41726         * doc/posix-functions/putwc.texi (putwc): Likewise.
41727         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
41728         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
41729         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
41730         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
41731         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
41732         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
41733         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
41734         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
41735         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
41736         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
41737         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
41738
41739 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
41740
41741         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
41742         * lib/ioctl.c: Include <sys/ioctl.h>.
41743
41744 2009-01-19  Simon Josefsson  <simon@josefsson.org>
41745
41746         * modules/getdate-tests (Depends-on): Add progname.
41747         * tests/test-getdate.c: Use progname module, to avoid link errors
41748         on non-glibc systems.
41749
41750 2009-01-18  Simon Josefsson  <simon@josefsson.org>
41751
41752         * modules/filenamecat-tests (Depends-on): Add progname.
41753         * modules/fstrcmp-tests (Depends-on): Likewise.
41754
41755         * tests/test-filenamecat.c: Use progname module, to avoid link
41756         errors on non-glibc systems.
41757         * tests/test-fstrcmp.c: Likewise.
41758
41759 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
41760
41761         gettimeofday: avoid warning: nested extern declaration of 'localtime'
41762         * lib/gettimeofday.c: Move extern declaration out of function.
41763
41764 2009-01-18  Bruno Haible  <bruno@clisp.org>
41765
41766         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
41767         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
41768         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
41769
41770 2009-01-18  Bruno Haible  <bruno@clisp.org>
41771
41772         * lib/strftime.c (MEMPCPY): Remove unused macro.
41773         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
41774
41775 2009-01-18  Martin Lambers  <marlam@marlam.de>
41776
41777         New module 'link'.
41778         * lib/unistd.in.h (link): New declaration.
41779         * lib/link.c: New file.
41780         * m4/link.m4: New file.
41781         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
41782         HAVE_LINK.
41783         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
41784         * modules/link: New file.
41785         * doc/posix-functions/link.texi: Mention the new module.
41786
41787 2009-01-18  Bruno Haible  <bruno@clisp.org>
41788
41789         * tests/test-avltree_list.c (main): Call set_program_name.
41790         * tests/test-avltree_oset.c (main): Likewise.
41791         * tests/test-obstack-printf.c: Include progname.h.
41792         (main): Call set_program_name.
41793         * tests/test-quotearg.c: Include progname.h.
41794         (main): Call set_program_name.
41795         * tests/test-xmemdup0.c: Include progname.h.
41796         (main): Call set_program_name.
41797
41798 2009-01-18  Bruno Haible  <bruno@clisp.org>
41799
41800         New module 'alphasort'.
41801         * lib/dirent.in.h (alphasort): New declaration.
41802         * lib/alphasort.c: New file, from glibc with modifications.
41803         * m4/alphasort.m4: New file.
41804         * modules/alphasort: New file.
41805         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
41806         HAVE_ALPHASORT.
41807         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
41808         HAVE_ALPHASORT.
41809         * doc/posix-functions/alphasort.texi: Mention the new module and the
41810         portability problems.
41811
41812 2009-01-18  Bruno Haible  <bruno@clisp.org>
41813
41814         New module 'scandir'.
41815         * lib/dirent.in.h (scandir): New declaration.
41816         * lib/scandir.c: New file, from glibc with modifications.
41817         * m4/scandir.m4: New file.
41818         * modules/scandir: New file.
41819         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
41820         HAVE_SCANDIR.
41821         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
41822         HAVE_SCANDIR.
41823         * doc/posix-functions/scandir.texi: Mention the new module and the
41824         portability problems.
41825
41826 2009-01-17  Bruno Haible  <bruno@clisp.org>
41827
41828         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
41829         Update documentation.
41830         (func_remove_suffix): Escape all dots in the suffix. Update
41831         documentation.
41832         (func_filter_filelist): Update documentation.
41833         Reported by Ralf Wildenhues.
41834
41835 2009-01-17  Bruno Haible  <bruno@clisp.org>
41836
41837         * modules/dprintf-posix-tests: New file.
41838         * tests/test-dprintf-posix.sh: New file.
41839         * tests/test-dprintf-posix.c: New file.
41840
41841         New modules 'dprintf', 'dprintf-posix'.
41842         * lib/stdio.in.h (dprintf): New declaration.
41843         * lib/dprintf.c: New file.
41844         * m4/dprintf.m4: New file.
41845         * m4/dprintf-posix.m4: New file.
41846         * modules/dprintf: New file.
41847         * modules/dprintf-posix: New file.
41848         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
41849         HAVE_DPRINTF, REPLACE_DPRINTF.
41850         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
41851         HAVE_DPRINTF, REPLACE_DPRINTF.
41852         * doc/posix-functions/dprintf.texi: Mention the new modules.
41853
41854 2009-01-17  Bruno Haible  <bruno@clisp.org>
41855
41856         * modules/vdprintf-posix-tests: New file.
41857         * tests/test-vdprintf-posix.sh: New file.
41858         * tests/test-vdprintf-posix.c: New file.
41859
41860         New modules 'vdprintf', 'vdprintf-posix'.
41861         * lib/stdio.in.h (vdprintf): New declaration.
41862         * lib/vdprintf.c: New file.
41863         * m4/vdprintf.m4: New file.
41864         * m4/vdprintf-posix.m4: New file.
41865         * modules/vdprintf: New file.
41866         * modules/vdprintf-posix: New file.
41867         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
41868         HAVE_VDPRINTF, REPLACE_VDPRINTF.
41869         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
41870         HAVE_VDPRINTF, REPLACE_VDPRINTF.
41871         * doc/posix-functions/vdprintf.texi: Mention the new modules.
41872
41873 2009-01-17  Bruno Haible  <bruno@clisp.org>
41874
41875         Fix replacement of fopen on mingw.
41876         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
41877         mingw.
41878
41879 2009-01-17  Bruno Haible  <bruno@clisp.org>
41880
41881         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
41882         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
41883
41884 2009-01-17  Bruno Haible  <bruno@clisp.org>
41885
41886         Avoid test-fflush2.sh failure on mingw.
41887         * tests/test-fflush2.c: Include binary-io.h.
41888         (main): Put standard input into binary mode.
41889         * modules/fflush-tests (Depends-on): Add binary-io.
41890
41891 2009-01-17  Bruno Haible  <bruno@clisp.org>
41892
41893         * lib/wchar.in.h: In another particular situation, include only the
41894         system's <wchar.h> file.
41895         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
41896         Reported by Albert Chin-A-Young <china@thewrittenword.com>
41897         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
41898
41899 2009-01-17  Bruno Haible  <bruno@clisp.org>
41900
41901         Support for stripping executables in --enable-relocatable.
41902         * build-aux/install-reloc: Expect one more argument, or an environment
41903         variable RELOC_STRIP_PROG. If set, strip the destination program and
41904         its wrapper.
41905         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
41906         RELOC_STRIP_PROG.
41907         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
41908         to set RELOCATABLE_STRIP.
41909         * NEWS: Mention the new Makefile requirement.
41910
41911 2009-01-17  Bruno Haible  <bruno@clisp.org>
41912
41913         * build-aux/install-reloc: Remove debugging information left over by
41914         C compiler on MacOS X.
41915
41916 2009-01-17  Bruno Haible  <bruno@clisp.org>
41917
41918         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
41919         * lib/progreloc.c (find_executable): Fix type of pointer passed to
41920         _NSGetExecutablePath.
41921
41922 2009-01-16  Jim Meyering  <meyering@redhat.com>
41923
41924         strerror: avoid warnings about discarding "const"
41925         * lib/strerror.c (rpl_strerror): Instead of returning a const
41926         string from each and every "case", use a variable, and add a single
41927         cast after the switch.
41928
41929 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
41930
41931         * lib/arpa_inet.in.h: Add extern "C" block for C++.
41932
41933 2009-01-16  Bruno Haible  <bruno@clisp.org>
41934
41935         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
41936         array initializer syntax that also works in C++ mode.
41937         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
41938
41939 2009-01-16  Jim Meyering  <meyering@redhat.com>
41940
41941         poll: suppress a warning
41942         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
41943         to ignore "...unsigned expression < 0 is always false" warnings.
41944
41945 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
41946
41947         poll: remove declarations of unused variables
41948         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
41949         sockbuf and optlen.
41950
41951 2009-01-15  Bruno Haible  <bruno@clisp.org>
41952
41953         Make fflush-after-ungetc POSIX compliant on BSD systems.
41954         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
41955         (clear_ungetc_buffer): Implement also for other systems.
41956         (rpl_fflush): On glibc systems, invoke
41957         clear_ungetc_buffer_preserving_position. Otherwise, invoke
41958         clear_ungetc_buffer after fetching the stream's position, not before.
41959
41960 2009-01-15  Bruno Haible  <bruno@clisp.org>
41961
41962         Make fflush-after-ungetc POSIX compliant on glibc systems.
41963         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
41964         after ungetc.
41965         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
41966         (rpl_fflush): On glibc systems, simply call the system's fflush
41967         function after clearing the ungetc buffer.
41968         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
41969         Instead, lseek only to the end of file, then use the system's fseeko
41970         for the rest. On glibc systems, reset the EOF indicator bit.
41971
41972 2009-01-15  Jim Meyering  <meyering@redhat.com>
41973
41974         openmp.m4: revert quote-adding change, for portability to older autoconf
41975         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
41976         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
41977         Simon Josefsson noticed the problem when using autoconf-2.61.
41978
41979 2009-01-15  Bruno Haible  <bruno@clisp.org>
41980
41981         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
41982         * tests/test-fflush2.c (ASSERT): Always fail.
41983         (main): Add two tests for fflush() after ungetc(), taking into account
41984         the Austin Group's clarification.
41985         Suggested by Eric Blake.
41986
41987 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
41988
41989         mktime.m4: remove K&R-style function prototypes
41990         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
41991         for the Sun C++ compiler.
41992
41993 2009-01-14  Bruno Haible  <bruno@clisp.org>
41994
41995         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
41996         while including <wchar.h>.
41997         * lib/wchar.in.h: In two particular situations on HP-UX, include only
41998         the system's <wchar.h> file.
41999         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
42000
42001 2009-01-14  Bruno Haible  <bruno@clisp.org>
42002
42003         * m4/csharp.m4: Don't mention gettext on the serial number line.
42004         * m4/csharpexec.m4: Likewise.
42005         * m4/eaccess.m4: Likewise.
42006         * m4/javaexec.m4: Likewise.
42007         * m4/sig_atomic_t.m4: Likewise.
42008         * m4/tmpdir.m4: Likewise.
42009         * m4/intldir.m4: Bump gettext version.
42010         * m4/lib-ld.m4: Likewise.
42011
42012 2009-01-14  Bruno Haible  <bruno@clisp.org>
42013
42014         * lib/progname.c (set_program_name): Add more comments.
42015         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
42016
42017 2009-01-14  Simon Josefsson  <simon@josefsson.org>
42018
42019         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
42020         were sys/stat.h does not define it.
42021
42022 2009-01-14  Jim Meyering  <meyering@redhat.com>
42023
42024         many *.m4 files: improve m4 quoting
42025         99% of this change was performed by running the following commands:
42026         git ls-files | grep '\.m4$' | xargs perl -pi \
42027           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
42028           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
42029           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
42030           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
42031         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
42032         The remainder were to add Copyright dates, increment serial numbers,
42033         undo some changes in comments, exclude m4/intl.m4, and add quotes
42034         around the "1" in ",1" where the unusual spacing prohibited the
42035         above regexps from doing the job.  For more details, see
42036         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
42037         * m4/acl.m4: Modified.
42038         * m4/afs.m4: Likewise.
42039         * m4/alloca.m4: Likewise.
42040         * m4/argp.m4: Likewise.
42041         * m4/argz.m4: Likewise.
42042         * m4/atexit.m4: Likewise.
42043         * m4/bison-i18n.m4: Likewise.
42044         * m4/bison.m4: Likewise.
42045         * m4/byteswap.m4: Likewise.
42046         * m4/c-stack.m4: Likewise.
42047         * m4/c-strtod.m4: Likewise.
42048         * m4/calloc.m4: Likewise.
42049         * m4/canonicalize-lgpl.m4: Likewise.
42050         * m4/chown.m4: Likewise.
42051         * m4/clock_time.m4: Likewise.
42052         * m4/codeset.m4: Likewise.
42053         * m4/copy-file.m4: Likewise.
42054         * m4/csharp.m4: Likewise.
42055         * m4/csharpcomp.m4: Likewise.
42056         * m4/csharpexec.m4: Likewise.
42057         * m4/d-ino.m4: Likewise.
42058         * m4/d-type.m4: Likewise.
42059         * m4/dirfd.m4: Likewise.
42060         * m4/double-slash-root.m4: Likewise.
42061         * m4/eaccess.m4: Likewise.
42062         * m4/eealloc.m4: Likewise.
42063         * m4/environ.m4: Likewise.
42064         * m4/errno_h.m4: Likewise.
42065         * m4/euidaccess.m4: Likewise.
42066         * m4/execute.m4: Likewise.
42067         * m4/fatal-signal.m4: Likewise.
42068         * m4/fchdir.m4: Likewise.
42069         * m4/fcntl_h.m4: Likewise.
42070         * m4/fileblocks.m4: Likewise.
42071         * m4/filenamecat.m4: Likewise.
42072         * m4/findprog.m4: Likewise.
42073         * m4/flexmember.m4: Likewise.
42074         * m4/fnmatch.m4: Likewise.
42075         * m4/fopen.m4: Likewise.
42076         * m4/fpending.m4: Likewise.
42077         * m4/fprintf-posix.m4: Likewise.
42078         * m4/free.m4: Likewise.
42079         * m4/frexp.m4: Likewise.
42080         * m4/frexpl.m4: Likewise.
42081         * m4/fsusage.m4: Likewise.
42082         * m4/ftruncate.m4: Likewise.
42083         * m4/gc-camellia.m4: Likewise.
42084         * m4/gc-random.m4: Likewise.
42085         * m4/gc.m4: Likewise.
42086         * m4/getaddrinfo.m4: Likewise.
42087         * m4/getcwd-abort-bug.m4: Likewise.
42088         * m4/getcwd-path-max.m4: Likewise.
42089         * m4/getdate.m4: Likewise.
42090         * m4/getdomainname.m4: Likewise.
42091         * m4/getgroups.m4: Likewise.
42092         * m4/gethostname.m4: Likewise.
42093         * m4/gethrxtime.m4: Likewise.
42094         * m4/getline.m4: Likewise.
42095         * m4/getloadavg.m4: Likewise.
42096         * m4/getndelim2.m4: Likewise.
42097         * m4/getpass.m4: Likewise.
42098         * m4/gettext.m4: Likewise.
42099         * m4/gettime.m4: Likewise.
42100         * m4/gettimeofday.m4: Likewise.
42101         * m4/gnulib-common.m4: Likewise.
42102         * m4/group-member.m4: Likewise.
42103         * m4/host-os.m4: Likewise.
42104         * m4/iconv.m4: Likewise.
42105         * m4/iconv_open.m4: Likewise.
42106         * m4/inet_ntop.m4: Likewise.
42107         * m4/inet_pton.m4: Likewise.
42108         * m4/inline.m4: Likewise.
42109         * m4/intldir.m4: Likewise.
42110         * m4/intlmacosx.m4: Likewise.
42111         * m4/intmax.m4: Likewise.
42112         * m4/intmax_t.m4: Likewise.
42113         * m4/inttypes.m4: Likewise.
42114         * m4/inttypes_h.m4: Likewise.
42115         * m4/inttypes-pri.m4: Likewise.
42116         * m4/isapipe.m4: Likewise.
42117         * m4/isnand.m4: Likewise.
42118         * m4/isnanf.m4: Likewise.
42119         * m4/isnanl.m4: Likewise.
42120         * m4/javacomp.m4: Likewise.
42121         * m4/javaexec.m4: Likewise.
42122         * m4/jm-winsz1.m4: Likewise.
42123         * m4/jm-winsz2.m4: Likewise.
42124         * m4/lchown.m4: Likewise.
42125         * m4/lcmessage.m4: Likewise.
42126         * m4/ldexpl.m4: Likewise.
42127         * m4/lib-ld.m4: Likewise.
42128         * m4/lib-link.m4: Likewise.
42129         * m4/libsigsegv.m4: Likewise.
42130         * m4/link-follow.m4: Likewise.
42131         * m4/localcharset.m4: Likewise.
42132         * m4/locale-fr.m4: Likewise.
42133         * m4/locale-ja.m4: Likewise.
42134         * m4/locale-tr.m4: Likewise.
42135         * m4/locale-zh.m4: Likewise.
42136         * m4/lock.m4: Likewise.
42137         * m4/longlong.m4: Likewise.
42138         * m4/ls-mntd-fs.m4: Likewise.
42139         * m4/lstat.m4: Likewise.
42140         * m4/malloc.m4: Likewise.
42141         * m4/mathl.m4: Likewise.
42142         * m4/mbrtowc.m4: Likewise.
42143         * m4/mbstate_t.m4: Likewise.
42144         * m4/mbswidth.m4: Likewise.
42145         * m4/memchr.m4: Likewise.
42146         * m4/memcmp.m4: Likewise.
42147         * m4/memcpy.m4: Likewise.
42148         * m4/memmem.m4: Likewise.
42149         * m4/memmove.m4: Likewise.
42150         * m4/mempcpy.m4: Likewise.
42151         * m4/memrchr.m4: Likewise.
42152         * m4/memset.m4: Likewise.
42153         * m4/minmax.m4: Likewise.
42154         * m4/mkdir-slash.m4: Likewise.
42155         * m4/mkdtemp.m4: Likewise.
42156         * m4/mktime.m4: Likewise.
42157         * m4/mmap-anon.m4: Likewise.
42158         * m4/mountlist.m4: Likewise.
42159         * m4/nanosleep.m4: Likewise.
42160         * m4/nls.m4: Likewise.
42161         * m4/nocrash.m4: Likewise.
42162         * m4/open.m4: Likewise.
42163         * m4/openat.m4: Likewise.
42164         * m4/openmp.m4: Likewise.
42165         * m4/pathmax.m4: Likewise.
42166         * m4/perl.m4: Likewise.
42167         * m4/physmem.m4: Likewise.
42168         * m4/pipe.m4: Likewise.
42169         * m4/po.m4: Likewise.
42170         * m4/poll.m4: Likewise.
42171         * m4/posixtm.m4: Likewise.
42172         * m4/posixver.m4: Likewise.
42173         * m4/printf-frexp.m4: Likewise.
42174         * m4/printf-frexpl.m4: Likewise.
42175         * m4/printf-posix.m4: Likewise.
42176         * m4/printf-posix-rpl.m4: Likewise.
42177         * m4/printf.m4: Likewise.
42178         * m4/progtest.m4: Likewise.
42179         * m4/putenv.m4: Likewise.
42180         * m4/readline.m4: Likewise.
42181         * m4/readlink.m4: Likewise.
42182         * m4/readutmp.m4: Likewise.
42183         * m4/realloc.m4: Likewise.
42184         * m4/regex.m4: Likewise.
42185         * m4/relocatable.m4: Likewise.
42186         * m4/relocatable-lib.m4: Likewise.
42187         * m4/rename-dest-slash.m4: Likewise.
42188         * m4/rename.m4: Likewise.
42189         * m4/rmdir-errno.m4: Likewise.
42190         * m4/rmdir.m4: Likewise.
42191         * m4/roundf.m4: Likewise.
42192         * m4/roundl.m4: Likewise.
42193         * m4/rpmatch.m4: Likewise.
42194         * m4/save-cwd.m4: Likewise.
42195         * m4/selinux-selinux-h.m4: Likewise.
42196         * m4/setenv.m4: Likewise.
42197         * m4/settime.m4: Likewise.
42198         * m4/sig2str.m4: Likewise.
42199         * m4/sig_atomic_t.m4: Likewise.
42200         * m4/signalblocking.m4: Likewise.
42201         * m4/signbit.m4: Likewise.
42202         * m4/sigpipe.m4: Likewise.
42203         * m4/sockets.m4: Likewise.
42204         * m4/sockpfaf.m4: Likewise.
42205         * m4/st_dm_mode.m4: Likewise.
42206         * m4/stat-time.m4: Likewise.
42207         * m4/stdbool.m4: Likewise.
42208         * m4/stdint.m4: Likewise.
42209         * m4/stdint_h.m4: Likewise.
42210         * m4/stpcpy.m4: Likewise.
42211         * m4/stpncpy.m4: Likewise.
42212         * m4/strcase.m4: Likewise.
42213         * m4/strchrnul.m4: Likewise.
42214         * m4/strcspn.m4: Likewise.
42215         * m4/strdup.m4: Likewise.
42216         * m4/strftime.m4: Likewise.
42217         * m4/strndup.m4: Likewise.
42218         * m4/strnlen.m4: Likewise.
42219         * m4/strpbrk.m4: Likewise.
42220         * m4/strptime.m4: Likewise.
42221         * m4/strsep.m4: Likewise.
42222         * m4/strtod.m4: Likewise.
42223         * m4/strtoimax.m4: Likewise.
42224         * m4/strtok_r.m4: Likewise.
42225         * m4/strtol.m4: Likewise.
42226         * m4/strtoll.m4: Likewise.
42227         * m4/strtoul.m4: Likewise.
42228         * m4/strtoull.m4: Likewise.
42229         * m4/strtoumax.m4: Likewise.
42230         * m4/strverscmp.m4: Likewise.
42231         * m4/threadlib.m4: Likewise.
42232         * m4/timegm.m4: Likewise.
42233         * m4/tm_gmtoff.m4: Likewise.
42234         * m4/tmpdir.m4: Likewise.
42235         * m4/tmpfile.m4: Likewise.
42236         * m4/tzset.m4: Likewise.
42237         * m4/uintmax_t.m4: Likewise.
42238         * m4/unlinkdir.m4: Likewise.
42239         * m4/unlocked-io.m4: Likewise.
42240         * m4/uptime.m4: Likewise.
42241         * m4/userspec.m4: Likewise.
42242         * m4/utimbuf.m4: Likewise.
42243         * m4/utime.m4: Likewise.
42244         * m4/utimes-null.m4: Likewise.
42245         * m4/utimes.m4: Likewise.
42246         * m4/vararrays.m4: Likewise.
42247         * m4/vasnprintf.m4: Likewise.
42248         * m4/vfprintf-posix.m4: Likewise.
42249         * m4/vprintf-posix.m4: Likewise.
42250         * m4/wait-process.m4: Likewise.
42251         * m4/wchar_t.m4: Likewise.
42252         * m4/wint_t.m4: Likewise.
42253         * m4/write-any-file.m4: Likewise.
42254         * m4/yield.m4: Likewise.
42255
42256 2009-01-13  Bruno Haible  <bruno@clisp.org>
42257
42258         Avoid test-copy-file.sh failures when ACL support insufficient.
42259         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
42260         TESTS_ENVIRONMENT.
42261         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
42262         Reported by Jim Meyering.
42263
42264 2009-01-13  Bruno Haible  <bruno@clisp.org>
42265
42266         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
42267         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
42268         * modules/unistdio/u8-printf-parse (Files): Likewise.
42269         * modules/unistdio/u32-printf-parse (Files): Likewise.
42270         * modules/unistdio/ulc-printf-parse (Files): Likewise.
42271
42272 2009-01-13  Simon Josefsson  <simon@josefsson.org>
42273
42274         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
42275         and m4/inttypes_h.m4 too.
42276
42277 2009-01-12  Eric Blake  <ebb9@byu.net>
42278
42279         tests: IRIX 6.2 cc can't compile -0.0 into .data
42280         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
42281         rather than at compile-time.
42282         * tests/test-floorl.c (minus_zero): Likewise.
42283         * tests/test-frexpl.c (minus_zero): Likewise.
42284         * tests/test-isnan.c (minus_zerol): Likewise.
42285         * tests/test-isnanl.h (minus_zero): Likewise.
42286         * tests/test-ldexpl.c (minus_zero): Likewise.
42287         * tests/test-roundl.c (minus_zero): Likewise.
42288         * tests/test-signbit.c (minus_zerol): Likewise.
42289         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
42290         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
42291         * tests/test-truncl.c (minus_zero): Likewise.
42292         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
42293         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
42294         Reported by Tom G. Christensen and Nelson H. F. Beebe.
42295
42296 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
42297
42298         regex: fix glibc bug 9697
42299         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
42300         handling.
42301
42302 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
42303
42304         regex: fix glibc bug 697
42305         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
42306         being NULL also if there are no backreferences.
42307
42308 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
42309
42310         regex: merge glibc changes
42311         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
42312         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
42313         re_string_skip_chars, re_string_reconstruct): Likewise.
42314         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
42315
42316 2009-01-07  Jim Meyering  <meyering@redhat.com>
42317
42318         poll: filter through cppi
42319         * lib/poll.c: Indent cpp directives to reflect nesting.
42320
42321 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
42322
42323         poll: don't return uninitialized
42324         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
42325
42326 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
42327
42328         avoid compile failure on AIX 6.1
42329         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
42330         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
42331
42332 2009-01-04  Jim Meyering  <meyering@redhat.com>
42333
42334         remove duplicate inclusion of <stdio.h>
42335         * tests/test-fprintf-posix.c: Likewise.
42336         * tests/test-printf-posix.c: Likewise.
42337         * tests/test-snprintf-posix.c: Likewise.
42338         * tests/test-sprintf-posix.c: Likewise.
42339         * tests/test-vasprintf-posix.c: Likewise.
42340         * tests/test-vfprintf-posix.c: Likewise.
42341         * tests/test-vprintf-posix.c: Likewise.
42342         * tests/test-vsnprintf-posix.c: Likewise.
42343         * tests/test-vsprintf-posix.c: Likewise.
42344
42345 2009-01-03  Jim Meyering  <meyering@redhat.com>
42346
42347         gnulib-tool: fix sed-based filtering
42348         * gnulib-tool (func_filter_filelist): Remove extra backslash
42349         in sed_fff_filter definition.
42350
42351 2009-01-02  Jim Meyering  <meyering@redhat.com>
42352
42353         strftime: avoid compilation failure on Solaris 2.6
42354         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
42355         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
42356         Don't #define mbrlen or mbsinit, since now they're guaranteed to
42357         be available.  Reported by Tom G. Christensen.  Details in
42358         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
42359
42360 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42361             Bruno Haible  <bruno@clisp.org>
42362
42363         Speed up gnulib-tool by doing more string processing through shell
42364         built-ins.
42365         * gnulib-tool (fast_func_append): New variable.
42366         (func_remove_prefix, func_remove_suffix): New functions.
42367         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
42368         (func_filter_filelist): New function.
42369         (func_get_dependencies): Use func_remove_suffix instead of sed.
42370         (func_get_automake_snippet): Use func_filter_filelist instead of a
42371         subshell and sed invocation.
42372
42373 2009-01-01  Bruno Haible  <bruno@clisp.org>
42374
42375         Fix a security bug.
42376         * gnulib-tool (func_import, import, update): Don't allow the characters
42377         '"', '$', '`', '\' in macro arguments that become part of commands that
42378         are evaluated.
42379
42380 2009-01-01  Bruno Haible  <bruno@clisp.org>
42381
42382         * gnulib-tool (func_reset_sigpipe): Add more comments.
42383
42384 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42385
42386         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
42387         func_emit_tests_Makefile_am, func_import): Abort loops early if we
42388         already know the answer.
42389
42390 2009-01-01  Jim Meyering  <meyering@redhat.com>
42391
42392         * lib/version-etc.c (version_etc_va): Update copyright year.
42393
42394 2008-12-30  Bruno Haible  <bruno@clisp.org>
42395
42396         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
42397         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
42398         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
42399
42400 2008-12-29  Eric Blake  <ebb9@byu.net>
42401
42402         multiarch: avoid autoconf AC_REQUIRE bug
42403         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
42404         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
42405         2.63 and older.
42406         Reported by Bruno Haible, and analyzed in
42407         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
42408
42409 2008-12-29  Bruno Haible  <bruno@clisp.org>
42410
42411         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
42412         files in subdirectories correctly.
42413         Reported by Ralf Wildenhues.
42414
42415 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42416
42417         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
42418         rather than 'join FILE -', for Solaris join.
42419
42420 2008-12-29  Bruno Haible  <bruno@clisp.org>
42421
42422         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
42423         quoting.
42424         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
42425         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
42426         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
42427         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
42428         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
42429         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
42430         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
42431         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
42432         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
42433         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
42434         * m4/nls.m4 (AM_NLS): Likewise.
42435         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
42436         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
42437         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
42438         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
42439         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
42440         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
42441         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
42442         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
42443         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
42444         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
42445         * m4/xsize.m4 (gl_XSIZE): Likewise.
42446         Suggested by Jim Meyering.
42447
42448 2008-11-17  Bruce Korb  <bkorb@gnu.org>
42449
42450         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
42451         * lib/parse-duration.c: use a switch instead of cascading if's.
42452
42453 2008-12-29  Eric Blake  <ebb9@byu.net>
42454
42455         wchar.h: supply WEOF on Irix 5.3
42456         * lib/wchar.in.h (wint_t): Also supply WEOF.
42457         * lib/wctype.in.h (wint_t): Likewise.
42458         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
42459         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
42460         Reported by Tom G. Christensen.
42461
42462 2008-12-26  Bruno Haible  <bruno@clisp.org>
42463
42464         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
42465         i486, i586, i686.
42466
42467 2008-12-26  Bruno Haible  <bruno@clisp.org>
42468
42469         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
42470
42471 2008-12-26  Bruno Haible  <bruno@clisp.org>
42472
42473         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
42474         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
42475         not __STDC_CONSTANT_MACROS.
42476         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
42477
42478 2008-12-25  Bruno Haible  <bruno@clisp.org>
42479
42480         Add support for universal builds to vasnprintf.
42481         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
42482         universal builds, guess no.
42483         * modules/vasnprintf-posix (Depends-on): Add multiarch.
42484         * modules/vasprintf-posix (Depends-on): Likewise.
42485         * modules/fprintf-posix (Depends-on): Likewise.
42486         * modules/vfprintf-posix (Depends-on): Likewise.
42487         * modules/snprintf-posix (Depends-on): Likewise.
42488         * modules/vsnprintf-posix (Depends-on): Likewise.
42489         * modules/sprintf-posix (Depends-on): Likewise.
42490         * modules/vsprintf-posix (Depends-on): Likewise.
42491         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
42492         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
42493         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
42494         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
42495         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
42496         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
42497         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
42498
42499         Add support for universal builds to <inttypes.h>.
42500         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
42501         _SCNu64_PREFIX): In Apple
42502         universal builds, define directly, using _LP64.
42503         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
42504         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
42505         * modules/inttypes (Depends-on): Add multiarch.
42506         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
42507
42508         Add support for universal builds to <stdint.h>.
42509         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
42510         universal builds, define directly, using _LP64.
42511         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
42512         Apple universal builds, don't test for the size and suffix of ptrdiff_t
42513         and size_t.
42514         * modules/stdint (Depends-on): Add multiarch.
42515         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
42516
42517         New module 'multiarch'.
42518         * modules/multiarch: New file.
42519         * m4/multiarch.m4: New file.
42520
42521 2008-12-25  Bruno Haible  <bruno@clisp.org>
42522
42523         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
42524
42525 2008-12-25  Bruno Haible  <bruno@clisp.org>
42526
42527         * modules/btowc (License): Relicense under LGPLv2+.
42528         * modules/mbsinit (License): Likewise.
42529         * modules/mbrtowc (License): Likewise.
42530         * modules/wcrtomb (License): Likewise.
42531         * modules/streq (License): Likewise.
42532         Reported by David Lutterkort <lutter@redhat.com>.
42533
42534 2008-12-23  Bruno Haible  <bruno@clisp.org>
42535
42536         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
42537
42538 2008-12-23  Bruno Haible  <bruno@clisp.org>
42539
42540         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
42541         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
42542         GETADDRINFO_LIB, not in LIBS.
42543         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
42544         * modules/canon-host (Link): Likewise.
42545         * NEWS: Mention the change.
42546         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
42547         GETADDRINFO_LIB.
42548
42549 2008-12-22  Bruno Haible  <bruno@clisp.org>
42550
42551         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
42552         * doc/posix-functions/iswalpha_l.texi: Likewise.
42553         * doc/posix-functions/iswblank_l.texi: Likewise.
42554         * doc/posix-functions/iswcntrl_l.texi: Likewise.
42555         * doc/posix-functions/iswctype_l.texi: Likewise.
42556         * doc/posix-functions/iswdigit_l.texi: Likewise.
42557         * doc/posix-functions/iswgraph_l.texi: Likewise.
42558         * doc/posix-functions/iswlower_l.texi: Likewise.
42559         * doc/posix-functions/iswprint_l.texi: Likewise.
42560         * doc/posix-functions/iswpunct_l.texi: Likewise.
42561         * doc/posix-functions/iswspace_l.texi: Likewise.
42562         * doc/posix-functions/iswupper_l.texi: Likewise.
42563         * doc/posix-functions/iswxdigit_l.texi: Likewise.
42564         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
42565         * doc/posix-functions/open_wmemstream.texi: Likewise.
42566         * doc/posix-functions/swscanf.texi: Likewise.
42567         * doc/posix-functions/towctrans_l.texi: Likewise.
42568         * doc/posix-functions/towlower.texi: Likewise.
42569         * doc/posix-functions/towlower_l.texi: Likewise.
42570         * doc/posix-functions/towupper.texi: Likewise.
42571         * doc/posix-functions/towupper_l.texi: Likewise.
42572         * doc/posix-functions/vfwprintf.texi: Likewise.
42573         * doc/posix-functions/vfwscanf.texi: Likewise.
42574         * doc/posix-functions/vswscanf.texi: Likewise.
42575         * doc/posix-functions/vwprintf.texi: Likewise.
42576         * doc/posix-functions/vwscanf.texi: Likewise.
42577         * doc/posix-functions/wcpcpy.texi: Likewise.
42578         * doc/posix-functions/wcpncpy.texi: Likewise.
42579         * doc/posix-functions/wcscasecmp.texi: Likewise.
42580         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
42581         * doc/posix-functions/wcscoll_l.texi: Likewise.
42582         * doc/posix-functions/wcsdup.texi: Likewise.
42583         * doc/posix-functions/wcsncasecmp.texi: Likewise.
42584         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
42585         * doc/posix-functions/wcsnlen.texi: Likewise.
42586         * doc/posix-functions/wcsnrtombs.texi: Likewise.
42587         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
42588         * doc/posix-functions/wctrans_l.texi: Likewise.
42589         * doc/posix-functions/wctype_l.texi: Likewise.
42590         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
42591         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
42592         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
42593         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
42594         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
42595         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
42596         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
42597         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
42598         * doc/glibc-functions/wcschrnul.texi: Likewise.
42599         * doc/glibc-functions/wcsftime_l.texi: Likewise.
42600         * doc/glibc-functions/wcstod_l.texi: Likewise.
42601         * doc/glibc-functions/wcstof_l.texi: Likewise.
42602         * doc/glibc-functions/wcstol_l.texi: Likewise.
42603         * doc/glibc-functions/wcstold_l.texi: Likewise.
42604         * doc/glibc-functions/wcstoll_l.texi: Likewise.
42605         * doc/glibc-functions/wcstoq.texi: Likewise.
42606         * doc/glibc-functions/wcstoul_l.texi: Likewise.
42607         * doc/glibc-functions/wcstoull_l.texi: Likewise.
42608         * doc/glibc-functions/wcstouq.texi: Likewise.
42609         * doc/glibc-functions/wmempcpy.texi: Likewise.
42610
42611 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
42612             Eric Blake  <ebb9@byu.net>
42613             Paolo Bonzini  <bonzini@gnu.org>
42614             Bruno Haible  <bruno@clisp.org>
42615
42616         Make c-stack work on Haiku.
42617         * lib/c-stack.c (SA_ONSTACK): Define fallback.
42618         (c_stack_action): Use SA_ONSTACK flag.
42619
42620 2008-12-22  Bruno Haible  <bruno@clisp.org>
42621
42622         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
42623
42624 2008-12-22  Bruno Haible  <bruno@clisp.org>
42625
42626         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
42627         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
42628         being overridden.
42629         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
42630         New macros.
42631         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
42632         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
42633         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
42634         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
42635
42636 2008-12-22  Bruno Haible  <bruno@clisp.org>
42637
42638         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
42639         from test code.
42640
42641 2008-12-22  Eric Blake  <ebb9@byu.net>
42642
42643         Avoid gcc warnings on cygwin.
42644         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
42645         Avoid unused variable.
42646         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
42647         Likewise.
42648
42649 2008-12-22  Bruno Haible  <bruno@clisp.org>
42650
42651         Remove HAVE_MBRTOWC conditionals.
42652         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
42653         (mbscasecmp): Assume mbrtowc function.
42654         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
42655         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
42656         * lib/mbschr.c: Include mbuiter.h unconditionally.
42657         (mbschr): Assume mbrtowc function.
42658         * lib/mbscspn.c: Include mbuiter.h unconditionally.
42659         (mbscspn): Assume mbrtowc function.
42660         * lib/mbslen.c: Include mbuiter.h unconditionally.
42661         (mbslen): Assume mbrtowc function.
42662         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
42663         (mbsncasecmp): Assume mbrtowc function.
42664         * lib/mbsnlen.c: Include mbiter.h unconditionally.
42665         (mbsnlen): Assume mbrtowc function.
42666         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
42667         (mbspbrk): Assume mbrtowc function.
42668         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
42669         (mbspcasecmp): Assume mbrtowc function.
42670         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
42671         (mbsrchr): Assume mbrtowc function.
42672         * lib/mbssep.c: Include mbuiter.h unconditionally.
42673         (mbssep): Assume mbrtowc function.
42674         * lib/mbsspn.c: Include mbuiter.h unconditionally.
42675         (mbsspn): Assume mbrtowc function.
42676         * lib/mbsstr.c: Include mbuiter.h unconditionally.
42677         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
42678         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
42679         (mbstok_r): Assume mbrtowc function.
42680         * lib/propername.c: Include mbuiter.h unconditionally.
42681         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
42682         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
42683         (trim2): Assume mbrtowc function.
42684         * lib/mbswidth.c (mbsinit): Remove fallback definition.
42685         (mbsnwidth): Assume mbrtowc function.
42686         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
42687         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
42688         fallback definitions.
42689         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
42690
42691 2008-12-22  Bruno Haible  <bruno@clisp.org>
42692
42693         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
42694
42695 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
42696
42697         * modules/regex: Request emulations for the mb*/wc* functions we need.
42698         * m4/regex.m4: Don't look for those functions here.
42699         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
42700
42701 2008-12-22  Bruno Haible  <bruno@clisp.org>
42702
42703         * modules/fnmatch (Depends-on): Remove duplicated dependency.
42704
42705 2008-12-21  Bruno Haible  <bruno@clisp.org>
42706
42707         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
42708         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
42709         (Include): Remove conditionalization.
42710         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
42711         (Include): Remove conditionalization.
42712         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
42713         (Include): Remove conditionalization.
42714         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
42715         * m4/mbfile.m4 (gl_MBFILE): Likewise.
42716         * NEWS: Mention the change.
42717         Reported by Alan Hourihane <alanh@fairlite.co.uk>
42718         via Sergey Poznyakoff <gray@gnu.org.ua>.
42719
42720 2008-12-21  Bruno Haible  <bruno@clisp.org>
42721
42722         * MODULES.html.sh (Extended multibyte and wide character utilities
42723         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
42724         wcrtomb, wcsrtombs.
42725         (Support for systems lacking POSIX:2008): Add accept, bind, close,
42726         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
42727         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
42728         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
42729
42730 2008-12-21  Bruno Haible  <bruno@clisp.org>
42731
42732         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
42733
42734 2008-12-21  Bruno Haible  <bruno@clisp.org>
42735
42736         * modules/wcsnrtombs-tests: New file.
42737         * tests/test-wcsnrtombs1.sh: New file.
42738         * tests/test-wcsnrtombs2.sh: New file.
42739         * tests/test-wcsnrtombs3.sh: New file.
42740         * tests/test-wcsnrtombs4.sh: New file.
42741         * tests/test-wcsnrtombs.c: New file.
42742
42743         New module 'wcsnrtombs'.
42744         * lib/wchar.in.h (wcsnrtombs): New declaration.
42745         * lib/wcsnrtombs.c: New file.
42746         * lib/wcsrtombs-state.c: New file.
42747         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
42748         (internal_state): Remove variable.
42749         * m4/wcsnrtombs.m4: New file.
42750         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
42751         compilation units.
42752         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
42753         HAVE_WCSNRTOMBS.
42754         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
42755         HAVE_WCSNRTOMBS.
42756         * modules/wcsnrtombs: New file.
42757         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
42758         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
42759
42760 2008-12-21  Bruno Haible  <bruno@clisp.org>
42761
42762         * modules/wcsrtombs-tests: New file.
42763         * tests/test-wcsrtombs1.sh: New file.
42764         * tests/test-wcsrtombs2.sh: New file.
42765         * tests/test-wcsrtombs3.sh: New file.
42766         * tests/test-wcsrtombs4.sh: New file.
42767         * tests/test-wcsrtombs.c: New file.
42768
42769         New module 'wcsrtombs'.
42770         * lib/wchar.in.h (wcsrtombs): New declaration.
42771         * lib/wcsrtombs.c: New file.
42772         * m4/wcsrtombs.m4: New file.
42773         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
42774         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
42775         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
42776         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
42777         * modules/wcsrtombs: New file.
42778         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
42779         bugs.
42780
42781 2008-12-21  Bruno Haible  <bruno@clisp.org>
42782
42783         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
42784         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
42785         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
42786         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
42787         if not correct.
42788         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
42789         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
42790         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
42791         m4/locale-zh.m4, m4/codeset.m4.
42792         * doc/posix-functions/wcrtomb.texi: Document the bug.
42793
42794 2008-12-21  Bruno Haible  <bruno@clisp.org>
42795
42796         Work around a btowc() bug on IRIX 6.5.
42797         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
42798         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
42799         REPLACE_WTOBC if not.
42800         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
42801         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
42802         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
42803
42804 2008-12-21  Bruno Haible  <bruno@clisp.org>
42805
42806         * modules/wcrtomb-tests: New file.
42807         * tests/test-wcrtomb.sh: New file.
42808         * tests/test-wcrtomb.c: New file.
42809
42810         New module 'wcrtomb'.
42811         * lib/wchar.in.h (wcrtomb): New declaration.
42812         * lib/wcrtomb.c: New file.
42813         * m4/wcrtomb.m4: New file.
42814         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
42815         HAVE_WCRTOMB.
42816         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
42817         HAVE_WCRTOMB.
42818         * modules/wcrtomb: New file.
42819         * doc/posix-functions/wcrtomb.texi: Mention the new module.
42820
42821 2008-12-21  Bruno Haible  <bruno@clisp.org>
42822
42823         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
42824         * modules/mbsrtowcs (Files): Likewise.
42825         * modules/wctob (Files): Likewise.
42826         * modules/c-strcase-tests (Files): Likewise.
42827         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
42828         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
42829         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
42830         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
42831         * modules/vasnprintf-posix-tests (Files): Likewise.
42832
42833 2008-12-21  William Pursell  <bill.pursell@gmail.com>
42834
42835         gitlog-to-changelog: pass all command-line arguments to git-log
42836         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
42837         it is sometimes convenient to filter the commits in various ways.
42838         gitlog-to-changelog only allows --since to specify a start date,
42839         but git-log itself supports many other filtering mechanisms.
42840         At the moment, I want to filter by branch name.  Rather than
42841         adding a --branch option to gitlog-to-changelog, it seems more
42842         flexible to simply pass all options directly to git-log and let
42843         git do the work.  Notice that this effectively makes --since a
42844         redundant option for gitlog-to-changelog, but removing it would
42845         require current usage to change since calls would then require
42846         an additional '--'.
42847
42848 2008-12-21  Bruno Haible  <bruno@clisp.org>
42849
42850         * modules/mbsnrtowcs-tests: New file.
42851         * tests/test-mbsnrtowcs1.sh: New file.
42852         * tests/test-mbsnrtowcs2.sh: New file.
42853         * tests/test-mbsnrtowcs3.sh: New file.
42854         * tests/test-mbsnrtowcs4.sh: New file.
42855         * tests/test-mbsnrtowcs.c: New file.
42856
42857         New module 'mbsnrtowcs'.
42858         * lib/wchar.in.h (mbsnrtowcs): New declaration.
42859         * lib/mbsnrtowcs.c: New file.
42860         * lib/mbsrtowcs-state.c: New file.
42861         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
42862         (internal_state): Remove variable.
42863         * m4/mbsnrtowcs.m4: New file.
42864         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
42865         compilation units.
42866         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
42867         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
42868         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
42869         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
42870         * modules/mbsnrtowcs: New file.
42871         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
42872         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
42873         portability problem.
42874
42875 2008-12-21  Bruno Haible  <bruno@clisp.org>
42876
42877         Work around mbsrtowcs bug.
42878         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
42879         (gl_FUNC_MBSRTOWCS): Invoke it.
42880         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
42881         m4/locale-zh.m4.
42882         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
42883
42884 2008-12-21  Bruno Haible  <bruno@clisp.org>
42885
42886         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
42887
42888 2008-12-21  Bruno Haible  <bruno@clisp.org>
42889
42890         Update doc for AIX.
42891         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
42892         16-bit wchar_t type.
42893         * doc/posix-functions/btowc.texi: Likewise.
42894         * doc/posix-functions/fgetwc.texi: Likewise.
42895         * doc/posix-functions/fgetws.texi: Likewise.
42896         * doc/posix-functions/fputwc.texi: Likewise.
42897         * doc/posix-functions/fputws.texi: Likewise.
42898         * doc/posix-functions/fwide.texi: Likewise.
42899         * doc/posix-functions/fwprintf.texi: Likewise.
42900         * doc/posix-functions/fwscanf.texi: Likewise.
42901         * doc/posix-functions/getwchar.texi: Likewise.
42902         * doc/posix-functions/getwc.texi: Likewise.
42903         * doc/posix-functions/iswalnum.texi: Likewise.
42904         * doc/posix-functions/iswalpha.texi: Likewise.
42905         * doc/posix-functions/iswblank.texi: Likewise.
42906         * doc/posix-functions/iswcntrl.texi: Likewise.
42907         * doc/posix-functions/iswctype.texi: Likewise.
42908         * doc/posix-functions/iswdigit.texi: Likewise.
42909         * doc/posix-functions/iswgraph.texi: Likewise.
42910         * doc/posix-functions/iswlower.texi: Likewise.
42911         * doc/posix-functions/iswprint.texi: Likewise.
42912         * doc/posix-functions/iswpunct.texi: Likewise.
42913         * doc/posix-functions/iswspace.texi: Likewise.
42914         * doc/posix-functions/iswupper.texi: Likewise.
42915         * doc/posix-functions/iswxdigit.texi: Likewise.
42916         * doc/posix-functions/mbrtowc.texi: Likewise.
42917         * doc/posix-functions/mbsrtowcs.texi: Likewise.
42918         * doc/posix-functions/mbstowcs.texi: Likewise.
42919         * doc/posix-functions/mbtowc.texi: Likewise.
42920         * doc/posix-functions/putwchar.texi: Likewise.
42921         * doc/posix-functions/putwc.texi: Likewise.
42922         * doc/posix-functions/swprintf.texi: Likewise.
42923         * doc/posix-functions/tolower.texi: Likewise.
42924         * doc/posix-functions/toupper.texi: Likewise.
42925         * doc/posix-functions/towctrans.texi: Likewise.
42926         * doc/posix-functions/ungetwc.texi: Likewise.
42927         * doc/posix-functions/vswprintf.texi: Likewise.
42928         * doc/posix-functions/wcrtomb.texi: Likewise.
42929         * doc/posix-functions/wcscat.texi: Likewise.
42930         * doc/posix-functions/wcschr.texi: Likewise.
42931         * doc/posix-functions/wcscmp.texi: Likewise.
42932         * doc/posix-functions/wcscoll.texi: Likewise.
42933         * doc/posix-functions/wcscpy.texi: Likewise.
42934         * doc/posix-functions/wcscspn.texi: Likewise.
42935         * doc/posix-functions/wcsftime.texi: Likewise.
42936         * doc/posix-functions/wcslen.texi: Likewise.
42937         * doc/posix-functions/wcsncat.texi: Likewise.
42938         * doc/posix-functions/wcsncmp.texi: Likewise.
42939         * doc/posix-functions/wcsncpy.texi: Likewise.
42940         * doc/posix-functions/wcspbrk.texi: Likewise.
42941         * doc/posix-functions/wcsrchr.texi: Likewise.
42942         * doc/posix-functions/wcsrtombs.texi: Likewise.
42943         * doc/posix-functions/wcsspn.texi: Likewise.
42944         * doc/posix-functions/wcsstr.texi: Likewise.
42945         * doc/posix-functions/wcstod.texi: Likewise.
42946         * doc/posix-functions/wcstof.texi: Likewise.
42947         * doc/posix-functions/wcstoimax.texi: Likewise.
42948         * doc/posix-functions/wcstok.texi: Likewise.
42949         * doc/posix-functions/wcstold.texi: Likewise.
42950         * doc/posix-functions/wcstoll.texi: Likewise.
42951         * doc/posix-functions/wcstol.texi: Likewise.
42952         * doc/posix-functions/wcstombs.texi: Likewise.
42953         * doc/posix-functions/wcstoull.texi: Likewise.
42954         * doc/posix-functions/wcstoul.texi: Likewise.
42955         * doc/posix-functions/wcstoumax.texi: Likewise.
42956         * doc/posix-functions/wcswidth.texi: Likewise.
42957         * doc/posix-functions/wcsxfrm.texi: Likewise.
42958         * doc/posix-functions/wctob.texi: Likewise.
42959         * doc/posix-functions/wctomb.texi: Likewise.
42960         * doc/posix-functions/wctrans.texi: Likewise.
42961         * doc/posix-functions/wctype.texi: Likewise.
42962         * doc/posix-functions/wcwidth.texi: Likewise.
42963         * doc/posix-functions/wmemchr.texi: Likewise.
42964         * doc/posix-functions/wmemcmp.texi: Likewise.
42965         * doc/posix-functions/wmemcpy.texi: Likewise.
42966         * doc/posix-functions/wmemmove.texi: Likewise.
42967         * doc/posix-functions/wmemset.texi: Likewise.
42968         * doc/posix-functions/wprintf.texi: Likewise.
42969         * doc/posix-functions/wscanf.texi: Likewise.
42970
42971 2008-12-21  Bruno Haible  <bruno@clisp.org>
42972
42973         Update doc for HP-UX 11.11.
42974         * doc/posix-functions/btowc.texi: Clarify that the function is missing
42975         in HP-UX version 11.00, not in all versions of HP-UX 11.
42976         * doc/posix-functions/fwide.texi: Likewise.
42977         * doc/posix-functions/fwprintf.texi: Likewise.
42978         * doc/posix-functions/fwscanf.texi: Likewise.
42979         * doc/posix-functions/inet_ntop.texi: Likewise.
42980         * doc/posix-functions/inet_pton.texi: Likewise.
42981         * doc/posix-functions/mbrlen.texi: Likewise.
42982         * doc/posix-functions/mbrtowc.texi: Likewise.
42983         * doc/posix-functions/mbsinit.texi: Likewise.
42984         * doc/posix-functions/mbsrtowcs.texi: Likewise.
42985         * doc/posix-functions/swprintf.texi: Likewise.
42986         * doc/posix-functions/swscanf.texi: Likewise.
42987         * doc/posix-functions/towctrans.texi: Likewise.
42988         * doc/posix-functions/vfwprintf.texi: Likewise.
42989         * doc/posix-functions/vswprintf.texi: Likewise.
42990         * doc/posix-functions/vwprintf.texi: Likewise.
42991         * doc/posix-functions/wcrtomb.texi: Likewise.
42992         * doc/posix-functions/wcsrtombs.texi: Likewise.
42993         * doc/posix-functions/wcsstr.texi: Likewise.
42994         * doc/posix-functions/wctob.texi: Likewise.
42995         * doc/posix-functions/wctrans.texi: Likewise.
42996         * doc/posix-functions/wmemchr.texi: Likewise.
42997         * doc/posix-functions/wmemcmp.texi: Likewise.
42998         * doc/posix-functions/wmemcpy.texi: Likewise.
42999         * doc/posix-functions/wmemmove.texi: Likewise.
43000         * doc/posix-functions/wmemset.texi: Likewise.
43001         * doc/posix-functions/wprintf.texi: Likewise.
43002         * doc/posix-functions/wscanf.texi: Likewise.
43003
43004 2008-12-21  Bruno Haible  <bruno@clisp.org>
43005
43006         Work around a portability problem.
43007         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
43008         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
43009
43010 2008-12-20  Bruno Haible  <bruno@clisp.org>
43011
43012         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
43013         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
43014         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
43015         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
43016         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
43017
43018         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
43019         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
43020         set.
43021         (GNULIB_defined_mbstate_t): New macro.
43022         (mbsinit): Redefine if REPLACE_MBSINIT is set.
43023         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
43024         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
43025         reuses the system's mbrtowc function but works around the bugs.
43026         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
43027         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
43028         macros.
43029         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
43030         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
43031         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
43032         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
43033         REPLACE_MBSINIT if mbsinit needs to be overridden.
43034         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
43035         REPLACE_MBSINIT, REPLACE_MBRTOWC.
43036         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
43037         REPLACE_MBSINIT, REPLACE_MBRTOWC.
43038         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
43039         m4/locale-zh.m4.
43040         (Depends): Add mbsinit.
43041         * modules/mbsinit (Depends): Add mbrtowc.
43042         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
43043
43044 2008-12-20  Bruno Haible  <bruno@clisp.org>
43045
43046         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
43047         so that there are no conversion errors on AIX.
43048         * tests/test-mbsrtowcs.c (main): LIkewise.
43049
43050 2008-12-20  Bruno Haible  <bruno@clisp.org>
43051
43052         Work around wctob bug on Solaris <= 9.
43053         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
43054         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
43055         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
43056         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
43057         * modules/wctob (Files): Add m4/locale-fr.m4.
43058         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
43059
43060 2008-12-20  Bruno Haible  <bruno@clisp.org>
43061
43062         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
43063         /dev/null.
43064         * tests/test-select-in.sh: Likewise.
43065         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
43066
43067 2008-12-20  Bruno Haible  <bruno@clisp.org>
43068
43069         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
43070         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
43071         Cygwin 1.5.x.
43072
43073 2008-12-20  Bruno Haible  <bruno@clisp.org>
43074
43075         Ensure mbstate_t is defined on HP-UX 11.11.
43076         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
43077         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
43078         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
43079         AC_USE_SYSTEM_EXTENSIONS.
43080         * modules/fnmatch (Depends-on): Add extensions.
43081         * modules/mbrlen (Depends-on): Likewise.
43082         * modules/mbrtowc (Depends-on): Likewise.
43083         * modules/mbsinit (Depends-on): Likewise.
43084         * modules/mbsrtowcs (Depends-on): Likewise.
43085         * modules/mbswidth (Depends-on): Likewise.
43086         * modules/quotearg (Depends-on): Likewise.
43087         * modules/strftime (Depends-on): Likewise.
43088
43089 2008-12-20  Bruno Haible  <bruno@clisp.org>
43090
43091         Ensure wctob is declared on IRIX 6.5.
43092         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
43093         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
43094         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
43095         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
43096         of HAVE_WCTOB.
43097         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
43098         HAVE_WCTOB.
43099         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
43100
43101 2008-12-19  Bruno Haible  <bruno@clisp.org>
43102
43103         * modules/mbsrtowcs-tests: New file.
43104         * tests/test-mbsrtowcs1.sh: New file.
43105         * tests/test-mbsrtowcs2.sh: New file.
43106         * tests/test-mbsrtowcs3.sh: New file.
43107         * tests/test-mbsrtowcs4.sh: New file.
43108         * tests/test-mbsrtowcs.c: New file.
43109
43110         New module 'mbsrtowcs'.
43111         * lib/wchar.in.h (mbsrtowcs): New declaration.
43112         * lib/mbsrtowcs.c: New file.
43113         * m4/mbsrtowcs.m4: New file.
43114         * modules/mbsrtowcs: New file.
43115         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
43116         HAVE_MBSRTOWCS.
43117         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
43118         HAVE_MBSRTOWCS.
43119         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
43120
43121 2008-12-19  Bruno Haible  <bruno@clisp.org>
43122
43123         New module 'mbrlen'.
43124         * lib/wchar.in.h (mbrlen): New declaration.
43125         * lib/mbrlen.c: New file.
43126         * m4/mbrlen.m4: New file.
43127         * modules/mbrlen: New file.
43128         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
43129         HAVE_MBRLEN.
43130         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
43131         HAVE_MBRLEN.
43132         * doc/posix-functions/mbrlen.texi: Document the new module.
43133
43134 2008-12-19  Bruno Haible  <bruno@clisp.org>
43135
43136         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
43137         * modules/mbrtowc (Depends-on): Add verify.
43138         Suggested by Paul Eggert.
43139
43140 2008-12-18  Bruno Haible  <bruno@clisp.org>
43141
43142         * modules/mbsinit-tests: New file.
43143         * tests/test-mbsinit.sh: New file.
43144         * tests/test-mbsinit.c: New file.
43145
43146 2008-12-18  Bruno Haible  <bruno@clisp.org>
43147
43148         * modules/mbrtowc-tests: New file.
43149         * tests/test-mbrtowc1.sh: New file.
43150         * tests/test-mbrtowc2.sh: New file.
43151         * tests/test-mbrtowc3.sh: New file.
43152         * tests/test-mbrtowc4.sh: New file.
43153         * tests/test-mbrtowc.c: New file.
43154
43155         New module 'mbrtowc'.
43156         * lib/wchar.in.h (mbstate_t): Override when the system does not have
43157         mbsinit and mbrtowc.
43158         (mbrtowc): New declaration.
43159         * lib/mbrtowc.c: New file.
43160         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
43161         * modules/mbrtowc: New file.
43162         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
43163         HAVE_MBRTOWC.
43164         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
43165         HAVE_MBRTOWC.
43166         * doc/posix-functions/mbrtowc.texi: Document the new module.
43167
43168 2008-12-18  Bruno Haible  <bruno@clisp.org>
43169
43170         New module 'wctob'.
43171         * lib/wchar.in.h (wctob): New declaration.
43172         * lib/wctob.c: New file.
43173         * m4/wctob.m4: New file.
43174         * modules/wctob: New file.
43175         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
43176         HAVE_WCTOB.
43177         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
43178         * doc/posix-functions/wctob.texi: Document the new module.
43179
43180 2008-12-18  Bruno Haible  <bruno@clisp.org>
43181
43182         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
43183         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
43184
43185 2008-12-18  Simon Josefsson  <simon@josefsson.org>
43186
43187         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
43188         G. Christensen" <tgc@jupiterrise.com>.
43189
43190         * lib/flock.c: Need to include errno.h.  Reported by "Tom
43191         G. Christensen" <tgc@jupiterrise.com>.
43192
43193         * lib/flock.c: Need to include string.h.  Reported by "Tom
43194         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
43195         <ebb9@byu.net>.
43196
43197 2008-12-18  Bruno Haible  <bruno@clisp.org>
43198
43199         * m4/locale-ja.m4: New file, from GNU gettext.
43200
43201 2008-12-17  Bruno Haible  <bruno@clisp.org>
43202
43203         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
43204         Suggested by Eric Blake.
43205
43206 2008-12-17  Bruno Haible  <bruno@clisp.org>
43207
43208         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
43209
43210 2008-12-17  Bruno Haible  <bruno@clisp.org>
43211
43212         * lib/mbsinit.c: Include verify.h. Verify an assumption.
43213         * modules/mbsinit (Depends-on): Add verify.
43214         Suggested by Paul Eggert.
43215
43216 2008-12-17  Bruno Haible  <bruno@clisp.org>
43217
43218         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
43219         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
43220         gl_FUNC_MBRTOWC.
43221         * m4/mbiter.m4 (gl_MBITER): LIkewise.
43222         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
43223         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
43224         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
43225         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
43226         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
43227         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
43228         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
43229         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
43230         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
43231         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
43232         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
43233         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
43234         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
43235         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
43236         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
43237         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
43238         * modules/trim (configure.ac): Likewise.
43239
43240 2008-12-17  Bruno Haible  <bruno@clisp.org>
43241
43242         * modules/btowc-tests: New file.
43243         * tests/test-btowc1.sh: New file.
43244         * tests/test-btowc2.sh: New file.
43245         * tests/test-btowc.c: New file.
43246
43247         New module 'btowc'.
43248         * lib/wchar.in.h (btowc): New declaration.
43249         * lib/btowc.c: New file.
43250         * m4/btowc.m4: New file.
43251         * modules/btowc: New file.
43252         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
43253         HAVE_BTOWC.
43254         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
43255         * doc/posix-functions/btowc.texi: Document the new module.
43256
43257 2008-12-17  Bruno Haible  <bruno@clisp.org>
43258
43259         New module 'mbsinit'.
43260         * lib/wchar.in.h (mbsinit): New declaration.
43261         * lib/mbsinit.c: New file.
43262         * m4/mbsinit.m4: New file.
43263         * modules/mbsinit: New file.
43264         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
43265         HAVE_MBSINIT.
43266         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
43267         HAVE_MBSINIT.
43268         * doc/posix-functions/mbsinit.texi: Document the new module.
43269
43270 2008-12-16  Bruno Haible  <bruno@clisp.org>
43271
43272         * lib/unistd.in.h: Add comment.
43273         * tests/test-environ.c: Don't include <stdlib.h>.
43274
43275 2008-12-16  Bruno Haible  <bruno@clisp.org>
43276
43277         * lib/parse-duration.h (parse_duration): Document return value
43278         convention.
43279         * lib/parse-duration.c: Include specification header first. Add
43280         comments.
43281         (_): Remove macro.
43282         (parse_year_month_day, parse_hour_minute_second): Move side effects
43283         outside of strchr call.
43284         (parse_non_iso8601): Move side effects outside of isspace call.
43285         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
43286         call.
43287
43288 2008-12-16  Bruno Haible  <bruno@clisp.org>
43289
43290         * tests/test-parse-duration.sh: Produce no output when the test
43291         succeeds.
43292
43293 2008-12-16  Bruno Haible  <bruno@clisp.org>
43294
43295         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
43296         expressions.
43297
43298 2008-12-15  Bruno Haible  <bruno@clisp.org>
43299
43300         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
43301         * doc/glibc-functions/flistxattr.texi: Likewise.
43302         * doc/glibc-functions/fopencookie.texi: Likewise.
43303         * doc/glibc-functions/fremovexattr.texi: Likewise.
43304         * doc/glibc-functions/fsetxattr.texi: Likewise.
43305         * doc/glibc-functions/getxattr.texi: Likewise.
43306         * doc/glibc-functions/lgetxattr.texi: Likewise.
43307         * doc/glibc-functions/listxattr.texi: Likewise.
43308         * doc/glibc-functions/llistxattr.texi: Likewise.
43309         * doc/glibc-functions/lremovexattr.texi: Likewise.
43310         * doc/glibc-functions/lsetxattr.texi: Likewise.
43311         * doc/glibc-functions/removexattr.texi: Likewise.
43312         * doc/glibc-functions/setxattr.texi: Likewise.
43313         * doc/posix-functions/open_memstream.texi: Likewise.
43314
43315 2008-12-15  Eric Blake  <ebb9@byu.net>
43316
43317         Update doc for cygwin 1.7.
43318         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
43319         functions.
43320         * doc/posix-functions/fchmodat.texi: Likewise.
43321         * doc/posix-functions/fchownat.texi: Likewise.
43322         * doc/posix-functions/fdopendir.texi: Likewise.
43323         * doc/posix-functions/fmemopen.texi: Likewise.
43324         * doc/posix-functions/freeaddrinfo.texi: Likewise.
43325         * doc/posix-functions/fstatat.texi: Likewise.
43326         * doc/posix-functions/futimens.texi: Likewise.
43327         * doc/posix-functions/gai_strerror.texi: Likewise.
43328         * doc/posix-functions/getaddrinfo.texi: Likewise.
43329         * doc/posix-functions/getnameinfo.texi: Likewise.
43330         * doc/posix-functions/if_freenameindex.texi: Likewise.
43331         * doc/posix-functions/if_indextoname.texi: Likewise.
43332         * doc/posix-functions/if_nameindex.texi: Likewise.
43333         * doc/posix-functions/if_nametoindex.texi: Likewise.
43334         * doc/posix-functions/insque.texi: Likewise.
43335         * doc/posix-functions/linkat.texi: Likewise.
43336         * doc/posix-functions/llrint.texi: Likewise.
43337         * doc/posix-functions/llrintf.texi: Likewise.
43338         * doc/posix-functions/llrintl.texi: Likewise.
43339         * doc/posix-functions/lockf.texi: Likewise.
43340         * doc/posix-functions/lrintl.texi: Likewise.
43341         * doc/posix-functions/mkdirat.texi: Likewise.
43342         * doc/posix-functions/mkfifoat.texi: Likewise.
43343         * doc/posix-functions/mknodat.texi: Likewise.
43344         * doc/posix-functions/mq_close.texi: Likewise.
43345         * doc/posix-functions/mq_getattr.texi: Likewise.
43346         * doc/posix-functions/mq_notify.texi: Likewise.
43347         * doc/posix-functions/mq_open.texi: Likewise.
43348         * doc/posix-functions/mq_receive.texi: Likewise.
43349         * doc/posix-functions/mq_send.texi: Likewise.
43350         * doc/posix-functions/mq_setattr.texi: Likewise.
43351         * doc/posix-functions/mq_timedreceive.texi: Likewise.
43352         * doc/posix-functions/mq_timedsend.texi: Likewise.
43353         * doc/posix-functions/mq_unlink.texi: Likewise.
43354         * doc/posix-functions/open_memstream.texi: Likewise.
43355         * doc/posix-functions/openat.texi: Likewise.
43356         * doc/posix-functions/posix_fadvise.texi: Likewise.
43357         * doc/posix-functions/posix_fallocate.texi: Likewise.
43358         * doc/posix-functions/posix_madvise.texi: Likewise.
43359         * doc/posix-functions/posix_memalign.texi: Likewise.
43360         * doc/posix-functions/posix_openpt.texi: Likewise.
43361         * doc/posix-functions/readlinkat.texi: Likewise.
43362         * doc/posix-functions/remque.texi: Likewise.
43363         * doc/posix-functions/renameat.texi: Likewise.
43364         * doc/posix-functions/rintl.texi: Likewise.
43365         * doc/posix-functions/sem_unlink.texi: Likewise.
43366         * doc/posix-functions/shm_open.texi: Likewise.
43367         * doc/posix-functions/shm_unlink.texi: Likewise.
43368         * doc/posix-functions/signgam.texi: Likewise.
43369         * doc/posix-functions/sigset.texi: Likewise.
43370         * doc/posix-functions/stpcpy.texi: Likewise.
43371         * doc/posix-functions/stpncpy.texi: Likewise.
43372         * doc/posix-functions/strerror.texi: Likewise.
43373         * doc/posix-functions/strtod.texi: Likewise.
43374         * doc/posix-functions/symlinkat.texi: Likewise.
43375         * doc/posix-functions/unlinkat.texi: Likewise.
43376         * doc/posix-functions/utimensat.texi: Likewise.
43377         * doc/glibc-functions/bindresvport.texi: Likewise.
43378         * doc/glibc-functions/dn_expand.texi: Likewise.
43379         * doc/glibc-functions/exp10.texi: Likewise.
43380         * doc/glibc-functions/exp10f.texi: Likewise.
43381         * doc/glibc-functions/fgetxattr.texi: Likewise.
43382         * doc/glibc-functions/flistxattr.texi: Likewise.
43383         * doc/glibc-functions/fopencookie.texi: Likewise.
43384         * doc/glibc-functions/freeifaddrs.texi: Likewise.
43385         * doc/glibc-functions/fremovexattr.texi: Likewise.
43386         * doc/glibc-functions/fsetxattr.texi: Likewise.
43387         * doc/glibc-functions/getifaddrs.texi: Likewise.
43388         * doc/glibc-functions/getxattr.texi: Likewise.
43389         * doc/glibc-functions/lgetxattr.texi: Likewise.
43390         * doc/glibc-functions/listxattr.texi: Likewise.
43391         * doc/glibc-functions/llistxattr.texi: Likewise.
43392         * doc/glibc-functions/lremovexattr.texi: Likewise.
43393         * doc/glibc-functions/lsetxattr.texi: Likewise.
43394         * doc/glibc-functions/pow10.texi: Likewise.
43395         * doc/glibc-functions/pow10f.texi: Likewise.
43396         * doc/glibc-functions/rcmd_af.texi: Likewise.
43397         * doc/glibc-functions/removexattr.texi: Likewise.
43398         * doc/glibc-functions/res_init.texi: Likewise.
43399         * doc/glibc-functions/res_mkquery.texi: Likewise.
43400         * doc/glibc-functions/res_query.texi: Likewise.
43401         * doc/glibc-functions/res_querydomain.texi: Likewise.
43402         * doc/glibc-functions/res_send.texi: Likewise.
43403         * doc/glibc-functions/rresvport_af.texi: Likewise.
43404         * doc/glibc-functions/setxattr.texi: Likewise.
43405         * doc/glibc-functions/strcasestr.texi: Likewise.
43406
43407 2008-12-15  Bruno Haible  <bruno@clisp.org>
43408
43409         Fix compilation error on OSF/1 4.0.
43410         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
43411         <sys/time.h>, simply delegate to the system header.
43412         Reported by Daniel Richard G. <oss@teragram.com>.
43413
43414 2008-12-15  Bruno Haible  <bruno@clisp.org>
43415
43416         * doc/posix-functions/openat.texi: Mention the 'openat' module.
43417         * doc/posix-functions/fchmodat.texi: Likewise.
43418         * doc/posix-functions/fchownat.texi: Likewise.
43419         * doc/posix-functions/fdopendir.texi: Likewise.
43420         * doc/posix-functions/fstatat.texi: Likewise.
43421         * doc/posix-functions/mkdirat.texi: Likewise.
43422         * doc/posix-functions/unlinkat.texi: Likewise.
43423
43424 2008-12-14  Bruno Haible  <bruno@clisp.org>
43425
43426         Update doc for POSIX:2008.
43427         * doc/posix-functions/faccessat.texi: New file.
43428         * doc/posix-functions/fchmodat.texi: New file.
43429         * doc/posix-functions/fchownat.texi: New file.
43430         * doc/posix-functions/fdopendir.texi: New file.
43431         * doc/posix-functions/fstatat.texi: New file.
43432         * doc/posix-functions/futimens.texi: New file.
43433         * doc/posix-functions/linkat.texi: New file.
43434         * doc/posix-functions/mkdirat.texi: New file.
43435         * doc/posix-functions/mkfifoat.texi: New file.
43436         * doc/posix-functions/mknodat.texi: New file.
43437         * doc/posix-functions/open_wmemstream.texi: New file.
43438         * doc/posix-functions/openat.texi: New file.
43439         * doc/posix-functions/psiginfo.texi: New file.
43440         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
43441         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
43442         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
43443         * doc/posix-functions/readlinkat.texi: New file.
43444         * doc/posix-functions/renameat.texi: New file.
43445         * doc/posix-functions/strerror_l.texi: New file.
43446         * doc/posix-functions/symlinkat.texi: New file.
43447         * doc/posix-functions/unlinkat.texi: New file.
43448         * doc/posix-functions/utimensat.texi: New file.
43449         * doc/gnulib.texi (Function Substitutes): Add these subsections.
43450
43451 2008-12-14  Bruno Haible  <bruno@clisp.org>
43452
43453         Update doc for POSIX:2008.
43454         * doc/posix-functions/alphasort.texi: Renamed from
43455         doc/glibc-functions/alphasort.texi.
43456         * doc/posix-functions/dirfd.texi: Renamed from
43457         doc/glibc-functions/dirfd.texi.
43458         * doc/posix-functions/dprintf.texi: Renamed from
43459         doc/glibc-functions/dprintf.texi.
43460         * doc/posix-functions/duplocale.texi: Renamed from
43461         doc/glibc-functions/duplocale.texi.
43462         * doc/posix-functions/fexecve.texi: Renamed from
43463         doc/glibc-functions/fexecve.texi.
43464         * doc/posix-functions/fmemopen.texi: Renamed from
43465         doc/glibc-functions/fmemopen.texi.
43466         * doc/posix-functions/freelocale.texi: Renamed from
43467         doc/glibc-functions/freelocale.texi.
43468         * doc/posix-functions/getdate_err.texi: Renamed from
43469         doc/glibc-functions/getdate_err.texi.
43470         * doc/posix-functions/isalnum_l.texi: Renamed from
43471         doc/glibc-functions/isalnum_l.texi.
43472         * doc/posix-functions/isalpha_l.texi: Renamed from
43473         doc/glibc-functions/isalpha_l.texi.
43474         * doc/posix-functions/isblank_l.texi: Renamed from
43475         doc/glibc-functions/isblank_l.texi.
43476         * doc/posix-functions/iscntrl_l.texi: Renamed from
43477         doc/glibc-functions/iscntrl_l.texi.
43478         * doc/posix-functions/isdigit_l.texi: Renamed from
43479         doc/glibc-functions/isdigit_l.texi.
43480         * doc/posix-functions/isgraph_l.texi: Renamed from
43481         doc/glibc-functions/isgraph_l.texi.
43482         * doc/posix-functions/islower_l.texi: Renamed from
43483         doc/glibc-functions/islower_l.texi.
43484         * doc/posix-functions/isprint_l.texi: Renamed from
43485         doc/glibc-functions/isprint_l.texi.
43486         * doc/posix-functions/ispunct_l.texi: Renamed from
43487         doc/glibc-functions/ispunct_l.texi.
43488         * doc/posix-functions/isspace_l.texi: Renamed from
43489         doc/glibc-functions/isspace_l.texi.
43490         * doc/posix-functions/isupper_l.texi: Renamed from
43491         doc/glibc-functions/isupper_l.texi.
43492         * doc/posix-functions/iswalnum_l.texi: Renamed from
43493         doc/glibc-functions/iswalnum_l.texi.
43494         * doc/posix-functions/iswalpha_l.texi: Renamed from
43495         doc/glibc-functions/iswalpha_l.texi.
43496         * doc/posix-functions/iswblank_l.texi: Renamed from
43497         doc/glibc-functions/iswblank_l.texi.
43498         * doc/posix-functions/iswcntrl_l.texi: Renamed from
43499         doc/glibc-functions/iswcntrl_l.texi.
43500         * doc/posix-functions/iswctype_l.texi: Renamed from
43501         doc/glibc-functions/iswctype_l.texi.
43502         * doc/posix-functions/iswdigit_l.texi: Renamed from
43503         doc/glibc-functions/iswdigit_l.texi.
43504         * doc/posix-functions/iswgraph_l.texi: Renamed from
43505         doc/glibc-functions/iswgraph_l.texi.
43506         * doc/posix-functions/iswlower_l.texi: Renamed from
43507         doc/glibc-functions/iswlower_l.texi.
43508         * doc/posix-functions/iswprint_l.texi: Renamed from
43509         doc/glibc-functions/iswprint_l.texi.
43510         * doc/posix-functions/iswpunct_l.texi: Renamed from
43511         doc/glibc-functions/iswpunct_l.texi.
43512         * doc/posix-functions/iswspace_l.texi: Renamed from
43513         doc/glibc-functions/iswspace_l.texi.
43514         * doc/posix-functions/iswupper_l.texi: Renamed from
43515         doc/glibc-functions/iswupper_l.texi.
43516         * doc/posix-functions/iswxdigit_l.texi: Renamed from
43517         doc/glibc-functions/iswxdigit_l.texi.
43518         * doc/posix-functions/isxdigit_l.texi: Renamed from
43519         doc/glibc-functions/isxdigit_l.texi.
43520         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
43521         doc/glibc-functions/mbsnrtowcs.texi.
43522         * doc/posix-functions/mkdtemp.texi: Renamed from
43523         doc/glibc-functions/mkdtemp.texi.
43524         * doc/posix-functions/newlocale.texi: Renamed from
43525         doc/glibc-functions/newlocale.texi.
43526         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
43527         doc/glibc-functions/nl_langinfo_l.texi.
43528         * doc/posix-functions/open_memstream.texi: Renamed from
43529         doc/glibc-functions/open_memstream.texi.
43530         * doc/posix-functions/opterr.texi: Renamed from
43531         doc/glibc-functions/opterr.texi.
43532         * doc/posix-functions/optind.texi: Renamed from
43533         doc/glibc-functions/optind.texi.
43534         * doc/posix-functions/optopt.texi: Renamed from
43535         doc/glibc-functions/optopt.texi.
43536         * doc/posix-functions/psignal.texi: Renamed from
43537         doc/glibc-functions/psignal.texi.
43538         * doc/posix-functions/scandir.texi: Renamed from
43539         doc/glibc-functions/scandir.texi.
43540         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
43541         doc/glibc-functions/sched_get_priority_min.texi.
43542         * doc/posix-functions/signgam.texi: Renamed from
43543         doc/glibc-functions/signgam.texi.
43544         * doc/posix-functions/stpcpy.texi: Renamed from
43545         doc/glibc-functions/stpcpy.texi.
43546         * doc/posix-functions/stpncpy.texi: Renamed from
43547         doc/glibc-functions/stpncpy.texi.
43548         * doc/posix-functions/strcasecmp_l.texi: Renamed from
43549         doc/glibc-functions/strcasecmp_l.texi.
43550         * doc/posix-functions/strcoll_l.texi: Renamed from
43551         doc/glibc-functions/strcoll_l.texi.
43552         * doc/posix-functions/strfmon_l.texi: Renamed from
43553         doc/glibc-functions/strfmon_l.texi.
43554         * doc/posix-functions/strftime_l.texi: Renamed from
43555         doc/glibc-functions/strftime_l.texi.
43556         * doc/posix-functions/strncasecmp_l.texi: Renamed from
43557         doc/glibc-functions/strncasecmp_l.texi.
43558         * doc/posix-functions/strndup.texi: Renamed from
43559         doc/glibc-functions/strndup.texi.
43560         * doc/posix-functions/strnlen.texi: Renamed from
43561         doc/glibc-functions/strnlen.texi.
43562         * doc/posix-functions/strsignal.texi: Renamed from
43563         doc/glibc-functions/strsignal.texi.
43564         * doc/posix-functions/strxfrm_l.texi: Renamed from
43565         doc/glibc-functions/strxfrm_l.texi.
43566         * doc/posix-functions/timer_gettime.texi: Renamed from
43567         doc/glibc-functions/timer_gettime.texi.
43568         * doc/posix-functions/tolower_l.texi: Renamed from
43569         doc/glibc-functions/tolower_l.texi.
43570         * doc/posix-functions/toupper_l.texi: Renamed from
43571         doc/glibc-functions/toupper_l.texi.
43572         * doc/posix-functions/towctrans_l.texi: Renamed from
43573         doc/glibc-functions/towctrans_l.texi.
43574         * doc/posix-functions/towlower_l.texi: Renamed from
43575         doc/glibc-functions/towlower_l.texi.
43576         * doc/posix-functions/towupper_l.texi: Renamed from
43577         doc/glibc-functions/towupper_l.texi.
43578         * doc/posix-functions/uselocale.texi: Renamed from
43579         doc/glibc-functions/uselocale.texi.
43580         * doc/posix-functions/vdprintf.texi: Renamed from
43581         doc/glibc-functions/vdprintf.texi.
43582         * doc/posix-functions/wcpcpy.texi:
43583         Renamed from doc/glibc-functions/wcpcpy.texi.
43584         * doc/posix-functions/wcpncpy.texi: Renamed from
43585         doc/glibc-functions/wcpncpy.texi.
43586         * doc/posix-functions/wcscasecmp.texi: Renamed from
43587         doc/glibc-functions/wcscasecmp.texi.
43588         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
43589         doc/glibc-functions/wcscasecmp_l.texi.
43590         * doc/posix-functions/wcscoll_l.texi: Renamed from
43591         doc/glibc-functions/wcscoll_l.texi.
43592         * doc/posix-functions/wcsdup.texi: Renamed from
43593         doc/glibc-functions/wcsdup.texi.
43594         * doc/posix-functions/wcsncasecmp.texi: Renamed from
43595         doc/glibc-functions/wcsncasecmp.texi.
43596         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
43597         doc/glibc-functions/wcsncasecmp_l.texi.
43598         * doc/posix-functions/wcsnlen.texi: Renamed from
43599         doc/glibc-functions/wcsnlen.texi.
43600         * doc/posix-functions/wcsnrtombs.texi: Renamed from
43601         doc/glibc-functions/wcsnrtombs.texi.
43602         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
43603         doc/glibc-functions/wcsxfrm_l.texi.
43604         * doc/posix-functions/wctrans_l.texi: Renamed from
43605         doc/glibc-functions/wctrans_l.texi.
43606         * doc/posix-functions/wctype_l.texi: Renamed from
43607         doc/glibc-functions/wctype_l.texi.
43608         * doc/gnulib.texi (Function Substitutes): Add these subsections.
43609         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
43610         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
43611         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
43612         these subsections.
43613         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
43614         Remove sections.
43615
43616 2008-12-14  Bruno Haible  <bruno@clisp.org>
43617
43618         Update doc for POSIX:2008.
43619         * doc/posix-functions/*.texi: Update URL of POSIX specification.
43620
43621 2008-12-14  Bruno Haible  <bruno@clisp.org>
43622
43623         Update doc for POSIX:2008.
43624         * doc/pastposix-functions/bcmp.texi: Renamed from
43625         doc/posix-functions/bcmp.texi.
43626         * doc/pastposix-functions/bcopy.texi: Renamed from
43627         doc/posix-functions/bcopy.texi.
43628         * doc/pastposix-functions/bsd_signal.texi: Renamed from
43629         doc/posix-functions/bsd_signal.texi.
43630         * doc/pastposix-functions/bzero.texi: Renamed from
43631         doc/posix-functions/bzero.texi.
43632         * doc/pastposix-functions/ecvt.texi: Renamed from
43633         doc/posix-functions/ecvt.texi.
43634         * doc/pastposix-functions/fcvt.texi: Renamed from
43635         doc/posix-functions/fcvt.texi.
43636         * doc/pastposix-functions/ftime.texi: Renamed from
43637         doc/posix-functions/ftime.texi.
43638         * doc/pastposix-functions/gcvt.texi: Renamed from
43639         doc/posix-functions/gcvt.texi.
43640         * doc/pastposix-functions/getcontext.texi: Renamed from
43641         doc/posix-functions/getcontext.texi.
43642         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
43643         doc/posix-functions/gethostbyaddr.texi.
43644         * doc/pastposix-functions/gethostbyname.texi: Renamed from
43645         doc/posix-functions/gethostbyname.texi.
43646         * doc/pastposix-functions/getwd.texi: Renamed from
43647         doc/posix-functions/getwd.texi.
43648         * doc/pastposix-functions/h_errno.texi: Renamed from
43649         doc/posix-functions/h_errno.texi.
43650         * doc/pastposix-functions/index.texi: Renamed from
43651         doc/posix-functions/index.texi.
43652         * doc/pastposix-functions/makecontext.texi: Renamed from
43653         doc/posix-functions/makecontext.texi.
43654         * doc/pastposix-functions/mktemp.texi: Renamed from
43655         doc/posix-functions/mktemp.texi.
43656         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
43657         doc/posix-functions/pthread_attr_getstackaddr.texi.
43658         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
43659         doc/posix-functions/pthread_attr_setstackaddr.texi.
43660         * doc/pastposix-functions/rindex.texi: Renamed from
43661         doc/posix-functions/rindex.texi.
43662         * doc/pastposix-functions/scalb.texi: Renamed from
43663         doc/posix-functions/scalb.texi.
43664         * doc/pastposix-functions/setcontext.texi: Renamed from
43665         doc/posix-functions/setcontext.texi.
43666         * doc/pastposix-functions/swapcontext.texi: Renamed from
43667         doc/posix-functions/swapcontext.texi.
43668         * doc/pastposix-functions/ualarm.texi: Renamed from
43669         doc/posix-functions/ualarm.texi.
43670         * doc/pastposix-functions/usleep.texi: Renamed from
43671         doc/posix-functions/usleep.texi.
43672         * doc/pastposix-functions/vfork.texi: Renamed from
43673         doc/posix-functions/vfork.texi.
43674         * doc/pastposix-functions/wcswcs.texi: Renamed from
43675         doc/posix-functions/wcswcs.texi.
43676         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
43677         (Function Substitutes): Update.
43678
43679 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43680
43681         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
43682         m4/strerror.m4.
43683
43684 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43685             Bruno Haible  <bruno@clisp.org>
43686
43687         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
43688
43689 2008-12-13  Bruno Haible  <bruno@clisp.org>
43690
43691         * modules/strtoull (Depends-on): Remove unistd.
43692
43693 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43694
43695         * modules/strtoull (Depends-on): Add stdlib.
43696
43697 2008-12-11  Simon Josefsson  <simon@josefsson.org>
43698
43699         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
43700
43701 2008-12-10  Jim Meyering  <meyering@redhat.com>
43702
43703         gl_ASSERT: don't say assertions are disabled when they're not
43704         * m4/assert.m4 (gl_ASSERT): Do not make configure report
43705         "checking whether to enable assertions... no", when they are in
43706         fact enabled.  This is solely a bug in the output of configure.
43707         In spite of saying "no", NDEBUG was not defined in that case.
43708         Also, as noted by Eric Blake, leave assertions enabled upon
43709         --enable-assert=INVALID.
43710
43711 2008-12-10  Bruno Haible  <bruno@clisp.org>
43712
43713         Change MODULES.html to refer to POSIX:2008 where possible.
43714         * MODULES.html.sh (POSIX2008_URL): New variable.
43715         (posix_headers): Remove sys/timeb, ucontext.
43716         (posix2001_headers): New variable.
43717         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
43718         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
43719         index, makecontext, mktemp, pthread_attr_getstackaddr,
43720         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
43721         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
43722         (posix2001_functions): New variable.
43723         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
43724         otherwise.
43725
43726 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43727
43728         add missing include to parse-duration.c
43729         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
43730         * modules/parse-duration (Depends-on): Add xalloc.
43731
43732         fix sed script reading maint.mk
43733         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
43734         (syntax-check-rules): Use it.
43735
43736 2008-12-09  Bruno Haible  <bruno@clisp.org>
43737
43738         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
43739         MacOS X 10.4/PowerPC.
43740         Reported by Simon Josefsson.
43741
43742 2008-12-08  Jim Meyering  <meyering@redhat.com>
43743
43744         work around mingw's lack of some S_IF definitions
43745         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
43746         Reported by Simon Josefsson.
43747
43748 2008-12-08  Bruno Haible  <bruno@clisp.org>
43749
43750         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
43751         applied to variables. Needed on MacOS X 10.4/PowerPC.
43752         Reported by Simon Josefsson.
43753
43754 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
43755         and Eric Blake  <ebb9@byu.net>
43756
43757         assert: honor --enable-assert
43758         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
43759         order to honor --enable-assert, rather than treating it as a
43760         synonym for --disable-assert.
43761
43762 2008-12-08  Jim Meyering  <meyering@redhat.com>
43763
43764         * lib/posixtm.c: Remove now-useless declaration of mktime.
43765
43766         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
43767
43768 2008-12-07  Bruno Haible  <bruno@clisp.org>
43769
43770         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
43771         test_once): Mark functions as static.
43772         * tests/test-tls.c (test_tls): Likewise.
43773
43774 2008-12-07  Bruno Haible  <bruno@clisp.org>
43775
43776         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
43777         iconv_register_autodetect.
43778
43779 2008-12-07  Jim Meyering  <meyering@redhat.com>
43780
43781         posixtm.c: avoid a warning
43782         * lib/posixtm.c (posixtime): Don't initialize tm0.
43783         It's no longer needed to placate gcc4's -Wuninitialized,
43784         and the attempt to placate would elicit a new warning.
43785
43786         unicodeio.c: mark unused parameters
43787         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
43788         (fallback_failure_callback): Likewise.
43789
43790 2008-12-07  Bruno Haible  <bruno@clisp.org>
43791
43792         * gnulib-tool (func_create_testdir): When building the tests
43793         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
43794         Reported by Simon Josefsson.
43795
43796 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43797
43798         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
43799
43800 2008-12-06  Bruno Haible  <bruno@clisp.org>
43801
43802         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
43803         Suggested by Eric Blake.
43804
43805 2008-12-06  Bruno Haible  <bruno@clisp.org>
43806
43807         Fix a c-stack test failure on MacOS X.
43808         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
43809         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
43810         handler for SIGBUS as well.
43811         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
43812         install a signal handler for SIGBUS as well.
43813         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
43814
43815 2008-12-06  Bruno Haible  <bruno@clisp.org>
43816
43817         Advocacy documentation.
43818         * doc/gnulib-intro.texi (Benefits): New section.
43819         * doc/gnulib.texi: Update.
43820
43821 2008-12-06  Bruno Haible  <bruno@clisp.org>
43822
43823         Document the 'manywarnings' module.
43824         * doc/manywarnings.texi: New file.
43825         * doc/gnulib.texi: Include it.
43826
43827 2008-12-05  Eric Blake  <ebb9@byu.net>
43828
43829         tests: silence some gcc warnings
43830         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
43831         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
43832         type mismatches.
43833
43834 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43835             Bruno Haible  <bruno@clisp.org>
43836
43837         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
43838
43839 2008-11-29  Jim Meyering  <meyering@redhat.com>
43840
43841         unicodeio.c: mark unused parameters
43842         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
43843         (fallback_failure_callback): Likewise.
43844
43845         fts: fix a thinko
43846         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
43847         (set_stat_type): Return S_IF*-valued "type" directly.
43848         Prompted by James Youngman's spotting a related bug.
43849         Confirmed by further testing through find.
43850
43851         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
43852         * lib/fts.c (D_TYPE): Define.
43853         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
43854         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
43855         (s_ifmt_shift_bits): New function.
43856         (set_stat_type): New function.
43857         (fts_build): When not calling fts_stat, call set_stat_type
43858         to propagate dirent.d_type info to fts_read caller.
43859         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
43860         fts_statp->st_mode type information may be valid.
43861
43862 2008-11-28  Simon Josefsson  <simon@josefsson.org>
43863
43864         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
43865         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
43866         <sds@gnu.org>.
43867
43868 2008-11-20  Bruno Haible  <bruno@clisp.org>
43869
43870         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
43871         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
43872         INCLUDE_NEXT.
43873         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
43874         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
43875         * modules/math (Makefile.am): Substitute
43876         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
43877         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
43878
43879 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
43880             Bruno Haible  <bruno@clisp.org>
43881
43882         * lib/stdint.in.h: Define all type macros so that their expansion is
43883         a single typedef'ed token. Fixes a compilation failure in Boost which
43884         does "using ::int8_t;".
43885
43886 2008-11-18  Simon Josefsson  <simon@josefsson.org>
43887
43888         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
43889         gl_MANYWARN_ALL_GCC.
43890         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
43891         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
43892         * modules/manywarnings: New file.
43893         * MODULES.html.sh: Mention manywarnings module.
43894
43895 2008-11-18  Bruno Haible  <bruno@clisp.org>
43896
43897         * doc/gnulib-tool.texi (Unit tests): New section.
43898
43899 2008-11-18  Simon Josefsson  <simon@josefsson.org>
43900
43901         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
43902         paths like 'lib/po/foo.po'.
43903
43904 2008-11-17  Simon Josefsson  <simon@josefsson.org>
43905
43906         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
43907         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
43908
43909 2008-11-17  Simon Josefsson  <simon@josefsson.org>
43910
43911         * m4/warnings.m4: Use CPPFLAGS to really check whether the
43912         parameter works.
43913
43914 2008-11-17  Simon Josefsson  <simon@josefsson.org>
43915
43916         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
43917
43918 2008-11-17  Bruce Korb  <bkorb@gnu.org>
43919
43920         * modules/parse-duration-tests: New file.
43921         * tests/test-parse-duration.sh: New file.
43922         * tests/test-parse-duration.c: New file.
43923
43924         New module 'parse-duration'.
43925         * lib/parse-duration.h: New file.
43926         * lib/parse-duration.c: New file.
43927         * modules/parse-duration: New file.
43928
43929 2008-11-17  Bruno Haible  <bruno@clisp.org>
43930
43931         * tests/test-select-out.sh: Comment out the first pipe test.
43932         Reported by Simon Josefsson.
43933
43934 2008-11-17  Bruno Haible  <bruno@clisp.org>
43935
43936         * modules/getaddrinfo (Depends-on): Add servent, hostent.
43937         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
43938         gl_HOSTENT.
43939
43940 2008-11-17  Bruno Haible  <bruno@clisp.org>
43941
43942         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
43943         -lnetwork and -lnet. Needed for Haiku and BeOS.
43944
43945 2008-11-16  Bruno Haible  <bruno@clisp.org>
43946
43947         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
43948
43949 2008-11-16  Bruno Haible  <bruno@clisp.org>
43950
43951         Avoid test failure on Haiku.
43952         * tests/test-fsync.c: Include <errno.h>.
43953         (main): Don't require that fsync (0) fails.
43954
43955 2008-11-15  Bruno Haible  <bruno@clisp.org>
43956
43957         New module 'hostent'.
43958         * modules/hostent: New file.
43959         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
43960
43961 2008-11-15  Bruno Haible  <bruno@clisp.org>
43962
43963         New module 'servent'.
43964         * modules/servent: New file.
43965         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
43966
43967 2008-11-15  Bruno Haible  <bruno@clisp.org>
43968
43969         Avoid generating same test program with two different rules.
43970         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
43971         test-frexp to test-frexp-nolibm.
43972         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
43973         test-frexpl to test-frexpl-nolibm.
43974
43975 2008-11-15  Bruno Haible  <bruno@clisp.org>
43976
43977         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
43978         $(FREXPL_LIBM).
43979
43980 2008-11-15  Bruno Haible  <bruno@clisp.org>
43981
43982         * lib/netdb.in.h: Activate the definitions also when the system's
43983         <netdb.h> has 'struct addrinfo'.
43984         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
43985         EAI_OVERFLOW or AI_NUMERICSERV.
43986         * doc/posix-headers/netdb.texi: Document the problem.
43987
43988 2008-11-15  Bruno Haible  <bruno@clisp.org>
43989
43990         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
43991
43992         Make the 'sched' module work on platforms where <sched.h> exists but
43993         is incomplete (such as Haiku).
43994         * lib/sched.in.h; Include the system's <sched.h> if it exists.
43995         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
43996         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
43997         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
43998         HAVE_STRUCT_SCHED_PARAM.
43999         * modules/sched (Depends-on): Add include_next.
44000         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
44001         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
44002         * doc/posix-headers/sched.texi: Document the issue.
44003
44004 2008-11-13  Jim Meyering  <meyering@redhat.com>
44005
44006         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
44007         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
44008         test would fail due to the difference in the Report bugs to ...
44009         line.  The expected address is empty, "<>", while the actual
44010         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
44011
44012 2008-11-12  Bruno Haible  <bruno@clisp.org>
44013
44014         lstat: don't compile lstat.c on systems lacking lstat
44015         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
44016         which don't have lstat; this is handled by lib/sys_stat.in.h already.
44017         Reported by Daniel P. Berrange via Jim Meyering.
44018
44019 2008-11-12  Jim Meyering  <meyering@redhat.com>
44020
44021         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
44022
44023 2008-11-12  Simon Josefsson  <simon@josefsson.org>
44024
44025         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
44026         instead.
44027
44028 2008-11-12  Bruno Haible  <bruno@clisp.org>
44029
44030         * lib/unicodeio.c: Include unistr.h.
44031         (utf8_wctomb): Remove function.
44032         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
44033
44034 2008-11-12  Simon Josefsson  <simon@josefsson.org>
44035
44036         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
44037         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
44038         <bruno@clisp.org>.
44039         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
44040
44041 2008-11-12  Simon Josefsson  <simon@josefsson.org>
44042
44043         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
44044         * doc/gnulib.texi: Add section for warnings.
44045
44046 2008-11-11  Bruno Haible  <bruno@clisp.org>
44047
44048         * lib/sockets.h: Add a comment.
44049
44050 2008-11-11  Karl Berry  <karl@gnu.org>
44051
44052         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
44053
44054 2008-11-11  Eric Blake  <ebb9@byu.net>
44055
44056         fdl.texi: avoid git symlinks
44057         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
44058
44059 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
44060
44061         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
44062
44063 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
44064
44065         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
44066         (gl_WARN_ADD): Substitute $2 if literal.
44067
44068 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
44069
44070         * m4/warning.m4: Remove.
44071
44072 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
44073
44074         * m4/warnings.m4: Almost complete rewrite. :-)
44075
44076 2008-11-10  Simon Josefsson  <simon@josefsson.org>
44077
44078         * modules/warnings: New module.
44079         * m4/warnings.m4: New file.
44080         * MODULES.html.sh: Mention warnings module.
44081         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
44082         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
44083
44084 2008-11-10  Eric Blake  <ebb9@byu.net>
44085
44086         fdl.texi: make a symlink to the latest version
44087         * doc/standards.texi: Revert today's earlier change.
44088         * doc/fdl-1.2.texi: Rename from old fdl.texi...
44089         * doc/fdl.texi: ...and replace this with a symlink to the newer
44090         fdl-1.3.texi.
44091
44092 2008-11-10  Bruno Haible  <bruno@clisp.org>
44093
44094         * tests/test-select-fd.c (main): Accept the result file name as fourth
44095         argument.
44096         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
44097         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
44098
44099 2008-11-10  Bruno Haible  <bruno@clisp.org>
44100
44101         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
44102         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
44103         as autoconf-substituted macros.
44104         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
44105         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
44106         gl_NETDB_H_DEFAULTS. Set these variables.
44107         * modules/netdb (Makefile.am): Substitute these variables.
44108
44109 2008-11-10  Eric Blake  <ebb9@byu.net>
44110
44111         standards.texi: include correct file for FDL 1.3
44112         * doc/standards.texi (GNU Free Documentation License): Change
44113         include file to pull in FDL 1.3, not 1.2.
44114
44115         fdl.texi: revert accidental change to license
44116         * doc/fdl.texi: This is FDL 1.2, not 1.3.
44117
44118 2008-11-10  Bruno Haible  <bruno@clisp.org>
44119
44120         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
44121         cross-compiling guesses also when the native compile gives no result.
44122
44123 2008-11-10  Bruno Haible  <bruno@clisp.org>
44124
44125         * lib/spawni.c (__spawni): Force variable into the stack.
44126
44127 2008-11-10  Bruno Haible  <bruno@clisp.org>
44128
44129         Add support for Haiku.
44130         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
44131         glibc and BeOS, but also on Haiku.
44132         * lib/fpurge.c (fpurge): Likewise.
44133         * lib/freadable.c (freadable): Likewise.
44134         * lib/freadahead.c (freadahead): Likewise.
44135         * lib/freading.c (freading): Likewise.
44136         * lib/freadptr.c (freadptr): Likewise.
44137         * lib/freadseek.c (freadptrinc): Likewise.
44138         * lib/fseeko.c (rpl_fseeko): Likewise.
44139         * lib/fseterr.c (fseterr): Likewise.
44140         * lib/fwritable.c (fwritable): Likewise.
44141         * lib/fwriting.c (fwriting): Likewise.
44142         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
44143
44144 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
44145
44146         * lib/config.charset: Treat Haiku like BeOS.
44147
44148 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
44149
44150         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
44151         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
44152
44153 2008-11-08  Bruno Haible  <bruno@clisp.org>
44154
44155         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
44156         AC_CACHE_CHECK.
44157
44158 2008-11-08  Bruno Haible  <bruno@clisp.org>
44159
44160         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
44161
44162 2008-11-08  Bruno Haible  <bruno@clisp.org>
44163
44164         * tests/test-select-fd.c: New file.
44165         * tests/test-select-in.sh: New file.
44166         * tests/test-select-out.sh: New file.
44167         * tests/test-select-stdin.c: New file.
44168         * modules/select-tests (Files): Add the new files.
44169         (Depends-on): Add gettimeofday.
44170         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
44171         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
44172         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
44173
44174 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
44175             Bruno Haible  <bruno@clisp.org>
44176
44177         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
44178
44179 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
44180
44181         * build-aux/pmccabe2html: Added support for C++ source files.
44182
44183 2008-11-05  Ben Pfaff  <blp@gnu.org>
44184
44185         Fix lib/close.c build on Windows.
44186         * modules/close (Files): Add lib/w32sock.h.
44187
44188 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
44189
44190         Accept Bison's NEWS format.
44191         * build-aux/announce-gen (print_news_deltas): Tweak
44192         $re_prefix.
44193
44194 2008-11-04  Bruno Haible  <bruno@clisp.org>
44195
44196         * modules/random_r (Maintainer): Add glibc.
44197
44198 2008-11-04  Simon Josefsson  <simon@josefsson.org>
44199
44200         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
44201         by karl@freefriends.org (Karl Berry).
44202         * doc/alloca.texi: Likewise.
44203         * doc/c-ctype.texi: Likewise.
44204         * doc/c-strcase.texi: Likewise.
44205         * doc/c-strcaseeq.texi: Likewise.
44206         * doc/c-strcasestr.texi: Likewise.
44207         * doc/c-strstr.texi: Likewise.
44208         * doc/c-strtod.texi: Likewise.
44209         * doc/c-strtold.texi: Likewise.
44210         * doc/ctime.texi: Likewise.
44211         * doc/error.texi: Likewise.
44212         * doc/fdl.texi: Likewise.
44213         * doc/gcd.texi: Likewise.
44214         * doc/getdate.texi: Likewise.
44215         * doc/gnulib-intro.texi: Likewise.
44216         * doc/gnulib-tool.texi: Likewise.
44217         * doc/gnulib.texi: Likewise.
44218         * doc/inet_ntoa.texi: Likewise.
44219         * doc/maintain.texi: Likewise.
44220         * doc/make-stds.texi: Likewise.
44221         * doc/quote.texi: Likewise.
44222         * doc/regexprops-generic.texi: Likewise.
44223         * doc/standards.texi: Likewise.
44224         * doc/verify.texi: Likewise.
44225         * doc/visibility.texi: Likewise.
44226         * doc/gnulib.texi (GNU Free Documentation License): Include
44227         fdl-1.3.texi instead of fdl.texi.
44228
44229 2008-11-04  Simon Josefsson  <simon@josefsson.org>
44230
44231         * doc/fdl-1.3.texi: New file, from
44232         <http://www.gnu.org/licenses/fdl-1.3.texi>.
44233         * modules/fdl-1.3: Add.
44234         * MODULES.html.sh: Add fdl-1.3.
44235
44236 2008-11-03  Bruno Haible  <bruno@clisp.org>
44237
44238         Make determination of absolute name of header file work with AIX xlc.
44239         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
44240         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
44241         preprocessing.
44242         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
44243         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
44244
44245 2008-11-03  Simon Josefsson  <simon@josefsson.org>
44246
44247         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
44248         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
44249         <ludo@gnu.org>.
44250
44251 2008-11-02  Bruno Haible  <bruno@clisp.org>
44252
44253         Mark 'strpbrk' obsolete.
44254         * modules/strpbrk (Status, Notice): New sections.
44255         * modules/strtok_r (Depends-on): Add strpbrk.
44256
44257 2008-11-02  Bruno Haible  <bruno@clisp.org>
44258
44259         Mark 'strdup' obsolete.
44260         * modules/strdup (Status, Notice): New sections.
44261         * modules/findprog (Depends-on): Add strdup.
44262         * modules/getaddrinfo (Depends-on): Likewise.
44263         * modules/localename (Depends-on): Likewise.
44264         * modules/relocatable-lib (Depends-on): Likewise.
44265         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
44266         * modules/relocatable-prog (Depends-on): Likewise.
44267         * modules/trim (Depends-on): Likewise.
44268         * modules/unictype/gen-ctype (Depends-on): Likewise.
44269         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
44270
44271 2008-11-02  Bruno Haible  <bruno@clisp.org>
44272
44273         Mark 'strcspn' obsolete.
44274         * modules/strcspn (Status, Notice): New sections.
44275
44276 2008-11-02  Bruno Haible  <bruno@clisp.org>
44277
44278         Mark 'rmdir' obsolete.
44279         * modules/rmdir (Status, Notice): New sections.
44280         * modules/clean-temp (Depends-on): Add rmdir.
44281         * modules/openat (Depends-on): Likewise.
44282
44283 2008-11-02  Bruno Haible  <bruno@clisp.org>
44284
44285         Mark 'raise' obsolete.
44286         * modules/raise (Status, Notice): New sections.
44287         (Include): Specify <signal.h>.
44288         * modules/stdio (Depends-on): Add raise.
44289         * modules/write (Depends-on): Likewise.
44290
44291 2008-11-02  Bruno Haible  <bruno@clisp.org>
44292
44293         Mark 'memset' obsolete.
44294         * modules/memset (Status, Notice): New sections.
44295
44296 2008-11-02  Bruno Haible  <bruno@clisp.org>
44297
44298         Mark 'memmove' obsolete.
44299         * modules/memmove (Status, Notice): New sections.
44300         * modules/argp (Depends-on): Add memmove.
44301         * modules/argz (Depends-on): Likewise.
44302         * modules/canonicalize (Depends-on): Likewise.
44303         * modules/canonicalize-lgpl (Depends-on): Likewise.
44304         * modules/fts (Depends-on): Likewise.
44305         * modules/getcwd (Depends-on): Likewise.
44306         * modules/human (Depends-on): Likewise.
44307         * modules/regex (Depends-on): Likewise.
44308         * modules/striconveh (Depends-on): Likewise.
44309         * modules/trim (Depends-on): Likewise.
44310         * modules/unistr/u8-move (Depends-on): Likewise.
44311         * modules/unistr/u16-move (Depends-on): Likewise.
44312         * modules/unistr/u32-move (Depends-on): Likewise.
44313
44314 2008-11-02  Bruno Haible  <bruno@clisp.org>
44315
44316         Mark 'memcpy' obsolete.
44317         * modules/memcpy (Status, Notice): New sections.
44318
44319 2008-11-02  Bruno Haible  <bruno@clisp.org>
44320
44321         Mark 'memcmp' obsolete.
44322         * modules/memcmp (Status, Notice): New sections.
44323         * modules/argmatch (Depends-on): Add memchr.
44324         * modules/backupfile (Depends-on): Likewise.
44325         * modules/c-strcasestr (Depends-on): Likewise.
44326         * modules/crypto/des (Depends-on): Likewise.
44327         * modules/csharpcomp (Depends-on): Likewise.
44328         * modules/fnmatch (Depends-on): Likewise.
44329         * modules/git-merge-changelog (Depends-on): Likewise.
44330         * modules/isnand (Depends-on): Likewise.
44331         * modules/isnand-nolibm (Depends-on): Likewise.
44332         * modules/isnanf (Depends-on): Likewise.
44333         * modules/isnanf-nolibm (Depends-on): Likewise.
44334         * modules/isnanl (Depends-on): Likewise.
44335         * modules/isnanl-nolibm (Depends-on): Likewise.
44336         * modules/mbchar (Depends-on): Likewise.
44337         * modules/memcoll (Depends-on): Likewise.
44338         * modules/quotearg (Depends-on): Likewise.
44339         * modules/regex (Depends-on): Likewise.
44340         * modules/relocatable-prog (Depends-on): Likewise.
44341         * modules/same (Depends-on): Likewise.
44342         * modules/signbit (Depends-on): Likewise.
44343         * modules/strcasestr-simple (Depends-on): Likewise.
44344         * modules/unictype/gen-ctype (Depends-on): Likewise.
44345         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
44346         * modules/uniname/uniname (Depends-on): Likewise.
44347         * modules/unistr/u8-cmp (Depends-on): Likewise.
44348
44349 2008-11-02  Bruno Haible  <bruno@clisp.org>
44350
44351         Mark 'memchr' obsolete.
44352         * modules/memchr (Status, Notice): New sections.
44353         * modules/argp (Depends-on): Add memchr.
44354         * modules/base64 (Depends-on): Likewise.
44355         * modules/c-strcasestr (Depends-on): Likewise.
44356         * modules/chdir-long (Depends-on): Likewise.
44357         * modules/fnmatch (Depends-on): Likewise.
44358         * modules/getsubopt (Depends-on): Likewise.
44359         * modules/git-merge-changelog (Depends-on): Likewise.
44360         * modules/glob (Depends-on): Likewise.
44361         * modules/strcasestr-simple (Depends-on): Likewise.
44362         * modules/strnlen (Depends-on): Likewise.
44363
44364 2008-11-02  Bruno Haible  <bruno@clisp.org>
44365
44366         Mark 'atexit' obsolete.
44367         * modules/atexit (Status, Notice): New sections.
44368         * modules/chdir-long (Depends-on): Add atexit.
44369         * modules/wait-process (Depends-on): Likewise.
44370
44371 2008-11-02  Bruno Haible  <bruno@clisp.org>
44372
44373         * gnulib-tool: New option --with-obsolete.
44374         (func_usage): Document it.
44375         (func_modules_transitive_closure): Drop obsolete dependencies if
44376         incobsolete is not true.
44377         (func_import): Read and save the incobsolete variable to the cache.
44378
44379 2008-11-02  Bruno Haible  <bruno@clisp.org>
44380
44381         * modules/TEMPLATE-EXTENDED: New field 'Status'.
44382         * gnulib-tool: New option --extract-status.
44383         (func_usage): Document it.
44384         (sed_extract_prog): Recognize it.
44385         (func_get_status): New function.
44386
44387 2008-10-30  Simon Josefsson  <simon@josefsson.org>
44388
44389         * modules/sockets (License): Change from LGPL to LGPLv2+.
44390
44391 2008-10-28  Simon Josefsson  <simon@josefsson.org>
44392
44393         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
44394
44395 2008-10-28  Simon Josefsson  <simon@josefsson.org>
44396
44397         * MODULES.html.sh (Support for systems lacking POSIX:2001):
44398         Mention times and sys_times.
44399         * modules/sys_times, modules/sys_times-tests: New modules.
44400         * modules/times, modules/times-tests: Likewise
44401         * m4/sys_times_h.m4: New file.
44402         * lib/sys_times.in.h: Likewise
44403         * lib/times.c: Likewise.
44404         * tests/test-sys_times.c: Likewise.
44405         * tests/test-times.c: Likewise.
44406         * doc/posix-headers/sys_times.texi: Update.
44407         * doc/posix-functions/times.texi: Update.
44408
44409 2008-10-28  Jim Meyering  <meyering@redhat.com>
44410
44411         * modules/tempname (Depends-on): Add lstat.
44412
44413         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
44414
44415 2008-10-28  Simon Josefsson  <simon@josefsson.org>
44416
44417         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
44418         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
44419         using idiom used elsewhere in gnulib.
44420
44421 2008-10-27  Jim Meyering  <meyering@redhat.com>
44422
44423         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
44424
44425 2008-10-27  Simon Josefsson  <simon@josefsson.org>
44426
44427         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
44428         TESTS_ENVIRONMENT, for shell scripts that needs to call built
44429         programs.
44430         * tests/test-argp-2.sh: Use $EXEEXT when needed.
44431
44432 2008-10-27  Simon Josefsson  <simon@josefsson.org>
44433
44434         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
44435
44436 2008-10-27  Bruno Haible  <bruno@clisp.org>
44437
44438         * tests/test-lstat.c: Include <stdio.h>.
44439
44440 2008-10-27  Simon Josefsson  <simon@josefsson.org>
44441
44442         * modules/lstat-tests: New module.
44443         * tests/test-lstat.c: New file.
44444
44445 2008-10-26  Jim Meyering  <meyering@redhat.com>
44446
44447         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
44448
44449 2008-10-26  Simon Josefsson  <simon@josefsson.org>
44450             Bruno Haible  <bruno@clisp.org>
44451
44452         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
44453         * modules/configmake (Include): Add a note that the include must come
44454         after all system headers.
44455         * lib/javaversion.c: Include configmake.h after all other includes.
44456
44457 2008-10-26  Bruno Haible  <bruno@clisp.org>
44458
44459         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
44460         HAVE_STRUCT_RANDOM_DATA to 1.
44461         (gl_STDLIB_H): Simplify.
44462
44463 2008-10-26  Simon Josefsson  <simon@josefsson.org>
44464
44465         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
44466         substitute HAVE_STRUCT_RANDOM_DATA.
44467         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
44468         random_data.
44469         * modules/stdlib (Makefile.am): Substitute
44470         HAVE_STRUCT_RANDOM_DATA.
44471
44472 2008-10-26  Simon Josefsson  <simon@josefsson.org>
44473
44474         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
44475         * doc/gnulib-intro.texi (Copyright): Likewise.
44476
44477 2008-10-26  Simon Josefsson  <simon@josefsson.org>
44478
44479         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
44480         findings.
44481
44482 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
44483             Bruno Haible  <bruno@clisp.org>
44484
44485         * lib/unistd.in.h: Include <winsock2.h>.
44486         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
44487         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
44488         Provide dummy declarations.
44489         (gethostname): Override.
44490         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
44491         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
44492         gl_PREREQ_SYS_H_WINSOCK2.
44493         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
44494         * doc/posix-functions/gethostname.texi: More details.
44495
44496 2008-10-25  Bruno Haible  <bruno@clisp.org>
44497
44498         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
44499         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
44500         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
44501
44502         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
44503         here ...
44504         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
44505         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
44506         gl_UNISTD_H_DEFAULTS.
44507
44508 2008-10-25  Eric Blake  <ebb9@byu.net>
44509
44510         signbit: avoid spurious compiler failure
44511         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
44512         declarations inside function.
44513
44514 2008-10-24  Simon Josefsson  <simon@josefsson.org>
44515             Bruno Haible  <bruno@clisp.org>
44516
44517         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
44518         * modules/random_r (Depends-on): Add stdint.
44519
44520 2008-10-24  Bruno Haible  <bruno@clisp.org>
44521
44522         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
44523         Eggert.
44524         * modules/strerror (License): Likewise.
44525
44526 2008-10-24  Jim Meyering  <meyering@redhat.com>
44527
44528         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
44529         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
44530
44531 2008-10-24  Eric Blake  <ebb9@byu.net>
44532
44533         getgroups: fix compilation when getgroups is available
44534         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
44535         but with <config.h> override of getgroups disabled.
44536
44537 2008-10-24  Simon Josefsson  <simon@josefsson.org>
44538
44539         * doc/gnulib.texi (Header files): Add note about C++ problems.
44540         Explained by Bruno Haible <bruno@clisp.org>.
44541
44542 2008-10-23  Bruno Haible  <bruno@clisp.org>
44543
44544         Define a dummy SA_NODEFER macro on Interix.
44545         * lib/signal.in.h (SA_NODEFER): Define fallback.
44546         Reported by Aleksey Cheusov <cheusov@tut.by> via
44547         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
44548
44549 2008-10-23  Bruno Haible  <bruno@clisp.org>
44550
44551         * modules/freadahead (License): Change to LGPLv2+.
44552         Suggested by Simon Josefsson.
44553
44554 2008-10-23  Jim Meyering  <meyering@redhat.com>
44555
44556         random_r: new module
44557         * modules/random_r: New file.
44558         * m4/random_r.m4: New file.
44559         * lib/random_r.c: New file, from glibc.
44560         * modules/random_r-tests: New file.
44561         * tests/test-random_r.c: New file.
44562         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
44563          Declare.
44564         (RAND_MAX): Define.
44565         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
44566         * modules/stdlib: Substitute them, too.
44567         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
44568         * doc/glibc-functions/initstate_r.texi: Mention the new module.
44569         * doc/glibc-functions/random_r.texi: Likewise.
44570         * doc/glibc-functions/setstate_r.texi: Likewise.
44571         * doc/glibc-functions/srandom_r.texi: Likewise.
44572         * config/srclist.txt: Mention it.
44573
44574 2008-10-23  David Lutterkort  <lutter@redhat.com>
44575
44576         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
44577         link requirement
44578
44579 2008-10-23  Jim Meyering  <meyering@redhat.com>
44580
44581         selinux-h: mark parameters of stub functions as intentionally unused
44582         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
44583         * lib/se-context.in.h: Likewise.
44584
44585 2008-10-22  Simon Josefsson  <simon@josefsson.org>
44586
44587         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
44588
44589 2008-10-22  Simon Josefsson  <simon@josefsson.org>
44590
44591         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
44592
44593 2008-10-22  Eric Blake  <ebb9@byu.net>
44594
44595         glthread/thread: avoid compiler warning
44596         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
44597         Add unreachable abort to silence compiler.
44598
44599 2008-10-22  Eric Blake  <ebb9@byu.net>
44600
44601         netdb: also supply struct addrinfo for cygwin 1.5.x
44602         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
44603         older cygwin.
44604         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
44605         cygwin.
44606         * doc/posix-headers/netdb.texi (netdb.h): Document this.
44607
44608 2008-10-22  Bruno Haible  <bruno@clisp.org>
44609
44610         * users.txt: Update entry about pspp.
44611
44612 2008-10-21  Bruno Haible  <bruno@clisp.org>
44613
44614         Simplification.
44615         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
44616         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
44617
44618         Simplification.
44619         * lib/ioctl.c (ioctl): Don't undefine.
44620         * lib/socket.c (socket): Don't undefine.
44621
44622         Remove unused module indicator macros.
44623         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
44624         GNULIB_$1 as a C macro.
44625
44626         * doc/posix-functions/close.texi: Undo last change.
44627         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
44628         Windows platforms.
44629
44630 2008-10-21  Bruno Haible  <bruno@clisp.org>
44631
44632         Add gethostname() declaration to <unistd.h>.
44633         * lib/unistd.in.h (gethostname): New declaration.
44634         * lib/gethostname.c: Include <unistd.h>.
44635         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
44636         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
44637         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
44638         and HAVE_GETHOSTNAME.
44639         * modules/gethostname (Depends-on): Add unistd.
44640         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
44641         (Include): Specify <unistd.h>.
44642         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
44643         HAVE_GETHOSTNAME.
44644         * tests/test-gethostname.c: Include <unistd.h> first.
44645
44646 2008-10-21  Bruno Haible  <bruno@clisp.org>
44647
44648         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
44649         * modules/select-tests (Depends-on): Likewise.
44650         Reported by Simon Josefsson.
44651
44652 2008-10-21  Simon Josefsson  <simon@josefsson.org>
44653
44654         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
44655         * lib/accept.c: New file, based on winsock.c.
44656         * lib/bind.c: New file, based on winsock.c.
44657         * lib/connect.c: New file, based on winsock.c.
44658         * lib/getpeername.c: New file, based on winsock.c.
44659         * lib/getsockname.c: New file, based on winsock.c.
44660         * lib/getsockopt.c: New file, based on winsock.c.
44661         * lib/ioctl.c: New file, based on winsock.c.
44662         * lib/listen.c: New file, based on winsock.c.
44663         * lib/recv.c: New file, based on winsock.c.
44664         * lib/recvfrom.c: New file, based on winsock.c.
44665         * lib/send.c: New file, based on winsock.c.
44666         * lib/sendto.c: New file, based on winsock.c.
44667         * lib/setsockopt.c: New file, based on winsock.c.
44668         * lib/shutdown.c: New file, based on winsock.c.
44669         * lib/socket.c: New file, based on winsock.c.
44670         * lib/w32sock.h: New file, based on winsock.c.
44671         * lib/winsock.c: Remove file.
44672         * modules/accept: Likewise.
44673         * modules/bind: Likewise.
44674         * modules/connect: Likewise.
44675         * modules/getpeername: Likewise.
44676         * modules/getsockname: Likewise.
44677         * modules/getsockopt: Likewise.
44678         * modules/ioctl: Likewise.
44679         * modules/listen: Likewise.
44680         * modules/recv: Likewise.
44681         * modules/recvfrom: Likewise.
44682         * modules/send: Likewise.
44683         * modules/sendto: Likewise.
44684         * modules/setsockopt: Likewise.
44685         * modules/shutdown: Likewise.
44686         * modules/socket: Use socket.c instead of winsock.c.
44687         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
44688         * doc/posix-functions/accept.texi: Doc fix.
44689         * doc/posix-functions/bind.texi: Doc fix.
44690         * doc/posix-functions/close.texi: Doc fix.
44691         * doc/posix-functions/connect.texi: Doc fix.
44692         * doc/posix-functions/getpeername.texi: Doc fix.
44693         * doc/posix-functions/getsockname.texi: Doc fix.
44694         * doc/posix-functions/getsockopt.texi: Doc fix.
44695         * doc/posix-functions/ioctl.texi: Doc fix.
44696         * doc/posix-functions/listen.texi: Doc fix.
44697         * doc/posix-functions/recv.texi: Doc fix.
44698         * doc/posix-functions/recvfrom.texi: Doc fix.
44699         * doc/posix-functions/send.texi: Doc fix.
44700         * doc/posix-functions/sendto.texi: Doc fix.
44701         * doc/posix-functions/setsockopt.texi: Doc fix.
44702         * doc/posix-functions/shutdown.texi: Doc fix.
44703         * doc/posix-functions/socket.texi: Doc fix.
44704
44705 2008-10-20  Bruno Haible  <bruno@clisp.org>
44706
44707         Take into account the role of SIGABRT_COMPAT on Windows 2008.
44708         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
44709         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
44710         as an alias for SIGABRT.
44711         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
44712         (sigaction): Map it to SIGABRT.
44713         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
44714
44715 2008-10-20  Bruno Haible  <bruno@clisp.org>
44716
44717         * lib/fts.c: Don't include lstat.h.
44718         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
44719
44720         Move the lstat() declaration to <sys/stat.h>.
44721         * lib/lstat.h: Remove file.
44722         * lib/sys_stat.in.h: Add special invocation convention.
44723         (lstat): New declaration.
44724         * lib/lstat.c (orig_lstat): New function.
44725         (rpl_lstat): Use orig_lstat instead of lstat.
44726         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
44727         AC_C_INLINE. Set REPLACE_LSTAT.
44728         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
44729         and REPLACE_LSTAT.
44730         * modules/lstat (Files): Remove lib/lstat.h.
44731         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
44732         (Include): Specify <sys/stat.h> instead of lstat.h.
44733         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
44734         REPLACE_LSTAT.
44735         * NEWS: Mention the change.
44736
44737 2008-10-20  Bruno Haible  <bruno@clisp.org>
44738
44739         * modules/posix_spawn-tests: New file.
44740         * tests/test-posix_spawn3.c: New file.
44741
44742 2008-10-20  Bruno Haible  <bruno@clisp.org>
44743
44744         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
44745         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
44746         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
44747         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
44748         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
44749
44750 2008-10-20  Bruno Haible  <bruno@clisp.org>
44751
44752         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
44753         of posix_spawn on AIX 5.3.
44754
44755 2008-10-20  Bruno Haible  <bruno@clisp.org>
44756
44757         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
44758
44759 2008-10-20  Bruno Haible  <bruno@clisp.org>
44760
44761         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
44762         of AC_LANG_PROGRAM.
44763
44764 2008-10-20  Simon Josefsson  <simon@josefsson.org>
44765
44766         * lib/netdb.in.h: Don't define GNU specific constants until they
44767         are supported or needed.  Reported by Bruno Haible
44768         <bruno@clisp.org>.
44769
44770 2008-10-20  Simon Josefsson  <simon@josefsson.org>
44771
44772         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
44773
44774 2008-10-20  Simon Josefsson  <simon@josefsson.org>
44775
44776         * lib/getaddrinfo.h: Remove file.
44777         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
44778         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
44779         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
44780         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
44781         * modules/netdb: Substitute GNULIB_GETADDRINFO.
44782         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
44783         * tests/test-getaddrinfo.c: Likewise.
44784         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
44785         * NEWS: Mention change.
44786
44787 2008-10-19  Bruno Haible  <bruno@clisp.org>
44788
44789         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
44790
44791 2008-10-19  Bruno Haible  <bruno@clisp.org>
44792
44793         * lib/wait-process.c: Include simply <sys/wait.h>.
44794         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
44795         WIFSTOPPED): Remove fallback definitions.
44796         * modules/wait-process (Depends-on): Add sys_wait.
44797
44798         New module 'sys_wait'.
44799         * modules/sys_wait: New file.
44800         * lib/sys_wait.in.h: New file, partially copied from
44801         lib/wait-process.c.
44802         * m4/sys_wait_h.m4: New file.
44803         * doc/posix-headers/sys_wait.texi: Mention the new module.
44804
44805 2008-10-19  Bruno Haible  <bruno@clisp.org>
44806
44807         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
44808
44809 2008-10-19  Bruno Haible  <bruno@clisp.org>
44810
44811         Assume that waitpid() fills an 'int' status, not a 'union wait'.
44812         * lib/wait-process.c (WAIT_T): Remove type.
44813         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
44814         (wait_subprocess): Update.
44815
44816 2008-10-19  Bruno Haible  <bruno@clisp.org>
44817
44818         New module 'atoll'.
44819         * modules/atoll: New file.
44820         * lib/stdlib.in.h (atoll): New declaration.
44821         * lib/atoll.c: New file, from glibc with modifications.
44822         * m4/atoll.m4: New file.
44823         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
44824         HAVE_ATOLL.
44825         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
44826         * doc/posix-functions/atoll.texi: Mention the new module.
44827
44828 2008-10-19  Bruno Haible  <bruno@clisp.org>
44829
44830         Add strtoull() declaration to <stdlib.h>.
44831         * lib/stdlib.in.h (strtoull): New declaration.
44832         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
44833         Set HAVE_STRTOULL.
44834         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
44835         HAVE_STRTOULL.
44836         * modules/strtoull (Depends-on): Add stdlib.
44837         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
44838         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
44839         HAVE_STRTOULL.
44840
44841 2008-10-19  Bruno Haible  <bruno@clisp.org>
44842
44843         Add strtoll() declaration to <stdlib.h>.
44844         * lib/stdlib.in.h (strtoll): New declaration.
44845         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
44846         Set HAVE_STRTOLL.
44847         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
44848         HAVE_STRTOLL.
44849         * modules/strtoll (Depends-on): Add stdlib.
44850         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
44851         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
44852
44853 2008-10-19  Bruno Haible  <bruno@clisp.org>
44854
44855         * modules/bcopy (Depends-on): Add strings.
44856         (Include): Specify <strings.h>.
44857
44858 2008-10-19  Bruno Haible  <bruno@clisp.org>
44859
44860         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
44861
44862 2008-10-19  Bruno Haible  <bruno@clisp.org>
44863
44864         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
44865         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
44866         mingw.
44867
44868 2008-10-19  Bruno Haible  <bruno@clisp.org>
44869
44870         * lib/atanl.c: Don't include isnanl.h.
44871         * lib/cosl.c: Likewise.
44872         * lib/ldexpl.c: Likewise.
44873         * lib/logl.c: Likewise.
44874         * lib/sinl.c: Likewise.
44875         * lib/sqrtl.c: Likewise.
44876         * lib/tanl.c: Likewise.
44877
44878         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
44879         * lib/isnanf.h: Remove file.
44880         * lib/isnand.h: Remove file.
44881         * lib/isnanl.h: Remove file.
44882         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
44883         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
44884         macros.
44885         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
44886         HAVE_ISNANF, don't define it as a C macro.
44887         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
44888         HAVE_ISNAND, don't define it as a C macro.
44889         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
44890         HAVE_ISNANL, don't define it as a C macro.
44891         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
44892         HAVE_ISNAN[FDL].
44893         * modules/isnanf (Files): Remove lib/isnanf.h.
44894         (Depends-on): Add math.
44895         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
44896         (Include): Specify <math.h> instead of isnanf.h.
44897         * modules/isnand (Files): Remove lib/isnand.h.
44898         (Depends-on): Add math.
44899         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
44900         (Include): Specify <math.h> instead of isnand.h.
44901         * modules/isnanl (Files): Remove lib/isnanl.h.
44902         (Depends-on): Add math.
44903         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
44904         (Include): Specify <math.h> instead of isnanl.h.
44905         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
44906         HAVE_ISNAN[FDL].
44907         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
44908         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
44909         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
44910         * NEWS: Mention the change.
44911
44912 2008-10-18  Bruno Haible  <bruno@clisp.org>
44913
44914         Add getusershell(), setusershell(), endusershell() declarations to
44915         <unistd.h>.
44916         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
44917         declarations.
44918         * lib/getusershell.c: Include unistd.h.
44919         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
44920         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
44921         HAVE_GETUSERSHELL.
44922         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
44923         and HAVE_GETUSERSHELL.
44924         * modules/getusershell (Depends-on): Add unistd, extensions.
44925         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
44926         (Include): Specify <unistd.h>.
44927         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
44928         HAVE_GETUSERSHELL.
44929
44930 2008-10-18  Bruno Haible  <bruno@clisp.org>
44931
44932         Add a getloadavg() declaration to <stdlib.h>.
44933         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
44934         getloadavg declaration.
44935         (getloadavg): New declaration.
44936         * lib/getloadavg.c: Include <stdlib.h> first.
44937         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
44938         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
44939         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
44940         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
44941         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
44942         * modules/getloadavg (Depends-on): Add stdlib, extensions.
44943         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
44944         (Include): Specify <stdlib.h>.
44945         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
44946         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
44947
44948 2008-10-18  Bruno Haible  <bruno@clisp.org>
44949
44950         * lib/dirchownmod.c: Don't include lchmod.h.
44951
44952         Move the lchmod() declaration to <sys/stat.h>.
44953         * lib/lchmod.h: Remove file.
44954         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
44955         (lchmod): New declaration, moved here from lib/lchown.h.
44956         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
44957         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
44958         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
44959         and HAVE_LCHMOD.
44960         * modules/lchmod (Files): Remove lib/lchmod.h.
44961         (Depends-on): Add sys_stat, extensions.
44962         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
44963         (Include): Specify <sys/stat.h> instead of lchmod.h.
44964         * modules/sys_stat (Depends-on): Add link-warning.
44965         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
44966         definition of GL_LINK_WARNING.
44967         * NEWS: Mention the change.
44968
44969 2008-10-18  Bruno Haible  <bruno@clisp.org>
44970
44971         * lib/fchdir.c: Don't include dirfd.h.
44972         * lib/fts.c: Likewise.
44973         * lib/getcwd.c: Likewise.
44974         * lib/glob.c: Likewise.
44975
44976         Move the dirfd() declaration to <dirent.h>.
44977         * lib/dirfd.h: Remove file.
44978         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
44979         (dirfd): New declaration.
44980         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
44981         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
44982         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
44983         HAVE_DECL_DIRFD.
44984         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
44985         HAVE_DECL_DIRFD.
44986         * modules/dirfd (Files): Remove lib/dirfd.h.
44987         (Depends-on): Add dirent, extensions.
44988         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
44989         (Include): Specify <dirent.h> instead of dirfd.h.
44990         * modules/dirent (Depends-on): Add link-warning.
44991         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
44992         definition of GL_LINK_WARNING.
44993         * NEWS: Mention the change.
44994
44995 2008-10-18  Bruno Haible  <bruno@clisp.org>
44996
44997         Move the euidaccess() declaration to <unistd.h>.
44998         * lib/euidaccess.h: Remove file.
44999         * lib/unistd.in.h (euidaccess): New declaration.
45000         * lib/euidaccess.c: Don't include euidaccess.h.
45001         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
45002         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
45003         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
45004         and HAVE_EUIDACCESS.
45005         * modules/euidaccess (Files): Remove lib/euidaccess.h.
45006         (Depends-on): Add unistd.
45007         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
45008         (Include): Specify <unistd.h> instead of euidaccess.h.
45009         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
45010         HAVE_EUIDACCESS.
45011         * NEWS: Mention the change.
45012
45013 2008-10-18  Bruno Haible  <bruno@clisp.org>
45014
45015         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
45016
45017         Move the getdomainname() declaration to <unistd.h>.
45018         * lib/getdomainname.h: Remove file.
45019         * lib/unistd.in.h (getdomainname): New declaration.
45020         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
45021         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
45022         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
45023         HAVE_GETDOMAINNAME.
45024         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
45025         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
45026         * modules/getdomainname (Files): Remove lib/getdomainname.h.
45027         (Depends-on): Add unistd, extensions.
45028         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
45029         (Includes): Specify <unistd.h> instead of getdomainname.h.
45030         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
45031         HAVE_GETDOMAINNAME.
45032         * NEWS: Mention the change.
45033
45034 2008-10-18  Bruno Haible  <bruno@clisp.org>
45035
45036         * modules/dirent: New file.
45037         * m4/dirent_h.m4: New file.
45038         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
45039         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
45040         * modules/fchdir (Files): Remove lib/dirent.in.h.
45041         (Depends-on): Add dirent.
45042         (Makefile.am): Move rules to modules/dirent.
45043         * doc/posix-headers/dirent.texi: Mention the new module.
45044
45045 2008-10-18  Bruno Haible  <bruno@clisp.org>
45046
45047         Avoid -Wunused-parameter warnings in public gnulib header files.
45048         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
45049         macro.
45050         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
45051
45052 2008-10-18  Bruno Haible  <bruno@clisp.org>
45053
45054         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
45055         * doc/glibc-functions/error.texi: Mention the module 'error'.
45056         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
45057         * doc/glibc-functions/getdomainname.texi: Mention the module
45058         'getdomainname'.
45059         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
45060         * doc/glibc-functions/getpagesize.texi: Mention the module
45061         'getpagesize'.
45062         * doc/glibc-functions/getusershell.texi: Mention the module
45063         'getusershell'.
45064         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
45065         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
45066         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
45067         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
45068         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
45069         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
45070         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
45071         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
45072         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
45073         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
45074         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
45075         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
45076         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
45077         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
45078
45079 2008-10-17  Bruno Haible  <bruno@clisp.org>
45080
45081         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
45082         HP-UX and IRIX, use -0.0L.
45083         * tests/test-ceill.c (minus_zero): Likewise.
45084         * tests/test-floorl.c (minus_zero): Likewise.
45085         * tests/test-frexpl.c (minus_zero): Likewise.
45086         * tests/test-isnan.c (minus_zerol): Likewise.
45087         * tests/test-isnanl.h (minus_zero): Likewise.
45088         * tests/test-ldexpl.c (minus_zero): Likewise.
45089         * tests/test-roundl.c (minus_zero): Likewise.
45090         * tests/test-signbit.c (minus_zerol): Likewise.
45091         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
45092         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
45093         * tests/test-truncl.c (minus_zero): Likewise.
45094         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
45095         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
45096         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
45097         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
45098
45099 2008-10-17  Bruno Haible  <bruno@clisp.org>
45100
45101         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
45102         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
45103         that it gets activated only for gcc >= 3.0.
45104         * lib/dirent.in.h: Likewise.
45105         * lib/errno.in.h: Likewise.
45106         * lib/fcntl.in.h: Likewise.
45107         * lib/float.in.h: Likewise.
45108         * lib/iconv.in.h: Likewise.
45109         * lib/inttypes.in.h: Likewise.
45110         * lib/locale.in.h: Likewise.
45111         * lib/math.in.h: Likewise.
45112         * lib/netdb.in.h: Likewise.
45113         * lib/netinet_in.in.h: Likewise.
45114         * lib/search.in.h: Likewise.
45115         * lib/signal.in.h: Likewise.
45116         * lib/spawn.in.h: Likewise.
45117         * lib/stdarg.in.h: Likewise.
45118         * lib/stdint.in.h: Likewise.
45119         * lib/stdio.in.h: Likewise.
45120         * lib/stdlib.in.h: Likewise.
45121         * lib/string.in.h: Likewise.
45122         * lib/strings.in.h: Likewise.
45123         * lib/sys_file.in.h: Likewise.
45124         * lib/sys_ioctl.in.h: Likewise.
45125         * lib/sys_select.in.h: Likewise.
45126         * lib/sys_socket.in.h: Likewise.
45127         * lib/sys_stat.in.h: Likewise.
45128         * lib/sys_time.in.h: Likewise.
45129         * lib/sysexits.in.h: Likewise.
45130         * lib/time.in.h: Likewise.
45131         * lib/unistd.in.h: Likewise.
45132         * lib/wchar.in.h: Likewise.
45133         * lib/wctype.in.h: Likewise.
45134         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
45135
45136 2008-10-17  Jim Meyering  <meyering@redhat.com>
45137
45138         ignore-value: don't depend on inline module
45139         * modules/ignore-value (Depends-on): Remove 'inline'.
45140         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
45141         Suggestion from Bruno Haible.
45142
45143 2008-10-17  Bruno Haible  <bruno@clisp.org>
45144
45145         New implementation of condition variables for Win32.
45146         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
45147         (gl_linked_waitqueue_t): New type.
45148         (gl_cond_t): Use it.
45149         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
45150         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
45151         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
45152         (glthread_cond_init_func, glthread_cond_wait_func,
45153         glthread_cond_timedwait_func, glthread_cond_signal_func,
45154         glthread_cond_broadcast_func, glthread_cond_destroy_func):
45155         Reimplemented on the basis of gl_linked_waitqueue_t.
45156         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
45157         gl_waitqueue_t.
45158         (gl_rwlock_t): Update.
45159         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
45160
45161 2008-10-17  Simon Josefsson  <simon@josefsson.org>
45162
45163         * modules/recvfrom (Depends-on): Add dependency on getpeername.
45164         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
45165
45166 2008-10-17  Jim Meyering  <meyering@redhat.com>
45167
45168         ignore-value: new module
45169         * modules/ignore-value: New file.
45170         * lib/ignore-value.h: New file.
45171         * MODULES.html.sh (Compiler warning management): New section,
45172         just for this module.  More to come.
45173
45174 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
45175
45176         open-safer.c: avoid 'signed and unsigned in conditional...' warning
45177         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
45178         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
45179
45180 2008-10-16  Jim Meyering  <meyering@redhat.com>
45181
45182         openat-die.c: avoid 'no previous prototype' warning
45183         * lib/openat-die.c: Include "openat.h".
45184         Reported by Reuben Thomas <rrt@sc3d.org>.
45185
45186 2008-10-16  Simon Josefsson  <simon@josefsson.org>
45187
45188         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
45189         * lib/netdb.in.h: Fix typo.
45190         Reported by Bruno Haible  <bruno@clisp.org>
45191
45192         * lib/netdb.in.h: Include sys/socket.h for platforms without
45193         netdb.h, to get structures like hostent on MinGW.
45194         * modules/netdb (Depends-on): Add sys_socket.
45195
45196 2008-10-15  Simon Josefsson  <simon@josefsson.org>
45197
45198         * modules/netdb, modules/netdb-tests: New file.
45199         * m4/netdb_h.m4: New file.
45200         * lib/netdb.in.h: Add, currently just an empty file pending
45201         definitions.
45202         * tests/test-netdb.c: New file.
45203         * doc/posix-headers/netdb.texi: Mention that we replace it if
45204         needed.
45205         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
45206         netdb.
45207
45208 2008-10-15  Simon Josefsson  <simon@josefsson.org>
45209
45210         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
45211         with code.
45212
45213 2008-10-13  Bruno Haible  <bruno@clisp.org>
45214
45215         * lib/glthread/cond.c (glthread_cond_wait_func,
45216         glthread_cond_timedwait_func): Add a comment.
45217
45218 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
45219
45220         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
45221         * tests/test-select.c: Likewise,
45222
45223 2008-10-13  Bruno Haible  <bruno@clisp.org>
45224
45225         * lib/glthread/cond.c (glthread_cond_wait_func,
45226         glthread_cond_timedwait_func): Fix variable name.
45227         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
45228
45229 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
45230
45231         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
45232         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
45233         struct sockaddr.sa_len.
45234         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
45235
45236 2008-10-13  Simon Josefsson  <simon@josefsson.org>
45237
45238         * build-aux/pmccabe2html: Add css and css_url parameters.
45239
45240 2008-10-12  Bruno Haible  <bruno@clisp.org>
45241
45242         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
45243         calling aclx_get.
45244         Reported by Rainer Tammer <tammer@tammer.net>.
45245
45246 2008-10-12  Bruno Haible  <bruno@clisp.org>
45247
45248         Use msvcrt aware primitives for creation/termination of Win32 threads.
45249         * lib/glthread/thread.c: Include <process.h>.
45250         (glthread_create_func): Use _beginthreadex instead of CreateThread.
45251         (wrapper_func): Update signature.
45252         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
45253
45254 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
45255             Bruno Haible  <bruno@clisp.org>
45256
45257         Provide a Win32 implementation of the 'cond' module.
45258         * lib/glthread/cond.h [USE_WIN32]: New implementation.
45259         * lib/glthread/cond.c (glthread_cond_init_func,
45260         glthread_cond_wait_func, glthread_cond_timedwait_func,
45261         glthread_cond_signal_func, glthread_cond_broadcast_func,
45262         glthread_cond_destroy_func) [USE_WIN32]: New functions.
45263         * modules/cond (Dependencies): Add gettimeofday.
45264
45265 2008-10-11  Bruno Haible  <bruno@clisp.org>
45266
45267         Make sleep work on older versions of mingw.
45268         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
45269         only whether it exists.
45270         * doc/posix-functions/sleep.texi: Mention the problem with older
45271         versions of mingw.
45272
45273 2008-10-11  Bruno Haible  <bruno@clisp.org>
45274
45275         New module 'shutdown'.
45276         * modules/shutdown: New file.
45277         * lib/sys_socket.in.h (shutdown): New declaration.
45278         * lib/winsock.c (shutdown): New function.
45279         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
45280         GNULIB_SHUTDOWN.
45281         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
45282         * doc/posix-functions/shutdown.texi: Document the new module.
45283
45284 2008-10-11  Jim Meyering  <meyering@redhat.com>
45285
45286         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
45287
45288 2008-10-11  Bruno Haible  <bruno@clisp.org>
45289
45290         New module 'fclose'.
45291         * modules/fclose: New file.
45292         * lib/stdio.in.h (fclose): New declaration.
45293         * lib/fclose.c: New file.
45294         * m4/fclose.m4: New file.
45295         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
45296         REPLACE_FCLOSE.
45297         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
45298         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
45299         REPLACE_FCLOSE.
45300         * modules/close (Depends-on): fclose.
45301         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
45302
45303 2008-10-11  Bruno Haible  <bruno@clisp.org>
45304
45305         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
45306         set errno and don't call _close.
45307
45308 2008-10-10  Bruno Haible  <bruno@clisp.org>
45309
45310         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
45311         ACL, not afterwards. Fixes test failure on Cygwin.
45312
45313 2008-10-09  Ben Pfaff  <blp@gnu.org>
45314
45315         * build-aux/announce-gen: Fix gnulib version related part of usage
45316         message.  Die with a useful error message if no tarballs are
45317         found.
45318
45319 2008-10-10  Jim Meyering  <meyering@redhat.com>
45320
45321         bootstrap: use git's --depth=N option only if it's supported
45322         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
45323         recognize the --depth option.  Reported by Pádraig Brady.
45324
45325 2008-10-09  Bruno Haible  <bruno@clisp.org>
45326
45327         New module 'ioctl'.
45328         * modules/ioctl: New file.
45329         * lib/sys_socket.in.h (ioctl): Remove declaration.
45330         * lib/winsock.c: Include <sys/ioctl.h>.
45331         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
45332         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
45333         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
45334         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
45335         * doc/posix-functions/ioctl.texi: Mention the new module.
45336
45337 2008-10-09  Bruno Haible  <bruno@clisp.org>
45338
45339         New module 'sys_ioctl'.
45340         * lib/sys_ioctl.in.h: New file.
45341         * m4/sys_ioctl_h.m4: New file.
45342         * modules/sys_ioctl: New file.
45343         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
45344
45345 2008-10-09  Bruno Haible  <bruno@clisp.org>
45346
45347         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
45348         * lib/winsock.c: Include <stdarg.h>.
45349         (rpl_ioctl): Change to second argument 'int' and then varargs.
45350
45351 2008-10-09  Bruno Haible  <bruno@clisp.org>
45352
45353         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
45354         when the sys_socket module is present and the system has <winsock2.h>.
45355
45356 2008-10-09  Bruno Haible  <bruno@clisp.org>
45357
45358         * doc/posix-functions/close.texi: Mention module 'close' instead of
45359         module 'sys_socket'.
45360
45361 2008-10-09  Bruno Haible  <bruno@clisp.org>
45362
45363         * doc/glibc-headers/sys_ioctl.texi: New file.
45364         * doc/gnulib.texi: Include it.
45365
45366 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
45367             Bruno Haible  <bruno@clisp.org>
45368
45369         Combine the two replacements of 'close'.
45370         * lib/sys_socket.in.h (close): Define to a reminder to include
45371         <unistd.h>.
45372         (_gl_close_fd_maybe_socket): New declaration.
45373         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
45374         * lib/winsock.c (close): Remove undefinition.
45375         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
45376         needed for the gnulib module 'close'.
45377         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
45378         define to an error symbol or to a warning, if suitable.
45379         * lib/close.c: Include <sys/socket.h>.
45380         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
45381         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
45382         UNISTD_H_HAVE_WINSOCK2_H.
45383         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
45384         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
45385         UNISTD_H_HAVE_WINSOCK2_H.
45386         * modules/sys_socket (Files): Add m4/unistd_h.m4.
45387         (configure.ac): Set a module indicator.
45388         (Makefile.am): Substitute GNULIB_CLOSE.
45389         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
45390         * modules/poll-tests (Depends-on): Add close.
45391         * modules/select-tests (Depends-on): Likewise.
45392
45393 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
45394             Bruno Haible  <bruno@clisp.org>
45395
45396         New module 'close'.
45397         * modules/close: New file.
45398         * lib/unistd.in.h (close): Move declaration out of the
45399         FCHDIR_REPLACEMENT scope.
45400         (_gl_unregister_fd): New declaration.
45401         * lib/close.c: New file.
45402         * lib/fchdir.c (rpl_close): Remove function.
45403         * m4/close.m4: New file.
45404         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
45405         close.
45406         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
45407         REPLACE_CLOSE.
45408         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
45409         REPLACE_CLOSE.
45410         * modules/fchdir (Depends-on): Add close.
45411
45412 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
45413             Bruno Haible  <bruno@clisp.org>
45414
45415         * lib/fcntl.in.h (open): Simplify conditionals.
45416         (_gl_register_fd): New declaration.
45417         * lib/fchdir.c (rpl_open): Remove function.
45418         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
45419         also.
45420         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
45421         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
45422         open.
45423
45424 2008-10-09  Jim Meyering  <meyering@redhat.com>
45425
45426         GNUmakefile: use the more name-space-friendly "_version"
45427         * top/GNUmakefile (_dummy): Update.
45428         (_version): Rename from "version".
45429
45430 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
45431             Bruno Haible  <bruno@clisp.org>
45432
45433         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
45434         rpl_close.
45435         (_gl_register_fd): New function, extracted from rpl_open.
45436         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
45437         (rpl_open, rpl_opendir): Use _gl_register_fd.
45438
45439 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
45440
45441         Fix organization of 'open' replacement.
45442         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
45443         (gl_FUNC_OPEN): Use it.
45444         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
45445
45446 2008-10-08  Bruno Haible  <bruno@clisp.org>
45447
45448         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
45449
45450 2008-10-08  Simon Josefsson  <simon@josefsson.org>
45451
45452         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
45453         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
45454         listen).
45455
45456 2008-10-08  Eric Blake  <ebb9@byu.net>
45457
45458         GNUmakefile: add 'make version' target
45459         * top/GNUmakefile (_curr-ver): Split version update rules...
45460         (version): ...into a target.
45461
45462 2008-10-07  Bruno Haible  <bruno@clisp.org>
45463
45464         Use a more portable replacement expression for -0.0L.
45465         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
45466         instead of -0.0L. Fix m4 quotation.
45467
45468         * tests/test-signbit.c: Include <float.h>.
45469         (minus_zero): New variable.
45470         (test_signbitl): Use minus_zero instead of -zero.
45471         * modules/signbit-tests (Depends-on): Add float.
45472
45473         * tests/test-ceill.c: Include <float.h>.
45474         (zero): Remove variable.
45475         (minus_zero): New variable.
45476         (main): Use minus_zero instead of -zero.
45477         * modules/ceill-tests (Depends-on): Add float.
45478
45479         * tests/test-floorl.c: Include <float.h>.
45480         (zero): Remove variable.
45481         (minus_zero): New variable.
45482         (main): Use minus_zero instead of -zero.
45483         * modules/floorl-tests (Depends-on): Add float.
45484
45485         * tests/test-roundl.c: Include <float.h>.
45486         (zero): Remove variable.
45487         (minus_zero): New variable.
45488         (main): Use minus_zero instead of -zero.
45489         * modules/roundl-tests (Depends-on): Add float.
45490
45491         * tests/test-truncl.c: Include <float.h>.
45492         (zero): Remove variable.
45493         (minus_zero): New variable.
45494         (main): Use minus_zero instead of -zero.
45495         * modules/truncl-tests (Depends-on): Add float.
45496
45497         * tests/test-frexpl.c (zero): Remove variable.
45498         (minus_zero): New variable.
45499         (main): Use minus_zero instead of -zero.
45500         * modules/frexpl-tests (Depends-on): Add float.
45501
45502         * tests/test-isnan.c (zerol): Remove variable.
45503         (minus_zerol): New variable.
45504         (test_long_double): Use minus_zerol instead of -zerol.
45505         * modules/isnan-tests (Depends-on): Add float.
45506
45507         * tests/test-isnanl.h (zero): Remove variable.
45508         (minus_zero): New variable.
45509         (main): Use minus_zero instead of -zero.
45510         * modules/isnanl-nolibm-tests (Depends-on): Add float.
45511         * modules/isnanl-tests (Depends-on): Add float.
45512
45513         * tests/test-ldexpl.c (zero): Remove variable.
45514         (minus_zero): New variable.
45515         (main): Use minus_zero instead of -zero.
45516         * modules/ldexpl-tests (Depends-on): Add float.
45517
45518         * tests/test-snprintf-posix.h (zerol): Remove variable.
45519         (minus_zerol): New variable.
45520         (test_function): Use minus_zerol instead of -zerol.
45521         * modules/snprintf-posix-tests (Depends-on): Add float.
45522         * modules/vsnprintf-posix-tests (Depends-on): Add float.
45523
45524         * tests/test-sprintf-posix.h (zerol): Remove variable.
45525         (minus_zerol): New variable.
45526         (test_function): Use minus_zerol instead of -zerol.
45527         * modules/sprintf-posix-tests (Depends-on): Add float.
45528         * modules/vsprintf-posix-tests (Depends-on): Add float.
45529
45530         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
45531         (minus_zerol): New variable.
45532         (test_function): Use minus_zerol instead of -zerol.
45533         * modules/vasnprintf-posix-tests (Depends-on): Add float.
45534
45535         * tests/test-vasprintf-posix.c (zerol): Remove variable.
45536         (minus_zerol): New variable.
45537         (test_function): Use minus_zerol instead of -zerol.
45538         * modules/vasprintf-posix-tests (Depends-on): Add float.
45539
45540 2008-10-07  Simon Josefsson  <simon@josefsson.org>
45541
45542         * MODULES.html.sh (Support for building documentation): Mention
45543         pmccabe2html.  Sort entries.
45544
45545         Add pmccabe2html module, from gnupdf.
45546         * build-aux/pmccabe.css: New file.
45547         * build-aux/pmccabe2html: New file.
45548         * m4/pmccabe2html.m4: New file.
45549         * modules/pmccabe2html: New file.
45550
45551 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
45552
45553         flock: new module
45554         * MODULES.html.sh: Add to list of modules.
45555         * lib/flock.c: flock implementation for Windows and Unix systems
45556         which have fcntl.
45557         * doc/glibc-functions/flock.texi: Update documentation.
45558         * lib/sys_file.in.h: <sys/file.h> header file.
45559         * m4/flock.m4: M4 macros.
45560         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
45561         * modules/flock: flock module.
45562         * modules/flock-tests: flock tests module.
45563         * modules/sys_file: sys/file.h module.
45564         * tests/test-flock.c: test suite for flock.
45565
45566 2008-10-06  Jim Meyering  <meyering@redhat.com>
45567
45568         bootstrap: check for LT_INIT more portably still ;-)
45569         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
45570         Spotted by Bruno Haible.
45571
45572 2008-10-06  Eric Blake  <ebb9@byu.net>
45573
45574         test-signbit: avoid tripping Irix cc bug on -0.0L
45575         * tests/test-signbit.c (minus_zerol): Delete, and replace with
45576         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
45577         entire testsuite consistent and avoids an Irix 6.2 bug.
45578
45579 2008-10-05  Bruno Haible  <bruno@clisp.org>
45580             Jim Meyering  <jim@meyering.net>
45581
45582         Add an option for ignoring EPIPE during close_stdout.
45583         * lib/closeout.h: Include <stdbool.h>.
45584         (close_stdout_set_ignore_EPIPE): New declaration.
45585         * lib/closeout.c: Include <stdbool.h>.
45586         (ignore_EPIPE): New variable.
45587         (close_stdout_set_ignore_EPIPE): New function.
45588         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
45589         * lib/close-stream.c (close_stream): Mention the possible EPIPE
45590         failure.
45591         * modules/closeout (Depends-on): Add stdbool.
45592
45593 2008-10-05  Bruno Haible  <bruno@clisp.org>
45594
45595         * modules/accept: New file.
45596         * modules/bind: New file.
45597         * modules/connect: New file.
45598         * modules/getpeername: New file.
45599         * modules/getsockname: New file.
45600         * modules/getsockopt: New file.
45601         * modules/listen: New file.
45602         * modules/recv: New file.
45603         * modules/recvfrom: New file.
45604         * modules/send: New file.
45605         * modules/sendto: New file.
45606         * modules/setsockopt: New file.
45607         * modules/socket: New file.
45608         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
45609         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
45610         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
45611         the particular module is requested. Add a link warning when the
45612         particular module is not requested.
45613         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
45614         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
45615         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
45616         the particular module is requested.
45617         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
45618         gl_SYS_SOCKET_H_DEFAULTS): New macros.
45619         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
45620         * modules/sys_socket (Depends-on): Add link-warning.
45621         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
45622         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
45623         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
45624         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
45625         GL_LINK_WARNING.
45626         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
45627         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
45628         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
45629         * doc/posix-functions/getpeername.texi: Mention the new module
45630         'getpeername'.
45631         * doc/posix-functions/getsockname.texi: Mention the new module
45632         'getsockname'.
45633         * doc/posix-functions/getsockopt.texi: Mention the new module
45634         'getsockopt'.
45635         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
45636         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
45637         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
45638         * doc/posix-functions/send.texi: Mention the new module 'send'.
45639         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
45640         * doc/posix-functions/setsockopt.texi: Mention the new module
45641         'setsockopt'.
45642         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
45643         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
45644         listen, connect, accept.
45645         * modules/select-tests (Depends-on): Likewise.
45646
45647 2008-10-05  Bruno Haible  <bruno@clisp.org>
45648
45649         * lib/winsock.c (strerror): Remove unused #undef.
45650         (rpl_close): Remove unused local variable.
45651
45652         * modules/sys_socket (Depends-on); Add errno.
45653
45654 2008-10-05  Bruno Haible  <bruno@clisp.org>
45655
45656         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
45657         (select): Add a link warning when the 'select' module is not used.
45658         * modules/sys_select (Depends-on): Add link-warning.
45659         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
45660         Suggested by Paolo Bonzini.
45661
45662 2008-10-05  Jim Meyering  <meyering@redhat.com>
45663
45664         bootstrap: check for LT_INIT more portably
45665         * build-aux/bootstrap: Avoid using grep -E, since it's not
45666         portable enough.  Suggestion from Bruno Haible.
45667
45668 2008-10-05  Bruno Haible  <bruno@clisp.org>
45669
45670         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
45671         as being fixed by gnulib.
45672
45673 2008-10-05  Bruno Haible  <bruno@clisp.org>
45674
45675         * modules/select-tests: New file, mostly copied from
45676         modules/sys_select-tests.
45677         * tests/test-select.c: New file, mostly copied from
45678         tests/test-sys_select.c.
45679         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
45680         * modules/sys_select-tests (Depends-on): Remove all dependencies.
45681         (Makefile.am): Remove test_sys_select_LDADD.
45682
45683         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
45684         to an undefined symbol, for an error message.
45685         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
45686         (gl_SYS_SELECT_H_DEFAULTS): New macro.
45687         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
45688         winsock-select.c here.
45689         * modules/sys_select (Files): Remove lib/winsock-select.c.
45690         (Depends-on): Remove alloca.
45691         (Makefile.am): Substitute GNULIB_SELECT.
45692         * modules/select: New file.
45693         * doc/posix-functions/select.texi: Update.
45694
45695 2008-10-05  Bruno Haible  <bruno@clisp.org>
45696
45697         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
45698         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
45699         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
45700         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
45701         getdtablesize.
45702         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
45703         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
45704
45705 2008-10-05  Bruno Haible  <bruno@clisp.org>
45706
45707         * modules/getdtablesize-tests: New file.
45708         * tests/test-getdtablesize.c: New file.
45709
45710         New module 'getdtablesize'.
45711         * lib/unistd.in.h (getdtablesize): New declaration.
45712         * lib/getdtablesize.c: New file.
45713         * m4/getdtablesize.m4: New file.
45714         * modules/getdtablesize: New file.
45715         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
45716         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
45717         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
45718         HAVE_GETDTABLESIZE.
45719         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
45720
45721 2008-10-05  Bruno Haible  <bruno@clisp.org>
45722
45723         * modules/sched (Makefile.am): Fix typo.
45724         Reported by Simon Josefsson.
45725
45726 2008-10-05  Jim Meyering  <meyering@redhat.com>
45727
45728         bootstrap: check for LT_INIT, too
45729         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
45730         are deprecated.  Suggestion from Ralf Wildenhues.
45731
45732 2008-10-05  Bruno Haible  <bruno@clisp.org>
45733
45734         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
45735         overriding them by ours.
45736         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
45737
45738 2008-10-05  Jim Meyering  <meyering@redhat.com>
45739
45740         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
45741         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
45742         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
45743
45744 2008-10-04  Bruno Haible  <bruno@clisp.org>
45745
45746         * modules/dup2 (License): Change to LGPLv2+.
45747         * modules/sleep (License): Likewise.
45748         * modules/perror (License): Likewise.
45749         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
45750         Blake.
45751         * modules/signal (License): Likewise.
45752         * modules/sigprocmask (License): Likewise.
45753         * modules/raise (License): Change to LGPLv2+, with approval by Jim
45754         Meyering.
45755
45756 2008-10-04  Bruno Haible  <bruno@clisp.org>
45757
45758         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
45759         Reported by Rainer Tammer <tammer@tammer.net>.
45760
45761 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
45762             Bruno Haible  <bruno@clisp.org>
45763
45764         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
45765         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
45766         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
45767
45768 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
45769
45770         filevercmp: new module
45771         * lib/filevercmp.h: New function filevercmp comparing version strings.
45772         * lib/filevercmp.c: Implementation of filevercmp function.
45773         * modules/filevercmp: Module metadata.
45774         * tests/test-filevercmp.c: Unit test for new module.
45775         * modules/filevercmp-tests: Unit test metadata.
45776         * MODULES.html.sh: Add filevercmp module.
45777
45778 2008-10-03  Bruno Haible  <bruno@clisp.org>
45779
45780         * lib/c-ctype.h: Add comment.
45781         Reported by Jim Meyering.
45782
45783 2008-10-02  Bruno Haible  <bruno@clisp.org>
45784
45785         * modules/posix_spawn-internal (Depends-on): Add 'open'.
45786
45787 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
45788
45789         * build-aux/bootstrap: Allow renaming bootstrap, and change the
45790         name of bootstrap.conf accordingly.
45791
45792 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
45793
45794         * build-aux/bootstrap: Install git-merge-changelog configuration
45795         items into .gitconfig if needed.
45796
45797 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
45798
45799         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
45800         git repository, and initialize/update it accordingly.
45801
45802 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
45803
45804         * modules/fsync-tests: New file.
45805         * tests/test-fsync.c: New file.
45806
45807         New module 'fsync'.
45808         * lib/fsync.c: New file.
45809         * m4/fsync.m4: New file.
45810         * modules/fsync: New file.
45811         * lib/unistd.in.h (fsync): New declaration.
45812         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
45813         GNULIB_FSYNC and HAVE_FSYNC.
45814         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
45815         * MODULES.html.sh (posix_functions): Add fsync.
45816         * doc/posix-functions/fsync.texi: Mention the new module.
45817
45818 2008-10-02  Jim Meyering  <meyering@redhat.com>
45819
45820         fts.c: sync with similar code from coreutils' remove.c
45821         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
45822         Guard also with "#if defined __linux__", since for now at least,
45823         this code is Linux-kernel-specific.
45824
45825 2008-10-02  Jim Meyering  <meyering@redhat.com>
45826
45827         fts: bug fixes
45828         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
45829         Include <sys/vfs.h>, not <sys/statfs.h>.
45830
45831         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
45832         Include <sys/vfs.h>, not <sys/statfs.h>.
45833
45834 2008-10-01  Bruno Haible  <bruno@clisp.org>
45835
45836         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
45837         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
45838         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
45839         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
45840         * doc/posix-functions/posix_spawnp.texi: Likewise.
45841         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
45842         whether posix_spawn actually works.
45843         * m4/pipe.m4 (gl_PIPE): Likewise.
45844         * modules/execute (Files): Add m4/posix_spawn.m4.
45845         * modules/pipe (Files): Add m4/posix_spawn.m4.
45846         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
45847
45848 2008-10-01  Jim Meyering  <meyering@redhat.com>
45849
45850         remove trailing spaces
45851         * NEWS: Likewise.
45852         * lib/poll.c (poll): Likewise.
45853         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
45854         * lib/winsock.c (rpl_close): Likewise.
45855         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
45856         * modules/yield: Likewise.
45857         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
45858         * tests/test-sys_select.c (connect_to_socket): Likewise.
45859
45860         fts.c: adjust a new interface to be more generally useful
45861         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
45862         (fts_build): Adjust caller.
45863
45864 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
45865
45866         * modules/cond-tests: New file.
45867         * tests/test-cond.c: New file.
45868
45869 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
45870             Bruno Haible  <bruno@clisp.org>
45871
45872         * modules/cond (Dependencies): Add errno, time.
45873         * lib/glthread/cond.h: Include <time.h>.
45874         (gl_cond_define, gl_cond_define_initialized): Use the same definition
45875         across platforms.
45876
45877 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
45878             Bruno Haible  <bruno@clisp.org>
45879
45880         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
45881
45882 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
45883             Bruno Haible  <bruno@clisp.org>
45884
45885         * modules/tls-tests (Depends-on): Add thread, yield.
45886         (configure.ac): Remove all checks.
45887         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
45888         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
45889         gl_thread_self): Remove definitions. Include glthread/thread.h and
45890         glthread/yield.h instead.
45891         (test_tls): Pass an additional NULL argument to gl_thread_join.
45892
45893 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
45894             Bruno Haible  <bruno@clisp.org>
45895
45896         * modules/lock-tests (Depends-on): Add thread, yield.
45897         (configure.ac): Remove all checks.
45898         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
45899         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
45900         gl_thread_self): Remove definitions. Include glthread/thread.h and
45901         glthread/yield.h instead.
45902         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
45903         additional NULL argument to gl_thread_join.
45904
45905 2008-09-30  Bruno Haible  <bruno@clisp.org>
45906
45907         Fix the Win32 implementation of the 'thread' module.
45908         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
45909         pointer type.
45910         (gl_thread_self): Invoke gl_thread_self_func.
45911         (gl_thread_self_func): New declaration.
45912         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
45913         (do_init_self_key, init_self_key): New functions.
45914         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
45915         Remove some fields.
45916         (running_threads, running_lock): Remove variables.
45917         (get_current_thread_handle): New function.
45918         (gl_thread_self_func, wrapper_func, glthread_create_func,
45919         glthread_join_func, gl_thread_exit_func): Largely rewritten and
45920         simplified.
45921
45922 2008-09-30  Bruno Haible  <bruno@clisp.org>
45923
45924         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
45925         files.
45926
45927 2008-09-30  Jim Meyering  <meyering@redhat.com>
45928
45929         fts.m4: correct the test for statfs.f_type
45930         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
45931         when checking for statfs.f_type.
45932
45933 2008-09-15  Simon Josefsson  <simon@josefsson.org>
45934
45935         tests: avoid some compiler warnings
45936         * tests/test-memchr.c (main): Pass NULL indirectly.
45937         * tests/test-getdate.c (main): Remove unused variable 'ret'.
45938
45939 2008-09-29  Ondřej Vašík  <ovasik@redhat.com>
45940
45941         getdate.y: disallow countable dayshifts like "4 yesterday ago"
45942         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
45943         exactly specified dayshifts.
45944         (dayshift): New rule.
45945         (rel): Add dayshift.
45946         (relative_time_table) [tomorrow, yesterday, today, now]:
45947         Use tDAY_SHIFT in place of tDAY_UNIT.
45948         * tests/test-getdate.c: Add tests for now-disallowed countable
45949         dayshifts, e.g., "4 yesterday ago".
45950
45951 2008-09-29  Bruno Haible  <bruno@clisp.org>
45952
45953         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
45954         * tests/test-posix_spawn1.in.sh: Renamed from
45955         tests/test-posix_spawn.in.sh.
45956         * tests/test-posix_spawn2.c: New file.
45957         * tests/test-posix_spawn2.in.sh: New file.
45958         * modules/posix_spawnp-tests (Files): Update.
45959         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
45960
45961 2008-09-29  Bruno Haible  <bruno@clisp.org>
45962
45963         Propagate effects of putenv/setenv/unsetenv to child processes.
45964         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
45965         * lib/pipe.c (create_pipe): Likewise.
45966
45967 2008-09-29  Bruno Haible  <bruno@clisp.org>
45968
45969         Enable use of shell scripts as executables in mingw.
45970         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
45971         run the program as a shell script.
45972         * lib/pipe.c (create_pipe): Likewise.
45973         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
45974         resulting array.
45975
45976 2008-09-29  Eric Blake  <ebb9@byu.net>
45977
45978         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
45979
45980 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
45981
45982         * doc/posix-functions/accept.texi: Update mingw problems.
45983         * doc/posix-functions/bind.texi: Update mingw problems.
45984         * doc/posix-functions/close.texi: Update mingw problems.
45985         * doc/posix-functions/connect.texi: Update mingw problems.
45986         * doc/posix-functions/getpeername.texi: Update mingw problems.
45987         * doc/posix-functions/getsockname.texi: Update mingw problems.
45988         * doc/posix-functions/getsockopt.texi: Update mingw problems.
45989         * doc/posix-functions/ioctl.texi: Update mingw problems.
45990         * doc/posix-functions/listen.texi: Update mingw problems.
45991         * doc/posix-functions/recv.texi: Update mingw problems.
45992         * doc/posix-functions/recvfrom.texi: Update mingw problems.
45993         * doc/posix-functions/select.texi: Update mingw problems.
45994         * doc/posix-functions/send.texi: Update mingw problems.
45995         * doc/posix-functions/sendto.texi: Update mingw problems.
45996         * doc/posix-functions/setsockopt.texi: Update mingw problems.
45997         * doc/posix-functions/socket.texi: Update mingw problems.
45998
45999 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
46000             Bruno Haible  <bruno@clisp.org>
46001
46002         * lib/sys_select.in.h: Include sys/time.h.
46003         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
46004         * modules/sys_select: Depend on sys_time.
46005         * tests/test-sys_select.c: Test that sys/select.h defines struct
46006         timeval fully.
46007
46008 2008-09-29  Bruno Haible  <bruno@clisp.org>
46009
46010         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
46011         * lib/sys_select.in.h: Likewise.
46012
46013 2008-09-29  Bruno Haible  <bruno@clisp.org>
46014
46015         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
46016
46017 2008-09-29  Bruno Haible  <bruno@clisp.org>
46018
46019         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
46020         Set LIBSOCKET instead of augmenting LIBS.
46021         * modules/sockets (Link): New section.
46022         * modules/sockets-tests (test_sockets_LDADD): New variable.
46023         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
46024         * modules/poll-tests (test_poll_LDADD): New variable.
46025         * NEWS: Document the change.
46026
46027 2008-09-29  Bruno Haible  <bruno@clisp.org>
46028
46029         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
46030         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
46031         ARPA_INET_H directly.
46032         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
46033
46034 2008-09-28  Bruno Haible  <bruno@clisp.org>
46035
46036         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
46037         from gl_HEADER_SYS_SOCKET.
46038         (gl_HEADER_SYS_SOCKET): Invoke it.
46039         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
46040
46041 2008-09-28  Bruno Haible  <bruno@clisp.org>
46042
46043         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
46044         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
46045         Needed on OSF/1 4.0.
46046
46047 2008-09-28  Bruno Haible  <bruno@clisp.org>
46048
46049         Override open more carefully.
46050         * lib/open.c (orig_open): New function.
46051         (rpl_open): Use orig_open instead of open.
46052         * lib/fcntl.in.h: Add special invocation convention.
46053         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
46054         (gl_FUNC_OPEN): Invoke it.
46055
46056         Override freopen more carefully.
46057         * lib/freopen.c (orig_freopen): New function.
46058         (rpl_freopen): Use orig_freopen instead of freopen.
46059         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
46060         (gl_FUNC_FREOPEN): Invoke it.
46061
46062         Override fopen more carefully.
46063         * lib/fopen.c (orig_fopen): New function.
46064         (rpl_fopen): Use orig_fopen instead of fopen.
46065         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
46066         (gl_FUNC_FOPEN): Invoke it.
46067         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
46068
46069 2008-09-28  Bruno Haible  <bruno@clisp.org>
46070
46071         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
46072         SIGPIPE.
46073
46074 2008-09-28  Bruno Haible  <bruno@clisp.org>
46075
46076         * tests/test-sigaction.c (handler, main): Disable the check whether
46077         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
46078         glibc systems with LinuxThreads.
46079
46080 2008-09-28  Bruno Haible  <bruno@clisp.org>
46081
46082         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
46083
46084         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
46085         with AIX xlc.
46086         * lib/fcntl.in.h (open): Likewise.
46087         Reported by Rainer Tammer <tammer@tammer.net>.
46088
46089 2008-09-28  Bruno Haible  <bruno@clisp.org>
46090
46091         * modules/posix_spawnp-tests: New file.
46092         * tests/test-posix_spawn.c: New file.
46093         * tests/test-posix_spawn.in.sh: New file.
46094
46095         New module 'posix_spawnp'.
46096         * modules/posix_spawnp: New file.
46097         * lib/spawnp.c: New file, from GNU libc with modifications.
46098         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
46099
46100         New module 'posix_spawn'.
46101         * modules/posix_spawn: New file.
46102         * lib/spawn.c: New file, from GNU libc with modifications.
46103         * doc/posix-functions/posix_spawn.texi: Mention the new module.
46104
46105         New module 'posix_spawnattr_destroy'.
46106         * modules/posix_spawnattr_destroy: New file.
46107         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
46108         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
46109         module.
46110
46111         New module 'posix_spawnattr_setsigmask'.
46112         * modules/posix_spawnattr_setsigmask: New file.
46113         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
46114         modifications.
46115         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
46116         new module.
46117
46118         New module 'posix_spawnattr_getsigmask'.
46119         * modules/posix_spawnattr_getsigmask: New file.
46120         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
46121         modifications.
46122         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
46123         new module.
46124
46125         New module 'posix_spawnattr_setsigdefault'.
46126         * modules/posix_spawnattr_setsigdefault: New file.
46127         * lib/spawnattr_setdefault.c: New file, from GNU libc with
46128         modifications.
46129         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
46130         new module.
46131
46132         New module 'posix_spawnattr_getsigdefault'.
46133         * modules/posix_spawnattr_getsigdefault: New file.
46134         * lib/spawnattr_getdefault.c: New file, from GNU libc with
46135         modifications.
46136         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
46137         new module.
46138
46139         New module 'posix_spawnattr_setschedpolicy'.
46140         * modules/posix_spawnattr_setschedpolicy: New file.
46141         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
46142         modifications.
46143         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
46144         new module.
46145
46146         New module 'posix_spawnattr_getschedpolicy'.
46147         * modules/posix_spawnattr_getschedpolicy: New file.
46148         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
46149         modifications.
46150         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
46151         new module.
46152
46153         New module 'posix_spawnattr_setschedparam'.
46154         * modules/posix_spawnattr_setschedparam: New file.
46155         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
46156         modifications.
46157         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
46158         new module.
46159
46160         New module 'posix_spawnattr_getschedparam'.
46161         * modules/posix_spawnattr_getschedparam: New file.
46162         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
46163         modifications.
46164         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
46165         new module.
46166
46167         New module 'posix_spawnattr_setpgroup'.
46168         * modules/posix_spawnattr_setpgroup: New file.
46169         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
46170         modifications.
46171         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
46172         module.
46173
46174         New module 'posix_spawnattr_getpgroup'.
46175         * modules/posix_spawnattr_getpgroup: New file.
46176         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
46177         modifications.
46178         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
46179         module.
46180
46181         New module 'posix_spawnattr_setflags'.
46182         * modules/posix_spawnattr_setflags: New file.
46183         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
46184         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
46185         module.
46186
46187         New module 'posix_spawnattr_getflags'.
46188         * modules/posix_spawnattr_getflags: New file.
46189         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
46190         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
46191         module.
46192
46193         New module 'posix_spawnattr_init'.
46194         * modules/posix_spawnattr_init: New file.
46195         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
46196         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
46197         module.
46198
46199         New module 'posix_spawn_file_actions_destroy'.
46200         * modules/posix_spawn_file_actions_destroy: New file.
46201         * lib/spawn_faction_destroy.c: New file, from GNU libc with
46202         modifications.
46203         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
46204         the new module.
46205
46206         New module 'posix_spawn_file_actions_addopen'.
46207         * modules/posix_spawn_file_actions_addopen: New file.
46208         * lib/spawn_faction_addopen.c: New file, from GNU libc with
46209         modifications.
46210         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
46211         the new module.
46212
46213         New module 'posix_spawn_file_actions_adddup2'.
46214         * modules/posix_spawn_file_actions_adddup2: New file.
46215         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
46216         modifications.
46217         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
46218         the new module.
46219
46220         New module 'posix_spawn_file_actions_addclose'.
46221         * modules/posix_spawn_file_actions_addclose: New file.
46222         * lib/spawn_faction_addclose.c: New file, from GNU libc with
46223         modifications.
46224         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
46225         the new module.
46226
46227         New module 'posix_spawn_file_actions_init'.
46228         * modules/posix_spawn_file_actions_init: New file.
46229         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
46230         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
46231         new module.
46232
46233         New module 'posix_spawn-internal'.
46234         * modules/posix_spawn-internal: New file.
46235         * lib/spawn_int.h: New file, from GNU libc with modifications.
46236         * lib/spawni.c: New file, from GNU libc with modifications.
46237         * m4/posix_spawn.m4: New file.
46238
46239         New module 'spawn'.
46240         * modules/spawn: New file.
46241         * lib/spawn.in.h: New file, from GNU libc with modifications.
46242         * m4/spawn_h.m4: New file.
46243         * doc/posix-headers/spawn.texi: Mention the new module.
46244
46245 2008-09-28  Bruno Haible  <bruno@clisp.org>
46246
46247         * modules/sched-tests: New file.
46248         * tests/test-sched.c: New file.
46249
46250         New module 'sched'.
46251         * modules/sched: New file.
46252         * lib/sched.in.h: New file.
46253         * m4/sched_h.m4: New file.
46254         * doc/posix-headers/sched.texi: Mention the new module.
46255
46256 2008-09-27  Eric Blake  <ebb9@byu.net>
46257
46258         Fix previous patch, and tweak references to $0.
46259         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
46260         (func_version, func_gnulib_dir): Don't call this program
46261         gnulib-tool.
46262         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
46263         with using $0 in function.
46264         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
46265         (func_fatal_error): Reuse the name the user invoked us with.
46266
46267 2008-09-27  Bruno Haible  <bruno@clisp.org>
46268
46269         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
46270         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
46271         (gl_ICONV_H): Not here.
46272         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
46273         instead of assigning ICONV_H directly.
46274
46275         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
46276         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
46277         WCHAR_H directly.
46278
46279 2008-09-27  Bruno Haible  <bruno@clisp.org>
46280
46281         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
46282         * modules/arpa_inet (Depends-on): Add link-warning.
46283         (Makefile.am): Insert the definition of GL_LINK-WARNING.
46284         * modules/unistd (Makefile.am): Likewise.
46285
46286 2008-09-26  Bruno Haible  <bruno@clisp.org>
46287
46288         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
46289         variables.
46290         (func_version): Essentially copied from gnulib-tool.
46291         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
46292         func_readlink): Copied from gnulib-tool.
46293
46294 2008-09-26  Bruno Haible  <bruno@clisp.org>
46295
46296         * gnulib-tool (func_version): Change directory to $gnulib_dir before
46297         invoking git-version-gen.
46298
46299 2008-09-26  Bruno Haible  <bruno@clisp.org>
46300
46301         * posix-modules: Update to directory names changed on 2008-01-19.
46302         Remove commas in output before splitting into words. No more need to
46303         avoid 'ftruncate' since 2007-02-19.
46304
46305 2008-09-26  Bruno Haible  <bruno@clisp.org>
46306
46307         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
46308
46309 2008-09-26  Bruno Haible  <bruno@clisp.org>
46310
46311         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
46312         * modules/fwriteerror (Depends-on): Add errno.
46313
46314 2008-09-26  Bruno Haible  <bruno@clisp.org>
46315
46316         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
46317         * tests/test-vc-list-files-cvs.sh: Likewise.
46318
46319 2008-09-26  Bruno Haible  <bruno@clisp.org>
46320
46321         * doc/posix-headers/sys_resource.texi: Reorder items.
46322
46323 2008-09-26  Jim Meyering  <meyering@redhat.com>
46324
46325         fts: tweak inode comparison function
46326         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
46327         inode numbers, as documented.
46328
46329         fts: sort dirent entries on inode number before traversing
46330         This avoids a quadratic, seek-related performance penalty when
46331         operating on a directory containing many entries (measurable at 10k;
46332         3.5 hours at 2 million entries with a cold cache) on certain types
46333         of file systems, including ext3 and ext4, but not tmpfs.
46334         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
46335         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
46336         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
46337         (fs_handles_readdir_ordered_dirents_efficiently): New function.
46338         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
46339         (fts_build): Set the stat.st_ino member from D_INO.
46340         If it is likely to be useful, sort dirent entries on inode number.
46341
46342         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
46343         and the struct statfs.f_type member.
46344         * modules/fts (Depends-on): Add d-ino.
46345
46346 2008-09-26  Bruno Haible  <bruno@clisp.org>
46347
46348         * modules/sigpipe-die (Depends-on): Add sigpipe.
46349
46350         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
46351         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
46352         and GNULIB_STDIO_H_SIGPIPE are set.
46353         * lib/stdio-write.c: New file.
46354         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
46355         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
46356         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
46357         REPLACE_STDIO_WRITE_FUNCS.
46358         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
46359         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
46360         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
46361         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
46362         * modules/stdio (Files): Add lib/stdio-write.c.
46363         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
46364         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
46365         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
46366         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
46367         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
46368         REPLACE_FPRINTF_POSIX.
46369         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
46370         REPLACE_PRINTF_POSIX.
46371         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
46372         REPLACE_VFPRINTF_POSIX.
46373         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
46374         REPLACE_VPRINTF_POSIX.
46375         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
46376         SIGPIPE issue.
46377         * doc/posix-functions/fputc.texi: Likewise.
46378         * doc/posix-functions/fputs.texi: Likewise.
46379         * doc/posix-functions/fwrite.texi: Likewise.
46380         * doc/posix-functions/printf.texi: Likewise.
46381         * doc/posix-functions/putc.texi: Likewise.
46382         * doc/posix-functions/putchar.texi: Likewise.
46383         * doc/posix-functions/puts.texi: Likewise.
46384         * doc/posix-functions/vfprintf.texi: Likewise.
46385         * doc/posix-functions/vprintf.texi: Likewise.
46386
46387         * modules/safe-write (Depends-on): Add write.
46388
46389         * modules/sigpipe-tests: New file.
46390         * tests/test-sigpipe.c: New file.
46391         * tests/test-sigpipe.sh: New file.
46392
46393         * modules/write: New file.
46394         * lib/unistd.in.h: Include <sys/types.h>.
46395         (write): New declaration.
46396         * lib/write.c: New file.
46397         * m4/write.m4: New file.
46398         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
46399         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
46400         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
46401         GNULIB_WRITE, REPLACE_WRITE.
46402         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
46403         and the SIGPIPE issue.
46404
46405         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
46406         (raise): New declaration.
46407         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
46408         (ext_signal): New function.
46409         (rpl_raise): New function.
46410         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
46411         GNULIB_SIGNAL_H_SIGPIPE.
46412         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
46413         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
46414
46415         * modules/sigpipe: New file.
46416         * m4/sigpipe.m4: New file.
46417
46418 2008-09-25  Derek Price  <derek@ximbiot.com>
46419             Bruno Haible  <bruno@clisp.org>
46420
46421         * gnulib-tool (func_import): Report all license incompatibilities, not
46422         just the first one.
46423
46424 2008-09-25  Bruno Haible  <bruno@clisp.org>
46425
46426         * gnulib-tool (func_import): When computing the edits, consider not
46427         only the Makefile.ams that exist but also those that will be generated.
46428
46429 2008-09-25  Simon Josefsson  <simon@josefsson.org>
46430
46431         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
46432         fixes gnulib-tool --test warning about duplicate dependency.
46433
46434 2008-09-25  Bruno Haible  <bruno@clisp.org>
46435
46436         * gnulib-tool: Don't ask the user to perform edits in the generated
46437         Makefile.ams.
46438         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
46439         apply to the Makefile.am being generated.
46440         (func_emit_tests_Makefile_am): Execute edits that apply to the
46441         Makefile.am being generated.
46442         (func_import): Setup list of Makefile.am edits before emitting the
46443         Makefile.ams, not at the end.
46444         (func_create_testdir): Update.
46445         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
46446
46447 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46448
46449         * gnulib-tool (func_import): Store the --tests-base option in the
46450         comment in gnulib-cache.m4.
46451
46452 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
46453
46454         * NEWS: Document increased portability that sys_select now provides.
46455
46456         * lib/sys_select.in.h: Install select wrapper.
46457         * lib/sys_socket.in.h: Use more descriptive name when there is no
46458         select wrapper.
46459         * lib/winsock-select.c: New.
46460         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
46461         Require gl_HEADER_SYS_SOCKET.
46462         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
46463         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
46464         * tests/test-sys_select.c: Add functional tests.
46465
46466 2008-09-24  Eric Blake  <ebb9@byu.net>
46467
46468         open, fopen: close fd leak in last patch
46469         * lib/open.c (rpl_open): Close fd before returning error.
46470         * lib/fopen.c (rpl_fopen): Close fd before returning error.
46471         * doc/posix-functions/open.texi (open): Document that Irix also
46472         has the bug.
46473         * doc/posix-functions/fopen.texi (fopen): Likewise.
46474         Reported by Paolo Bonzini.
46475
46476 2008-09-24  Bruno Haible  <bruno@clisp.org>
46477
46478         Ensure that a filename ending in a slash cannot be used to access a
46479         non-directory.
46480         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
46481         to check whether it's really a directory.
46482         * lib/fopen.c: Include fcntl.h, unistd.h.
46483         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
46484         and fdopen().
46485         * modules/fopen (Depends-on): Add unistd.
46486         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
46487         * tests/test-fopen.c (main): Likewise.
46488         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
46489         * doc/posix-functions/fopen.texi: Likewise.
46490         Reported by Eric Blake.
46491
46492 2008-09-23  Eric Blake  <ebb9@byu.net>
46493
46494         c-stack: avoid compiler optimizations when provoking overflow
46495         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
46496         recursion harder to optimize, to ensure a stack overflow occurs.
46497         * tests/test-c-stack.c (recurse): Likewise.
46498         Borrowed from libsigsegv.
46499
46500         c-stack: work around Irix sigaltstack bug
46501         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
46502         whether sigaltstack uses wrong end of stack_t (copied in part from
46503         libsigsegv).
46504         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
46505         Irix bug, without requiring an over-allocation.
46506         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
46507         bug.
46508
46509         fopen: document mingw bug on directories
46510         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
46511         not allowing a stream visiting a directory, even though reading
46512         from such a stream is not portable.
46513
46514 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
46515
46516         * lib/poll.c: Rewrite.
46517         * modules/poll: Depend on alloca.
46518
46519 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
46520
46521         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
46522         instead define prototypes for a full set of wrappers.  Ensure
46523         that Cygwin does not use the compatibility code, which is only
46524         for MinGW.
46525         * lib/winsock.c: New.
46526         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
46527         * modules/sys_socket: Add lib/winsock.c.
46528
46529         * modules/poll-tests: Add errno and perror.
46530         * tests/test-poll.c: Use ioctl, not ioctlsocket.
46531
46532 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
46533
46534         * tests/test-poll.c: Downgrade minimum needed Winsock version.
46535
46536 2008-09-23  Bruno Haible  <bruno@clisp.org>
46537
46538         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
46539         * doc/glibc-functions/*: Likewise.
46540
46541 2008-09-23  Simon Josefsson  <simon@josefsson.org>
46542
46543         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
46544         success.
46545
46546 2008-09-22  Eric Blake  <ebb9@byu.net>
46547             Bruno Haible  <bruno@clisp.org>
46548
46549         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
46550         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
46551         supply %A but mishandle pseudo-NaN.
46552         Reported by Simon Josefsson.
46553
46554 2008-09-21  Bruno Haible  <bruno@clisp.org>
46555
46556         * tests/test-lock.c (main): Tweak skip message.
46557         * tests/test-tls.c (main): Likewise.
46558
46559 2008-09-21  Bruno Haible  <bruno@clisp.org>
46560
46561         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
46562         whether 'struct sigaction' has sa_sigaction here...
46563         (gl_PREREQ_SIG_HANDLER_H): ... not here.
46564         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
46565
46566 2008-09-21  Bruno Haible  <bruno@clisp.org>
46567
46568         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
46569         section.
46570         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
46571         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
46572         the new section.
46573         (Support for obsolete systems lacking POSIX:2001): New section.
46574         (String handling <string.h>): Move strdup to the new section.
46575         Suggested by Simon Josefsson and Paolo Bonzini.
46576
46577 2008-09-21  Bruno Haible  <bruno@clisp.org>
46578
46579         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
46580         exponents in %e and %g results on 'long double'. Needed for mingw's
46581         improved *printf functions.
46582         * tests/test-vasprintf-posix.c (test_function): Likewise.
46583         * tests/test-snprintf-posix.h (test_function): Likewise.
46584         * tests/test-sprintf-posix.h (test_function): Likewise.
46585         Reported by Eric Blake.
46586
46587 2008-09-21  Bruno Haible  <bruno@clisp.org>
46588
46589         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
46590         * tests/test-sprintf-posix.h (test_function): Likewise.
46591
46592 2008-09-21  Bruno Haible  <bruno@clisp.org>
46593
46594         * modules/getpass (Depends-on): Add strdup-posix.
46595
46596         New module 'strdup-posix'.
46597         * modules/strdup-posix: New file.
46598         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
46599         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
46600         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
46601         REPLACE_STRDUP.
46602         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
46603         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
46604         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
46605         strdup-posix.
46606
46607         * modules/strdup (Depends-on): Remove malloc-posix.
46608
46609 2008-09-20  Bruno Haible  <bruno@clisp.org>
46610
46611         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
46612         Wildenhues.
46613
46614 2008-09-20  Bruno Haible  <bruno@clisp.org>
46615
46616         Ensure that wint_t gets defined on IRIX 5.3.
46617         * lib/wchar.in.h (wint_t): Define if not defined by the system.
46618         * lib/wctype.in.h (wint_t): Likewise.
46619         (__wctype_wint_t): Remove type.
46620         (isw*): Use wint_t instead of __wctype_wint_t.
46621         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
46622         * modules/wchar (Files): Add m4/wint_t.m4.
46623         (Makefile.am): Substitute HAVE_WINT_T.
46624         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
46625         * tests/test-wctype.c: Check that wint_t is defined.
46626         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
46627         * doc/posix-headers/wctype.texi: Likewise.
46628         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
46629
46630 2008-09-18  Bruno Haible  <bruno@clisp.org>
46631
46632         * gnulib-tool (func_exit): Update comment.
46633
46634 2008-09-18  Simon Josefsson  <simon@josefsson.org>
46635
46636         * modules/getaddrinfo (Depends-on): Remove strdup, this module
46637         assumes strdup exists and does not depend on strdup to return
46638         ENOMEM on out of memory conditions.
46639
46640 2008-09-18  Bruno Haible  <bruno@clisp.org>
46641
46642         * lib/vasnprintf.c (VASNPRINTF): When printing ±0.0L in
46643         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
46644         digits for the exponent.
46645
46646 2008-09-18  Jim Meyering  <meyering@redhat.com>
46647             Bruno Haible  <bruno@clisp.org>
46648
46649         * lib/vasnprintf.c (decimal_point_char): Define also if
46650         NEED_PRINTF_INFINITE_LONG_DOUBLE.
46651
46652 2008-09-16  Bruno Haible  <bruno@clisp.org>
46653         and Eric Blake  <ebb9@byu.net>
46654
46655         vasnprintf: support Irix 5.3
46656         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
46657         that mishandle long double infinity.
46658         Reported by Tom G. Christensen.
46659
46660 2008-09-16  Bruno Haible  <bruno@clisp.org>
46661
46662         * doc/glibc-functions/scandir.texi: Mention the function is missing on
46663         Solaris 9.
46664         * doc/glibc-functions/alphasort.texi: Likewise.
46665         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
46666
46667 2008-09-16  Jim Meyering  <meyering@redhat.com>
46668
46669         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
46670         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
46671         a umask modification leak out of a subshell.  Otherwise, the
46672         opensolaris /bin/sh would be accepted and thus cause unwarranted
46673         failures in the coreutils test suite.
46674
46675 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
46676
46677         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
46678         to succeed.
46679
46680 2008-09-16  Jim Meyering  <meyering@redhat.com>
46681
46682         avoid spurious test failure when library is built without ACL support
46683         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
46684         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
46685         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
46686         * tests/test-copy-acl.sh: Likewise.
46687
46688 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46689
46690         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
46691         based on character occurrence counts.
46692
46693 2008-09-15  Eric Blake  <ebb9@byu.net>
46694
46695         tests: avoid some compiler warnings
46696         * tests/test-memchr.c (main): Pass NULL indirectly.
46697         * tests/test-closein.c (main): Avoid unused variable.
46698
46699 2008-09-15  Bruno Haible  <bruno@clisp.org>
46700
46701         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
46702         are missing on OpenBSD 4.0 individually.
46703         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
46704
46705 2008-09-15  Bruno Haible  <bruno@clisp.org>
46706
46707         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
46708         * doc/posix-functions/strerror.texi: Mention also Cygwin.
46709         * doc/posix-functions/perror.texi: Likewise.
46710         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
46711         is missing.
46712         Reported by Eric Blake.
46713
46714         * lib/errno.in.h: Use replacement values >= 2000.
46715         Reported by Eric Blake.
46716
46717 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46718
46719         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
46720         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
46721         limit.
46722         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
46723         compareseq was aborted.
46724
46725 2008-09-14  Bruno Haible  <bruno@clisp.org>
46726
46727         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
46728         yvec_edit_count.
46729         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
46730         (fstrcmp_bounded): Simplify result computation accordingly.
46731
46732 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46733
46734         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
46735         (fstrcmp): Define in terms of fstrcmp_bounded.
46736         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
46737         lower_bound argument.
46738         Return quickly if the result is certainly < lower_bound.
46739         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
46740
46741 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46742
46743         * lib/diffseq.h (EARLY_ABORT): New macro.
46744         (compareseq): Change return type to bool. Return true when EARLY_ABORT
46745         evaluates to true.
46746
46747 2008-09-14  Bruno Haible  <bruno@clisp.org>
46748
46749         * modules/perror-tests: New file.
46750         * tests/test-perror.sh: New file.
46751         * tests/test-perror.c: New file.
46752
46753         New module 'perror'.
46754         * lib/stdio.in.h (perror): New declaration.
46755         * lib/perror.c: New file.
46756         * m4/perror.m4: New file.
46757         * modules/perror: New file.
46758         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
46759         * doc/posix-functions/perror.texi: Mention the perror module.
46760         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
46761         REPLACE_PERROR.
46762         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
46763         REPLACE_PERROR.
46764
46765 2008-09-14  Bruno Haible  <bruno@clisp.org>
46766
46767         * modules/stdio (Makefile.am): Reorder to match the order in
46768         lib/stdio.in.h.
46769         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
46770
46771 2008-09-13  Bruno Haible  <bruno@clisp.org>
46772
46773         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
46774
46775 2008-09-13  Bruno Haible  <bruno@clisp.org>
46776
46777         Extend strerror to cover the added errno values.
46778         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
46779         (rpl_strerror): Provide error messages for the added errno values and
46780         for the WSA* values.
46781         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
46782         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
46783         strerror.
46784         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
46785         * modules/strerror (Depends-on): Add errno.
46786         * doc/posix-functions/strerror.texi: Document the change.
46787         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
46788         and EOVERFLOW.
46789
46790 2008-09-13  Bruno Haible  <bruno@clisp.org>
46791
46792         * modules/EOVERFLOW: Remove file.
46793         * m4/eoverflow.m4: Remove file.
46794         * modules/EOVERFLOW-tests: Remove file.
46795         * tests/test-EOVERFLOW.c: Remove file.
46796         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
46797         * modules/ftell (Depends-on): Likewise.
46798         * modules/getdelim (Depends-on): Likewise.
46799         * modules/getugroups (Depends-on): Likewise.
46800         * modules/poll (Depends-on): Likewise.
46801         * modules/snprintf (Depends-on): Likewise.
46802         * modules/sprintf-posix (Depends-on): Likewise.
46803         * modules/vasnprintf (Depends-on): Likewise.
46804         * modules/vasprintf (Depends-on): Likewise.
46805         * modules/vfprintf-posix (Depends-on): Likewise.
46806         * modules/vsnprintf (Depends-on): Likewise.
46807         * modules/vsprintf-posix (Depends-on): Likewise.
46808         * modules/xvasprintf (Depends-on): Likewise.
46809         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
46810         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
46811         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
46812         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
46813         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
46814         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
46815         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
46816         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
46817         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
46818         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
46819         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
46820         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
46821         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
46822         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
46823         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
46824         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
46825         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
46826         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
46827         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
46828         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
46829         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
46830         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
46831         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
46832         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
46833         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
46834         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
46835         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
46836         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
46837         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
46838         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
46839         * MODULES.html.sh: Remove EOVERFLOW.
46840         * NEWS: Mention the change.
46841
46842 2008-09-13  Bruno Haible  <bruno@clisp.org>
46843
46844         * modules/errno-tests: New file.
46845         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
46846
46847         * lib/errno.in.h: New file.
46848         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
46849         * modules/errno: New file.
46850         * doc/posix-headers/errno.texi: Update documentation.
46851         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
46852
46853 2008-09-13  Bruno Haible  <bruno@clisp.org>
46854
46855         * tests/test-poll.c: Use #if for native Windows, rather than testing
46856         __MSVCRT__.
46857
46858 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46859             Bruno Haible  <bruno@clisp.org>
46860
46861         * lib/glob.c: Don't include <pwd.h> on native Windows.
46862         (WINDOWS32): New macro.
46863         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
46864
46865 2008-09-13  Bruno Haible  <bruno@clisp.org>
46866
46867         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
46868         (ETIMEDOUT): Remove macro.
46869         (glthread_cond_timedwait_multithreaded): New declaration.
46870         (glthread_cond_timedwait): Use it.
46871         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
46872         (glthread_cond_timedwait_multithreaded): New function.
46873
46874 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
46875
46876         * modules/poll-tests: Do not check for io.h.
46877         * tests/test-poll.c: Check for __MSVCRT__ instead.
46878
46879 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
46880
46881         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
46882         * modules/poll-tests: Add inet_pton, stdbool, sockets.
46883         * tests/test-poll.c: Use them.  Use _pipe on Windows.
46884
46885 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
46886
46887         * modules/poll-tests: New.
46888         * tests/test-poll.c: New.
46889
46890 2008-09-12  Eric Blake  <ebb9@byu.net>
46891
46892         frexp: test for NetBSD failure on -0.0
46893         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
46894         not all, bugs from NetBSD 3.0 have been fixed.
46895         * doc/posix-functions/frexp.texi (frexp): Document bug.
46896         Reported by Thomas Klausner.
46897
46898         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
46899         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
46900         literal -0.0.
46901         Reported by Jonathan C. Patschke <jp@centtech.com>.
46902
46903 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46904
46905         * lib/glthread/cond.h: Use dummy implementation also if
46906         USE_WIN32_THREADS.
46907
46908 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46909
46910         * modules/fnmatch-posix (License): Change to LGPLv2+.
46911         * modules/fnmatch-gnu (License): Likewise.
46912
46913 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46914
46915         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
46916
46917 2008-09-11  Jim Meyering  <meyering@redhat.com>
46918
46919         * users.txt: Add gtk-vnc.
46920
46921 2008-09-08  Simon Josefsson  <simon@josefsson.org>
46922
46923         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
46924         rotate amounts.
46925
46926         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
46927         required for 16-bit and 8-bit rotates.
46928         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
46929         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
46930         UINT8_MAX instead of hard-coded constants.
46931         Suggested by Paul Eggert.
46932
46933 2008-09-07  Bruno Haible  <bruno@clisp.org>
46934
46935         * tests/test-striconveh.c (main): Check behaviour when converting from
46936         UTF-7.
46937
46938         Make striconveh work better with stateful encodings.
46939         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
46940         that iconv does not increment the inptr when returning -1/EINVAL.
46941
46942 2008-09-07  Bruno Haible  <bruno@clisp.org>
46943
46944         * build-aux/config.rpath: Update according to libtool-2.2.6.
46945         * build-aux/config.libpath: Likewise.
46946
46947 2008-09-06  Bruno Haible  <bruno@clisp.org>
46948
46949         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
46950         * lib/freadptr.c (freadptr): Likewise.
46951         * lib/freadseek.c (freadptrinc): Likewise.
46952         Reported by Simon Josefsson.
46953
46954 2008-09-06  Bruno Haible  <bruno@clisp.org>
46955
46956         * modules/freadptr (License): Change to LGPLv2+.
46957         * modules/freadseek (License): Likewise.
46958         Suggested by Eric Blake.
46959
46960         * modules/memchr2 (License): Change to LGPLv2+.
46961         Approved by Eric Blake.
46962
46963 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46964             Bruno Haible  <bruno@clisp.org>
46965
46966         Make gnulib-tool work with native 'sed' on AIX.
46967         * gnulib-tool (sed_noop): New variable.
46968         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
46969         func_add_or_update, func_create_testdir): Use it to initialize sed
46970         script variables.
46971         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
46972
46973 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
46974             Bruno Haible  <bruno@clisp.org>
46975
46976         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
46977         also works after #include directives.
46978
46979 2008-09-04  Ondřej Vašík  <ovasik@redhat.com>
46980
46981         getdate.y: reject an out-of-range timezone value
46982         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
46983         the range [-24...+24].  When specified with only one or two digits,
46984         * tests/test-getdate.c: Tests for the fix.
46985         * doc/getdate.texi: Document this change.
46986
46987 2008-09-03  Bruno Haible  <bruno@clisp.org>
46988
46989         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
46990
46991 2008-09-02  Simon Josefsson  <simon@josefsson.org>
46992
46993         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
46994         <bruce.korb@gmail.com> with ideas from Ben Pfaff
46995         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
46996         Blake <ebb9@byu.net>.
46997
46998         * tests/test-bitrotate.c: Add more test vectors.
46999
47000 2008-09-02  Eric Blake  <ebb9@byu.net>
47001
47002         vasnprintf-posix: handle large precision via %.*d
47003         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
47004         when handling it ourselves.
47005         * tests/test-vasnprintf-posix.c (test_function): Add test.
47006         * tests/test-snprintf-posix.h (test_function): Likewise.
47007         * tests/test-sprintf-posix.h (test_function): Likewise.
47008         * tests/test-vasprintf-posix.c (test_function): Likewise.
47009         Reported by Alain Guibert.
47010
47011 2008-09-01  Eric Blake  <ebb9@byu.net>
47012
47013         c-stack: make configure-time check more robust
47014         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
47015         successful sigaction call.
47016         Reported by Tom G. Christensen.
47017
47018 2008-09-01  Bruno Haible  <bruno@clisp.org>
47019
47020         New module 'findprog-lgpl'.
47021         * modules/findprog-lgpl: New file.
47022         * lib/findprog-lgpl.c: New file.
47023         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
47024         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
47025         to decide whether to use strdup or xstrdup, concatenated_filename or
47026         xconcatenated_filename.
47027
47028 2008-09-01  Bruno Haible  <bruno@clisp.org>
47029
47030         Split module 'concat-filename' into 'concat-filename' (LGPL) and
47031         'xconcat-filename' (GPL).
47032         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
47033         (License): Change to LGPLv2+.
47034         * modules/xconcat-filename: New file.
47035         * lib/concat-filename.h (concatenated_filename): Change specification.
47036         (xconcatenated_filename): New declaration.
47037         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
47038         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
47039         memory situations.
47040         * lib/xconcat-filename.c: New file.
47041         * NEWS: Mention the change.
47042         * lib/findprog.c: Include concat-filename.h, not filename.h.
47043         (find_in_path): Use xconcatenated_filename instead of
47044         concatenated_filename.
47045         * lib/javacomp.c: Include concat-filename.h, not filename.h.
47046         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
47047         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
47048         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
47049         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
47050         instead of concatenated_filename.
47051         * lib/javaexec.c: Include concat-filename.h, not filename.h.
47052         (execute_java_class): Use xconcatenated_filename instead of
47053         concatenated_filename.
47054         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
47055         * modules/javacomp (Depends-on): Likewise.
47056         * modules/javaexec (Depends-on): Likewise.
47057
47058 2008-09-01  Bruno Haible  <bruno@clisp.org>
47059
47060         Split module 'filename' into 'filename' and 'concat-filename'.
47061         * modules/filename: Keep only lib/filename.h.
47062         (License): Change to LGPLv2+.
47063         * modules/concat-filename: New file, extracted from modules/filename.
47064         * lib/filename.h (concatenated_filename): Remove declaration.
47065         * lib/concat-filename.h: New file, extracted from lib/filename.h.
47066         * lib/concat-filename.c: Include concat-filename.h.
47067         * NEWS: Mention the change.
47068
47069 2008-09-01  Simon Josefsson  <simon@josefsson.org>
47070
47071         * lib/bitrotate.h (rotl8, rotr8): Add.
47072
47073         * modules/bitrotate (configure.ac): Need
47074         AC_REQUIRE([AC_C_INLINE]).
47075         (Description): Mention stdint.h.  Reported by Bruno Haible
47076         <bruno@clisp.org>.
47077
47078         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
47079         Paolo Bonzini <bonzini@gnu.org>.
47080
47081 2008-08-31  Bruno Haible  <bruno@clisp.org>
47082
47083         Assume Solaris specific bi-arch conventions on Solaris systems.
47084         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
47085         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
47086         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
47087         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
47088         like acl_libdirstem.
47089         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
47090         acl_libdirstem.
47091         * NEWS: Mention the change.
47092         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
47093
47094 2008-08-31  Jim Meyering  <meyering@redhat.com>
47095
47096         * lib/strftime.h: Add comments describing the two added arguments.
47097
47098         remove duplicate #include directives
47099         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
47100         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
47101
47102 2008-08-31  Bruno Haible  <bruno@clisp.org>
47103
47104         New module 'sigpipe-die'.
47105         * modules/sigpipe-die: New file.
47106         * lib/sigpipe-die.h: New file.
47107         * lib/sigpipe-die.c: New file.
47108         * MODULES.html.sh (Signal handling): Add sigpipe-die.
47109
47110 2008-08-31  Bruno Haible  <bruno@clisp.org>
47111
47112         Don't override previously installed signal handlers.
47113         * lib/fatal-signal.c (saved_sigactions): New variable.
47114         (uninstall_handlers): Reset the signal to the saved handler, not
47115         to SIG_DFL (except when ignored).
47116         (install_handlers): Save the previous handlers.
47117
47118 2008-08-30  Bruno Haible  <bruno@clisp.org>
47119
47120         * gnulib-tool (func_reset_sigpipe): New function.
47121         (func_get_automake_snippet, func_modules_transitive_closure,
47122         func_import): Invoke it before a join command that reads from stdin,
47123         to avoid "echo: write error: Broken pipe" error messages on stderr.
47124         Reported by Sam Steingold <sds@gnu.org>.
47125
47126 2008-08-30  Bruno Haible  <bruno@clisp.org>
47127
47128         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
47129         Code copied from m4/open.m4.
47130         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
47131         access and the filename ends in a slash. Code copied from lib/open.c.
47132         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
47133         * tests/test-fopen.c (main): Check against bug with trailing slash.
47134
47135 2008-08-29  Bruno Haible  <bruno@clisp.org>
47136
47137         Avoid some "gcc -pedantic" warnings.
47138         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
47139         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
47140         * lib/dirent.in.h: Likewise.
47141         * lib/fcntl.in.h: Likewise.
47142         * lib/float.in.h: Likewise.
47143         * lib/iconv.in.h: Likewise.
47144         * lib/inttypes.in.h: Likewise.
47145         * lib/locale.in.h: Likewise.
47146         * lib/math.in.h: Likewise.
47147         * lib/netinet_in.in.h: Likewise.
47148         * lib/search.in.h: Likewise.
47149         * lib/signal.in.h: Likewise.
47150         * lib/stdarg.in.h: Likewise.
47151         * lib/stdint.in.h: Likewise.
47152         * lib/stdio.in.h: Likewise.
47153         * lib/stdlib.in.h: Likewise.
47154         * lib/string.in.h: Likewise.
47155         * lib/strings.in.h: Likewise.
47156         * lib/sys_select.in.h: Likewise.
47157         * lib/sys_socket.in.h: Likewise.
47158         * lib/sys_stat.in.h: Likewise.
47159         * lib/sys_time.in.h: Likewise.
47160         * lib/sysexits.in.h: Likewise.
47161         * lib/time.in.h: Likewise.
47162         * lib/unistd.in.h: Likewise.
47163         * lib/wchar.in.h: Likewise.
47164         * lib/wctype.in.h: Likewise.
47165         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
47166         * modules/fchdir (Makefile.am): Likewise.
47167         * modules/fcntl (Makefile.am): Likewise.
47168         * modules/float (Makefile.am): Likewise.
47169         * modules/iconv_open (Makefile.am): Likewise.
47170         * modules/inttypes (Makefile.am): Likewise.
47171         * modules/locale (Makefile.am): Likewise.
47172         * modules/math (Makefile.am): Likewise.
47173         * modules/netinet_in (Makefile.am): Likewise.
47174         * modules/search (Makefile.am): Likewise.
47175         * modules/signal (Makefile.am): Likewise.
47176         * modules/stdarg (Makefile.am): Likewise.
47177         * modules/stdint (Makefile.am): Likewise.
47178         * modules/stdio (Makefile.am): Likewise.
47179         * modules/stdlib (Makefile.am): Likewise.
47180         * modules/string (Makefile.am): Likewise.
47181         * modules/strings (Makefile.am): Likewise.
47182         * modules/sys_select (Makefile.am): Likewise.
47183         * modules/sys_socket (Makefile.am): Likewise.
47184         * modules/sys_stat (Makefile.am): Likewise.
47185         * modules/sys_time (Makefile.am): Likewise.
47186         * modules/sysexits (Makefile.am): Likewise.
47187         * modules/time (Makefile.am): Likewise.
47188         * modules/unistd (Makefile.am): Likewise.
47189         * modules/wchar (Makefile.am): Likewise.
47190         * modules/wctype (Makefile.am): Likewise.
47191         Reported by Reuben Thomas <rrt@sc3d.org>.
47192
47193 2008-08-29  Bruno Haible  <bruno@clisp.org>
47194
47195         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
47196         any more.
47197
47198 2008-08-29  Simon Josefsson  <simon@josefsson.org>
47199
47200         * MODULES.html.sh (Misc): Add bitrotate.
47201
47202         * modules/bitrotate: New file.
47203
47204         * lib/bitrotate.h: New file.
47205
47206         * modules/bitrotate-tests: New file.
47207
47208         * tests/test-bitrotate.c: New file.
47209
47210         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
47211         on the bitrotate module.
47212
47213         * lib/arctwo.c: Use new bitrotate module.
47214
47215 2008-08-29  Jim Meyering  <meyering@redhat.com>
47216
47217         bootstrap: merge changes from coreutils
47218         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
47219         of copied files.  Remove a kludge, now that this is fixed.
47220         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
47221         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
47222         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
47223
47224 2008-08-29  Bruno Haible  <bruno@clisp.org>
47225
47226         * MODULES.html.sh: Remove --cvs-urls option.
47227
47228 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
47229
47230         maint.mk: adjust to file name change
47231         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
47232
47233 2008-08-28  Jim Meyering  <meyering@redhat.com>
47234
47235         * modules/getndelim2 (License): Relicense to LGPLv2+.
47236         Approved by Richard Stallman for the version of 1995, and by
47237         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
47238
47239 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
47240
47241         * lib/getdelim.c (flockfile, funlockfile): Make all of them
47242         dummy if one is not available.  Do not touch them if
47243         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
47244         (getc_maybe_unlocked): New.
47245         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
47246
47247 2008-08-26  Eric Blake  <ebb9@byu.net>
47248
47249         doc/INSTALL: resync from autoconf
47250         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
47251         (INSTALL_PRELUDE): Delete; this is done more efficiently by
47252         moving...
47253         * install.texi [!autoconf]: ...here.  Resync from autoconf.
47254         * INSTALL: Regenerate.
47255         * INSTALL.ISO: New file.
47256         * INSTALL.UTF-8: Likewise.
47257
47258 2008-08-26  Jim Meyering  <meyering@redhat.com>
47259
47260         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
47261         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
47262         these definitions conditional, so that they may be overridden, too.
47263
47264 2008-08-26  Bruno Haible  <bruno@clisp.org>
47265
47266         Generate INSTALL file variants with prettier quotes.
47267         * doc/Makefile (INSTALL_PRELUDE): New macro.
47268         (INSTALL): Use it.
47269         (INSTALL.ISO, INSTALL.UTF-8): New rules.
47270
47271 2008-08-26  Bruno Haible  <bruno@clisp.org>
47272
47273         Run makeinfo in an English locale.
47274         * doc/Makefile (MAKEINFO): New variable.
47275
47276 2008-08-26  Bruno Haible  <bruno@clisp.org>
47277
47278         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
47279         Suggested by Eric Blake.
47280
47281 2008-08-25  Bruno Haible  <bruno@clisp.org>
47282
47283         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
47284
47285 2008-08-25  Eric Blake  <ebb9@byu.net>
47286
47287         c-stack: test that stack overflow can be caught
47288         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
47289         that platform allows handling stack overflow; at least OS/2 EMX
47290         has sigaltstack, but crashes before transferring control to
47291         handler on stack overflow.
47292         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
47293         check for HAVE_STACK_OVERFLOW_HANDLING.
47294         Reported by Elbert Pol.
47295
47296 2008-08-25  Bruno Haible  <bruno@clisp.org>
47297
47298         * doc/posix-functions/strftime.texi: Fix description of strftime
47299         module.
47300
47301 2008-08-24  Bruno Haible  <bruno@clisp.org>
47302
47303         * tests/uniwidth/test-uc_width2.c: New file.
47304         * tests/uniwidth/test-uc_width2.sh: New file.
47305         * modules/uniwidth/width-tests (Files): Add the new files.
47306         (TESTS): Add uniwidth/test-uc_width2.sh.
47307         (TESTS_ENVIRONMENT): New variable.
47308         (check_PROGRAMS): Add test-uc_width2.
47309         (test_uc_width2_SOURCES): New variable.
47310
47311         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
47312         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
47313         not 0x00AB.
47314         Reported by Alexander V. Lukyanov <lav@netis.ru>.
47315
47316 2008-08-22  Eric Blake  <ebb9@byu.net>
47317
47318         test-lock, test-tls: mention why a test is skipped
47319         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
47320         skipped.
47321         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
47322
47323         count-one-bits: relax license
47324         * modules/count-one-bits (License): Relicense to LGPLv2+.
47325         Suggested by Ludovic Courtès, approved by Ben Pfaff.
47326
47327 2008-08-22  Andreas Schwab  <schwab@suse.de>
47328
47329         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
47330         Remove spurious space in assignment.
47331
47332 2008-08-21  Simon Josefsson  <simon@josefsson.org>
47333
47334         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
47335         Paul Eggert <eggert@CS.UCLA.EDU>.
47336
47337 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
47338
47339         * modules/gettext: Add m4/threadlib.m4.
47340
47341 2008-08-19  Eric Blake  <ebb9@byu.net>
47342
47343         test-c-stack: fix compilation failure on FreeBSD 5.0
47344         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
47345         headers before <sys/resource.h>.
47346         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
47347         the bug.
47348         Reported by Nelson H. F. Beebe.
47349
47350         strverscmp: migrate from "strverscmp.h" to <string.h>
47351         * modules/string (Makefile.am): Add new hooks.
47352         * modules/strverscmp (Files): Remove strverscmp.h.
47353         (Depends-on): Add string.
47354         (configure.ac): Add indicator.
47355         (Include): Mention new header.
47356         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
47357         defaults.
47358         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
47359         results.
47360         * lib/strverscmp.h: Delete.
47361         * lib/string.in.h (strverscmp): Provide declaration, when needed.
47362         * tests/test-strverscmp.c (includes): Adjust client.
47363         * lib/check-version.c (includes): Likewise.
47364         * NEWS: Document the change.
47365
47366         strverscmp: add unit test
47367         * modules/strverscmp-tests: New file.
47368         * tests/test-strverscmp.c: Likewise.
47369
47370 2008-08-19  Simon Josefsson  <simon@josefsson.org>
47371
47372         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
47373         regarding Windows crypto stuff, from Mono.
47374
47375 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
47376
47377         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
47378         if present, for intel RND.  Return error on failures.
47379
47380 2008-08-18  Ben Pfaff  <blp@gnu.org>
47381
47382         gitlog-to-changelog: give better diagnostic for failed pipe-open
47383         * build-aux/gitlog-to-changelog: Improve error message: suggest
47384         that the version of Git may be too old.
47385
47386 2008-08-18  Simon Josefsson  <simon@josefsson.org>
47387
47388         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
47389         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
47390
47391 2008-08-18  Bruno Haible  <bruno@clisp.org>
47392
47393         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
47394         pthread_in_use().
47395
47396 2008-08-18  Bruno Haible  <bruno@clisp.org>
47397
47398         * lib/glthread/threadlib.c: Include <pthread.h>.
47399
47400 2008-08-18  Bruno Haible  <bruno@clisp.org>
47401
47402         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
47403         glthread_recursive_lock_* macros.
47404         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
47405         Fix syntax error.
47406
47407 2008-08-18  Bruno Haible  <bruno@clisp.org>
47408
47409         * lib/glthread/thread.c: Avoid forcing a context switch right after
47410         thread creation.
47411
47412 2008-08-17  Bruno Haible  <bruno@clisp.org>
47413
47414         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
47415         * lib/glthread/thread.h: Provide Win32 specific implementation.
47416         * modules/thread (Files): Add lib/glthread/thread.c.
47417         (Depends-on): Add lock.
47418         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
47419
47420 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47421
47422         New module 'yield'.
47423         * modules/yield: New file.
47424         * lib/glthread/yield.h: New file.
47425         * m4/yield.m4: New file.
47426         * MODULES.html.sh (Multithreading): Add yield.
47427
47428 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47429
47430         New module 'thread'.
47431         * modules/thread: New file.
47432         * lib/glthread/thread.h: New file.
47433         * m4/thread.m4: New file.
47434         * MODULES.html.sh (Multithreading): Add thread.
47435
47436 2008-08-17  Bruno Haible  <bruno@clisp.org>
47437
47438         * lib/glthread/lock.h: Include <stdlib.h> always.
47439         * lib/glthread/tls.h: Likewise.
47440         * lib/glthread/cond.h: Likewise.
47441
47442 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47443
47444         New module 'cond'.
47445         * modules/cond: New file.
47446         * lib/glthread/cond.h: New file.
47447         * lib/glthread/cond.c: New file.
47448         * m4/cond.m4: New file.
47449         * MODULES.html.sh (Multithreading): Add cond.
47450
47451 2008-08-16  Eric Blake  <ebb9@byu.net>
47452
47453         c-stack: fix regression on Irix 5.3 from 2008-06-21
47454         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
47455         sa_sigaction...
47456         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
47457         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
47458         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
47459         * modules/signal (Makefile.am): Use the value.
47460         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
47461         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
47462         * doc/posix-headers/signal.texi (signal.h): Document this
47463         portability issue.
47464         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
47465         Reported by Tom G. Christensen.
47466
47467 2008-08-17  Bruno Haible  <bruno@clisp.org>
47468
47469         New module 'threadlib'.
47470         * modules/threadlib: New file.
47471         * lib/glthread/threadlib.c: New file, extracted from
47472         lib/glthread/lock.c.
47473         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
47474         functions.
47475         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
47476         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
47477         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
47478         macros.
47479         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
47480         (gl_DISABLE_THREADS): Remove macro.
47481         * modules/lock (Files): Remove build-aux/config.rpath.
47482         (Depends-on): Remove havelib. Add threadlib.
47483         (configure.ac-early): Remove section.
47484         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
47485         * modules/tls (Depends-on): Remove lock. Add threadlib.
47486         (Link): New section, copied from threadlib.
47487         * MODULES.html.sh (Multithreading): Add threadlib.
47488
47489 2008-08-14  Bruno Haible  <bruno@clisp.org>
47490
47491         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
47492         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
47493         glthread_rwlock_unlock, glthread_rwlock_destroy,
47494         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
47495         glthread_recursive_lock_destroy): Define as macros always.
47496         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
47497         glthread_lock_lock.
47498         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
47499         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
47500         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
47501         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
47502         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
47503         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
47504         (glthread_recursive_lock_lock_func): Renamed from
47505         glthread_recursive_lock_lock.
47506         (glthread_recursive_lock_unlock_func): Renamed from
47507         glthread_recursive_lock_unlock.
47508         (glthread_recursive_lock_destroy_func): Renamed from
47509         glthread_recursive_lock_destroy.
47510
47511 2008-08-14  Bruno Haible  <bruno@clisp.org>
47512
47513         * lib/glthread/lock.h: Renamed from lib/lock.h.
47514         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
47515         * lib/glthread/tls.h: Renamed from lib/tls.h.
47516         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
47517         * lib/fstrcmp.c: Update includes.
47518         * lib/strsignal.c: Update includes.
47519         * modules/lock (Files, Makefile.am): Update.
47520         (Include): Change to "glthread/lock.h".
47521         * modules/tls (Files, Makefile.am): Update.
47522         (Include): Change to "glthread/tls.h".
47523         * tests/test-lock.c: Update includes.
47524         * tests/test-tls.c: Update includes.
47525         * NEWS: Mention the renamed header files.
47526
47527 2008-08-11  Jim Meyering  <meyering@redhat.com>
47528
47529         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
47530
47531 2008-08-11  Eric Blake  <ebb9@byu.net>
47532
47533         test-c-stack: avoid C99-ism
47534         * tests/test-c-stack.c (main): Fix whitespace, move declaration
47535         before statement.
47536         Reported by Alain Guibert.
47537
47538 2008-08-10  Jim Meyering  <meyering@redhat.com>
47539
47540         ensure that return value of uinttostr et al are not ignored
47541         * lib/inttostr.h (__GNUC_PREREQ): Define.
47542         (__attribute_warn_unused_result__): Define.
47543         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
47544
47545 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
47546
47547         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
47548         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
47549
47550 2008-08-07  Jim Meyering  <meyering@redhat.com>
47551
47552         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
47553
47554         * modules/mkstemp (License): Relicense under LGPLv2+.
47555         * modules/tempname (License): Likewise.
47556
47557 2008-08-06  Bruno Haible  <bruno@clisp.org>
47558
47559         * lib/poll.c (poll): Further micro-optimization.
47560
47561 2008-08-06  Jim Meyering  <meyering@redhat.com>
47562
47563         inet_pton.c: use locale-independent tolower
47564         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
47565         (inet_pton6): Use c_tolower rather than tolower.
47566         * modules/inet_pton (Depends-on): Add c-ctype.
47567
47568 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
47569
47570         * lib/poll.c (poll): Avoid division when timeout is 0, cache
47571         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
47572
47573 2008-08-06  Jim Meyering  <meyering@redhat.com>
47574
47575         * modules/inet_pton (License): Relicense under LGPLv2+.
47576
47577 2008-08-03  Bruno Haible  <bruno@clisp.org>
47578
47579         Additional non-aborting API for lock and tls.
47580         * lib/lock.h: Include <errno.h>.
47581         (glthread_lock_init): New macro/function.
47582         (gl_lock_init): Define as wrapper around glthread_lock_init.
47583         (glthread_lock_lock): New macro/function.
47584         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
47585         (glthread_lock_unlock): New macro/function.
47586         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
47587         (glthread_lock_destroy): New macro/function.
47588         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
47589         (glthread_rwlock_init): New macro/function.
47590         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
47591         (glthread_rwlock_rdlock): New macro/function.
47592         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
47593         (glthread_rwlock_wrlock): New macro/function.
47594         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
47595         (glthread_rwlock_unlock): New macro/function.
47596         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
47597         (glthread_rwlock_destroy): New macro/function.
47598         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
47599         (glthread_recursive_lock_init): New macro/function.
47600         (gl_recursive_lock_init): Define as wrapper around
47601         glthread_recursive_lock_init.
47602         (glthread_recursive_lock_lock): New macro/function.
47603         (gl_recursive_lock_lock): Define as wrapper around
47604         glthread_recursive_lock_lock.
47605         (glthread_recursive_lock_unlock): New macro/function.
47606         (gl_recursive_lock_unlock): Define as wrapper around
47607         glthread_recursive_lock_unlock.
47608         (glthread_recursive_lock_destroy): New macro/function.
47609         (gl_recursive_lock_destroy): Define as wrapper around
47610         glthread_recursive_lock_destroy.
47611         (glthread_once): New macro/function.
47612         (gl_once): Define as wrapper around glthread_once.
47613         Update function declarations.
47614         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
47615         glthread_rwlock_init. Return error code.
47616         (glthread_rwlock_rdlock_multithreaded): Renamed from
47617         glthread_rwlock_rdlock. Return error code.
47618         (glthread_rwlock_wrlock_multithreaded): Renamed from
47619         glthread_rwlock_wrlock. Return error code.
47620         (glthread_rwlock_unlock_multithreaded): Renamed from
47621         glthread_rwlock_unlock. Return error code.
47622         (glthread_rwlock_destroy_multithreaded): Renamed from
47623         glthread_rwlock_destroy. Return error code.
47624         (glthread_recursive_lock_init_multithreaded): Renamed from
47625         glthread_recursive_lock_init. Return error code.
47626         (glthread_recursive_lock_lock_multithreaded): Renamed from
47627         glthread_recursive_lock_lock. Return error code.
47628         (glthread_recursive_lock_unlock_multithreaded): Renamed from
47629         glthread_recursive_lock_unlock. Return error code.
47630         (glthread_recursive_lock_destroy_multithreaded): Renamed from
47631         glthread_recursive_lock_destroy. Return error code.
47632         (glthread_once_call): Make static.
47633         (glthread_once_multithreaded): Renamed from glthread_once.
47634         * lib/tls.h: Include <errno.h>.
47635         (glthread_tls_key_init): New macro/function.
47636         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
47637         (glthread_tls_set): New macro/function.
47638         (gl_tls_set): Define as wrapper around glthread_tls_set.
47639         (glthread_tls_key_destroy): New macro/function.
47640         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
47641         Update function declarations.
47642         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
47643         glthread_tls_get.
47644         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
47645
47646 2008-08-04  Eric Blake  <ebb9@byu.net>
47647
47648         gnumakefile: use space, not TAB, outside of targets
47649         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
47650
47651 2008-08-02  Jim Meyering  <meyering@redhat.com>
47652
47653         getdate.y: avoid locale-dependent date parsing failure
47654         In Turkish locales, getdate would fail to recognize keywords
47655         containing a lowercase "i".  The solution is not to rely on
47656         locale-sensitive case-conversion.
47657         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
47658         (lookup_word): Use c_toupper in place of toupper.
47659         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
47660         Reported by Vefa Bicakci <bicave@superonline.com> in
47661         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
47662         * modules/getdate (Depends-on): Add c-ctype.
47663
47664 2008-08-02  Bruno Haible  <bruno@clisp.org>
47665
47666         * gnulib-tool (func_import): When updating or creating a .gitignore
47667         file, prepend each added line with a slash, and ignore leading slashes
47668         from the existing lines.
47669         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
47670
47671 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47672
47673         Portability fix for GNU make 3.79.1.
47674         * top/GNUmakefile: Avoid 'else COND', which older GNU make
47675         versions do not understand.
47676
47677 2008-08-01  Bruno Haible  <bruno@clisp.org>
47678
47679         Work around bug of HP-UX 10.20 cc with -0.0 literal.
47680         * tests/test-isnanf.h (zero): New variable.
47681         (main): Avoid literal -0.0f.
47682         * tests/test-isnand.h (zero): New variable.
47683         (main): Avoid literal -0.0.
47684         * tests/test-isnanl.h (zero): New variable.
47685         (main): Avoid literal -0.0L.
47686         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
47687         (test_float, test_double, test_long_double): Avoid literals -0.0f,
47688         -0.0, -0.0L.
47689         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
47690         (test_signbitd): Avoid literal -0.0.
47691         (test_signbitl): Avoid literal -0.0L.
47692         * tests/test-ceilf1.c (zero): New variable.
47693         (main): Avoid literal -0.0f.
47694         * tests/test-ceill.c (zero): New variable.
47695         (main): Avoid literal -0.0L.
47696         * tests/test-floorf1.c (zero): New variable.
47697         (main): Avoid literal -0.0f.
47698         * tests/test-floorl.c (zero): New variable.
47699         (main): Avoid literal -0.0L.
47700         * tests/test-roundf1.c (zero): New variable.
47701         (main): Avoid literal -0.0f.
47702         * tests/test-round1.c (zero): New variable.
47703         (main): Avoid literal -0.0.
47704         * tests/test-roundl.c (zero): New variable.
47705         (main): Avoid literal -0.0L.
47706         * tests/test-truncf1.c (zero): New variable.
47707         (main): Avoid literal -0.0f.
47708         * tests/test-trunc1.c (zero): New variable.
47709         (main): Avoid literal -0.0.
47710         * tests/test-truncl.c (zero): New variable.
47711         (main): Avoid literal -0.0L.
47712         * tests/test-frexp.c (zero): New variable.
47713         (main): Avoid literal -0.0.
47714         * tests/test-frexpl.c (zero): New variable.
47715         (main): Avoid literal -0.0L.
47716         * tests/test-ldexpl.c (zero): New variable.
47717         (main): Avoid literal -0.0L.
47718         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
47719         (zerod, zerol): New variables.
47720         (test_function): Avoid literals -0.0, -0.0L.
47721         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
47722         (zerod, zerol): New variables.
47723         (test_function): Avoid literals -0.0, -0.0L.
47724         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
47725         (zerod, zerol): New variables.
47726         (test_function): Avoid literals -0.0, -0.0L.
47727         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
47728         (zerod, zerol): New variables.
47729         (test_function): Avoid literals -0.0, -0.0L.
47730         * tests/test-strtod.c (zero): New variable.
47731         (main): Avoid literal -0.0.
47732         Reported by Jonathan C. Patschke <jp@centtech.com>.
47733
47734 2008-07-31  Jim Meyering  <meyering@redhat.com>
47735
47736         sha256.h: correct definition of SHA224_DIGEST_SIZE
47737         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
47738         Reported by Paulie Pena IV <paulie4@gmail.com>.
47739         Define as 224 / 8, rather than as a literal.
47740         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
47741         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
47742         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
47743
47744 2008-07-31  Bruno Haible  <bruno@clisp.org>
47745
47746         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
47747         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
47748         Reported by Jonathan Patschke <jp@centtech.com>.
47749
47750 2008-07-31  Bruno Haible  <bruno@clisp.org>
47751
47752         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
47753         Reported by Paolo Bonzini <bonzini@gnu.org>.
47754
47755 2008-07-30  Eric Blake  <ebb9@byu.net>
47756
47757         test-strtod: allow compilation without -lm
47758         * tests/test-strtod.c (main): Avoid link dependence on fabs.
47759         Reported by Dennis Clarke <blastwave@gmail.com>.
47760
47761 2008-07-28  Jim Meyering  <meyering@redhat.com>
47762
47763         bootstrap: work also when there are no .po files in po/
47764         * build-aux/bootstrap (update_po_files): Complete the change
47765         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
47766
47767 2008-07-27  Jim Meyering  <meyering@redhat.com>
47768
47769         * users.txt: Add zile.
47770
47771 2008-07-26  Ben Pfaff  <blp@gnu.org>
47772
47773         Add missing dependencies on new m4/exponent[fdl].m4 files.
47774         * modules/isnanf-nolibm: Add m4/exponentf.m4.
47775         * modules/isnand-nolibm: Add m4/exponentd.m4.
47776         * modules/isnanl-nolibm: Add m4/exponentl.m4.
47777         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
47778         m4/isnan[fdl].m4, because the macros actually used moved.
47779         Reported by Jim Meyering.
47780
47781 2008-07-14  Ben Pfaff  <blp@gnu.org>
47782
47783         Add isinf module.
47784         * lib/isinf.c: New file.
47785         * lib/math.in.h: Define isinf macro if we have decided to replace
47786         it.
47787         * m4/isinf.m4: New file.
47788         * m4/math_h.m4: Initialize and substitute variables for isinf
47789         module.
47790         * modules/isinf: New file.
47791         * modules/isinf-tests: New file.
47792         * modules/math: Add substitutions for new module.
47793         * tests/test-isinf.c: New file.
47794         * doc/posix-functions/isinf.texi: Mention new module.
47795         * MODULES.html.sh: Mention new module.
47796
47797 2008-07-14  Ben Pfaff  <blp@gnu.org>
47798
47799         Factor out some macros for use by additional modules.
47800         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
47801         exponentf.m4.
47802         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
47803         exponentd.m4.
47804         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
47805         file exponentl.m4.
47806         * m4/exponentf.m4: New file.
47807         * m4/exponentd.m4: New file.
47808         * m4/exponentl.m4: New file.
47809         * modules/isnanf: Use new file m4/exponentf.m4.
47810         * modules/isnand: Use new file m4/exponentd.m4.
47811         * modules/isnanl: Use new file m4/exponentl.m4.
47812
47813 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
47814
47815         mktime.c: normalize tp->tm_isdst value to -1/0/1.
47816         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
47817         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
47818         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
47819
47820         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
47821         readlink on platforms without PATH_MAX.
47822
47823 2008-07-21  Eric Blake  <ebb9@byu.net>
47824
47825         Warn, not fail, on stale version.
47826         * top/GNUmakefile (_curr-ver): Tone down previous patch.
47827
47828         Don't allow installation with stale devel version number.
47829         * top/GNUmakefile (_is-install-target): New macro.
47830         (_curr-ver): Forbid installation with stale version number.
47831
47832 2008-07-20  Bruno Haible  <bruno@clisp.org>
47833
47834         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
47835         TESTS_ENVIRONMENT.
47836         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
47837
47838 2008-07-20  Bruno Haible  <bruno@clisp.org>
47839
47840         * lib/c-stack.h (c_stack_action): Add documentation.
47841         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
47842
47843 2008-07-20  Bruno Haible  <bruno@clisp.org>
47844
47845         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
47846         * modules/readlink (License): Likewise.
47847
47848 2008-07-17  Eric Blake  <ebb9@byu.net>
47849
47850         * modules/c-stack (Link): Fix typo.
47851
47852         Make c-stack use libsigsegv, when available.
47853         * modules/c-stack (Depends-on): Add libsigsegv.
47854         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
47855         needed.
47856         * lib/c-stack.c (SIGSTKSZ): Define fallback.
47857         (segv_handler, overflow_handler, c_stack_action)
47858         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
47859         implementation when libsigsegv is available, but only when using
47860         the library is necessary.
47861         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
47862         comment, explaining why XSI check fails on Linux.
47863         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
47864         * tests/test-c-stack2.sh: Tweak skip message.
47865         * NEWS: Document new link-time requirements.
47866
47867 2008-07-16  Eric Blake  <ebb9@byu.net>
47868
47869         c-stack: Expose false positives when not using libsigsegv.
47870         * modules/c-stack-tests (Files): Expand test.
47871         * tests/test-c-stack.c (main): Add means to conditionally trigger
47872         non-overflow SIGSEGV.
47873         * tests/test-c-stack2.sh: New file.
47874
47875 2008-07-14  Bruno Haible  <bruno@clisp.org>
47876
47877         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
47878         Reported by Eric Blake.
47879
47880 2008-07-14  Sam Steingold  <sds@gnu.org>
47881             Bruno Haible  <bruno@clisp.org>
47882
47883         New module libsigsegv.
47884         * modules/libsigsegv: New file.
47885         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
47886         modifications.
47887         * MODULES.html.sh (Signal handling): New section.
47888
47889 2008-07-14  Bruno Haible  <bruno@clisp.org>
47890
47891         * modules/unictype/ctype-* (Description): Add the word "function".
47892         Improves the resulting doc in MODULES.html.
47893
47894 2008-07-12  Ben Pfaff  <blp@gnu.org>
47895
47896         Add longlong module.
47897         * modules/longlong: New file.
47898
47899 2008-07-12  Bruno Haible  <bruno@clisp.org>
47900
47901         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
47902         to empty.
47903
47904 2008-07-10  Ben Pfaff  <blp@gnu.org>
47905
47906         Add isnan module.
47907         * doc/posix-functions/isnan.texi: Mention new module.
47908         * lib/math.in.h: Define isnan macro if we have decided to replace
47909         it.
47910         * m4/isnan.m4: New file.
47911         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
47912         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
47913         also.
47914         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
47915         redundancy.
47916         * m4/math_h.m4: Initialize and substitute variables for isnan
47917         module.
47918         * modules/isnan: New file.
47919         * modules/isnan-tests: New file.
47920         * modules/math: Add substitutions for new module.
47921         * tests/test-isnan.c: New file.
47922         * MODULES.html.sh: Mention new module.
47923
47924 2008-07-10  Ben Pfaff  <blp@gnu.org>
47925
47926         Add isnanf module.
47927         * lib/isnanf.m4: New file.
47928         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
47929         (gl_HAVE_ISNANF_IN_LIBM): New macro.
47930         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
47931         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
47932         * modules/isnanf: New file.
47933         * modules/isnanf-tests: New file.
47934         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
47935         files.
47936         * tests/test-isnanf-nolibm.c: factored most of its contents into
47937         new file tests/test-isnanf.h.
47938         * tests/test-isnanf.h: New file.
47939         * tests/test-isnanf.c: New file.
47940         * MODULES.html.sh: Mention new module.
47941         * doc/glibc-functions/isnanf.texi: Mention new module.
47942
47943 2008-07-10  Ben Pfaff  <blp@gnu.org>
47944
47945         Add isnand module.
47946         * lib/isnand.h: New file.
47947         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
47948         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
47949         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
47950         functionality also.
47951         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
47952         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
47953         (gl_HAVE_ISNAND_IN_LIBM): New macro.
47954         * modules/isnand: New file.
47955         * modules/isnand-tests: New file.
47956         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
47957         files.
47958         * tests/test-isnand-nolibm.c: factored most of its contents into
47959         new file tests/test-isnand.h.
47960         * tests/test-isnand.h: New file.
47961         * tests/test-isnand.c: New file.
47962         * MODULES.html.sh: Mention new module.
47963
47964 2008-07-10  Ben Pfaff  <blp@gnu.org>
47965
47966         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
47967         * lib/isnand.h: Rename lib/isnand-nolibm.h.
47968         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
47969         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
47970         * modules/isnanf-nolibm: Update references to renamed files.
47971         * modules/isnand-nolibm: Likewise.
47972         * modules/isnanf-nolibm-tests: Likewise.
47973         * modules/isnand-nolibm-tests: Likewise.
47974         * lib/frexp.c: Likewise.
47975         * lib/isfinite.c: Likewise.
47976         * lib/signbitd.c: Likewise.
47977         * lib/signbitf.c: Likewise.
47978         * lib/vasnprintf.c: Likewise.
47979         * tests/test-ceilf1.c: Likewise.
47980         * tests/test-ceilf2.c: Likewise.
47981         * tests/test-floorf1.c: Likewise.
47982         * tests/test-floorf2.c: Likewise.
47983         * tests/test-frexp.c: Likewise.
47984         * tests/test-round1.c: Likewise.
47985         * tests/test-round2.c: Likewise.
47986         * tests/test-roundf1.c: Likewise.
47987         * tests/test-strtod.c: Likewise.
47988         * tests/test-trunc1.c: Likewise.
47989         * tests/test-trunc2.c: Likewise.
47990         * tests/test-truncf1.c: Likewise.
47991         * tests/test-truncf2.c: Likewise.
47992         * NEWS: Mention the renamed header files.
47993
47994 2008-07-11  Jim Meyering  <meyering@redhat.com>
47995
47996         vc-list-files: make the last-resort awk code more portable
47997         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
47998         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
47999         does not support it.
48000
48001 2008-07-10  Eric Blake  <ebb9@byu.net>
48002
48003         Work with tar's bootstrap.
48004         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
48005         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
48006         an m4 comment.
48007
48008 2008-07-09  Jim Meyering  <meyering@redhat.com>
48009
48010         posix-shell.m4: fix typo that made this test malfunction
48011         * m4/posix-shell.m4: Remove capitalization in variable name.
48012
48013 2008-07-08  Bruno Haible  <bruno@clisp.org>
48014
48015         * m4/onceonly.m4: Update comments.
48016         Reported by Ben Pfaff <blp@cs.stanford.edu>.
48017
48018 2008-07-04  Jim Meyering  <meyering@redhat.com>
48019
48020         * users.txt: Add vc-dwim.
48021         (bison, coreutils): Use the gitweb URL.
48022
48023 2008-07-03  Jim Meyering  <meyering@redhat.com>
48024
48025         * users.txt: Add libffcall.  From Sam Steingold.
48026
48027 2008-07-03  Ondřej Vašík  <ovasik@redhat.com>
48028
48029         getdate.y: do not ignore TZ with relative day, month or year offset
48030         * lib/getdate.y (get_date): Move the tz-handling block to follow the
48031         relative-date-handling, since otherwise, the latter would clobber the
48032         sole output (an updated Start value) of the tz-handling block.
48033         * tests/test-getdate.c: Tests for the fix
48034
48035 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48036
48037         Recognize 'foo_LIBRARIES += libgnu.a'.
48038         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
48039         makefile snippet has already specified an installation location,
48040         also using '+='.
48041
48042 2008-07-02  Ondřej Vašík  <ovasik@redhat.com>
48043
48044         getdate.y: factor out common actions
48045         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
48046         Use them in place of open-coded actions.
48047
48048 2008-07-01  Simon Josefsson  <simon@josefsson.org>
48049
48050         Add self-test for getdate module.
48051         * modules/getdate-tests: New file.
48052         * tests/test-getdate.c: New file.
48053
48054 2008-06-29  Bruno Haible  <bruno@clisp.org>
48055
48056         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
48057         .gitignore.
48058         Reported by Sylvain Beucler <beuc@beuc.net>.
48059
48060 2008-06-29  Bruno Haible  <bruno@clisp.org>
48061
48062         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
48063         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
48064
48065 2008-06-29  Bruno Haible  <bruno@clisp.org>
48066
48067         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
48068         EXTRA_DIST.
48069         Reported by Sylvain Beucler <beuc@beuc.net>.
48070
48071 2008-06-26  Jim Meyering  <meyering@redhat.com>
48072
48073         make several modules depend on the "open" module
48074         This provides slightly increased consistency when opening-for-write
48075         the name of a non-directory spelled with a trailing slash.
48076         * modules/chdir-safer: Likewise.
48077         * modules/chown: Likewise.
48078         * modules/clean-temp: Likewise.
48079         * modules/copy-file: Likewise.
48080         * modules/fchdir: Likewise.
48081         * modules/fcntl-safer: Likewise.
48082         * modules/pipe: Likewise.
48083         * modules/utime: Likewise.
48084         Prompted by Eric Blake and Bruno Haible.
48085
48086 2008-06-24  Andreas Schwab  <schwab@suse.de>
48087
48088         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
48089         literals can be used as initializers for global variables.
48090
48091 2008-06-23  Eric Blake  <ebb9@byu.net>
48092
48093         Make gnulib-cache.m4 easier to diff.
48094         * gnulib-tool (func_import): Allow newlines when reading cached
48095         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
48096
48097 2008-06-23  Bruno Haible  <bruno@clisp.org>
48098
48099         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
48100         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
48101         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
48102         m4/signalblocking.m4.
48103         (gl_PREREQ_SIGACTION): Don't invoke it.
48104         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
48105         gl_PREREQ_SIG_HANDLER_H.
48106         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
48107         Don't check for sigaction here.
48108
48109 2008-06-23  Bruno Haible  <bruno@clisp.org>
48110
48111         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
48112         (install_handlers): Don't set the SA_RESETHAND flag.
48113
48114 2008-06-23  Bruno Haible  <bruno@clisp.org>
48115
48116         * m4/sigaction.m4: Comment fixes.
48117         * lib/signal.in.h: Likewise.
48118
48119 2008-06-23  Eric Blake  <ebb9@byu.net>
48120
48121         Fix typo.
48122         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
48123
48124         Avoid SA_ namespace.
48125         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
48126         Reported by Ralf Wildenhues.
48127
48128         Avoid test failure due to SA_RESTORER.
48129         * tests/test-sigaction.c (SA_MASK): New macro.
48130         (main): Avoid failing due to extension flags being set.
48131         Reported by Jim Meyering.
48132
48133         Revert use of sig-handler.h in sigprocmask.c.
48134         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
48135         it requires the existence of struct sigaction.
48136         * lib/sigprocmask.c (handler_t): Restore typedef.
48137         (rpl_signal, old_handlers): Use local type.
48138
48139 2008-06-22  Bruno Haible  <bruno@clisp.org>
48140
48141         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
48142         conditionally.
48143         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
48144
48145 2008-06-22  Bruno Haible  <bruno@clisp.org>
48146
48147         * doc/posix-functions/siginterrupt.texi: Move note.
48148
48149         * lib/signal.in.h (SA_RESTART): New macro.
48150         * lib/sigaction.c: Update comment.
48151
48152         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
48153
48154         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
48155         (gl_PREREQ_SIGPROCMASK): Invoke it.
48156         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
48157
48158         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
48159
48160         * lib/sigprocmask.c: Update a comment.
48161
48162 2008-06-21  Eric Blake  <ebb9@byu.net>
48163
48164         Use sigaction module rather than signal().
48165         * modules/c-stack (Depends-on): Add sigaction.
48166         * modules/fatal-signal (Depends-on): Likewise.
48167         * modules/nanosleep (Depends-on): Likewise.
48168         * modules/sigprocmask (Files): Add sig-handler.h.
48169         * modules/sigaction (Files): Likewise.
48170         * lib/sig-handler.h (get_handler): New file, suggested by Paul
48171         Eggert.
48172         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
48173         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
48174         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
48175         (init_fatal_signals): Likewise.
48176         * lib/nanosleep.c (rpl_nanosleep): Likewise.
48177         (siginterrupt): Delete fallback.
48178         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
48179         instead.
48180         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
48181         siginterrupt.
48182
48183         New module sigaction, for mingw.
48184         * modules/sigaction: New module...
48185         * modules/sigaction-tests: ...and its test.
48186         * m4/sigaction.m4: New file.
48187         * lib/sigaction.c: Likewise.
48188         * tests/test-sigaction.c: Likewise.
48189         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
48190         * modules/signal (Makefile.am): Likewise.
48191         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
48192         needed.
48193         * doc/posix-headers/signal.texi (signal.h): Mention provided
48194         types.
48195         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
48196         that sigaction is preferable.
48197         * doc/posix-functions/sigaction.texi (sigaction): Mention new
48198         module.
48199         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
48200         sigaction.
48201
48202         Improve robustness of sigprocmask by overriding signal.
48203         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
48204         is in use.
48205         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
48206         (SIGKILL, SIGSTOP): Provide fallbacks.
48207         (rpl_signal): Implement.
48208         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
48209         signal can be called inside handlers.
48210
48211         Fix nanosleep module on mingw.
48212         * modules/nanosleep (Depends-on): Add sys_select.
48213         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
48214
48215         Fix licensing of sigprocmask.
48216         * modules/raise (License): Relicense as LGPL.
48217
48218 2008-06-21  Bruno Haible  <bruno@clisp.org>
48219
48220         * lib/propername.c (proper_name_utf8): Don't use the transliterated
48221         result if it contains question marks.
48222         Reported by Michael Geng <linux@michaelgeng.de>.
48223
48224 2008-06-19  Bruno Haible  <bruno@clisp.org>
48225
48226         Fix CVS-ism.
48227         * doc/gnulib.texi: Include updated-stamp.texi.
48228         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
48229         (updated-stamp.texi): New rule.
48230         (gnulib.info): Depend on it.
48231         * doc/.gitignore: Add updated-stamp.texi.
48232         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
48233
48234 2008-06-19  Bruno Haible  <bruno@clisp.org>
48235
48236         * doc/Makefile (gnulib.info): Update and simplify dependencies.
48237         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
48238
48239 2008-06-19  Eric Blake  <ebb9@byu.net>
48240
48241         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
48242         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
48243         Reported by Stepan Kasal.
48244
48245 2008-06-18  Bruno Haible  <bruno@clisp.org>
48246
48247         * lib/fatal-signal.c (init_fatal_signals): Add comment.
48248         Reported by Eric Blake.
48249
48250 2008-06-18  Eric Blake  <ebb9@byu.net>
48251
48252         Work around cygwin 1.5.25 strsignal bug.
48253         * tests/test-strsignal.c: Allow for const char *.
48254         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
48255
48256 2008-06-18  Simon Josefsson  <simon@josefsson.org>
48257
48258         * users.txt: Update URL to article and add author/date
48259         information.
48260
48261 2008-06-17  Bruno Haible  <bruno@clisp.org>
48262
48263         New macro gl_DISABLE_THREADS.
48264         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
48265         if the user did not pass --enable-threads or --disable-threads option.
48266         (gl_DISABLE_THREADS): New macro.
48267         Reported by Eric Blake <ebb9@byu.net>.
48268
48269 2008-06-17  Bruno Haible  <bruno@clisp.org>
48270
48271         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
48272         when the macro ignores it.
48273         Based on a patch by Eric Blake <ebb9@byu.net>.
48274
48275 2008-06-17  Bruno Haible  <bruno@clisp.org>
48276
48277         * modules/tls (License): Change to LGPLv2+.
48278         Reported by Eric Blake.
48279
48280 2008-06-17  Eric Blake  <ebb9@byu.net>
48281
48282         Simplify c-stack prerequisites.
48283         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
48284         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
48285         no longer requires <ucontext.h> to exist.  Optimize setrlimit
48286         check.
48287         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
48288         <sys/resource.h>.
48289
48290         Move c-stack test into testsuite.
48291         * modules/c-stack-tests: New file.
48292         * lib/c-stack.c [DEBUG]: Move test program...
48293         * tests/test-c-stack.c: ...into this new file.  Skip rather than
48294         fail test if sigaltstack is lacking.
48295         * tests/test-c-stack.sh: New driver file.
48296
48297 2008-06-16  Eric Blake  <ebb9@byu.net>
48298
48299         Use raise module consistently.
48300         * modules/fatal-signal (Depends-on): Add raise.
48301         * modules/sigprocmask (Depends-on): Likewise.
48302         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
48303         * lib/sigprocmask.c (sigprocmask): Likewise.
48304         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
48305         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
48306
48307         Fix compliance bug in sigpending.
48308         * lib/sigprocmask.c (sigpending): Return pending array via
48309         parameter, not return value.
48310
48311 2008-06-14  Eric Blake  <ebb9@byu.net>
48312
48313         Improve obstack-printf test code.
48314         * tests/test-obstack-printf.c (test_function): Fix comment, and
48315         simplify usage of obstack_* in macros.  Add a test for coverage.
48316         Reported by Bruno Haible.
48317
48318 2008-06-14  Bruno Haible  <bruno@clisp.org>
48319
48320         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
48321         array size as a constant, not as a const variable.
48322         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
48323         AC_USE_SYSTEM_EXTENSIONS.
48324         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
48325         Test whether the obstack_printf function actually exists.
48326         * modules/obstack-printf (Depends-on): Add extensions.
48327         (Include): Remove obstack.h.
48328         * modules/obstack-printf-posix (Depends-on): Add extensions.
48329         (Include): Remove obstack.h.
48330
48331 2008-06-13  Eric Blake  <ebb9@byu.net>
48332
48333         Add obstack-printf and obstack-printf-posix modules.
48334         * modules/obstack-printf: New file.
48335         * modules/obstack-printf-posix: Likewise.
48336         * MODULES.html.sh (Misc): Mention them.
48337         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
48338         Likewise.
48339         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
48340         Likewise.
48341         * modules/stdio (Makefile.am): Accomodate new modules.
48342         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
48343         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
48344         Declare.
48345         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
48346         functions.
48347         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
48348         (gl_REPLACE_OBSTACK_PRINTF): New macros
48349         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
48350         * tests/test-obstack-printf.c: New file.
48351         * modules/obstack-printf-tests: Likewise.
48352         * modules/obstack-printf-posix-tests: Likewise.
48353
48354 2008-06-11  Bruno Haible  <bruno@clisp.org>
48355
48356         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
48357         * lib/open.c: Include errno.h.
48358         (open): Fail when attempting to write to a file that has a trailing
48359         slash.
48360         * tests/test-open.c (main): Test against trailing slash bug.
48361         * doc/posix-functions/open.texi: Mention the trailing slash bug.
48362
48363 2008-06-10  Bruno Haible  <bruno@clisp.org>
48364
48365         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
48366         for $? to work inside the trap command, with various /bin/sh-s.
48367         * tests/test-vc-list-files-cvs.sh: Likewise.
48368
48369 2008-06-10  Bruno Haible  <bruno@clisp.org>
48370
48371         * lib/acl-internal.h: Don't include gettext.h here.
48372         * lib/set-mode-acl.c: Include gettext.h here.
48373         * lib/copy-acl.c: Likewise.
48374
48375 2008-06-10  Bruno Haible  <bruno@clisp.org>
48376
48377         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
48378         * lib/wait-process.c (wait_subprocess): Likewise.
48379         * lib/execute.h (execute): Add termsigp argument.
48380         * lib/execute.c (execute): Likewise.
48381         * lib/csharpcomp.c (compile_csharp_using_pnet,
48382         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
48383         * lib/csharpexec.c (execute_csharp_using_pnet,
48384         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
48385         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
48386         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
48387         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
48388         is_jikes_present): Update.
48389         * lib/javaexec.c (execute_java_class): Update.
48390         * lib/javaversion.c (execute_and_read_line): Update.
48391         * NEWS: Document the changes.
48392         Reported by Eric Blake.
48393
48394 2008-06-10  Eric Blake  <ebb9@byu.net>
48395
48396         Add missing include.
48397         * tests/test-strstr.c (includes): Add <signal.h>.
48398         * tests/test-strcasestr.c (includes): Likewise.
48399         * tests/test-memmem.c (includes): Likewise.
48400
48401 2008-06-10  Bruno Haible  <bruno@clisp.org>
48402
48403         * lib/wait-process.c (wait_subprocess): Add an assertion.
48404
48405 2008-06-10  Bruno Haible  <bruno@clisp.org>
48406
48407         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
48408
48409 2008-06-10  Bruno Haible  <bruno@clisp.org>
48410
48411         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
48412         using alarm().
48413         * tests/test-strcasestr.c (main): Likewise.
48414         * tests/test-strstr.c (main): Likewise.
48415
48416 2008-06-09  Bruno Haible  <bruno@clisp.org>
48417
48418         Work around the Solaris 10 ACE ACLs ABI change.
48419         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
48420         declare if ACL_NO_TRIVIAL is present.
48421         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
48422         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
48423         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
48424         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
48425         define if ACL_NO_TRIVIAL is present.
48426         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
48427         and use the current ABI.
48428         (file_has_acl): Use same #if condition as elsewhere.
48429         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
48430         in use, and use the current ABI.
48431         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
48432         Reported by Jim Meyering.
48433
48434 2008-06-09  Eric Blake  <ebb9@byu.net>
48435
48436         Work around environments that (stupidly) ignore SIGALRM.
48437         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
48438         before using alarm().
48439         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
48440         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
48441         Reported by Ian Beckwith <ianb@erislabs.net>.
48442
48443         Produce autobuild blurb earlier in log.
48444         * modules/autobuild (configure.ac-early): Move AB_INIT here.
48445
48446 2008-06-09  Jim Meyering  <meyering@redhat.com>
48447         and Ondřej Vašík  <ovasik@redhat.com>
48448
48449         utimens.c: correct kernel bug work-around
48450         Ondřej Vašík found that the invalid return value of 280 indicates
48451         failure, not success, and the kernel bug we're trying to work
48452         around affects not just the utimensat call, but also the fallback
48453         futimens call.
48454         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
48455         not success.
48456         [HAVE_FUTIMENS]: Use the same work-around, here.
48457
48458 2008-06-09  Jim Meyering  <meyering@redhat.com>
48459
48460         add more guards around definition of ACE_-related code
48461         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
48462         ALLOW and ACE_OWNER are also defined.
48463
48464 2008-06-08  Bruno Haible  <bruno@clisp.org>
48465
48466         * lib/acl-internal.h: Add me as co-author.
48467         * lib/file-has-acl.c: Likewise.
48468         * lib/set-mode-acl.c: Likewise.
48469         * lib/copy-acl.c: Likewise.
48470
48471 2008-06-08  Bruno Haible  <bruno@clisp.org>
48472
48473         Add support for AIX ACLs.
48474         * lib/acl-internal.h (acl_nontrivial): New declaration.
48475         * lib/file-has-acl.c (acl_nontrivial): New function.
48476         (file_has_acl): Add implementation using AIX 4 ACL API.
48477         * lib/set-mode-acl.c (qset_acl): Likewise.
48478         * lib/copy-acl.c (qcopy_acl): Likewise.
48479
48480 2008-06-08  Bruno Haible  <bruno@clisp.org>
48481
48482         Add support for HP-UX ACLs.
48483         * lib/acl-internal.h (acl_nontrivial): New declaration.
48484         * lib/file-has-acl.c (acl_nontrivial): New function.
48485         (file_has_acl): Add implementation using HP-UX 11 ACL API.
48486         * lib/set-mode-acl.c (qset_acl): Likewise.
48487         * lib/copy-acl.c (qcopy_acl): Likewise.
48488
48489 2008-06-08  Bruno Haible  <bruno@clisp.org>
48490
48491         Add support for Cygwin ACLs.
48492         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
48493         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
48494         the chmod_or_fchmod call.
48495         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
48496
48497 2008-06-08  Bruno Haible  <bruno@clisp.org>
48498
48499         Fix bug with setuid modes in Solaris 10+ code.
48500         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
48501         succeeded, when the mode contains some special bits.
48502
48503 2008-06-08  Bruno Haible  <bruno@clisp.org>
48504
48505         Add support for Solaris 7..10 ACLs.
48506         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
48507         declarations.
48508         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
48509         functions.
48510         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
48511         * lib/set-mode-acl.c (qset_acl): Likewise.
48512         * lib/copy-acl.c (qcopy_acl): Likewise.
48513
48514 2008-06-08  Bruno Haible  <bruno@clisp.org>
48515
48516         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
48517         declaration.
48518         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
48519         (acl_access_nontrivial): Remove MacOS X case.
48520         (file_has_acl): Use acl_extended_nontrivial.
48521         * lib/copy-acl.c (qcopy_acl): Likewise.
48522
48523 2008-06-08  Bruno Haible  <bruno@clisp.org>
48524
48525         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
48526
48527 2008-06-08  Jim Meyering  <meyering@redhat.com>
48528
48529         * modules/acl (Maintainer): Add Bruno Haible.
48530
48531 2008-06-07  Bruno Haible  <bruno@clisp.org>
48532
48533         Improve support for Tru64 ACLs.
48534         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
48535         ACL on OSF/1.
48536
48537 2008-06-07  Bruno Haible  <bruno@clisp.org>
48538
48539         Add support for MacOS X ACLs.
48540         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
48541         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
48542         * lib/set-mode-acl.c (qset_acl): Likewise.
48543         * lib/copy-acl.c (qcopy_acl): Likewise.
48544
48545 2008-06-07  Bruno Haible  <bruno@clisp.org>
48546
48547         Fix memory leak introduced on 2008-05-22.
48548         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
48549         use.
48550
48551 2008-06-07  Bruno Haible  <bruno@clisp.org>
48552
48553         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
48554         to construct an empty ACL.
48555
48556 2008-06-07  Bruno Haible  <bruno@clisp.org>
48557
48558         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
48559         precisely.
48560         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
48561
48562 2008-06-07  Bruno Haible  <bruno@clisp.org>
48563
48564         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
48565         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
48566
48567 2008-06-07  Bruno Haible  <bruno@clisp.org>
48568
48569         * doc/posix-functions/_setjmp.texi: Explain the use of this function
48570         regardless of POSIX.
48571         * doc/posix-functions/_longjmp.texi: Likewise.
48572         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
48573         SystemV platform in this case.
48574
48575 2008-06-06  Eric Blake  <ebb9@byu.net>
48576
48577         Document abort() bugs.
48578         * doc/posix-functions/abort.texi (abort): Mention anomalies.
48579
48580         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
48581         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
48582         sigsetjmp.
48583         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
48584         siglongjmp, but only as a macro.
48585         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
48586         is obsolete.
48587         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
48588
48589         Tweak documentation to cover cygwin argz bugs.
48590         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
48591         argz bug fix; no code change needed since no cygwin releases
48592         occurred between the last fix and the bug being tested.
48593         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
48594         module and recently fixed cygwin bugs.
48595         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
48596         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
48597         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
48598         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
48599         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
48600         Likewise.
48601         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
48602         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
48603         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
48604         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
48605         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
48606         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
48607         Likewise.
48608
48609         Avoid gcc warning on cygwin.
48610         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
48611         !ACL_NO_TRIVIAL]: Avoid unused variable.
48612
48613 2008-06-05  Eric Blake  <ebb9@byu.net>
48614
48615         Be tolerant of UNKNOWN version in gnulib-tool test dir.
48616         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
48617         git-version-gen fails to come up with a version.
48618         Reported by Simon Josefsson.
48619
48620 2008-06-05  Jim Meyering  <meyering@redhat.com>
48621             Paul Eggert  <eggert@cs.ucla.edu>
48622
48623         utimens.c: work around a probable Linux kernel bug
48624         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
48625         appears to be a kernel bug that causes utimensat to return 280
48626         instead of 0, indicating success.
48627
48628 2008-06-04  Bruno Haible  <bruno@clisp.org>
48629
48630         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
48631         2008-06-01 commit.
48632
48633 2008-06-04  Bruno Haible  <bruno@clisp.org>
48634
48635         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
48636         * lib/file-has-acl.c (acl_access_nontrivial): New function.
48637         (file_has_acl): Use it. Save errno afterwards.
48638         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
48639
48640 2008-06-03  Bruno Haible  <bruno@clisp.org>
48641
48642         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
48643         draft code. Simplify #ifs.
48644         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
48645         Put Solaris code after POSIX-draft code. Fix comments regarding
48646         Solaris 10, HP-UX. Mention Cygwin.
48647         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
48648
48649 2008-06-03  Eric Blake  <ebb9@byu.net>
48650
48651         Provide fallback for older kernels.
48652         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
48653         Provide runtime fallback if kernel lacks support.
48654         Reported by Mike Frysinger.
48655
48656 2008-06-02  Bruno Haible  <bruno@clisp.org>
48657
48658         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
48659         it exists.
48660
48661 2008-06-02  Bruno Haible  <bruno@clisp.org>
48662
48663         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
48664         * lib/copy-acl.c (qcopy_acl): Update comment.
48665
48666 2008-06-02  Bruno Haible  <bruno@clisp.org>
48667
48668         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
48669         like ACL APIs.
48670
48671 2008-06-02  Bruno Haible  <bruno@clisp.org>
48672
48673         * tests/test-file-has-acl.sh: Use different code for Cygwin.
48674         * tests/test-set-mode-acl.sh: Likewise.
48675         * tests/test-copy-acl.sh: Likewise.
48676         * tests/test-copy-file.sh: Likewise.
48677
48678 2008-06-02  Bruno Haible  <bruno@clisp.org>
48679
48680         * tests/test-file-has-acl.sh: Remove unused code.
48681
48682 2008-06-01  Bruno Haible  <bruno@clisp.org>
48683
48684         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
48685         (copy_acl): Just a wrapper around qcopy_acl that emits the error
48686         messages.
48687         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
48688
48689 2008-06-01  Bruno Haible  <bruno@clisp.org>
48690
48691         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
48692         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
48693         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
48694         APIs.
48695         * modules/acl-tests (configure.ac): Remove tests now contained in
48696         m4/acl.m4.
48697
48698 2008-06-02  Jim Meyering  <meyering@redhat.com>
48699
48700         announce-gen: use a better key-server host name
48701         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
48702         it may be more consistently reliable.  Suggested by Werner Koch
48703         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
48704
48705 2008-06-01  Bruno Haible  <bruno@clisp.org>
48706
48707         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
48708         Reported by Voroskoi Andras <voroskoi@gmail.com>.
48709
48710 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
48711
48712         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
48713
48714 2008-06-01  Bruno Haible  <bruno@clisp.org>
48715
48716         New ACL tests.
48717         * tests/test-file-has-acl.sh: New file.
48718         * tests/test-file-has-acl.c: New file.
48719         * tests/test-set-mode-acl.sh: New file.
48720         * tests/test-set-mode-acl.c: New file.
48721         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
48722         * tests/test-copy-acl.c: New file.
48723         * modules/acl-tests: New file, based on modules/copy-file-tests.
48724         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
48725         (Depends-on): Add acl-tests.
48726         (configure.ac): Remove checks.
48727         (Makefile.am): Don't create test-sameacls program here any more.
48728
48729 2008-06-01  Bruno Haible  <bruno@clisp.org>
48730
48731         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
48732         * tests/test-sameacls.c: Include progname.h.
48733         (main): Invoke set_program_name. Portability fixes for MacOS X,
48734         Solaris, HP-UX.
48735
48736 2008-06-01  Bruno Haible  <bruno@clisp.org>
48737
48738         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
48739         function.
48740         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
48741
48742 2008-06-01  Bruno Haible  <bruno@clisp.org>
48743
48744         * modules/rpmatch (Depends-on): Add strdup.
48745
48746 2008-06-01  Bruno Haible  <bruno@clisp.org>
48747
48748         * lib/pipe.c: Include unistd-safer.h.
48749         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
48750         * modules/pipe (Depends-on): Add unistd-safer.
48751
48752 2008-05-30  Simon Josefsson  <simon@josefsson.org>
48753
48754         * modules/autobuild (configure.ac): Call AB_INIT.
48755
48756 2008-05-30  Simon Josefsson  <simon@josefsson.org>
48757
48758         * tests/test-getaddrinfo.c: Don't print debug messages by default.
48759         Suggested by Bruno Haible <bruno@clisp.org>.
48760
48761 2008-05-30  Simon Josefsson  <simon@josefsson.org>
48762
48763         * tests/test-base64.c: Cast size_t to unsigned long when invoking
48764         printf.  Use %lu instead of %d.  Reported by Bruno Haible
48765         <bruno@clisp.org>.
48766
48767 2008-05-29  Eric Blake  <ebb9@byu.net>
48768
48769         Prefer new POSIX 200x interfaces over futimesat.
48770         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
48771         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
48772         when available.
48773         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
48774
48775 2008-05-28  Bruno Haible  <bruno@clisp.org>
48776
48777         * modules/stpcpy (License): Change to LGPLv2+.
48778         Requested by David Lutterkort <dlutter@redhat.com>.
48779
48780 2008-05-27  Bruno Haible  <bruno@clisp.org>
48781
48782         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
48783         current mingw.
48784         Reported by Jose E. Marchesi <jemarch@gnu.org>.
48785
48786 2008-05-27  Bruno Haible  <bruno@clisp.org>
48787
48788         * modules/iconv_open (Link): New section, from module 'iconv'.
48789         * modules/striconv (Link): Likewise.
48790         * modules/striconveh (Link): Likewise.
48791         * modules/xstriconv (Link): Likewise.
48792         * modules/unicodeio (Link): Likewise.
48793         * modules/propername (Link): Likewise.
48794         Reported by Jim Meyering.
48795
48796 2008-05-26  Jim Meyering  <meyering@redhat.com>
48797
48798         sha256: do not artificially restrict buffer length to be < 2^32
48799         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
48800         uint32_t to size_t.
48801         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
48802         to match.
48803
48804         avoid unaligned access errors, e.g., on sparc
48805         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
48806         direct access through a possibly-unaligned uint64* pointer.
48807         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
48808         direct access through a possibly-unaligned uint32* pointer.
48809         Prompted by this patch from Tom "spot" Callaway:
48810         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
48811
48812         sha512.c: fix typo in comment
48813         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
48814
48815 2008-05-25  Bruno Haible  <bruno@clisp.org>
48816
48817         * lib/set-mode-acl.c: Renamed from lib/acl.c.
48818         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
48819         (Makefile.am): Update lib_SOURCES.
48820
48821 2008-05-25  Bruno Haible  <bruno@clisp.org>
48822
48823         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
48824
48825 2008-05-25  Jim Meyering  <meyering@redhat.com>
48826
48827         useless-if-before-free: freed expr may have white-space differences
48828         * build-aux/useless-if-before-free: Recognize cases in which the
48829         freed expression differs from the tested one in embedded white
48830         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
48831         $1 was used, so we can't make any regexp shy.  Improved tests now
48832         detect this.
48833
48834         useless-if-before-free: accept white space in the expression.
48835         * build-aux/useless-if-before-free: For now, any white space
48836         in the expression must be identical in the free argument.
48837
48838         useless-if-before-free: efficiency tweak
48839         * build-aux/useless-if-before-free: Make the expression-matching
48840         regexp "shy".
48841         Make the *outer* regexp shy, not the expr-matching one.
48842
48843         update code-in-comment to accept cast of free arg
48844         * build-aux/useless-if-before-free: Update regexp.
48845
48846 2008-05-25  Bruno Haible  <bruno@clisp.org>
48847
48848         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
48849         * modules/copy-file-tests (Files, Makefile.am): Update.
48850         * tests/test-copy-file.c (func_test_copy): Update.
48851
48852 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
48853
48854         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
48855
48856 2008-05-23  Bruno Haible  <bruno@clisp.org>
48857
48858         Improve support for ACLs on OSF/1.
48859         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
48860         Remove fallback for unknown flavors of ACLs.
48861
48862 2008-05-22  Bruno Haible  <bruno@clisp.org>
48863
48864         Add support for ACLs on OSF/1.
48865         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
48866         replacements.
48867         (acl_free_text): New macro fallback.
48868         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
48869         acl_free.
48870         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
48871         acl_free_text function. Require AC_C_INLINE.
48872
48873 2008-05-22  Bruno Haible  <bruno@clisp.org>
48874
48875         Make copy_acl work on MacOS X 10.5.
48876         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
48877         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
48878         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
48879         If MODE_INSIDE_ACL, don't assume that every system has the same text
48880         representation for ACLs as FreeBSD.
48881         * lib/copy-acl.c (copy_acl): Add support for platforms with
48882         !MODE_INSIDE_ACL.
48883         * lib/file-has-acl.c (file_has_acl): Likewise.
48884         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
48885         FreeBSD, MacOS X, or IRIX, respectively.
48886
48887 2008-05-22  Bruno Haible  <bruno@clisp.org>
48888
48889         * lib/acl.h: Don't include <sys/acl.h>.
48890         (GETACLCNT): Move fallback to lib/acl-internal.h.
48891         * lib/acl-internal.h: Include <sys/acl.h> here.
48892         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
48893
48894 2008-05-22  Bruno Haible  <bruno@clisp.org>
48895
48896         Split off copy_acl function to separate file.
48897         * lib/copy-acl.c: New file, extracted from lib/acl.c.
48898         * lib/acl.c (copy_acl): Moved function to separate file.
48899         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
48900         * modules/acl (Files): Add lib/copy-acl.c.
48901         (Makefiles.am): Augment lib_SOURCES.
48902
48903 2008-05-22  Bruno Haible  <bruno@clisp.org>
48904
48905         * modules/copy-file-tests: New file.
48906         * tests/test-copy-file.sh: New file.
48907         * tests/test-copy-file.c: New file.
48908         * tests/test-copy-file-sameacls.c: New file.
48909
48910 2008-05-22  Eric Blake  <ebb9@byu.net>
48911
48912         Avoid gcc warning.
48913         * tests/test-memcmp.c (main): Pass NULL indirectly.
48914
48915 2008-05-21  Bruno Haible  <bruno@clisp.org>
48916
48917         Add reference doc about ACLs.
48918         * doc/acl-resources.txt: New file.
48919         * doc/acl-cygwin.txt: New file.
48920
48921 2008-05-21  Bruno Haible  <bruno@clisp.org>
48922
48923         Avoid one more warning from gcc.
48924         * lib/vasnprintf.c (IF_LINT): Update comments.
48925         (VASNPRINTF): Use it also for the 'prefix' array initializer.
48926
48927 2008-05-21  Jim Meyering  <meyering@redhat.com>
48928
48929         avoid a warning from gcc
48930         * lib/vasnprintf.c (IF_LINT): Define.
48931         (scale10_round_decimal_long_double):
48932         Use it to avoid a "may be used uninitialized" warning.
48933         (scale10_round_decimal_double): Likewise.
48934
48935 2008-05-21  Simon Josefsson  <simon@josefsson.org>
48936
48937         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
48938         declared.
48939
48940 2008-05-20  Bruno Haible  <bruno@clisp.org>
48941
48942         * tests/test-memcmp.c (main): Test also the sign of the result. Test
48943         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
48944
48945 2008-05-20  Simon Josefsson  <simon@josefsson.org>
48946
48947         * modules/memcmp-tests: New file.
48948         * tests/test-memcmp.c: New file.
48949
48950 2008-05-19  Bruno Haible  <bruno@clisp.org>
48951
48952         * modules/propername (Notice, configure.ac): Put quoted "..." into
48953         --keyword option.
48954         * lib/propername.h: Update comments accordingly.
48955         Reported by Eric Blake.
48956
48957 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
48958
48959         * modules/getpass-gnu (Depends-on): Add fseeko.
48960
48961 2008-05-19  Simon Josefsson  <simon@josefsson.org>
48962
48963         * modules/base64-tests: New file.
48964
48965 2008-05-19  Bo Borgerson <gigabo@gmail.com>
48966
48967         * lib/base64.c (base64_decode_ctx): If a decode context structure
48968         was passed in use it to ignore newlines.  If a context structure
48969         was _not_ passed in, continue to treat newlines as garbage (this
48970         is the historical behavior).  Formerly base64_decode.
48971         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
48972         takes a decode context structure.
48973         * lib/base64.h (base64_decode): Macro for four-argument calls.
48974         (base64_decode_alloc): Likewise.
48975         * lib/base64.c (base64_decode_ctx): If a decode context structure
48976         was passed in use it to ignore newlines.  If a context structure
48977         was _not_ passed in, continue to treat newlines as garbage (this
48978         is the historical behavior).  Formerly base64_decode.
48979         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
48980         takes a decode context structure.
48981         * lib/base64.h (base64_decode): Macro for four-argument calls.
48982         (base64_decode_alloc): Likewise.
48983
48984 2008-05-19  Jim Meyering  <meyering@redhat.com>
48985
48986         avoid a warning from gcc
48987         * lib/trim.c (IF_LINT): Define.
48988         (trim2): Use it to avoid a "may be used uninitialized" warning.
48989
48990         Fix doc typo.
48991         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
48992
48993 2008-05-19  Bruno Haible  <bruno@clisp.org>
48994
48995         * doc/glibc-functions/getpass.texi: Document limits of other
48996         implementations.
48997
48998 2008-05-19  Simon Josefsson  <simon@josefsson.org>
48999             Bruno Haible <bruno@clisp.org>
49000
49001         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
49002
49003 2008-05-18  Bruno Haible  <bruno@clisp.org>
49004
49005         * modules/propername: New file, from GNU gettext.
49006         * lib/propername.h: New file, from GNU gettext.
49007         * lib/propername.c: New file, from GNU gettext.
49008         * MODULES.html.sh (Internationalization functions): Add propername.
49009
49010 2008-05-16  Jim Meyering  <meyering@redhat.com>
49011             Bruno Haible  <bruno@clisp.org>
49012
49013         Avoid some warnings from "gcc -Wshadow".
49014         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
49015
49016 2008-05-15  Eric Blake  <ebb9@byu.net>
49017
49018         Extend previous patch to cygwin 1.7.0.
49019         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
49020         fast implementation in cygwin >= 1.7.0.
49021         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
49022         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
49023
49024 2008-05-15  Bruno Haible  <bruno@clisp.org>
49025
49026         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
49027         implementation in glibc >= 2.9.
49028         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
49029         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
49030
49031 2008-05-15  Bruno Haible  <bruno@clisp.org>
49032
49033         * MODULES.html.sh (Internationalization functions): Remove linebreak.
49034         (Unicode string functions): Add unilbrk/*.
49035         Reported by Karl Berry.
49036
49037 2008-05-15  Eric Blake  <ebb9@byu.net>
49038
49039         Fix violation of <stdbool.h> replacement in regex.
49040         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
49041         * lib/regexec.c (re_search_internal): Likewise.
49042         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
49043
49044 2008-05-15  Jim Meyering  <meyering@redhat.com>
49045
49046         avoid distracting test output when git or cvs is not found
49047         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
49048         * tests/test-vc-list-files-git.sh: Likewise.
49049
49050 2008-05-15  Eric Blake  <ebb9@byu.net>
49051
49052         Glibc finally accepted the memmem speedup code, bugzilla #5514.
49053         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
49054         glibc version.
49055         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
49056         * doc/posix-functions/strstr.texi (strstr): Likewise.
49057         * lib/str-two-way.h (MAX): Sychronize with glibc.
49058
49059 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
49060
49061         * lib/regcomp.c (optimize_utf8): Add a note on why we test
49062         opr.ctx_type.
49063         (calc_first): Initialize constraint field.
49064         (duplicate_node_closure): Use it instead of special casing ANCHORS.
49065         Fix grammar.
49066         (duplicate_node): Merge constraint field for all node types.
49067         (calc_eclosure_iter): Look at constraint field for all node types.
49068         * lib/regex_internal.c (create_cd_newstate): Don't look at
49069         opr.ctx_type.
49070
49071 2008-05-14  Bruno Haible  <bruno@clisp.org>
49072
49073         Help GCC to do better code generation.
49074         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
49075         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
49076         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
49077         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
49078         Declare with attribute 'malloc' if supported.
49079
49080 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
49081
49082         use "echo STR|wc -c" rather than unportable "expr length STR"
49083         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
49084         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
49085
49086 2008-05-14  Jim Meyering  <meyering@redhat.com>
49087
49088         use dd ibs=$n count=1 ... rather than less-portable head -c$n
49089         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
49090         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
49091         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
49092         via Collin Lasse.
49093
49094 2008-05-14  Eric Blake  <ebb9@byu.net>
49095
49096         Avoid quadratic growth in gl_LIBSOURCES.
49097         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
49098         Suggested by Bruno Haible.
49099
49100         Test xmemdup0.
49101         * modules/xmemdup0-tests: New file.
49102         * tests/test-xmemdup0.c: Likewise.
49103
49104 2008-05-13  Eric Blake  <ebb9@byu.net>
49105
49106         Split xmemdup0 into its own module.
49107         * modules/xmemdup0: New file.
49108         * lib/xmemdup0.h: Likewise.
49109         * lib/xmemdup0.c: Likewise.
49110         * MODULES.html.sh (Memory management functions): Add xmemdup0.
49111         * lib/xalloc.h (xmemdup0): Remove.
49112         * lib/xmalloc.c (xmemdup0): Likewise.
49113
49114 2008-05-13  Eric Blake  <ebb9@byu.net>
49115             Bruno Haible  <bruno@clisp.org>
49116
49117         Reduce number of forks required during autoconf.
49118         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
49119         and gl_LIBSOURCES_DIR.
49120         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
49121         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
49122         m4_syscmd per file.
49123         <m4_foreach_w>: Move...
49124         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
49125
49126 2008-05-13  Eric Blake  <ebb9@byu.net>
49127
49128         * gnulib-tool: Fix various comment typos.
49129
49130 2008-05-12  Bruno Haible  <bruno@clisp.org>
49131
49132         Tailor the linebreaking algorithm.
49133         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
49134
49135 2008-05-12  Bruno Haible  <bruno@clisp.org>
49136
49137         Update to Unicode 5.0.0.
49138         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
49139         LBP_JV, LBP_JT. Redistribute values.
49140         (unilbrk_table): Change size.
49141         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
49142         Unicode TR#14 rev. 22.
49143         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
49144         LBP_JV, LBP_JT. Redistribute values.
49145         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
49146         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
49147         Update.
49148         * lib/unilbrk/lbrkprop1.h: Regenerated.
49149         * lib/unilbrk/lbrkprop2.h: Regenerated.
49150         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
49151         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
49152         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
49153         Likewise.
49154         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
49155         Likewise.
49156         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
49157         result.
49158         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
49159         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
49160         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
49161         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
49162         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
49163         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
49164
49165 2008-05-11  Bruno Haible  <bruno@clisp.org>
49166
49167         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
49168
49169 2008-05-11  Bruno Haible  <bruno@clisp.org>
49170
49171         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
49172         * modules/unilbrk/gen-lbrk: New file.
49173
49174 2008-05-11  Bruno Haible  <bruno@clisp.org>
49175
49176         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
49177         * m4/sha512.m4 (gl_SHA512): Likewise.
49178
49179 2008-05-11  Jim Meyering  <meyering@redhat.com>
49180
49181         New modules: crypto/sha256, crypto/sha512 (from coreutils)
49182         * modules/crypto/sha256: New file.
49183         * modules/crypto/sha512: Likewise.
49184         * lib/sha256.c: Likewise.
49185         * lib/sha256.h: Likewise.
49186         * lib/sha512.c: Likewise.
49187         * lib/sha512.h: Likewise.
49188         * lib/u64.h: Likewise.
49189         * m4/sha256.m4: Likewise.
49190         * m4/sha512.m4: Likewise.
49191         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
49192
49193 2008-05-10  Bruno Haible  <bruno@clisp.org>
49194
49195         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
49196         (Input/Output <stdio.h>): Add xprintf.
49197         (Signal handling <signal.h>): Add strsignal.
49198         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
49199         (Core language properties): Add func.
49200         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
49201         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
49202         strings.
49203         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
49204         (Input/output): New section.
49205         (File system functions): Add openat-die, stat-macros.
49206         (Networking functions): Add sockets.
49207         (Unicode string functions): Add unictype/*.
49208         (Support for building libraries and executables): Add gperf.
49209         (Support for building documentation): Add agpl-3.0.
49210         (Misc): Add nocrash.
49211
49212 2008-05-10  Bruno Haible  <bruno@clisp.org>
49213
49214         * modules/unictype/gen-ctype: New file.
49215
49216 2008-05-10  Jim Meyering  <meyering@redhat.com>
49217
49218         Make chdir-safer.c more efficient on a system with no symlinks.
49219         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
49220         also if ELOOP is zero.  Suggested by Bruno Haible.
49221
49222         Make chdir-safer.c slightly safer.
49223         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
49224         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
49225
49226         Avoid compile failure on systems without ELOOP (like mingw).
49227         * lib/chdir-safer.c (ELOOP): Define if not already defined.
49228         Reported by Bruno Haible.
49229
49230 2008-05-10  Bruno Haible  <bruno@clisp.org>
49231
49232         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
49233         (is_utf8_encoding): Use a case-insensitive comparison.
49234         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
49235         streq.
49236
49237 2008-05-10  Bruno Haible  <bruno@clisp.org>
49238
49239         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
49240         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
49241         * lib/unilbrk/ulc-common.h (iconv_string_length,
49242         iconv_string_keeping_offsets): Remove declarations.
49243         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
49244         Don't include <iconv.h>, streq.h, xsize.h.
49245         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
49246         conversion.
49247         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
49248         <iconv.h>, streq.h, xsize.h.
49249         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
49250         conversion.
49251         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
49252         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
49253         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
49254         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
49255
49256 2008-05-10  Bruno Haible  <bruno@clisp.org>
49257
49258         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
49259         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
49260
49261         * modules/unilbrk/u32-width-linebreaks-tests: New file.
49262         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
49263
49264         * modules/unilbrk/u16-width-linebreaks-tests: New file.
49265         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
49266
49267         * modules/unilbrk/u8-width-linebreaks-tests: New file.
49268         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
49269
49270         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
49271         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
49272
49273         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
49274         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
49275
49276         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
49277         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
49278
49279         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
49280         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
49281
49282 2008-05-10  Bruno Haible  <bruno@clisp.org>
49283
49284         Split up 'linebreak' module.
49285         * lib/unilbrk.h: New file, based on lib/linebreak.h.
49286         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
49287         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
49288         modifications.
49289         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
49290         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
49291         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
49292         lib/linebreak.c.
49293         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
49294         lib/linebreak.c.
49295         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
49296         lib/linebreak.c.
49297         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
49298         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
49299         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
49300         lib/linebreak.c.
49301         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
49302         lib/linebreak.c.
49303         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
49304         lib/linebreak.c.
49305         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
49306         lib/linebreak.c.
49307         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
49308         lib/linebreak.c.
49309         * modules/unilbrk/base: New file.
49310         * modules/unilbrk/tables: New file.
49311         * modules/unilbrk/u8-possible-linebreaks: New file.
49312         * modules/unilbrk/u16-possible-linebreaks: New file.
49313         * modules/unilbrk/u32-possible-linebreaks: New file.
49314         * modules/unilbrk/ulc-common: New file.
49315         * modules/unilbrk/ulc-possible-linebreaks: New file.
49316         * modules/unilbrk/u8-width-linebreaks: New file.
49317         * modules/unilbrk/u16-width-linebreaks: New file.
49318         * modules/unilbrk/u32-width-linebreaks: New file.
49319         * modules/unilbrk/ulc-width-linebreaks: New file.
49320         * lib/linebreak.h: Remove file.
49321         * lib/linebreak.c: Remove file.
49322         * m4/linebreak.m4: Remove file.
49323         * modules/linebreak: Remove file.
49324         * NEWS: Mention the changes.
49325
49326 2008-05-09  Eric Blake  <ebb9@byu.net>
49327
49328         Add xmemdup0.
49329         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
49330         implementation.
49331         * lib/xmalloc.c (xmemdup0): New C implementation.
49332
49333 2008-05-08  Bruno Haible  <bruno@clisp.org>
49334
49335         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
49336
49337 2008-05-07  Eric Blake  <ebb9@byu.net>
49338
49339         Support cross-compilation of <wctype.h>.
49340         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
49341         AC_CACHE_CHECK.
49342
49343 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
49344
49345         * build-aux/vc-list-files: Add support for bzr.
49346
49347 2008-05-03  Jim Meyering  <meyering@redhat.com>
49348
49349         avoid failed assertion with tight malloc
49350         * tests/test-getndelim2.c: Correct an off-by-one assertion.
49351
49352 2008-05-03  Simon Josefsson  <simon@josefsson.org>
49353
49354         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
49355         are needed from arpa/inet.h.
49356         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
49357         Reported by Bruno Haible.
49358
49359 2008-05-02  Jim Meyering  <meyering@redhat.com>
49360
49361         avoid compilation error on FreeBSD 6
49362         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
49363
49364 2008-05-01  Jim Meyering  <meyering@redhat.com>
49365
49366         useless-if-before-free: correct --help's exit status description
49367         * build-aux/useless-if-before-free (usage): Like grep, exit 0
49368         for one or more matches, etc.  Reported by Bruno Haible.
49369
49370         vc-list-files: make the stand-alone gnulib test work
49371         * modules/vc-list-files-tests (configure.ac):
49372         Define and AC_SUBST abs_aux_dir.
49373         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
49374         $(abs_top_srcdir) to each script and having each of them
49375         duplicate the work of setting PATH, set PATH here, using
49376         the new variable, abs_aux_dir instead.
49377         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
49378         * tests/test-vc-list-files-git.sh: Likewise.
49379         Reported by Bruno Haible.
49380
49381 2008-05-01  Bruno Haible  <bruno@clisp.org>
49382
49383         * lib/getndelim2.c (getndelim2): Fix newsize computation during
49384         reallocation. Rename 'done' to 'found_delimiter'.
49385
49386 2008-05-01  Jim Meyering  <meyering@redhat.com>
49387
49388         vc-list-files: accommodate /bin/sh like the one from Solaris 10
49389         * build-aux/vc-list-files: Use `...`, not $(...).
49390
49391 2008-04-30  Jim Meyering  <meyering@redhat.com>
49392
49393         add tests for vc-list-files
49394         * modules/vc-list-files-tests: New module.
49395         * tests/test-vc-list-files-cvs.sh: New file.
49396         * tests/test-vc-list-files-git.sh: New file.
49397
49398         avoid a warning from gcc
49399         * lib/getndelim2.c (IF_LINT): Define.
49400         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
49401
49402         vc-list-files: work properly with build-aux/cvsu, too
49403         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
49404         to all cvs-based clauses.
49405
49406         vc-list-files: work properly in the CVS+awk case, too
49407         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
49408
49409         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
49410         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
49411         take more than one file argument, so .  Add quotes, just in case $dir
49412         ever contains a shell meta-character.  Prompted by Soren Hansen in
49413         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
49414
49415 2008-04-29  Eric Blake  <ebb9@byu.net>
49416
49417         Optimize getndelim2 to use block operations when possible.
49418         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
49419         freadseek, and memchr2.
49420         * lib/getndelim2.c (getndelim2): Use them for block reads.
49421
49422 2008-04-29  Bruno Haible  <bruno@clisp.org>
49423
49424         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
49425         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
49426         * modules/inet_ntop (Depends-on): Add extensions.
49427         * modules/inet_pton (Depends-on): Likewise.
49428         Reported by Simon Josefsson.
49429
49430 2008-04-29  Jim Meyering  <meyering@redhat.com>
49431
49432         When the is more than one match in a block, match all of them.
49433         * build-aux/useless-if-before-free: Iterate through each block
49434         until there are no more matches.
49435
49436         Fix broken useless-if-before-free script.
49437         * build-aux/useless-if-before-free: Fix typo: missing "?" after
49438         the expression to match cast of argument to free-like function.
49439
49440 2008-04-29  Eric Blake  <ebb9@byu.net>
49441
49442         Use new header.
49443         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
49444
49445 2008-04-29  Jim Meyering  <meyering@redhat.com>
49446
49447         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
49448         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
49449         by gnulib to exist and to declare e.g., inet_ntop.
49450         Don't include "inet_ntop.h", now removed.
49451
49452         * m4/arpa_inet_h.m4: Remove trailing blanks.
49453
49454 2008-04-29  Eric Blake  <ebb9@byu.net>
49455
49456         Silence valgrind on safe reads beyond potential array bounds.
49457         * lib/rawmemchr.valgrind: New file.
49458         * lib/strchrnul.valgrind: Likewise.
49459         * modules/rawmemchr (Files): Distribute new file.
49460         * modules/strchrnul (Files): Likewise.
49461         Suggested by Bruno Haible.
49462
49463 2008-04-29  Bruno Haible  <bruno@clisp.org>
49464
49465         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
49466         (inet_ntop, inet_pton): Change portability warning's wording.
49467         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
49468         Invoke gl_CHECK_NEXT_HEADERS.
49469         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
49470         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
49471         set ARPA_INET_H.
49472         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
49473         * modules/arpa_inet (Description): No longer only for systems that
49474         lack it.
49475         (Depends-on): Add include_next.
49476         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
49477         HAVE_ARPA_INET_H.
49478
49479 2008-04-29  Jim Meyering  <meyering@redhat.com>
49480
49481         * modules/mkdir (License): Re-license as LGPLv2+.
49482
49483 2008-04-29  Bruno Haible  <bruno@clisp.org>
49484
49485         * modules/rawmemchr (Maintainer): Set to Eric.
49486         * modules/strchrnul (Maintainer): Likewise.
49487
49488 2008-04-29  Simon Josefsson  <simon@josefsson.org>
49489
49490         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
49491         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
49492
49493         * modules/arpa_inet (arpa/inet.h): Use them.
49494
49495 2008-04-28  Eric Blake  <ebb9@byu.net>
49496
49497         Test getndelim2.
49498         * modules/getndelim2-tests: New file.
49499         * tests/test-getndelim2.c: Likewise.
49500         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
49501         stream.
49502         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
49503
49504         * MODULES.html.sh: Document new module.
49505
49506 2008-04-20  Bruno Haible  <bruno@clisp.org>
49507
49508         * lib/c-stack.c (die): Use raise.
49509         * modules/c-stack (Depends-on): Add raise.
49510
49511 2008-04-28  Bruno Haible  <bruno@clisp.org>
49512
49513         Expect rpmatch to be declared.
49514         * lib/yesno.c (rpmatch): Remove declaration.
49515
49516         Declare rpmatch.
49517         * lib/stdlib.in.h (rpmatch): New declaration.
49518         * lib/rpmatch.c: Include <stdlib.h> first.
49519         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
49520         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
49521         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
49522         HAVE_RPMATCH.
49523         * modules/rpmatch (Depends-on): Add stdlib, extensions.
49524         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
49525         (Include): Set to <stdlib.h>.
49526         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
49527         HAVE_RPMATCH.
49528         * NEWS: Document the change.
49529
49530 2008-04-28  Bruno Haible  <bruno@clisp.org>
49531
49532         Change rpmatch to use nl_langinfo when appropriate.
49533         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
49534         (N_): New macro.
49535         (localized_pattern): New function/macro.
49536         (try): Remove match, nomatch arguments. Copy the pattern into safe
49537         memory before caching it.
49538         (rpmatch): Use localized_pattern. Add translator comments.
49539         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
49540         Suggested by Eric Blake.
49541         * modules/rpmatch (Depends-on): Add stdbool.
49542
49543 2008-04-28  Eric Blake  <ebb9@byu.net>
49544
49545         Add rawmemchr module, matching glibc.
49546         * modules/string (Makefile.am): New indicator.
49547         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
49548         * lib/string.in.h (rawmemchr): Declare when appropriate.
49549         * modules/rawmemchr: New file.
49550         * m4/rawmemchr.m4: Likewise.
49551         * lib/rawmemchr.c: Likewise.
49552         * modules/rawmemchr-tests: Likewise.
49553         * tests/test-rawmemchr.c: Likewise.
49554         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
49555         module.
49556         * modules/strchrnul (Depends-on): Add rawmemchr.
49557         * lib/strchrnul.c (strchrnul): Optimize a corner case.
49558
49559         Whitespace cleanup.
49560         * tests/test-strchrnul.c: Reindent.
49561         * lib/strchrnul.c: Likewise.
49562
49563         Optimize and test strchrnul.
49564         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
49565         * modules/strchrnul-tests: New file.
49566         * tests/test-strchrnul.c: Likewise.
49567
49568         Remove intprops dependency.
49569         * modules/memchr (Depends-on): Remove intprops.
49570         * modules/memrchr (Depends-on): Likewise.
49571         * modules/memchr2 (Depends-on): Likewise.
49572         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
49573         * lib/memrchr.c (__memrchr): Likewise.
49574         * lib/memrchr2.c (memchr2): Likewise.
49575         Reported by Simon Josefsson.
49576
49577 2008-04-28  Simon Josefsson  <simon@josefsson.org>
49578
49579         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
49580         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
49581
49582 2008-04-28  Simon Josefsson  <simon@josefsson.org>
49583
49584         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
49585
49586         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
49587
49588         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
49589
49590         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
49591         declarations.
49592         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
49593
49594         * m4/inet_pton.m4: Don't check for header files.
49595
49596         * m4/inet_ntop.m4: Don't check for header files.
49597
49598 2008-04-28  Simon Josefsson  <simon@josefsson.org>
49599
49600         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
49601         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
49602         trigger for cygwin).
49603         Reported by Bruno Haible  <bruno@clisp.org>.
49604
49605 2008-04-28  Bruno Haible  <bruno@clisp.org>
49606
49607         * doc/posix-functions/strdup.texi: Mention mingw problem.
49608
49609 2008-04-27  Bruno Haible  <bruno@clisp.org>
49610
49611         * modules/stat-time-tests (Depends-on): Add sleep.
49612         * tests/test-stat-time.c (force_unlink): New function.
49613         (cleanup): Use it.
49614         (test_mtime): Remove the ctime related tests.
49615         (test_ctime): New function, containing the ctime related tests.
49616         (main): Call test_ctime, except on native Windows platforms.
49617
49618 2008-04-27  Bruno Haible  <bruno@clisp.org>
49619
49620         * lib/rpmatch.c (rpmatch): Add some comments.
49621         Reported by James Youngman <jay@gnu.org>.
49622
49623 2008-04-27  Bruno Haible  <bruno@clisp.org>
49624
49625         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
49626         quiet NaNs.
49627
49628 2008-04-27  Bruno Haible  <bruno@clisp.org>
49629
49630         Make test-yesno.sh work on mingw.
49631         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
49632         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
49633         (main): Set stdin to binary mode.
49634         * modules/yesno-tests (Depends-on): Add binary-io.
49635
49636 2008-04-27  Bruno Haible  <bruno@clisp.org>
49637
49638         Fix 'isfinite' on x86, x86_64, ia64 platforms.
49639         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
49640         argument that lie outside the IEEE 854 domain.
49641         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
49642         (gl_ISFINITE): Use it.
49643         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
49644
49645 2008-04-27  Bruno Haible  <bruno@clisp.org>
49646
49647         Allow local renaming in config.h.
49648         * lib/memrchr.c (memrchr): Don't undefine outside libc.
49649
49650 2008-04-27  Bruno Haible  <bruno@clisp.org>
49651
49652         * lib/memchr.c (__memchr): Change type of 'i'.
49653         * lib/memchr2.c (memchr2): Likewise.
49654
49655 2008-04-26  Eric Blake  <ebb9@byu.net>
49656         and Bruno Haible  <bruno@clisp.org>
49657
49658         Optimize and test memrchr.
49659         * modules/memrchr (Depends-on): Add intprops.
49660         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
49661         * modules/memrchr-tests: New file.
49662         * tests/test-memrchr.c: New file.
49663
49664 2008-04-26  Bruno Haible  <bruno@clisp.org>
49665
49666         Add tentative support for DragonFly BSD.
49667         * lib/stdio-impl.h: Add macros for DragonFly BSD.
49668         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
49669         fp.
49670         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
49671         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
49672         * lib/fpurge.c (fpurge): Likewise.
49673         * lib/freadable.c (freaadable): Likewise.
49674         * lib/freadahead.c (freadahead): Likewise.
49675         * lib/freading.c (freading): Likewise.
49676         * lib/freadptr.c (freadptr): Likewise.
49677         * lib/freadseek.c (freadptrinc): Likewise.
49678         * lib/fseeko.c (fseeko): Likewise.
49679         * lib/fseterr.c (fseterr): Likewise.
49680         * lib/fwritable.c (fwritable): Likewise.
49681         * lib/fwriting.c (fwriting): Likewise.
49682
49683 2008-04-26  Bruno Haible  <bruno@clisp.org>
49684
49685         * lib/stdio-impl.h: New file.
49686         * lib/fbufmode.c: Include stdio-impl.h.
49687         (fbufmode): Use fp_, remove redundant #defines.
49688         * lib/fflush.c: Include stdio-impl.h.
49689         (clear_ungetc_buffer): Remove redundant #defines.
49690         * lib/fpurge.c: Include stdio-impl.h.
49691         (fpurge): Remove redundant #defines.
49692         * lib/freadable.c: Include stdio-impl.h.
49693         (freadable): Remove redundant #defines.
49694         * lib/freadahead.c: Include stdio-impl.h.
49695         (freadahead): Remove redundant #defines.
49696         * lib/freading.c: Include stdio-impl.h.
49697         (freading): Remove redundant #defines.
49698         * lib/freadptr.c: Include stdio-impl.h.
49699         (freadptr): Remove redundant #defines.
49700         * lib/freadseek.c: Include stdio-impl.h.
49701         (freadptrinc): Remove redundant #defines.
49702         * lib/fseeko.c: Include stdio-impl.h.
49703         (rpl_fseeko): Remove redundant #defines.
49704         * lib/fseterr.c: Include stdio-impl.h.
49705         (fseterr): Remove redundant #defines.
49706         * lib/fwritable.c: Include stdio-impl.h.
49707         (fwritable: Remove redundant #defines.
49708         * lib/fwriting.c: Include stdio-impl.h.
49709         (fwriting): Remove redundant #defines.
49710         * modules/fbufmode (Files): Add lib/stdio-impl.h.
49711         * modules/fflush (Files): Likewise.
49712         * modules/fpurge (Files): Likewise.
49713         * modules/freadable (Files): Likewise.
49714         * modules/freadahead (Files): Likewise.
49715         * modules/freading (Files): Likewise.
49716         * modules/freadptr (Files): Likewise.
49717         * modules/freadseek (Files): Likewise.
49718         * modules/fseeko (Files): Likewise.
49719         * modules/fseterr (Files): Likewise.
49720         * modules/fwritable (Files): Likewise.
49721         * modules/fwriting (Files): Likewise.
49722
49723 2008-04-26  Bruno Haible  <bruno@clisp.org>
49724
49725         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
49726         restore_seek_optimization, update_fpos_cache): New functions, extracted
49727         from rpl_fflush.
49728         (rpl_fflush): Use them.
49729         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
49730         (gl_REPLACE_FFLUSH): Use it.
49731
49732 2008-04-26  Bruno Haible  <bruno@clisp.org>
49733
49734         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
49735         on Solaris.
49736         * tests/test-xstrtoimax.sh: Likewise.
49737         * tests/test-xstrtoumax.sh: Likewise.
49738         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
49739
49740 2008-04-26  Bruno Haible  <bruno@clisp.org>
49741
49742         * modules/memchr-tests: New file.
49743         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
49744
49745 2008-04-26  Eric Blake  <ebb9@byu.net>
49746             Bruno Haible  <bruno@clisp.org>
49747
49748         * lib/memchr.c: Include intprops.h.
49749         (__memchr): Optimize parallel detection of matching bytes. Rename local
49750         variables. Add explanatory comments.
49751
49752 2008-04-26  Bruno Haible  <bruno@clisp.org>
49753
49754         Fix module 'memchr', broken since 2000-10-28.
49755         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
49756
49757 2008-04-26  Bruno Haible  <bruno@clisp.org>
49758
49759         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
49760         comments.
49761
49762 2008-04-25  Eric Blake  <ebb9@byu.net>
49763
49764         Use native fstatat on cygwin 1.7.0.
49765         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
49766         first.
49767
49768 2008-04-23  Eric Blake  <ebb9@byu.net>
49769
49770         Improve memchr2 performance.
49771         * lib/memchr2.c (memchr2): Further optimize parallel detection of
49772         NUL bytes.
49773         * modules/memchr2 (Depends-on): Use intprops.h.
49774
49775 2008-04-23  Simon Josefsson  <simon@josefsson.org>
49776
49777         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
49778         an inline function instead of a CPP macro.  Patch by Ben Pfaff
49779         <blp@cs.stanford.edu>.
49780
49781 2008-04-23  Simon Josefsson  <simon@josefsson.org>
49782
49783         * lib/arpa_inet.in.h: New file.
49784
49785         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
49786         (Makefile.am): Sed in substitute header file.
49787
49788         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
49789         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
49790
49791         * modules/inet_ntop (configure.ac): Use
49792         gl_ARPA_INET_MODULE_INDICATOR.
49793
49794         * modules/inet_pton (configure.ac): Use
49795         gl_ARPA_INET_MODULE_INDICATOR.
49796
49797 2008-04-22  Jim Meyering  <meyering@redhat.com>
49798
49799         * modules/verify (License): Re-license as LGPLv2+.
49800
49801 2008-04-22  Simon Josefsson  <simon@josefsson.org>
49802
49803         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
49804         parameter to void* as per POSIX standard (MinGW uses char*).
49805
49806 2008-04-21  Bruno Haible  <bruno@clisp.org>
49807
49808         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
49809         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
49810         Define to replacements if REPLACE_ISWCNTRL is 1.
49811         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
49812         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
49813         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
49814         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
49815         what it fixes.
49816         * doc/posix-functions/iswalpha.texi: Likewise.
49817         * doc/posix-functions/iswblank.texi: Likewise.
49818         * doc/posix-functions/iswcntrl.texi: Likewise.
49819         * doc/posix-functions/iswdigit.texi: Likewise.
49820         * doc/posix-functions/iswgraph.texi: Likewise.
49821         * doc/posix-functions/iswlower.texi: Likewise.
49822         * doc/posix-functions/iswprint.texi: Likewise.
49823         * doc/posix-functions/iswpunct.texi: Likewise.
49824         * doc/posix-functions/iswspace.texi: Likewise.
49825         * doc/posix-functions/iswupper.texi: Likewise.
49826         * doc/posix-functions/iswxdigit.texi: Likewise.
49827         Reported by Alain Guibert.
49828
49829 2008-04-21  Bruno Haible  <bruno@clisp.org>
49830
49831         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
49832         Patch by Alain Guibert.
49833
49834 2008-04-21  Bruno Haible  <bruno@clisp.org>
49835
49836         Fix test failures on mingw.
49837         * tests/test-xstrtol.c (print_no_progname): New function.
49838         (main): Install it in error_print_progname hook.
49839         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
49840         * tests/test-xstrtoimax.sh: Likewise.
49841         * tests/test-xstrtoumax.sh: Likewise.
49842
49843 2008-04-21  Bruno Haible  <bruno@clisp.org>
49844
49845         Fix test failure on mingw.
49846         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
49847
49848 2008-04-21  Bruno Haible  <bruno@clisp.org>
49849
49850         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
49851         Actually assign a value.
49852
49853 2008-04-20  Bruno Haible  <bruno@clisp.org>
49854
49855         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
49856         take 2.
49857         * lib/canonicalize.c (canonicalize_file_name): Elide if the
49858         'canonicalize-lgpl' module is also used.
49859         * lib/canonicalize-lgpl.c: Undo last change.
49860         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
49861
49862 2008-04-20  Bruno Haible  <bruno@clisp.org>
49863
49864         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
49865         config.h. Provide _mkdir based fallback for mingw.
49866         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
49867         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
49868         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
49869         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
49870         rather than defining mkdir in config.h.
49871         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
49872         (gl_SYS_STAT_H_DEFAULTS): New macro.
49873         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
49874         HAVE_IO_H any more.
49875         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
49876         HAVE_DECL_MKDIR and HAVE_IO_H.
49877
49878 2008-04-20  Bruno Haible  <bruno@clisp.org>
49879
49880         * lib/isapipe.c: Port to native Windows platforms.
49881
49882 2008-04-20  Bruno Haible  <bruno@clisp.org>
49883
49884         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
49885
49886 2008-04-21  Eric Blake  <ebb9@byu.net>
49887
49888         Work around preprocessors that don't handle UINTMAX_MAX.
49889         * lib/memchr2.c (memchr2): Avoid embedded #if.
49890         Reported by Alain Guibert, fix suggested by Bruno Haible.
49891
49892 2008-04-21  Simon Josefsson  <simon@josefsson.org>
49893
49894         * doc/posix-functions/strftime.texi (strftime): Explain better
49895         Windows incompatibility.  Suggested by Micah Cowan
49896         <micah@cowan.name>.
49897
49898 2008-04-20  Bruno Haible  <bruno@clisp.org>
49899
49900         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
49901         unistr/u8-mblen.
49902
49903 2008-04-20  Bruno Haible  <bruno@clisp.org>
49904
49905         Fix test failure on platforms with non-GNU iconv.
49906         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
49907         (U_TO_U8): Use it, rather than u16_to_u8.
49908         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
49909         units at the end of the input string.
49910         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
49911
49912 2008-04-20  Bruno Haible  <bruno@clisp.org>
49913
49914         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
49915         when the resulting length is 0.
49916         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
49917
49918 2008-04-20  Bruno Haible  <bruno@clisp.org>
49919
49920         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
49921         works.
49922         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
49923
49924 2008-04-20  Bruno Haible  <bruno@clisp.org>
49925
49926         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
49927         * modules/tsearch-tests (configure.ac): Test for initstate function.
49928
49929 2008-04-20  Bruno Haible  <bruno@clisp.org>
49930
49931         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
49932         for nlink_t if missing.
49933         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
49934
49935 2008-04-19  Bruno Haible  <bruno@clisp.org>
49936
49937         Work around snprintf bug on Linux libc5.
49938         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
49939         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
49940         gl_SNPRINTF_SIZE1.
49941         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
49942         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
49943         that test failed.
49944         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
49945         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
49946         * modules/snprintf (Files): Add m4/printf.m4.
49947         * modules/vsnprintf (Files): Likewise.
49948         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
49949         * doc/posix-functions/vsnprintf.texi: Likewise.
49950
49951 2008-04-19  Bruno Haible  <bruno@clisp.org>
49952
49953         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
49954         from 0.0058 to less than 10^-7.
49955
49956 2008-04-19  Bruno Haible  <bruno@clisp.org>
49957
49958         Fix rounding when a precision is given.
49959         * lib/vasnprintf.c (is_borderline): New function.
49960         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
49961         9...9x.
49962         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
49963         %e, %g.
49964         * tests/test-vasprintf-posix.c (test_function): Likewise.
49965         * tests/test-snprintf-posix.h (test_function): Likewise.
49966         * tests/test-sprintf-posix.h (test_function): Likewise.
49967         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
49968         * tests/test-printf-posix.h (test_function): Likewise.
49969         * tests/test-printf-posix.output: Update.
49970         Reported by John Darrington <john@darrington.wattle.id.au> via
49971         Ben Pfaff <blp@cs.stanford.edu>.
49972
49973 2008-04-18  Simon Josefsson  <simon@josefsson.org>
49974
49975         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
49976         Suggested by Bruno Haible <bruno@clisp.org>.
49977
49978 2008-04-17  Bruno Haible  <bruno@clisp.org>
49979
49980         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
49981         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
49982         implementation.
49983         Patch by Bruce Merry <bmerry@gmail.com>.
49984
49985 2008-04-17  Simon Josefsson  <simon@josefsson.org>
49986
49987         * doc/posix-functions/strftime.texi (strftime): Mention that %e
49988         doesn't work under Windows.
49989
49990 2008-04-16  Bruno Haible  <bruno@clisp.org>
49991
49992         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
49993         New macros.
49994         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
49995         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
49996         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
49997         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
49998         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
49999         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
50000         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
50001         macros.
50002         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
50003         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
50004         Northern Sotho, Uighur.
50005
50006 2008-04-16  Bruno Haible  <bruno@clisp.org>
50007
50008         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
50009         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
50010         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
50011         Reported by Daniel Bergström <daniel@octocode.com>.
50012
50013 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
50014             Bruno Haible  <bruno@clisp.org>
50015
50016         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
50017         function.
50018         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
50019         New functions, mostly extracted from gl_locale_name_default.
50020         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
50021
50022 2008-04-16  Eric Blake  <ebb9@byu.net>
50023
50024         Adjust strtod detection to catch glibc 2.7 bug.
50025         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
50026         Reported by John Gatewood Ham.
50027
50028 2008-04-16  Bruno Haible  <bruno@clisp.org>
50029
50030         Add tentative support for Linux libc5.
50031         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
50032         * lib/fpurge.c (fpurge): Likewise.
50033         * lib/freadable.c (freadable): Likewise.
50034         * lib/freadahead.c (freadahead): Likewise.
50035         * lib/freading.c (freading): Likewise.
50036         * lib/freadptr.c (freadptr): Likewise.
50037         * lib/freadseek.c (freadptrinc): Likewise.
50038         * lib/fseeko.c (rpl_fseeko): Likewise.
50039         * lib/fseterr.c (fseterr): Likewise.
50040         * lib/fwritable.c (fwritable): Likewise.
50041         * lib/fwriting.c (fwriting): Likewise.
50042         Reported by Alain Guibert <alguibert+bts@free.fr>.
50043
50044 2008-04-15  Bruno Haible  <bruno@clisp.org>
50045
50046         * modules/mathl (configure.ac): Define module indicator.
50047
50048 2008-04-15  Bruno Haible  <bruno@clisp.org>
50049
50050         * lib/logl.c (logl): Remove unused variables.
50051
50052 2008-04-15  Bruno Haible  <bruno@clisp.org>
50053
50054         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
50055         fails.
50056
50057 2008-04-15  Bruno Haible  <bruno@clisp.org>
50058
50059         * lib/trim.c (trim2): Fix argument of isspace() macro.
50060
50061 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
50062
50063         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
50064         to 0.
50065         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
50066
50067 2008-04-14  Bruno Haible  <bruno@clisp.org>
50068
50069         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
50070         AC_LANG_PROGRAM argument.
50071         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
50072         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
50073         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
50074         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
50075         * m4/math_h.m4 (gl_MATH_H): Likewise.
50076         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
50077         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
50078         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
50079         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
50080         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
50081         * m4/regex.m4 (gl_REGEX): Likewise.
50082         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
50083         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
50084         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
50085         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
50086         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
50087         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
50088         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
50089         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
50090
50091 2008-04-14  Jim Meyering  <meyering@redhat.com>
50092
50093         test-strtod: fix typos: s/abs/fabs/
50094         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
50095
50096 2008-04-13  Bruno Haible  <bruno@clisp.org>
50097
50098         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
50099         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
50100         module is also used and while not building the reloc-wrapper.
50101
50102 2008-04-13  Bruno Haible  <bruno@clisp.org>
50103
50104         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
50105
50106 2008-04-13  Bruno Haible  <bruno@clisp.org>
50107
50108         Fix AIX compilation failure introduced on 2008-04-02.
50109         * tests/test-frexp.c (exp): Undefine before redefining.
50110         * tests/test-frexpl.c (exp): Likewise.
50111
50112 2008-04-13  Bruno Haible  <bruno@clisp.org>
50113
50114         Work around a HP-UX stdio bug.
50115         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
50116         * tests/test-ftello.c (main): Likewise.
50117         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
50118         * doc/posix-functions/ftello.texi: Likewise.
50119
50120 2008-04-13  Bruno Haible  <bruno@clisp.org>
50121
50122         Make test-signbit pass on HP-UX/hppa.
50123         * tests/test-signbit.c (minus_zerol): New variable.
50124         (test_signbitl): Use it.
50125
50126 2008-04-13  Bruno Haible  <bruno@clisp.org>
50127
50128         Make truncl work on OSF/1 4.0.
50129         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
50130         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
50131         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
50132         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
50133         HAVE_DECL_TRUNCL.
50134         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
50135         HAVE_DECL_TRUNCL.
50136         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
50137
50138 2008-04-13  Bruno Haible  <bruno@clisp.org>
50139
50140         * lib/unictype.h: Remove trailing comma from enumeration definitions.
50141
50142 2008-04-13  Bruno Haible  <bruno@clisp.org>
50143
50144         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
50145         expression, so as to avoid HP-UX 11 cc compiler bug.
50146
50147 2008-04-13  Bruno Haible  <bruno@clisp.org>
50148
50149         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
50150
50151 2008-04-13  Bruno Haible  <bruno@clisp.org>
50152
50153         * lib/git-merge-changelog.c: Remove empty declaration outside of
50154         functions.
50155
50156 2008-04-13  Bruno Haible  <bruno@clisp.org>
50157
50158         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
50159
50160 2008-04-13  Bruno Haible  <bruno@clisp.org>
50161
50162         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
50163         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
50164         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
50165         also if it exists but lacks definitions of the SHUT_* macros.
50166         * modules/sys_socket (Description): Update.
50167         Reported by Elbert Pol <e.pol@chello.nl>.
50168
50169 2008-04-13  Bruno Haible  <bruno@clisp.org>
50170
50171         * lib/localcharset.c (OS2): Don't redefine if already defined.
50172         Reported by Elbert Pol <e.pol@chello.nl>.
50173
50174 2008-04-13  Bruno Haible  <bruno@clisp.org>
50175
50176         * lib/binary-io.h [__EMX__]: Include <io.h>.
50177         Reported by Elbert Pol <e.pol@chello.nl>.
50178
50179 2008-04-12  Bruno Haible  <bruno@clisp.org>
50180
50181         * lib/fpucw.h: Enable the definitions also for x86_64.
50182         Needed for NetBSD/x86_64.
50183         Reported by Thomas Klausner <tk@giga.or.at>.
50184
50185 2008-04-12  Bruno Haible  <bruno@clisp.org>
50186
50187         * tests/test-strtod.c: Include isnand.h.
50188         (main): Use isnand instead of isnan.
50189         Reported by Jim Meyering.
50190
50191 2008-04-12  Bruno Haible  <bruno@clisp.org>
50192
50193         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
50194         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
50195
50196 2008-04-12  Jim Meyering  <meyering@redhat.com>
50197
50198         * m4/math_h.m4 (gl_MATH_H): Fix typos.
50199
50200 2008-04-12  Bruno Haible  <bruno@clisp.org>
50201
50202         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
50203         Reported by Elbert Pol <e.pol@chello.nl>.
50204
50205 2008-04-12  Eric Blake  <ebb9@byu.net>
50206
50207         Work around Solaris 10 math.h bug.
50208         * m4/math_h.m4 (gl_MATH_H): Check for bug.
50209         (gl_MATH_H_DEFAULTS): Set up default.
50210         * modules/math (Makefile.am): Replace new indicators.
50211         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
50212         * tests/test-math.c (main): Test this.
50213         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
50214         * doc/posix-headers/math.texi (math.h): Mention bug.
50215         Reported by Nelson H. F. Beebe and Jim Meyering.
50216
50217 2008-04-11  Bruno Haible  <bruno@clisp.org>
50218
50219         Adapt to future versions of Apple GCC.
50220         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
50221         Reported by Peter O'Gorman <peter@pogma.com>.
50222
50223 2008-04-11  Bruno Haible  <bruno@clisp.org>
50224
50225         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
50226
50227 2008-04-11  Bruno Haible  <bruno@clisp.org>
50228
50229         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
50230
50231         * modules/getaddrinfo-tests (Makefile.am): Define
50232         test_getaddrinfo_LDADD.
50233
50234 2008-04-11  Bruno Haible  <bruno@clisp.org>
50235
50236         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
50237         (init): Fix syntax error.
50238         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
50239         is declared.
50240
50241 2008-04-11  Bruno Haible  <bruno@clisp.org>
50242
50243         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
50244         * modules/glob (Depends-on): Add stdbool.
50245
50246 2008-04-11  Bruno Haible  <bruno@clisp.org>
50247
50248         * lib/trim.c: Include <string.h>.
50249
50250 2008-04-11  Eric Blake  <ebb9@byu.net>
50251
50252         Avoid compile failure on OS/2.
50253         * lib/regex_internal.h (internal_function): Disable optimization
50254         on OS/2 (__EMX__), where it caused compiler error.
50255         Reported by Elbert Pol.
50256
50257 2008-04-11  Bruno Haible  <bruno@clisp.org>
50258
50259         Flush the standard error stream before aborting. Needed on mingw.
50260         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
50261         * tests/test-array_list.c (ASSERT): Likewise.
50262         * tests/test-array_oset.c (ASSERT): Likewise.
50263         * tests/test-avltree_list.c (ASSERT): Likewise.
50264         * tests/test-avltree_oset.c (ASSERT): Likewise.
50265         * tests/test-avltreehash_list.c (ASSERT): Likewise.
50266         * tests/test-binary-io.c (ASSERT): Likewise.
50267         * tests/test-byteswap.c (ASSERT): Likewise.
50268         * tests/test-c-ctype.c (ASSERT): Likewise.
50269         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
50270         * tests/test-c-strcasestr.c (ASSERT): Likewise.
50271         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
50272         * tests/test-c-strstr.c (ASSERT): Likewise.
50273         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
50274         * tests/test-canonicalize.c (ASSERT): Likewise.
50275         * tests/test-carray_list.c (ASSERT): Likewise.
50276         * tests/test-ceilf1.c (ASSERT): Likewise.
50277         * tests/test-ceilf2.c (ASSERT): Likewise.
50278         * tests/test-ceill.c (ASSERT): Likewise.
50279         * tests/test-count-one-bits.c (ASSERT): Likewise.
50280         * tests/test-fbufmode.c (ASSERT): Likewise.
50281         * tests/test-fflush2.c (ASSERT): Likewise.
50282         * tests/test-floorf1.c (ASSERT): Likewise.
50283         * tests/test-floorf2.c (ASSERT): Likewise.
50284         * tests/test-floorl.c (ASSERT): Likewise.
50285         * tests/test-fopen.c (ASSERT): Likewise.
50286         * tests/test-fpending.c (ASSERT): Likewise.
50287         * tests/test-fprintf-posix.c (ASSERT): Likewise.
50288         * tests/test-fpurge.c (ASSERT): Likewise.
50289         * tests/test-freadable.c (ASSERT): Likewise.
50290         * tests/test-freadahead.c (ASSERT): Likewise.
50291         * tests/test-freading.c (ASSERT): Likewise.
50292         * tests/test-freadptr.c (ASSERT): Likewise.
50293         * tests/test-freadptr2.c (ASSERT): Likewise.
50294         * tests/test-freadseek.c (ASSERT): Likewise.
50295         * tests/test-freopen.c (ASSERT): Likewise.
50296         * tests/test-frexp.c (ASSERT): Likewise.
50297         * tests/test-frexpl.c (ASSERT): Likewise.
50298         * tests/test-fseek.c (ASSERT): Likewise.
50299         * tests/test-fseeko.c (ASSERT): Likewise.
50300         * tests/test-fstrcmp.c (ASSERT): Likewise.
50301         * tests/test-ftell.c (ASSERT): Likewise.
50302         * tests/test-ftello.c (ASSERT): Likewise.
50303         * tests/test-func.c (ASSERT): Likewise.
50304         * tests/test-fwritable.c (ASSERT): Likewise.
50305         * tests/test-fwriting.c (ASSERT): Likewise.
50306         * tests/test-getdelim.c (ASSERT): Likewise.
50307         * tests/test-getline.c (ASSERT): Likewise.
50308         * tests/test-i-ring.c (ASSERT): Likewise.
50309         * tests/test-iconv-utf.c (ASSERT): Likewise.
50310         * tests/test-iconv.c (ASSERT): Likewise.
50311         * tests/test-isfinite.c (ASSERT): Likewise.
50312         * tests/test-isnand.c (ASSERT): Likewise.
50313         * tests/test-isnanf.c (ASSERT): Likewise.
50314         * tests/test-isnanl.h (ASSERT): Likewise.
50315         * tests/test-ldexpl.c (ASSERT): Likewise.
50316         * tests/test-linked_list.c (ASSERT): Likewise.
50317         * tests/test-linkedhash_list.c (ASSERT): Likewise.
50318         * tests/test-localename.c (ASSERT): Likewise.
50319         * tests/test-lseek.c (ASSERT): Likewise.
50320         * tests/test-mbscasecmp.c (ASSERT): Likewise.
50321         * tests/test-mbscasestr1.c (ASSERT): Likewise.
50322         * tests/test-mbscasestr2.c (ASSERT): Likewise.
50323         * tests/test-mbscasestr3.c (ASSERT): Likewise.
50324         * tests/test-mbscasestr4.c (ASSERT): Likewise.
50325         * tests/test-mbschr.c (ASSERT): Likewise.
50326         * tests/test-mbscspn.c (ASSERT): Likewise.
50327         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
50328         * tests/test-mbspbrk.c (ASSERT): Likewise.
50329         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
50330         * tests/test-mbsrchr.c (ASSERT): Likewise.
50331         * tests/test-mbsspn.c (ASSERT): Likewise.
50332         * tests/test-mbsstr1.c (ASSERT): Likewise.
50333         * tests/test-mbsstr2.c (ASSERT): Likewise.
50334         * tests/test-mbsstr3.c (ASSERT): Likewise.
50335         * tests/test-memchr2.c (ASSERT): Likewise.
50336         * tests/test-memmem.c (ASSERT): Likewise.
50337         * tests/test-open.c (ASSERT): Likewise.
50338         * tests/test-printf-frexp.c (ASSERT): Likewise.
50339         * tests/test-printf-frexpl.c (ASSERT): Likewise.
50340         * tests/test-printf-posix.c (ASSERT): Likewise.
50341         * tests/test-quotearg.c (ASSERT): Likewise.
50342         * tests/test-rbtree_list.c (ASSERT): Likewise.
50343         * tests/test-rbtree_oset.c (ASSERT): Likewise.
50344         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
50345         * tests/test-round1.c (ASSERT): Likewise.
50346         * tests/test-roundf1.c (ASSERT): Likewise.
50347         * tests/test-roundl.c (ASSERT): Likewise.
50348         * tests/test-signbit.c (ASSERT): Likewise.
50349         * tests/test-sleep.c (ASSERT): Likewise.
50350         * tests/test-snprintf-posix.c (ASSERT): Likewise.
50351         * tests/test-snprintf.c (ASSERT): Likewise.
50352         * tests/test-sprintf-posix.c (ASSERT): Likewise.
50353         * tests/test-stat-time.c (ASSERT): Likewise.
50354         * tests/test-strcasestr.c (ASSERT): Likewise.
50355         * tests/test-strerror.c (ASSERT): Likewise.
50356         * tests/test-striconv.c (ASSERT): Likewise.
50357         * tests/test-striconveh.c (ASSERT): Likewise.
50358         * tests/test-striconveha.c (ASSERT): Likewise.
50359         * tests/test-strsignal.c (ASSERT): Likewise.
50360         * tests/test-strstr.c (ASSERT): Likewise.
50361         * tests/test-strtod.c (ASSERT): Likewise.
50362         * tests/test-trunc1.c (ASSERT): Likewise.
50363         * tests/test-trunc2.c (ASSERT): Likewise.
50364         * tests/test-truncf1.c (ASSERT): Likewise.
50365         * tests/test-truncf2.c (ASSERT): Likewise.
50366         * tests/test-truncl.c (ASSERT): Likewise.
50367         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
50368         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
50369         * tests/test-vasnprintf.c (ASSERT): Likewise.
50370         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
50371         * tests/test-vasprintf.c (ASSERT): Likewise.
50372         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
50373         * tests/test-vprintf-posix.c (ASSERT): Likewise.
50374         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
50375         * tests/test-vsnprintf.c (ASSERT): Likewise.
50376         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
50377         * tests/test-wcwidth.c (ASSERT): Likewise.
50378         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
50379         * tests/test-xprintf-posix.c (ASSERT): Likewise.
50380         * tests/test-xvasprintf.c (ASSERT): Likewise.
50381         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
50382         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
50383         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
50384         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
50385         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
50386         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
50387         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
50388         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
50389         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
50390         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
50391         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
50392         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
50393         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
50394         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
50395         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
50396         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
50397         * tests/unictype/test-block_list.c (ASSERT): Likewise.
50398         * tests/unictype/test-block_of.c (ASSERT): Likewise.
50399         * tests/unictype/test-block_test.c (ASSERT): Likewise.
50400         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
50401         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
50402         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
50403         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
50404         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
50405         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
50406         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
50407         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
50408         * tests/unictype/test-combining.c (ASSERT): Likewise.
50409         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
50410         * tests/unictype/test-digit.c (ASSERT): Likewise.
50411         * tests/unictype/test-mirror.c (ASSERT): Likewise.
50412         * tests/unictype/test-numeric.c (ASSERT): Likewise.
50413         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
50414         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
50415         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
50416         * tests/unictype/test-scripts.c (ASSERT): Likewise.
50417         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
50418         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
50419         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
50420         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
50421         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
50422         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
50423         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
50424         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
50425         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
50426         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
50427         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
50428         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
50429         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
50430         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
50431         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
50432         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
50433         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
50434         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
50435         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
50436         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
50437         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
50438         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
50439         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
50440         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
50441         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
50442         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
50443         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
50444         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
50445         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
50446         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
50447         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
50448         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
50449         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
50450         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
50451         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
50452         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
50453         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
50454         Reported by Eric Blake.
50455
50456 2008-04-11  Bruno Haible  <bruno@clisp.org>
50457
50458         * lib/wchar.in.h: Tweak comment.
50459
50460 2008-04-11  Bruno Haible  <bruno@clisp.org>
50461
50462         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
50463         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
50464         gl_COMMON.
50465         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
50466
50467 2008-04-11  Bruno Haible  <bruno@clisp.org>
50468
50469         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
50470
50471 2008-04-11  Simon Josefsson  <simon@josefsson.org>
50472
50473         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
50474         of attempting to use non-existing /dev/*random.  Based on patch
50475         from Adam Strzelecki <ono@java.pl> in
50476         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
50477
50478 2008-04-08  Bruno Haible  <bruno@clisp.org>
50479
50480         Add tentative support for emx+gcc.
50481         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
50482         * lib/fpurge.c (fpurge): Likewise.
50483         * lib/freadable.c (freadable): Likewise.
50484         * lib/freadahead.c (freadahead): Likewise.
50485         * lib/freading.c (freading): Likewise.
50486         * lib/freadptr.c (freadptr): Likewise.
50487         * lib/freadseek.c (freadptrinc): Likewise.
50488         * lib/fseeko.c (rpl_fseeko): Likewise.
50489         * lib/fseterr.c (fseterr): Likewise.
50490         * lib/fwritable.c (fwritable): Likewise.
50491         * lib/fwriting.c (fwriting): Likewise.
50492         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
50493
50494 2008-04-09  Eric Blake  <ebb9@byu.net>
50495
50496         Avoid some autoconf warnings.
50497         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
50498         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
50499         * m4/afs.m4 (gl_AFS): Likewise.
50500         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
50501         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
50502         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
50503         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
50504         (gl_INTEGER_TYPE_SUFFIX): Likewise.
50505         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
50506         (AC_CHECK_DECLS_ONCE): Likewise.
50507         Rename file...
50508         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
50509         gnulib-tool requires autoconf 2.59 or better.
50510         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
50511
50512 2008-04-08  Eric Blake  <ebb9@byu.net>
50513
50514         Use 'git describe --match' if present (added in git 1.5.5).
50515         * build-aux/git-version-gen: Limit result to tags that match 'v*'
50516         if possible.
50517
50518 2008-04-08  Bruno Haible  <bruno@clisp.org>
50519
50520         Add tentative support for OpenServer.
50521         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
50522         _ptr, _cnt.
50523         * lib/fpurge.c (fpurge): Likewise.
50524         * lib/freadable.c (freadable): Likewise.
50525         * lib/freadahead.c (freadahead): Likewise.
50526         * lib/freading.c (freading): Likewise.
50527         * lib/freadptr.c (freadptr): Likewise.
50528         * lib/freadseek.c (freadptrinc): Likewise.
50529         * lib/fseeko.c (rpl_fseeko): Likewise.
50530         * lib/fseterr.c (fseterr): Likewise.
50531         * lib/fwritable.c (fwritable): Likewise.
50532         * lib/fwriting.c (fwriting): Likewise.
50533         Reported by Roger Cornelius <rac@tenzing.org> and
50534         Brian K. White <brian@aljex.com>.
50535
50536 2008-04-06  Jim Meyering  <meyering@redhat.com>
50537
50538         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
50539
50540 2008-04-06  Bruno Haible  <bruno@clisp.org>
50541
50542         Avoid possible error with non-ASCII bytes in UTF-8 locales.
50543         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
50544         * tests/test-printf-posix.sh: Likewise.
50545         * tests/test-vfprintf-posix.sh: Likewise.
50546         * tests/test-vprintf-posix.sh: Likewise.
50547         * tests/test-xprintf-posix.sh: Likewise.
50548
50549 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50550
50551         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
50552         hide error from 'ls', needed on OS/2.
50553         Report by Elbert Pol <elbert.pol@gmail.com>.
50554
50555 2008-04-04  Eric Blake  <ebb9@byu.net>
50556
50557         Make test-fseeko.c failures meaningful.
50558         * tests/test-fseeko.c: Print line number on failure.
50559         * tests/test-fseek.c: Likewise.
50560         Reported by Nelson H. F. Beebe.
50561
50562         Improve strtod bug detection check.
50563         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
50564         required for Solaris 10.
50565         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
50566
50567 2008-04-04  Bruno Haible  <bruno@clisp.org>
50568
50569         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
50570         by m4/setenv.m4.
50571
50572 2008-04-03  Eric Blake  <ebb9@byu.net>
50573
50574         Ensure sane .version contents.
50575         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
50576         version string.
50577         * build-aux/git-version-gen: Improve documentation.
50578
50579         Make GNU make output nicer.
50580         * top/GNUmakefile [!_have-Makefile]: Add dependency on
50581         MAKECMDGOALS to enforce message for all command line targets.  Set
50582         srcdir for use in maint.mk.
50583
50584         Another maintainer tweak.
50585         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
50586         a target that regenerates version.
50587
50588 2008-04-03  Jim Meyering  <meyering@redhat.com>
50589
50590         vc-list-files: don't cause coreutils "make po-check" failure
50591         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
50592
50593 2008-04-03  Eric Blake  <ebb9@byu.net>
50594
50595         Allow VPATH usage of vc-list-files.
50596         * build-aux/vc-list-files (scriptversion): Add timestamp.
50597         (options): Add --help, --version, -C.
50598         (CVS): Support installed cvsu.
50599
50600 2008-04-02  Bruno Haible  <bruno@clisp.org>
50601
50602         Avoid some "statement with no effect" warnings from gcc.
50603         * tests/test-wctype.c (main): Explicitly ignore unused values.
50604         Reported by Jim Meyering.
50605
50606 2008-04-02  Jim Meyering  <meyering@redhat.com>
50607
50608         Avoid some warnings from "gcc -Wshadow".
50609         * tests/test-frexp.c (exp): Define to a different identifier.
50610         * tests/test-frexpl.c (exp): Likewise.
50611
50612 2008-04-03  Jim Meyering  <meyering@redhat.com>
50613
50614         bootstrap: remove dangling *.[ch] symlinks from lib
50615         * build-aux/bootstrap [dangling symlink removal]: Move find's
50616         -depth option to precede all others, to avoid a warning.
50617         Remove *.[ch] files too, and from "$source_base" (usually lib/).
50618
50619 2008-04-02  Bruno Haible  <bruno@clisp.org>
50620
50621         Avoid some warnings from "gcc -Wshadow".
50622         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
50623         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
50624         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
50625         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
50626         Reported by Jim Meyering.
50627
50628 2008-04-01  Bruno Haible  <bruno@clisp.org>
50629
50630         Fix test to work on IRIX 6.5 with cc.
50631         * tests/test-math.c (numeric_equal): New function.
50632         (main): Use it.
50633
50634 2008-04-01  Bruno Haible  <bruno@clisp.org>
50635
50636         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
50637
50638 2008-04-01  Bruno Haible  <bruno@clisp.org>
50639
50640         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
50641         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
50642         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
50643         (Depends-on): Remove math.
50644
50645         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
50646         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
50647         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
50648         (Depends-on): Remove math.
50649
50650         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
50651         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
50652         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
50653         (Depends-on): Remove math.
50654         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
50655         (Depends-on): Remove math.
50656
50657         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
50658         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
50659         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
50660         (Depends-on): Remove math.
50661         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
50662         (Depends-on): Remove math.
50663
50664         * tests/test-round1.c: Include nan.h.
50665         (main): Use NaNd instead of NAN.
50666         * modules/round-tests (Files): Add tests/nan.h.
50667
50668         * tests/test-trunc1.c: Include nan.h.
50669         (main): Use NaNd instead of NAN.
50670         * modules/trunc-tests (Files): Add tests/nan.h.
50671
50672         * tests/test-roundf1.c: Include nan.h.
50673         (main): Use NaNf instead of NAN.
50674         * modules/roundf-tests (Files): Add tests/nan.h.
50675
50676         * tests/test-truncf1.c: Include nan.h.
50677         (main): Use NaNf instead of NAN.
50678         * modules/truncf-tests (Files): Add tests/nan.h.
50679
50680         * tests/test-ceilf1.c: Include nan.h.
50681         (main): Use NaNf instead of NAN.
50682         * modules/ceilf-tests (Files): Add tests/nan.h.
50683
50684         * tests/test-floorf1.c: Include nan.h.
50685         (main): Use NaNf instead of NAN.
50686         * modules/floorf-tests (Files): Add tests/nan.h.
50687
50688         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
50689         (main): Use NaNf instead of NAN.
50690         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
50691
50692         * tests/test-isnand.c: Include nan.h instead of <math.h>.
50693         (main): Use NaNd instead of NAN.
50694         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
50695
50696         * tests/test-frexp.c: Include nan.h.
50697         (main): Use NaNd instead of NAN.
50698         * modules/frexp-tests (Files): Add tests/nan.h.
50699
50700         * lib/isnan.c: Don't include <math.h>.
50701         (FUNC): Don't use NAN macro.
50702         * modules/isnand-nolibm (Depends-on): Remove math.
50703         * modules/isnanf-nolibm (Depends-on): Remove math.
50704         * modules/isnanl (Depends-on): Remove math.
50705         * modules/isnanl-nolibm (Depends-on): Remove math.
50706
50707         * tests/nan.h: New file.
50708
50709 2008-04-01  Eric Blake  <ebb9@byu.net>
50710
50711         Fix typos.
50712         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
50713         values to be the right type.
50714
50715         For now, cater to gnulib strtod inaccuracies.
50716         * tests/test-strtod.c (main): Allow 1-ulp error on expected
50717         fractional results.  While not as nice from a QoI perspective, it
50718         is a quicker patch than correctly implementing decimal to binary
50719         rounding.
50720
50721 2008-03-31  Eric Blake  <ebb9@byu.net>
50722
50723         Guarantee a definition of NAN.
50724         * lib/math.in.h (NAN): Define if missing.
50725         * tests/test-math.c (main): Test it.
50726         * doc/posix-headers/math.texi (math.h): Document this.
50727         * lib/isnan.c (rpl_isnand): Use it.
50728         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
50729         * tests/test-floorf1.c (NaN): Likewise.
50730         * tests/test-frexp.c (NaN): Likewise.
50731         * tests/test-isnand.c (NaN): Likewise.
50732         * tests/test-isnanf.c (NaN): Likewise.
50733         * tests/test-round1.c (NaN): Likewise.
50734         * tests/test-roundf1.c (NaN): Likewise.
50735         * tests/test-snprintf-posix.h (NaN): Likewise.
50736         * tests/test-sprintf-posix.h (NaN): Likewise.
50737         * tests/test-trunc1.c (NaN): Likewise.
50738         * tests/test-truncf1.c (NaN): Likewise.
50739         * tests/test-vasnprintf-posix.c (NaN): Likewise.
50740         * tests/test-vasprintf-posix.c (NaN): Likewise.
50741         * modules/isnand-nolibm (Depends-on): Add math.
50742         * modules/isnanf-nolibm (Depends-on): Likewise.
50743         * modules/isnanl (Depends-on): Likewise.
50744         * modules/isnanl-nolibm (Depends-on): Likewise.
50745         * modules/snprintf-posix-tests (Depends-on): Likewise.
50746         * modules/sprintf-posix-tests (Depends-on): Likewise.
50747         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
50748         * modules/vsprintf-posix-tests (Depends-on): Likewise.
50749         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
50750         * modules/vasprintf-posix-tests (Depends-on): Likewise.
50751
50752 2008-03-31  Bruno Haible  <bruno@clisp.org>
50753
50754         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
50755         * doc/posix-functions/strtod.texi: Likewise.
50756
50757 2008-03-31  Bruno Haible  <bruno@clisp.org>
50758
50759         * tests/test-strtod.c (main): Don't use C99 syntax.
50760
50761 2008-03-31  Bruno Haible  <bruno@clisp.org>
50762
50763         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
50764         Reported by Eric Blake.
50765
50766 2008-03-31  Jim Meyering  <meyering@redhat.com>
50767
50768         Don't compare actual signbit return values.
50769         * tests/test-strtod.c (main): Rather, compare only their
50770         zero/non-zero nature.
50771
50772 2008-03-31  Eric Blake  <ebb9@byu.net>
50773
50774         More strtod documentation.
50775         * doc/posix-functions/strtod.texi (strtod): Interpret more test
50776         failures as distinct bugs.
50777
50778 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
50779
50780         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
50781         Problem reported by Erik Benada in
50782         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
50783
50784 2008-03-30  Bruno Haible  <bruno@clisp.org>
50785
50786         * tests/test-strtod.c: Add comments about which assertion fails on which
50787         platform.
50788         * doc/posix-functions/strtod.texi: Add info about many more platforms.
50789
50790 2008-03-30  Eric Blake  <ebb9@byu.net>
50791
50792         Test signbit behavior on zeros.
50793         * tests/test-signbit.c (test_signbitf): Add tests for zero.
50794         (test_signbitd, test_signbitl): Likewise.
50795
50796         More strtod touchups.
50797         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
50798         sign of negative underflow, for now.  Use .5, not .1.
50799         * doc/posix-functions/strtod.texi (strtod): Mention these
50800         limitations.
50801         Reported by Jim Meyering.
50802
50803 2008-03-30  Bruno Haible  <bruno@clisp.org>
50804
50805         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
50806         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
50807
50808 2008-03-30  Bruno Haible  <bruno@clisp.org>
50809
50810         Avoid failure when attempting to return empty iconv results on some
50811         platforms.
50812         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
50813         allocation, don't report ENOMEM when the resulting string is empty.
50814
50815 2008-03-30  Bruno Haible  <bruno@clisp.org>
50816
50817         Fix buffer overrun.
50818         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
50819         Don't consider the width for tmp_length. Check count against tmp_length
50820         before doing the padding. Ensure enough allocation during padding.
50821
50822 2008-03-30  Eric Blake  <ebb9@byu.net>
50823
50824         strtod touchups.
50825         * lib/strtod.c (strtod): Avoid compiler warnings.
50826         Reported by Jim Meyering.
50827
50828 2008-03-30  Bruno Haible  <bruno@clisp.org>
50829
50830         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
50831         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
50832         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
50833         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
50834         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
50835         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
50836         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
50837         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
50838
50839         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
50840         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
50841         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
50842         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
50843         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
50844         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
50845         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
50846         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
50847
50848         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
50849         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
50850         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
50851         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
50852         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
50853         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
50854         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
50855         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
50856
50857         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
50858         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
50859
50860         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
50861         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
50862
50863         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
50864         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
50865
50866         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
50867         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
50868         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
50869
50870         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
50871         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
50872         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
50873
50874         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
50875         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
50876         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
50877
50878         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
50879         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
50880         * modules/vasprintf (Depends-on): Add EOVERFLOW.
50881
50882         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
50883         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
50884         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
50885         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
50886         (Depends-on): Add EOVERFLOW.
50887         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
50888         (Depends-on): Add EOVERFLOW.
50889         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
50890         (Depends-on): Add EOVERFLOW.
50891         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
50892         (Depends-on): Add EOVERFLOW.
50893         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
50894         (Depends-on): Add EOVERFLOW.
50895         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
50896         (Depends-on): Add EOVERFLOW.
50897         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
50898         (Depends-on): Add EOVERFLOW.
50899         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
50900         (Depends-on): Add EOVERFLOW.
50901
50902         * lib/sprintf.c (EOVERFLOW): Remove fallback.
50903         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
50904         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
50905
50906         * lib/snprintf.c (EOVERFLOW): Remove fallback.
50907         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
50908         * modules/snprintf (Depends-on): Add EOVERFLOW.
50909
50910         * lib/poll.c (EOVERFLOW): Remove fallback.
50911         * modules/poll (Depends-on): Add EOVERFLOW.
50912
50913         * lib/getugroups.c (EOVERFLOW): Remove fallback.
50914         * modules/getugroups (Depends-on): Add EOVERFLOW.
50915
50916         * lib/getdelim.c (EOVERFLOW): Remove fallback.
50917         * modules/getdelim (Depends-on): Add EOVERFLOW.
50918
50919         * lib/ftell.c (EOVERFLOW): Remove fallback.
50920         * modules/ftell (Depends-on): Add EOVERFLOW.
50921
50922         * lib/fprintf.c (EOVERFLOW): Remove fallback.
50923         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
50924         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
50925
50926         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
50927
50928         * modules/EOVERFLOW-tests: New file.
50929         * tests/test-EOVERFLOW.c: New file.
50930
50931         * modules/EOVERFLOW: New file.
50932         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
50933
50934 2008-03-30  Bruno Haible  <bruno@clisp.org>
50935
50936         Fix bug introduced on 2007-06-10.
50937         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
50938         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
50939
50940 2008-03-30  Bruno Haible  <bruno@clisp.org>
50941
50942         Improve freadseek's efficiency after ungetc.
50943         * lib/freadseek.c: Include freadahead.h.
50944         (freadptrinc): New function, extracted from freadseek.
50945         (freadseek): Use it in a loop. Use freadahead to determine the number
50946         of loop iterations.
50947         * modules/freadseek (Depends-on): Add freadahead.
50948         (configure.ac): Require AC_C_INLINE.
50949
50950 2008-03-30  Bruno Haible  <bruno@clisp.org>
50951
50952         * lib/freadseek.c (freadseek): Don't ignore the return value of
50953         freadptr.
50954
50955 2008-03-29  Eric Blake  <ebb9@byu.net>
50956
50957         Add hex float support.
50958         * modules/strtod (Depends-on): Add c-ctype.
50959         (Link): Mention POW_LIB.
50960         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
50961         whitespace between 'e' and exponent.
50962         * tests/test-strtod.c (main): Enable hex float tests.
50963         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
50964         now provides.
50965
50966         Document various strtod bugs, with some fixes.
50967         * doc/posix-functions/strtod.texi (strtod): Document bugs with
50968         "-0x", "inf", "nan", and hex constants.
50969         * doc/posix-functions/atof.texi (atof): Likewise.
50970         * modules/stdlib (Makefile.am): Support strtod.
50971         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
50972         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
50973         detect additional strtod bugs.
50974         * lib/stdlib.in.h (rpl_strtod): Add declarations.
50975         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
50976         bool where appropriate.  Parse 'inf' and 'nan'.
50977         * tests/test-strtod.c: New file.
50978         * modules/strtod (Depends-on): Add stdbool, stdlib.
50979         (configure.ac): Turn on module indicator.
50980         * modules/strtod-tests: New module.
50981
50982 2008-03-29  Eric Blake  <ebb9@byu.net>
50983
50984         Fix ftell on mingw.
50985         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
50986         * modules/ftell-tests (Depends-on): Add binary-io.
50987         * modules/ftello-tests (Depends-on): Likewise.
50988         * tests/test-ftell.c (main): Enhance test to cover behavior after
50989         ungetc.  Enforce binary mode.
50990         * tests/test-ftello.c (main): Likewise.
50991
50992         Pass test-freadseek on cygwin.
50993         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
50994         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
50995         ungetc buffer.
50996
50997         * tests/test-fflush2.c (main): Fix typo.
50998
50999 2008-03-29  Bruno Haible  <bruno@clisp.org>
51000
51001         * tests/test-fflush2.c (main): Temporarily disable the contents of
51002         this test.
51003         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
51004         Reported by Eric Blake.
51005
51006 2008-03-28  Simon Josefsson  <simon@josefsson.org>
51007
51008         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
51009         (GC_SHA224_DIGEST_SIZE): Add.
51010
51011         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
51012         (gc_hash_digest_length): Likewise.
51013         (gc_hash_buffer): Likewise.
51014
51015 2008-03-25  Bruno Haible  <bruno@clisp.org>
51016
51017         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
51018         detail which gettext release to use.
51019         Reported by Simon Josefsson.
51020
51021 2008-03-26  Jim Meyering  <meyering@redhat.com>
51022
51023         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
51024         * modules/gnumakefile (clean-GNUmakefile): Also, use
51025         test ... && ... || : syntax rather than if-then ... fi.
51026
51027         gnumakefile: Don't double-quote-expand $(VPATH) value.
51028         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
51029
51030 2008-03-24  Eric Blake  <ebb9@byu.net>
51031
51032         Alter GNUmakefile to install into top directory.
51033         * modules/maintainer-makefile: Split, and add dependency...
51034         * modules/gnumakefile: to this new module.
51035         * build-aux/GNUmakefile: Move...
51036         * top/GNUmakefile: ...here.
51037         * build-aux/maint.mk: Move...
51038         * top/maint.mk: ...here.
51039         * MODULES.html.sh (Support for maintaining...): Document new
51040         module.
51041
51042 2008-03-23  Bruno Haible  <bruno@clisp.org>
51043
51044         * gnulib-tool: New options --vc-files, --no-vc-files.
51045         (func_usage): Document them.
51046         (vc_files): New variable.
51047         (func_import): Consider vc_files.
51048         (func_create_testdir): Set vc_files to empty.
51049         Suggested by Jim Meyering and Karl Berry.
51050
51051 2008-03-23  Bruno Haible  <bruno@clisp.org>
51052
51053         Fix regex compilation error on HP-UX 11.
51054         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
51055         * modules/regex (Files): Add m4/mbstate_t.m4.
51056         Reported by Ton Voon <ton.voon@altinity.com>.
51057
51058 2008-03-23  Bruno Haible  <bruno@clisp.org>
51059
51060         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
51061
51062 2008-03-23  Eric Blake  <ebb9@byu.net>
51063             Bruno Haible  <bruno@clisp.org>
51064
51065         Install files from top/ in the destination directory.
51066         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
51067         augmentation also for the files from top/.
51068         (func_import, func_create_testdir): Rewrite file names:
51069         top/filename -> filename.
51070
51071 2008-03-23  Bruno Haible  <bruno@clisp.org>
51072
51073         Tweak "gnulib --version" output.
51074         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
51075
51076 2008-03-23  Bruno Haible  <bruno@clisp.org>
51077
51078         Tweak "gnulib --version" output.
51079         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
51080         rather than contents of ChangeLog, when possible.
51081
51082 2008-03-21  Eric Blake  <ebb9@byu.net>
51083
51084         More --version tweaks.
51085         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
51086         date of last ChangeLog entry.
51087
51088 2008-03-21  Jim Meyering  <meyering@redhat.com>
51089
51090         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
51091
51092 2008-03-20  Eric Blake  <ebb9@byu.net>
51093
51094         VPATH fix.
51095         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
51096
51097 2008-03-20  Simon Josefsson  <simon@josefsson.org>
51098
51099         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
51100         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
51101
51102 2008-03-20  Eric Blake  <ebb9@byu.net>
51103
51104         Sync GNUmakefile with coreutils.
51105         * build-aux/GNUmakefile (have-Makefile): Rename...
51106         (_have-Makefile): ...to this, for namespace consideration.
51107         (GNUmakefile.cfg): Include, if present.
51108         (_autoreconf): Define a default.
51109         (_is-dist-target): New rule for rebuilds to pick up intra-release
51110         version.
51111         (maint-cfg.mk): Rename...
51112         (cfg.mk): ...to this.
51113
51114 2008-03-18  Jim Meyering  <meyering@redhat.com>
51115
51116         New script and module: mktempd
51117         * MODULES.html.sh (maint+release support): Add mktempd.
51118         * build-aux/mktempd: New file.
51119         * modules/mktempd: New file.
51120
51121 2008-03-15  Jim Meyering  <meyering@redhat.com>
51122
51123         Undo last change.
51124         * lib/sha1.c, lib/md5.c: 63 != ~63.
51125         Reported by Andreas Schwab.
51126
51127         sha1.c, md5.c: Hoist a redundant expression.
51128         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
51129         "ctx->buflen" only once, before calling *_process_block.
51130         * lib/md5.c (md5_process_bytes): Likewise.
51131
51132 2008-03-14  Eric Blake  <ebb9@byu.net>
51133
51134         Bump copyright year in files generated by gnulib-tool.
51135         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
51136         gnulib-tool, rather than hard-coding it.
51137
51138         Fix 'gnulib-tool --version' output to work with git.
51139         * gnulib-tool (func_gnulib_dir): New function, extracted from...
51140         (startup): ...here.
51141         (func_version): Use it to invoke git-version-gen, rather than
51142         relying on CVS keyword expansion.  Modernize wording.
51143         (cvsdatestamp, last_checkin_date, version): Kill unused
51144         variables.
51145
51146 2008-03-12  Jim Meyering  <meyering@redhat.com>
51147
51148         Recognize optional cast of the argument to free.
51149         * build-aux/useless-if-before-free: Update regexps.
51150
51151         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
51152
51153 2008-03-11  Bruno Haible  <bruno@clisp.org>
51154
51155         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
51156         by a single package.
51157         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
51158         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
51159         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
51160         Reported by Sam Steingold <sds@gnu.org>.
51161
51162 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
51163
51164         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
51165         repositories.
51166
51167 2008-03-11  Bruno Haible  <bruno@clisp.org>
51168
51169         Avoid conflicts between local macro definitions.
51170         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
51171         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
51172
51173 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
51174             Bruno Haible  <bruno@clisp.org>
51175
51176         Make va_copy work with some version of xlc on AIX 5.1.
51177         * lib/stdarg.in.h: New file.
51178         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
51179         On AIX, use a <stdarg.h> file substitute.
51180         * modules/stdarg (Files): Add lib/stdarg.in.h.
51181         (Depends-on): Add include_next.
51182         (Makefile.am): Build a stdarg.h substitute if requested.
51183         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
51184
51185 2008-03-10  Bruno Haible  <bruno@clisp.org>
51186
51187         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
51188         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
51189         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
51190
51191 2008-03-10  Bruno Haible  <bruno@clisp.org>
51192
51193         * modules/stdlib (Depends-on): Add include_next, remove
51194         absolute-header.
51195
51196 2008-03-09  Bruno Haible  <bruno@clisp.org>
51197
51198         * lib/freadahead.h (freadahead): Document more precisely.
51199         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
51200         the sum of both buffer sizes.
51201         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
51202         * NEWS: Document the change.
51203
51204 2008-03-09  Bruno Haible  <bruno@clisp.org>
51205
51206         Extend freadptr to return also the buffer size.
51207         * lib/freadptr.h (freadptr): Add sizep argument.
51208         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
51209         (freadptr): Add sizep argument. Determine buffer size like freadahead
51210         does.
51211         * tests/test-freadptr.c: Don't include freadahead.h.
51212         (main): Adapt for new calling convention of freadptr.
51213         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
51214         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
51215         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
51216         tests/test-freadptr2.sh.
51217         (Depends): Remove freadahead.
51218         (TESTS): Add test-freadptr2.sh.
51219         (check_PROGRAMS): Add test-freadptr2.
51220
51221 2008-03-09  Bruno Haible  <bruno@clisp.org>
51222
51223         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
51224         Report and solution by Simon Josefsson.
51225
51226 2008-03-06  Bruno Haible  <bruno@clisp.org>
51227
51228         Make fflush after ungetc work on BSD platforms.
51229         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
51230         * tests/test-fflush2.c: New file.
51231         * tests/test-fflush2.sh: New file.
51232         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
51233         tests/test-fflush2.c.
51234         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
51235         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
51236
51237 2008-03-06  Eric Blake  <ebb9@byu.net>
51238
51239         Likewise for ftello.
51240         * modules/ftello (Dependencies): Add extensions.
51241         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
51242
51243 2008-03-06  Bruno Haible  <bruno@clisp.org>
51244
51245         * modules/fseeko (Dependencies): Add extensions.
51246         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
51247         Needed on glibc systems.
51248
51249 2008-03-06  Bruno Haible  <bruno@clisp.org>
51250
51251         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
51252         email address.
51253         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
51254
51255 2008-03-06  Bruno Haible  <bruno@clisp.org>
51256
51257         * users.txt: Add libgnupdf.
51258
51259 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
51260
51261         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
51262         (Header File Substitutes, Function Substitutes,
51263         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
51264         (Build robot for gnulib): Fix typo.
51265
51266 2008-03-06  Bruno Haible  <bruno@clisp.org>
51267
51268         * doc/gnulib-tool.texi (VCS Issues): Small updates.
51269         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
51270
51271 2008-03-06  Bruno Haible  <bruno@clisp.org>
51272
51273         * doc/func.texi: New file, extracted from doc/gnulib.texi.
51274         * doc/gnulib.texi: Include it.
51275
51276 2008-03-06  Simon Josefsson  <simon@josefsson.org>
51277
51278         * modules/func (License): Change license to unlimited; there was
51279         no LGPL parts in the module anyway.
51280
51281 2008-03-06  Simon Josefsson  <simon@josefsson.org>
51282
51283         * modules/__func__: Renamed to modules/func.
51284         * modules/__func__-tests: Renamed to modules/func-tests.
51285         * tests/test-__func__.c: Renamed to tests/test-func.c.
51286         * m4/__func__.m4: Renamed to m4/func.m4.
51287         * doc/gnulib.texi (__func__): Section renamed to func.
51288         Suggested by Eric Blake <ebb9@byu.net>.
51289
51290 2008-03-06  Simon Josefsson  <simon@josefsson.org>
51291
51292         * doc/gnulib.texi (__func__): Use C99 terminology when talking
51293         about __func__.  Make example self-contained.  Suggested by Eric
51294         Blake <ebb9@byu.net>.
51295
51296         * tests/test-__func__.c (main): Avoid extraneous () around __func.
51297         Suggested by Eric Blake <ebb9@byu.net>.
51298
51299 2008-03-06  Simon Josefsson  <simon@josefsson.org>
51300
51301         * modules/__func__: New file.
51302         * modules/__func__-tests: New file.
51303         * tests/test-__func__.c: New file.
51304         * m4/__func__.m4: New file.
51305         * doc/gnulib.texi (__func__): Document __func__ module.
51306
51307 2008-03-05  Simon Josefsson  <simon@josefsson.org>
51308
51309         * modules/byteswap (License): Re-license as LGPLv2+.
51310
51311 2008-03-05  Simon Josefsson  <simon@josefsson.org>
51312
51313         * doc/Makefile: Add pdf target.
51314
51315 2008-03-05  Simon Josefsson  <simon@josefsson.org>
51316
51317         * modules/inline (License): Use 'unlimited', since there are only
51318         *.m4 files in this module.
51319
51320 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
51321             Bruno Haible  <bruno@clisp.org>
51322
51323         Add support for HP C 7.1 on OpenVMS 8.3.
51324         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
51325
51326 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
51327
51328         Update VMS specifics.
51329         * lib/getopt.c [VMS]: Remove include of unixlib.h.
51330
51331 2008-03-02  Jim Meyering  <meyering@redhat.com>
51332
51333         Remove the last dependency on the "free" module.
51334         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
51335         Reported by Bob Proulx.
51336
51337         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
51338
51339         Remove useless "if" tests before free.  Deprecate "free" module.
51340         * doc/posix-functions/free.texi: Mention that this
51341         module is no longer useful.
51342         * modules/free (Notice): Say this module is obsolete.
51343         * modules/readutmp (Depends-on): Remove free.
51344         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
51345         * lib/putenv.c (putenv): Likewise.
51346         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
51347         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
51348         * tests/test-c-strcasestr.c (main): Likewise.
51349         * tests/test-c-strstr.c (main): Likewise.
51350         * tests/test-mbscasestr1.c (main): Likewise.
51351         * tests/test-mbscasestr2.c (main): Likewise.
51352         * tests/test-mbsstr1.c (main): Likewise.
51353         * tests/test-mbsstr2.c (main): Likewise.
51354         * tests/test-memmem.c (main): Likewise.
51355         * tests/test-strcasestr.c (main): Likewise.
51356         * tests/test-striconv.c (main): Likewise.
51357         * tests/test-striconveh.c (main): Likewise.
51358         * tests/test-striconveha.c (main): Likewise.
51359         * tests/test-strstr.c (main): Likewise.
51360
51361         * build-aux/git-version-gen: Adjust a comment and the Usage string.
51362
51363         bootstrap: sync from coreutils again
51364         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
51365
51366 2008-03-01  Jim Meyering  <meyering@redhat.com>
51367
51368         bootstrap: sync from coreutils
51369         * build-aux/bootstrap (update_po_files): Copy a .po file into place
51370         also when the target doesn't exist.
51371
51372 2008-03-01  Eric Blake  <ebb9@byu.net>
51373
51374         Fix bugs in last patch.
51375         * lib/memchr2.c (memchr2): Fix typo.
51376         * tests/test-memchr2.c: Test previous bug, and don't use GNU
51377         extension.
51378         Reported by Bruce Korb.
51379
51380         New module 'memchr2'.
51381         * modules/memchr2: New file.
51382         * modules/memchr2-tests: Likewise.
51383         * lib/memchr2.h: Likewise.
51384         * lib/memchr2.c: Likewise, based on memchr.c.
51385         * tests/test-memchr2.c: New test.
51386         * MODULES.html.sh (String handling): Add memchr2.
51387
51388 2008-02-29  Bruno Haible  <bruno@clisp.org>
51389
51390         * modules/freadseek-tests: New file.
51391         * tests/test-freadseek.sh: New file.
51392         * tests/test-freadseek.c: New file.
51393
51394         New module 'freadseek'.
51395         * modules/freadseek: New file.
51396         * lib/freadseek.h: New file.
51397         * lib/freadseek.c: New file.
51398         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
51399
51400 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
51401
51402         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
51403         wydawca.
51404
51405         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
51406         program_invocation_name and program_invocation_short_name are
51407         present.
51408
51409 2008-02-28  Bruno Haible  <bruno@clisp.org>
51410
51411         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
51412         * tests/test-freadptr.sh: Also test non-seekable stdin.
51413
51414 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
51415
51416         * build-aux/bootstrap (source_base, m4_base)
51417         (doc_base, tests_base): New variables.
51418         (gnulib_tool_options): Do not hardcode base directories, use
51419         the above variables instead.
51420
51421 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
51422
51423         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
51424
51425 2008-02-28  Bruno Haible  <bruno@clisp.org>
51426
51427         * modules/freadptr-tests: New file.
51428         * tests/test-freadptr.sh: New file.
51429         * tests/test-freadptr.c: New file.
51430
51431         New module 'freadptr'.
51432         * modules/freadptr: New file.
51433         * lib/freadptr.h: New file.
51434         * lib/freadptr.c: New file.
51435         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
51436
51437 2008-02-26  Karl Berry  <karl@freefriends.org>
51438
51439         Sync from Libtool:
51440         * libltdl/argz.c (argz_add, argz_count): New functions.
51441         * libltdl/argz.in.h: Declare them.
51442         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
51443
51444 2008-02-22  Bruno Haible  <bruno@clisp.org>
51445
51446         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
51447         is a pointer type.  Needed for HP-UX 10.
51448         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
51449         * doc/posix-functions/gmtime_r.texi: Likewise.
51450         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
51451
51452 2008-02-24  Bruno Haible  <bruno@clisp.org>
51453
51454         * modules/environ-tests: New file.
51455         * tests/test-environ.c: New file.
51456
51457         New module 'environ'.
51458         * modules/environ: New file.
51459         * lib/unistd.in.h (environ): New declaration.
51460         * m4/environ.m4: New file.
51461         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
51462         after use.
51463         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
51464         HAVE_DECL_ENVIRON.
51465         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
51466         HAVE_DECL_ENVIRON.
51467         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
51468         wrong claim that 'environ' is missing on some systems.
51469         * modules/execute (Depends-on): Add environ.
51470         * lib/execute.c (environ): Remove fallback declaration.
51471         * modules/pipe (Depends-on): Add environ.
51472         * lib/pipe.c (environ): Remove fallback declaration.
51473         * modules/setenv (Depends-on): Add environ.
51474         * lib/setenv.c (environ): Remove fallback declaration.
51475         * modules/unsetenv (Depends-on): Add environ.
51476         * lib/unsetenv.c (environ): Remove fallback declaration.
51477         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
51478         m4/environ.m4.
51479         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
51480         (gl_PREREQ_UNSETENV): Likewise.
51481
51482 2008-02-24  Bruno Haible  <bruno@clisp.org>
51483
51484         * doc/posix-functions/environ.texi: Document the MacOS X problem.
51485
51486 2008-02-20  Bob Proulx  <bob@proulx.com>
51487
51488         Enable use of older two part flavor 'git describe'.
51489         * build-aux/git-version-gen: If using the older two part flavor of
51490         git version then recreate the third part now present in the
51491         newer three part flavor of git describe.
51492
51493 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
51494
51495         * lib/fts.c (fts_build): Typo correction to comment.
51496
51497 2008-02-17  Bruno Haible  <bruno@clisp.org>
51498
51499         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
51500         generating no-op conflicts.
51501
51502 2008-02-17  Bruno Haible  <bruno@clisp.org>
51503
51504         Speed up by 10%.
51505         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
51506         result_entries, rather than an index-based loop.
51507
51508 2008-02-17  Bruno Haible  <bruno@clisp.org>
51509
51510         Speed up by 25%.
51511         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
51512         'hashcode_cached'.
51513         (entry_create): New function.
51514         (entry_hashcode): Use the cached hashcode if possible.
51515         (read_changelog_file, try_split_merged_entry): Use entry_create.
51516
51517 2008-02-17  Bruno Haible  <bruno@clisp.org>
51518
51519         Speed up from O(n^2) to O(n) for long ChangeLog files.
51520         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
51521         (read_changelog_file): Change implementation of entries_reversed list
51522         to rbtreehash.
51523         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
51524
51525 2008-02-17  Bruno Haible  <bruno@clisp.org>
51526
51527         New option --split-merged-entry.
51528         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
51529         (find_paragraph_end, try_split_merged_entry): New functions.
51530         (long_options): Add option --split-merged-entry.
51531         (usage): Document option --split-merged-entry.
51532         (main): Implement option --split-merged-entry.
51533         Reported by Eric Blake.
51534
51535 2008-02-17  Bruno Haible  <bruno@clisp.org>
51536
51537         * lib/git-merge-changelog.c: Include c-strstr.h.
51538         (main): Support the "git pull --rebase" situation.
51539         * modules/git-merge-changelog (Depends-on): Add c-strstr.
51540         Reported by Eric Blake.
51541
51542 2008-02-16  Eric Blake  <ebb9@byu.net>
51543
51544         Avoid doubling \ in common case of "c-maybe" quoting style.
51545         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
51546         eliding outer quotes.
51547         * lib/quotearg.h: Document this.
51548         * tests/test-quotearg.c (result_strings, inputs, results_g)
51549         (flag_results, locale_results): Test it by adding a new string to
51550         each test group.
51551         (compare_strings): Test new string.
51552
51553 2008-02-13  Eric Blake  <ebb9@byu.net>
51554
51555         Avoid trigraph quoting in default output.
51556         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
51557         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
51558         unless explicitly requested.
51559         * tests/test-quotearg.c (flag_results, main): Add additional tests.
51560
51561 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
51562
51563         Don't rely on signed integer overflowing to negative value.
51564         * lib/getugroups.c (getugroups): Include <limits.h>.
51565         Instead, compare against INT_MAX, and increment only if the test passes.
51566
51567 2008-02-13  Jim Meyering  <meyering@redhat.com>
51568         and Eric Blake  <ebb9@byu.net>
51569
51570         Avoid shadowing warning and compile errors on Linux.
51571         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
51572         forwarding macros on Linux.
51573         (dcgettext): Define a stub, for Linux.
51574         (results_g, main): Avoid warnings.
51575
51576 2008-02-12  Eric Blake  <ebb9@byu.net>
51577
51578         Silence warning in last patch.
51579         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
51580
51581         Quotearg part 4: add tests, fix c-maybe colon quoting.
51582         * lib/quotearg.h: Improve documentation.
51583         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
51584         escapes when adding outer quotes.  When quoting trigraphs, use
51585         valid C notation.  When quoting NUL, omit extra characters if next
51586         character is not digit.  Alter prototype.
51587         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
51588         callers.
51589         * modules/quotearg-tests: New module.
51590         * tests/test-quotearg.c: New test.
51591
51592 2008-02-07  Eric Blake  <ebb9@byu.net>
51593
51594         Quotearg part 3: add flag to control outer quote elision.
51595         * lib/quotearg.h (c_maybe_quoting_style): New style.
51596         (enum quoting_flags): Better documentation of flags.
51597         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
51598         c-maybe style.
51599         (quotearg_buffer_restyled): Handle new flag to elide outer
51600         quotes.
51601
51602         Quotearg part 2: add flag that can control NUL elision.
51603         * lib/quotearg.h (set_quoting_flags): New prototype.
51604         * lib/quotearg.c (struct quoting_options): Add flag field.
51605         (set_quoting_flags): New function.
51606         (quotearg_buffer_restyled): Add flags parameter.
51607         (quotearg_alloc_mem): Set the flag if length cannot be returned.
51608         (quotearg_n_options): Set the flag, since length cannot be
51609         returned.
51610         (quoting_options_from_style): Default flags correctly.
51611
51612         Quotearg part 1: more wrappers, restore quotearg_char state.
51613         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
51614         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
51615         (quotearg_colon_mem): New wrappers.
51616         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
51617         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
51618         functions.
51619         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
51620         (quotearg_colon_mem): New functions.
51621
51622 2008-02-11  Bruno Haible  <bruno@clisp.org>
51623
51624         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
51625         library in the current directory: it does not work with parallel make.
51626         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
51627
51628 2008-02-11  Bruno Haible  <bruno@clisp.org>
51629
51630         * .gitattributes: New file.
51631
51632 2008-02-11  Jim Meyering  <meyering@redhat.com>
51633
51634         useless-if-before-free: Fix reversed exit values.
51635         * build-aux/useless-if-before-free: Use correct values
51636         for EXIT_MATCH and EXIT_NO_MATCH.
51637
51638         * build-aux/useless-if-before-free: Close stdout carefully.
51639
51640 2008-02-10  Bruno Haible  <bruno@clisp.org>
51641
51642         New module 'git-merge-changelog'.
51643         * modules/git-merge-changelog: New file.
51644         * lib/git-merge-changelog.c: New file.
51645
51646 2008-02-10  Jim Meyering  <meyering@redhat.com>
51647
51648         useless-if-before-free: New option: --list (-l).
51649
51650         useless-if-before-free: Don't exit immediately upon open failure.
51651         * build-aux/useless-if-before-free: Exit 2 for errors.
51652         Upon failure to open a file, don't exit immediately.
51653         Rather, just warn and continue with any remaining files.
51654
51655 2008-02-10  Bruno Haible  <bruno@clisp.org>
51656
51657         New abstract list operation 'node_set_value'.
51658         * lib/gl_list.h (gl_list_node_set_value): New function.
51659         (struct gl_list_implementation): New field node_set_value.
51660         * lib/gl_list.c (gl_list_node_set_value): New function.
51661         * lib/gl_array_list.c (gl_array_node_set_value): New function.
51662         (gl_array_list_implementation): Update.
51663         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
51664         (gl_carray_list_implementation): Update.
51665         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
51666         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
51667         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
51668         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
51669         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
51670         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
51671         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
51672         Update.
51673         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
51674         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
51675         (gl_sublist_list_implementation): Update.
51676
51677 2008-02-10  Bruno Haible  <bruno@clisp.org>
51678
51679         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
51680         Needed when ELEMENT is #defined to 'some_type *'.
51681
51682 2008-02-10  Jim Meyering  <meyering@redhat.com>
51683
51684         New script and module: useless-if-before-free
51685         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
51686         * build-aux/useless-if-before-free: New file.
51687         * modules/useless-if-before-free: New file.
51688
51689         * build-aux/gitlog-to-changelog: Use committer date, not author date.
51690
51691         xstrtol_error: Fix typo.
51692         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
51693         s/exit_failure/exit_status/.
51694
51695 2008-02-09  Jim Meyering  <meyering@redhat.com>
51696
51697         New script and module: gitlog-to-changelog
51698         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
51699         * modules/gitlog-to-changelog: New file.
51700         * build-aux/gitlog-to-changelog: New file.
51701
51702 2008-02-08  Jim Meyering  <meyering@redhat.com>
51703
51704         Avoid two "parameter unused" warnings.
51705         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
51706         Mark "st" as used.
51707
51708         Use "git COMMAND", not "git-COMMAND".
51709         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
51710         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
51711         * build-aux/git-version-gen: Use "git status", not "git-status".
51712
51713 2008-02-07  Bruno Haible  <bruno@clisp.org>
51714
51715         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
51716         Avoids a crash on Windows Vista.
51717         Reported by Adam Strzelecki <ono@java.pl> via
51718         Simon Josefsson <simon@josefsson.org>.
51719
51720 2008-02-06  Bruno Haible  <bruno@clisp.org>
51721
51722         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
51723         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
51724         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
51725         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
51726         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
51727         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
51728         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
51729         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
51730         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
51731         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
51732         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
51733         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
51734         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
51735         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
51736         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
51737         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
51738         left-adjust flag.
51739         * tests/test-snprintf-posix.h (test_function): Likewise.
51740         * tests/test-sprintf-posix.h (test_function): Likewise.
51741         * tests/test-vasprintf-posix.c (test_function): Likewise.
51742         * doc/posix-functions/fprintf.texi: Update.
51743         * doc/posix-functions/printf.texi: Update.
51744         * doc/posix-functions/snprintf.texi: Update.
51745         * doc/posix-functions/sprintf.texi: Update.
51746         * doc/posix-functions/vfprintf.texi: Update.
51747         * doc/posix-functions/vprintf.texi: Update.
51748         * doc/posix-functions/vsnprintf.texi: Update.
51749         * doc/posix-functions/vsprintf.texi: Update.
51750         Reported by Peter Fales <psfales@alcatel-lucent.com>.
51751
51752 2008-02-06  Bruno Haible  <bruno@clisp.org>
51753
51754         Fix bug introduced on 2008-01-26.
51755         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
51756
51757 2008-02-06  Bruno Haible  <bruno@clisp.org>
51758
51759         Fix bug introduced on 2007-06-10.
51760         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
51761         !NEED_PRINTF_FLAG_ZERO.
51762
51763 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
51764
51765         getloadavg: use libperfstat on AIX5
51766         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
51767
51768 2008-02-03  Bruno Haible  <bruno@clisp.org>
51769
51770         * lib/diffseq.h: Add comments about required #includes.
51771         Reported by Michael Biggs <gnulib@doubleplum.net>.
51772
51773 2008-02-01  Bruno Haible  <bruno@clisp.org>
51774
51775         * users.txt: Add gnuit.
51776
51777 2008-01-31  Bruno Haible  <bruno@clisp.org>
51778
51779         * lib/md4.c (set_uint32): Mark as inline.
51780         * lib/md5.c (set_uint32): Likewise.
51781         * lib/sha1.c (set_uint32): Likewise.
51782         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
51783         * m4/md5.m4 (gl_MD5): Likewise.
51784         * m4/sha1.m4 (gl_SHA1): Likewise.
51785
51786 2008-01-31  Jim Meyering  <meyering@redhat.com>
51787
51788         Use "sizeof VAR", rather than a literal "4".
51789         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
51790         * lib/md4.c (md4_read_ctx): Likewise.
51791         * lib/sha1.c (sha1_read_ctx): Likewise.
51792
51793 2008-01-31  Simon Josefsson  <simon@josefsson.org>
51794
51795         * tests/test-sha1.c: New file, based on test-md5.c.
51796
51797         * modules/crypto/sha1-tests: New file.
51798
51799 2008-01-31  Simon Josefsson  <simon@josefsson.org>
51800
51801         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
51802
51803 2008-01-31  Jim Meyering  <meyering@redhat.com>
51804
51805         Prefer "sizeof v" over the equivalent "4".
51806         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
51807         * lib/md5.c (set_uint32): Likewise.
51808         * lib/sha1.c (set_uint32): Likewise.
51809
51810 2008-01-31  Simon Josefsson  <simon@josefsson.org>
51811
51812         * lib/sha1.c (set_uint32): Mark function as static.
51813
51814 2008-01-31  Simon Josefsson  <simon@josefsson.org>
51815
51816         md2: clarify comments to say that alignment is not required.
51817         * lib/md2.h: Remove warning about alignment in comment.
51818         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
51819         never been required.
51820
51821 2008-01-31  Simon Josefsson  <simon@josefsson.org>
51822
51823         md4: adapt alignment constraint fix from sha1.
51824         * lib/md4.c (set_uint32): New function, from sha1.c
51825         (md4_read_ctx): Use it.
51826         (md4_finish_ctx): Doc fix.
51827         * lib/md4.h: Doc fix.
51828
51829 2008-01-31  Simon Josefsson  <simon@josefsson.org>
51830
51831         md5: adapt alignment constraint fix from sha1.
51832         * lib/md5.c (set_uint32): New function, from sha1.c
51833         (md5_read_ctx): Use it.
51834         (md5_finish_ctx): Doc fix.
51835         * lib/md5.h: Doc fix.
51836
51837 2008-01-30  Peter Palfrader  <weasel@debian.org>
51838
51839         sha1: remove the result buffer alignment constraint
51840         * lib/sha1.c (set_uint32): New function.
51841         (sha1_read_ctx): Rewrite to remove the result buffer alignment
51842         constraint.
51843         (sha1_finish_ctx): Remove comment warning about alignment constraint.
51844         * lib/sha1.h: Likewise.
51845
51846 2008-01-30  Andreas Schwab  <schwab@suse.de>
51847             Bruno Haible  <bruno@clisp.org>
51848
51849         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
51850         correct definition of LDBL_MIN_EXP.
51851
51852 2008-01-30  Karl Berry  <karl@gnu.org>
51853
51854         * config/srclist-update: try to preserve x bit on updates.
51855         * config/srclistvars.sh: update for karl.
51856
51857 2008-01-29  Jim Meyering  <meyering@redhat.com>
51858
51859         vasnprintf.c: Avoid warning about unused label
51860         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
51861         "overflow" label definition and associated code with the
51862         same cpp condition that guards the sole use of that label.
51863
51864 2008-01-26  Bruno Haible  <bruno@clisp.org>
51865
51866         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
51867         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
51868         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
51869         * lib/isnanl-nolibm.h (isnanl): Likewise.
51870         Reported by Paul Eggert <eggert@cs.ucla.edu>.
51871
51872 2008-01-26  Bruno Haible  <bruno@clisp.org>
51873
51874         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
51875         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
51876
51877 2008-01-26  Bruno Haible  <bruno@clisp.org>
51878
51879         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
51880         GCC >= 4.0 built-in.
51881         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
51882
51883 2008-01-26  Bruno Haible  <bruno@clisp.org>
51884
51885         Rename isnan, applicable to 'double' only, to isnand.
51886         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
51887         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
51888         (configure.ac): Update.
51889         (Include): Replace "isnan.h" with "isnand.h".
51890         * m4/isnand.m4: Renamed from m4/isnan.m4.
51891         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
51892         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
51893         instead of isnan.c.
51894         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
51895         instead of HAVE_ISNAN_IN_LIBC.
51896         (isnand): Renamed from isnan.
51897         * lib/isnand.c: New file.
51898         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
51899         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
51900         (Makefile.am): Update.
51901         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
51902         Include isnand.h instead of isnan.h.
51903         (main): Test isnand instead of isnan.
51904         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
51905         isnan-nolibm.
51906         * modules/frexp (Depends-on): Likewise.
51907         * modules/frexp-tests (Depends-on): Likewise.
51908         * modules/frexp-nolibm (Depends-on): Likewise.
51909         * modules/frexp-nolibm-tests (Depends-on): Likewise.
51910         * modules/isfinite (Depends-on): Likewise.
51911         * modules/round-tests (Depends-on): Likewise.
51912         * modules/signbit (Depends-on): Likewise.
51913         * modules/signbit-tests (Depends-on): Likewise.
51914         * modules/snprintf-posix (Depends-on): Likewise.
51915         * modules/sprintf-posix (Depends-on): Likewise.
51916         * modules/trunc-tests (Depends-on): Likewise.
51917         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
51918         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
51919         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
51920         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
51921         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
51922         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
51923         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
51924         * modules/vasnprintf-posix (Depends-on): Likewise.
51925         * modules/vasprintf-posix (Depends-on): Likewise.
51926         * modules/vfprintf-posix (Depends-on): Likewise.
51927         * modules/vsnprintf-posix (Depends-on): Likewise.
51928         * modules/vsprintf-posix (Depends-on): Likewise.
51929         * lib/frexp.c: Include isnand.h instead of isnan.h.
51930         (ISNAN): Set to isnand instead of isnan.
51931         * lib/isfinite.c: Include isnand.h instead of isnan.h.
51932         (gl_isfinited): Use isnand instead of isnan.
51933         * lib/signbitd.c: Include isnand.h instead of isnan.h.
51934         (gl_signbitd): Use isnand instead of isnan.
51935         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
51936         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
51937         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
51938         (main): Use isnand instead of isnan.
51939         * tests/test-round1.c: Include isnand.h.
51940         (main): Use isnand instead of isnan.
51941         * tests/test-round2.c: Include isnand.h instead of isnan.h.
51942         (ISNAN): Set to isnand instead of isnan.
51943         * tests/test-trunc1.c: Include isnand.h.
51944         (main): Use isnand instead of isnan.
51945         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
51946         (equal): Use isnand instead of isnan.
51947         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
51948         isnand-nolibm.
51949         * NEWS: Mention the change.
51950
51951 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
51952             Bruno Haible  <bruno@clisp.org>
51953
51954         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
51955         the GCC builtins for signbits are present and set
51956         REPLACE_SIGNBIT_USING_GCC if so.
51957         * lib/math.in.h (signbit): Define using GCC builtins if
51958         REPLACE_SIGNBIT_USING_GCC is set.
51959         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
51960         REPLACE_SIGNBIT_USING_GCC.
51961         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
51962
51963 2008-01-25  Jim Meyering  <meyering@redhat.com>
51964
51965         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
51966         * lib/poll.c: Include <config.h>, not "config.h".
51967         * tests/test-getaddrinfo.c: Likewise.
51968
51969 2008-01-25  Simon Josefsson  <simon@josefsson.org>
51970
51971         * modules/sockets-tests: New file.
51972
51973 2008-01-24  Simon Josefsson  <simon@josefsson.org>
51974
51975         * modules/sockets: New module, can be used to call WSA_Startup and
51976         WSA_Cleanup when needed.
51977
51978         * lib/sockets.h, lib/sockets.c: New files.
51979
51980         * m4/sockets.m4: New file.
51981
51982         * tests/test-sockets.c: New file.
51983
51984 2008-01-19  Bruno Haible  <bruno@clisp.org>
51985
51986         * doc/posix-headers: Renamed from doc/headers.
51987         * doc/posix-functions: Renamed from doc/functions.
51988         * doc/gnulib.texi: Update.
51989
51990 2008-01-19  Bruno Haible  <bruno@clisp.org>
51991
51992         * doc/glibc-functions/strcasestr.texi: Include contents of
51993         doc/functions/strcasestr.texi, fixing the list of platforms.
51994         * doc/functions/strcasestr.texi: Remove file.
51995
51996 2008-01-19  Bruno Haible  <bruno@clisp.org>
51997
51998         * doc/glibc-functions/memmem.texi: Include contents of
51999         doc/functions/memmem.texi.
52000         * doc/functions/memmem.texi: Remove file.
52001
52002 2008-01-18  Bruno Haible  <bruno@clisp.org>
52003
52004         * doc/glibc-functions/*.texi: New files.
52005         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
52006         to use the new files.
52007
52008 2008-01-17  Bruno Haible  <bruno@clisp.org>
52009
52010         * tests/test-gethostname.c (main): Fix printf statement.
52011
52012 2008-01-17  Simon Josefsson  <simon@josefsson.org>
52013
52014         * modules/gethostname-tests: New file.
52015
52016         * tests/test-gethostname.c: New file.
52017
52018 2008-01-17  Simon Josefsson  <simon@josefsson.org>
52019
52020         * lib/gethostname.c: Include string.h unconditionally, strncpy is
52021         used by the UNAME case.  Reported by Bruno Haible
52022         <bruno@clisp.org>.
52023
52024 2008-01-17  Eric Blake  <ebb9@byu.net>
52025
52026         Convert c-strcasestr to be more efficient.
52027         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
52028         (Depends-on): Add c-strcase, remove malloca, strnlen.
52029         * tests/test-c-strcasestr.c (main): Enhance test.
52030         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
52031
52032 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
52033
52034         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
52035         Use it in creating po/Makevars.
52036
52037 2008-01-15  Simon Josefsson  <simon@josefsson.org>
52038
52039         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
52040         Applications that requires it should initialize libgcrypt
52041         manually.
52042
52043 2008-01-16  Simon Josefsson  <simon@josefsson.org>
52044
52045         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
52046
52047 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
52048
52049         Fix problem with getdate on mingw32 reported by Simon Josefsson
52050         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
52051         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
52052         tzname", when deciding whether to declare tzname.
52053         * lib/strftime.c (tzname): Likewise.
52054
52055 2008-01-15  Bruno Haible  <bruno@clisp.org>
52056
52057         Work around a MacOS X 10.5 bug in frexpl().
52058         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
52059         * doc/functions/frexpl.texi: Document the bug.
52060         Reported by Elias Pipping <pipping@gentoo.org>.
52061
52062 2008-01-14  Eric Blake  <ebb9@byu.net>
52063
52064         Touch up previous patch.
52065         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
52066         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
52067
52068         Convert strcasestr module to use Two-Way algorithm.
52069         * modules/strcasestr-simple: New module, based on the old
52070         strcasestr, but with Two-Way rather than KMP.
52071         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
52072         * lib/string.in.h (rpl_strcasestr): Declare.
52073         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
52074         performance.
52075         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
52076         * modules/string (Makefile.am): Support strcasestr.
52077         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
52078         * modules/strcasestr-tests (Depends-on): Check for alarm.
52079         * tests/test-strcasestr.c: Augment test.
52080         * lib/str-two-way.h: Clean up stray macro.
52081         * NEWS: Document new module.
52082         * MODULES.html.sh (string handling): Likewise.
52083         * doc/functions/strcasestr.texi: New file.
52084         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
52085         here, since it is not a POSIX function.
52086
52087 2008-01-14  Colin Watson  <cjwatson@debian.org>
52088             Bruno Haible  <bruno@clisp.org>
52089
52090         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
52091         works fine; if not, set REPLACE_STRSIGNAL.
52092         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
52093         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
52094         REPLACE_STRSIGNAL.
52095         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
52096         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
52097         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
52098
52099 2008-01-14  Bruno Haible  <bruno@clisp.org>
52100
52101         * modules/strsignal (Include): Change to <string.h>.
52102
52103 2008-01-14  Colin Watson  <cjwatson@debian.org>
52104
52105         * modules/argp (Notice): Add a notice recommending to change
52106         XGETTEXT_OPTIONS.
52107         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
52108
52109 2008-01-13  Colin Watson  <cjwatson@debian.org>
52110
52111         * modules/strsignal-tests: New file.
52112         * tests/test-strsignal.c: New file.
52113
52114         * lib/strsignal.c: New file, from glibc with modifications.
52115         * lib/siglist.h: New file, from glibc with modifications.
52116         * lib/string.in.h (strsignal): New declaration.
52117         * m4/strsignal.m4: New file.
52118         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
52119         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
52120         * modules/strsignal: New file.
52121         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
52122         HAVE_DECL_STRSIGNAL.
52123
52124 2008-01-13  Bruno Haible  <bruno@clisp.org>
52125
52126         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
52127         locale encoding is not ASCII. Needed for OpenBSD 4.0.
52128         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
52129         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
52130
52131 2008-01-13  Bruno Haible  <bruno@clisp.org>
52132
52133         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
52134         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
52135         * lib/argp.h (__attribute__): Likewise.
52136         * lib/c-stack.c (__attribute__): Likewise.
52137         * lib/error.h (__attribute__): Likewise.
52138         * lib/fts.c (__attribute__): Likewise.
52139         * lib/openat.h (__attribute__): Likewise.
52140         * lib/stdio.in.h (__attribute__): Likewise.
52141         * lib/string.in.h (__attribute__): Likewise.
52142         * lib/utimens.c (__attribute__): Likewise.
52143         * lib/vasnprintf.h (__attribute__): Likewise.
52144         * lib/xalloc.h (__attribute__): Likewise.
52145         * lib/xprintf.h (__attribute__): Likewise.
52146         * lib/xstrtol.h (__attribute__): Likewise.
52147         * lib/xvasprintf.h (__attribute__): Likewise.
52148
52149 2008-01-12  Bruno Haible  <bruno@clisp.org>
52150
52151         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
52152         * doc/glibc-headers/a.out.texi: New file.
52153         * doc/glibc-headers/aliases.texi: New file.
52154         * doc/glibc-headers/alloca.texi: New file.
52155         * doc/glibc-headers/ar.texi: New file.
52156         * doc/glibc-headers/argp.texi: New file.
52157         * doc/glibc-headers/argz.texi: New file.
52158         * doc/glibc-headers/byteswap.texi: New file.
52159         * doc/glibc-headers/crypt.texi: New file.
52160         * doc/glibc-headers/endian.texi: New file.
52161         * doc/glibc-headers/envz.texi: New file.
52162         * doc/glibc-headers/err.texi: New file.
52163         * doc/glibc-headers/error.texi: New file.
52164         * doc/glibc-headers/execinfo.texi: New file.
52165         * doc/glibc-headers/fpu_control.texi: New file.
52166         * doc/glibc-headers/fstab.texi: New file.
52167         * doc/glibc-headers/fts.texi: New file.
52168         * doc/glibc-headers/getopt.texi: New file.
52169         * doc/glibc-headers/ieee754.texi: New file.
52170         * doc/glibc-headers/ifaddrs.texi: New file.
52171         * doc/glibc-headers/libintl.texi: New file.
52172         * doc/glibc-headers/mcheck.texi: New file.
52173         * doc/glibc-headers/mntent.texi: New file.
52174         * doc/glibc-headers/obstack.texi: New file.
52175         * doc/glibc-headers/paths.texi: New file.
52176         * doc/glibc-headers/printf.texi: New file.
52177         * doc/glibc-headers/pty.texi: New file.
52178         * doc/glibc-headers/resolv.texi: New file.
52179         * doc/glibc-headers/shadow.texi: New file.
52180         * doc/glibc-headers/sysexits.texi: New file.
52181         * doc/glibc-headers/ttyent.texi: New file.
52182
52183 2008-01-12  Jim Meyering  <meyering@redhat.com>
52184
52185         announce-gen: emit Gnulib's git-based version string.
52186         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
52187         New option --gnulib-version=V, where V is expected to be
52188         the output of running git describe in the gnulib directory.
52189         (get_tool_versions): Request feedback on xdelta.  I suspect it's
52190         not useful, and plan to stop publishing an xdelta file with each
52191         coreutils release.
52192
52193         * build-aux/announce-gen: Also check for lzma-compressed files.
52194
52195 2008-01-11  Bruno Haible  <bruno@clisp.org>
52196
52197         * tests/test-memmem.c (main): Increase maximum allowed time.
52198         * tests/test-strstr.c (main): Likewise.
52199
52200 2008-01-11  Bruno Haible  <bruno@clisp.org>
52201
52202         * doc/functions/memmem.texi: Add more precisions about platforms.
52203         * doc/functions/strstr.texi: Likewise.
52204
52205 2008-01-10  Eric Blake  <ebb9@byu.net>
52206
52207         * m4/strstr.m4: Delete cruft from copy-n-paste.
52208         Reported by Bruno Haible.
52209
52210 2008-01-10  Bruno Haible  <bruno@clisp.org>
52211
52212         Make c-strstr rely on strstr.
52213         * lib/c-strstr.c: Don't include str-kmp.h.
52214         (c_strstr): Define in terms of strstr.
52215         * modules/c-strstr (Files): Remove lib/str-kmp.h.
52216         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
52217
52218 2008-01-10  Bruno Haible  <bruno@clisp.org>
52219
52220         * doc/gnulib.texi (String Functions in C Locale): New section.
52221         * doc/c-ctype.texi: New file.
52222         * doc/c-strcase.texi: New file.
52223         * doc/c-strcaseeq.texi: New file.
52224         * doc/c-strcasestr.texi: New file.
52225         * doc/c-strstr.texi: New file.
52226         * doc/c-strtod.texi: New file.
52227         * doc/c-strtold.texi: New file.
52228
52229 2008-01-10  Eric Blake  <ebb9@byu.net>
52230
52231         * lib/relocatable.h: Fix a comment.
52232
52233 2008-01-10  Eric Blake  <ebb9@byu.net>
52234
52235         Share two-way algorithm.
52236         * lib/str-two-way.h: New file, merged from...
52237         * lib/memmem.c: ...here...
52238         * lib/strstr.c: ...and here.
52239         * modules/memmem (Files): Use it.
52240         * modules/strstr (Files): Likewise.
52241
52242         Avoid quadratic strstr implementations.
52243         * lib/strstr.c: New file.
52244         * m4/strstr.m4: Likewise.
52245         * modules/strstr: Likewise.
52246         * modules/strstr-tests: Likewise.
52247         * tests/test-strstr.c: Likewise.
52248         * lib/string.in.h (rpl_strstr): Declare.
52249         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
52250         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
52251         * modules/string (Makefile.am): Likewise.
52252         * MODULES.html.sh (string handling): Mention new module.
52253         * doc/functions/strstr.texi (strstr): Document the bug.
52254
52255 2008-01-10  Bruno Haible  <bruno@clisp.org>
52256
52257         * lib/relocatable.h (relocate): State whether result is freshly
52258         allocated or not.
52259         * lib/relocatable.c (relocate): Return a freshly allocated string
52260         instead of a pointer to a privately held string.
52261         Reported by Sylvain Beucler <beuc@gnu.org>.
52262
52263 2008-01-10  Colin Watson  <cjwatson@debian.org>
52264
52265         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
52266         s/S_ISNLK/S_ISLNK/.
52267
52268 2008-01-09  Bruno Haible  <bruno@clisp.org>
52269
52270         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
52271         and other files.
52272         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
52273         if it's only a guess.
52274         * modules/memmem: Simplify by depending on memmem-simple.
52275
52276 2008-01-09  Bruno Haible  <bruno@clisp.org>
52277
52278         Work around OpenBSD 4.0 tdelete() bug.
52279         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
52280         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
52281         macros and don't redefine the enum values.
52282         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
52283         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
52284         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
52285
52286 2008-01-09  Bruno Haible  <bruno@clisp.org>
52287
52288         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
52289         (main): Don't perform the tests if setlocale did not install a UTF-8
52290         locale. Needed on OpenBSD 4.0.
52291         * modules/wcwidth-tests (Depends-on): Add localcharset.
52292
52293 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
52294
52295         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
52296         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
52297         * NEWS: announce this.
52298         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
52299
52300 2008-01-09  Simon Josefsson  <simon@josefsson.org>
52301         and Eric Blake  <ebb9@byu.net>
52302
52303         Add memmem-simple module.
52304         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
52305         (gl_FUNC_MEMMEM): Separate performance from presence checks.
52306         * modules/memmem-simple: New file.
52307         * modules/memmem (Description): Tweak.
52308         * MODULES.html.sh (string handling): Mention new module.
52309         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
52310         addressed by memmem-simple.
52311         * NEWS: Document the difference.
52312
52313 2008-01-09  Eric Blake  <ebb9@byu.net>
52314
52315         Give gcc some memmem optimization hints.
52316         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
52317         (strcasestr): Declare as pure.
52318         * modules/memmem (Maintainer): Claim my implementation.
52319
52320 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52321
52322         Support AIX 6.1 and higher.
52323         * build-aux/config.libpath: Likewise.
52324         * build-aux/config.rpath: Likewise.
52325
52326 2008-01-08  Jim Meyering  <meyering@redhat.com>
52327             Bruno Haible  <bruno@clisp.org>
52328
52329         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
52330         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
52331         Reported by Peter Fales in
52332         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
52333
52334 2008-01-08  Bruno Haible  <bruno@clisp.org>
52335
52336         * modules/unictype/category-of (Depends-on): Add
52337         unictype/category-none.
52338         * modules/unictype/category-and-tests (Depends-on): Add
52339         unictype/category-{L,N,Lu,Nd}.
52340         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
52341         * modules/unictype/category-or-tests (Depends-on): Add
52342         unictype/category-{L,N}.
52343         * modules/unictype/category-name-tests (Depends-on): Add
52344         unictype/category-{Z,Nl}.
52345         Reported by Simon Josefsson.
52346
52347 2008-01-08  Bruno Haible  <bruno@clisp.org>
52348
52349         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
52350         convention better.
52351         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
52352         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
52353         Reported by Peter Miller <millerp@canb.auug.org.au>.
52354
52355 2008-01-08  Eric Blake  <ebb9@byu.net>
52356
52357         Rewrite memmem to guarantee linear complexity without malloc.
52358         * lib/memmem.c (memmem): Use Two-Way rather than
52359         Knuth-Morris-Pratt, to allow O(1) space usage.
52360         (critical_factorization, two_way_short_needle)
52361         (two_way_long_needle): New functions.
52362         (knuth_morris_pratt): Delete.
52363         * modules/memmem (Depends-on): No longer need malloca or stdbool.
52364         Add stdint.
52365         * tests/test-memmem.c (main): Add tests for periodic needle and
52366         sublinear performance.
52367         * doc/functions/memmem.texi (memmem): Document other deficiencies
52368         in cygwin and older glibc.
52369
52370 2008-01-08  Bruno Haible  <bruno@clisp.org>
52371
52372         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
52373         augmentation.
52374
52375 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
52376
52377         Add a configure time option: --disable-acl.
52378         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
52379         AC_ARG_ENABLE(acl).
52380
52381 2008-01-06  Simon Josefsson  <simon@josefsson.org>
52382
52383         * tests/test-localename.c: Don't include obsolete "setenv.h".
52384
52385         * modules/localename-tests (Depends-on): Need unsetenv.
52386
52387 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52388
52389         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
52390
52391 2008-01-06  Colin Watson  <cjwatson@debian.org>
52392
52393         * users.txt: Add man-db.
52394
52395 2008-01-07  Bruno Haible  <bruno@clisp.org>
52396
52397         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
52398         previous section name.
52399
52400 2008-01-07  Bruno Haible  <bruno@clisp.org>
52401
52402         * lib/progname.c (set_program_name): Don't strip off a leading
52403         "lt-" prefix outside a .libs directory.
52404         Suggested by Paul Eggert.
52405
52406 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
52407             Bruno Haible  <bruno@clisp.org>
52408
52409         Improve memory cleanup in 'relocatable' module.
52410         * lib/relocatable.h (compute_curr_prefix): Change return type to
52411         'char *'.
52412         * lib/relocatable.c (compute_curr_prefix): Change return type to
52413         'char *'. Free curr_installdir after use.
52414         (relocate): Free curr_prefix_better after use.
52415         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
52416
52417 2008-01-01  Bruno Haible  <bruno@clisp.org>
52418
52419         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
52420         failure on older glibc systems.
52421         Reported by Peter Fales <psfales@alcatel-lucent.com>.
52422
52423 2008-01-05  Eric Blake  <ebb9@byu.net>
52424
52425         Avoid quadratic system memmem.
52426         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
52427         Reported by Ralf Wildenhues.
52428
52429         Fix memmem test for mingw.
52430         * modules/memmem-tests (configure.ac): Check for alarm.
52431         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
52432         it.
52433         * doc/functions/memmem.texi: New file.
52434         * doc/gnulib.texi (Function Substitutes): Add memmem.
52435         Reported by Bruno Haible.
52436
52437 2008-01-04  Bruno Haible  <bruno@clisp.org>
52438
52439         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
52440         Require gl_HEADER_STRINGS_H_DEFAULTS, not
52441         gl_HEADER_STRING_H_DEFAULTS.
52442
52443 2008-01-04  Eric Blake  <ebb9@byu.net>
52444
52445         Shorten duration of memmem test.
52446         * tests/test-memmem.c (main): Use alarm to declare failure if test
52447         is taking too long.
52448         Reported by Ralf Wildenhues.
52449
52450 2007-12-21  Simon Josefsson  <simon@josefsson.org>
52451
52452         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
52453         string, needed by strerror.
52454
52455 2008-01-03  Colin Watson  <cjwatson@debian.org>
52456             Bruno Haible  <bruno@clisp.org>
52457
52458         * doc/gnulib-tool.texi (Localization): New section.
52459
52460 2008-01-02  Bruno Haible  <bruno@clisp.org>
52461
52462         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
52463         variables to 'unsigned char *' type.
52464         Reported by Paul Eggert.
52465
52466 2008-01-02  Jim Meyering  <jim@meyering.net>
52467
52468         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
52469
52470 2007-12-31  Jim Meyering  <jim@meyering.net>
52471
52472         Avoid use of private FTS type name.
52473         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
52474
52475 2007-12-30  Karl Berry  <karl@gnu.org>
52476
52477         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
52478         work around defect in Texinfo and/or the standalone Info browser.
52479
52480 2007-12-30  Bruno Haible  <bruno@clisp.org>
52481
52482         Unify 5 copies of the KMP code.
52483         * lib/str-kmp.h: New file.
52484         * lib/c-strcasestr.c: Include str-kmp.h.
52485         (knuth_morris_pratt): Remove function.
52486         (c_strcasestr): Update.
52487         * lib/c-strstr.c: Include str-kmp.h.
52488         (knuth_morris_pratt): Remove function.
52489         (c_strcasestr): Update.
52490         * lib/mbscasestr.c: Include str-kmp.h.
52491         (knuth_morris_pratt_unibyte): Remove function.
52492         * lib/mbsstr.c: Include str-kmp.h.
52493         (knuth_morris_pratt_unibyte): Remove function.
52494         * lib/strcasestr.c: Include str-kmp.h.
52495         (knuth_morris_pratt): Remove function.
52496         (strcasestr): Update.
52497         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
52498         * modules/c-strstr (Files): Likewise.
52499         * modules/mbscasestr (Files): Likewise.
52500         * modules/mbsstr (Files): Likewise.
52501         * modules/strcasestr (Files): Likewise.
52502         Suggested by Paul Eggert.
52503
52504 2007-12-30  Bruno Haible  <bruno@clisp.org>
52505
52506         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
52507         defined.
52508
52509 2007-12-30  Bruno Haible  <bruno@clisp.org>
52510
52511         * lib/xmalloca.h: Include xalloc.h.
52512         (xnmalloca): New macro.
52513
52514 2007-12-30  Bruno Haible  <bruno@clisp.org>
52515
52516         * lib/malloca.h (nmalloca): New macro.
52517         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
52518         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
52519         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
52520         knuth_morris_pratt_multibyte): Likewise.
52521         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
52522         knuth_morris_pratt_multibyte): Likewise.
52523         * lib/memmem.c (knuth_morris_pratt): Likewise.
52524         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
52525
52526 2007-12-25  Bruno Haible  <bruno@clisp.org>
52527
52528         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
52529         * lib/glob.c: Don't include openat.h.
52530         (link_exists2_p): Add back the code that deals with the
52531         !GLOB_ALTDIRFUNC case.
52532         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
52533         let it do the filename concatenation.
52534         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
52535         * modules/glob (Depends-on): Remove openat.
52536
52537 2007-12-31  Bruno Haible  <bruno@clisp.org>
52538
52539         * modules/dirfd (License): Change to LGPLv2+.
52540         Approved by Jim Meyering.
52541
52542 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
52543
52544         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
52545         when multiplying M by sizeof (size_t).
52546
52547 2007-12-10  Martin Lambers  <marlam@marlam.de>
52548
52549         Override getpagesize on mingw.
52550         * lib/getpagesize.c: New file.
52551         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
52552         * modules/getpagesize (Files): Add lib/getpagesize.c.
52553         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
52554         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
52555         REPLACE_GETPAGESIZE.
52556         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
52557
52558 2007-12-25  Bruno Haible  <bruno@clisp.org>
52559
52560         * modules/localcharset (Notice): New field.
52561         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
52562         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
52563
52564 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
52565             Bruno Haible  <bruno@clisp.org>
52566
52567         Avoid using the syntax symbol() in formatted documentation.
52568         * MODULES.html.sh (func_module): When replacing symbol() with a
52569         hyperlink, remove the parentheses. Show an error if some remain.
52570         Recognize and render the '...' syntax.
52571         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
52572         Rework. Add paragraph about GCC's inlining.
52573         * doc/alloca.texi: Likewise.
52574         * doc/error.texi: Remove parentheses from symbol reference.
52575         * doc/gnulib-intro.texi: Likewise.
52576         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
52577         * modules/fnmatch (Description): Reword to say "the ... function".
52578         * modules/full-read (Description): Likewise.
52579         * modules/full-write (Description): Likewise.
52580         * modules/safe-read (Description): Likewise.
52581         * modules/safe-write (Description): Likewise.
52582         * modules/strchrnul (Description): Likewise.
52583         * modules/trim (Description): Likewise.
52584         * modules/error (Description): Remove parentheses from symbol
52585         references.
52586         * modules/verror (Description): Likewise.
52587         Reported by Karl Berry.
52588
52589 2007-12-25  Bruno Haible  <bruno@clisp.org>
52590
52591         Fixup after 2007-10-16 commit.
52592         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
52593
52594 2007-12-24  Bruno Haible  <bruno@clisp.org>
52595
52596         Make --enable-relocatable work with DESTDIR.
52597         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
52598         to compute installdir from destprog.
52599         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
52600         also set the RELOC_DESTDIR variable.
52601         Reported by Левашев Иван <octagram@bluebottle.com>.
52602
52603 2007-12-24  Bruno Haible  <bruno@clisp.org>
52604
52605         Fix link error due to xalloc_die().
52606         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
52607         of xreadlink.
52608         * lib/relocwrapper.c: Update comments.
52609         * build-aux/install-reloc: Remove xreadlink.c from file list.
52610         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
52611         xreadlink.c.
52612         Reported by Левашев Иван <octagram@bluebottle.com>.
52613
52614 2007-12-24  Bruno Haible  <bruno@clisp.org>
52615
52616         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
52617         * lib/setenv.h: Remove file.
52618         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
52619         lib/setenv.h.
52620         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
52621         (Depends-on): Add stdlib.
52622         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
52623         gl_FUNC_UNSETENV.
52624         (Include): Replace setenv.h with <stdlib.h>.
52625         * modules/unsetenv: New file.
52626         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
52627         * lib/unsetenv.c: Include <stdlib.h> first.
52628         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
52629         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
52630         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
52631         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
52632         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
52633         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
52634         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
52635         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
52636         * doc/functions/unsetenv.texi: Update.
52637         * modules/xsetenv (Depends-on): Add unsetenv.
52638         * modules/getdate (Depends-on): Likewise.
52639         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
52640         * lib/xsetenv.c: Don't include setenv.h.
52641         * lib/getdate.y: Likewise.
52642         * lib/relocwrapper.c: Likewise.
52643         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
52644         (Depends-on): Add stdlib.
52645         * NEWS: Mention the changes.
52646         Reported by Левашев Иван <octagram@bluebottle.com>.
52647
52648 2007-12-23  Bruno Haible  <bruno@clisp.org>
52649
52650         * lib/memmem.c (memmem): Use lowercase variable names. Tab
52651         indentation.
52652
52653 2007-12-23  Bruno Haible  <bruno@clisp.org>
52654
52655         * lib/c-strcasestr.c: Add more comments.
52656         * lib/c-strstr.c: Likewise.
52657         * lib/mbscasestr.c: Likewise.
52658         * lib/mbsstr.c: Likewise.
52659         * lib/strcasestr.c: Likewise.
52660         * lib/memmem.c: Likewise.
52661
52662 2007-12-23  Bruno Haible  <bruno@clisp.org>
52663
52664         * tests/test-memmem.c: Include <string.h> first.
52665
52666 2007-12-22  Bruno Haible  <bruno@clisp.org>
52667
52668         * gnulib-tool (func_create_testdir): Change $auxdir while generating
52669         the contents of $testsbase.
52670         Reported by Ralf Wildenhues.
52671
52672 2007-12-22  Bruno Haible  <bruno@clisp.org>
52673
52674         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
52675         two variables local_ldadd_before, local_ldadd_last.
52676
52677 2007-12-20  Eric Blake  <ebb9@byu.net>
52678
52679         Work around circular library issue when cross-compiling.
52680         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
52681         that progname.o does not need to pull in rpl_memcmp.
52682
52683 2007-12-19  Eric Blake  <ebb9@byu.net>
52684
52685         Fix memmem to avoid O(n^2) worst-case complexity.
52686         * lib/memmem.c (knuth_morris_pratt): New function.
52687         (memmem): Use it if first few naive iterations fail.
52688         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
52689         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
52690         * modules/memchr (License): Likewise.
52691         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
52692         malloca.
52693         * tests/test-memmem.c: Rewrite, borrowing ideas from
52694         test-mbsstr1.c; the old version wouldn't even compile!
52695         * modules/memmem-tests: New file.
52696         * lib/string.in.h (rpl_memmem): Add declaration.
52697         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
52698         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
52699         REPLACE_MEMMEM.
52700
52701 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
52702
52703         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
52704         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
52705         before any system include files, and undef after them all.  This
52706         should fix a problem on VMS reported by John E. Malmberg in
52707         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
52708
52709 2007-12-17  Eric Blake  <ebb9@byu.net>
52710
52711         Revert addition of verify, for BSD/OS.
52712         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
52713         can't handle large files, for the sake of obsolete platforms.
52714         * modules/fseeko (Depends-on): Remove verify.
52715         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
52716         * doc/functions/ftello.texi (ftello): Likewise.
52717         * doc/functions/fgetpos.texi (fgetpos): Likewise.
52718         Reported by Larry Jones.
52719
52720 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
52721
52722         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
52723         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
52724
52725 2007-12-17  Jim Meyering  <meyering@redhat.com>
52726
52727         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
52728         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
52729         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
52730         * modules/getcwd (Depends-on): Add openat.
52731         Reported by Petr Salinger.
52732
52733 2007-12-17  Bruno Haible  <bruno@clisp.org>
52734
52735         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
52736         avoid a segmentation fault of the configure test on x86_64 systems.
52737
52738 2007-12-15  Jim Meyering  <meyering@redhat.com>
52739
52740         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
52741
52742 2007-12-13  Eric Blake  <ebb9@byu.net>
52743
52744         Another fseek test.
52745         * tests/test-fseek.c (main): Also test ungetc handling.
52746         * tests/test-fseeko.c (main): Likewise.
52747         * modules/fseeko (Depends-on): Add verify.
52748         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
52749         large.
52750         Reported by Larry Jones.
52751
52752         Fix fseeko on mingw.
52753         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
52754         seek.
52755
52756         Beef up fseek tests.
52757         * tests/test-fseek.c (main): Also test eof handling.
52758         * tests/test-fseeko.c (main): Likewise.
52759         Reported by Larry Jones.
52760
52761 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
52762
52763         Fix fseeko on BSD-based platforms.
52764         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
52765         successful seek.
52766
52767 2007-12-12  Eric Blake  <ebb9@byu.net>
52768
52769         Allow circular dependency of separate libtests.a
52770         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
52771         when use_libtests.
52772
52773 2007-12-11  Eric Blake  <ebb9@byu.net>
52774
52775         Fix bug with -0.0L in previous patch.
52776         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
52777         * tests/test-isnan.c (main): Also test on zeroes.
52778         * tests/test-isnanf.c (main): Likewise.
52779         * tests/test-isnanl.h (main): Likewise.
52780
52781         Detect pseudo-denormals on x86 even when cross-compiling.
52782         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
52783         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
52784         invalid bit patterns that happen to satisfy ==.
52785
52786         Avoid link failures with separate libtests.a.
52787         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
52788         last, to satisfy circular dependencies.
52789
52790 2007-12-11  Eric Blake  <ebb9@byu.net>
52791         and Bruno Haible  <bruno@clisp.org>
52792
52793         Fix OpenBSD 4.0 <float.h> handling of long double.
52794         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
52795         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
52796         * doc/headers/float.texi (float.h): Document OpenBSD bug.
52797
52798 2007-12-11  Jim Meyering  <meyering@redhat.com>
52799
52800         * users.txt: Add libvirt.
52801
52802         Support versions of autoconf prior to 2.59c.
52803         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
52804         if it is not already defined.
52805
52806 2007-12-09  Bruno Haible  <bruno@clisp.org>
52807
52808         Let 'gnulib-tool --import' collect sources needed for the tests in
52809         tests/ rather than in lib/.
52810         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
52811         argument. If true, add rules to generate libtests.a, and put libtests.a
52812         into $(LDADD). Consider source files in subdirectories and set
52813         uses_subdirs.
52814         (func_emit_initmacro_start, func_emit_initmacro_end,
52815         func_emit_initmacro_done): Pass all arguments explicitly.
52816         (func_import): Determine two module lists main_modules,
52817         testsrelated_modules. Determine use_libtests. Determine two variables
52818         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
52819         instead of just sed_transform_lib_file. Determine two variables
52820         main_files and testsrelated_files. Compute 'files' as the union of
52821         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
52822         func_add_or_update. In the generated gnulib-comp.m4, collect the
52823         object files for tests/ in different variables than those for lib/.
52824         Substitute LIBTESTS_LIBDEPS.
52825         (func_create_testdir): Combine the uses_subdirs results from
52826         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
52827
52828 2007-12-09  Bruno Haible  <bruno@clisp.org>
52829
52830         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
52831         the build-aux directory.
52832
52833 2007-12-09  Bruno Haible  <bruno@clisp.org>
52834
52835         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
52836         introduced on 2006-09-09.
52837
52838 2007-12-07  Jim Meyering  <meyering@redhat.com>
52839
52840         Let these macros work also with autoconf-2.59.
52841         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
52842         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
52843         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
52844
52845 2007-12-06  Jim Meyering  <meyering@redhat.com>
52846
52847         Avoid a configure-time syntax error in gl_FUNC_ACL.
52848         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
52849         function in each branch, before testing the cache variable.
52850
52851 2007-12-04  Eric Blake  <ebb9@byu.net>
52852
52853         Make scripts executable.
52854         * build-aux/config.guess: Add execute permissions.
52855         * build-aux/config.sub: Likewise.
52856         * build-aux/gendocs.sh: Likewise.
52857
52858         Fix frexp on mingw.
52859         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
52860         cross-compiling.
52861         * doc/functions/frexp.texi (frexp): Document the bug.
52862
52863         Make cygwin fseeko check more reliable.
52864         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
52865         version numbers, rather than unrelated feature check.
52866         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
52867         * doc/functions/ftello.texi (ftello): Likewise.
52868         Reported by Bruno Haible.
52869
52870         * m4/strerror.m4: Bump version number.
52871
52872 2007-12-03  Bruno Haible  <bruno@clisp.org>
52873
52874         * doc/functions/mprotect.texi: Mention the mingw problem.
52875
52876 2007-12-03  Eric Blake  <ebb9@byu.net>
52877
52878         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
52879         REPLACE_STRERROR is initialized before this macro.
52880
52881 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
52882
52883         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
52884         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
52885         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
52886         put -lsec in even for programs other than 'ls'.  This fixes a problem
52887         for gettext reported by Bruno Haible in
52888         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
52889         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
52890         Add support for Solaris 10.  This isn't efficient, but should get the
52891         job done for now.
52892
52893 2007-12-03  James Youngman  <jay@gnu.org>
52894
52895         * doc/regexprops-generic.texi: change "an close-group" to "a
52896         close-group" and "illegal" to "not allowed".
52897
52898 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52899
52900         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
52901         pr_byname.h. Needed for the rare case when the maintainer has done
52902         "make maintainer-clean" in the source directory and then attempts a
52903         build outside the source directory.
52904         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
52905         scripts_byname.h.
52906
52907 2007-12-02  Martin Lambers <marlam@marlam.de>
52908             Bruno Haible  <bruno@clisp.org>
52909
52910         * lib/getpagesize.h: Remove file.
52911         * lib/unistd.in.h: Include declaration of getpagesize here.
52912         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
52913         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
52914         HAVE_SYS_PARAM_H.
52915         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
52916         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
52917         * modules/getpagesize (Files): Remove lib/getpagesize.h.
52918         (Depends-on): Add unistd.
52919         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
52920         (Include): Use <unistd.h> instead of getpagesize.h.
52921         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
52922         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
52923         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
52924         gl_GETPAGESIZE invocation, already handled by module dependency.
52925         * lib/pagealign_alloc.c: Don't include getpagesize.h.
52926
52927 2007-12-02  Bruno Haible  <bruno@clisp.org>
52928
52929         * modules/strings-tests: New file.
52930         * tests/test-strings.c: New file.
52931
52932         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
52933         * lib/strings.in.h: New file.
52934         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
52935         * m4/strings_h.m4: New file.
52936         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
52937         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
52938         * modules/strings: New file.
52939         * modules/string (Makefile.am): Update.
52940         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
52941         Reported by Karl Berry.
52942
52943 2007-12-01  Eric Blake  <ebb9@byu.net>
52944
52945         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
52946         accomodate fix in cygwin 1.5.25.
52947
52948 2007-12-01  Jim Meyering  <meyering@redhat.com>
52949
52950         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
52951         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
52952         that would inhibit utf8-optimization of a regexp containing line-
52953         or buffer-anchors, e.g., `^', `$'.
52954
52955 2007-11-30  Bruno Haible  <bruno@clisp.org>
52956
52957         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
52958         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
52959         glthread_recursive_lock_init.
52960         * lib/lock.c (glthread_recursive_lock_init)
52961         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
52962         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
52963
52964 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
52965
52966         New function qset_acl, like set_acl but with syscall semantics.
52967         * lib/acl.h (qset_acl): New decl.
52968         * lib/acl.c (qset_acl): New function.
52969         (set_acl): Use new function.  Use more-consistent diagnostics.
52970
52971 2007-11-28  Jim Meyering  <meyering@redhat.com>
52972
52973         * modules/physmem (License): Change from GPL to LGPLv2+.
52974
52975 2007-11-26  Bruno Haible  <bruno@clisp.org>
52976
52977         * lib/vasnprintf.c (decode_long_double): Don't abort if the
52978         'long double' type has excess precision.
52979         Reported by Jim Meyering in
52980         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
52981
52982 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52983
52984         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
52985         Sync from <http://gnu.org/licenses>.
52986         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
52987         with license text from same location.
52988         * doc/maintain.texi, doc/standards.texi:  Sync from
52989         <http://savannah.gnu.org/projects/gnustandards>.
52990
52991 2007-11-22  Ondřej Vašík  <ovasik@redhat.com>
52992         and Jim Meyering  <meyering@redhat.com>
52993
52994         Adjust getdate' grammar to accept a slightly more regular language.
52995         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
52996         Before, the former was rejected.
52997         * lib/getdate.y (digits_to_date_time): New function, factored
52998         out of ...
52999         (number): ...here.  Just call digits_to_date_time.
53000         (hybrid): New non-terminal to handle an <unsigned number,
53001         signed relative offset> sequence consistently.
53002
53003 2007-11-18  Jim Meyering  <meyering@redhat.com>
53004
53005         Pull my changes from coreutils:
53006         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
53007         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
53008         use of $gnulib_tool_option_extras, so that it's separated from the
53009         preceding argument.
53010
53011         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
53012         * build-aux/bootstrap (cp_mark_as_generated): Create any required
53013         parent destination directories before copying a file into place.
53014
53015 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
53016
53017         bootstrap: work also with 4-argument variant of AC_INIT
53018         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
53019
53020 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
53021
53022         Port test-getaddrinfo to Solaris.
53023         Problem reported by Bruno Haible in
53024         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
53025         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
53026         explanation of setting 'hints'.
53027         Don't reject an implementation merely because it returns EAI_SERVICE.
53028         (EAI_SERVICE): Define to 0 if not defined.
53029
53030 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
53031
53032         The license of gnu-make and posix-shell is now "GPLed build tool".
53033         * modules/gnu-make (License): Likewise.
53034         * modules/posix-shell (License): Likewise.
53035
53036         New module posix-shell, for determining a POSIX shell
53037         or perhaps something that is close enough to a POSIX shell.
53038         * m4/posix-shell.m4: New file.
53039         * modules/posix-shell: New file.
53040
53041         * MODULES.html.sh: Mention new module.
53042
53043         New module gnu-make, for determining whether we're using GNU Make.
53044         * m4/gnu-make.m4: New file.
53045         * modules/gnu-make: New file.
53046         * MODULES.html.sh: Mention new module.
53047
53048 2007-11-14  Jim Meyering  <meyering@redhat.com>
53049
53050         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
53051         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
53052         use this macro to create a function _definition_.
53053         Remove useless "#undef ARGMATCH_DIE".
53054
53055 2007-11-14  Bruno Haible  <bruno@clisp.org>
53056
53057         * lib/config.charset: Update for OpenBSD 4.1.
53058         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
53059
53060 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
53061
53062         Document 64-bit #if problems in stdint.texi.
53063         * doc/headers/stdint.texi (stdint.h): Mention problems with
53064         64-bit-#if, and how to work around them.
53065
53066         Don't insist on 'long long int' support in the preprocessor.  It
53067         breaks too many things.  For example, PRIdMAX still uses a 'long
53068         long int' format with the latest Sun compiler, even though
53069         HAVE_LONG_LONG_INT isn't defined due to that compiler's
53070         preprocessor problem.  This causes the latest coreutils to dump
53071         core on Solaris 10 sparc with the Sun C compiler.
53072         Instead, fix the 2007-10-16 problem in a different way, by evaluating
53073         the troublesome expressions at configure-time, not at #if-time.
53074         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
53075         preprocessor.
53076         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
53077         compile-time C checks, done at 'configure'-time.
53078         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
53079         * modules/inttypes (Makefile): Substitute the new symbols that
53080         gl_INTTYPES_H now generates.
53081         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
53082
53083 2007-11-12  Bruno Haible  <bruno@clisp.org>
53084
53085         Tests for Unicode character classification functions.
53086
53087         * modules/unictype/bidicategory-byname-tests: New file.
53088         * modules/unictype/bidicategory-name-tests: New file.
53089         * modules/unictype/bidicategory-of-tests: New file.
53090         * modules/unictype/bidicategory-test-tests: New file.
53091         * modules/unictype/block-list-tests: New file.
53092         * modules/unictype/block-of-tests: New file.
53093         * modules/unictype/block-test-tests: New file.
53094         * modules/unictype/category-C-tests: New file.
53095         * modules/unictype/category-Cc-tests: New file.
53096         * modules/unictype/category-Cf-tests: New file.
53097         * modules/unictype/category-Cn-tests: New file.
53098         * modules/unictype/category-Co-tests: New file.
53099         * modules/unictype/category-Cs-tests: New file.
53100         * modules/unictype/category-L-tests: New file.
53101         * modules/unictype/category-Ll-tests: New file.
53102         * modules/unictype/category-Lm-tests: New file.
53103         * modules/unictype/category-Lo-tests: New file.
53104         * modules/unictype/category-Lt-tests: New file.
53105         * modules/unictype/category-Lu-tests: New file.
53106         * modules/unictype/category-M-tests: New file.
53107         * modules/unictype/category-Mc-tests: New file.
53108         * modules/unictype/category-Me-tests: New file.
53109         * modules/unictype/category-Mn-tests: New file.
53110         * modules/unictype/category-N-tests: New file.
53111         * modules/unictype/category-Nd-tests: New file.
53112         * modules/unictype/category-Nl-tests: New file.
53113         * modules/unictype/category-No-tests: New file.
53114         * modules/unictype/category-P-tests: New file.
53115         * modules/unictype/category-Pc-tests: New file.
53116         * modules/unictype/category-Pd-tests: New file.
53117         * modules/unictype/category-Pe-tests: New file.
53118         * modules/unictype/category-Pf-tests: New file.
53119         * modules/unictype/category-Pi-tests: New file.
53120         * modules/unictype/category-Po-tests: New file.
53121         * modules/unictype/category-Ps-tests: New file.
53122         * modules/unictype/category-S-tests: New file.
53123         * modules/unictype/category-Sc-tests: New file.
53124         * modules/unictype/category-Sk-tests: New file.
53125         * modules/unictype/category-Sm-tests: New file.
53126         * modules/unictype/category-So-tests: New file.
53127         * modules/unictype/category-Z-tests: New file.
53128         * modules/unictype/category-Zl-tests: New file.
53129         * modules/unictype/category-Zp-tests: New file.
53130         * modules/unictype/category-Zs-tests: New file.
53131         * modules/unictype/category-and-not-tests: New file.
53132         * modules/unictype/category-and-tests: New file.
53133         * modules/unictype/category-byname-tests: New file.
53134         * modules/unictype/category-name-tests: New file.
53135         * modules/unictype/category-none-tests: New file.
53136         * modules/unictype/category-of-tests: New file.
53137         * modules/unictype/category-or-tests: New file.
53138         * modules/unictype/category-test-withtable-tests: New file.
53139         * modules/unictype/combining-class-tests: New file.
53140         * modules/unictype/ctype-alnum-tests: New file.
53141         * modules/unictype/ctype-alpha-tests: New file.
53142         * modules/unictype/ctype-blank-tests: New file.
53143         * modules/unictype/ctype-cntrl-tests: New file.
53144         * modules/unictype/ctype-digit-tests: New file.
53145         * modules/unictype/ctype-graph-tests: New file.
53146         * modules/unictype/ctype-lower-tests: New file.
53147         * modules/unictype/ctype-print-tests: New file.
53148         * modules/unictype/ctype-punct-tests: New file.
53149         * modules/unictype/ctype-space-tests: New file.
53150         * modules/unictype/ctype-upper-tests: New file.
53151         * modules/unictype/ctype-xdigit-tests: New file.
53152         * modules/unictype/decimal-digit-tests: New file.
53153         * modules/unictype/digit-tests: New file.
53154         * modules/unictype/mirror-tests: New file.
53155         * modules/unictype/numeric-tests: New file.
53156         * modules/unictype/property-alphabetic-tests: New file.
53157         * modules/unictype/property-ascii-hex-digit-tests: New file.
53158         * modules/unictype/property-bidi-arabic-digit-tests: New file.
53159         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
53160         * modules/unictype/property-bidi-block-separator-tests: New file.
53161         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
53162         * modules/unictype/property-bidi-common-separator-tests: New file.
53163         * modules/unictype/property-bidi-control-tests: New file.
53164         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
53165         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
53166         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
53167         * modules/unictype/property-bidi-european-digit-tests: New file.
53168         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
53169         * modules/unictype/property-bidi-left-to-right-tests: New file.
53170         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
53171         * modules/unictype/property-bidi-other-neutral-tests: New file.
53172         * modules/unictype/property-bidi-pdf-tests: New file.
53173         * modules/unictype/property-bidi-segment-separator-tests: New file.
53174         * modules/unictype/property-bidi-whitespace-tests: New file.
53175         * modules/unictype/property-byname-tests: New file.
53176         * modules/unictype/property-combining-tests: New file.
53177         * modules/unictype/property-composite-tests: New file.
53178         * modules/unictype/property-currency-symbol-tests: New file.
53179         * modules/unictype/property-dash-tests: New file.
53180         * modules/unictype/property-decimal-digit-tests: New file.
53181         * modules/unictype/property-default-ignorable-code-point-tests: New file.
53182         * modules/unictype/property-deprecated-tests: New file.
53183         * modules/unictype/property-diacritic-tests: New file.
53184         * modules/unictype/property-extender-tests: New file.
53185         * modules/unictype/property-format-control-tests: New file.
53186         * modules/unictype/property-grapheme-base-tests: New file.
53187         * modules/unictype/property-grapheme-extend-tests: New file.
53188         * modules/unictype/property-grapheme-link-tests: New file.
53189         * modules/unictype/property-hex-digit-tests: New file.
53190         * modules/unictype/property-hyphen-tests: New file.
53191         * modules/unictype/property-id-continue-tests: New file.
53192         * modules/unictype/property-id-start-tests: New file.
53193         * modules/unictype/property-ideographic-tests: New file.
53194         * modules/unictype/property-ids-binary-operator-tests: New file.
53195         * modules/unictype/property-ids-trinary-operator-tests: New file.
53196         * modules/unictype/property-ignorable-control-tests: New file.
53197         * modules/unictype/property-iso-control-tests: New file.
53198         * modules/unictype/property-join-control-tests: New file.
53199         * modules/unictype/property-left-of-pair-tests: New file.
53200         * modules/unictype/property-line-separator-tests: New file.
53201         * modules/unictype/property-logical-order-exception-tests: New file.
53202         * modules/unictype/property-lowercase-tests: New file.
53203         * modules/unictype/property-math-tests: New file.
53204         * modules/unictype/property-non-break-tests: New file.
53205         * modules/unictype/property-not-a-character-tests: New file.
53206         * modules/unictype/property-numeric-tests: New file.
53207         * modules/unictype/property-other-alphabetic-tests: New file.
53208         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
53209         * modules/unictype/property-other-grapheme-extend-tests: New file.
53210         * modules/unictype/property-other-id-continue-tests: New file.
53211         * modules/unictype/property-other-id-start-tests: New file.
53212         * modules/unictype/property-other-lowercase-tests: New file.
53213         * modules/unictype/property-other-math-tests: New file.
53214         * modules/unictype/property-other-uppercase-tests: New file.
53215         * modules/unictype/property-paired-punctuation-tests: New file.
53216         * modules/unictype/property-paragraph-separator-tests: New file.
53217         * modules/unictype/property-pattern-syntax-tests: New file.
53218         * modules/unictype/property-pattern-white-space-tests: New file.
53219         * modules/unictype/property-private-use-tests: New file.
53220         * modules/unictype/property-punctuation-tests: New file.
53221         * modules/unictype/property-quotation-mark-tests: New file.
53222         * modules/unictype/property-radical-tests: New file.
53223         * modules/unictype/property-sentence-terminal-tests: New file.
53224         * modules/unictype/property-soft-dotted-tests: New file.
53225         * modules/unictype/property-space-tests: New file.
53226         * modules/unictype/property-terminal-punctuation-tests: New file.
53227         * modules/unictype/property-test-tests: New file.
53228         * modules/unictype/property-titlecase-tests: New file.
53229         * modules/unictype/property-unassigned-code-value-tests: New file.
53230         * modules/unictype/property-unified-ideograph-tests: New file.
53231         * modules/unictype/property-uppercase-tests: New file.
53232         * modules/unictype/property-variation-selector-tests: New file.
53233         * modules/unictype/property-white-space-tests: New file.
53234         * modules/unictype/property-xid-continue-tests: New file.
53235         * modules/unictype/property-xid-start-tests: New file.
53236         * modules/unictype/property-zero-width-tests: New file.
53237         * modules/unictype/scripts-tests: New file.
53238         * modules/unictype/syntax-c-ident-tests: New file.
53239         * modules/unictype/syntax-c-whitespace-tests: New file.
53240         * modules/unictype/syntax-java-ident-tests: New file.
53241         * modules/unictype/syntax-java-whitespace-tests: New file.
53242         * tests/unictype/test-bidi_byname.c: New file.
53243         * tests/unictype/test-bidi_name.c: New file.
53244         * tests/unictype/test-bidi_of.c: New file.
53245         * tests/unictype/test-bidi_test.c: New file.
53246         * tests/unictype/test-block_list.c: New file.
53247         * tests/unictype/test-block_of.c: New file.
53248         * tests/unictype/test-block_test.c: New file.
53249         * tests/unictype/test-categ_and.c: New file.
53250         * tests/unictype/test-categ_and_not.c: New file.
53251         * tests/unictype/test-categ_byname.c: New file.
53252         * tests/unictype/test-categ_name.c: New file.
53253         * tests/unictype/test-categ_none.c: New file.
53254         * tests/unictype/test-categ_of.c: New file.
53255         * tests/unictype/test-categ_or.c: New file.
53256         * tests/unictype/test-categ_test_withtable.c: New file.
53257         * tests/unictype/test-combining.c: New file.
53258         * tests/unictype/test-decdigit.c: New file.
53259         * tests/unictype/test-digit.c: New file.
53260         * tests/unictype/test-mirror.c: New file.
53261         * tests/unictype/test-numeric.c: New file.
53262         * tests/unictype/test-pr_byname.c: New file.
53263         * tests/unictype/test-pr_test.c: New file.
53264         * tests/unictype/test-predicate-part1.h: New file.
53265         * tests/unictype/test-predicate-part2.h: New file.
53266         * tests/unictype/test-scripts.c: New file.
53267         * tests/unictype/test-sy_c_ident.c: New file.
53268         * tests/unictype/test-sy_java_ident.c: New file.
53269
53270         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
53271         for Unicode 5.0.0.
53272         * tests/unictype/test-categ_Cc.c: Likewise.
53273         * tests/unictype/test-categ_Cf.c: Likewise.
53274         * tests/unictype/test-categ_Cn.c: Likewise.
53275         * tests/unictype/test-categ_Co.c: Likewise.
53276         * tests/unictype/test-categ_Cs.c: Likewise.
53277         * tests/unictype/test-categ_L.c: Likewise.
53278         * tests/unictype/test-categ_Ll.c: Likewise.
53279         * tests/unictype/test-categ_Lm.c: Likewise.
53280         * tests/unictype/test-categ_Lo.c: Likewise.
53281         * tests/unictype/test-categ_Lt.c: Likewise.
53282         * tests/unictype/test-categ_Lu.c: Likewise.
53283         * tests/unictype/test-categ_M.c: Likewise.
53284         * tests/unictype/test-categ_Mc.c: Likewise.
53285         * tests/unictype/test-categ_Me.c: Likewise.
53286         * tests/unictype/test-categ_Mn.c: Likewise.
53287         * tests/unictype/test-categ_N.c: Likewise.
53288         * tests/unictype/test-categ_Nd.c: Likewise.
53289         * tests/unictype/test-categ_Nl.c: Likewise.
53290         * tests/unictype/test-categ_No.c: Likewise.
53291         * tests/unictype/test-categ_P.c: Likewise.
53292         * tests/unictype/test-categ_Pc.c: Likewise.
53293         * tests/unictype/test-categ_Pd.c: Likewise.
53294         * tests/unictype/test-categ_Pe.c: Likewise.
53295         * tests/unictype/test-categ_Pf.c: Likewise.
53296         * tests/unictype/test-categ_Pi.c: Likewise.
53297         * tests/unictype/test-categ_Po.c: Likewise.
53298         * tests/unictype/test-categ_Ps.c: Likewise.
53299         * tests/unictype/test-categ_S.c: Likewise.
53300         * tests/unictype/test-categ_Sc.c: Likewise.
53301         * tests/unictype/test-categ_Sk.c: Likewise.
53302         * tests/unictype/test-categ_Sm.c: Likewise.
53303         * tests/unictype/test-categ_So.c: Likewise.
53304         * tests/unictype/test-categ_Z.c: Likewise.
53305         * tests/unictype/test-categ_Zl.c: Likewise.
53306         * tests/unictype/test-categ_Zp.c: Likewise.
53307         * tests/unictype/test-categ_Zs.c: Likewise.
53308         * tests/unictype/test-ctype_alnum.c: Likewise.
53309         * tests/unictype/test-ctype_alpha.c: Likewise.
53310         * tests/unictype/test-ctype_blank.c: Likewise.
53311         * tests/unictype/test-ctype_cntrl.c: Likewise.
53312         * tests/unictype/test-ctype_digit.c: Likewise.
53313         * tests/unictype/test-ctype_graph.c: Likewise.
53314         * tests/unictype/test-ctype_lower.c: Likewise.
53315         * tests/unictype/test-ctype_print.c: Likewise.
53316         * tests/unictype/test-ctype_punct.c: Likewise.
53317         * tests/unictype/test-ctype_space.c: Likewise.
53318         * tests/unictype/test-ctype_upper.c: Likewise.
53319         * tests/unictype/test-ctype_xdigit.c: Likewise.
53320         * tests/unictype/test-decdigit.h: Likewise.
53321         * tests/unictype/test-digit.h: Likewise.
53322         * tests/unictype/test-numeric.h: Likewise.
53323         * tests/unictype/test-pr_alphabetic.c: Likewise.
53324         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
53325         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
53326         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
53327         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
53328         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
53329         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
53330         * tests/unictype/test-pr_bidi_control.c: Likewise.
53331         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
53332         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
53333         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
53334         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
53335         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
53336         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
53337         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
53338         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
53339         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
53340         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
53341         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
53342         * tests/unictype/test-pr_combining.c: Likewise.
53343         * tests/unictype/test-pr_composite.c: Likewise.
53344         * tests/unictype/test-pr_currency_symbol.c: Likewise.
53345         * tests/unictype/test-pr_dash.c: Likewise.
53346         * tests/unictype/test-pr_decimal_digit.c: Likewise.
53347         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
53348         * tests/unictype/test-pr_deprecated.c: Likewise.
53349         * tests/unictype/test-pr_diacritic.c: Likewise.
53350         * tests/unictype/test-pr_extender.c: Likewise.
53351         * tests/unictype/test-pr_format_control.c: Likewise.
53352         * tests/unictype/test-pr_grapheme_base.c: Likewise.
53353         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
53354         * tests/unictype/test-pr_grapheme_link.c: Likewise.
53355         * tests/unictype/test-pr_hex_digit.c: Likewise.
53356         * tests/unictype/test-pr_hyphen.c: Likewise.
53357         * tests/unictype/test-pr_id_continue.c: Likewise.
53358         * tests/unictype/test-pr_id_start.c: Likewise.
53359         * tests/unictype/test-pr_ideographic.c: Likewise.
53360         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
53361         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
53362         * tests/unictype/test-pr_ignorable_control.c: Likewise.
53363         * tests/unictype/test-pr_iso_control.c: Likewise.
53364         * tests/unictype/test-pr_join_control.c: Likewise.
53365         * tests/unictype/test-pr_left_of_pair.c: Likewise.
53366         * tests/unictype/test-pr_line_separator.c: Likewise.
53367         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
53368         * tests/unictype/test-pr_lowercase.c: Likewise.
53369         * tests/unictype/test-pr_math.c: Likewise.
53370         * tests/unictype/test-pr_non_break.c: Likewise.
53371         * tests/unictype/test-pr_not_a_character.c: Likewise.
53372         * tests/unictype/test-pr_numeric.c: Likewise.
53373         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
53374         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
53375         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
53376         * tests/unictype/test-pr_other_id_continue.c: Likewise.
53377         * tests/unictype/test-pr_other_id_start.c: Likewise.
53378         * tests/unictype/test-pr_other_lowercase.c: Likewise.
53379         * tests/unictype/test-pr_other_math.c: Likewise.
53380         * tests/unictype/test-pr_other_uppercase.c: Likewise.
53381         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
53382         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
53383         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
53384         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
53385         * tests/unictype/test-pr_private_use.c: Likewise.
53386         * tests/unictype/test-pr_punctuation.c: Likewise.
53387         * tests/unictype/test-pr_quotation_mark.c: Likewise.
53388         * tests/unictype/test-pr_radical.c: Likewise.
53389         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
53390         * tests/unictype/test-pr_soft_dotted.c: Likewise.
53391         * tests/unictype/test-pr_space.c: Likewise.
53392         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
53393         * tests/unictype/test-pr_titlecase.c: Likewise.
53394         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
53395         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
53396         * tests/unictype/test-pr_uppercase.c: Likewise.
53397         * tests/unictype/test-pr_variation_selector.c: Likewise.
53398         * tests/unictype/test-pr_white_space.c: Likewise.
53399         * tests/unictype/test-pr_xid_continue.c: Likewise.
53400         * tests/unictype/test-pr_xid_start.c: Likewise.
53401         * tests/unictype/test-pr_zero_width.c: Likewise.
53402         * tests/unictype/test-sy_c_whitespace.c: Likewise.
53403         * tests/unictype/test-sy_java_whitespace.c: Likewise.
53404
53405 2007-11-12  Bruno Haible  <bruno@clisp.org>
53406
53407         Unicode character classification functions.
53408         * lib/unictype.h: New file.
53409         * modules/unictype/base: New file.
53410         * modules/unictype/category-L: New file.
53411         * modules/unictype/category-Lu: New file.
53412         * modules/unictype/category-Ll: New file.
53413         * modules/unictype/category-Lt: New file.
53414         * modules/unictype/category-Lm: New file.
53415         * modules/unictype/category-Lo: New file.
53416         * modules/unictype/category-M: New file.
53417         * modules/unictype/category-Mn: New file.
53418         * modules/unictype/category-Mc: New file.
53419         * modules/unictype/category-Me: New file.
53420         * modules/unictype/category-N: New file.
53421         * modules/unictype/category-Nd: New file.
53422         * modules/unictype/category-Nl: New file.
53423         * modules/unictype/category-No: New file.
53424         * modules/unictype/category-P: New file.
53425         * modules/unictype/category-Pc: New file.
53426         * modules/unictype/category-Pd: New file.
53427         * modules/unictype/category-Ps: New file.
53428         * modules/unictype/category-Pe: New file.
53429         * modules/unictype/category-Pi: New file.
53430         * modules/unictype/category-Pf: New file.
53431         * modules/unictype/category-Po: New file.
53432         * modules/unictype/category-S: New file.
53433         * modules/unictype/category-Sm: New file.
53434         * modules/unictype/category-Sc: New file.
53435         * modules/unictype/category-Sk: New file.
53436         * modules/unictype/category-So: New file.
53437         * modules/unictype/category-Z: New file.
53438         * modules/unictype/category-Zs: New file.
53439         * modules/unictype/category-Zl: New file.
53440         * modules/unictype/category-Zp: New file.
53441         * modules/unictype/category-C: New file.
53442         * modules/unictype/category-Cc: New file.
53443         * modules/unictype/category-Cf: New file.
53444         * modules/unictype/category-Cs: New file.
53445         * modules/unictype/category-Co: New file.
53446         * modules/unictype/category-Cn: New file.
53447         * modules/unictype/category-or: New file.
53448         * modules/unictype/category-of: New file.
53449         * modules/unictype/category-test: New file.
53450         * modules/unictype/category-test-withtable: New file.
53451         * modules/unictype/category-byname: New file.
53452         * modules/unictype/category-none: New file.
53453         * modules/unictype/category-and: New file.
53454         * modules/unictype/category-and-not: New file.
53455         * modules/unictype/category-name: New file.
53456         * modules/unictype/combining-class: New file.
53457         * modules/unictype/category-all: New file.
53458         * modules/unictype/bidicategory-all: New file.
53459         * modules/unictype/bidicategory-byname: New file.
53460         * modules/unictype/bidicategory-name: New file.
53461         * modules/unictype/bidicategory-of: New file.
53462         * modules/unictype/bidicategory-test: New file.
53463         * modules/unictype/decimal-digit: New file.
53464         * modules/unictype/digit: New file.
53465         * modules/unictype/numeric: New file.
53466         * modules/unictype/mirror: New file.
53467         * modules/unictype/property-white-space: New file.
53468         * modules/unictype/property-alphabetic: New file.
53469         * modules/unictype/property-other-alphabetic: New file.
53470         * modules/unictype/property-not-a-character: New file.
53471         * modules/unictype/property-default-ignorable-code-point: New file.
53472         * modules/unictype/property-other-default-ignorable-code-point: New
53473         file.
53474         * modules/unictype/property-deprecated: New file.
53475         * modules/unictype/property-logical-order-exception: New file.
53476         * modules/unictype/property-variation-selector: New file.
53477         * modules/unictype/property-private-use: New file.
53478         * modules/unictype/property-unassigned-code-value: New file.
53479         * modules/unictype/property-uppercase: New file.
53480         * modules/unictype/property-other-uppercase: New file.
53481         * modules/unictype/property-lowercase: New file.
53482         * modules/unictype/property-other-lowercase: New file.
53483         * modules/unictype/property-titlecase: New file.
53484         * modules/unictype/property-soft-dotted: New file.
53485         * modules/unictype/property-id-start: New file.
53486         * modules/unictype/property-other-id-start: New file.
53487         * modules/unictype/property-id-continue: New file.
53488         * modules/unictype/property-other-id-continue: New file.
53489         * modules/unictype/property-xid-start: New file.
53490         * modules/unictype/property-xid-continue: New file.
53491         * modules/unictype/property-pattern-white-space: New file.
53492         * modules/unictype/property-pattern-syntax: New file.
53493         * modules/unictype/property-join-control: New file.
53494         * modules/unictype/property-grapheme-base: New file.
53495         * modules/unictype/property-grapheme-extend: New file.
53496         * modules/unictype/property-other-grapheme-extend: New file.
53497         * modules/unictype/property-grapheme-link: New file.
53498         * modules/unictype/property-bidi-control: New file.
53499         * modules/unictype/property-bidi-left-to-right: New file.
53500         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
53501         * modules/unictype/property-bidi-arabic-right-to-left: New file.
53502         * modules/unictype/property-bidi-european-digit: New file.
53503         * modules/unictype/property-bidi-eur-num-separator: New file.
53504         * modules/unictype/property-bidi-eur-num-terminator: New file.
53505         * modules/unictype/property-bidi-arabic-digit: New file.
53506         * modules/unictype/property-bidi-common-separator: New file.
53507         * modules/unictype/property-bidi-block-separator: New file.
53508         * modules/unictype/property-bidi-segment-separator: New file.
53509         * modules/unictype/property-bidi-whitespace: New file.
53510         * modules/unictype/property-bidi-non-spacing-mark: New file.
53511         * modules/unictype/property-bidi-boundary-neutral: New file.
53512         * modules/unictype/property-bidi-pdf: New file.
53513         * modules/unictype/property-bidi-embedding-or-override: New file.
53514         * modules/unictype/property-bidi-other-neutral: New file.
53515         * modules/unictype/property-hex-digit: New file.
53516         * modules/unictype/property-ascii-hex-digit: New file.
53517         * modules/unictype/property-ideographic: New file.
53518         * modules/unictype/property-unified-ideograph: New file.
53519         * modules/unictype/property-radical: New file.
53520         * modules/unictype/property-ids-binary-operator: New file.
53521         * modules/unictype/property-ids-trinary-operator: New file.
53522         * modules/unictype/property-zero-width: New file.
53523         * modules/unictype/property-space: New file.
53524         * modules/unictype/property-non-break: New file.
53525         * modules/unictype/property-iso-control: New file.
53526         * modules/unictype/property-format-control: New file.
53527         * modules/unictype/property-dash: New file.
53528         * modules/unictype/property-hyphen: New file.
53529         * modules/unictype/property-punctuation: New file.
53530         * modules/unictype/property-line-separator: New file.
53531         * modules/unictype/property-paragraph-separator: New file.
53532         * modules/unictype/property-quotation-mark: New file.
53533         * modules/unictype/property-sentence-terminal: New file.
53534         * modules/unictype/property-terminal-punctuation: New file.
53535         * modules/unictype/property-currency-symbol: New file.
53536         * modules/unictype/property-math: New file.
53537         * modules/unictype/property-other-math: New file.
53538         * modules/unictype/property-paired-punctuation: New file.
53539         * modules/unictype/property-left-of-pair: New file.
53540         * modules/unictype/property-combining: New file.
53541         * modules/unictype/property-composite: New file.
53542         * modules/unictype/property-decimal-digit: New file.
53543         * modules/unictype/property-numeric: New file.
53544         * modules/unictype/property-diacritic: New file.
53545         * modules/unictype/property-extender: New file.
53546         * modules/unictype/property-ignorable-control: New file.
53547         * modules/unictype/property-test: New file.
53548         * modules/unictype/property-byname: New file.
53549         * modules/unictype/property-all: New file.
53550         * modules/unictype/scripts: New file.
53551         * modules/unictype/scripts-all: New file.
53552         * modules/unictype/block-of: New file.
53553         * modules/unictype/block-test: New file.
53554         * modules/unictype/block-list: New file.
53555         * modules/unictype/block-all: New file.
53556         * modules/unictype/syntax-c-whitespace: New file.
53557         * modules/unictype/syntax-java-whitespace: New file.
53558         * modules/unictype/syntax-c-ident: New file.
53559         * modules/unictype/syntax-java-ident: New file.
53560         * modules/unictype/ctype-alnum: New file.
53561         * modules/unictype/ctype-alpha: New file.
53562         * modules/unictype/ctype-cntrl: New file.
53563         * modules/unictype/ctype-digit: New file.
53564         * modules/unictype/ctype-graph: New file.
53565         * modules/unictype/ctype-lower: New file.
53566         * modules/unictype/ctype-print: New file.
53567         * modules/unictype/ctype-punct: New file.
53568         * modules/unictype/ctype-space: New file.
53569         * modules/unictype/ctype-upper: New file.
53570         * modules/unictype/ctype-xdigit: New file.
53571         * modules/unictype/ctype-blank: New file.
53572         * lib/unictype/bidi_byname.c: New file.
53573         * lib/unictype/bidi_name.c: New file.
53574         * lib/unictype/bidi_of.c: New file.
53575         * lib/unictype/bidi_test.c: New file.
53576         * lib/unictype/bitmap.h: New file.
53577         * lib/unictype/block_test.c: New file.
53578         * lib/unictype/blocks.c: New file.
53579         * lib/unictype/categ_C.c: New file.
53580         * lib/unictype/categ_Cc.c: New file.
53581         * lib/unictype/categ_Cf.c: New file.
53582         * lib/unictype/categ_Cn.c: New file.
53583         * lib/unictype/categ_Co.c: New file.
53584         * lib/unictype/categ_Cs.c: New file.
53585         * lib/unictype/categ_L.c: New file.
53586         * lib/unictype/categ_Ll.c: New file.
53587         * lib/unictype/categ_Lm.c: New file.
53588         * lib/unictype/categ_Lo.c: New file.
53589         * lib/unictype/categ_Lt.c: New file.
53590         * lib/unictype/categ_Lu.c: New file.
53591         * lib/unictype/categ_M.c: New file.
53592         * lib/unictype/categ_Mc.c: New file.
53593         * lib/unictype/categ_Me.c: New file.
53594         * lib/unictype/categ_Mn.c: New file.
53595         * lib/unictype/categ_N.c: New file.
53596         * lib/unictype/categ_Nd.c: New file.
53597         * lib/unictype/categ_Nl.c: New file.
53598         * lib/unictype/categ_No.c: New file.
53599         * lib/unictype/categ_P.c: New file.
53600         * lib/unictype/categ_Pc.c: New file.
53601         * lib/unictype/categ_Pd.c: New file.
53602         * lib/unictype/categ_Pe.c: New file.
53603         * lib/unictype/categ_Pf.c: New file.
53604         * lib/unictype/categ_Pi.c: New file.
53605         * lib/unictype/categ_Po.c: New file.
53606         * lib/unictype/categ_Ps.c: New file.
53607         * lib/unictype/categ_S.c: New file.
53608         * lib/unictype/categ_Sc.c: New file.
53609         * lib/unictype/categ_Sk.c: New file.
53610         * lib/unictype/categ_Sm.c: New file.
53611         * lib/unictype/categ_So.c: New file.
53612         * lib/unictype/categ_Z.c: New file.
53613         * lib/unictype/categ_Zl.c: New file.
53614         * lib/unictype/categ_Zp.c: New file.
53615         * lib/unictype/categ_Zs.c: New file.
53616         * lib/unictype/categ_and.c: New file.
53617         * lib/unictype/categ_and_not.c: New file.
53618         * lib/unictype/categ_byname.c: New file.
53619         * lib/unictype/categ_name.c: New file.
53620         * lib/unictype/categ_none.c: New file.
53621         * lib/unictype/categ_of.c: New file.
53622         * lib/unictype/categ_or.c: New file.
53623         * lib/unictype/categ_test.c: New file.
53624         * lib/unictype/combining.c: New file.
53625         * lib/unictype/ctype_alnum.c: New file.
53626         * lib/unictype/ctype_alpha.c: New file.
53627         * lib/unictype/ctype_blank.c: New file.
53628         * lib/unictype/ctype_cntrl.c: New file.
53629         * lib/unictype/ctype_digit.c: New file.
53630         * lib/unictype/ctype_graph.c: New file.
53631         * lib/unictype/ctype_lower.c: New file.
53632         * lib/unictype/ctype_print.c: New file.
53633         * lib/unictype/ctype_punct.c: New file.
53634         * lib/unictype/ctype_space.c: New file.
53635         * lib/unictype/ctype_upper.c: New file.
53636         * lib/unictype/ctype_xdigit.c: New file.
53637         * lib/unictype/decdigit.c: New file.
53638         * lib/unictype/digit.c: New file.
53639         * lib/unictype/identsyntaxmap.h: New file.
53640         * lib/unictype/mirror.c: New file.
53641         * lib/unictype/numeric.c: New file.
53642         * lib/unictype/pr_alphabetic.c: New file.
53643         * lib/unictype/pr_ascii_hex_digit.c: New file.
53644         * lib/unictype/pr_bidi_arabic_digit.c: New file.
53645         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
53646         * lib/unictype/pr_bidi_block_separator.c: New file.
53647         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
53648         * lib/unictype/pr_bidi_common_separator.c: New file.
53649         * lib/unictype/pr_bidi_control.c: New file.
53650         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
53651         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
53652         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
53653         * lib/unictype/pr_bidi_european_digit.c: New file.
53654         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
53655         * lib/unictype/pr_bidi_left_to_right.c: New file.
53656         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
53657         * lib/unictype/pr_bidi_other_neutral.c: New file.
53658         * lib/unictype/pr_bidi_pdf.c: New file.
53659         * lib/unictype/pr_bidi_segment_separator.c: New file.
53660         * lib/unictype/pr_bidi_whitespace.c: New file.
53661         * lib/unictype/pr_byname.c: New file.
53662         * lib/unictype/pr_byname.gperf: New file.
53663         * lib/unictype/pr_combining.c: New file.
53664         * lib/unictype/pr_composite.c: New file.
53665         * lib/unictype/pr_currency_symbol.c: New file.
53666         * lib/unictype/pr_dash.c: New file.
53667         * lib/unictype/pr_decimal_digit.c: New file.
53668         * lib/unictype/pr_default_ignorable_code_point.c: New file.
53669         * lib/unictype/pr_deprecated.c: New file.
53670         * lib/unictype/pr_diacritic.c: New file.
53671         * lib/unictype/pr_extender.c: New file.
53672         * lib/unictype/pr_format_control.c: New file.
53673         * lib/unictype/pr_grapheme_base.c: New file.
53674         * lib/unictype/pr_grapheme_extend.c: New file.
53675         * lib/unictype/pr_grapheme_link.c: New file.
53676         * lib/unictype/pr_hex_digit.c: New file.
53677         * lib/unictype/pr_hyphen.c: New file.
53678         * lib/unictype/pr_id_continue.c: New file.
53679         * lib/unictype/pr_id_start.c: New file.
53680         * lib/unictype/pr_ideographic.c: New file.
53681         * lib/unictype/pr_ids_binary_operator.c: New file.
53682         * lib/unictype/pr_ids_trinary_operator.c: New file.
53683         * lib/unictype/pr_ignorable_control.c: New file.
53684         * lib/unictype/pr_iso_control.c: New file.
53685         * lib/unictype/pr_join_control.c: New file.
53686         * lib/unictype/pr_left_of_pair.c: New file.
53687         * lib/unictype/pr_line_separator.c: New file.
53688         * lib/unictype/pr_logical_order_exception.c: New file.
53689         * lib/unictype/pr_lowercase.c: New file.
53690         * lib/unictype/pr_math.c: New file.
53691         * lib/unictype/pr_non_break.c: New file.
53692         * lib/unictype/pr_not_a_character.c: New file.
53693         * lib/unictype/pr_numeric.c: New file.
53694         * lib/unictype/pr_other_alphabetic.c: New file.
53695         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
53696         * lib/unictype/pr_other_grapheme_extend.c: New file.
53697         * lib/unictype/pr_other_id_continue.c: New file.
53698         * lib/unictype/pr_other_id_start.c: New file.
53699         * lib/unictype/pr_other_lowercase.c: New file.
53700         * lib/unictype/pr_other_math.c: New file.
53701         * lib/unictype/pr_other_uppercase.c: New file.
53702         * lib/unictype/pr_paired_punctuation.c: New file.
53703         * lib/unictype/pr_paragraph_separator.c: New file.
53704         * lib/unictype/pr_pattern_syntax.c: New file.
53705         * lib/unictype/pr_pattern_white_space.c: New file.
53706         * lib/unictype/pr_private_use.c: New file.
53707         * lib/unictype/pr_punctuation.c: New file.
53708         * lib/unictype/pr_quotation_mark.c: New file.
53709         * lib/unictype/pr_radical.c: New file.
53710         * lib/unictype/pr_sentence_terminal.c: New file.
53711         * lib/unictype/pr_soft_dotted.c: New file.
53712         * lib/unictype/pr_space.c: New file.
53713         * lib/unictype/pr_terminal_punctuation.c: New file.
53714         * lib/unictype/pr_test.c: New file.
53715         * lib/unictype/pr_titlecase.c: New file.
53716         * lib/unictype/pr_unassigned_code_value.c: New file.
53717         * lib/unictype/pr_unified_ideograph.c: New file.
53718         * lib/unictype/pr_uppercase.c: New file.
53719         * lib/unictype/pr_variation_selector.c: New file.
53720         * lib/unictype/pr_white_space.c: New file.
53721         * lib/unictype/pr_xid_continue.c: New file.
53722         * lib/unictype/pr_xid_start.c: New file.
53723         * lib/unictype/pr_zero_width.c: New file.
53724         * lib/unictype/scripts.c: New file.
53725         * lib/unictype/sy_c_ident.c: New file.
53726         * lib/unictype/sy_c_whitespace.c: New file.
53727         * lib/unictype/sy_java_ident.c: New file.
53728         * lib/unictype/sy_java_whitespace.c: New file.
53729
53730         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
53731         Unicode 5.0.0.
53732         * lib/unictype/blocks.h: Likewise.
53733         * lib/unictype/categ_C.h: Likewise.
53734         * lib/unictype/categ_Cc.h: Likewise.
53735         * lib/unictype/categ_Cf.h: Likewise.
53736         * lib/unictype/categ_Cn.h: Likewise.
53737         * lib/unictype/categ_Co.h: Likewise.
53738         * lib/unictype/categ_Cs.h: Likewise.
53739         * lib/unictype/categ_L.h: Likewise.
53740         * lib/unictype/categ_Ll.h: Likewise.
53741         * lib/unictype/categ_Lm.h: Likewise.
53742         * lib/unictype/categ_Lo.h: Likewise.
53743         * lib/unictype/categ_Lt.h: Likewise.
53744         * lib/unictype/categ_Lu.h: Likewise.
53745         * lib/unictype/categ_M.h: Likewise.
53746         * lib/unictype/categ_Mc.h: Likewise.
53747         * lib/unictype/categ_Me.h: Likewise.
53748         * lib/unictype/categ_Mn.h: Likewise.
53749         * lib/unictype/categ_N.h: Likewise.
53750         * lib/unictype/categ_Nd.h: Likewise.
53751         * lib/unictype/categ_Nl.h: Likewise.
53752         * lib/unictype/categ_No.h: Likewise.
53753         * lib/unictype/categ_P.h: Likewise.
53754         * lib/unictype/categ_Pc.h: Likewise.
53755         * lib/unictype/categ_Pd.h: Likewise.
53756         * lib/unictype/categ_Pe.h: Likewise.
53757         * lib/unictype/categ_Pf.h: Likewise.
53758         * lib/unictype/categ_Pi.h: Likewise.
53759         * lib/unictype/categ_Po.h: Likewise.
53760         * lib/unictype/categ_Ps.h: Likewise.
53761         * lib/unictype/categ_S.h: Likewise.
53762         * lib/unictype/categ_Sc.h: Likewise.
53763         * lib/unictype/categ_Sk.h: Likewise.
53764         * lib/unictype/categ_Sm.h: Likewise.
53765         * lib/unictype/categ_So.h: Likewise.
53766         * lib/unictype/categ_Z.h: Likewise.
53767         * lib/unictype/categ_Zl.h: Likewise.
53768         * lib/unictype/categ_Zp.h: Likewise.
53769         * lib/unictype/categ_Zs.h: Likewise.
53770         * lib/unictype/categ_of.h: Likewise.
53771         * lib/unictype/combining.h: Likewise.
53772         * lib/unictype/ctype_alnum.h: Likewise.
53773         * lib/unictype/ctype_alpha.h: Likewise.
53774         * lib/unictype/ctype_blank.h: Likewise.
53775         * lib/unictype/ctype_cntrl.h: Likewise.
53776         * lib/unictype/ctype_digit.h: Likewise.
53777         * lib/unictype/ctype_graph.h: Likewise.
53778         * lib/unictype/ctype_lower.h: Likewise.
53779         * lib/unictype/ctype_print.h: Likewise.
53780         * lib/unictype/ctype_punct.h: Likewise.
53781         * lib/unictype/ctype_space.h: Likewise.
53782         * lib/unictype/ctype_upper.h: Likewise.
53783         * lib/unictype/ctype_xdigit.h: Likewise.
53784         * lib/unictype/decdigit.h: Likewise.
53785         * lib/unictype/digit.h: Likewise.
53786         * lib/unictype/mirror.h: Likewise.
53787         * lib/unictype/numeric.h: Likewise.
53788         * lib/unictype/pr_alphabetic.h: Likewise.
53789         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
53790         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
53791         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
53792         * lib/unictype/pr_bidi_block_separator.h: Likewise.
53793         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
53794         * lib/unictype/pr_bidi_common_separator.h: Likewise.
53795         * lib/unictype/pr_bidi_control.h: Likewise.
53796         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
53797         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
53798         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
53799         * lib/unictype/pr_bidi_european_digit.h: Likewise.
53800         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
53801         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
53802         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
53803         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
53804         * lib/unictype/pr_bidi_pdf.h: Likewise.
53805         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
53806         * lib/unictype/pr_bidi_whitespace.h: Likewise.
53807         * lib/unictype/pr_combining.h: Likewise.
53808         * lib/unictype/pr_composite.h: Likewise.
53809         * lib/unictype/pr_currency_symbol.h: Likewise.
53810         * lib/unictype/pr_dash.h: Likewise.
53811         * lib/unictype/pr_decimal_digit.h: Likewise.
53812         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
53813         * lib/unictype/pr_deprecated.h: Likewise.
53814         * lib/unictype/pr_diacritic.h: Likewise.
53815         * lib/unictype/pr_extender.h: Likewise.
53816         * lib/unictype/pr_format_control.h: Likewise.
53817         * lib/unictype/pr_grapheme_base.h: Likewise.
53818         * lib/unictype/pr_grapheme_extend.h: Likewise.
53819         * lib/unictype/pr_grapheme_link.h: Likewise.
53820         * lib/unictype/pr_hex_digit.h: Likewise.
53821         * lib/unictype/pr_hyphen.h: Likewise.
53822         * lib/unictype/pr_id_continue.h: Likewise.
53823         * lib/unictype/pr_id_start.h: Likewise.
53824         * lib/unictype/pr_ideographic.h: Likewise.
53825         * lib/unictype/pr_ids_binary_operator.h: Likewise.
53826         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
53827         * lib/unictype/pr_ignorable_control.h: Likewise.
53828         * lib/unictype/pr_iso_control.h: Likewise.
53829         * lib/unictype/pr_join_control.h: Likewise.
53830         * lib/unictype/pr_left_of_pair.h: Likewise.
53831         * lib/unictype/pr_line_separator.h: Likewise.
53832         * lib/unictype/pr_logical_order_exception.h: Likewise.
53833         * lib/unictype/pr_lowercase.h: Likewise.
53834         * lib/unictype/pr_math.h: Likewise.
53835         * lib/unictype/pr_non_break.h: Likewise.
53836         * lib/unictype/pr_not_a_character.h: Likewise.
53837         * lib/unictype/pr_numeric.h: Likewise.
53838         * lib/unictype/pr_other_alphabetic.h: Likewise.
53839         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
53840         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
53841         * lib/unictype/pr_other_id_continue.h: Likewise.
53842         * lib/unictype/pr_other_id_start.h: Likewise.
53843         * lib/unictype/pr_other_lowercase.h: Likewise.
53844         * lib/unictype/pr_other_math.h: Likewise.
53845         * lib/unictype/pr_other_uppercase.h: Likewise.
53846         * lib/unictype/pr_paired_punctuation.h: Likewise.
53847         * lib/unictype/pr_paragraph_separator.h: Likewise.
53848         * lib/unictype/pr_pattern_syntax.h: Likewise.
53849         * lib/unictype/pr_pattern_white_space.h: Likewise.
53850         * lib/unictype/pr_private_use.h: Likewise.
53851         * lib/unictype/pr_punctuation.h: Likewise.
53852         * lib/unictype/pr_quotation_mark.h: Likewise.
53853         * lib/unictype/pr_radical.h: Likewise.
53854         * lib/unictype/pr_sentence_terminal.h: Likewise.
53855         * lib/unictype/pr_soft_dotted.h: Likewise.
53856         * lib/unictype/pr_space.h: Likewise.
53857         * lib/unictype/pr_terminal_punctuation.h: Likewise.
53858         * lib/unictype/pr_titlecase.h: Likewise.
53859         * lib/unictype/pr_unassigned_code_value.h: Likewise.
53860         * lib/unictype/pr_unified_ideograph.h: Likewise.
53861         * lib/unictype/pr_uppercase.h: Likewise.
53862         * lib/unictype/pr_variation_selector.h: Likewise.
53863         * lib/unictype/pr_white_space.h: Likewise.
53864         * lib/unictype/pr_xid_continue.h: Likewise.
53865         * lib/unictype/pr_xid_start.h: Likewise.
53866         * lib/unictype/pr_zero_width.h: Likewise.
53867         * lib/unictype/scripts.h: Likewise.
53868         * lib/unictype/scripts_byname.gperf: Likewise.
53869         * lib/unictype/sy_c_ident.h: Likewise.
53870         * lib/unictype/sy_c_whitespace.h: Likewise.
53871         * lib/unictype/sy_java_ident.h: Likewise.
53872         * lib/unictype/sy_java_whitespace.h: Likewise.
53873
53874         * lib/unictype/Makefile: New file.
53875         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
53876         glibc.
53877         * lib/unictype/3level.h: New file, copied from glibc.
53878         * lib/unictype/3levelbit.h: New file.
53879
53880 2007-11-11  Bruno Haible  <bruno@clisp.org>
53881
53882         * modules/gperf: New file.
53883         * modules/iconv_open (Depends-on): Add it.
53884         (Makefile.am): Remove the GPERF definition.
53885
53886 2007-11-11  Bruno Haible  <bruno@clisp.org>
53887
53888         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
53889         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
53890
53891 2007-11-11  Bruno Haible  <bruno@clisp.org>
53892
53893         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
53894         (usage): Remove function.
53895
53896 2007-11-11  Bruno Haible  <bruno@clisp.org>
53897
53898         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
53899         gl_FUNC_CEILF_LIBS.
53900         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
53901         gl_FUNC_CEIL_LIBS.
53902         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
53903         gl_FUNC_CEILL_LIBS.
53904         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
53905         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
53906         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
53907
53908 2007-11-11  Bruno Haible  <bruno@clisp.org>
53909
53910         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
53911         roundf were declared but do not exist on functions.
53912         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
53913         roundl were declared but do not exist on functions.
53914         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
53915         HAVE_FLOORL_AND_CEILL, respectively.
53916         Needed for Sun C on Solaris 10.
53917
53918 2007-11-11  Bruno Haible  <bruno@clisp.org>
53919
53920         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
53921         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
53922         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
53923         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
53924         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
53925         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
53926         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
53927         HAVE_DECL_ROUNDF.
53928         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
53929         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
53930         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
53931         of HAVE_DECL_ROUND*.
53932         * modules/math (Makefile.am): Update.
53933
53934 2007-11-10  Bruno Haible  <bruno@clisp.org>
53935
53936         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
53937         ptrdiff_t as m4/intl.m4.
53938
53939 2007-11-10  Jim Meyering  <meyering@redhat.com>
53940
53941         Avoid link failure for the argmatch test.
53942         * tests/test-argmatch.c (usage): Define function to avoid a link
53943         failure: argmatch_die requires a usage function.
53944
53945 2007-11-09  Bruno Haible  <bruno@clisp.org>
53946
53947         * doc/functions/snprintf.texi: Mention BeOS deficiency.
53948         * doc/functions/vsnprintf.texi: Likewise.
53949         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
53950         with a size argument < 2.
53951
53952 2007-11-09  Bruno Haible  <bruno@clisp.org>
53953
53954         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
53955         buffer. Fixes an inefficiency introduced on 2007-11-03.
53956
53957 2007-11-09  Bruno Haible  <bruno@clisp.org>
53958
53959         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
53960         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
53961
53962 2007-11-08  Jim Meyering  <meyering@redhat.com>
53963
53964         Change cache variable name prefix "jm_" to "gl_" everywhere.
53965         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
53966         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
53967         * m4/uptime.m4: s/gl_/jm_/
53968
53969 2007-11-07  Bruno Haible  <bruno@clisp.org>
53970
53971         Update to GNU gettext 0.17.
53972         * m4/intl.m4: Update to GNU gettext 0.17.
53973         * m4/po.m4: Likewise.
53974         * modules/gettext (Files): Remove m4/ulonglong.m4.
53975         (configure.ac): Require gettext infrastructure from version 0.17.
53976
53977 2007-11-06  Bruno Haible  <bruno@clisp.org>
53978
53979         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
53980         symbolic values are not defined in a public header.
53981         * lib/freadable.c (freadable) [QNX]: Likewise.
53982         * lib/freadahead.c (freadahead) [QNX]: Likewise.
53983         * lib/freading.c (freading) [QNX]: Likewise.
53984         * lib/fseterr.c (fseterr) [QNX]: Likewise.
53985         * lib/fwritable.c (fwritable) [QNX]: Likewise.
53986         * lib/fwriting.c (fwriting) [QNX]: Likewise.
53987         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
53988         Reported by Alain Magloire.
53989
53990         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
53991
53992 2007-11-05  Bruno Haible  <bruno@clisp.org>
53993
53994         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
53995         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
53996         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
53997         Reported by Eric Blake.
53998
53999 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54000             Bruno Haible  <bruno@clisp.org>
54001
54002         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
54003         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
54004         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
54005         (malloc): Undefine also before including <stdlib.h>.
54006         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
54007         Needed on OSF/1 4.0.
54008
54009 2007-11-05  Jim Meyering  <meyering@redhat.com>
54010
54011         git-version-gen: sync from coreutils.
54012         * build-aux/git-version-gen: Add comments.
54013         Change the first '-' to '.' in the snapshot version string,
54014         e.g., 6.9-377-08144 -> 6.9.377-08144
54015         Remove first parameter.
54016         Don't declare a version "-dirty" merely because a time
54017         stamp has changed.
54018
54019 2007-11-04  Bruno Haible  <bruno@clisp.org>
54020
54021         * lib/lock.h: Protect all macro definitions containing an 'if'
54022         statement through a "do { ... } while (0)".
54023         * lib/tls.h: Likewise.
54024
54025 2007-11-04  Bruno Haible  <bruno@clisp.org>
54026
54027         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
54028
54029 2007-11-04  Bruno Haible  <bruno@clisp.org>
54030
54031         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
54032         * modules/fprintf-posix (Depends-on): Add nocrash.
54033         * modules/snprintf-posix (Depends-on): Likewise.
54034         * modules/sprintf-posix (Depends-on): Likewise.
54035         * modules/vasnprintf-posix (Depends-on): Likewise.
54036         * modules/vasprintf-posix (Depends-on): Likewise.
54037         * modules/vfprintf-posix (Depends-on): Likewise.
54038         * modules/vsnprintf-posix (Depends-on): Likewise.
54039         * modules/vsprintf-posix (Depends-on): Likewise.
54040         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
54041         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
54042         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
54043         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
54044         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
54045         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
54046         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
54047
54048 2007-11-04  Bruno Haible  <bruno@clisp.org>
54049
54050         * modules/nocrash: New file.
54051         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
54052         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
54053
54054 2007-11-04  Bruno Haible  <bruno@clisp.org>
54055
54056         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
54057         precision handling.
54058         * tests/test-vasprintf-posix.c (test_function): Likewise.
54059         * tests/test-snprintf-posix.h (test_function): Likewise.
54060         * tests/test-sprintf-posix.h (test_function): Likewise.
54061
54062         Fix *printf behaviour for large precisions on mingw and BeOS.
54063         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
54064         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
54065         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
54066         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
54067         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
54068         gl_PRINTF_PRECISION and test its result. Invoke
54069         gl_PREREQ_VASNPRINTF_PRECISION.
54070         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
54071         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
54072         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
54073         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
54074         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
54075         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
54076         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
54077         * doc/functions/fprintf.texi: Update.
54078         * doc/functions/printf.texi: Update.
54079         * doc/functions/snprintf.texi: Update.
54080         * doc/functions/sprintf.texi: Update.
54081         * doc/functions/vfprintf.texi: Update.
54082         * doc/functions/vprintf.texi: Update.
54083         * doc/functions/vsnprintf.texi: Update.
54084         * doc/functions/vsprintf.texi: Update.
54085
54086 2007-11-04  Bruno Haible  <bruno@clisp.org>
54087
54088         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
54089
54090 2007-11-04  Bruno Haible  <bruno@clisp.org>
54091
54092         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
54093         Reported by Sylvain Beucler <beuc@gnu.org>.
54094
54095 2007-11-03  Bruno Haible  <bruno@clisp.org>
54096
54097         * tests/test-fprintf-posix2.sh: New file.
54098         * tests/test-fprintf-posix2.c: New file.
54099         * modules/fprintf-posix-tests (Files): Add them.
54100         (TESTS): Add test-fprintf-posix2.sh.
54101         (configure.ac): Check for getrlimit and setrlimit.
54102         (check_PROGRAMS): Add test-fprintf-posix2.
54103
54104         * tests/test-printf-posix2.sh: New file.
54105         * tests/test-printf-posix2.c: New file.
54106         * modules/printf-posix-tests (Files): Add them.
54107         (TESTS): Add test-printf-posix2.sh.
54108         (configure.ac): Check for getrlimit and setrlimit.
54109         (check_PROGRAMS): Add test-printf-posix2.
54110
54111         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
54112         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
54113         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
54114         (decode_double): New function, copied from decode_long_double.
54115         (scale10_round_decimal_decoded): New function, extracted from
54116         scale10_round_decimal_long_double.
54117         (scale10_round_decimal_long_double): Use it.
54118         (scale10_round_decimal_double): New function.
54119         (floorlog10): New function.
54120         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
54121         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
54122         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
54123         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
54124         gl_PRINTF_ENOMEM and test its result. Invoke
54125         gl_PREREQ_VASNPRINTF_ENOMEM.
54126         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
54127         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
54128         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
54129         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
54130         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
54131         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
54132         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
54133         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
54134         * modules/snprintf-posix (Depends-on): Likewise.
54135         * modules/sprintf-posix (Depends-on): Likewise.
54136         * modules/vasnprintf-posix (Depends-on): Likewise.
54137         * modules/vasprintf-posix (Depends-on): Likewise.
54138         * modules/vfprintf-posix (Depends-on): Likewise.
54139         * modules/vsnprintf-posix (Depends-on): Likewise.
54140         * modules/vsprintf-posix (Depends-on): Likewise.
54141         * doc/functions/fprintf.texi: Update.
54142         * doc/functions/printf.texi: Update.
54143         * doc/functions/snprintf.texi: Update.
54144         * doc/functions/sprintf.texi: Update.
54145         * doc/functions/vfprintf.texi: Update.
54146         * doc/functions/vprintf.texi: Update.
54147         * doc/functions/vsnprintf.texi: Update.
54148         * doc/functions/vsprintf.texi: Update.
54149
54150 2007-11-03  Bruno Haible  <bruno@clisp.org>
54151
54152         * modules/frexp-nolibm-tests: New file.
54153
54154         * modules/frexp-nolibm: New file.
54155         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
54156
54157 2007-11-03  Bruno Haible  <bruno@clisp.org>
54158
54159         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
54160         value is C99 compliant.
54161         Needed for OSF/1 5.1.
54162
54163 2007-11-03  Bruno Haible  <bruno@clisp.org>
54164
54165         Fix out-of-memory handling of vasnprintf.
54166         * lib/printf-parse.c: Include <errno.h>.
54167         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
54168         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
54169         is already set.
54170
54171 2007-11-02  Eric Blake  <ebb9@byu.net>
54172
54173         Fix tests on cygwin.
54174         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
54175
54176 2007-11-01  Bruno Haible  <bruno@clisp.org>
54177
54178         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
54179         warning.
54180         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
54181         needed for POSIX compatibility.
54182
54183 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
54184
54185         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
54186         for compatibility with GNU.
54187
54188 2007-11-01  Bruno Haible  <bruno@clisp.org>
54189
54190         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
54191         (putenv): Renamed from rpl_putenv. Change argument type from
54192         'const char *' to 'char *'.
54193         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
54194         of defining putenv in config.h, just set REPLACE_PUTENV.
54195         * modules/putenv (Depends-on): Add stdlib.
54196         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
54197         (Include): Use <stdlib.h>.
54198         * lib/stdlib.in.h (putenv): New declaration.
54199         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
54200         REPLACE_PUTENV.
54201         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
54202         REPLACE_PUTENV.
54203         Needed for MacOS X 10.5.0.
54204         Reported by Peter O'Gorman <peter@pogma.com>.
54205
54206 2007-11-01  Jim Meyering  <meyering@redhat.com>
54207
54208         Treat an empty date string exactly like "0".
54209         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
54210         if the remaining date string (to be parsed) is empty, use "0".
54211         Reported by Mischa Molhoek and discussed in this thread:
54212         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
54213
54214 2007-10-31  Bruno Haible  <bruno@clisp.org>
54215
54216         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
54217         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
54218         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
54219         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
54220         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
54221         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
54222
54223 2007-10-31  Bruno Haible  <bruno@clisp.org>
54224
54225         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
54226         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
54227         (AC_TYPE_LONG_LONG_INT): Use it.
54228         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
54229         it as well.
54230         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
54231         to m4/longlong.m4.
54232         * modules/stdint (Files): Remove m4/ulonglong.m4.
54233         * modules/strtoull (Files): Use m4/longlong.m4 instead of
54234         m4/ulonglong.m4.
54235         * modules/strtoumax (Files): Likewise.
54236
54237 2007-10-30  Bruno Haible  <bruno@clisp.org>
54238
54239         * modules/xvasprintf-posix: New file.
54240         Suggested by Eric Blake.
54241
54242 2007-10-30  Bruno Haible  <bruno@clisp.org>
54243
54244         * modules/xprintf-posix-tests: New file.
54245         * tests/test-xprintf-posix.sh: New file.
54246         * tests/test-xprintf-posix.c: New file.
54247         * tests/test-xfprintf-posix.c: New file.
54248
54249         * modules/xprintf-posix: New file.
54250
54251 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54252
54253         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
54254         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
54255         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
54256
54257 2007-10-29  Bruno Haible  <bruno@clisp.org>
54258
54259         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
54260         contain the special marker '_cv_'.
54261         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
54262         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
54263         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
54264         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
54265         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
54266         Reported by Ralf Wildenhues.
54267
54268 2007-10-29  Bruno Haible  <bruno@clisp.org>
54269
54270         * gnulib-tool (func_import): When --lgpl is not specified, set
54271         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
54272         GPLv3.
54273         Reported by Simon Josefsson.
54274
54275 2007-10-28  Bruno Haible  <bruno@clisp.org>
54276
54277         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
54278         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
54279         HAVE_DECL_ISFINITE.
54280         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
54281         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
54282         HAVE_DECL_ISFINITE.
54283
54284 2007-10-28  Bruno Haible  <bruno@clisp.org>
54285
54286         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
54287         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
54288
54289 2007-10-28  Bruno Haible  <bruno@clisp.org>
54290
54291         Fix link errors with Sun C 5.0 on Solaris 10.
54292         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
54293         function is declared but not present in the compiler's libm.
54294         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
54295         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
54296         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
54297         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
54298         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
54299         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
54300         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
54301         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
54302         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
54303         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
54304         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
54305         HAVE_DECL_FLOORL.
54306
54307 2007-10-28  Bruno Haible  <bruno@clisp.org>
54308
54309         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
54310         gl_FUNC_FLOORL. Cache the result.
54311         (gl_FUNC_FLOORL): Use it.
54312         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
54313         gl_FUNC_CEILL. Cache the result.
54314         (gl_FUNC_CEILL): Use it.
54315
54316         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
54317         gl_FUNC_FLOOR. Cache the result.
54318         (gl_FUNC_FLOOR): Use it.
54319         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
54320         gl_FUNC_CEIL. Cache the result.
54321         (gl_FUNC_CEIL): Use it.
54322
54323         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
54324         gl_FUNC_FLOORF. Cache the result.
54325         (gl_FUNC_FLOORF): Use it.
54326         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
54327         gl_FUNC_CEILF. Cache the result.
54328         (gl_FUNC_CEILF): Use it.
54329
54330 2007-10-28  Bruno Haible  <bruno@clisp.org>
54331
54332         * gnulib-tool: Allow specifying the LGPL version number through
54333         --lgpl=2 or --lgpl=3.
54334         (func_usage): Document --lgpl with argument.
54335         Handle --lgpl=... arguments.
54336         (func_import): Recognize also gl_LGPL calls with an argument. When
54337         --lgpl=2 is used and the module's license is just LGPL, report an
54338         error. Set sed_transform_lib_file according to the lgpl variable. In
54339         the generated files, use --lgpl or gl_LGPL invocations with argument,
54340         if necessary.
54341         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
54342         an LGPv2+ license.
54343         * doc/gnulib-tool.texi (Modified imports): Update explanation of
54344         gl_LGPL macro.
54345
54346 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54347             Bruno Haible  <bruno@clisp.org>
54348
54349         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
54350         (u16_uctomb_aux): Likewise.
54351         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
54352         !HAVE_INLINE.
54353         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
54354
54355 2007-10-28  Bruno Haible  <bruno@clisp.org>
54356
54357         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
54358         Invoke AM_GETTEXT_OPTION if it exists.
54359         * modules/vasprintf: Likewise.
54360         * modules/verror: Likewise.
54361         * modules/xprintf: Likewise.
54362         * modules/xvasprintf: Likewise.
54363
54364 2007-10-27  Ben Pfaff  <blp@gnu.org>
54365
54366         * lib/math.in.h: Define isfinite macro and prototypes for
54367         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
54368         implementations.
54369         * m4/math_h.m4: New substitutions for isfinite module.
54370         * lib/isfinite.c: New file.
54371         * m4/isfinite.m4: New file.
54372         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
54373         * modules/isfinite: New file.
54374         * modules/isfinite-tests: New file.
54375         * tests/tests-isfinite.c: New file.
54376         * doc/functions/isfinite.texi: Mention isfinite module.
54377         * MODULES.html.sh: Mention new module.
54378
54379 2007-10-27  Ben Pfaff  <blp@gnu.org>
54380
54381         Ralf Wildenhues reported that Tru64 4.0D declares the round
54382         functions but does not have definitions.
54383         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
54384         cannot be found in any library, set the output variable to
54385         "missing" instead of "".
54386         * m4/round.m4: Also use our substitute if we cannot find round in
54387         any library, even if it is declared.
54388         * m4/roundf.m4: Likewise for roundf.
54389         * m4/roundl.m4: Likewise for roundl.
54390         * lib/math.in.h: Undefine roundf, round, roundl before defining
54391         their replacements, to allow for hypothetical systems where these
54392         may be defined as macros but not available in libraries.
54393
54394 2007-10-27  Bruno Haible  <bruno@clisp.org>
54395
54396         * doc/gnulib.texi: Invoke @firstparagraphindent.
54397         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
54398         changes in gnulib.
54399         (Source changes): New section.
54400
54401 2007-10-26  Bruno Haible  <bruno@clisp.org>
54402
54403         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
54404         borrowed from autoconf.
54405
54406 2007-10-26  Bruno Haible  <bruno@clisp.org>
54407
54408         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
54409         strerror returned the empty string. Needed on HP-UX 11.00.
54410
54411 2007-10-24  Micah Cowan  <micah@cowan.name>
54412
54413         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
54414         * build-aux/bootstrap: Remove support for now-unnecessary option,
54415         --cvs-user, and envvars CVS_USER, CVS_RSH.
54416
54417 2007-10-24  Jim Meyering  <meyering@redhat.com>
54418
54419         Avoid diagnostics from sha1sum when there is no cached checksum.
54420         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
54421         if the po.s1 file hasn't been created yet.
54422
54423         * build-aux/bootstrap: Sync from coreutils:
54424         2007-10-24  Jim Meyering  <meyering@redhat.com>
54425         Get gnulib from the git repository, not from an obsolete cvs one.
54426         * build-aux/bootstrap: Suggestion from Micah Cowan.
54427         2007-10-04  Jim Meyering  <jim@meyering.net>
54428         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
54429         (update_po_files): Work also when there are no .po files in po/.
54430
54431 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
54432
54433         * README: Append ".git" to git and cg examples.
54434         Problem reported by Benoit Sigoure.
54435
54436 2007-10-23  Micah Cowan  <micah@cowan.name>
54437
54438         * users.txt: Add wget.
54439
54440 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54441
54442         Fix linking of some unistdio tests on FreeBSD.
54443         * modules/unistdio/u16-vsnprintf-tests
54444         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
54445         * modules/unistdio/u16-vsprintf-tests
54446         (test_u16_vsnprintf1_LDADD): Likewise.
54447         * modules/unistdio/u32-vsnprintf-tests
54448         (test_u32_vsnprintf1_LDADD): Likewise.
54449         * modules/unistdio/u32-vsprintf-tests
54450         (test_u32_vsprintf1_LDADD): Likewise.
54451         * modules/unistdio/u8-vsnprintf-tests
54452         (test_u8_vsnprintf1_LDADD): Likewise.
54453         * modules/unistdio/u8-vsprintf-tests
54454         (test_u8_vsprintf1_LDADD): Likewise.
54455         * modules/unistdio/ulc-vsnprintf-tests
54456         (test_ulc_vsnprintf1_LDADD): Likewise.
54457         * modules/unistdio/ulc-vsprintf-tests
54458         (test_ulc_vsprintf1_LDADD): Likewise.
54459
54460         Fix linking of some uniconv tests on FreeBSD.
54461         * modules/uniconv/u16-conv-from-enc-tests
54462         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
54463         * modules/uniconv/u16-conv-to-enc-tests
54464         (test_u16_conv_to_enc_LDADD): Likewise.
54465         * modules/uniconv/u16-strconv-from-enc-tests
54466         (test_u16_strconv_from_enc_LDADD): Likewise.
54467         * modules/uniconv/u16-strconv-to-enc-tests
54468         (test_u16_strconv_to_enc_LDADD): Likewise.
54469         * modules/uniconv/u32-conv-from-enc-tests
54470         (test_u32_conv_from_enc_LDADD): Likewise.
54471         * modules/uniconv/u32-conv-to-enc-tests
54472         (test_u32_conv_to_enc_LDADD): Likewise.
54473         * modules/uniconv/u32-strconv-from-enc-tests
54474         (test_u32_strconv_from_enc_LDADD): Likewise.
54475         * modules/uniconv/u32-strconv-to-enc-tests
54476         (test_u32_strconv_to_enc_LDADD): Likewise.
54477         * modules/uniconv/u8-conv-from-enc-tests
54478         (test_u8_conv_from_enc_LDADD): Likewise.
54479         * modules/uniconv/u8-conv-to-enc-tests
54480         (test_u8_conv_to_enc_LDADD): Likewise.
54481         * modules/uniconv/u8-strconv-from-enc-tests
54482         (test_u8_strconv_from_enc_LDADD): Likewise.
54483         * modules/uniconv/u8-strconv-to-enc-tests
54484         (test_u8_strconv_to_enc_LDADD): Likewise.
54485
54486 2007-10-22  Bruno Haible  <bruno@clisp.org>
54487
54488         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
54489         size.
54490
54491 2007-10-22  Eric Blake  <ebb9@byu.net>
54492
54493         Tweak x*printf documentation.
54494         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
54495         variable name and comments.
54496         Suggested by Bruno Haible.
54497
54498 2007-10-22  Bruno Haible  <bruno@clisp.org>
54499
54500         * lib/acl.c (copy_acl): Fix file name in comment.
54501
54502 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
54503
54504         Fix Tru64 problem with stdbool.h.
54505         * lib/stdbool.in.h (false, true):
54506         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
54507         Don't declare as an enum in this situation; it runs afoul of Tru64.
54508         Problem reported by Steven M. Schweda in
54509         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
54510
54511 2007-10-22  Eric Blake  <ebb9@byu.net>
54512
54513         Also wrap vf?printf.
54514         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
54515         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
54516         (xvprintf, xvfprintf): New functions.
54517
54518 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54519
54520         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
54521         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
54522
54523         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
54524         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
54525
54526 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
54527
54528         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
54529         by Bruno Haible.
54530
54531 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54532
54533         * lib/getloadavg.c
54534         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
54535         Undef `sys' after including sys/table.h, for Tru64 4.0D.
54536
54537         * tests/test-i-ring.c: Work for C89.
54538
54539 2007-10-22  Bruno Haible  <bruno@clisp.org>
54540
54541         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
54542         -1u, in preprocessor expression, so that we don't test for the bug
54543         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
54544         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
54545
54546 2007-10-22  Eric Blake  <ebb9@byu.net>
54547
54548         * tests/test-yesno.sh: Silence stderr during test.
54549
54550 2007-10-22  Simon Josefsson  <simon@josefsson.org>
54551
54552         * modules/crypto/gc-camellia: New file.
54553
54554         * m4/gc-camellia.m4: New file.
54555
54556         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
54557
54558         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
54559
54560 2007-10-22  Simon Josefsson  <simon@josefsson.org>
54561
54562         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
54563         --help to stdout.  Reported by sms@antinode.org (Steven
54564         M. Schweda).
54565
54566 2007-10-22  Simon Josefsson  <simon@josefsson.org>
54567
54568         * users.txt: Fix link to libksba.
54569
54570 2007-10-21  Ben Pfaff  <blp@gnu.org>
54571
54572         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
54573         round.c roundf implementation that depends on floorf and ceilf to
54574         be tested unconditionally.
54575
54576 2007-10-21  Ben Pfaff  <blp@gnu.org>
54577
54578         * m4/check-libm-func.m4: Removed.
54579         * m4/check-math-lib.m4: New file.
54580         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
54581         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
54582         definition and lack of AC_LIBOBJ([roundf]).
54583         * m4/roundl.m4: Ditto, and similarly for roundl.
54584         * modules/round: Reference new m4 file.
54585         * modules/roundf: Ditto.
54586         * modules/roundl: Ditto.
54587         * tests/test-round2.c (main): Use ROUND instead of round.
54588         Bug report from Bruno Haible.
54589
54590 2007-10-21  Bruno Haible  <bruno@clisp.org>
54591
54592         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
54593         context.
54594
54595 2007-10-21  Bruno Haible  <bruno@clisp.org>
54596
54597         * tests/test-wcwidth.c (main): Allow negative result for some control
54598         characters.
54599
54600         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
54601         Needed on OSF/1 5.1.
54602
54603 2007-10-21  Bruno Haible  <bruno@clisp.org>
54604
54605         * tests/test-floorf1.c: Include isnanf.h.
54606         (main): Use isnanf() instead of isnan().
54607         * tests/test-ceilf1.c: Include isnanf.h.
54608         (main): Use isnanf() instead of isnan().
54609         * tests/test-truncf1.c: Include isnanf.h.
54610         (main): Use isnanf() instead of isnan().
54611         * tests/test-roundf1.c: Include isnanf.h.
54612         (main): Use isnanf() instead of isnan().
54613
54614 2007-10-21  Eric Blake  <ebb9@byu.net>
54615
54616         * users.txt: Update URL for m4.
54617
54618 2007-10-21  Bruno Haible  <bruno@clisp.org>
54619
54620         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
54621
54622 2007-10-21  Bruno Haible  <bruno@clisp.org>
54623
54624         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
54625         Git's management files if the CVS files are not present.
54626
54627 2007-10-20  Bruno Haible  <bruno@clisp.org>
54628
54629         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
54630         gcc-3.4.x.
54631
54632 2007-10-20  Ben Pfaff  <blp@gnu.org>
54633
54634         * lib/math.in.h: Declare round, roundf, roundl if we are providing
54635         implementations.
54636         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
54637         * lib/round.c: New file.
54638         * lib/roundf.c: New file.
54639         * lib/roundl.c: New file.
54640         * m4/round.m4: New file.
54641         * m4/roundf.m4: New file.
54642         * m4/roundl.m4: New file.
54643         * m4/check-libm-func-m4: New file.
54644         * modules/math: Replace round, roundf, roundl related @VARS@ in
54645         math.in.h.
54646         * modules/round: New file.
54647         * modules/round-tests: New file.
54648         * modules/roundf: New file.
54649         * modules/roundf-tests: New file.
54650         * modules/roundl: New file.
54651         * modules/roundl-tests: New file.
54652         * tests/test-round1.c: New file.
54653         * tests/test-round2.c: New file.
54654         * tests/test-roundf1.c: New file.
54655         * tests/test-roundf2.c: New file.
54656         * tests/test-roundl.c: New file.
54657         * doc/functions/round.texi: Mention round module.
54658         * doc/functions/roundf.texi: Mention roundf module.
54659         * doc/functions/roundl.texi: Mention roundl module.
54660         * MODULES.html.sh: Mention new modules.
54661         Thanks to Bruno Haible for suggestions.
54662
54663 2007-10-20  Jim Meyering  <meyering@redhat.com>
54664
54665         * lib/xprintf.c: Include <config.h> unconditionally.
54666
54667         Change xprintf's license to GPL.
54668         * modules/xprintf (License): s/LGPL/GPL/, since this module
54669         depends on modules (exit and exitfail) which are GPL.
54670         Suggestion from Bruno Haible.
54671
54672         xprintf fixes.
54673         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
54674         Use a clearer diagnostic.
54675         Patch from Bruno Haible.
54676
54677 2007-10-20  Bruno Haible  <bruno@clisp.org>
54678
54679         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
54680         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
54681         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
54682
54683 2007-10-20  Bruno Haible  <bruno@clisp.org>
54684
54685         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
54686         precision in the comparison result > x - 1 or similar.
54687         * tests/test-ceilf2.c (correct_result_p): Likewise.
54688         * tests/test-truncf2.c (correct_result_p): Likewise.
54689         * tests/test-trunc2.c (correct_result_p): Likewise.
54690         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
54691
54692 2007-10-20  Bruno Haible  <bruno@clisp.org>
54693
54694         * modules/ceil: New file.
54695         * m4/ceil.m4: New file.
54696         * doc/functions/ceil.texi: Mention the 'ceil' module.
54697
54698 2007-10-20  Bruno Haible  <bruno@clisp.org>
54699
54700         * modules/floor: New file.
54701         * m4/floor.m4: New file.
54702         * doc/functions/floor.texi: Mention the 'floor' module.
54703
54704 2007-10-20  Bruno Haible  <bruno@clisp.org>
54705
54706         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
54707         of %a.
54708         * modules/floorf-tests (Depends-on): Likewise.
54709         * modules/truncf-tests (Depends-on): Likewise.
54710         * modules/trunc-tests (Depends-on): Likewise.
54711         Reported by Ben Pfaff.
54712
54713 2007-10-19  Jim Meyering  <meyering@redhat.com>
54714
54715         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
54716         Don't bother testing specific errno values.  Just test ferror.
54717
54718         New module: xprintf
54719         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
54720
54721 2007-10-19  Bruno Haible  <bruno@clisp.org>
54722
54723         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
54724         syntax.
54725         * modules/javaexec (Makefile.am): Likewise.
54726         * modules/relocatable-prog (Makefile.am): Likewise.
54727         Suggested by Jim Meyering.
54728
54729 2007-10-18  Bruno Haible  <bruno@clisp.org>
54730
54731         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
54732         Reported by Jim Meyering.
54733
54734 2007-10-18  Eric Blake  <ebb9@byu.net>
54735
54736         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
54737
54738 2007-10-18  Bruno Haible  <bruno@clisp.org>
54739
54740         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
54741         the format string into writable memory. Needed in Fortify conditions.
54742
54743 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
54744             Bruno Haible  <bruno@clisp.org>
54745
54746         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
54747         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
54748         * modules/trim (Depends-on): Add mbchar.
54749         (configure.ac): Add gl_FUNC_MBRTOWC.
54750         (Makefile.am): Augment lib_SOURCES.
54751
54752 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
54753
54754         Modify glob.c to use fstatat and dirfd, to simplify it.
54755         Suggested by Eric Blake.
54756         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
54757         Don't include <stdbool.h>; not used.
54758         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
54759         (link_exists_p): Simplify implementation, since we can now assume
54760         dirfd and fstatat.
54761         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
54762
54763 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54764
54765         * gnulib-tool (func_get_dependencies): Fix sed script to
54766         match only tests.
54767
54768 2007-10-17  Bruno Haible  <bruno@clisp.org>
54769
54770         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
54771         allow locale names without encoding suffix.
54772         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
54773         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
54774
54775 2007-10-16  Bruno Haible  <bruno@clisp.org>
54776
54777         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
54778         * lib/getgroups.c (getgroups): Likewise.
54779         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
54780
54781 2007-10-16  Bruno Haible  <bruno@clisp.org>
54782
54783         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
54784         * modules/malloc-posix (License): Likewise.
54785         * modules/realloc-posix (License): Likewise.
54786         * modules/calloc-posix (License): Likewise.
54787         * modules/intprops (License): Change from GPL to LGPL, with
54788         Paul Eggert's approval.
54789
54790 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
54791
54792         Merge glibc changes into lib/glob.c.
54793
54794         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
54795         2007-10-15 04:59:03 UTC.  Here are the changes:
54796
54797         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
54798
54799         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
54800
54801         * lib/glob.c: Add some branch prediction throughout.
54802
54803         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
54804
54805         [BZ #5103]
54806         * lib/glob.c (glob): Recognize patterns starting \/.
54807
54808         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
54809
54810         [BZ #3996]
54811         * lib/glob.c (attribute_hidden): Define if not defined.
54812         (glob): Unescape dirname, filename or username when needed and not
54813         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
54814         is NULL.  Handle unescaped [ in pattern without closing ].
54815         Don't pass GLOB_CHECK down to recursive glob for directories.
54816         (__glob_pattern_type): New function.
54817         (__glob_pattern_p): Implement using __glob_pattern_type.
54818         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
54819         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
54820         Remove unreachable code.
54821
54822         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
54823
54824         * lib/glob.c (glob_in_dir): Add some comments and asserts to
54825         explain why there are no leaks.
54826
54827         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
54828
54829         [BZ #3253]
54830         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
54831         time, rather allocate increasingly bigger arrays of pointers, if
54832         possible with alloca, if too large with malloc.
54833
54834 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
54835
54836         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
54837         Problem reported by H.Merijn Brand in
54838         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
54839         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
54840         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
54841
54842 2007-10-15  Bruno Haible  <bruno@clisp.org>
54843
54844         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
54845         with explicit rpl_ prefix.
54846         * lib/fopen.c (fopen): Likewise.
54847         * lib/freopen.c (freopen): Likewise.
54848         * lib/iconv.c (iconv): Likewise.
54849         * lib/iconv_close.c (iconv_close): Likewise.
54850
54851 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54852
54853         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
54854
54855 2007-10-15  Bruno Haible  <bruno@clisp.org>
54856
54857         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
54858         <stddef.h> instead of <stdlib.h> since we only need NULL.
54859         Reported by Ben Pfaff <blp@cs.stanford.edu>.
54860
54861 2007-10-15  Bruno Haible  <bruno@clisp.org>
54862
54863         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
54864         Replace paragraph talking about LIBOBJS.
54865         Reported by Colin Watson <cjwatson@debian.org>.
54866
54867 2007-10-15  Bruno Haible  <bruno@clisp.org>
54868
54869         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
54870         <stdlib.h> before using NULL.
54871
54872 2007-10-15  Simon Josefsson  <simon@josefsson.org>
54873
54874         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
54875         Reported by Albert Chin <china@thewrittenword.com>.
54876
54877 2007-10-14  Bruno Haible  <bruno@clisp.org>
54878
54879         * modules/iconv_open-utf-tests: New file.
54880         * tests/test-iconv-utf.c: New file.
54881
54882         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
54883         * modules/iconv_open-utf: New file.
54884         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
54885         (iconv, iconv_close): New declarations.
54886         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
54887         be defined.
54888         (iconv_open): Add special handling of conversion between UTF-8 and
54889         UTF-{16,32}{BE,LE}.
54890         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
54891         * lib/iconv_close.c: New file.
54892         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
54893         gl_FUNC_ICONV_OPEN.
54894         (gl_FUNC_ICONV_OPEN): Use it.
54895         (gl_FUNC_ICONV_OPEN_UTF): New macro.
54896         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
54897         and REPLACE_ICONV_UTF.
54898         * modules/iconv_open (Depends-on): Add c-strcase.
54899         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
54900         ICONV_CONST.
54901         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
54902
54903 2007-10-13  Albert Chin  <china@thewrittenword.com>
54904             Bruno Haible  <bruno@clisp.org>
54905
54906         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
54907         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
54908
54909 2007-10-13  Bruno Haible  <bruno@clisp.org>
54910
54911         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
54912         defined, use the ISO C99 inline semantics.
54913         * lib/argp.h (ARGP_EI): Likewise.
54914
54915 2007-10-13  Bruno Haible  <bruno@clisp.org>
54916
54917         Handle 'inline' change in gcc 4.3.0.
54918         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
54919         argp_fmtstream_write, argp_fmtstream_set_lmargin,
54920         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
54921         argp_fmtstream_point): Disable 'extern' declaration if the function
54922         definition is going to be provided inline.
54923         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
54924         semantics, not the ISO C99 inline semantics.
54925         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
54926         'extern' declaration if the function definition is going to be provided
54927         inline.
54928         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
54929         the GNU C inline semantics, not the ISO C99 inline semantics. With
54930         GCC 4.2, avoid a warning.
54931
54932 2007-10-13  Bruno Haible  <bruno@clisp.org>
54933
54934         * lib/freading.h (freading): Enable the use of __freading for
54935         glibc >= 2.7.
54936         * lib/freading.c (freading): Likewise.
54937
54938 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
54939
54940         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
54941         "warning: C99 inline functions are not supported; using GNU89".
54942
54943 2007-10-12  Bruno Haible  <bruno@clisp.org>
54944
54945         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
54946         of 2.
54947         * tests/test-ceilf2.c: New file.
54948         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
54949
54950         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
54951         * modules/ceilf-tests: Update.
54952
54953 2007-10-12  Bruno Haible  <bruno@clisp.org>
54954
54955         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
54956         of 2.
54957         * tests/test-floorf2.c: New file.
54958         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
54959
54960         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
54961         * modules/floorf-tests: Update.
54962
54963 2007-10-12  Bruno Haible  <bruno@clisp.org>
54964
54965         * tests/test-trunc2.c: New file.
54966         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
54967
54968         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
54969         * modules/trunc-tests: Update.
54970
54971 2007-10-12  Bruno Haible  <bruno@clisp.org>
54972
54973         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
54974         of 2.
54975         * tests/test-truncf2.c: New file.
54976         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
54977
54978         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
54979         * modules/truncf-tests: Update.
54980
54981 2007-10-11  Eric Blake  <ebb9@byu.net>
54982
54983         Don't claim strerror is broken on Interix.
54984         * doc/functions/strerror.texi (strerror): Known broken systems are
54985         now Solaris 8, and not Interix.
54986         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
54987         Interix on cross-compile.
54988         Reported by Martin Koeppe in
54989         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
54990
54991 2007-10-11  Bruno Haible  <bruno@clisp.org>
54992
54993         * modules/i-ring-tests: New file.
54994         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
54995         instead of assert.
54996
54997 2007-10-11  Bruno Haible  <bruno@clisp.org>
54998
54999         * modules/filenamecat-tests: New file.
55000         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
55001         * lib/filenamecat.c: Remove test code.
55002
55003 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
55004
55005         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
55006
55007         * lib/strerror.c: Include <string.h> always, to test interface,
55008         and to remove the need for the dummy.
55009         Include intprops.h to compute width instead of doing it ourselves
55010         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
55011         (strerror): Define it to return NULL if there's no system strerror.
55012         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
55013         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
55014         ancient pre-strerror Unix systems well any more.  Saying "unknown
55015         system error" is enough.
55016         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
55017         simpler strerror.c implementation.
55018         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
55019         Simplify the tests to reflect the simpler strerror implementation.
55020         * modules/strerror (Depends-on): Add intprops.
55021
55022 2007-10-09  Eric Blake  <ebb9@byu.net>
55023
55024         Silence test-fpending.
55025         * modules/fpending-tests (Files): Add wrapper script.
55026         * tests/test-fpending.sh: New file.
55027
55028 2007-10-09  Bruno Haible  <bruno@clisp.org>
55029
55030         * MODULES.html.sh (func_module): Don't create a hyperlink for
55031         function names like 'printf_frexp'.
55032         (Misc): Add crc, memxor.
55033         (Characteristics of floating types): New section.
55034         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
55035         isnanf-nolibm, signbit, trunc, truncf, truncl.
55036         (Enhancements for ISO C 99 functions): New subsection Input/output.
55037         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
55038         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
55039         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
55040         (Compatibility checks for POSIX:2001 functions): Add clock-time.
55041         (Enhancements for POSIX:2001 functions): Add chdir-long.
55042         (File system functions): Add areadlink, chdir-safer, read-file.
55043         Remove cycle-check.
55044         (File system as inode set): New section.
55045         (Date and time): Add gethrxtime.
55046         (Multithreading): Add openmp.
55047         (Internationalization functions): Add localename.
55048         (Unicode string functions): Add unistr/u*-mbsnlen.
55049         (Support for maintaining and releasing projects): Add git-version-gen.
55050         (Lone files): Remove directories.
55051
55052 2007-10-08  Ben Pfaff  <blp@gnu.org>
55053
55054         * lib/xmalloca.h: Fix typo in comment.
55055
55056 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
55057
55058         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
55059         when avoiding problems with integer overflow.  Use a portable test
55060         instead.
55061
55062 2007-10-08  Simon Josefsson  <simon@josefsson.org>
55063
55064         * modules/dummy (License): Change to LGPLv2+.
55065         * modules/float (License): Likewise
55066         * modules/realloc (License): Likewise
55067         * modules/stdlib (License): Likewise
55068
55069 2007-10-07  Bruno Haible  <bruno@clisp.org>
55070
55071         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
55072         * floor.c (TWO_MANT_DIG): Likewise.
55073         * ceil.c (TWO_MANT_DIG): Likewise.
55074         Reported by Ben Pfaff.
55075
55076 2007-10-07  Bruno Haible  <bruno@clisp.org>
55077
55078         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
55079         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
55080         * lib/frexp.c (FUNC): Likewise.
55081         * lib/printf-frexp.h (printf_frexp): Likewise.
55082         * lib/printf-frexpl.h (printf_frexpl): Likewise.
55083         * lib/printf-frexp.c (FUNC): Likewise.
55084         Suggested by Jim Meyering.
55085
55086 2007-10-07  Jim Meyering  <meyering@redhat.com>
55087
55088         Make xnanosleep's integer overflow test more robust.
55089         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
55090         so that gcc-4.3.0 doesn't optimize away this test for overflow.
55091
55092 2007-10-07  Bruno Haible  <bruno@clisp.org>
55093
55094         * NEWS: Mention the license change.
55095
55096         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
55097         abbreviations in the modules files.
55098
55099         Change copyright notice from GPLv2+ to GPLv3+.
55100         * README: Change copyright notice.
55101         * MODULES.html.sh: Likewise.
55102         * build-aux/bootstrap.conf: Likewise.
55103         * build-aux/config.libpath: Likewise.
55104         * build-aux/csharpcomp.sh.in: Likewise.
55105         * build-aux/csharpexec.sh.in: Likewise.
55106         * build-aux/install-reloc: Likewise.
55107         * build-aux/javacomp.sh.in: Likewise.
55108         * build-aux/javaexec.sh.in: Likewise.
55109         * build-aux/ldd.sh.in: Likewise.
55110         * build-aux/reloc-ldflags: Likewise.
55111         * build-aux/relocatable.sh.in: Likewise.
55112         * build-aux/x-to-1.in: Likewise.
55113         * check-module: Likewise.
55114         * config/srclistvars.sh: Likewise.
55115         * gnulib-tool: Likewise.
55116         * lib/acl-internal.h: Likewise.
55117         * lib/acl.c: Likewise.
55118         * lib/acl.h: Likewise.
55119         * lib/acl_entries.c: Likewise.
55120         * lib/areadlink-with-size.c: Likewise.
55121         * lib/areadlink.c: Likewise.
55122         * lib/areadlink.h: Likewise.
55123         * lib/argmatch.c: Likewise.
55124         * lib/argmatch.h: Likewise.
55125         * lib/argp-ba.c: Likewise.
55126         * lib/argp-eexst.c: Likewise.
55127         * lib/argp-fmtstream.c: Likewise.
55128         * lib/argp-fmtstream.h: Likewise.
55129         * lib/argp-fs-xinl.c: Likewise.
55130         * lib/argp-help.c: Likewise.
55131         * lib/argp-namefrob.h: Likewise.
55132         * lib/argp-parse.c: Likewise.
55133         * lib/argp-pin.c: Likewise.
55134         * lib/argp-pv.c: Likewise.
55135         * lib/argp-pvh.c: Likewise.
55136         * lib/argp-xinl.c: Likewise.
55137         * lib/argp.h: Likewise.
55138         * lib/at-func.c: Likewise.
55139         * lib/atanl.c: Likewise.
55140         * lib/backupfile.c: Likewise.
55141         * lib/backupfile.h: Likewise.
55142         * lib/basename.c: Likewise.
55143         * lib/binary-io.h: Likewise.
55144         * lib/byteswap.in.h: Likewise.
55145         * lib/c-stack.c: Likewise.
55146         * lib/c-stack.h: Likewise.
55147         * lib/c-strcasestr.c: Likewise.
55148         * lib/c-strcasestr.h: Likewise.
55149         * lib/c-strstr.c: Likewise.
55150         * lib/c-strstr.h: Likewise.
55151         * lib/c-strtod.c: Likewise.
55152         * lib/calloc.c: Likewise.
55153         * lib/canon-host.c: Likewise.
55154         * lib/canon-host.h: Likewise.
55155         * lib/canonicalize-lgpl.c: Likewise.
55156         * lib/canonicalize.c: Likewise.
55157         * lib/canonicalize.h: Likewise.
55158         * lib/ceil.c: Likewise.
55159         * lib/ceilf.c: Likewise.
55160         * lib/ceill.c: Likewise.
55161         * lib/chdir-long.c: Likewise.
55162         * lib/chdir-long.h: Likewise.
55163         * lib/chdir-safer.c: Likewise.
55164         * lib/chdir-safer.h: Likewise.
55165         * lib/chown.c: Likewise.
55166         * lib/classpath.c: Likewise.
55167         * lib/classpath.h: Likewise.
55168         * lib/clean-temp.c: Likewise.
55169         * lib/clean-temp.h: Likewise.
55170         * lib/cloexec.c: Likewise.
55171         * lib/close-stream.c: Likewise.
55172         * lib/closein.c: Likewise.
55173         * lib/closein.h: Likewise.
55174         * lib/closeout.c: Likewise.
55175         * lib/closeout.h: Likewise.
55176         * lib/concat-filename.c: Likewise.
55177         * lib/copy-file.c: Likewise.
55178         * lib/copy-file.h: Likewise.
55179         * lib/count-one-bits.h: Likewise.
55180         * lib/crc.c: Likewise.
55181         * lib/crc.h: Likewise.
55182         * lib/creat-safer.c: Likewise.
55183         * lib/csharpcomp.c: Likewise.
55184         * lib/csharpcomp.h: Likewise.
55185         * lib/csharpexec.c: Likewise.
55186         * lib/csharpexec.h: Likewise.
55187         * lib/cycle-check.c: Likewise.
55188         * lib/cycle-check.h: Likewise.
55189         * lib/diacrit.c: Likewise.
55190         * lib/diacrit.h: Likewise.
55191         * lib/diffseq.h: Likewise.
55192         * lib/dirchownmod.c: Likewise.
55193         * lib/dirent.in.h: Likewise.
55194         * lib/dirfd.c: Likewise.
55195         * lib/dirfd.h: Likewise.
55196         * lib/dirname.c: Likewise.
55197         * lib/dirname.h: Likewise.
55198         * lib/dummy.c: Likewise.
55199         * lib/dup-safer.c: Likewise.
55200         * lib/dup2.c: Likewise.
55201         * lib/eealloc.h: Likewise.
55202         * lib/error.c: Likewise.
55203         * lib/error.h: Likewise.
55204         * lib/euidaccess.c: Likewise.
55205         * lib/exclude.c: Likewise.
55206         * lib/exclude.h: Likewise.
55207         * lib/execute.c: Likewise.
55208         * lib/execute.h: Likewise.
55209         * lib/exitfail.c: Likewise.
55210         * lib/exitfail.h: Likewise.
55211         * lib/expl.c: Likewise.
55212         * lib/fatal-signal.c: Likewise.
55213         * lib/fatal-signal.h: Likewise.
55214         * lib/fbufmode.c: Likewise.
55215         * lib/fbufmode.h: Likewise.
55216         * lib/fchdir.c: Likewise.
55217         * lib/fchmodat.c: Likewise.
55218         * lib/fchownat.c: Likewise.
55219         * lib/fcntl--.h: Likewise.
55220         * lib/fcntl-safer.h: Likewise.
55221         * lib/fcntl.in.h: Likewise.
55222         * lib/fd-safer.c: Likewise.
55223         * lib/fflush.c: Likewise.
55224         * lib/file-has-acl.c: Likewise.
55225         * lib/file-set.c: Likewise.
55226         * lib/file-type.c: Likewise.
55227         * lib/file-type.h: Likewise.
55228         * lib/fileblocks.c: Likewise.
55229         * lib/filemode.c: Likewise.
55230         * lib/filemode.h: Likewise.
55231         * lib/filename.h: Likewise.
55232         * lib/filenamecat.c: Likewise.
55233         * lib/filenamecat.h: Likewise.
55234         * lib/findprog.c: Likewise.
55235         * lib/findprog.h: Likewise.
55236         * lib/float.in.h: Likewise.
55237         * lib/floor.c: Likewise.
55238         * lib/floorf.c: Likewise.
55239         * lib/floorl.c: Likewise.
55240         * lib/fopen-safer.c: Likewise.
55241         * lib/fopen.c: Likewise.
55242         * lib/fpending.c: Likewise.
55243         * lib/fpending.h: Likewise.
55244         * lib/fprintf.c: Likewise.
55245         * lib/fprintftime.h: Likewise.
55246         * lib/fpucw.h: Likewise.
55247         * lib/fpurge.c: Likewise.
55248         * lib/fpurge.h: Likewise.
55249         * lib/freadable.c: Likewise.
55250         * lib/freadable.h: Likewise.
55251         * lib/freadahead.c: Likewise.
55252         * lib/freadahead.h: Likewise.
55253         * lib/freading.c: Likewise.
55254         * lib/freading.h: Likewise.
55255         * lib/free.c: Likewise.
55256         * lib/freopen.c: Likewise.
55257         * lib/frexp.c: Likewise.
55258         * lib/frexpl.c: Likewise.
55259         * lib/fseek.c: Likewise.
55260         * lib/fseterr.c: Likewise.
55261         * lib/fseterr.h: Likewise.
55262         * lib/fstatat.c: Likewise.
55263         * lib/fstrcmp.c: Likewise.
55264         * lib/fstrcmp.h: Likewise.
55265         * lib/fsusage.c: Likewise.
55266         * lib/fsusage.h: Likewise.
55267         * lib/ftell.c: Likewise.
55268         * lib/ftello.c: Likewise.
55269         * lib/fts-cycle.c: Likewise.
55270         * lib/fts.c: Likewise.
55271         * lib/fts_.h: Likewise.
55272         * lib/full-read.c: Likewise.
55273         * lib/full-read.h: Likewise.
55274         * lib/full-write.c: Likewise.
55275         * lib/full-write.h: Likewise.
55276         * lib/fwritable.c: Likewise.
55277         * lib/fwritable.h: Likewise.
55278         * lib/fwriteerror.c: Likewise.
55279         * lib/fwriteerror.h: Likewise.
55280         * lib/fwriting.c: Likewise.
55281         * lib/fwriting.h: Likewise.
55282         * lib/gcd.c: Likewise.
55283         * lib/gcd.h: Likewise.
55284         * lib/getcwd.c: Likewise.
55285         * lib/getdate.h: Likewise.
55286         * lib/getdate.y: Likewise.
55287         * lib/getdomainname.c: Likewise.
55288         * lib/getdomainname.h: Likewise.
55289         * lib/getgroups.c: Likewise.
55290         * lib/gethostname.c: Likewise.
55291         * lib/gethrxtime.c: Likewise.
55292         * lib/gethrxtime.h: Likewise.
55293         * lib/getloadavg.c: Likewise.
55294         * lib/getndelim2.c: Likewise.
55295         * lib/getndelim2.h: Likewise.
55296         * lib/getnline.c: Likewise.
55297         * lib/getnline.h: Likewise.
55298         * lib/getopt.c: Likewise.
55299         * lib/getopt.in.h: Likewise.
55300         * lib/getopt1.c: Likewise.
55301         * lib/getopt_int.h: Likewise.
55302         * lib/getpagesize.h: Likewise.
55303         * lib/getsubopt.c: Likewise.
55304         * lib/gettime.c: Likewise.
55305         * lib/getugroups.c: Likewise.
55306         * lib/getugroups.h: Likewise.
55307         * lib/getusershell.c: Likewise.
55308         * lib/gl_anyavltree_list1.h: Likewise.
55309         * lib/gl_anyavltree_list2.h: Likewise.
55310         * lib/gl_anyhash_list1.h: Likewise.
55311         * lib/gl_anyhash_list2.h: Likewise.
55312         * lib/gl_anylinked_list1.h: Likewise.
55313         * lib/gl_anylinked_list2.h: Likewise.
55314         * lib/gl_anyrbtree_list1.h: Likewise.
55315         * lib/gl_anyrbtree_list2.h: Likewise.
55316         * lib/gl_anytree_list1.h: Likewise.
55317         * lib/gl_anytree_list2.h: Likewise.
55318         * lib/gl_anytree_oset.h: Likewise.
55319         * lib/gl_anytreehash_list1.h: Likewise.
55320         * lib/gl_anytreehash_list2.h: Likewise.
55321         * lib/gl_array_list.c: Likewise.
55322         * lib/gl_array_list.h: Likewise.
55323         * lib/gl_array_oset.c: Likewise.
55324         * lib/gl_array_oset.h: Likewise.
55325         * lib/gl_avltree_list.c: Likewise.
55326         * lib/gl_avltree_list.h: Likewise.
55327         * lib/gl_avltree_oset.c: Likewise.
55328         * lib/gl_avltree_oset.h: Likewise.
55329         * lib/gl_avltreehash_list.c: Likewise.
55330         * lib/gl_avltreehash_list.h: Likewise.
55331         * lib/gl_carray_list.c: Likewise.
55332         * lib/gl_carray_list.h: Likewise.
55333         * lib/gl_linked_list.c: Likewise.
55334         * lib/gl_linked_list.h: Likewise.
55335         * lib/gl_linkedhash_list.c: Likewise.
55336         * lib/gl_linkedhash_list.h: Likewise.
55337         * lib/gl_list.c: Likewise.
55338         * lib/gl_list.h: Likewise.
55339         * lib/gl_oset.c: Likewise.
55340         * lib/gl_oset.h: Likewise.
55341         * lib/gl_rbtree_list.c: Likewise.
55342         * lib/gl_rbtree_list.h: Likewise.
55343         * lib/gl_rbtree_oset.c: Likewise.
55344         * lib/gl_rbtree_oset.h: Likewise.
55345         * lib/gl_rbtreehash_list.c: Likewise.
55346         * lib/gl_rbtreehash_list.h: Likewise.
55347         * lib/gl_sublist.c: Likewise.
55348         * lib/gl_sublist.h: Likewise.
55349         * lib/group-member.c: Likewise.
55350         * lib/group-member.h: Likewise.
55351         * lib/hard-locale.c: Likewise.
55352         * lib/hard-locale.h: Likewise.
55353         * lib/hash-pjw.c: Likewise.
55354         * lib/hash-pjw.h: Likewise.
55355         * lib/hash-triple.c: Likewise.
55356         * lib/hash.c: Likewise.
55357         * lib/hash.h: Likewise.
55358         * lib/human.c: Likewise.
55359         * lib/human.h: Likewise.
55360         * lib/i-ring.c: Likewise.
55361         * lib/i-ring.h: Likewise.
55362         * lib/idcache.c: Likewise.
55363         * lib/imaxabs.c: Likewise.
55364         * lib/imaxdiv.c: Likewise.
55365         * lib/inet_pton.c: Likewise.
55366         * lib/inet_pton.h: Likewise.
55367         * lib/intprops.h: Likewise.
55368         * lib/inttostr.c: Likewise.
55369         * lib/inttostr.h: Likewise.
55370         * lib/inttypes.in.h: Likewise.
55371         * lib/isapipe.c: Likewise.
55372         * lib/isdir.c: Likewise.
55373         * lib/isnan.c: Likewise.
55374         * lib/isnan.h: Likewise.
55375         * lib/isnanf.c: Likewise.
55376         * lib/isnanf.h: Likewise.
55377         * lib/isnanl-nolibm.h: Likewise.
55378         * lib/isnanl.c: Likewise.
55379         * lib/isnanl.h: Likewise.
55380         * lib/javacomp.c: Likewise.
55381         * lib/javacomp.h: Likewise.
55382         * lib/javaexec.c: Likewise.
55383         * lib/javaexec.h: Likewise.
55384         * lib/javaversion.c: Likewise.
55385         * lib/javaversion.h: Likewise.
55386         * lib/javaversion.java: Likewise.
55387         * lib/lbrkprop.h: Likewise.
55388         * lib/lchmod.h: Likewise.
55389         * lib/lchown.c: Likewise.
55390         * lib/ldexpl.c: Likewise.
55391         * lib/linebreak.c: Likewise.
55392         * lib/linebreak.h: Likewise.
55393         * lib/linebuffer.c: Likewise.
55394         * lib/linebuffer.h: Likewise.
55395         * lib/locale.in.h: Likewise.
55396         * lib/logl.c: Likewise.
55397         * lib/long-options.c: Likewise.
55398         * lib/long-options.h: Likewise.
55399         * lib/lstat.c: Likewise.
55400         * lib/lstat.h: Likewise.
55401         * lib/math.in.h: Likewise.
55402         * lib/mbchar.c: Likewise.
55403         * lib/mbchar.h: Likewise.
55404         * lib/mbfile.h: Likewise.
55405         * lib/mbiter.h: Likewise.
55406         * lib/mbscasecmp.c: Likewise.
55407         * lib/mbscasestr.c: Likewise.
55408         * lib/mbschr.c: Likewise.
55409         * lib/mbscspn.c: Likewise.
55410         * lib/mbslen.c: Likewise.
55411         * lib/mbsncasecmp.c: Likewise.
55412         * lib/mbsnlen.c: Likewise.
55413         * lib/mbspbrk.c: Likewise.
55414         * lib/mbspcasecmp.c: Likewise.
55415         * lib/mbsrchr.c: Likewise.
55416         * lib/mbssep.c: Likewise.
55417         * lib/mbsspn.c: Likewise.
55418         * lib/mbsstr.c: Likewise.
55419         * lib/mbstok_r.c: Likewise.
55420         * lib/mbswidth.c: Likewise.
55421         * lib/mbswidth.h: Likewise.
55422         * lib/mbuiter.h: Likewise.
55423         * lib/memcasecmp.c: Likewise.
55424         * lib/memcasecmp.h: Likewise.
55425         * lib/memchr.c: Likewise.
55426         * lib/memcmp.c: Likewise.
55427         * lib/memcoll.c: Likewise.
55428         * lib/memcoll.h: Likewise.
55429         * lib/memcpy.c: Likewise.
55430         * lib/memrchr.c: Likewise.
55431         * lib/mkancesdirs.c: Likewise.
55432         * lib/mkdir-p.c: Likewise.
55433         * lib/mkdir-p.h: Likewise.
55434         * lib/mkdir.c: Likewise.
55435         * lib/mkdirat.c: Likewise.
55436         * lib/mkdtemp.c: Likewise.
55437         * lib/mkstemp-safer.c: Likewise.
55438         * lib/mkstemp.c: Likewise.
55439         * lib/modechange.c: Likewise.
55440         * lib/modechange.h: Likewise.
55441         * lib/mountlist.c: Likewise.
55442         * lib/mountlist.h: Likewise.
55443         * lib/mpsort.c: Likewise.
55444         * lib/nanosleep.c: Likewise.
55445         * lib/obstack.c: Likewise.
55446         * lib/obstack.h: Likewise.
55447         * lib/open-safer.c: Likewise.
55448         * lib/open.c: Likewise.
55449         * lib/openat-die.c: Likewise.
55450         * lib/openat-priv.h: Likewise.
55451         * lib/openat-proc.c: Likewise.
55452         * lib/openat.c: Likewise.
55453         * lib/openat.h: Likewise.
55454         * lib/pagealign_alloc.c: Likewise.
55455         * lib/pagealign_alloc.h: Likewise.
55456         * lib/physmem.c: Likewise.
55457         * lib/physmem.h: Likewise.
55458         * lib/pipe-safer.c: Likewise.
55459         * lib/pipe.c: Likewise.
55460         * lib/pipe.h: Likewise.
55461         * lib/posixtm.c: Likewise.
55462         * lib/posixtm.h: Likewise.
55463         * lib/posixver.c: Likewise.
55464         * lib/printf-frexp.c: Likewise.
55465         * lib/printf-frexp.h: Likewise.
55466         * lib/printf-frexpl.c: Likewise.
55467         * lib/printf-frexpl.h: Likewise.
55468         * lib/printf.c: Likewise.
55469         * lib/progname.c: Likewise.
55470         * lib/progname.h: Likewise.
55471         * lib/progreloc.c: Likewise.
55472         * lib/putenv.c: Likewise.
55473         * lib/quote.c: Likewise.
55474         * lib/quote.h: Likewise.
55475         * lib/quotearg.c: Likewise.
55476         * lib/quotearg.h: Likewise.
55477         * lib/raise.c: Likewise.
55478         * lib/readline.c: Likewise.
55479         * lib/readline.h: Likewise.
55480         * lib/readlink.c: Likewise.
55481         * lib/readtokens.c: Likewise.
55482         * lib/readtokens.h: Likewise.
55483         * lib/readtokens0.c: Likewise.
55484         * lib/readtokens0.h: Likewise.
55485         * lib/readutmp.c: Likewise.
55486         * lib/readutmp.h: Likewise.
55487         * lib/realloc.c: Likewise.
55488         * lib/relocwrapper.c: Likewise.
55489         * lib/rename-dest-slash.c: Likewise.
55490         * lib/rename.c: Likewise.
55491         * lib/rmdir.c: Likewise.
55492         * lib/rpmatch.c: Likewise.
55493         * lib/safe-read.c: Likewise.
55494         * lib/safe-read.h: Likewise.
55495         * lib/safe-write.c: Likewise.
55496         * lib/safe-write.h: Likewise.
55497         * lib/same-inode.h: Likewise.
55498         * lib/same.c: Likewise.
55499         * lib/same.h: Likewise.
55500         * lib/save-cwd.c: Likewise.
55501         * lib/save-cwd.h: Likewise.
55502         * lib/savedir.c: Likewise.
55503         * lib/savedir.h: Likewise.
55504         * lib/savewd.c: Likewise.
55505         * lib/savewd.h: Likewise.
55506         * lib/search.in.h: Likewise.
55507         * lib/setenv.c: Likewise.
55508         * lib/setenv.h: Likewise.
55509         * lib/settime.c: Likewise.
55510         * lib/sh-quote.c: Likewise.
55511         * lib/sh-quote.h: Likewise.
55512         * lib/sig2str.c: Likewise.
55513         * lib/sig2str.h: Likewise.
55514         * lib/signal.in.h: Likewise.
55515         * lib/signbitd.c: Likewise.
55516         * lib/signbitf.c: Likewise.
55517         * lib/signbitl.c: Likewise.
55518         * lib/sigprocmask.c: Likewise.
55519         * lib/sincosl.c: Likewise.
55520         * lib/sleep.c: Likewise.
55521         * lib/sprintf.c: Likewise.
55522         * lib/sqrtl.c: Likewise.
55523         * lib/stat-time.h: Likewise.
55524         * lib/stdio--.h: Likewise.
55525         * lib/stdio-safer.h: Likewise.
55526         * lib/stdlib--.h: Likewise.
55527         * lib/stdlib-safer.h: Likewise.
55528         * lib/stdlib.in.h: Likewise.
55529         * lib/stpcpy.c: Likewise.
55530         * lib/stpncpy.c: Likewise.
55531         * lib/strchrnul.c: Likewise.
55532         * lib/strcspn.c: Likewise.
55533         * lib/strerror.c: Likewise.
55534         * lib/strftime.c: Likewise.
55535         * lib/strftime.h: Likewise.
55536         * lib/striconveh.c: Likewise.
55537         * lib/striconveh.h: Likewise.
55538         * lib/striconveha.c: Likewise.
55539         * lib/striconveha.h: Likewise.
55540         * lib/stripslash.c: Likewise.
55541         * lib/strnlen1.c: Likewise.
55542         * lib/strnlen1.h: Likewise.
55543         * lib/strtod.c: Likewise.
55544         * lib/strtoimax.c: Likewise.
55545         * lib/strtok_r.c: Likewise.
55546         * lib/strtol.c: Likewise.
55547         * lib/strtoll.c: Likewise.
55548         * lib/strtoul.c: Likewise.
55549         * lib/strtoull.c: Likewise.
55550         * lib/sysexits.in.h: Likewise.
55551         * lib/tempname.c: Likewise.
55552         * lib/tempname.h: Likewise.
55553         * lib/timespec.h: Likewise.
55554         * lib/tls.c: Likewise.
55555         * lib/tls.h: Likewise.
55556         * lib/tmpdir.c: Likewise.
55557         * lib/tmpdir.h: Likewise.
55558         * lib/tmpfile-safer.c: Likewise.
55559         * lib/tmpfile.c: Likewise.
55560         * lib/trigl.c: Likewise.
55561         * lib/trigl.h: Likewise.
55562         * lib/trim.c: Likewise.
55563         * lib/trim.h: Likewise.
55564         * lib/trunc.c: Likewise.
55565         * lib/truncf.c: Likewise.
55566         * lib/truncl.c: Likewise.
55567         * lib/tsearch.c: Likewise.
55568         * lib/unicodeio.c: Likewise.
55569         * lib/unicodeio.h: Likewise.
55570         * lib/unistd--.h: Likewise.
55571         * lib/unistd-safer.h: Likewise.
55572         * lib/unistdio/ulc-fprintf.c: Likewise.
55573         * lib/unistdio/ulc-vfprintf.c: Likewise.
55574         * lib/unlinkdir.c: Likewise.
55575         * lib/unlinkdir.h: Likewise.
55576         * lib/unlocked-io.h: Likewise.
55577         * lib/unsetenv.c: Likewise.
55578         * lib/userspec.c: Likewise.
55579         * lib/utime.c: Likewise.
55580         * lib/utimecmp.c: Likewise.
55581         * lib/utimecmp.h: Likewise.
55582         * lib/utimens.c: Likewise.
55583         * lib/verify.h: Likewise.
55584         * lib/verror.c: Likewise.
55585         * lib/verror.h: Likewise.
55586         * lib/version-etc-fsf.c: Likewise.
55587         * lib/version-etc.c: Likewise.
55588         * lib/version-etc.h: Likewise.
55589         * lib/vfprintf.c: Likewise.
55590         * lib/vprintf.c: Likewise.
55591         * lib/vsprintf.c: Likewise.
55592         * lib/w32spawn.h: Likewise.
55593         * lib/wait-process.c: Likewise.
55594         * lib/wait-process.h: Likewise.
55595         * lib/wcwidth.c: Likewise.
55596         * lib/write-any-file.c: Likewise.
55597         * lib/xalloc-die.c: Likewise.
55598         * lib/xalloc.h: Likewise.
55599         * lib/xasprintf.c: Likewise.
55600         * lib/xgetcwd.c: Likewise.
55601         * lib/xgetcwd.h: Likewise.
55602         * lib/xgetdomainname.c: Likewise.
55603         * lib/xgetdomainname.h: Likewise.
55604         * lib/xgethostname.c: Likewise.
55605         * lib/xmalloc.c: Likewise.
55606         * lib/xmalloca.c: Likewise.
55607         * lib/xmalloca.h: Likewise.
55608         * lib/xmemcoll.c: Likewise.
55609         * lib/xnanosleep.c: Likewise.
55610         * lib/xreadlink.c: Likewise.
55611         * lib/xreadlink.h: Likewise.
55612         * lib/xsetenv.c: Likewise.
55613         * lib/xsetenv.h: Likewise.
55614         * lib/xstriconv.c: Likewise.
55615         * lib/xstriconv.h: Likewise.
55616         * lib/xstrndup.c: Likewise.
55617         * lib/xstrndup.h: Likewise.
55618         * lib/xstrtod.c: Likewise.
55619         * lib/xstrtod.h: Likewise.
55620         * lib/xstrtol-error.c: Likewise.
55621         * lib/xstrtol.c: Likewise.
55622         * lib/xstrtol.h: Likewise.
55623         * lib/xtime.h: Likewise.
55624         * lib/xvasprintf.c: Likewise.
55625         * lib/xvasprintf.h: Likewise.
55626         * lib/yesno.c: Likewise.
55627         * lib/yesno.h: Likewise.
55628         * posix-modules: Likewise.
55629         * tests/test-alloca-opt.c: Likewise.
55630         * tests/test-arcfour.c: Likewise.
55631         * tests/test-arctwo.c: Likewise.
55632         * tests/test-argmatch.c: Likewise.
55633         * tests/test-argp-2.sh: Likewise.
55634         * tests/test-argp.c: Likewise.
55635         * tests/test-arpa_inet.c: Likewise.
55636         * tests/test-array_list.c: Likewise.
55637         * tests/test-array_oset.c: Likewise.
55638         * tests/test-atexit.c: Likewise.
55639         * tests/test-avltree_list.c: Likewise.
55640         * tests/test-avltree_oset.c: Likewise.
55641         * tests/test-avltreehash_list.c: Likewise.
55642         * tests/test-base64.c: Likewise.
55643         * tests/test-binary-io.c: Likewise.
55644         * tests/test-byteswap.c: Likewise.
55645         * tests/test-c-ctype.c: Likewise.
55646         * tests/test-c-strcasecmp.c: Likewise.
55647         * tests/test-c-strcasestr.c: Likewise.
55648         * tests/test-c-strncasecmp.c: Likewise.
55649         * tests/test-c-strstr.c: Likewise.
55650         * tests/test-canonicalize-lgpl.c: Likewise.
55651         * tests/test-canonicalize.c: Likewise.
55652         * tests/test-carray_list.c: Likewise.
55653         * tests/test-ceilf.c: Likewise.
55654         * tests/test-ceill.c: Likewise.
55655         * tests/test-count-one-bits.c: Likewise.
55656         * tests/test-crc.c: Likewise.
55657         * tests/test-dirname.c: Likewise.
55658         * tests/test-fbufmode.c: Likewise.
55659         * tests/test-fcntl.c: Likewise.
55660         * tests/test-fflush.c: Likewise.
55661         * tests/test-floorf.c: Likewise.
55662         * tests/test-floorl.c: Likewise.
55663         * tests/test-fopen.c: Likewise.
55664         * tests/test-fprintf-posix.c: Likewise.
55665         * tests/test-fprintf-posix.h: Likewise.
55666         * tests/test-fpurge.c: Likewise.
55667         * tests/test-freadable.c: Likewise.
55668         * tests/test-freadahead.c: Likewise.
55669         * tests/test-freading.c: Likewise.
55670         * tests/test-freopen.c: Likewise.
55671         * tests/test-frexp.c: Likewise.
55672         * tests/test-frexpl.c: Likewise.
55673         * tests/test-fseek.c: Likewise.
55674         * tests/test-fseeko.c: Likewise.
55675         * tests/test-fseterr.c: Likewise.
55676         * tests/test-fstrcmp.c: Likewise.
55677         * tests/test-ftell.c: Likewise.
55678         * tests/test-ftello.c: Likewise.
55679         * tests/test-fwritable.c: Likewise.
55680         * tests/test-fwriting.c: Likewise.
55681         * tests/test-getaddrinfo.c: Likewise.
55682         * tests/test-getpass.c: Likewise.
55683         * tests/test-gettimeofday.c: Likewise.
55684         * tests/test-hmac-md5.c: Likewise.
55685         * tests/test-hmac-sha1.c: Likewise.
55686         * tests/test-iconv.c: Likewise.
55687         * tests/test-iconvme.c: Likewise.
55688         * tests/test-inttypes.c: Likewise.
55689         * tests/test-isnan.c: Likewise.
55690         * tests/test-isnanf.c: Likewise.
55691         * tests/test-isnanl-nolibm.c: Likewise.
55692         * tests/test-isnanl.c: Likewise.
55693         * tests/test-isnanl.h: Likewise.
55694         * tests/test-ldexpl.c: Likewise.
55695         * tests/test-linked_list.c: Likewise.
55696         * tests/test-linkedhash_list.c: Likewise.
55697         * tests/test-locale.c: Likewise.
55698         * tests/test-localename.c: Likewise.
55699         * tests/test-lock.c: Likewise.
55700         * tests/test-lseek.c: Likewise.
55701         * tests/test-malloca.c: Likewise.
55702         * tests/test-math.c: Likewise.
55703         * tests/test-mbscasecmp.c: Likewise.
55704         * tests/test-mbscasestr1.c: Likewise.
55705         * tests/test-mbscasestr2.c: Likewise.
55706         * tests/test-mbscasestr3.c: Likewise.
55707         * tests/test-mbscasestr4.c: Likewise.
55708         * tests/test-mbschr.c: Likewise.
55709         * tests/test-mbscspn.c: Likewise.
55710         * tests/test-mbsncasecmp.c: Likewise.
55711         * tests/test-mbspbrk.c: Likewise.
55712         * tests/test-mbspcasecmp.c: Likewise.
55713         * tests/test-mbsrchr.c: Likewise.
55714         * tests/test-mbsspn.c: Likewise.
55715         * tests/test-mbsstr1.c: Likewise.
55716         * tests/test-mbsstr2.c: Likewise.
55717         * tests/test-mbsstr3.c: Likewise.
55718         * tests/test-md5.c: Likewise.
55719         * tests/test-memmem.c: Likewise.
55720         * tests/test-netinet_in.c: Likewise.
55721         * tests/test-open.c: Likewise.
55722         * tests/test-printf-frexp.c: Likewise.
55723         * tests/test-printf-frexpl.c: Likewise.
55724         * tests/test-printf-posix.c: Likewise.
55725         * tests/test-printf-posix.h: Likewise.
55726         * tests/test-rbtree_list.c: Likewise.
55727         * tests/test-rbtree_oset.c: Likewise.
55728         * tests/test-rbtreehash_list.c: Likewise.
55729         * tests/test-read-file.c: Likewise.
55730         * tests/test-rijndael.c: Likewise.
55731         * tests/test-search.c: Likewise.
55732         * tests/test-signbit.c: Likewise.
55733         * tests/test-sleep.c: Likewise.
55734         * tests/test-snprintf-posix.c: Likewise.
55735         * tests/test-snprintf-posix.h: Likewise.
55736         * tests/test-snprintf.c: Likewise.
55737         * tests/test-sprintf-posix.c: Likewise.
55738         * tests/test-sprintf-posix.h: Likewise.
55739         * tests/test-stat-time.c: Likewise.
55740         * tests/test-stdbool.c: Likewise.
55741         * tests/test-stdint.c: Likewise.
55742         * tests/test-stdio.c: Likewise.
55743         * tests/test-stdlib.c: Likewise.
55744         * tests/test-stpncpy.c: Likewise.
55745         * tests/test-strcasestr.c: Likewise.
55746         * tests/test-striconv.c: Likewise.
55747         * tests/test-striconveh.c: Likewise.
55748         * tests/test-striconveha.c: Likewise.
55749         * tests/test-string.c: Likewise.
55750         * tests/test-sys_select.c: Likewise.
55751         * tests/test-sys_socket.c: Likewise.
55752         * tests/test-sys_stat.c: Likewise.
55753         * tests/test-sys_time.c: Likewise.
55754         * tests/test-sysexits.c: Likewise.
55755         * tests/test-time.c: Likewise.
55756         * tests/test-tls.c: Likewise.
55757         * tests/test-trunc.c: Likewise.
55758         * tests/test-truncf.c: Likewise.
55759         * tests/test-truncl.c: Likewise.
55760         * tests/test-unistd.c: Likewise.
55761         * tests/test-vasnprintf-posix.c: Likewise.
55762         * tests/test-vasnprintf-posix2.c: Likewise.
55763         * tests/test-vasnprintf.c: Likewise.
55764         * tests/test-vasprintf-posix.c: Likewise.
55765         * tests/test-vasprintf.c: Likewise.
55766         * tests/test-verify.c: Likewise.
55767         * tests/test-vfprintf-posix.c: Likewise.
55768         * tests/test-vprintf-posix.c: Likewise.
55769         * tests/test-vsnprintf-posix.c: Likewise.
55770         * tests/test-vsnprintf.c: Likewise.
55771         * tests/test-vsprintf-posix.c: Likewise.
55772         * tests/test-wchar.c: Likewise.
55773         * tests/test-wctype.c: Likewise.
55774         * tests/test-wcwidth.c: Likewise.
55775         * tests/test-xstrtol.c: Likewise.
55776         * tests/test-xvasprintf.c: Likewise.
55777         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
55778         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
55779         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
55780         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
55781         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
55782         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
55783         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
55784         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
55785         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
55786         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
55787         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
55788         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
55789         * tests/uniname/test-uninames.c: Likewise.
55790         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
55791         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
55792         * tests/unistdio/test-u16-printf1.h: Likewise.
55793         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
55794         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
55795         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
55796         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
55797         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
55798         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
55799         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
55800         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
55801         * tests/unistdio/test-u32-printf1.h: Likewise.
55802         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
55803         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
55804         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
55805         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
55806         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
55807         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
55808         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
55809         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
55810         * tests/unistdio/test-u8-printf1.h: Likewise.
55811         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
55812         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
55813         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
55814         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
55815         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
55816         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
55817         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
55818         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
55819         * tests/unistdio/test-ulc-printf1.h: Likewise.
55820         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
55821         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
55822         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
55823         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
55824         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
55825         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
55826         * tests/uniwidth/test-u16-strwidth.c: Likewise.
55827         * tests/uniwidth/test-u16-width.c: Likewise.
55828         * tests/uniwidth/test-u32-strwidth.c: Likewise.
55829         * tests/uniwidth/test-u32-width.c: Likewise.
55830         * tests/uniwidth/test-u8-strwidth.c: Likewise.
55831         * tests/uniwidth/test-u8-width.c: Likewise.
55832         * tests/uniwidth/test-uc_width.c: Likewise.
55833         * config/srclist-update: Likewise.
55834         (fixlicense): Update to GPLv3+.
55835
55836         Change copyright notice from LGPLv2.1+ to LGPLv3+.
55837         * tests/test-tsearch.c: Change copyright notice.
55838
55839         Change copyright notice from LGPLv2.0+ to LGPLv3+.
55840         * lib/c-strcaseeq.h: Change copyright notice.
55841         * lib/streq.h: Likewise.
55842         * lib/uniconv.h: Likewise.
55843         * lib/uniconv/u-conv-from-enc.h: Likewise.
55844         * lib/uniconv/u-conv-to-enc.h: Likewise.
55845         * lib/uniconv/u-strconv-from-enc.h: Likewise.
55846         * lib/uniconv/u-strconv-to-enc.h: Likewise.
55847         * lib/uniconv/u16-conv-from-enc.c: Likewise.
55848         * lib/uniconv/u16-conv-to-enc.c: Likewise.
55849         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
55850         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
55851         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
55852         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
55853         * lib/uniconv/u32-conv-from-enc.c: Likewise.
55854         * lib/uniconv/u32-conv-to-enc.c: Likewise.
55855         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
55856         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
55857         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
55858         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
55859         * lib/uniconv/u8-conv-from-enc.c: Likewise.
55860         * lib/uniconv/u8-conv-to-enc.c: Likewise.
55861         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
55862         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
55863         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
55864         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
55865         * lib/uniname.h: Likewise.
55866         * lib/uniname/uniname.c: Likewise.
55867         * lib/unistdio.h: Likewise.
55868         * lib/unistdio/u-asnprintf.h: Likewise.
55869         * lib/unistdio/u-asprintf.h: Likewise.
55870         * lib/unistdio/u-printf-args.c: Likewise.
55871         * lib/unistdio/u-printf-args.h: Likewise.
55872         * lib/unistdio/u-printf-parse.h: Likewise.
55873         * lib/unistdio/u-snprintf.h: Likewise.
55874         * lib/unistdio/u-sprintf.h: Likewise.
55875         * lib/unistdio/u-vasprintf.h: Likewise.
55876         * lib/unistdio/u-vsnprintf.h: Likewise.
55877         * lib/unistdio/u-vsprintf.h: Likewise.
55878         * lib/unistdio/u16-asnprintf.c: Likewise.
55879         * lib/unistdio/u16-asprintf.c: Likewise.
55880         * lib/unistdio/u16-printf-parse.c: Likewise.
55881         * lib/unistdio/u16-snprintf.c: Likewise.
55882         * lib/unistdio/u16-sprintf.c: Likewise.
55883         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
55884         * lib/unistdio/u16-u16-asprintf.c: Likewise.
55885         * lib/unistdio/u16-u16-snprintf.c: Likewise.
55886         * lib/unistdio/u16-u16-sprintf.c: Likewise.
55887         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
55888         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
55889         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
55890         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
55891         * lib/unistdio/u16-vasnprintf.c: Likewise.
55892         * lib/unistdio/u16-vasprintf.c: Likewise.
55893         * lib/unistdio/u16-vsnprintf.c: Likewise.
55894         * lib/unistdio/u16-vsprintf.c: Likewise.
55895         * lib/unistdio/u32-asnprintf.c: Likewise.
55896         * lib/unistdio/u32-asprintf.c: Likewise.
55897         * lib/unistdio/u32-printf-parse.c: Likewise.
55898         * lib/unistdio/u32-snprintf.c: Likewise.
55899         * lib/unistdio/u32-sprintf.c: Likewise.
55900         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
55901         * lib/unistdio/u32-u32-asprintf.c: Likewise.
55902         * lib/unistdio/u32-u32-snprintf.c: Likewise.
55903         * lib/unistdio/u32-u32-sprintf.c: Likewise.
55904         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
55905         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
55906         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
55907         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
55908         * lib/unistdio/u32-vasnprintf.c: Likewise.
55909         * lib/unistdio/u32-vasprintf.c: Likewise.
55910         * lib/unistdio/u32-vsnprintf.c: Likewise.
55911         * lib/unistdio/u32-vsprintf.c: Likewise.
55912         * lib/unistdio/u8-asnprintf.c: Likewise.
55913         * lib/unistdio/u8-asprintf.c: Likewise.
55914         * lib/unistdio/u8-printf-parse.c: Likewise.
55915         * lib/unistdio/u8-snprintf.c: Likewise.
55916         * lib/unistdio/u8-sprintf.c: Likewise.
55917         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
55918         * lib/unistdio/u8-u8-asprintf.c: Likewise.
55919         * lib/unistdio/u8-u8-snprintf.c: Likewise.
55920         * lib/unistdio/u8-u8-sprintf.c: Likewise.
55921         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
55922         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
55923         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
55924         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
55925         * lib/unistdio/u8-vasnprintf.c: Likewise.
55926         * lib/unistdio/u8-vasprintf.c: Likewise.
55927         * lib/unistdio/u8-vsnprintf.c: Likewise.
55928         * lib/unistdio/u8-vsprintf.c: Likewise.
55929         * lib/unistdio/ulc-asnprintf.c: Likewise.
55930         * lib/unistdio/ulc-asprintf.c: Likewise.
55931         * lib/unistdio/ulc-printf-parse.c: Likewise.
55932         * lib/unistdio/ulc-snprintf.c: Likewise.
55933         * lib/unistdio/ulc-sprintf.c: Likewise.
55934         * lib/unistdio/ulc-vasnprintf.c: Likewise.
55935         * lib/unistdio/ulc-vasprintf.c: Likewise.
55936         * lib/unistdio/ulc-vsnprintf.c: Likewise.
55937         * lib/unistdio/ulc-vsprintf.c: Likewise.
55938         * lib/unistr.h: Likewise.
55939         * lib/unistr/u-cpy-alloc.h: Likewise.
55940         * lib/unistr/u-cpy.h: Likewise.
55941         * lib/unistr/u-endswith.h: Likewise.
55942         * lib/unistr/u-move.h: Likewise.
55943         * lib/unistr/u-set.h: Likewise.
55944         * lib/unistr/u-startswith.h: Likewise.
55945         * lib/unistr/u-stpcpy.h: Likewise.
55946         * lib/unistr/u-stpncpy.h: Likewise.
55947         * lib/unistr/u-strcat.h: Likewise.
55948         * lib/unistr/u-strcpy.h: Likewise.
55949         * lib/unistr/u-strcspn.h: Likewise.
55950         * lib/unistr/u-strdup.h: Likewise.
55951         * lib/unistr/u-strlen.h: Likewise.
55952         * lib/unistr/u-strncat.h: Likewise.
55953         * lib/unistr/u-strncpy.h: Likewise.
55954         * lib/unistr/u-strnlen.h: Likewise.
55955         * lib/unistr/u-strpbrk.h: Likewise.
55956         * lib/unistr/u-strspn.h: Likewise.
55957         * lib/unistr/u-strstr.h: Likewise.
55958         * lib/unistr/u-strtok.h: Likewise.
55959         * lib/unistr/u16-check.c: Likewise.
55960         * lib/unistr/u16-chr.c: Likewise.
55961         * lib/unistr/u16-cmp.c: Likewise.
55962         * lib/unistr/u16-cpy-alloc.c: Likewise.
55963         * lib/unistr/u16-cpy.c: Likewise.
55964         * lib/unistr/u16-endswith.c: Likewise.
55965         * lib/unistr/u16-mblen.c: Likewise.
55966         * lib/unistr/u16-mbsnlen.c: Likewise.
55967         * lib/unistr/u16-mbtouc-aux.c: Likewise.
55968         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
55969         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
55970         * lib/unistr/u16-mbtouc.c: Likewise.
55971         * lib/unistr/u16-mbtoucr.c: Likewise.
55972         * lib/unistr/u16-move.c: Likewise.
55973         * lib/unistr/u16-next.c: Likewise.
55974         * lib/unistr/u16-prev.c: Likewise.
55975         * lib/unistr/u16-set.c: Likewise.
55976         * lib/unistr/u16-startswith.c: Likewise.
55977         * lib/unistr/u16-stpcpy.c: Likewise.
55978         * lib/unistr/u16-stpncpy.c: Likewise.
55979         * lib/unistr/u16-strcat.c: Likewise.
55980         * lib/unistr/u16-strchr.c: Likewise.
55981         * lib/unistr/u16-strcmp.c: Likewise.
55982         * lib/unistr/u16-strcpy.c: Likewise.
55983         * lib/unistr/u16-strcspn.c: Likewise.
55984         * lib/unistr/u16-strdup.c: Likewise.
55985         * lib/unistr/u16-strlen.c: Likewise.
55986         * lib/unistr/u16-strmblen.c: Likewise.
55987         * lib/unistr/u16-strmbtouc.c: Likewise.
55988         * lib/unistr/u16-strncat.c: Likewise.
55989         * lib/unistr/u16-strncmp.c: Likewise.
55990         * lib/unistr/u16-strncpy.c: Likewise.
55991         * lib/unistr/u16-strnlen.c: Likewise.
55992         * lib/unistr/u16-strpbrk.c: Likewise.
55993         * lib/unistr/u16-strrchr.c: Likewise.
55994         * lib/unistr/u16-strspn.c: Likewise.
55995         * lib/unistr/u16-strstr.c: Likewise.
55996         * lib/unistr/u16-strtok.c: Likewise.
55997         * lib/unistr/u16-to-u32.c: Likewise.
55998         * lib/unistr/u16-to-u8.c: Likewise.
55999         * lib/unistr/u16-uctomb-aux.c: Likewise.
56000         * lib/unistr/u16-uctomb.c: Likewise.
56001         * lib/unistr/u32-check.c: Likewise.
56002         * lib/unistr/u32-chr.c: Likewise.
56003         * lib/unistr/u32-cmp.c: Likewise.
56004         * lib/unistr/u32-cpy-alloc.c: Likewise.
56005         * lib/unistr/u32-cpy.c: Likewise.
56006         * lib/unistr/u32-endswith.c: Likewise.
56007         * lib/unistr/u32-mblen.c: Likewise.
56008         * lib/unistr/u32-mbsnlen.c: Likewise.
56009         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
56010         * lib/unistr/u32-mbtouc.c: Likewise.
56011         * lib/unistr/u32-mbtoucr.c: Likewise.
56012         * lib/unistr/u32-move.c: Likewise.
56013         * lib/unistr/u32-next.c: Likewise.
56014         * lib/unistr/u32-prev.c: Likewise.
56015         * lib/unistr/u32-set.c: Likewise.
56016         * lib/unistr/u32-startswith.c: Likewise.
56017         * lib/unistr/u32-stpcpy.c: Likewise.
56018         * lib/unistr/u32-stpncpy.c: Likewise.
56019         * lib/unistr/u32-strcat.c: Likewise.
56020         * lib/unistr/u32-strchr.c: Likewise.
56021         * lib/unistr/u32-strcmp.c: Likewise.
56022         * lib/unistr/u32-strcpy.c: Likewise.
56023         * lib/unistr/u32-strcspn.c: Likewise.
56024         * lib/unistr/u32-strdup.c: Likewise.
56025         * lib/unistr/u32-strlen.c: Likewise.
56026         * lib/unistr/u32-strmblen.c: Likewise.
56027         * lib/unistr/u32-strmbtouc.c: Likewise.
56028         * lib/unistr/u32-strncat.c: Likewise.
56029         * lib/unistr/u32-strncmp.c: Likewise.
56030         * lib/unistr/u32-strncpy.c: Likewise.
56031         * lib/unistr/u32-strnlen.c: Likewise.
56032         * lib/unistr/u32-strpbrk.c: Likewise.
56033         * lib/unistr/u32-strrchr.c: Likewise.
56034         * lib/unistr/u32-strspn.c: Likewise.
56035         * lib/unistr/u32-strstr.c: Likewise.
56036         * lib/unistr/u32-strtok.c: Likewise.
56037         * lib/unistr/u32-to-u16.c: Likewise.
56038         * lib/unistr/u32-to-u8.c: Likewise.
56039         * lib/unistr/u32-uctomb.c: Likewise.
56040         * lib/unistr/u8-check.c: Likewise.
56041         * lib/unistr/u8-chr.c: Likewise.
56042         * lib/unistr/u8-cmp.c: Likewise.
56043         * lib/unistr/u8-cpy-alloc.c: Likewise.
56044         * lib/unistr/u8-cpy.c: Likewise.
56045         * lib/unistr/u8-endswith.c: Likewise.
56046         * lib/unistr/u8-mblen.c: Likewise.
56047         * lib/unistr/u8-mbsnlen.c: Likewise.
56048         * lib/unistr/u8-mbtouc-aux.c: Likewise.
56049         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
56050         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
56051         * lib/unistr/u8-mbtouc.c: Likewise.
56052         * lib/unistr/u8-mbtoucr.c: Likewise.
56053         * lib/unistr/u8-move.c: Likewise.
56054         * lib/unistr/u8-next.c: Likewise.
56055         * lib/unistr/u8-prev.c: Likewise.
56056         * lib/unistr/u8-set.c: Likewise.
56057         * lib/unistr/u8-startswith.c: Likewise.
56058         * lib/unistr/u8-stpcpy.c: Likewise.
56059         * lib/unistr/u8-stpncpy.c: Likewise.
56060         * lib/unistr/u8-strcat.c: Likewise.
56061         * lib/unistr/u8-strchr.c: Likewise.
56062         * lib/unistr/u8-strcmp.c: Likewise.
56063         * lib/unistr/u8-strcpy.c: Likewise.
56064         * lib/unistr/u8-strcspn.c: Likewise.
56065         * lib/unistr/u8-strdup.c: Likewise.
56066         * lib/unistr/u8-strlen.c: Likewise.
56067         * lib/unistr/u8-strmblen.c: Likewise.
56068         * lib/unistr/u8-strmbtouc.c: Likewise.
56069         * lib/unistr/u8-strncat.c: Likewise.
56070         * lib/unistr/u8-strncmp.c: Likewise.
56071         * lib/unistr/u8-strncpy.c: Likewise.
56072         * lib/unistr/u8-strnlen.c: Likewise.
56073         * lib/unistr/u8-strpbrk.c: Likewise.
56074         * lib/unistr/u8-strrchr.c: Likewise.
56075         * lib/unistr/u8-strspn.c: Likewise.
56076         * lib/unistr/u8-strstr.c: Likewise.
56077         * lib/unistr/u8-strtok.c: Likewise.
56078         * lib/unistr/u8-to-u16.c: Likewise.
56079         * lib/unistr/u8-to-u32.c: Likewise.
56080         * lib/unistr/u8-uctomb-aux.c: Likewise.
56081         * lib/unistr/u8-uctomb.c: Likewise.
56082         * lib/unitypes.h: Likewise.
56083         * lib/uniwidth.h: Likewise.
56084         * lib/uniwidth/cjk.h: Likewise.
56085         * lib/uniwidth/u16-strwidth.c: Likewise.
56086         * lib/uniwidth/u16-width.c: Likewise.
56087         * lib/uniwidth/u32-strwidth.c: Likewise.
56088         * lib/uniwidth/u32-width.c: Likewise.
56089         * lib/uniwidth/u8-strwidth.c: Likewise.
56090         * lib/uniwidth/u8-width.c: Likewise.
56091         * lib/uniwidth/width.c: Likewise.
56092
56093 2007-10-07  Bruno Haible  <bruno@clisp.org>
56094
56095         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
56096         The file is still under LGPL (see modules/inttypes).
56097
56098 2007-10-06  Bruno Haible  <bruno@clisp.org>
56099
56100         * modules/trunc (Dependencies): Add 'extensions'.
56101         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
56102         Reported by Ben Pfaff <blp@gnu.org>.
56103
56104 2007-10-06  Bruno Haible  <bruno@clisp.org>
56105
56106         * modules/freopen-tests: New file.
56107         * tests/test-freopen.c: New file.
56108
56109         * modules/fopen-tests: New file.
56110         * tests/test-fopen.c: New file.
56111
56112         * modules/fopen: New file.
56113         * lib/fopen.c: New file.
56114         * m4/fopen.m4: New file.
56115         * modules/freopen: New file.
56116         * lib/freopen.c: New file.
56117         * m4/freopen.m4: New file.
56118         * lib/stdio.in.h (fopen, freopen): New declarations.
56119         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
56120         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
56121         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
56122         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
56123         * doc/functions/fopen.texi: Mention the 'fopen' module.
56124         * doc/functions/freopen.texi: Mention the 'freopen' module.
56125
56126 2007-10-06  Bruno Haible  <bruno@clisp.org>
56127
56128         * modules/open-tests: New file.
56129         * tests/test-open.c: New file.
56130
56131         * modules/open: New file.
56132         * lib/open.c: New file.
56133         * m4/open.m4: New file.
56134         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
56135         lib/open.c does.
56136         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
56137         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
56138         macros.
56139         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
56140         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
56141         REPLACE_OPEN.
56142         * doc/functions/open.texi: Mention the 'open' module.
56143
56144 2007-10-04  Bruno Haible  <bruno@clisp.org>
56145
56146         * modules/ceill-tests: New file.
56147         * tests/test-ceill.c: New file.
56148
56149         * modules/ceill: New file.
56150         * lib/ceill.c: Replace entire file.
56151         * m4/ceill.m4: New file.
56152         * lib/math.in.h (ceill): Replace declaration.
56153         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
56154         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
56155         * doc/functions/ceill.texi: Mention the 'ceill' module.
56156         * modules/mathl (Files): Remove lib/ceill.c.
56157         (Depends-on): Add ceill.
56158
56159 2007-10-04  Bruno Haible  <bruno@clisp.org>
56160
56161         * modules/ceilf-tests: New file.
56162         * tests/test-ceilf.c: New file.
56163
56164         * modules/ceilf: New file.
56165         * lib/ceil.c: New file.
56166         * lib/ceilf.c: New file.
56167         * m4/ceilf.m4: New file.
56168         * lib/math.in.h (ceilf): New declaration.
56169         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
56170         HAVE_DECL_CEILF.
56171         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
56172         HAVE_DECL_CEILF.
56173         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
56174
56175 2007-10-04  Bruno Haible  <bruno@clisp.org>
56176
56177         * modules/floorl-tests: New file.
56178         * tests/test-floorl.c: New file.
56179
56180         * modules/floorl: New file.
56181         * lib/floorl.c: Replace entire file.
56182         * m4/floorl.m4: New file.
56183         * lib/math.in.h (floorl): Replace declaration.
56184         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
56185         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
56186         * doc/functions/floorl.texi: Mention the 'floorl' module.
56187         * modules/mathl (Files): Remove lib/floorl.c.
56188         (Depends-on): Add floorl.
56189
56190 2007-10-04  Bruno Haible  <bruno@clisp.org>
56191
56192         * modules/floorf-tests: New file.
56193         * tests/test-floorf.c: New file.
56194
56195         * modules/floorf: New file.
56196         * lib/floor.c: New file.
56197         * lib/floorf.c: New file.
56198         * m4/floorf.m4: New file.
56199         * lib/math.in.h (floorf): New declaration.
56200         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
56201         HAVE_DECL_FLOORF.
56202         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
56203         HAVE_DECL_FLOORF.
56204         * doc/functions/floorf.texi: Mention the 'floorf' module.
56205
56206 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
56207             Bruno Haible  <bruno@clisp.org>
56208
56209         Advertise for the Git server instead of the CVS server.
56210         * doc/gnulib-intro.texi (Steady Development): Mention the Git
56211         repository instead of the CVS one.
56212         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
56213         about all VCS systems generically.
56214         * doc/gnulib.texi (Introduction): Capitalize `Git'.
56215
56216 2007-10-04  Bruno Haible  <bruno@clisp.org>
56217
56218         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
56219         means.
56220         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
56221
56222 2007-10-04  Bruno Haible  <bruno@clisp.org>
56223
56224         * modules/truncl-tests: New file.
56225         * tests/test-truncl.c: New file.
56226
56227         * modules/truncl: New file.
56228         * lib/truncl.c: New file.
56229         * m4/truncl.m4: New file.
56230         * lib/math.in.h (truncl): New declaration.
56231         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
56232         HAVE_DECL_TRUNCL.
56233         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
56234         HAVE_DECL_TRUNCL.
56235         * doc/functions/truncl.texi: Mention the 'truncl' module.
56236
56237 2007-10-04  Bruno Haible  <bruno@clisp.org>
56238
56239         * modules/truncf-tests: New file.
56240         * tests/test-truncf.c: New file.
56241
56242         * modules/truncf: New file.
56243         * lib/trunc.c: Make paramerizable through USE_* macros.
56244         * lib/truncf.c: New file.
56245         * m4/truncf.m4: New file.
56246         * lib/math.in.h (truncf): New declaration.
56247         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
56248         HAVE_DECL_TRUNCF.
56249         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
56250         HAVE_DECL_TRUNCF.
56251         * doc/functions/truncf.texi: Mention the 'truncf' module.
56252
56253 2007-10-03  Bruno Haible  <bruno@clisp.org>
56254
56255         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
56256         augmentation also for tests modules.
56257         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
56258         * modules/atexit-tests (Makefile.am): Likewise.
56259         * modules/binary-io-tests (Makefile.am): Likewise.
56260         * modules/c-strcase-tests (Makefile.am): Likewise.
56261         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
56262         * modules/canonicalize-tests (Makefile.am): Likewise.
56263         * modules/closein-tests (Makefile.am): Likewise.
56264         * modules/fprintf-posix-tests (Makefile.am): Likewise.
56265         * modules/freadahead-tests (Makefile.am): Likewise.
56266         * modules/fseek-tests (Makefile.am): Likewise.
56267         * modules/fseeko-tests (Makefile.am): Likewise.
56268         * modules/ftell-tests (Makefile.am): Likewise.
56269         * modules/ftello-tests (Makefile.am): Likewise.
56270         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
56271         * modules/isnanl-tests (Makefile.am): Likewise.
56272         * modules/lseek-tests (Makefile.am): Likewise.
56273         * modules/mbscasecmp-tests (Makefile.am): Likewise.
56274         * modules/mbscasestr-tests (Makefile.am): Likewise.
56275         * modules/mbschr-tests (Makefile.am): Likewise.
56276         * modules/mbscspn-tests (Makefile.am): Likewise.
56277         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
56278         * modules/mbspbrk-tests (Makefile.am): Likewise.
56279         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
56280         * modules/mbsrchr-tests (Makefile.am): Likewise.
56281         * modules/mbsspn-tests (Makefile.am): Likewise.
56282         * modules/mbsstr-tests (Makefile.am): Likewise.
56283         * modules/printf-posix-tests (Makefile.am): Likewise.
56284         * modules/snprintf-posix-tests (Makefile.am): Likewise.
56285         * modules/sprintf-posix-tests (Makefile.am): Likewise.
56286         * modules/tsearch-tests (Makefile.am): Likewise.
56287         * modules/uniname/uniname-tests (Makefile.am): Likewise.
56288         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
56289         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
56290         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
56291         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
56292         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
56293         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
56294         * modules/vprintf-posix-tests (Makefile.am): Likewise.
56295         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
56296         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
56297         * modules/xstrtoimax-tests (Makefile.am): Likewise.
56298         * modules/xstrtol-tests (Makefile.am): Likewise.
56299         * modules/xstrtoumax-tests (Makefile.am): Likewise.
56300         * modules/yesno-tests (Makefile.am): Likewise.
56301
56302 2007-10-03  Bruno Haible  <bruno@clisp.org>
56303
56304         * modules/trunc-tests: New file.
56305         * tests/test-trunc.c: New file.
56306
56307         * modules/trunc: New file.
56308         * lib/trunc.c: New file.
56309         * m4/trunc.m4: New file.
56310         * lib/math.in.h (trunc): New declaration.
56311         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
56312         HAVE_DECL_TRUNC.
56313         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
56314         HAVE_DECL_TRUNC.
56315         * doc/functions/trunc.texi: Mention the 'trunc' module.
56316
56317 2007-10-03  Bruno Haible  <bruno@clisp.org>
56318
56319         * tests/test-fpending.c: New file, mostly copied
56320         from coreutils/lib/t-fpending.c.
56321         * modules/fpending-tests: New file.
56322
56323 2007-10-03  Bruno Haible  <bruno@clisp.org>
56324
56325         Port the stdio extensions to QNX (untested).
56326         * lib/fseterr.c (fseterr): Add support for QNX.
56327         * lib/fbufmode.c (fbufmode): Likewise.
56328         * lib/freadable.c (freadable): Likewise.
56329         * lib/fwritable.c (fwritable): Likewise.
56330         * lib/freading.c (freading): Likewise.
56331         * lib/fwriting.c (fwriting): Likewise.
56332         * lib/freadahead.c (freadahed): Likewise.
56333         * lib/fpurge.c (fpurge): Likewise.
56334         * lib/fseeko.c (rpl_fseeko): Likewise.
56335
56336 2007-10-03  Bruno Haible  <bruno@clisp.org>
56337             Jim Meyering  <jim@meyering.net>
56338             Eric Blake  <ebb9@byu.net>
56339
56340         * doc/relocatable.texi: Use @command instead of @program.
56341
56342 2007-10-02  Jim Meyering  <jim@meyering.net>
56343
56344         Perform one more "_.h" -> ".in.h" substitution.
56345         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
56346         instead of unistd_.h here, too.
56347
56348 2007-10-01  Bruno Haible  <bruno@clisp.org>
56349
56350         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
56351         Needed for the alloca-opt module.
56352
56353 2007-09-30  Bruno Haible  <bruno@clisp.org>
56354
56355         * lib/alloca.in.h: Renamed from lib/alloca_.h.
56356         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
56357         alloca_.h.
56358         * lib/argz.in.h: Renamed from lib/argz_.h.
56359         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
56360         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
56361         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
56362         byteswap_.h.
56363         * lib/dirent.in.h: Renamed from lib/dirent_.h.
56364         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
56365         dirent_.h.
56366         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
56367         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
56368         fcntl_.h.
56369         * lib/float.in.h: Renamed from lib/float_.h.
56370         * modules/float (Files, Makefile.am): Use float.in.h instead of
56371         float_.h.
56372         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
56373         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
56374         fnmatch_.h.
56375         * lib/getopt.in.h: Renamed from lib/getopt_.h.
56376         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
56377         getopt_.h.
56378         * lib/glob.in.h: Renamed from lib/glob_.h.
56379         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
56380         * lib/iconv.in.h: Renamed from lib/iconv_.h.
56381         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
56382         iconv_.h.
56383         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
56384         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
56385         inttypes_.h.
56386         * lib/locale.in.h: Renamed from lib/locale_.h.
56387         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
56388         locale_.h.
56389         * lib/math.in.h: Renamed from lib/math_.h.
56390         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
56391         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
56392         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
56393         of netinet_in_.h. Add dependency.
56394         * lib/poll.in.h: Renamed from lib/poll_.h.
56395         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
56396         * lib/search.in.h: Renamed from lib/search_.h.
56397         * modules/search (Files, Makefile.am): Use search.in.h instead of
56398         search_.h.
56399         * lib/signal.in.h: Renamed from lib/signal_.h.
56400         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
56401         _signal.h.
56402         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
56403         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
56404         stdbool_.h.
56405         * lib/stdint.in.h: Renamed from lib/stdint_.h.
56406         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
56407         stdint_.h.
56408         * lib/stdio.in.h: Renamed from lib/stdio_.h.
56409         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
56410         stdio_.h.
56411         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
56412         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
56413         stdlib_.h.
56414         * lib/string.in.h: Renamed from lib/string_.h.
56415         * modules/string (Files, Makefile.am): Use string.in.h instead of
56416         string_.h.
56417         * doc/gnulib-tool.texi (Initial import): Update.
56418         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
56419         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
56420         of sys_select_.h. Add dependency.
56421         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
56422         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
56423         of sys_socket_.h.
56424         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
56425         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
56426         sys_stat_.h.
56427         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
56428         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
56429         sys_time_.h.
56430         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
56431         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
56432         sysexits_.h.
56433         * lib/time.in.h: Renamed from lib/time_.h.
56434         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
56435         * lib/unistd.in.h: Renamed from lib/unistd_.h.
56436         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
56437         unistd_.h.
56438         * lib/wchar.in.h: Renamed from lib/wchar_.h.
56439         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
56440         wchar_.h.
56441         * lib/wctype.in.h: Renamed from lib/wctype_.h.
56442         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
56443         wctype_.h.
56444         * build-aux/bootstrap (slurp): Update.
56445         * lib/.cppi-disable: Update.
56446
56447 2007-09-30  Bruno Haible  <bruno@clisp.org>
56448
56449         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
56450         Needed on BeOS.
56451
56452 2007-09-30  Bruno Haible  <bruno@clisp.org>
56453
56454         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
56455
56456 2007-09-29  Bruno Haible  <bruno@clisp.org>
56457
56458         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
56459
56460 2007-09-29  Bruno Haible  <bruno@clisp.org>
56461
56462         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
56463         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
56464         * build-aux/install-reloc: Compile also areadlink.c.
56465         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
56466
56467 2007-09-29  Bruno Haible  <bruno@clisp.org>
56468
56469         * gnulib-tool (func_emit_initmacro_done): Indentation.
56470
56471 2007-09-29  Bruno Haible  <bruno@clisp.org>
56472
56473         * README: Add CVS checkout update instructions.
56474         Info from Bob Proulx <bob@proulx.com>.
56475
56476 2007-09-28  Eric Blake  <ebb9@byu.net>
56477
56478         Provide move-if-change.
56479         * build-aux/move-if-change: New file, based on best practice
56480         rather than any canonical upstream location.
56481
56482 2007-09-28  Jim Meyering  <jim@meyering.net>
56483
56484         Fix canonicalize loop-detection corner case.
56485         Do not attempt to stat the symlink values stored via seen_triple.
56486         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
56487         on linux-2.6.18, (but not 2.6.22).
56488         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
56489         triple_compare.  The former compares dev,ino,filename, while the latter
56490         would actually stat dirname(filename) when dev and ino were equal.
56491         * lib/hash-triple.c: Install <string.h>.
56492         (STREQ): Define.
56493         (triple_compare_ino_str): New function.
56494         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
56495
56496 2007-09-28  Eric Blake  <ebb9@byu.net>
56497
56498         Enforce that AC_REPLACE_FUNCS files exist.
56499         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
56500         override check for typos.
56501
56502         Fix test-closein on Solaris 10.
56503         * tests/test-closein.c (main): Don't assume stdin can be inherited
56504         closed on all systems.
56505         * tests/test-closein.sh: Likewise.
56506         Reported by Piotr Tarnowski.
56507
56508 2007-09-28  Jim Meyering  <jim@meyering.net>
56509
56510         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
56511
56512 2007-09-27  Jim Meyering  <jim@meyering.net>
56513
56514         canonicalize: Avoid a false-positive cycle failure.
56515         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
56516         Sort.  Remove cycle-check.
56517         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
56518         not cycle-check.h.
56519         (seen_triple): New function.
56520         (canonicalize_filename_mode): Use it instead of cycle-check.
56521         * tests/test-canonicalize.c: Add a test for this bug.
56522         * tests/test-canonicalize.sh: Set up and run the test.
56523
56524         New module, file-set, from coreutils.
56525         * modules/file-set: Define it.
56526         * lib/file-set.c, lib/file-set.h: Implement.
56527
56528         New module, hash-triple, from coreutils.
56529         * modules/hash-triple: Define it.
56530         * lib/hash-triple.c, lib/hash-triple.h: Implement.
56531
56532 2007-09-25  Eric Blake  <ebb9@byu.net>
56533
56534         Fix strerror on Interix.
56535         * lib/string_.h (strerror): Declare replacement.
56536         * doc/functions/strerror.texi (strerror): Document the Interix
56537         shortcoming.
56538         * modules/string (Makefile.am): Support new hooks.
56539         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
56540         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
56541         gl_FUNC_STRERROR_SEPARATE.
56542         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
56543         * lib/strerror.c (rpl_strerror): Provide replacement.
56544         * modules/strerror (Depends-on): Add string.
56545         (configure.ac): Detect use of module.
56546         * tests/test-strerror.c: New file.
56547         * modules/strerror-tests: New test module.
56548         * modules/argp (Depends-on): Add strerror.
56549         * modules/error (Depends-on): Likewise.
56550         Reported by Martin Koeppe.
56551
56552 2007-09-24  Bruno Haible  <bruno@clisp.org>
56553
56554         * README: Update git instructions.
56555
56556 2007-09-24  Eric Blake  <ebb9@byu.net>
56557
56558         Revert fpending breakage from 2007-09-08.
56559         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
56560         __fpending.c.
56561
56562 2007-09-24  Jim Meyering  <jim@meyering.net>
56563
56564         filenamecat.c: Add a test.
56565         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
56566         showing how the function works when DIR is the empty string.
56567
56568 2007-09-21  Simon Josefsson  <simon@josefsson.org>
56569
56570         * tests/test-canonicalize.sh: Turn on executable bit.
56571
56572 2007-09-19  Eric Blake  <ebb9@byu.net>
56573
56574         * README: Update CVS instructions.
56575
56576 2007-09-18  Bruno Haible  <bruno@clisp.org>
56577
56578         * modules/areadlink: New file.
56579         * lib/areadlink.h (areadlink): New declaration.
56580         * lib/areadlink.c: New file, based on lib/xreadlink.c.
56581
56582 2007-09-17  Jim Meyering  <jim@meyering.net>
56583
56584         * lib/savewd.c (ESTALE) [!defined]: Define.
56585         Reported to be required on Interix by Martin Koeppe.
56586
56587 2007-09-17  Bruno Haible  <bruno@clisp.org>
56588
56589         * gnulib-tool (func_version): Use $version.
56590
56591 2007-09-16  Bruno Haible  <bruno@clisp.org>
56592
56593         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
56594         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
56595         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
56596         Reported by Greg Schafer <gschafer@zip.com.au>.
56597
56598 2007-09-15  Bruno Haible  <bruno@clisp.org>
56599
56600         * gnulib-tool (sed): Try a little harder to make bash understand the
56601         alias.
56602         Reported by Bruce Korb <bruce.korb@gmail.com>.
56603
56604 2007-09-13  Eric Blake  <ebb9@byu.net>
56605
56606         * ChangeLog: Remove conflict markers.
56607
56608 2007-09-13  Simon Josefsson  <simon@josefsson.org>
56609
56610         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
56611         Reported by Bruno Haible <bruno@clisp.org>.
56612
56613 2007-09-12  Bruno Haible  <bruno@clisp.org>
56614
56615         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
56616         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
56617         is not defined.
56618
56619 2007-09-12  Eric Blake  <ebb9@byu.net>
56620
56621         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
56622         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
56623         Autoconf definition.
56624         * modules/euidaccess (Depends-on): Add extensions, for
56625         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
56626         * modules/fnmatch (Depends-on): Likewise.
56627         * modules/getaddrinfo (Depends-on): Likewise.
56628         * modules/getdelim (Depends-on): Likewise.
56629         * modules/getline (Depends-on): Likewise.
56630         * modules/getsubopt (Depends-on): Likewise.
56631         * modules/gettext (Depends-on): Likewise.
56632         * modules/group-member (Depends-on): Likewise.
56633         * modules/mbchar (Depends-on): Likewise.
56634         * modules/memmem (Depends-on): Likewise.
56635         * modules/mempcpy (Depends-on): Likewise.
56636         * modules/memrchr (Depends-on): Likewise.
56637         * modules/pagealign_alloc (Depends-on): Likewise.
56638         * modules/readutmp (Depends-on): Likewise.
56639         * modules/stpcpy (Depends-on): Likewise.
56640         * modules/stpncpy (Depends-on): Likewise.
56641         * modules/strchrnul (Depends-on): Likewise.
56642         * modules/strndup (Depends-on): Likewise.
56643         * modules/strsep (Depends-on): Likewise.
56644         * modules/strverscmp (Depends-on): Likewise.
56645         * modules/vasprintf (Depends-on): Likewise.
56646         * modules/wcwidth (Depends-on): Likewise.
56647         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
56648         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
56649         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
56650         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
56651         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
56652         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
56653         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
56654         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
56655         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
56656         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
56657         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
56658         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
56659         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
56660         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
56661         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
56662         * m4/readutmp.m4 (gl_READUTMP): Likewise.
56663         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
56664         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
56665         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
56666         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
56667         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
56668         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
56669         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
56670         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
56671         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
56672         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
56673         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
56674         so that lock.m4 can be used in gettext without extensions module.
56675
56676 2007-09-11  Bruno Haible  <bruno@clisp.org>
56677
56678         * m4/isc-posix.m4: Remove file.
56679         Suggested by Eric Blake.
56680
56681 2007-09-11  Eric Blake  <ebb9@byu.net>
56682
56683         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
56684
56685 2007-09-10  Bruno Haible  <bruno@clisp.org>
56686
56687         * posix-modules: Fix typo in error message.
56688         Reported by Matt <mkraai@beckman.com>.
56689
56690 2007-09-09  Bruno Haible  <bruno@clisp.org>
56691
56692         * doc/functions/getdelim.texi: Update list of platforms lacking the
56693         function.
56694         * doc/functions/getline.texi: Likewise.
56695
56696 2007-09-09  Jim Meyering  <jim@meyering.net>
56697
56698         * lib/hash.c (hash_initialize): Detect calloc failure.
56699         Reported by Bruno Haible.
56700
56701 2007-09-09  Bruno Haible  <bruno@clisp.org>
56702
56703         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
56704         malloc or realloc fails.
56705
56706 2007-09-09  Bruno Haible  <bruno@clisp.org>
56707
56708         * modules/getcwd (Depends-on): Add malloc-posix.
56709         * modules/glob (Depends-on): Likewise.
56710         * modules/putenv (Depends-on): Likewise.
56711         * modules/strdup (Depends-on): Likewise.
56712         * modules/getdelim (Depends-on): Add realloc-posix.
56713         * modules/read-file (Depends-on): Likewise.
56714
56715 2007-09-09  Bruno Haible  <bruno@clisp.org>
56716
56717         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
56718         (gl_FUNC_MALLOC_POSIX): Require it.
56719         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
56720         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
56721         * modules/realloc (Files): Add m4/malloc.m4.
56722         * modules/calloc (Files): Likewise.
56723
56724 2007-09-09  Bruno Haible  <bruno@clisp.org>
56725
56726         * modules/malloc-posix: New file.
56727         * modules/malloc (Depends-on): Add malloc-posix.
56728         * lib/malloc.c: Include errno.h.
56729         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
56730         and a POSIX-compatible malloc into a single function. Set ENOMEM
56731         when returning NULL.
56732         * m4/malloc.m4: New file.
56733         * doc/functions/malloc.texi: Mention the malloc-posix module.
56734         * lib/stdlib_.h (malloc): New declaration.
56735         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
56736         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
56737         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
56738         and HAVE_MALLOC_POSIX.
56739
56740 2007-09-09  Bruno Haible  <bruno@clisp.org>
56741
56742         * modules/realloc-posix: New file.
56743         * modules/realloc (Depends-on): Add realloc-posix.
56744         * lib/realloc.c: Include errno.h.
56745         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
56746         and a POSIX-compatible realloc into a single function. Set ENOMEM
56747         when returning NULL.
56748         * m4/realloc.m4: New file.
56749         * doc/functions/realloc.texi: Mention the realloc-posix module.
56750         * lib/stdlib_.h (realloc): New declaration.
56751         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
56752         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
56753         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
56754         and HAVE_REALLOC_POSIX.
56755
56756 2007-09-09  Bruno Haible  <bruno@clisp.org>
56757
56758         * modules/calloc-posix: New file.
56759         * modules/calloc (Depends-on): Add calloc-posix.
56760         * lib/calloc.c: Include errno.h.
56761         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
56762         and a POSIX-compatible calloc into a single function. Set ENOMEM
56763         when returning NULL.
56764         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
56765         * doc/functions/calloc.texi: Mention the calloc-posix module.
56766         * lib/stdlib_.h (calloc): New declaration.
56767         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
56768         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
56769         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
56770         and HAVE_CALLOC_POSIX.
56771
56772 2007-09-09  Bruno Haible  <bruno@clisp.org>
56773
56774         Allow for modules to show an arbitrary notice.
56775         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
56776         * gnulib-tool: New option --extract-notice.
56777         (func_usage): Document it.
56778         (sed_extract_prog): Update.
56779         (func_get_notice): New function.
56780         (func_modules_notice): New function.
56781         (func_import, func_create_testdir): Invoke it.
56782         Suggested by Jim Meyering.
56783
56784 2007-09-09  Bruno Haible  <bruno@clisp.org>
56785
56786         * gnulib-tool: New options --verbose, --quiet.
56787         (func_usage): Document them.
56788         (verbose): New variable.
56789         (func_execute_command): New function.
56790         (func_import): Don't show the module list and the file list if
56791         $verbose < 0.
56792         (func_create_testdir): Likewise. Use func_execute_command.
56793         (func_create_megatestdir): Use func_execute_command.
56794
56795 2007-09-08  Bruno Haible  <bruno@clisp.org>
56796
56797         * gnulib-tool (func_import): Prefer rsync over wget when available,
56798         for fetching the PO files.
56799
56800 2007-09-08  Bruno Haible  <bruno@clisp.org>
56801
56802         * posix-modules: New file. Portions copied from gnulib-tool.
56803         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
56804
56805 2007-09-08  Jim Meyering  <jim@meyering.net>
56806
56807         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
56808         * lib/fpending.h: Rename from __fpending.h.
56809         * lib/fpending.c: Rename from __fpending.c.
56810         Include "fpending.h", not "__fpending.h".
56811         * lib/__fpending.h, lib/__fpending.c: Remove files.
56812         * modules/fpending (Files): Reflect new file names.
56813         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
56814
56815 2007-09-08  Bruno Haible  <bruno@clisp.org>
56816
56817         * m4/inttypes-h.m4: Remove stub file.
56818
56819 2007-09-07  Simon Josefsson  <simon@josefsson.org>
56820
56821         * doc/headers/stdint.texi: Discuss #include_next issue.
56822
56823 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
56824
56825         * build-aux/bootstrap: Remove obsolete comment about wget --help.
56826
56827 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56828
56829         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
56830         in variable name.
56831
56832 2007-09-03  Jim Meyering  <jim@meyering.net>
56833
56834         New module: git-version-gen.
56835         * modules/git-version-gen: New file.
56836
56837         Import changes from coreutils for bootstrap script.
56838
56839         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
56840
56841         bootstrap: uses rsync to download the .po files
56842         * build-aux/bootstrap (po_download_command_format): New global.
56843         (download_po_files): Use rsync.
56844         (update_po_files): Don't remove .po files after download,
56845         so future rsync runs can take advantage of the copies.
56846
56847         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
56848
56849         Solve the unnecessary-.po-file-regeneration problem once and for all.
56850         * build-aux/bootstrap (download_po_files): New function, renamed from
56851         get_translations.  Now, downloads, but doesn't update LINGUAS.
56852         (update_po_files): New function.
56853
56854         bootstrap: Ignore more.
56855         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
56856         uniwidth to e.g., lib/.gitignore.
56857         (slurp): Handle the sys_stat_.h -> sys mapping, too.
56858
56859         * build-aux/bootstrap: New setting: vc_ignore.
56860         (insert_sorted_if_absent): Create $file if absent.
56861         Adapt to new, possibly empty, list: $vc_ignore.
56862
56863         bootstrap: generate more ignorable names
56864         * build-aux/bootstrap (slurp): When generating ignorable names,
56865         also map .sin to .sed, .gperf to .c, and .y to .c.
56866
56867 2007-09-03  Jim Meyering  <jim@meyering.net>
56868
56869         * build-aux/git-version-gen: New file, from coreutils.  For details, see
56870         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
56871
56872 2007-09-02  Bruno Haible  <bruno@clisp.org>
56873
56874         Fix mis-recognition of 'mcs' on QNX 6.
56875         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
56876         output contains the string "Mono".
56877         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
56878         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
56879
56880 2007-09-01  Bruno Haible  <bruno@clisp.org>
56881
56882         Fix collision between uniwidth/* and linebreak modules.
56883         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
56884         u32_width): Remove declarations.
56885         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
56886         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
56887         streq3, streq2, streq1, streq0): Remove functions.
56888         (STREQ): Remove macro.
56889         (is_cjk_encoding): Remove function.
56890         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
56891         (uc_width, u8_width, u16_width, u32_width): Remove functions.
56892         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
56893         * NEWS: Document the change.
56894
56895 2007-09-01  Bruno Haible  <bruno@clisp.org>
56896
56897         * lib/streq.h: Add double-inclusion guard.
56898
56899 2007-09-01  Karl Berry  <karl@gnu.org>
56900
56901         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
56902
56903 2007-08-28  Jim Meyering  <jim@meyering.net>
56904
56905         Rename mreadlink_with_size to areadlink_with_size.
56906         * NEWS: Document the change.
56907         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
56908         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
56909         * lib/mreadlink.h: Rename this to...
56910         * lib/areadlink.h: ...this.
56911         * modules/mreadlink-with-size: Rename this to...
56912         * modules/areadlink-with-size: ...this.
56913         * lib/canonicalize.c: Reflect the renaming.
56914         * modules/canonicalize: Likewise.
56915
56916 2007-08-26  Bruno Haible  <bruno@clisp.org>
56917
56918         * gnulib-tool (func_import): When deciding which files to remove,
56919         consider also dangling symbolic links.
56920         Reported by Eric Blake.
56921
56922 2007-08-26  Bruno Haible  <bruno@clisp.org>
56923
56924         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
56925
56926 2007-08-23  Simon Josefsson  <simon@josefsson.org>
56927
56928         * lib/readline.c: Don't include getline.h, the prototype is now
56929         found in stdio.h.
56930
56931 2007-08-23  Jim Meyering  <jim@meyering.net>
56932
56933         Getdelim touchup.
56934         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
56935         around the funlockfile call, since funlockfile never sets errno.
56936         Don't set errno upon failed realloc.
56937
56938 2007-08-22  Eric Blake  <ebb9@byu.net>
56939
56940         Getline touchups.
56941         * lib/getdelim.c (getdelim): Revert regression that required *n to
56942         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
56943         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
56944         getdelim, rather than whether implementation is missing.
56945         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
56946         * lib/stdio_.h (getline): Also declare if replacement is
56947         required.
56948         * doc/functions/getdelim.texi: New file.
56949         * doc/functions/getline.texi: Likewise.
56950         * doc/gnulib.texi (Function Substitutes): Add new files.
56951         Reported by Bruno Haible.
56952
56953 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
56954
56955         * users.txt: Add Guile.
56956
56957 2007-08-22  Eric Blake  <ebb9@byu.net>
56958
56959         * tests/test-getdelim.c (main): Use remove, not unlink.
56960         * tests/test-getline.c (main): Likewise.
56961
56962         Move getline and getdelim into stdio.h, per POSIX 200x.
56963         * modules/getline (Files): Remove getline.h.
56964         (Depends-on): Add stdio.
56965         (configure.ac): Add module indicator.
56966         * modules/getdelim (Files): Remove getdelim.h.
56967         (Depends-on): Add stdio.
56968         (configure.ac): Add module indicator.
56969         * modules/stdio (Makefile.am): Work with new indicators.
56970         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
56971         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
56972         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
56973         * lib/getdelim.h: Delete.
56974         * lib/getline.h: Delete.
56975         * lib/stdio_.h (getdelim, getline): Declare.
56976         * modules/getdelim-tests: New module.
56977         * modules/getline-tests: Likewise.
56978         * tests/test-getdelim.c: New file.
56979         * tests/test-getline.c: Likewise.
56980         * NEWS: Document the change.
56981         * lib/getline.c: Update choice of header.
56982         * lib/csharpcomp.c: Likewise.
56983         * lib/getpass.c: Likewise.
56984         * lib/javacomp.c: Likewise.
56985         * lib/javaversion.c: Likewise.
56986         * lib/yesno.c: Likewise.
56987         * lib/getdelim.c: Likewise.
56988         (getdelim): Set errno on failure, and avoid memory leak.
56989
56990 2007-08-19  Bruno Haible  <bruno@clisp.org>
56991
56992         * modules/closein (Depends-on): Add freadahead.
56993         * lib/closein.c: Include freadahead.h.
56994         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
56995         is zero.
56996
56997 2007-08-19  Bruno Haible  <bruno@clisp.org>
56998
56999         * modules/freadahead-tests: New file.
57000         * tests/test-freadahead.sh: New file.
57001         * tests/test-freadahead.c: New file.
57002
57003         * modules/freadahead: New file.
57004         * lib/freadahead.h: New file.
57005         * lib/freadahead.c: New file.
57006         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
57007         fbufmode, fpurge, freadable, fwritable.
57008
57009 2007-08-19  Eric Blake  <ebb9@byu.net>
57010
57011         Test yesno in combination with closein.
57012         * lib/yesno.c (yesno): Document use of stdin.
57013         * modules/yesno-tests (Files): New module.
57014         * tests/test-yesno.c (main): New file.
57015         * tests/test-yesno.sh: Likewise.
57016
57017 2007-08-19  Bruno Haible  <bruno@clisp.org>
57018
57019         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
57020         * lib/fseeko.c (rpl_fseeko): Likewise.
57021         * lib/fseterr.c (fseterr): Likewise.
57022
57023 2007-08-19  Bruno Haible  <bruno@clisp.org>
57024
57025         * tests/test-lseek.c (main): Disable a test for BeOS.
57026         * doc/functions/lseek.texi: Document the BeOS bug.
57027
57028 2007-08-19  Bruno Haible  <bruno@clisp.org>
57029             Eric Blake  <ebb9@byu.net>
57030
57031         * lib/lseek.c: Include <sys/stat.h>.
57032         (rpl_lseek): Add workaround code also for Unix platforms.
57033         Needed for BeOS.
57034         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
57035         * doc/functions/lseek.texi: Document BeOS definiency.
57036
57037 2007-08-18  Bruno Haible  <bruno@clisp.org>
57038
57039         * modules/fstrcmp-tests: New file.
57040         * tests/test-fstrcmp.c: New file.
57041
57042 2007-08-18  Bruno Haible  <bruno@clisp.org>
57043
57044         * modules/fstrcmp: New file, from GNU gettext with modifications.
57045         * lib/fstrcmp.h: New file, from GNU gettext.
57046         * lib/fstrcmp.c: New file, from GNU gettext.
57047         * MODULES.html.sh (String handling): Add fstrcmp.
57048
57049 2007-08-18  Bruno Haible  <bruno@clisp.org>
57050
57051         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
57052         'bool'.
57053         (diag, compareseq): Remove const from the ctxt argument.
57054         (USE_HEURISTIC): Undefine at the end.
57055
57056 2007-08-18  Jim Meyering  <jim@meyering.net>
57057
57058         New file: lib/idcache.h
57059         * NEWS: Mention the addition.
57060         * modules/idcache (Files): Add lib/idcache.h
57061         * lib/idcache.c: Include "idcache.h".
57062         Don't include <sys/types.h>.
57063         Add a FIXME comment.
57064         Move file-scoped "static" declarations to the top.
57065         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
57066
57067 2007-08-17  Bruno Haible  <bruno@clisp.org>
57068         and Paul Eggert  <eggert@cs.ucla.edu>
57069
57070         * MODULES.html.sh: Add diffseq.
57071         * modules/diffseq: New file.
57072         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
57073         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
57074
57075 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
57076
57077         Import changes from coreutils for bootstrap script.
57078
57079         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
57080
57081         * build-aux/bootstrap (slurp): Work even in environments where
57082         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
57083         current code does not slurp files whose names start with ".", and
57084         this looks like it might be a troublesome area.
57085
57086         2007-07-11  Jim Meyering  <jim@meyering.net>
57087
57088         If there's a GPL vN copyright comment, require that N == 3.
57089
57090         2007-07-08  Jim Meyering  <jim@meyering.net>
57091
57092         Run the coreutils-specific code only if tests/Makefile.am.in exists.
57093         * build-aux/bootstrap (mam_template): Move definition out of loop.
57094
57095         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
57096
57097         * build-aux/bootstrap (symlink_to_dir): Rename function from
57098         symlink_to_gnulib.  Add a directory parameter.  Update all
57099         callers.
57100         (cp_mark_as_generated): Also check for -- and link to -- files in
57101         gl/.
57102
57103         2007-07-08  Jim Meyering  <jim@meyering.net>
57104
57105         Adapt to deeper hierarchy in gnulib.
57106         * build-aux/bootstrap (symlink_to_dir): If the destination
57107         directory doesn't exist, create it. This is required at least for
57108         "lib/uniwidth/cjk.h".
57109
57110         2007-05-15  Jim Meyering  <jim@meyering.net>
57111
57112         * build-aux/bootstrap: Now that generated Makefile.am files
57113         are no longer under version control, they must be created at
57114         bootstrap time.
57115
57116 2007-08-14  Ben Pfaff  <blp@gnu.org>
57117
57118         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
57119
57120 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
57121
57122         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
57123         given the changes below.
57124         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
57125         even on hosts that have padding bits beyond the supported 64.
57126
57127 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
57128
57129         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
57130         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
57131         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
57132         depends on it.
57133         (xstrtol_error): Remove.
57134         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
57135         but with a different signature.
57136         (ATTRIBUTE_NORETURN, __attribute__): New macros.
57137         * lib/xstrtol-error.c: Include exitfail.h.
57138         (xstrtol_fatal): New function, with a different signature from the
57139         old xstrtol_error, so that the caller need not worry about passing
57140         in an exit status, or about storage management of the option argument.
57141         (xstrtol_error): Now a static function.  Redo signature to
57142         implement xstrtol_fatal.  Output the correct number of hyphens in
57143         front of the option so that the caller need not worry about
57144         storage management.
57145         (N_): New macro.
57146         (_): Remove; not used now.
57147         * modules/xstrtol: Depend on getopt.
57148         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
57149         of old STRTOL_FATAL_ERROR macro.
57150         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
57151         of test program.
57152         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
57153         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
57154
57155 2007-08-08  Eric Blake  <ebb9@byu.net>
57156
57157         * lib/xstrtol-error.c: Add missing include.
57158
57159         Move xstrtol messages into gnulib domain, when --pobase is used.
57160         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
57161         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
57162         * modules/xstrtol (Files): Distribute new file.
57163         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
57164         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
57165         * tests/test-xstrtol.c: ...into new file.
57166         * tests/test-xstrtoul.c: Also test xstrtoul.
57167         * tests/test-xstrtoimax.c: Also test xstrtoimax.
57168         * tests/test-xstrtoumax.c: Also test xstrtoumax.
57169         * tests/test-xstrtol.sh: Drive the tests.
57170         * tests/test-xstrtoimax.sh: Likewise.
57171         * tests/test-xstrtoumax.sh: Likewise.
57172         * modules/xstrtol-tests: New module.
57173         * modules/xstrtoimax-tests: Likewise.
57174         * modules/xstrtoumax-tests: Likewise.
57175
57176 2007-08-08  Jim Meyering  <jim@meyering.net>
57177
57178         New function: mfile_name_concat.
57179         * lib/filenamecat.c (mfile_name_concat): New function, just like
57180         file_name_concat, but return NULL upon failure rather than exiting
57181         with a diagnostic.
57182         * lib/filenamecat.h: Declare it.
57183
57184 2007-08-07  Bruno Haible  <bruno@clisp.org>
57185
57186         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
57187         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
57188         warning from gcc.
57189         Reported by Eric Blake.
57190
57191 2007-08-07  Simon Josefsson  <simon@josefsson.org>
57192
57193         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
57194         * modules/crypto/arcfour (License): Likewise.
57195         * modules/crypto/des-tests (License): Likewise.
57196         * modules/crypto/gc-arctwo-tests (License): Likewise.
57197         * modules/crypto/gc-des-tests (License): Likewise.
57198         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
57199         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
57200         * modules/crypto/gc-md2-tests (License): Likewise.
57201         * modules/crypto/gc-md4-tests (License): Likewise.
57202         * modules/crypto/gc-md5-tests (License): Likewise.
57203         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
57204         * modules/crypto/gc-rijndael-tests (License): Likewise.
57205         * modules/crypto/gc-sha1-tests (License): Likewise.
57206         * modules/crypto/gc-tests (License): Likewise.
57207         * modules/crypto/hmac-md5 (License): Likewise.
57208         * modules/crypto/hmac-sha1 (License): Likewise.
57209         * modules/crypto/md2-tests (License): Likewise.
57210         * modules/crypto/md4-tests (License): Likewise.
57211         * modules/crypto/md5 (License): Likewise.
57212         * modules/crypto/rijndael (License): Likewise.
57213         * modules/crypto/sha1 (License): Likewise.
57214         * modules/memxor (License): Likewise.
57215
57216 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
57217         and Bruno Haible  <bruno@clisp.org>
57218
57219         * NEWS: Describe interface changes to human, xstrtol.
57220         * lib/human.h: Include <xstrtol.h>.
57221         (human_options): Return enum strtol_error, not int.  Remove
57222         bool arg; take int * instead.
57223         * lib/human.c: Don't include "gettext.h".
57224         (_): Remove; no longer used.
57225         Don't include <xstrtol.h>, since human.h does it.
57226         (human_options): Adjust to abovementioned interface changes.
57227         Do not report error to stderr; that's now the caller's
57228         responsibility.
57229         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
57230         interface change.
57231         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
57232         Str, Argument_type_string.  All uses changed.  Put " argument"
57233         in diagnostics to make them clearer.  Change wording of suffix
57234         message for clarity.
57235         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
57236         Argument_type_string.
57237         (STRTOL_FATAL_WARN): Remove; no longer used.
57238         * modules/human (Depends-on): Remove gettext-h.
57239
57240 2007-08-06  Simon Josefsson  <simon@josefsson.org>
57241
57242         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
57243
57244 2007-07-31  Bruno Haible  <bruno@clisp.org>
57245
57246         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
57247         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
57248         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
57249
57250 2007-07-31  Bruno Haible  <bruno@clisp.org>
57251
57252         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
57253         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
57254
57255 2007-07-30  Bruno Haible  <bruno@clisp.org>
57256
57257         * modules/base64 (License): Use the synonymous term "LGPLv2+".
57258         * modules/c-ctype (License): Likewise.
57259         * modules/c-strcase (License): Likewise.
57260         * modules/check-version (License): Likewise.
57261         * modules/iconv (License): Likewise.
57262         * modules/iconv_open (License): Likewise.
57263         * modules/read-file (License): Likewise.
57264         * modules/striconv (License): Likewise.
57265         * modules/strverscmp (License): Likewise.
57266         * modules/vasprintf (License): Likewise.
57267         * modules/crypto/des (License): Likewise.
57268         * modules/crypto/gc (License): Likewise.
57269         * modules/crypto/gc-arcfour (License): Likewise.
57270         * modules/crypto/gc-arctwo (License): Likewise.
57271         * modules/crypto/gc-des (License): Likewise.
57272         * modules/crypto/gc-hmac-md5 (License): Likewise.
57273         * modules/crypto/gc-hmac-sha1 (License): Likewise.
57274         * modules/crypto/gc-md2 (License): Likewise.
57275         * modules/crypto/gc-md4 (License): Likewise.
57276         * modules/crypto/gc-md5 (License): Likewise.
57277         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
57278         * modules/crypto/gc-random (License): Likewise.
57279         * modules/crypto/gc-rijndael (License): Likewise.
57280         * modules/crypto/gc-sha1 (License): Likewise.
57281         * modules/crypto/md2 (License): Likewise.
57282         * modules/crypto/md4 (License): Likewise.
57283
57284 2007-07-30  Jim Meyering  <jim@meyering.net>
57285
57286         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
57287         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
57288         it has valid stat data.  This bug would cause du not to count the
57289         sizes of inaccessible directories.
57290         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
57291         in <http://bugzilla.redhat.com/250077>.
57292
57293 2007-07-25  Peter O'Gorman  <peter@pogma.com>
57294             Bruno Haible  <bruno@clisp.org>
57295
57296         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
57297         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
57298         #include_next, gives a diagnostic about it, but reports no error in
57299         the exit code.
57300         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
57301
57302 2007-07-24  Ben Pfaff  <blp@gnu.org>
57303
57304         Improve name: "count-one-bits" is better than "popcount".
57305         * MODULES.html.sh: Update name.
57306         * lib/popcount.h: Renamed lib/count-one-bits.h.
57307         (popcount): Renamed count_one_bits.
57308         (popcountl): Renamed count_one_bits_l.
57309         (popcountll): Renamed count_one_bits_ll.
57310         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
57311         * modules/popcount: Renamed module/count-one-bits.
57312         * modules/popcount-tests: Renamed module/count-one-bits-tests.
57313         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
57314
57315 2007-07-23  Ben Pfaff  <blp@gnu.org>
57316
57317         * lib/popcount.h (popcount32): Reduce size of constants, to allow
57318         better code generation, and add U to large constants to avoid
57319         warnings, in non-GCC case.
57320         Suggested by Bruno Haible.
57321
57322 2007-07-23  Ben Pfaff  <blp@gnu.org>
57323
57324         * lib/popcount.h: Use verify_true instead of if...abort.
57325         * modules/popcount: Depend on verify module.
57326         Suggested by Jim Meyering.
57327
57328 2007-07-23  Bruno Haible  <bruno@clisp.org>
57329
57330         * gnulib-tool (func_import): Create a .cvsignore file also when the
57331         directory is not yet in CVS but the toplevel directory is. When
57332         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
57333         Reported by Karl Berry.
57334
57335 2007-07-22  Ben Pfaff  <blp@gnu.org>
57336
57337         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
57338         case.
57339         Suggested by Eric Blake.
57340
57341 2007-07-22  Ben Pfaff  <blp@gnu.org>
57342
57343         New module: popcount.
57344         * MODULES.html.sh: Add popcount.
57345         * modules/popcount: New file.
57346         * modules/popcount-tests: New file.
57347         * tests/test-popcount.c: New file.
57348         * lib/popcount.h: New file.
57349         * m4/popcount.m4: New file.
57350
57351 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
57352
57353         * build-aux/announce-gen: Update to GPLv3.
57354
57355         * build-aux/config.guess: Update from config.
57356
57357 2007-07-21  Bruno Haible  <bruno@clisp.org>
57358
57359         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
57360         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
57361
57362 2007-07-20  Jim Meyering  <jim@meyering.net>
57363
57364         * check-module: Diagnose a self-dependency.
57365
57366 2007-07-19  Bruno Haible  <bruno@clisp.org>
57367
57368         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
57369         empty.
57370         Reported by Eric Blake.
57371
57372 2007-07-18  Bruno Haible  <bruno@clisp.org>
57373
57374         * gnulib-tool: New options --po-base, --po-domain.
57375         (func_usage): Document them.
57376         (pobase, po_domain): New variables.
57377         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
57378         DEFAULT_TEXT_DOMAIN.
57379         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
57380         (func_import): Consider pobase and po_domain. Create a po/ directory.
57381         (func_create_testdir): Set pobase and po_domain to empty.
57382         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
57383         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
57384
57385 2007-07-18  Bruno Haible  <bruno@clisp.org>
57386
57387         * gnulib-tool (func_get_automake_snippet): Synthesize also an
57388         EXTRA_DIST augmentation for files in build-aux/.
57389
57390 2007-07-16  Bruno Haible  <bruno@clisp.org>
57391
57392         * modules/lseek (License): Use the synonymous term "LGPLv2+".
57393         * modules/getdelim (License): Likewise.
57394
57395 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57396
57397         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
57398         * modules/d-type (License): Likewise.
57399         * modules/extensions (License): Likewise.
57400         * modules/fnmatch (License): Likewise.
57401         * modules/fseeko (License): Likewise.
57402         * modules/getaddrinfo (License): Likewise.
57403         * modules/getline (License): Likewise.
57404         * modules/getlogin_r (License): Likewise.
57405         * modules/getpass (License): Likewise.
57406         * modules/gettimeofday (License): Likewise.
57407         * modules/glob (License): Likewise.
57408         * modules/inet_ntop (License): Likewise.
57409         * modules/malloc (License): Likewise.
57410         * modules/malloca (License): Likewise.
57411         * modules/memmem (License): Likewise.
57412         * modules/mempcpy (License): Likewise.
57413         * modules/memset (License): Likewise.
57414         * modules/minmax (License): Likewise.
57415         * modules/mktime (License): Likewise.
57416         * modules/netinet_in (License): Likewise.
57417         * modules/pathmax (License): Likewise.
57418         * modules/poll (License): Likewise.
57419         * modules/regex (License): Likewise.
57420         * modules/snprintf (License): Likewise.
57421         * modules/stdbool (License): Likewise.
57422         * modules/stdint (License): Likewise.
57423         * modules/stdio (License): Likewise.
57424         * modules/strcase (License): Likewise.
57425         * modules/strcasestr (License): Likewise.
57426         * modules/strdup (License): Likewise.
57427         * modules/string (License): Likewise.
57428         * modules/strndup (License): Likewise.
57429         * modules/strnlen (License): Likewise.
57430         * modules/strpbrk (License): Likewise.
57431         * modules/strptime (License): Likewise.
57432         * modules/strsep (License): Likewise.
57433         * modules/sys_select (License): Likewise.
57434         * modules/sys_socket (License): Likewise.
57435         * modules/sys_stat (License): Likewise.
57436         * modules/sys_time (License): Likewise.
57437         * modules/time (License): Likewise.
57438         * modules/time_r (License): Likewise.
57439         * modules/timegm (License): Likewise.
57440         * modules/unistd (License): Likewise.
57441         * modules/vsnprintf (License): Likewise.
57442         * modules/wctype (License): Likewise.
57443
57444 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57445
57446         * modules/argz (License): LGPLv2+.
57447
57448 2007-07-15  Karl Berry  <karl@gnu.org>
57449
57450         * doc/gnulib.texi: revise node structure per new fdl.texi.
57451
57452 2007-07-14  Bruno Haible  <bruno@clisp.org>
57453
57454         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
57455         the output file.
57456         * lib/uniname/uninames.h: Regenerated.
57457
57458 2007-07-14  Karl Berry  <karl@gnu.org>
57459
57460         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
57461         omitting sectioning and index commands.
57462
57463 2007-07-13  Bruno Haible  <bruno@clisp.org>
57464
57465         New gnulib-tool option --more-symlinks.
57466         * gnulib-tool (func_usage): Document --more-symlinks.
57467         (do_copyrights): New variable.
57468         Recognize option --more-symlinks.
57469         (func_import): Don't add a copyright notice transform to
57470         sed_transform_lib_file if do_copyrights is empty.
57471
57472 2007-07-13  Bruno Haible  <bruno@clisp.org>
57473
57474         * lib/vasnprintf.c (decimal_point_char): Define also if
57475         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
57476         && !NEED_PRINTF_DIRECTIVE_A.
57477         Reported by Clemens Koller <clemens.koller@anagramm.de> via
57478         Gary V. Vaughan <gary@gnu.org>.
57479
57480 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
57481
57482         * lib/inttypes_.h: Undo previous change, since it was fixed
57483         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
57484
57485 2007-07-13  Bruno Haible  <bruno@clisp.org>
57486
57487         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
57488         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
57489
57490 2007-07-13  Jim Meyering  <jim@meyering.net>
57491
57492         df: Don't fail for Tru64's "file-on-file mount".
57493         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
57494         so we fall through and use statfs instead.  Details here:
57495         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
57496         Reported by Albert Chin.
57497
57498 2007-07-13  Bruno Haible  <bruno@clisp.org>
57499
57500         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
57501         * modules/configmake (License): Likewise.
57502         * modules/gettext (License): Likewise.
57503         * modules/gettext-h (License): Likewise.
57504         * modules/include_next (License): Likewise.
57505         * modules/link-warning (License): Likewise.
57506         * modules/localcharset (License): Likewise.
57507         * modules/localename (License): Likewise.
57508         * modules/lock (License): Likewise.
57509         * modules/relocatable-lib-lgpl (License): Likewise.
57510         * modules/size_max (License): Likewise.
57511         * modules/vasnprintf (License): Likewise.
57512         * modules/wchar (License): Likewise.
57513         * modules/xsize (License): Likewise.
57514
57515 2007-07-13  Bruno Haible  <bruno@clisp.org>
57516
57517         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
57518         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
57519
57520 2007-07-12  Bruno Haible  <bruno@clisp.org>
57521
57522         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
57523         in the modules files.
57524
57525 2007-07-11  Karl Berry  <karl@gnu.org>
57526
57527         * MODULES.html.sh (func_module): use
57528          sed -e '\|^'"${includefile}"'$|d'
57529          instead of /.../d, to avoid errors on $includefile's containing /.
57530
57531 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
57532
57533         * gnulib-tool (func_import): Avoid duplication of --avoid
57534         statements
57535         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
57536         names to `_' in variable names.
57537
57538 2007-07-10  Eric Blake  <ebb9@byu.net>
57539
57540         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
57541         * NEWS: Document this change.
57542
57543 2007-07-08  Bruno Haible  <bruno@clisp.org>
57544
57545         Update to Unicode 5.0.
57546         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
57547         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
57548         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
57549         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
57550         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
57551         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
57552         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
57553         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
57554         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
57555         U+10A3F, U+1D242..U+1D244.
57556         (nonspacing_table_ind): Update.
57557         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
57558         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
57559
57560 2007-07-08  Bruno Haible  <bruno@clisp.org>
57561
57562         Update to Unicode 5.0.
57563         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
57564         code transform. Extend the name index field of unicode_name_to_code and
57565         unicode_code_to_name from 16 to 24 bits.
57566         * lib/uniname/uniname.c (unicode_character_name,
57567         unicode_name_character): Add the range 0x12xxx to the code transform.
57568         * lib/uniname/uninames.h: Regenerated.
57569         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
57570
57571 2007-07-07  Bruno Haible  <bruno@clisp.org>
57572
57573         * modules/wcwidth-tests: New file.
57574         * tests/test-wcwidth.c: New file.
57575
57576         Work around MacOS X wcwidth() bug.
57577         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
57578         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
57579         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
57580         original wcwidth in non-UTF-8 locales.
57581         * modules/wcwidth (Depends-on): Add localcharset, streq,
57582         uniwidth/width.
57583         * doc/functions/wcwidth.texi: Update.
57584
57585 2007-07-07  Bruno Haible  <bruno@clisp.org>
57586
57587         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
57588         (wcwidth): New declaration.
57589         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
57590         macros.
57591         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
57592         here. Prepare for creating <wchar.h> unconditionally.
57593         * modules/wchar (Depends-on): Add link-warning.
57594         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
57595         REPLACE_WCWIDTH, and GL_LINK_WARNING.
57596         * lib/wcwidth.h: Remove file.
57597         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
57598         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
57599         * modules/wcwidth (Files): Remove lib/wcwidth.h.
57600         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
57601         (Include): Replace wcwidth.h with <wchar.h>.
57602         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
57603         * lib/mbchar.h: Don't include wcwidth.h.
57604         * lib/mbswidth.c: Likewise.
57605         * NEWS: Mention the change.
57606
57607 2007-07-07  Bruno Haible  <bruno@clisp.org>
57608
57609         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
57610         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
57611         definition with an external declaration.
57612         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
57613         defined as a function. Remove AC_C_INLINE requirement.
57614         * modules/wcwidth (Files): Add lib/wcwidth.c.
57615         (Makefile.am): Remove redundant statement.
57616
57617 2007-07-07  Bruno Haible  <bruno@clisp.org>
57618
57619         * MODULES.html.sh (Unicode string functions): Add the new modules.
57620
57621         * tests/uniwidth/test-u32-strwidth.c: New file.
57622         * modules/uniwidth/u32-strwidth-tests: New file.
57623
57624         * lib/uniwidth/u32-strwidth.c: New file.
57625         * modules/uniwidth/u32-strwidth: New file.
57626
57627         * tests/uniwidth/test-u16-strwidth.c: New file.
57628         * modules/uniwidth/u16-strwidth-tests: New file.
57629
57630         * lib/uniwidth/u16-strwidth.c: New file.
57631         * modules/uniwidth/u16-strwidth: New file.
57632
57633         * tests/uniwidth/test-u8-strwidth.c: New file.
57634         * modules/uniwidth/u8-strwidth-tests: New file.
57635
57636         * lib/uniwidth/u8-strwidth.c: New file.
57637         * modules/uniwidth/u8-strwidth: New file.
57638
57639         * tests/uniwidth/test-u32-width.c: New file.
57640         * modules/uniwidth/u32-width-tests: New file.
57641
57642         * lib/uniwidth/u32-width.c: New file.
57643         * modules/uniwidth/u32-width: New file.
57644
57645         * tests/uniwidth/test-u16-width.c: New file.
57646         * modules/uniwidth/u16-width-tests: New file.
57647
57648         * lib/uniwidth/u16-width.c: New file.
57649         * modules/uniwidth/u16-width: New file.
57650
57651         * tests/uniwidth/test-u8-width.c: New file.
57652         * modules/uniwidth/u8-width-tests: New file.
57653
57654         * lib/uniwidth/u8-width.c: New file.
57655         * modules/uniwidth/u8-width: New file.
57656
57657         * tests/uniwidth/test-uc_width.c: New file.
57658         * modules/uniwidth/width-tests: New file.
57659
57660         * lib/uniwidth/width.c: New file, from GNU libiconv.
57661         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
57662         * modules/uniwidth/width: New file.
57663
57664         * lib/uniwidth.h: New file, from GNU libiconv.
57665         * modules/uniwidth/base: New file.
57666
57667 2007-07-07  Bruno Haible  <bruno@clisp.org>
57668
57669         * lib/uniname.h: New file, from GNU gettext.
57670         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
57671         * lib/uniname/uninames.h: New file, from GNU gettext.
57672         * lib/uniname/uniname.c: New file, from GNU gettext.
57673         * tests/uniname/test-uninames.sh: New file.
57674         * tests/uniname/test-uninames.c: New file, from GNU gettext.
57675         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
57676         * modules/uniname/base: New file.
57677         * modules/uniname/uniname: New file.
57678         * modules/uniname/uniname-tests: New file.
57679         * MODULES.html.sh (Unicode string functions): Add the new modules.
57680
57681 2007-07-06  Bruno Haible  <bruno@clisp.org>
57682
57683         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
57684
57685 2007-07-06  Bruno Haible  <bruno@clisp.org>
57686
57687         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
57688         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
57689         includes <cygwin/sys_time.h> which includes <sys/select.h> which
57690         include <sys/time.h>.
57691         Reported by Eric Blake.
57692
57693 2007-07-06  Eric Blake  <ebb9@byu.net>
57694
57695         Fix testing canonicalize on cygwin.
57696         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
57697         Revert patch from 2007-06-19.
57698         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
57699         canonicalize module is also in use.
57700         * tests/test-canonicalize.c: New file.
57701         * tests/test-canonicalize.sh: Likewise.
57702         * modules/canonicalize-tests: Likewise.
57703
57704 2007-07-06  Jim Meyering  <jim@meyering.net>
57705
57706         * lib/getugroups.c (getugroups): Detect getgrent failure.
57707         Adjust comment to reflect reality: this function may return -1.
57708
57709 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
57710
57711         * build-aux/bootstrap (TP_URL,get_translations): Update to use
57712         the new TP address.
57713         (usage): Fix typo
57714         (gnulib_mk): New variable.
57715
57716 2007-07-05  Jim Meyering  <jim@meyering.net>
57717
57718         Don't let endgrent clobber errno, no matter how improbable.
57719         * lib/getugroups.c (getugroups): Save and restore errno around
57720         endgrent call.
57721
57722         Close the group DB even when failing with 2^31 or more members.
57723         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
57724
57725 2007-07-04  Jim Meyering  <jim@meyering.net>
57726
57727         * lib/getugroups.h: New file.
57728         * lib/getugroups.c: Include "getugroups.h".
57729         Remove uses of "register" keyword.
57730         Move local variable, "cp", down into scope where used.
57731         Give "username" parameter the "const" attribute.
57732         * modules/getugroups (Files): Add lib/getugroups.h
57733
57734 2007-07-04  Karl Berry  <karl@gnu.org>
57735
57736         * MODULES.html.sh (func_all_modules): Complete rename of
57737         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
57738
57739 2007-07-02  Bruno Haible  <bruno@clisp.org>
57740
57741         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
57742         mode, when inttypes.h comes from gnulib.
57743         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
57744
57745 2007-07-02  Simon Josefsson  <simon@josefsson.org>
57746
57747         * NEWS: Mention lgpl module name change.
57748
57749         * modules/lgpl-2.1: Renamed from lgpl.
57750
57751         * NEWS: Mention gpl module name change.
57752
57753         * modules/gpl-3.0: New file, based on gpl-2.0.
57754
57755         * modules/gpl-2.0: Renamed from gpl.
57756
57757         * modules/gpl: Fix filename, doc/gpl.texi is now found at
57758         doc/gpl-2.0.texi.
57759
57760 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
57761
57762         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
57763         #define __STDC_LIMIT_MACROS temporarily while including
57764         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
57765         Problem reported by Joel E. Denny in
57766         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
57767
57768 2007-07-01  Bruno Haible  <bruno@clisp.org>
57769
57770         * lib/unistdio.h: New file.
57771         * lib/unistdio/u-asnprintf.h: New file.
57772         * lib/unistdio/u-asprintf.h: New file.
57773         * lib/unistdio/u-printf-args.c: New file.
57774         * lib/unistdio/u-printf-args.h: New file.
57775         * lib/unistdio/u-printf-parse.h: New file.
57776         * lib/unistdio/u-snprintf.h: New file.
57777         * lib/unistdio/u-sprintf.h: New file.
57778         * lib/unistdio/u-vasprintf.h: New file.
57779         * lib/unistdio/u-vsnprintf.h: New file.
57780         * lib/unistdio/u-vsprintf.h: New file.
57781         * lib/unistdio/ulc-asnprintf.c: New file.
57782         * lib/unistdio/ulc-asprintf.c: New file.
57783         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
57784         * lib/unistdio/ulc-printf-parse.c: New file.
57785         * lib/unistdio/ulc-snprintf.c: New file.
57786         * lib/unistdio/ulc-sprintf.c: New file.
57787         * lib/unistdio/ulc-vasnprintf.c: New file.
57788         * lib/unistdio/ulc-vasprintf.c: New file.
57789         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
57790         * lib/unistdio/ulc-vsnprintf.c: New file.
57791         * lib/unistdio/ulc-vsprintf.c: New file.
57792         * lib/unistdio/u8-asnprintf.c: New file.
57793         * lib/unistdio/u8-asprintf.c: New file.
57794         * lib/unistdio/u8-printf-parse.c: New file.
57795         * lib/unistdio/u8-snprintf.c: New file.
57796         * lib/unistdio/u8-sprintf.c: New file.
57797         * lib/unistdio/u8-vasnprintf.c: New file.
57798         * lib/unistdio/u8-vasprintf.c: New file.
57799         * lib/unistdio/u8-vsnprintf.c: New file.
57800         * lib/unistdio/u8-vsprintf.c: New file.
57801         * lib/unistdio/u8-u8-asnprintf.c: New file.
57802         * lib/unistdio/u8-u8-asprintf.c: New file.
57803         * lib/unistdio/u8-u8-snprintf.c: New file.
57804         * lib/unistdio/u8-u8-sprintf.c: New file.
57805         * lib/unistdio/u8-u8-vasnprintf.c: New file.
57806         * lib/unistdio/u8-u8-vasprintf.c: New file.
57807         * lib/unistdio/u8-u8-vsnprintf.c: New file.
57808         * lib/unistdio/u8-u8-vsprintf.c: New file.
57809         * lib/unistdio/u16-asnprintf.c: New file.
57810         * lib/unistdio/u16-asprintf.c: New file.
57811         * lib/unistdio/u16-printf-parse.c: New file.
57812         * lib/unistdio/u16-snprintf.c: New file.
57813         * lib/unistdio/u16-sprintf.c: New file.
57814         * lib/unistdio/u16-vasnprintf.c: New file.
57815         * lib/unistdio/u16-vasprintf.c: New file.
57816         * lib/unistdio/u16-vsnprintf.c: New file.
57817         * lib/unistdio/u16-vsprintf.c: New file.
57818         * lib/unistdio/u16-u16-asnprintf.c: New file.
57819         * lib/unistdio/u16-u16-asprintf.c: New file.
57820         * lib/unistdio/u16-u16-snprintf.c: New file.
57821         * lib/unistdio/u16-u16-sprintf.c: New file.
57822         * lib/unistdio/u16-u16-vasnprintf.c: New file.
57823         * lib/unistdio/u16-u16-vasprintf.c: New file.
57824         * lib/unistdio/u16-u16-vsnprintf.c: New file.
57825         * lib/unistdio/u16-u16-vsprintf.c: New file.
57826         * lib/unistdio/u32-asnprintf.c: New file.
57827         * lib/unistdio/u32-asprintf.c: New file.
57828         * lib/unistdio/u32-printf-parse.c: New file.
57829         * lib/unistdio/u32-snprintf.c: New file.
57830         * lib/unistdio/u32-sprintf.c: New file.
57831         * lib/unistdio/u32-vasnprintf.c: New file.
57832         * lib/unistdio/u32-vasprintf.c: New file.
57833         * lib/unistdio/u32-vsnprintf.c: New file.
57834         * lib/unistdio/u32-vsprintf.c: New file.
57835         * lib/unistdio/u32-u32-asnprintf.c: New file.
57836         * lib/unistdio/u32-u32-asprintf.c: New file.
57837         * lib/unistdio/u32-u32-snprintf.c: New file.
57838         * lib/unistdio/u32-u32-sprintf.c: New file.
57839         * lib/unistdio/u32-u32-vasnprintf.c: New file.
57840         * lib/unistdio/u32-u32-vasprintf.c: New file.
57841         * lib/unistdio/u32-u32-vsnprintf.c: New file.
57842         * lib/unistdio/u32-u32-vsprintf.c: New file.
57843         * tests/unistdio/test-ulc-asnprintf1.c: New file.
57844         * tests/unistdio/test-ulc-asnprintf1.h: New file.
57845         * tests/unistdio/test-ulc-printf1.h: New file.
57846         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
57847         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
57848         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
57849         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
57850         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
57851         * tests/unistdio/test-ulc-vasprintf1.c: New file.
57852         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
57853         * tests/unistdio/test-ulc-vsprintf1.c: New file.
57854         * tests/unistdio/test-u8-asnprintf1.c: New file.
57855         * tests/unistdio/test-u8-asnprintf1.h: New file.
57856         * tests/unistdio/test-u8-printf1.h: New file.
57857         * tests/unistdio/test-u8-vasnprintf1.c: New file.
57858         * tests/unistdio/test-u8-vasnprintf2.c: New file.
57859         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
57860         * tests/unistdio/test-u8-vasnprintf3.c: New file.
57861         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
57862         * tests/unistdio/test-u8-vasprintf1.c: New file.
57863         * tests/unistdio/test-u8-vsnprintf1.c: New file.
57864         * tests/unistdio/test-u8-vsprintf1.c: New file.
57865         * tests/unistdio/test-u16-asnprintf1.c: New file.
57866         * tests/unistdio/test-u16-asnprintf1.h: New file.
57867         * tests/unistdio/test-u16-printf1.h: New file.
57868         * tests/unistdio/test-u16-vasnprintf1.c: New file.
57869         * tests/unistdio/test-u16-vasnprintf2.c: New file.
57870         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
57871         * tests/unistdio/test-u16-vasnprintf3.c: New file.
57872         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
57873         * tests/unistdio/test-u16-vasprintf1.c: New file.
57874         * tests/unistdio/test-u16-vsnprintf1.c: New file.
57875         * tests/unistdio/test-u16-vsprintf1.c: New file.
57876         * tests/unistdio/test-u32-asnprintf1.c: New file.
57877         * tests/unistdio/test-u32-asnprintf1.h: New file.
57878         * tests/unistdio/test-u32-printf1.h: New file.
57879         * tests/unistdio/test-u32-vasnprintf1.c: New file.
57880         * tests/unistdio/test-u32-vasnprintf2.c: New file.
57881         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
57882         * tests/unistdio/test-u32-vasnprintf3.c: New file.
57883         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
57884         * tests/unistdio/test-u32-vasprintf1.c: New file.
57885         * tests/unistdio/test-u32-vsnprintf1.c: New file.
57886         * tests/unistdio/test-u32-vsprintf1.c: New file.
57887         * modules/unistdio/base: New file.
57888         * modules/unistdio/u-printf-args: New file.
57889         * modules/unistdio/ulc-asnprintf: New file.
57890         * modules/unistdio/ulc-asprintf: New file.
57891         * modules/unistdio/ulc-fprintf: New file.
57892         * modules/unistdio/ulc-printf-parse: New file.
57893         * modules/unistdio/ulc-snprintf: New file.
57894         * modules/unistdio/ulc-sprintf: New file.
57895         * modules/unistdio/ulc-vasnprintf: New file.
57896         * modules/unistdio/ulc-vasprintf: New file.
57897         * modules/unistdio/ulc-vfprintf: New file.
57898         * modules/unistdio/ulc-vsnprintf: New file.
57899         * modules/unistdio/ulc-vsprintf: New file.
57900         * modules/unistdio/u8-asnprintf: New file.
57901         * modules/unistdio/u8-asprintf: New file.
57902         * modules/unistdio/u8-printf-parse: New file.
57903         * modules/unistdio/u8-snprintf: New file.
57904         * modules/unistdio/u8-sprintf: New file.
57905         * modules/unistdio/u8-vasnprintf: New file.
57906         * modules/unistdio/u8-vasprintf: New file.
57907         * modules/unistdio/u8-vsnprintf: New file.
57908         * modules/unistdio/u8-vsprintf: New file.
57909         * modules/unistdio/u8-u8-asnprintf: New file.
57910         * modules/unistdio/u8-u8-asprintf: New file.
57911         * modules/unistdio/u8-u8-snprintf: New file.
57912         * modules/unistdio/u8-u8-sprintf: New file.
57913         * modules/unistdio/u8-u8-vasnprintf: New file.
57914         * modules/unistdio/u8-u8-vasprintf: New file.
57915         * modules/unistdio/u8-u8-vsnprintf: New file.
57916         * modules/unistdio/u8-u8-vsprintf: New file.
57917         * modules/unistdio/u16-asnprintf: New file.
57918         * modules/unistdio/u16-asprintf: New file.
57919         * modules/unistdio/u16-printf-parse: New file.
57920         * modules/unistdio/u16-snprintf: New file.
57921         * modules/unistdio/u16-sprintf: New file.
57922         * modules/unistdio/u16-vasnprintf: New file.
57923         * modules/unistdio/u16-vasprintf: New file.
57924         * modules/unistdio/u16-vsnprintf: New file.
57925         * modules/unistdio/u16-vsprintf: New file.
57926         * modules/unistdio/u16-u16-asnprintf: New file.
57927         * modules/unistdio/u16-u16-asprintf: New file.
57928         * modules/unistdio/u16-u16-snprintf: New file.
57929         * modules/unistdio/u16-u16-sprintf: New file.
57930         * modules/unistdio/u16-u16-vasnprintf: New file.
57931         * modules/unistdio/u16-u16-vasprintf: New file.
57932         * modules/unistdio/u16-u16-vsnprintf: New file.
57933         * modules/unistdio/u16-u16-vsprintf: New file.
57934         * modules/unistdio/u32-asnprintf: New file.
57935         * modules/unistdio/u32-asprintf: New file.
57936         * modules/unistdio/u32-printf-parse: New file.
57937         * modules/unistdio/u32-snprintf: New file.
57938         * modules/unistdio/u32-sprintf: New file.
57939         * modules/unistdio/u32-vasnprintf: New file.
57940         * modules/unistdio/u32-vasprintf: New file.
57941         * modules/unistdio/u32-vsnprintf: New file.
57942         * modules/unistdio/u32-vsprintf: New file.
57943         * modules/unistdio/u32-u32-asnprintf: New file.
57944         * modules/unistdio/u32-u32-asprintf: New file.
57945         * modules/unistdio/u32-u32-snprintf: New file.
57946         * modules/unistdio/u32-u32-sprintf: New file.
57947         * modules/unistdio/u32-u32-vasnprintf: New file.
57948         * modules/unistdio/u32-u32-vasprintf: New file.
57949         * modules/unistdio/u32-u32-vsnprintf: New file.
57950         * modules/unistdio/u32-u32-vsprintf: New file.
57951         * modules/unistdio/ulc-asnprintf-tests: New file.
57952         * modules/unistdio/ulc-vasnprintf-tests: New file.
57953         * modules/unistdio/ulc-vasprintf-tests: New file.
57954         * modules/unistdio/ulc-vsnprintf-tests: New file.
57955         * modules/unistdio/ulc-vsprintf-tests: New file.
57956         * modules/unistdio/u8-asnprintf-tests: New file.
57957         * modules/unistdio/u8-vasnprintf-tests: New file.
57958         * modules/unistdio/u8-vasprintf-tests: New file.
57959         * modules/unistdio/u8-vsnprintf-tests: New file.
57960         * modules/unistdio/u8-vsprintf-tests: New file.
57961         * modules/unistdio/u16-asnprintf-tests: New file.
57962         * modules/unistdio/u16-vasnprintf-tests: New file.
57963         * modules/unistdio/u16-vasprintf-tests: New file.
57964         * modules/unistdio/u16-vsnprintf-tests: New file.
57965         * modules/unistdio/u16-vsprintf-tests: New file.
57966         * modules/unistdio/u32-asnprintf-tests: New file.
57967         * modules/unistdio/u32-vasnprintf-tests: New file.
57968         * modules/unistdio/u32-vasprintf-tests: New file.
57969         * modules/unistdio/u32-vsnprintf-tests: New file.
57970         * modules/unistdio/u32-vsprintf-tests: New file.
57971         * MODULES.html.sh (Unicode string functions): Add the new modules.
57972
57973 2007-07-01  Bruno Haible  <bruno@clisp.org>
57974
57975         * lib/sprintf.c (sprintf): Limit the available length estimation,
57976         to avoid address wraparound.
57977         * lib/vsprintf.c (vsprintf): Likewise.
57978         * modules/sprintf-posix (Dependencies): Add stdint.
57979         * modules/vsprintf-posix (Dependencies): Likewise.
57980
57981 2007-07-01  Bruno Haible  <bruno@clisp.org>
57982
57983         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
57984         Windows PATH as well. Conservative double-quoting. Comments.
57985
57986 2007-07-01  Bruno Haible  <bruno@clisp.org>
57987             Eric Blake  <ebb9@byu.net>
57988             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57989
57990         * gnulib-tool (self_abspathname): Fix algorithm to cope with
57991         empty components in $PATH, denoting '.'.
57992
57993 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57994
57995         * gnulib-tool: Fix indentation.
57996         (func_create_megatestdir): Likewise.
57997         Report by Bruno Haible.
57998
57999 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58000
58001         Sync from Automake.
58002         * build-aux/gnupload: Fix shell portability issues with for loops.
58003         Report by Karl Berry.
58004
58005 2007-06-29  Simon Josefsson  <simon@josefsson.org>
58006
58007         * build-aux/maint.mk (POURL): Use translationproject.org.
58008
58009 2007-06-27  Simon Josefsson  <simon@josefsson.org>
58010             Bruno Haible  <bruno@clisp.org>
58011
58012         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
58013         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
58014         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
58015         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
58016         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
58017
58018 2007-06-27  Bruno Haible  <bruno@clisp.org>
58019
58020         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
58021         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
58022
58023 2007-06-26  Karl Berry  <karl@gnu.org>
58024
58025         * MODULES.html.sh: remove xreadlink-with-size.
58026
58027 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
58028
58029         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
58030         method that I hope also handles the double-include problem noted
58031         by Bruno Haible in
58032         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
58033
58034 2007-06-23  Bruno Haible  <bruno@clisp.org>
58035
58036         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
58037         Don't let the 'mostlyclean' target fail if the last subdirectory could
58038         not be removed.
58039         Reported by Karl Berry.
58040
58041 2007-06-23  Bruno Haible  <bruno@clisp.org>
58042
58043         * gnulib-tool (echo): Add a speedier workaround for ksh.
58044         * tests/test-echo.sh: Likewise.
58045
58046 2007-06-23  Bruno Haible  <bruno@clisp.org>
58047
58048         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
58049         * tests/test-echo.sh: Likewise.
58050
58051 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58052
58053         * gnulib-tool (IFS): Initialize early, so we don't set it to
58054         empty later.
58055         (self_abspathname): Rewrite algorithm to set it, reindent.
58056         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
58057         (func_create_megatestdir): Merge some sed scripts.
58058
58059 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
58060
58061         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
58062         exposed by Sun Studio 11 cc on Solaris 8.
58063
58064 2007-06-22  Bruno Haible  <bruno@clisp.org>
58065
58066         * gnulib-tool (echo): Ensure the echo primitive does not interpret
58067         backslashes.
58068         * tests/test-echo.sh: New file.
58069
58070 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58071
58072         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
58073         simplify `sed_replace_build_aux' scripts, they are portable but
58074         echoing them with `echo' is not.
58075         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
58076
58077 2007-06-21  Karl Berry  <karl@gnu.org>
58078
58079         * config/srclist.txt: guess we can't handle the licenses via
58080         srclist at the moment.
58081
58082 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
58083
58084         * MODULES.html.sh: Add include_next.
58085         * modules/include_next: New file.
58086
58087 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
58088
58089         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
58090         INCLUDE_NEXT.
58091         (gl_CHECK_NEXT_HEADERS): New macro.
58092         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
58093         the obsolescent gl_ABSOLUTE_HEADER.
58094         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
58095         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
58096         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
58097         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
58098         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
58099         * m4/math_h.m4 (gl_MATH_H): Likewise.
58100         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
58101         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
58102         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
58103         * m4/stdint.m4 (gl_STDINT_H): Likewise.
58104         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
58105         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
58106         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
58107         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
58108         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
58109         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
58110         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
58111         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
58112         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
58113         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
58114         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
58115         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
58116         * m4/inttypes.m4 (gl_INTTYPES_H): Define
58117         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
58118         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
58119         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
58120         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
58121         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
58122         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
58123         * lib/float_.h: Likewise.
58124         * lib/inttypes_.h: Likewise.
58125         * lib/math_.h: Likewise.
58126         * lib/search_.h: Likewise.
58127         * lib/signal_.h: Likewise.
58128         * lib/stdint_.h: Likewise.
58129         * lib/stdio_.h: Likewise.
58130         * lib/stdlib_.h: Likewise.
58131         * lib/string_.h: Likewise.
58132         * lib/sys_stat_.h: Likewise.
58133         * lib/sys_time_.h: Likewise.
58134         * lib/time_.h: Likewise.
58135         * lib/unistd_.h: Likewise.
58136         * lib/wchar_.h: Likewise.
58137         * lib/wctype_.h: Likewise.
58138         * lib/dirent_.h: Likewise.
58139         * lib/iconv_.h: Likewise.
58140         * lib/locale_.h: Likewise.
58141         * lib/netinet_in_.h: Likewise.
58142         * lib/sys_select_.h: Likewise.
58143         * lib/sys_socket_.h: Likewise.
58144         * lib/sysexits_.h: Likewise.
58145         * modules/fcntl (Depends-on): Depend on include_next, not
58146         absolute_header.
58147         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
58148         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
58149         * modules/fchdir: Likewise.
58150         * modules/float: Likewise.
58151         * modules/iconv_open: Likewise.
58152         * modules/inttypes: Likewise.
58153         * modules/locale: Likewise.
58154         * modules/math: Likewise.
58155         * modules/netinet_in: Likewise.
58156         * modules/search: Likewise.
58157         * modules/signal: Likewise.
58158         * modules/stdint: Likewise.
58159         * modules/stdio: Likewise.
58160         * modules/stdlib: Likewise.
58161         * modules/string: Likewise.
58162         * modules/sys_select: Likewise.
58163         * modules/sys_socket: Likewise.
58164         * modules/sys_stat: Likewise.
58165         * modules/sys_time: Likewise.
58166         * modules/sysexits: Likewise.
58167         * modules/time: Likewise.
58168         * modules/unistd: Likewise.
58169         * modules/wchar: Likewise.
58170         * modules/wctype: Likewise.
58171         * modules/sys_stat: Change maintainer to "all".
58172         * modules/unistd: Likewise.
58173
58174 2007-06-20  Karl Berry  <karl@gnu.org>
58175
58176         * config/srclist.txt: track www changes in license files.
58177
58178 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
58179
58180         * build-aux/bootstrap: Remove stray dot.
58181         Make sure build_aux settings are honored when linking
58182         gnulib_extra_files.
58183
58184 2007-06-19  Eric Blake  <ebb9@byu.net>
58185
58186         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
58187         Allow compilation on cygwin.
58188
58189 2007-06-19  Jim Meyering  <jim@meyering.net>
58190
58191         xreadlink-with-size: Remove module.  No longer used.
58192         Ex-callers now use xreadlink or mreadlink-with-size.
58193         * modules/xreadlink-with-size: Remove module.
58194         * lib/xreadlink-with-size.c: Remove file.
58195         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
58196         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
58197         just before the function definition *is* accurate.
58198
58199         Eliminate one way canonicalize_filename_mode could exit.
58200         * lib/canonicalize.c (canonicalize_filename_mode):
58201         Use mreadlink_with_size, not xreadlink_with_size.
58202
58203 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
58204
58205         Detect porting problems to FreeBSD/arm, which has time_t wider than
58206         long int.  Original problem reported for GNU diff by Xin Li in
58207         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
58208         * modules/getdate (Depends-on): Add intprops, verify.
58209         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
58210         is an integer type no wider than long int.
58211
58212 2007-06-18  Jim Meyering  <jim@meyering.net>
58213
58214         New module: mreadlink-with-size.
58215         * MODULES.html.sh: Add mreadlink-with-size.
58216         * modules/mreadlink-with-size: New module
58217         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
58218         not xreadlink-with-size.
58219         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
58220
58221 2007-06-16  Bruno Haible  <bruno@clisp.org>
58222
58223         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
58224         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
58225         Reported by Gary V. Vaughan <gary@gnu.org>.
58226
58227 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
58228
58229         Revamp lchown so that it lives in unistd.h where it belongs.
58230         * lib/lchown.h: Remove.
58231         * lib/dirchownmod.c: Don't include lib/lchown.h.
58232         * lib/fchownat.c: Likewise.
58233         * lib/openat.c: Likewise.
58234         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
58235         does not follow symlinks.
58236         (EOPNOTSUPP): Define if not defined.
58237         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
58238         is defined to 0.
58239         (lchown): New decl.
58240         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
58241         Do not check for lchown decl.
58242         Set REPLACE_LCHOWN.
58243         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
58244         REPLACE_LCHOWN.
58245         * modules/chown: Make it clear it follows symlinks.
58246         * modules/lchown: Make it clear it doesn't follow symlinks.
58247         (Files): Remove lib/lchown.h
58248         (Depends-on): Add unistd.
58249         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
58250         (Include): Include <unistd.h>, not "lchown.h".
58251         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
58252         REPLACE_LCHOWN.
58253
58254 2007-06-15  Jim Meyering  <jim@meyering.net>
58255
58256         Change license (GPL to LGPL) of fsusage and dependents.
58257         * modules/fsusage (License): Change to LGPL.
58258         * modules/full-read (License): Likewise.
58259         * modules/full-write (License): Likewise.
58260         * modules/safe-read (License): Likewise.
58261         * modules/safe-write (License): Likewise.
58262
58263 2007-06-14  Ben Pfaff  <blp@gnu.org>
58264
58265         Missing part of allocsa -> malloca transition.
58266         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
58267         gl_MALLOCA.
58268
58269 2007-06-12  Bruno Haible  <bruno@clisp.org>
58270
58271         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
58272         to ia64, x86_64, i386.
58273         Reported by Eric Blake.
58274
58275 2007-06-12  Bruno Haible  <bruno@clisp.org>
58276
58277         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
58278         cross-compiling to x86_64.
58279
58280 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
58281
58282         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
58283         glitch reported by Ralf Wildenhues in
58284         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
58285
58286         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
58287         Vin Shelton.
58288
58289 2007-06-11  Bruno Haible  <bruno@clisp.org>
58290
58291         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
58292         replacement string.
58293         Reported by Eric Blake.
58294
58295 2007-06-10  Bruno Haible  <bruno@clisp.org>
58296
58297         Prepare vasnprintf code for use with Unicode strings.
58298         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
58299         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
58300         TYPE_U32_STRING.
58301         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
58302         a_u32_string variants.
58303         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
58304         * lib/printf-args.c: Don't include config.h and the specification
58305         header if PRINTF_FETCHARGS is already defined.
58306         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
58307         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
58308         TYPE_U16_STRING, TYPE_U32_STRING.
58309         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
58310         u16_directive, u16_directives, u32_directive, u32_directives): New
58311         types.
58312         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
58313         New declarations.
58314         * lib/printf-parse.c: Don't include config.h and the specification
58315         header if PRINTF_PARSE is already defined. Eliminate the set of
58316         parameters for WIDE_CHAR_VERSION; the user of this file must provide
58317         them now. Include c-ctype.h.
58318         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
58319         directive and CHAR_T_ONLY_ASCII.
58320         * lib/vasnprintf.c: Don't include config.h and the specification header
58321         if VASNPRINTF is already defined.
58322         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
58323         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
58324         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
58325         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
58326         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
58327         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
58328         code accordingly.
58329         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
58330         pad_ourselves also in this case, with the 'c' and 's' directives, and
58331         with a different notion of "width".
58332         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
58333
58334 2007-06-10  Bruno Haible  <bruno@clisp.org>
58335
58336         * modules/unistr/u32-mbsnlen: New file.
58337         * lib/unistr/u32-mbsnlen.c: New file.
58338
58339         * modules/unistr/u16-mbsnlen: New file.
58340         * lib/unistr/u16-mbsnlen.c: New file.
58341
58342         * modules/unistr/u8-mbsnlen: New file.
58343         * lib/unistr/u8-mbsnlen.c: New file.
58344
58345         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
58346         declarations.
58347
58348 2007-06-10  Bruno Haible  <bruno@clisp.org>
58349
58350         * lib/string_.h (mbsnlen): New declaration.
58351         * lib/mbsnlen.c: New file.
58352         * m4/mbsnlen.m4: New file.
58353         * modules/mbsnlen: New file.
58354         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
58355         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
58356         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
58357
58358 2007-06-10  Bruno Haible  <bruno@clisp.org>
58359
58360         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
58361
58362 2007-06-10  Bruno Haible  <bruno@clisp.org>
58363
58364         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
58365         * lib/mbuiter.h: Likewise.
58366
58367 2007-06-10  Bruno Haible  <bruno@clisp.org>
58368
58369         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
58370         declaration.
58371
58372 2007-06-10  Karl Berry  <karl@gnu.org>
58373
58374         * config/srclist.txt: remove gettext entries, Bruno prefers
58375         to update individually.
58376
58377 2007-06-10  Bruno Haible  <bruno@clisp.org>
58378
58379         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
58380         'maxlen'. Ensure only length + width bytes are allocated, not
58381         length + 1 + width.
58382
58383 2007-06-09  Bruno Haible  <bruno@clisp.org>
58384
58385         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
58386         (CHAR_T): Remove macro.
58387         (VASNPRINTF): Update.
58388
58389 2007-06-09  Bruno Haible  <bruno@clisp.org>
58390
58391         * MODULES.html.sh (Unicode string functions): Add the new modules.
58392
58393         * modules/uniconv/u32-conv-to-enc: New file.
58394         * lib/uniconv/u32-conv-to-enc.c: New file.
58395         * modules/uniconv/u32-conv-to-enc-tests: New file.
58396         * tests/uniconv/test-u32-conv-to-enc.c: New file.
58397
58398         * modules/uniconv/u16-conv-to-enc: New file.
58399         * lib/uniconv/u16-conv-to-enc.c: New file.
58400         * lib/uniconv/u-conv-to-enc.h: New file.
58401         * modules/uniconv/u16-conv-to-enc-tests: New file.
58402         * tests/uniconv/test-u16-conv-to-enc.c: New file.
58403
58404         * modules/uniconv/u8-conv-to-enc: New file.
58405         * lib/uniconv/u8-conv-to-enc.c: New file.
58406         * modules/uniconv/u8-conv-to-enc-tests: New file.
58407         * tests/uniconv/test-u8-conv-to-enc.c: New file.
58408
58409         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
58410         u32_conv_to_encoding): New declarations.
58411
58412 2007-06-09  Bruno Haible  <bruno@clisp.org>
58413
58414         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
58415
58416 2007-06-09  Bruno Haible  <bruno@clisp.org>
58417
58418         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
58419         * modules/malloca: Renamed from modules/allocsa, updated.
58420         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
58421         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
58422         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
58423         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
58424         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
58425         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
58426         * modules/xmalloca: Renamed from modules/xallocsa, updated.
58427         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
58428         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
58429         * modules/c-strcasestr (Depends-on): Update.
58430         * lib/c-strcasestr.c: Update.
58431         * modules/c-strstr (Depends-on): Update.
58432         * lib/c-strstr.c: Update.
58433         * modules/canonicalize-lgpl (Depends-on): Update.
58434         * lib/canonicalize-lgpl.c: Update.
58435         * modules/clean-temp (Depends-on): Update.
58436         * lib/clean-temp.c: Update.
58437         * modules/csharpcomp (Depends-on): Update.
58438         * lib/csharpcomp.c: Update.
58439         * modules/csharpexec (Depends-on): Update.
58440         * lib/csharpexec.c: Update.
58441         * modules/javacomp (Depends-on): Update.
58442         * lib/javacomp.c: Update.
58443         * modules/javaexec (Depends-on): Update.
58444         * lib/javaexec.c: Update.
58445         * modules/mbscasestr (Depends-on): Update.
58446         * lib/mbscasestr.c: Update.
58447         * modules/mbsstr (Depends-on): Update.
58448         * lib/mbsstr.c: Update.
58449         * modules/setenv (Depends-on): Update.
58450         * lib/setenv.c: Update.
58451         * modules/strcasestr (Depends-on): Update.
58452         * lib/strcasestr.c: Update.
58453         * modules/striconveha (Depends-on): Update.
58454         * lib/striconveha.c: Update.
58455         * modules/relocatable-prog-wrapper (Files): Update.
58456         * lib/relocwrapper.c: Update.
58457         * build-aux/install-reloc: Update.
58458         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
58459
58460 2007-06-08  Bruno Haible  <bruno@clisp.org>
58461
58462         Port to uClibc.
58463         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
58464         * lib/fpurge.c (fpurge): Likewise.
58465         * lib/freading.c (freading): Likewise.
58466         * lib/fseeko.c (rpl_fseeko): Likewise.
58467         * lib/fseterr.c (fseterr): Likewise.
58468         * lib/fwriting.c (fwriting): Likewise.
58469         * tests/test-fflush.c (main): Avoid a failure on uClibc.
58470
58471 2007-06-08  Bruno Haible  <bruno@clisp.org>
58472
58473         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
58474         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
58475         * modules/gettext (Files): Add m4/intlmacosx.m4.
58476
58477 2007-06-07  Bruno Haible  <bruno@clisp.org>
58478
58479         * modules/localename-tests: New file.
58480         * tests/test-localename.c: New file.
58481
58482         New module 'localename'.
58483         * lib/localename.h: New file.
58484         * lib/localename.c: New file, from GNU gettext.
58485         * m4/localename.m4: New file.
58486         * modules/localename: New file.
58487
58488 2007-06-07  Bruno Haible  <bruno@clisp.org>
58489
58490         Work around the lack of <wchar.h> on some builds of uClibc.
58491         * doc/headers/wchar.texi: Update.
58492         * lib/wchar_.h: Include <wchar.h> only if it exists.
58493         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
58494         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
58495         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
58496         doesn't exist.
58497         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
58498         * modules/mbfile (Depends-on): Add wchar.
58499         * modules/mbiter (Depends-on): Likewise.
58500         * modules/mbuiter (Depends-on): Likewise.
58501         Reported by Simon Josefsson.
58502
58503 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
58504
58505         Work around problem reported by Steven M. Schweda in
58506         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
58507         Tru64 5.1B with the Compaq compiler environment installed declares
58508         an 'isblank' function but does not define it in the C library.
58509         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
58510         * lib/regex_internal.h (isblank): Likewise.
58511         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
58512         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
58513
58514 2007-06-05  Bruno Haible  <bruno@clisp.org>
58515
58516         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
58517         ia64.
58518         * modules/printf-safe: New file.
58519         * modules/fprintf-posix (Depends-on): Add printf-safe.
58520         * modules/printf-posix (Depends-on): Likewise.
58521         * modules/snprintf-posix (Depends-on): Likewise.
58522         * modules/sprintf-posix (Depends-on): Likewise.
58523         * modules/vasnprintf-posix (Depends-on): Likewise.
58524         * modules/vasprintf-posix (Depends-on): Likewise.
58525         * modules/vfprintf-posix (Depends-on): Likewise.
58526         * modules/vprintf-posix (Depends-on): Likewise.
58527         * modules/vsnprintf-posix (Depends-on): Likewise.
58528         * modules/vsprintf-posix (Depends-on): Likewise.
58529         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
58530         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
58531         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
58532         "no" on i386, x86_64, ia64.
58533         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
58534         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
58535         on i386, x86_64, ia64.
58536         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
58537         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
58538         on i386, x86_64, ia64.
58539         * tests/test-vasnprintf-posix.c: Include float.h.
58540         (LDBL80_WORDS): New macro.
58541         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
58542         on i386, x86_64, ia64.
58543         * tests/test-vasprintf-posix.c: Include float.h.
58544         (LDBL80_WORDS): New macro.
58545         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
58546         on i386, x86_64, ia64.
58547         * tests/test-snprintf-posix.c: Include float.h.
58548         * tests/test-sprintf-posix.c: Likewise.
58549         * tests/test-vsnprintf-posix.c: Likewise.
58550         * tests/test-vsprintf-posix.c: Likewise.
58551
58552 2007-06-05  Bruno Haible  <bruno@clisp.org>
58553
58554         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
58555         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
58556         non-IEEE numbers on i386, x86_64, ia64.
58557         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
58558         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
58559         * tests/test-isnanl.h: Include float.h.
58560         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
58561
58562 2007-06-05  Bruno Haible  <bruno@clisp.org>
58563
58564         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
58565         also the %a / %A. Handle the %a / %A code before this extra handling.
58566
58567 2007-06-05  Bruno Haible  <bruno@clisp.org>
58568
58569         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
58570         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
58571
58572 2007-06-05  Bruno Haible  <bruno@clisp.org>
58573
58574         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
58575         typo in variable name.
58576
58577 2007-06-05  Eric Blake  <ebb9@byu.net>
58578
58579         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
58580         Reported by Simon Josefsson.
58581
58582 2007-06-04  Bruno Haible  <bruno@clisp.org>
58583
58584         Avoid test failures on some PowerPC platforms.
58585         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
58586         Define differently for PowerPC.
58587         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
58588         Reported by Gary V. Vaughan <gary@gnu.org>.
58589
58590 2007-06-02  Bruno Haible  <bruno@clisp.org>
58591
58592         Fix test-stdint failure on FreeBSD/ia64.
58593         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
58594         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
58595         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
58596         * doc/headers/stdint.texi: Update.
58597
58598 2007-06-01  Bruno Haible  <bruno@clisp.org>
58599
58600         * tests/test-binary-io.c (main): Pass a third argument to open().
58601         Reported by Gary V. Vaughan <gary@gnu.org>.
58602
58603 2007-06-01  Bruno Haible  <bruno@clisp.org>
58604
58605         * doc/functions/frexpl.texi: Update for mingw.
58606
58607 2007-06-01  Bruno Haible  <bruno@clisp.org>
58608
58609         * tests/test-lseek.c (main): Disable test of errno for invalid third
58610         argument.
58611         * doc/functions/lseek.texi: Update.
58612         Reported by Gary V. Vaughan <gary@gnu.org>.
58613
58614 2007-05-28  Bruno Haible  <bruno@clisp.org>
58615
58616         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
58617
58618 2007-05-31  Eric Blake  <ebb9@byu.net>
58619
58620         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
58621         cross compiling.
58622
58623 2007-05-30  Eric Blake  <ebb9@byu.net>
58624         and Bruno Haible  <bruno@clisp.org>
58625
58626         Work around mingw test failures exposed by m4-1.4.9b.
58627         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
58628         * tests/test-unistd.c: Disable uid_t and git_t tests for the
58629         moment.
58630
58631 2007-05-30  Bruno Haible  <bruno@clisp.org>
58632
58633         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
58634         assuming that they are closed. Needed on HP-UX 11.
58635
58636 2007-05-29  Bruno Haible  <bruno@clisp.org>
58637
58638         Fix a problem with #include_next.
58639         * lib/dirent_.h: Split the double-inclusion guard.
58640         * lib/fcntl_.h: Likewise.
58641         * lib/float_.h: Likewise.
58642         * lib/iconv_.h: Likewise.
58643         * lib/inttypes_.h: Likewise.
58644         * lib/locale_.h: Likewise.
58645         * lib/math_.h: Likewise.
58646         * lib/netinet_in_.h: Likewise.
58647         * lib/search_.h: Likewise.
58648         * lib/signal_.h: Likewise.
58649         * lib/stdint_.h: Likewise.
58650         * lib/stdio_.h: Likewise.
58651         * lib/stdlib_.h: Likewise.
58652         * lib/string_.h: Likewise.
58653         * lib/sys_select_.h: Likewise.
58654         * lib/sys_socket_.h: Likewise.
58655         * lib/sys_stat_.h: Likewise.
58656         * lib/sys_time_.h: Likewise.
58657         * lib/sysexits_.h: Likewise.
58658         * lib/time_.h: Likewise.
58659         * lib/unistd_.h: Likewise.
58660         * lib/wchar_.h: Likewise.
58661         * lib/wctype_.h: Likewise.
58662
58663 2007-05-29  Bruno Haible  <bruno@clisp.org>
58664
58665         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
58666         for the moment.
58667
58668 2007-05-29  Bruno Haible  <bruno@clisp.org>
58669
58670         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
58671         invocation.
58672         Reported by Eric Blake.
58673
58674 2007-05-29  Bruno Haible  <bruno@clisp.org>
58675
58676         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
58677         compiling case.
58678
58679 2007-05-29  Eric Blake  <ebb9@byu.net>
58680             Bruno Haible  <bruno@clisp.org>
58681
58682         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
58683         cross compiles.
58684
58685 2007-05-28  Eric Blake  <ebb9@byu.net>
58686
58687         * modules/closein-tests (test_closein_LDADD): Support test on
58688         cygwin with libtool.
58689
58690 2007-05-28  Bruno Haible  <bruno@clisp.org>
58691
58692         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
58693         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
58694         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
58695         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
58696         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
58697         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
58698         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
58699         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
58700         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
58701
58702 2007-05-28  Eric Blake  <ebb9@byu.net>
58703
58704         Unconditionally include <config.h> in unit tests.
58705         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
58706         * tests/test-allocsa.c, tests/test-arcfour.c,
58707         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
58708         tests/test-array_list.c, tests/test-array_oset.c,
58709         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
58710         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
58711         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
58712         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
58713         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
58714         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
58715         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
58716         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
58717         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
58718         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
58719         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
58720         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
58721         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
58722         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
58723         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
58724         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
58725         test-md5.c, test-memmem.c, test-printf-posix.c,
58726         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
58727         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
58728         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
58729         test-strcasestr.c, test-striconv.c, test-striconveh.c,
58730         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
58731         test-vasnprintf-posix2.c, test-vasnprintf.c,
58732         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
58733         test-vfprintf-posix.c, test-vprintf-posix.c,
58734         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
58735         test-xvasprintf.c: Likewise.
58736
58737 2007-05-28  Bruno Haible  <bruno@clisp.org>
58738
58739         * gnulib-tool (func_import): Remember the --with-tests command-line
58740         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
58741         Reported by Eric Blake.
58742
58743 2007-05-28  Bruno Haible  <bruno@clisp.org>
58744
58745         * modules/ftell-tests: New file.
58746         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
58747         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
58748
58749         * lib/ftell.c: New file.
58750         * modules/ftell: New file.
58751         * m4/ftell.m4: New file.
58752         * doc/functions/ftell.texi: Update.
58753         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
58754         REPLACE_FTELL.
58755         * lib/stdio_.h (rpl_ftell): New declaration.
58756         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
58757         REPLACE_FTELL.
58758
58759 2007-05-28  Eric Blake  <ebb9@byu.net>
58760
58761         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
58762
58763 2007-05-28  Bruno Haible  <bruno@clisp.org>
58764
58765         * modules/fseek-tests: New file.
58766         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
58767         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
58768
58769         * lib/fseek.c: New file.
58770         * modules/fseek: New file.
58771         * m4/fseek.m4: New file.
58772         * doc/functions/fseek.texi: Update.
58773         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
58774         REPLACE_FSEEK.
58775         * lib/stdio_.h (rpl_fseek): New declaration.
58776         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
58777         REPLACE_FSEEK.
58778
58779 2007-05-28  Bruno Haible  <bruno@clisp.org>
58780
58781         * lib/stdio_.h (fflush): More comments.
58782
58783 2007-05-28  Bruno Haible  <bruno@clisp.org>
58784
58785         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
58786         runtime test.
58787
58788 2007-05-28  Eric Blake  <ebb9@byu.net>
58789
58790         Improve lseek module.
58791         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
58792         * lib/unistd_.h (lseek): Scale back link warning message.
58793         * tests/test-lseek.c: Beef up test.
58794         * tests/test-lseek.sh: Exercise more facets of lseek.
58795         Reported by Bruno Haible.
58796
58797 2007-05-28  Bruno Haible  <bruno@clisp.org>
58798
58799         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
58800         to define.
58801
58802 2007-05-27  Bruno Haible  <bruno@clisp.org>
58803
58804         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
58805
58806 2007-05-27  Bruno Haible  <bruno@clisp.org>
58807
58808         * modules/openmp: New file.
58809         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
58810         Noah Misch.
58811
58812 2007-05-26  Bruno Haible  <bruno@clisp.org>
58813
58814         * modules/chdir-long (Depends-on): Add fchdir.
58815         * modules/chdir-safer (Depends-on): Likewise.
58816         * modules/fts (Depends-on): Likewise.
58817         * modules/fts-lgpl (Depends-on): Likewise.
58818         * modules/openat (Depends-on): Likewise.
58819         * modules/savewd (Depends-on): Likewise.
58820
58821 2007-05-24  Eric Blake  <ebb9@byu.net>
58822
58823         Fix lseek on mingw.
58824         * modules/lseek: New module.
58825         * m4/lseek.m4: New file.
58826         * lib/lseek.c: New file.
58827         * modules/lseek-tests: New file.
58828         * tests/test-lseek.c: New file.
58829         * tests/test-lseek.sh: New file.
58830         * MODULES.html.sh: Document lseek module.
58831         * modules/fflush (Depends-on): Add lseek, fseeko.
58832         * modules/fseeko (Depends-on): Likewise.
58833         * modules/ftello (Depends-on): Likewise.
58834         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
58835         broken.
58836         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
58837         broken.
58838         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
58839         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
58840         * lib/ftello.c (rpl_ftello): Likewise.
58841         * tests/test-fseeko.c (main): Test this.
58842         * tests/test-fseeko.sh: Likewise.
58843         * tests/test-ftello.c (main): Likewise.
58844         * tests/test-ftello.sh: Likewise.
58845         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
58846         implies replacing fseek.
58847         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
58848         HAVE_FTELLO.
58849         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
58850         * modules/unistd (Makefile.am): Likewise.
58851         * lib/unistd_.h (lseek): Declare a replacement.
58852         * doc/functions/lseek.texi (lseek): Document this fix.
58853         * doc/functions/fseek.texi (fseek): Likewise.
58854         * doc/functions/ftell.texi (ftell): Likewise.
58855
58856 2007-05-24  Bruno Haible  <bruno@clisp.org>
58857
58858         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
58859         in the printed representation of a NaN.
58860         * tests/test-vasprintf-posix.c (test_function): Likewise.
58861         * tests/test-snprintf-posix.h (test_function): Likewise.
58862         * tests/test-sprintf-posix.h (test_function): Likewise.
58863         Reported by Eric Blake.
58864
58865 2007-05-23  Eric Blake  <ebb9@byu.net>
58866
58867         Fix fseeko/ftello on cygwin 1.5.24.
58868         * doc/functions/fseeko.texi (fseeko): Document the fix.
58869         * doc/functions/ftello.texi (ftello): Document the fix.
58870         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
58871         * doc/functions/stdout.text (stdout): New file.
58872         * doc/functions/stderr.text (stderr): New file.
58873         * doc/gnulib.texi (Function Substitutes): Use new files.
58874         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
58875         prior to 1.7.0.
58876         * tests/test-ftello.c (main): Likewise for ftello.
58877         * tests/test-fseeko.sh: New file.
58878         * tests/test-ftello.sh: New file.
58879         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
58880         with seekable stdin.
58881         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
58882         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
58883         (gl_REPLACE_FSEEKO): New macro.
58884         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
58885         * modules/fseeko (Files): Distribute fseeko.c.
58886         * modules/ftello (Files): Distribute ftello.c.
58887         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
58888         mode.
58889         * lib/ftello.c (rpl_ftello): New file.
58890         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
58891         fseeko, ftello.
58892         (gl_STDIN_LARGE_OFFSET): New macro.
58893         * modules/stdio (Makefile.am): Perform the replacement.
58894         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
58895
58896 2007-05-23  Bruno Haible  <bruno@clisp.org>
58897
58898         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
58899         GNULIB_POSIXCHECK is defined.
58900
58901 2007-05-21  Bruno Haible  <bruno@clisp.org>
58902
58903         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
58904         Check also the output for NaN arguments. When cross-compiling, guess
58905         no on IRIX.
58906         * lib/vasnprintf.c: Update comments.
58907         * tests/test-vasnprintf-posix.c (strisnan): New function.
58908         (test_function): Use it.
58909         * tests/test-vasprintf-posix.c (strisnan): New function.
58910         (test_function): Use it.
58911         * tests/test-snprintf-posix.h (strisnan): New function.
58912         (test_function): Use it.
58913         * tests/test-sprintf-posix.h (strisnan): New function.
58914         (test_function): Use it.
58915         Reported by Eric Blake.
58916
58917 2007-05-20  Bruno Haible  <bruno@clisp.org>
58918
58919         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
58920         numbers that fails on BeOS.
58921         * doc/functions/frexpl.texi: Update.
58922
58923 2007-05-20  Jim Meyering  <jim@meyering.net>
58924
58925         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
58926         forced upon us by glibc-2.6.
58927
58928 2007-05-20  Bruno Haible  <bruno@clisp.org>
58929
58930         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
58931         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
58932         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
58933         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
58934         NEED_PRINTF_INFINITE.
58935         (is_infinitel): New function.
58936         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
58937         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
58938         gl_PREREQ_VASNPRINTF_INFINITE.
58939         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
58940         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
58941         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
58942         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
58943         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
58944         gl_PREREQ_VASNPRINTF_INFINITE.
58945         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
58946         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
58947         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
58948         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
58949         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
58950         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
58951         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
58952         * doc/functions/fprintf.texi: Update.
58953         * doc/functions/printf.texi: Update.
58954         * doc/functions/snprintf.texi: Update.
58955         * doc/functions/sprintf.texi: Update.
58956         * doc/functions/vfprintf.texi: Update.
58957         * doc/functions/vprintf.texi: Update.
58958         * doc/functions/vsnprintf.texi: Update.
58959         * doc/functions/vsprintf.texi: Update.
58960
58961 2007-05-20  Bruno Haible  <bruno@clisp.org>
58962
58963         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
58964         was not found in libc.
58965         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
58966
58967 2007-05-20  Bruno Haible  <bruno@clisp.org>
58968
58969         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
58970         printed as "-nan" instead of "nan".
58971         * tests/test-vasprintf-posix.c (test_function): Likewise.
58972         * tests/test-snprintf-posix.h (test_function): Likewise.
58973         * tests/test-sprintf-posix.h (test_function): Likewise.
58974         Needed for HP-UX 11.
58975
58976 2007-05-20  Jim Meyering  <jim@meyering.net>
58977
58978         Fix buggy test for the fchownat-deref bug.
58979         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
58980         symlink required for the run-test.  Without it, this test would
58981         always declare that fchownat doesn't work, and client code would
58982         unnecessarily use the replacement function with fixed libc.
58983         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
58984         Reported by Greg Schafer.
58985
58986 2007-05-19  Bruno Haible  <bruno@clisp.org>
58987
58988         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
58989         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
58990         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
58991         Needed for IRIX 6.5 and Solaris 2.5.1.
58992
58993 2007-05-19  Bruno Haible  <bruno@clisp.org>
58994
58995         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
58996         (test_function): Skip tests involving -0.0 on platforms where
58997         -0.0 = 0.0.
58998         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
58999         (test_function): Skip tests involving -0.0 on platforms where
59000         -0.0 = 0.0.
59001         * tests/test-snprintf-posix.h (have_minus_zero): New function.
59002         (test_function): Skip tests involving -0.0 on platforms where
59003         -0.0 = 0.0.
59004         * tests/test-sprintf-posix.h (have_minus_zero): New function.
59005         (test_function): Skip tests involving -0.0 on platforms where
59006         -0.0 = 0.0.
59007         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
59008         tests.
59009         * tests/test-printf-posix.h (test_function): Likewise.
59010         * tests/test-printf-posix.output: Remove all -0.0 related results.
59011         Needed for IRIX 6.5.
59012
59013 2007-05-19  Bruno Haible  <bruno@clisp.org>
59014
59015         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
59016         printed as "nan0x7fffffff" instead of "nan".
59017         * tests/test-vasprintf-posix.c (test_function): Likewise.
59018         * tests/test-snprintf-posix.h (test_function): Likewise.
59019         * tests/test-sprintf-posix.h (test_function): Likewise.
59020         * tests/test-fprintf-posix.h (NaN): Remove macro.
59021         (test_function): Remove all NaN related tests.
59022         * tests/test-printf-posix.h (NaN): Remove macro.
59023         (test_function): Remove all NaN related tests.
59024         * tests/test-printf-posix.output: Remove all NaN related results.
59025         Needed for IRIX 6.5.
59026
59027 2007-05-19  Bruno Haible  <bruno@clisp.org>
59028
59029         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
59030         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
59031
59032 2007-05-19  Bruno Haible  <bruno@clisp.org>
59033
59034         * lib/float_.h: New file.
59035         * m4/float_h.m4: New file.
59036         * modules/float: New file.
59037         * modules/isnanl (Dependencies): Add float.
59038         * modules/isnanl-nolibm (Dependencies): Likewise.
59039         * modules/mathl (Dependencies): Likewise.
59040         * modules/printf-frexpl (Dependencies): Likewise.
59041         * modules/signbit (Dependencies): Likewise.
59042         * modules/vasnprintf (Dependencies): Likewise.
59043         * doc/headers/float.texi: Update.
59044
59045 2007-05-19  Jim Meyering  <jim@meyering.net>
59046
59047         * lib/utimens.c (gl_futimens): Rename from futimens,
59048         now that glibc-2.6 declares futimens.
59049         * lib/utimens.h: Likewise.
59050
59051 2007-05-19  Bruno Haible  <bruno@clisp.org>
59052
59053         Avoid test failures on mingw.
59054         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
59055         * tests/test-printf-posix.sh: Likewise.
59056         * tests/test-vfprintf-posix.sh: Likewise.
59057         * tests/test-vprintf-posix.sh: Likewise.
59058
59059 2007-05-19  Bruno Haible  <bruno@clisp.org>
59060
59061         Fix *printf result for NaN, Inf, -0.0 on mingw.
59062         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
59063         * lib/vasnprintf.c: Include math.h and isnan.h.
59064         (is_infinite_or_zero): New function.
59065         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
59066         values in the %f, %F, %e, %E, %g, %G directives.
59067         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
59068         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
59069         gl_PRINTF_INFINITE and test its result. Invoke
59070         gl_PREREQ_VASNPRINTF_INFINITE.
59071         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
59072         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
59073         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
59074         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
59075         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
59076         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
59077         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
59078         * doc/functions/fprintf.texi: Update.
59079         * doc/functions/printf.texi: Update.
59080         * doc/functions/snprintf.texi: Update.
59081         * doc/functions/sprintf.texi: Update.
59082         * doc/functions/vfprintf.texi: Update.
59083         * doc/functions/vprintf.texi: Update.
59084         * doc/functions/vsnprintf.texi: Update.
59085         * doc/functions/vsprintf.texi: Update.
59086
59087 2007-05-19  Bruno Haible  <bruno@clisp.org>
59088
59089         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
59090         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
59091         Instead of multiplying with 10^k, set extra_zeroes to k.
59092         (scale10_round_long_double): Remove function.
59093
59094 2007-05-18  Bruno Haible  <bruno@clisp.org>
59095
59096         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
59097         introduced on 2007-05-06.
59098
59099 2007-05-18  Bruno Haible  <bruno@clisp.org>
59100
59101         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
59102         %g directives.
59103         * tests/test-vasprintf-posix.c (test_function): Likewise.
59104         * tests/test-snprintf-posix.h (test_function): Likewise.
59105         * tests/test-sprintf-posix.h (test_function): Likewise.
59106
59107 2007-05-18  Bruno Haible  <bruno@clisp.org>
59108
59109         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
59110         (strmatch): New function.
59111         (test_function): Test the %f directive on numbers of various exponents.
59112         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
59113         (strmatch): New function.
59114         (test_function): Test the %f directive on numbers of various exponents.
59115         * tests/test-snprintf-posix.h (strmatch): New function.
59116         (test_function): Test the %f directive on numbers of various exponents.
59117         * tests/test-sprintf-posix.h (strmatch): New function.
59118         (test_function): Test the %f directive on numbers of various exponents.
59119         * tests/test-snprintf-posix.c (SIZEOF): New macro.
59120         * tests/test-sprintf-posix.c (SIZEOF): New macro.
59121         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
59122         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
59123
59124 2007-05-18  Bruno Haible  <bruno@clisp.org>
59125
59126         Add support for 'long double' number output.
59127         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
59128         * lib/vasnprintf.c: Include math.h and float+.h.
59129         (mp_limb_t): New type.
59130         (GMP_LIMB_BITS): New macro.
59131         (mp_twolimb_t): New type.
59132         (GMP_TWOLIMB_BITS): New macro.
59133         (mpn_t): New type.
59134         (multiply, divide, convert_to_decimal, decode_long_double,
59135         scale10_round_long_double, scale10_round_decimal_long_double,
59136         floorlog10l): New functions.
59137         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
59138         for the %f, %F, %e, %E, %g, %G directives.
59139         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
59140         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
59141         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
59142         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
59143         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
59144         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
59145         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
59146         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
59147         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
59148         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
59149         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
59150         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
59151         * modules/snprintf-posix (Depends-on): Likewise.
59152         * modules/sprintf-posix (Depends-on): Likewise.
59153         * modules/vasnprintf-posix (Depends-on): Likewise.
59154         * modules/vasprintf-posix (Depends-on): Likewise.
59155         * modules/vfprintf-posix (Depends-on): Likewise.
59156         * modules/vsnprintf-posix (Depends-on): Likewise.
59157         * modules/vsprintf-posix (Depends-on): Likewise.
59158         * modules/vasnprintf (Files): Add lib/float+.h.
59159         * doc/functions/fprintf.texi: Update.
59160         * doc/functions/printf.texi: Update.
59161         * doc/functions/snprintf.texi: Update.
59162         * doc/functions/sprintf.texi: Update.
59163         * doc/functions/vfprintf.texi: Update.
59164         * doc/functions/vprintf.texi: Update.
59165         * doc/functions/vsnprintf.texi: Update.
59166         * doc/functions/vsprintf.texi: Update.
59167
59168 2007-05-18  Bruno Haible  <bruno@clisp.org>
59169
59170         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
59171
59172 2007-05-18  Bruno Haible  <bruno@clisp.org>
59173
59174         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
59175         for printing 64-bit integers. Needed for mingw.
59176
59177 2007-05-18  Bruno Haible  <bruno@clisp.org>
59178
59179         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
59180         gl_FUNC_FREXPL_WORKS.
59181         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
59182
59183 2007-05-18  Bruno Haible  <bruno@clisp.org>
59184
59185         * modules/frexpl-nolibm-tests: New file.
59186
59187         * modules/frexpl-nolibm: New file.
59188         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
59189
59190 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
59191
59192         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
59193         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
59194         GCC 4.2, which otherwise issues a lot of warnings.
59195         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
59196         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
59197         Likewise.
59198         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
59199         * modules/iconv_open (iconv.h): Likewise.
59200         * modules/locale (locale.h): Likewise.
59201         * modules/netinet_in (netinet/in.h): Likewise.
59202         * modules/sys_select (sys_select.h): Likewise.
59203         * modules/sys_socket (sys/socket.h): Likewise.
59204         * modules/sys_stat (sys/stat.h): Likewise.
59205         * modules/sysexits (sysexits.h): Likewise.
59206         * modules/unistd (unistd.h): Likewise.
59207
59208 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59209
59210         * modules/closein-tests (Makefile.am): Distribute
59211         `test-closein.sh'.
59212
59213 2007-05-17  Bruno Haible  <bruno@clisp.org>
59214
59215         * tests/test-printf-posix.output: Renamed from
59216         tests/test-fprintf-posix.out.
59217         * modules/fprintf-posix-tests: Update.
59218         * modules/printf-posix-tests: Update.
59219         * modules/vfprintf-posix-tests: Update.
59220         * modules/vprintf-posix-tests: Update.
59221         * tests/test-fprintf-posix.sh: Update.
59222         * tests/test-printf-posix.sh: Update.
59223         * tests/test-vfprintf-posix.sh: Update.
59224         * tests/test-vprintf-posix.sh: Update.
59225         Reported by Ralf Wildenhues.
59226
59227 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
59228
59229         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
59230         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
59231         GCC 4.2, which otherwise issues a lot of warnings.
59232         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
59233         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
59234         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
59235         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
59236         it should no longer be needed.
59237         * lib/string_.h: Likewise.
59238         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
59239         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
59240         * modules/inttypes (inttypes.h): Likewise.
59241         * modules/math (math.h): Likewise.
59242         * modules/search (search.h): Likewise.
59243         * modules/signal (signal.h): Likewise.
59244         * modules/stdint (stdint.h): Likewise.
59245         * modules/stdio (stdio.h): Likewise.
59246         * modules/stdlib (stdlib.h): Likewise.
59247         * modules/string (string.h): Likewise.
59248         * modules/sys_time (sys/time.h): Likewise.
59249         * modules/time (time.h): Likewise.
59250         * modules/wchar (wchar.h): Likewise.
59251         * modules/wctype (wtype.h): Likewise.
59252
59253 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
59254
59255         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
59256
59257 2007-05-13  Bruno Haible  <bruno@clisp.org>
59258
59259         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
59260         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
59261         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
59262         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
59263         (gl_PREREQ_STRTOK_R): Don't require it here.
59264
59265 2007-05-13  Bruno Haible  <bruno@clisp.org>
59266
59267         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
59268         when used in C++ mode.
59269
59270 2007-05-12  Bruno Haible  <bruno@clisp.org>
59271
59272         * lib/linebuffer.h: Tweak doc.
59273         * lib/linebuffer.c: Likewise.
59274
59275 2007-05-12  James Youngman  <jay@gnu.org>
59276
59277         * lib/linebuffer.c (readlinebuffer_delim): New function,
59278         like readlinebuffer, but use a caller-specified delimiter.
59279         (readlinebuffer): Just call readlinebuffer_delim with '\n'
59280         as the delimiter.
59281         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
59282
59283 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
59284
59285         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
59286         * modules/openat (Files): Remove openat-die.c.
59287         (Depends-on): Add openat-die.
59288         * modules/openat-die: New module.
59289
59290 2007-05-06  Bruno Haible  <bruno@clisp.org>
59291
59292         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
59293         Update with info about Cygwin.
59294         * doc/functions/fprintf.texi: Update.
59295         * doc/functions/printf.texi: Update.
59296         * doc/functions/snprintf.texi: Update.
59297         * doc/functions/sprintf.texi: Update.
59298         * doc/functions/vfprintf.texi: Update.
59299         * doc/functions/vprintf.texi: Update.
59300         * doc/functions/vsnprintf.texi: Update.
59301         * doc/functions/vsprintf.texi: Update.
59302         Reported by Eric Blake.
59303
59304 2007-05-06  Bruno Haible  <bruno@clisp.org>
59305
59306         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
59307         padding ourselves for the floating-point directives.
59308         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
59309         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
59310         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
59311         gl_PRINTF_FLAG_ZERO and test its result. Invoke
59312         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
59313         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
59314         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
59315         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
59316         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
59317         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
59318         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
59319         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
59320         * tests/test-snprintf-posix.h (test_function): Also check the width
59321         and some flags in the %f directive.
59322         * tests/test-sprintf-posix.h (test_function): Likewise.
59323         * tests/test-vasnprintf-posix.c (test_function): Likewise.
59324         * tests/test-vasprintf-posix.c (test_function): Likewise.
59325         * doc/functions/fprintf.texi: Update.
59326         * doc/functions/printf.texi: Update.
59327         * doc/functions/snprintf.texi: Update.
59328         * doc/functions/sprintf.texi: Update.
59329         * doc/functions/vfprintf.texi: Update.
59330         * doc/functions/vprintf.texi: Update.
59331         * doc/functions/vsnprintf.texi: Update.
59332         * doc/functions/vsprintf.texi: Update.
59333
59334 2007-05-06  Bruno Haible  <bruno@clisp.org>
59335
59336         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
59337         pass the ' flag character to sprintf or snprintf.
59338         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
59339         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
59340         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
59341         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
59342         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
59343         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
59344         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
59345         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
59346         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
59347         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
59348         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
59349         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
59350         * tests/test-snprintf-posix.h (test_function): Also check the grouping
59351         flag.
59352         * tests/test-sprintf-posix.h (test_function): Likewise.
59353         * tests/test-vasnprintf-posix.c (test_function): Likewise.
59354         * tests/test-vasprintf-posix.c (test_function): Likewise.
59355         * doc/functions/fprintf.texi: Update.
59356         * doc/functions/printf.texi: Update.
59357         * doc/functions/snprintf.texi: Update.
59358         * doc/functions/sprintf.texi: Update.
59359         * doc/functions/vfprintf.texi: Update.
59360         * doc/functions/vprintf.texi: Update.
59361         * doc/functions/vsnprintf.texi: Update.
59362         * doc/functions/vsprintf.texi: Update.
59363
59364 2007-05-01  Bruno Haible  <bruno@clisp.org>
59365
59366         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
59367
59368 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
59369
59370         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
59371         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
59372
59373 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
59374
59375         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
59376         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
59377         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
59378
59379 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
59380
59381         * lib/argp-help.c (struct hol_entry): New member `ord'.
59382         (HOL_ENTRY_PTRCMP): Use ord for comparison
59383         (hol_sort): Initialize ord.
59384
59385 2007-05-01  Bruno Haible  <bruno@clisp.org>
59386
59387         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
59388         Reported by Eric Blake.
59389         * doc/gnulib.texi (Function Substitutes): Update.
59390
59391 2007-05-01  Bruno Haible  <bruno@clisp.org>
59392
59393         * doc/functions.texi: Remove file, now redundant through
59394         doc/functions/*.texi.
59395
59396 2007-05-01  Bruno Haible  <bruno@clisp.org>
59397
59398         * modules/argp (Depends-on): Add sleep.
59399
59400 2007-05-01  Bruno Haible  <bruno@clisp.org>
59401
59402         * modules/sleep-tests: New file.
59403         * tests/test-sleep.c: New file.
59404
59405         * modules/sleep: New file.
59406         * lib/sleep.c: New file.
59407         * m4/sleep.m4: New file.
59408         * lib/unistd_.h (sleep): New declaration.
59409         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
59410         HAVE_SLEEP.
59411         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
59412         * doc/functions/sleep.texi: Document the sleep module.
59413
59414 2007-05-01  Bruno Haible  <bruno@clisp.org>
59415
59416         * lib/sigprocmask.h: Remove file.
59417         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
59418         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
59419         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
59420         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
59421         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
59422         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
59423         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
59424         HAVE_SIGSET_T as a shell variable.
59425         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
59426         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
59427         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
59428         (Depends-on): Add signal. Remove verify.
59429         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
59430         (Include): Mention <signal.h> instead of sigprocmask.h.
59431         * NEWS: Mention the change.
59432         * lib/fatal-signal.c: Don't include sigprocmask.h.
59433
59434 2007-05-01  Bruno Haible  <bruno@clisp.org>
59435
59436         * modules/signal: New file.
59437         * lib/signal_.h: New file.
59438         * m4/signal_h.m4: New file.
59439
59440 2007-05-01  Bruno Haible  <bruno@clisp.org>
59441
59442         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
59443         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
59444         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
59445         HAVE_WCTYPE_CTMP_BUG into wctype.h.
59446
59447 2007-05-01  Bruno Haible  <bruno@clisp.org>
59448
59449         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
59450         configure time.
59451         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
59452         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
59453         * modules/sys_stat (Makefile.am): Substitute their values into
59454         sys/stat.h.
59455
59456 2007-05-01  Bruno Haible  <bruno@clisp.org>
59457
59458         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
59459         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
59460         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
59461
59462 2007-05-01  Bruno Haible  <bruno@clisp.org>
59463
59464         * doc/header/assert.texi: Undo last change: don't mention the gnulib
59465         'assert' module here.
59466
59467 2007-05-01  Bruno Haible  <bruno@clisp.org>
59468
59469         * doc/functions/*.texi: New files.
59470         * doc/functions/google-ranking.txt: New file.
59471         * doc/gnulib.texi (Function Substitutes): New chapter.
59472         (ctime, inet_ntoa): Remove sections.
59473         * doc/ctime.texi: Remove file.
59474         * doc/inet_ntoa.texi: Remove file.
59475         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
59476         dependencies.
59477         (%.info): New rule, specifying a --reference-limit.
59478
59479 2007-05-01  Bruno Haible  <bruno@clisp.org>
59480
59481         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
59482
59483 2007-05-01  Bruno Haible  <bruno@clisp.org>
59484
59485         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
59486         the portability of 'mkdir' to mingw systems.
59487
59488 2007-05-01  Bruno Haible  <bruno@clisp.org>
59489
59490         * doc/headers/google-ranking.txt: New file.
59491
59492 2007-04-30  Eric Blake  <ebb9@byu.net>
59493
59494         Prefer fseeko to fseek.
59495         * modules/getpass (Depends-on): Add fseeko.
59496         * lib/getpass.c (getpass): Use fseeko, not fseek.
59497
59498 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
59499
59500         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
59501         assumes the sorting is stable, while most qsort implementations
59502         are not.  Use argument addresses to ensure they never compare as
59503         equal.
59504
59505         * tests/test-argp-2.sh (usage-indent test): Fix output
59506         (func_compare): Restore diff options
59507         * tests/test-argp.c: Restore #include "progname.h"
59508
59509 2007-04-29  Bruno Haible  <bruno@clisp.org>
59510
59511         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
59512         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
59513         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
59514         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
59515         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
59516         (configure.ac): Define CHECK_SNPRINTF_POSIX.
59517         (TESTS, check_PROGRAMS): Add test-snprintf.
59518         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
59519         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
59520         (TESTS, check_PROGRAMS): Add test-vsnprintf.
59521         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
59522         assertions that fail on HP-UX, OSF/1, or IRIX.
59523         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
59524
59525 2007-04-29  Bruno Haible  <bruno@clisp.org>
59526
59527         * MODULES.html.sh (posix_functions): Remove 'contents'.
59528
59529 2007-04-29  Karl Berry  <karl@gnu.org>
59530
59531         * config/srclist.txt (gendocs_template_min): new entry.
59532
59533 2007-04-29  Bruno Haible  <bruno@clisp.org>
59534
59535         Work around fpurge bug on BSD systems.
59536         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
59537         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
59538         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
59539         fpurge to rpl_fpurge if the system already has this function.
59540         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
59541         the case where the system already has this function. Correct invariants
59542         on BSD systems.
59543         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
59544         BSD systems.
59545
59546 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
59547
59548         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
59549         proposed by Sven Verdoolaege.
59550
59551         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
59552         options.
59553         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
59554         (usage and help tests): Update
59555
59556 2007-04-29  Bruno Haible  <bruno@clisp.org>
59557
59558         * tests/test-fflush.c (main): Use a file of size 17, not 10.
59559         Print more information in case of failure. Disable a test on BeOS.
59560
59561 2007-04-29  Bruno Haible  <bruno@clisp.org>
59562
59563         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
59564         This helps debugging on systems on which no gdb is available.
59565
59566 2007-04-29  Bruno Haible  <bruno@clisp.org>
59567
59568         * lib/freading.h: Improve comments.
59569         * lib/fwriting.h: Likewise.
59570         * tests/test-freading.c (main): Don't check freading immediately after
59571         repositioning. Needed for glibc.
59572
59573 2007-04-29  Bruno Haible  <bruno@clisp.org>
59574
59575         * lib/freading.c (freading): Trivial simplification.
59576
59577 2007-04-28  Bruno Haible  <bruno@clisp.org>
59578
59579         * tests/test-fwriting.c (main): Also test the interaction between
59580         fflush and fwriting.
59581         * modules/fwriting-tests (Depends-on): Add fflush.
59582
59583         * tests/test-freading.c (main): Also test the interaction between
59584         fflush and freading.
59585         * modules/freading-tests (Depends-on): Add fflush.
59586
59587 2007-04-28  Bruno Haible  <bruno@clisp.org>
59588
59589         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
59590         fseeko and ftello.
59591         Suggested by Eric Blake.
59592
59593 2007-04-28  Jim Meyering  <jim@meyering.net>
59594
59595         Avoid false-negative in gl_STDINT_H's C99 conformance test.
59596         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
59597         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
59598
59599 2007-04-27  Eric Blake  <ebb9@byu.net>
59600
59601         * doc/headers/assert.texi (assert.h): Document assert module use.
59602
59603 2007-04-27  Bruno Haible  <bruno@clisp.org>
59604
59605         * doc/headers/*.texi: New files.
59606         * doc/gnulib.texi (Header File Substitutes): New chapter.
59607         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
59608         dependencies.
59609         (standards.info ,standards.html, standards.dvi): Update dependencies.
59610         (mostlyclean, clean): New targets.
59611
59612 2007-04-27  Bruno Haible  <bruno@clisp.org>
59613
59614         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
59615         * modules/sysexits (Files, Makefile.am): Update.
59616
59617         * lib/sys_socket_.h: Renamed from lib/socket_.h.
59618         * modules/sys_socket (Files, Makefile.am): Update.
59619
59620         * lib/sys_stat_.h: Renamed from lib/stat_.h.
59621         * modules/sys_stat (Files, Makefile.am): Update.
59622
59623 2007-04-27  Eric Blake  <ebb9@byu.net>
59624
59625         * lib/freading.h: Improve comments.
59626         * lib/fwriting.h: Likewise.
59627         * lib/fflush.c: Likewise.
59628
59629         Fix closein for mingw.
59630         * modules/closein-tests: Add tests for closein.
59631         * tests/test-closein.c: New file.
59632         * tests/test-closein.sh: Likewise.
59633         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
59634         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
59635
59636 2007-04-27  Bruno Haible  <bruno@clisp.org>
59637
59638         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
59639         version is < 6.
59640         * lib/math_.h [__DECC]: Likewise.
59641         * lib/stdio_.h [__DECC]: Likewise.
59642         * lib/stdlib_.h [__DECC]: Likewise.
59643         * lib/string_.h [__DECC]: Likewise.
59644         * lib/time_.h [__DECC]: Likewise.
59645         * lib/wchar_.h [__DECC]: Likewise.
59646         * lib/wctype_.h [__DECC]: Likewise.
59647
59648 2007-04-27  Bruno Haible  <bruno@clisp.org>
59649
59650         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
59651
59652 2007-04-27  Bruno Haible  <bruno@clisp.org>
59653
59654         * lib/fflush.c: Add comments.
59655         * modules/fpurge-tests (Depends-on): Add fflush.
59656         * modules/freadable-tests (Depends-on): Likewise.
59657         * modules/fwritable-tests (Depends-on): Likewise.
59658
59659 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
59660
59661         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
59662         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
59663         Report by Bruno Haible <bruno@clisp.org>.
59664
59665 2007-04-26  Eric Blake  <ebb9@byu.net>
59666
59667         Fix fflush on mingw.
59668         * modules/fflush (Depends-on): Add freading.
59669         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
59670         but unread data.
59671
59672 2007-04-26  Eric Blake  <ebb9@byu.net>
59673         and Bruno Haible  <bruno@clisp.org>
59674
59675         Implement freading and fwriting.
59676         * lib/freading.c: New file.
59677         * lib/freading.h: Likewise.
59678         * m4/freading.m4: Likewise.
59679         * modules/freading: Likewise.
59680         * modules/freading-tests: Likewise.
59681         * tests/test-freading.c: Likewise.
59682         * lib/fwriting.c: New file.
59683         * lib/fwriting.h: Likewise.
59684         * m4/fwriting.m4: Likewise.
59685         * modules/fwriting: Likewise.
59686         * modules/fwriting-tests: Likewise.
59687         * tests/test-fwriting.c: Likewise.
59688         * MODULES.html.sh (File stream based Input/Output): Mention them.
59689
59690 2007-04-26  Bruno Haible  <bruno@clisp.org>
59691
59692         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
59693         'long' when we assume it.
59694         Suggested by Eric Blake.
59695
59696 2007-04-26  Bruno Haible  <bruno@clisp.org>
59697
59698         Ensure fseeko, ftello are declared on glibc systems.
59699         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
59700         * modules/fseeko (configure.ac-early): Likewise.
59701         * modules/ftello (configure.ac-early): Likewise.
59702         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
59703         AC_FUNC_FSEEKO for this.
59704         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
59705         (gl_CHECK_FSEEKO): Remove macro.
59706
59707 2007-04-26  Bruno Haible  <bruno@clisp.org>
59708
59709         * tests/test-fflush.c (main): Also check the ftell result after
59710         fflush and fseek/fseeko.
59711         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
59712         file descriptor position cache in the stream.
59713         * lib/fseeko.c (rpl_fseeko): Likewise.
59714
59715 2007-04-26  Bruno Haible  <bruno@clisp.org>
59716
59717         * modules/fflush-tests (Depends-on): Add fseeko.
59718
59719 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
59720             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59721
59722         * lib/argz_.h: ensure error_t definition is obtained in same
59723         mechanism system argz.h would have.
59724         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
59725         argz facilities are known bad.  Err on the side of caution if
59726         cross-compiling.
59727
59728 2007-04-25  Eric Blake  <ebb9@byu.net>
59729
59730         * lib/fpurge.c (includes): Use stdlib.h for free.
59731         * tests/test-fflush.c (main): Also test fflush-fseeko.
59732
59733 2007-04-25  Bruno Haible  <bruno@clisp.org>
59734
59735         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
59736         * lib/fseeko.c: New file.
59737         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
59738         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
59739         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
59740         gl_FUNC_FSEEKO.
59741         (gl_FUNC_FSEEKO): Invoke it.
59742         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
59743         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
59744         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
59745
59746 2007-04-25  Bruno Haible  <bruno@clisp.org>
59747
59748         * modules/fflush (Depends-on): Add ftello.
59749
59750 2007-04-25  Bruno Haible  <bruno@clisp.org>
59751
59752         * modules/ftello-tests: New file.
59753         * tests/test-ftello.c: New file.
59754
59755         * modules/ftello: New file.
59756         * m4/ftello.m4: New file.
59757         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
59758         HAVE_FTELLO.
59759         * lib/stdio_.h (ftello): New declaration.
59760         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
59761         HAVE_FTELLO.
59762
59763 2007-04-25  Bruno Haible  <bruno@clisp.org>
59764
59765         * modules/fseeko-tests: New file.
59766         * tests/test-fseeko.c: New file.
59767
59768         * modules/fseeko: New file.
59769         * m4/fseeko.m4: New file.
59770         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
59771         HAVE_FSEEKO.
59772         * lib/stdio_.h (fseeko): New declaration.
59773         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
59774         HAVE_FSEEKO.
59775
59776 2007-04-25  Bruno Haible  <bruno@clisp.org>
59777
59778         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
59779
59780 2007-04-25  Bruno Haible  <bruno@clisp.org>
59781
59782         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
59783         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
59784         * tests/test-unistd.c: Likewise.
59785         * tests/test-fcntl.c: Likewise.
59786
59787 2007-04-23  Eric Blake  <ebb9@byu.net>
59788
59789         * lib/fflush.c: Fix missing include.
59790         Reported by Bruno Haible.
59791
59792 2007-04-23  Bruno Haible  <bruno@clisp.org>
59793
59794         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
59795         Reported by Eric Blake.
59796
59797 2007-04-23  Bruno Haible  <bruno@clisp.org>
59798
59799         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
59800
59801 2007-04-23  Bruno Haible  <bruno@clisp.org>
59802
59803         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
59804
59805 2007-04-23  Bruno Haible  <bruno@clisp.org>
59806
59807         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
59808         Needed on HP-UX 11.
59809
59810 2007-04-16  Eric Blake  <ebb9@byu.net>
59811
59812         Make fflush rely on fpurge.
59813         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
59814         open coding all variants.
59815         * modules/fflush (Depends-on): Add fpurge and unistd.
59816         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
59817         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
59818
59819         Fix --with-tests compilation on cygwin.
59820         * modules/argmatch-tests (Makefile.am): List gnulib library first
59821         in LDADD.
59822         * modules/argp-tests (Makefile.am): Likewise.
59823         * modules/array-list-tests (Makefile.am): Likewise.
59824         * modules/array-oset-tests (Makefile.am): Likewise.
59825         * modules/avltree-list-tests (Makefile.am): Likewise.
59826         * modules/avltree-oset-tests (Makefile.am): Likewise.
59827         * modules/avltreehash-list-tests (Makefile.am): Likewise.
59828         * modules/carray-list-tests (Makefile.am): Likewise.
59829         * modules/dirname-tests (Makefile.am): Likewise.
59830         * modules/frexp-tests (Makefile.am): Likewise.
59831         * modules/isnanl-tests (Makefile.am): Likewise.
59832         * modules/linked-list-tests (Makefile.am): Likewise.
59833         * modules/linkedhash-list-tests (Makefile.am): Likewise.
59834         * modules/lock-tests (Makefile.am): Likewise.
59835         * modules/rbtree-list-tests (Makefile.am): Likewise.
59836         * modules/rbtree-oset-tests (Makefile.am): Likewise.
59837         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
59838         * modules/tls-tests (Makefile.am): Likewise.
59839         * modules/tsearch-tests (Makefile.am): Likewise.
59840         * modules/xvasprintf-tests (Makefile.am): Likewise.
59841
59842         Fix fpurge for cygwin.
59843         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
59844         value.
59845         * modules/fpurge-tests (Depends-on): Clean up trash.
59846
59847 2007-04-16  Simon Josefsson  <simon@josefsson.org>
59848
59849         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
59850
59851         * m4/autobuild.m4: Re-indent.
59852
59853 2007-04-13  Bruno Haible  <bruno@clisp.org>
59854
59855         * modules/fpurge-tests: New file.
59856         * tests/test-fpurge.c: New file.
59857
59858         * modules/fpurge: New file.
59859         * lib/fpurge.h: New file.
59860         * lib/fpurge.c: New file.
59861         * m4/fpurge.m4: New file.
59862
59863 2007-04-13  Bruno Haible  <bruno@clisp.org>
59864
59865         * modules/fbufmode-tests: New file.
59866         * tests/test-fbufmode.c: New file.
59867
59868         * modules/fbufmode: New file.
59869         * lib/fbufmode.h: New file.
59870         * lib/fbufmode.c: New file.
59871         * m4/fbufmode.m4: New file.
59872
59873 2007-04-13  Bruno Haible  <bruno@clisp.org>
59874
59875         * modules/fwritable-tests: New file.
59876         * tests/test-fwritable.c: New file.
59877
59878         * modules/fwritable: New file.
59879         * lib/fwritable.h: New file.
59880         * lib/fwritable.c: New file.
59881         * m4/fwritable.m4: New file.
59882
59883 2007-04-13  Bruno Haible  <bruno@clisp.org>
59884
59885         * modules/freadable-tests: New file.
59886         * tests/test-freadable.c: New file.
59887
59888         * modules/freadable: New file.
59889         * lib/freadable.h: New file.
59890         * lib/freadable.c: New file.
59891         * m4/freadable.m4: New file.
59892
59893 2007-04-13  Bruno Haible  <bruno@clisp.org>
59894
59895         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
59896         MOSTLYCLEANFILES.
59897
59898 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
59899
59900         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
59901         gzip bootstrap.conf to avoid dragging in i18n machinery.
59902         (gnulib_tool_option): Use it.
59903
59904 2007-04-13  Bruno Haible  <bruno@clisp.org>
59905
59906         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
59907         %F directives.
59908         * tests/test-vasprintf-posix.c (test_function): Likewise.
59909         * tests/test-snprintf-posix.h (test_function): Likewise.
59910         * tests/test-sprintf-posix.h (test_function): Likewise.
59911         * tests/test-fprintf-posix.h (test_function): Likewise.
59912         * tests/test-printf-posix.h (test_function): Likewise.
59913         * tests/test-fprintf-posix.out: Likewise.
59914
59915 2007-04-13  Bruno Haible  <bruno@clisp.org>
59916
59917         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
59918         * modules/tls-tests (configure.ac): Likewise.
59919         Reported by Arto C. Nirkko <anirkko@insel.ch>.
59920
59921 2007-04-13  Bruno Haible  <bruno@clisp.org>
59922
59923         * lib/tls.c (glthread_tls_get): Fix return type.
59924         Patch by Arto C. Nirkko <anirkko@insel.ch>.
59925
59926 2007-04-12  Eric Blake  <ebb9@byu.net>
59927
59928         * modules/gettime (Depends-on): Remove gettime.
59929         Reported by Dmitry V. Levin.
59930
59931 2007-04-12  Bruno Haible  <bruno@clisp.org>
59932
59933         * modules/fflush (Include): Mention <stdio.h>.
59934         * modules/strtoimax (Include): Mention <inttypes.h>.
59935         * modules/strtoumax (Include): Likewise.
59936
59937 2007-04-12  Eric Blake  <ebb9@byu.net>
59938
59939         * .cvsignore: New file.
59940         * .gitignore: Likewise.
59941
59942 2007-04-12  Bruno Haible  <bruno@clisp.org>
59943
59944         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
59945         not before, since $(LDADD) often contains libgnu.a.
59946         * modules/striconv-tests (test_striconv_LDADD): Likewise.
59947         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
59948         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
59949         Needed on Cygwin.
59950
59951 2007-04-12  Eric Blake  <ebb9@byu.net>
59952
59953         Work around glibc's failure to flush stdin on fclose.
59954         * lib/closein.c (close_stdin): Flush stdin before closing.
59955
59956         Work around glibc's failure to reset seekable stdin on exit.
59957         * modules/closein: New module.
59958         * lib/closein.c: New file.
59959         * lib/closein.h: Likewise.
59960         * m4/closein.m4: Likewise.
59961         * MODULES.html.sh (File stream based Input/Output): Document it.
59962
59963 2007-04-12  Simon Josefsson  <simon@josefsson.org>
59964
59965         * gnulib-tool: Rename generated 'autobuild' script to
59966         'do-autobuild' in --create-megatestdir output.
59967
59968         * doc/gnulib.texi (Build robot for gnulib): Fix.
59969
59970 2007-04-12  Simon Josefsson  <simon@josefsson.org>
59971
59972         * modules/sysexits (Depends-on): Add absolute-header.
59973
59974 2007-04-12  Eric Blake  <ebb9@byu.net>
59975
59976         No need to preserve errno on success.
59977         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
59978         Reported by Bruno Haible.
59979
59980 2007-04-12  Simon Josefsson  <simon@josefsson.org>
59981
59982         * MODULES.html.sh (Support for maintaining and releasing
59983         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
59984
59985 2007-04-12  Simon Josefsson  <simon@josefsson.org>
59986
59987         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
59988
59989 2007-04-12  Simon Josefsson  <simon@josefsson.org>
59990
59991         * modules/autobuild: New module.
59992
59993         * m4/autobuild.m4: New file.
59994
59995 2007-04-11  Bruno Haible  <bruno@clisp.org>
59996
59997         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
59998         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
59999         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
60000         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
60001         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
60002         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
60003         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
60004         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
60005         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
60006         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
60007         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
60008         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
60009         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
60010         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
60011         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
60012         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
60013         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
60014         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
60015         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
60016         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
60017         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
60018         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
60019         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
60020         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
60021         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
60022         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
60023         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
60024         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
60025         Reported by Eric Blake.
60026
60027 2007-04-11  Bruno Haible  <bruno@clisp.org>
60028
60029         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
60030
60031 2007-04-10  Bruno Haible  <bruno@clisp.org>
60032
60033         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
60034         for NaN and Infinity. Needed on FreeBSD 6.1.
60035         * tests/test-vasnprintf-posix.c (test_function): Undo last change
60036         regarding results for "%010a" of Infinity and NaN.
60037         * tests/test-vasprintf-posix.c (test_function): Likewise.
60038         * tests/test-snprintf-posix.h (test_function): Likewise.
60039         * tests/test-sprintf-posix.h (test_function): Likewise.
60040         * tests/test-fprintf-posix.h (test_function): Likewise.
60041         * tests/test-printf-posix.h (test_function): Likewise.
60042         * tests/test-fprintf-posix.out: Likewise.
60043
60044 2007-04-10  Bruno Haible  <bruno@clisp.org>
60045
60046         * modules/locale-tests: New file.
60047         * tests/test-locale.c: New file.
60048
60049         * modules/locale: New file.
60050         * lib/locale_.h: New file.
60051         * m4/locale_h.m4: New file.
60052
60053 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
60054             Bruno Haible  <bruno@clisp.org>
60055
60056         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
60057         be determined, test for availability of the copysignf, copysign,
60058         copysignl functions.
60059         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
60060         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
60061         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
60062
60063 2007-04-09  Eric Blake  <ebb9@byu.net>
60064
60065         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
60066         * modules/stdio (Makefile.am): Support fflush.
60067         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
60068         * modules/fflush: New file.
60069         * lib/fflush.c: Likewise.
60070         * m4/fflush.m4: Likewise.
60071         * modules/fflush-tests: New test.
60072         * tests/test-fflush.c: Likewise.
60073         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
60074
60075 2007-04-06  Bruno Haible  <bruno@clisp.org>
60076
60077         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
60078         (VASNPRINTF): Use signbit for faster determination whether to print a
60079         minus sign.
60080         * modules/vasnprintf (Files): Remove lib/float+.h.
60081         * modules/fprintf-posix (Depends-on): Add signbit.
60082         * modules/snprintf-posix (Depends-on): Likewise.
60083         * modules/sprintf-posix (Depends-on): Likewise.
60084         * modules/vasnprintf-posix (Depends-on): Likewise.
60085         * modules/vasprintf-posix (Depends-on): Likewise.
60086         * modules/vfprintf-posix (Depends-on): Likewise.
60087         * modules/vsnprintf-posix (Depends-on): Likewise.
60088         * modules/vsprintf-posix (Depends-on): Likewise.
60089
60090 2007-04-06  Bruno Haible  <bruno@clisp.org>
60091
60092         * tests/test-frexp.c (main): Test also the sign bit of zero results.
60093         * tests/test-frexpl.c (main): Likewise.
60094         * tests/test-ldexpl.c (main): Likewise.
60095         * modules/frexp-tests (Depends-on): Add signbit.
60096         * modules/frexpl-tests (Depdends-on): Likewise.
60097         * modules/ldexpl-tests (Depdends-on): Likewise.
60098
60099 2007-04-06  Bruno Haible  <bruno@clisp.org>
60100
60101         * modules/signbit-tests: New file.
60102         * tests/test-signbit.c: New file.
60103
60104         * modules/signbit: New file.
60105         * lib/signbitf.c: New file.
60106         * lib/signbitd.c: New file.
60107         * lib/signbitl.c: New file.
60108         * m4/signbit.m4: New file.
60109         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
60110         (signbit): New macro.
60111         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
60112         REPLACE_SIGNBIT.
60113         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
60114         REPLACE_FREXPL into math.h.
60115
60116 2007-04-06  Bruno Haible  <bruno@clisp.org>
60117
60118         * modules/isnanf-nolibm-tests: New file.
60119         * tests/test-isnanf.c: New file.
60120
60121         * modules/isnanf-nolibm: New file.
60122         * lib/isnanf.h: New file.
60123         * lib/isnanf.c: New file.
60124         * lib/isnan.c: Consider the USE_FLOAT macro.
60125         * m4/isnanf.m4: New file.
60126
60127 2007-04-06  Bruno Haible  <bruno@clisp.org>
60128
60129         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
60130         (Link): New section.
60131
60132         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
60133
60134 2007-04-06  Bruno Haible  <bruno@clisp.org>
60135
60136         Assume the 'long double' type.
60137         * m4/longdouble.m4: Remove file.
60138         * config/srclist.txt: Don't mention longdouble.m4.
60139         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
60140         * lib/float+.h: Likewise.
60141         * lib/frexp.c: Likewise.
60142         * lib/printf-args.h: Likewise.
60143         * lib/printf-args.c: Likewise.
60144         * lib/printf-frexp.c: Likewise.
60145         * lib/printf-parse.c: Likewise.
60146         * lib/vasnprintf.c: Likewise.
60147         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
60148         * m4/intl.m4: Likewise.
60149         * m4/isnanl.m4: Likewise.
60150         * m4/printf.m4: Likewise.
60151         * m4/printf-frexpl.m4: Likewise.
60152         * m4/vasnprintf.m4: Likewise.
60153         * modules/allocsa (Files): Remove m4/longdouble.m4.
60154         * modules/gettext (Files): Likewise.
60155         * modules/relocatable-prog-wrapper (Files): Likewise.
60156         * modules/vasnprintf (Files): Likewise.
60157         * modules/isnanl (Files): Likewise.
60158         (Include): Simplify.
60159         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
60160         (Include): Simplify.
60161         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
60162         (Include): Simplify.
60163         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
60164         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
60165         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
60166         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
60167         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
60168         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
60169         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
60170         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
60171         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
60172         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
60173         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
60174         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
60175         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
60176         * tests/test-isnanl.c: Likewise.
60177         * tests/test-snprintf-posix.h: Likewise.
60178         * tests/test-sprintf-posix.h: Likewise.
60179         * tests/test-vasnprintf-posix.c: Likewise.
60180         * tests/test-vasnprintf-posix2.c: Likewise.
60181         * tests/test-vasprintf-posix.c: Likewise.
60182
60183 2007-04-06  Bruno Haible  <bruno@clisp.org>
60184
60185         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
60186         * lib/math_.h [__DECC]: Include the overridden include file through
60187         #include_next, outside the double-inclusion guard.
60188         * lib/stdio_.h [__DECC]: Likewise.
60189         * lib/stdlib_.h [__DECC]: Likewise.
60190         * lib/string_.h [__DECC]: Likewise.
60191         * lib/time_.h [__DECC]: Likewise.
60192         * lib/wchar_.h [__DECC]: Likewise.
60193         * lib/wctype_.h [__DECC]: Likewise.
60194         * lib/inttypes_.h [__DECC]: Likewise.
60195         Reported by Albert Chin <china@thewrittenword.com> in
60196         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
60197
60198 2007-04-04  Eric Blake  <ebb9@byu.net>
60199
60200         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
60201         1.5.x.
60202
60203 2007-04-04  Bruno Haible  <bruno@clisp.org>
60204
60205         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
60206         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
60207
60208 2007-04-04  Bruno Haible  <bruno@clisp.org>
60209
60210         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
60211         results for "%010a" of Infinity and NaN.
60212         * tests/test-vasprintf-posix.c (test_function): Likewise.
60213         * tests/test-snprintf-posix.h (test_function): Likewise.
60214         * tests/test-sprintf-posix.h (test_function): Likewise.
60215         * tests/test-fprintf-posix.h (test_function): Remove these tests.
60216         * tests/test-printf-posix.h (test_function): Likewise.
60217         * tests/test-fprintf-posix.out: Update.
60218         Needed for FreeBSD 6.1.
60219
60220 2007-04-04  Bruno Haible  <bruno@clisp.org>
60221
60222         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
60223         directly used by the gnulib modules nor by gnulib-tool.
60224
60225 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
60226
60227         * DEPENDENCIES: Give overall description of version dependency
60228         desirability.  Use more-typical names for apps.
60229         Add shell, coreutils, diffutils, grep, tar, gzip.
60230
60231 2007-04-04  Simon Josefsson  <simon@josefsson.org>
60232
60233         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
60234
60235 2007-04-04  Karl Berry  <karl@gnu.org>
60236
60237         * MODULES.html.sh (func_module): missing '.
60238
60239 2007-04-03  Bruno Haible  <bruno@clisp.org>
60240
60241         * modules/argmatch-tests (Makefile.am): New variable
60242         test_argmatch_LDADD.
60243         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
60244         * modules/array-list-tests (Makefile.am): New variable
60245         test_array_list_LDADD.
60246         * modules/array-oset-tests (Makefile.am): New variable
60247         test_array_oset_LDADD.
60248         * modules/avltree-list-tests (Makefile.am): New variable
60249         test_avltree_list_LDADD.
60250         * modules/avltree-oset-tests (Makefile.am): New variable
60251         test_avltree_oset_LDADD.
60252         * modules/avltreehash-list-tests (Makefile.am): New variable
60253         test_avltreehash_list_LDADD.
60254         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
60255         test_canonicalize_lgpl_LDADD.
60256         * modules/carray-list-tests (Makefile.am): New variable
60257         test_carray_list_LDADD.
60258         * modules/dirname-tests (Makefile.am): New variable
60259         test_dirname_LDADD.
60260         * modules/linked-list-tests (Makefile.am): New variable
60261         test_linked_list_LDADD.
60262         * modules/linkedhash-list-tests (Makefile.am): New variable
60263         test_linkedhash_list_LDADD.
60264         * modules/rbtree-list-tests (Makefile.am): New variable
60265         test_rbtree_list_LDADD.
60266         * modules/rbtree-oset-tests (Makefile.am): New variable
60267         test_rbtree_oset_LDADD.
60268         * modules/rbtreehash-list-tests (Makefile.am): New variable
60269         test_rbtreehash_list_LDADD.
60270         * modules/xvasprintf-tests (Makefile.am): New variable
60271         test_xvasprintf_LDADD.
60272         Reported by Eric Blake.
60273
60274 2007-04-03  Eric Blake  <ebb9@byu.net>
60275
60276         * DEPENDENCIES: Weaken m4 requirements.
60277
60278 2007-04-03  Bruno Haible  <bruno@clisp.org>
60279
60280         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
60281         * modules/isnanl-tests (configure.ac): Likewise.
60282
60283 2007-04-03  Ben Pfaff  <blp@gnu.org>
60284
60285         * modules/iconv_open: Add $(srcdir)/ to source directory
60286         references in Makefile fragments that call gperf, to fix VPATH
60287         builds.
60288
60289 2007-04-03  Bruno Haible  <bruno@clisp.org>
60290
60291         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
60292         * lib/ldexpl.c: Undo last change.
60293
60294 2007-04-03  Bruno Haible  <bruno@clisp.org>
60295
60296         * modules/printf-frexpl (Depends-on): Undo last change.
60297         (Files): Add m4/ldexpl.m4.
60298
60299 2007-04-03  Bruno Haible  <bruno@clisp.org>
60300
60301         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
60302         * modules/isnanl (Link): New section.
60303
60304         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
60305         * modules/frexp (Link): New section.
60306
60307         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
60308         * modules/frexpl (Link): New section.
60309
60310         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
60311         * modules/ldexpl (Link): New section.
60312
60313 2007-04-03  Bruno Haible  <bruno@clisp.org>
60314
60315         * modules/TEMPLATE-EXTENDED: New file.
60316         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
60317
60318 2007-04-03  Bruno Haible  <bruno@clisp.org>
60319
60320         * DEPENDENCIES: New file.
60321         Suggested by Simon Josefsson.
60322
60323 2007-04-03  Bruno Haible  <bruno@clisp.org>
60324
60325         * doc/gnulib.texi: Escape @.
60326
60327 2007-04-03  James Youngman  <jay@gnu.org>
60328         and Paul Eggert  <eggert@cs.ucla.edu>
60329
60330         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
60331         birthtime on all systems that have birthtime, not just those which
60332         use st_birthtimensec rather than st_birthtim.  Putting zero in
60333         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
60334         that the birth time is not available for files on an NFS mount.
60335
60336 2007-04-03  Simon Josefsson  <simon@josefsson.org>
60337
60338         * modules/memxor: Move back from crypto/, suggested by Bruno.
60339         * modules/crypto/hmac-sha1: Fix memxor dependency.
60340
60341         * modules/crypto/gc: Moved from ../.
60342
60343 2007-04-02  Eric Blake  <ebb9@byu.net>
60344
60345         * lib/ldexpl.c (includes): Avoid libm.
60346
60347         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
60348
60349 2007-04-02  Bruno Haible  <bruno@clisp.org>
60350
60351         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
60352         on IRIX.
60353
60354 2007-04-02  Bruno Haible  <bruno@clisp.org>
60355
60356         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
60357         x86 or x86_64 platforms running MacOS X.
60358         Reported by Ryan Schmidt <@ryandesign.com>.
60359
60360 2007-04-02  Bruno Haible  <bruno@clisp.org>
60361
60362         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
60363         i386.
60364
60365 2007-04-01  Simon Josefsson  <simon@josefsson.org>
60366
60367         * modules/crypto/arcfour: Moved from ../.
60368         * modules/crypto/arcfour-tests: Moved from ../.
60369         * modules/crypto/arctwo: Moved from ../.
60370         * modules/crypto/arctwo-tests: Moved from ../.
60371         * modules/crypto/des: Moved from ../.
60372         * modules/crypto/des-tests: Moved from ../.
60373         * modules/crypto/gc-arcfour: Moved from ../.
60374         * modules/crypto/gc-arcfour-tests: Moved from ../.
60375         * modules/crypto/gc-arctwo: Moved from ../.
60376         * modules/crypto/gc-arctwo-tests: Moved from ../.
60377         * modules/crypto/gc-des: Moved from ../.
60378         * modules/crypto/gc-des-tests: Moved from ../.
60379         * modules/crypto/gc-hmac-md5: Moved from ../.
60380         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
60381         * modules/crypto/gc-hmac-sha1: Moved from ../.
60382         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
60383         * modules/crypto/gc-md2: Moved from ../.
60384         * modules/crypto/gc-md2-tests: Moved from ../.
60385         * modules/crypto/gc-md4: Moved from ../.
60386         * modules/crypto/gc-md4-tests: Moved from ../.
60387         * modules/crypto/gc-md5: Moved from ../.
60388         * modules/crypto/gc-md5-tests: Moved from ../.
60389         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
60390         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
60391         * modules/crypto/gc-random: Moved from ../.
60392         * modules/crypto/gc-rijndael: Moved from ../.
60393         * modules/crypto/gc-rijndael-tests: Moved from ../.
60394         * modules/crypto/gc-sha1: Moved from ../.
60395         * modules/crypto/gc-sha1-tests: Moved from ../.
60396         * modules/crypto/gc-tests: Moved from ../.
60397         * modules/crypto/hmac-md5: Moved from ../.
60398         * modules/crypto/hmac-md5-tests: Moved from ../.
60399         * modules/crypto/hmac-sha1: Moved from ../.
60400         * modules/crypto/hmac-sha1-tests: Moved from ../.
60401         * modules/crypto/md2: Moved from ../.
60402         * modules/crypto/md2-tests: Moved from ../.
60403         * modules/crypto/md4: Moved from ../.
60404         * modules/crypto/md4-tests: Moved from ../.
60405         * modules/crypto/md5: Moved from ../.
60406         * modules/crypto/md5-tests: Moved from ../.
60407         * modules/crypto/memxor: Moved from ../.
60408         * modules/crypto/rijndael: Moved from ../.
60409         * modules/crypto/rijndael-tests: Moved from ../.
60410         * modules/crypto/sha1: Moved from ../.
60411
60412 2007-03-30  James Youngman  <jay@gnu.org>
60413
60414         * tests/test-stat-time.c (prepare_test): use chmod() rather than
60415         rename() to change the ctime of a file (because ctime is unaffected
60416         by rename on jfs2 on AIX 5.1).
60417         (main): Start by doing cleanup, in case a previous run failed leaving
60418         test files behind.
60419
60420 2007-03-31  Bruno Haible  <bruno@clisp.org>
60421
60422         Support old proprietary implementations of iconv.
60423         * modules/iconv_open: New file.
60424         * lib/iconv_.h: New file.
60425         * m4/iconv_h.m4: New file.
60426         * lib/iconv_open.c: New file.
60427         * lib/iconv_open-aix.gperf: New file.
60428         * lib/iconv_open-hpux.gperf: New file.
60429         * lib/iconv_open-irix.gperf: New file.
60430         * lib/iconv_open-osf.gperf: New file.
60431         * m4/iconv_open.m4: New file.
60432         * modules/linebreak (Depends-on): Add iconv_open.
60433         * modules/striconv (Depends-on): Likewise.
60434         * modules/striconveh (Depends-on): Likewise.
60435         * modules/unicodeio (Depends-on): Likewise.
60436         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
60437         (iconv_t)(-1).
60438         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
60439         conversion if cd is (iconv_t)(-1).
60440         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
60441         is not possible.
60442
60443 2007-03-31  Bruno Haible  <bruno@clisp.org>
60444
60445         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
60446         work on Solaris either. Protect also second use of "autodetect_jp".
60447
60448 2007-03-31  Bruno Haible  <bruno@clisp.org>
60449
60450         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
60451         the function is not present.
60452
60453 2007-03-31  Bruno Haible  <bruno@clisp.org>
60454
60455         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
60456         the function is not present.
60457
60458 2007-03-31  Bruno Haible  <bruno@clisp.org>
60459
60460         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
60461         a bug in HP-UX iconv_open().
60462
60463 2007-03-31  Bruno Haible  <bruno@clisp.org>
60464
60465         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
60466         (Mathematics <math.h>): New section, add fpieee.
60467         (Input/output <stdio.h>): Add fseterr.
60468         (Mathematics <math.h>): New section, add printf-frexp.
60469         (Container data structures): Add sublist.
60470         (Core language properties): Add fpucw, inline.
60471         (Functions for greatest-width integer types <inttypes.h>): Add
60472         imaxabs, imaxdiv, inttypes.
60473         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
60474         isnanl-nolibm, ldexp.
60475         (Mathematics <math.h>): New section, add printf-frexpl.
60476         (Support for systems lacking POSIX:2001): Add fprintf-posix,
60477         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
60478         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
60479         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
60480         (Unicode string functions): Add unistr/u*-mbtoucr.
60481         (Java): Add javacomp-script, javaexec-script.
60482         (C#): Add csharpcomp-script, csharpexec-script.
60483         (Support for building libraries and executables): Add havelib,
60484         relocatable-*.
60485         (Support for maintaining and releasing projects): Renamed from
60486         'Support for maintaining and release projects'. Add announce-gen.
60487
60488 2007-03-31  Bruno Haible  <bruno@clisp.org>
60489
60490         * README: Talk primarily about git.
60491         (git and CVS): Renamed from CVS.
60492         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
60493         gnulib is available through git.
60494         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
60495
60496 2007-03-30  Bruno Haible  <bruno@clisp.org>
60497
60498         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
60499         * lib/poll_.h: Likewise.
60500         * lib/stat_.h: Likewise.
60501         * lib/sys_time_.h: Likewise.
60502         * lib/sysexit_.h: Likewise.
60503         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
60504         * lib/stdbool_.h: Likewise.
60505         * lib/byteswap_.h: Add double-inclusion guard.
60506
60507 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
60508
60509         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
60510
60511 2007-03-30  Karl Berry  <karl@gnu.org>
60512
60513         * config/srclist-update: double space after USA in the license
60514         substitution, since that's how it's usually (?) written.
60515
60516 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
60517
60518         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
60519         reported by Bruno Haible.
60520
60521 2007-03-29  Bruno Haible  <bruno@clisp.org>
60522
60523         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
60524         a bug in AIX iconv().
60525
60526 2007-03-29  Bruno Haible  <bruno@clisp.org>
60527
60528         * modules/ldexpl-tests: New file.
60529         * tests/test-ldexpl.c: New file.
60530
60531 2007-03-29  Bruno Haible  <bruno@clisp.org>
60532
60533         * lib/ldexpl.c: Include fpucw.h.
60534         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
60535         multiplication.
60536         * modules/ldexpl (Depends-on): Add fpucw.
60537
60538 2007-03-29  Bruno Haible  <bruno@clisp.org>
60539
60540         * modules/ldexpl: New file.
60541         * m4/ldexpl.m4: New file.
60542         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
60543         set.
60544         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
60545         REPLACE_LDEXPL.
60546         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
60547         REPLACE_LDEXPL.
60548         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
60549         gl_FUNC_LDEXPL_WORKS.
60550         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
60551         * modules/mathl (Files): Remove lib/ldexpl.c.
60552         (Depends-on): Add ldexpl.
60553
60554 2007-03-29  Bruno Haible  <bruno@clisp.org>
60555
60556         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
60557
60558 2007-03-29  Bruno Haible  <bruno@clisp.org>
60559
60560         * tests/test-striconveh.c (main): Don't assume that a direct conversion
60561         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
60562         and possibly also HP-UX.
60563         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
60564         work on AIX, IRIX, HP-UX, OSF/1.
60565         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
60566         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
60567         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
60568         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
60569         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
60570         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
60571
60572 2007-03-29  Bruno Haible  <bruno@clisp.org>
60573
60574         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
60575
60576 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
60577
60578         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
60579         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
60580
60581 2007-03-29  Eric Blake  <ebb9@byu.net>
60582
60583         * lib/acl-internal.h: Remove redundant include.
60584         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
60585         Cygwin when a file is locked.
60586
60587 2007-03-29  Bruno Haible  <bruno@clisp.org>
60588
60589         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
60590         file.
60591         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
60592
60593 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
60594
60595         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
60596         try to remove a parent directory if the child couldn't be removed
60597         (except for the first rmdir, which could fail because the child
60598         doesn't exist).  Problem reported by Jeff Blaine in
60599         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
60600
60601 2007-03-28  Bruno Haible  <bruno@clisp.org>
60602
60603         * lib/striconveh.c (utf8conv_carefully): New function.
60604         (mem_cd_iconveh_internal): Invoke it.
60605
60606 2007-03-28  Bruno Haible  <bruno@clisp.org>
60607
60608         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
60609         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
60610         input.
60611         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
60612         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
60613         unistr/u8-uctomb.
60614
60615 2007-03-28  Bruno Haible  <bruno@clisp.org>
60616
60617         * modules/unistr/u8-mbtoucr: New file.
60618         * lib/unistr/u8-mbtoucr.c: New file.
60619         * modules/unistr/u16-mbtoucr: New file.
60620         * lib/unistr/u16-mbtoucr.c: New file.
60621         * modules/unistr/u16-mbtoucr: New file.
60622         * lib/unistr/u16-mbtoucr.c: New file.
60623         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
60624
60625 2007-03-27  Simon Josefsson  <simon@josefsson.org>
60626             Bruno Haible  <bruno@clisp.org>
60627
60628         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
60629         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
60630         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
60631
60632         * m4/stdio_h.m4: Add stubs for vasprintf too.
60633
60634         * modules/stdio: Support vasprintf in sed command.
60635
60636         * modules/vasprintf: Depend on stdio for prototypes.  Remove
60637         vasprintf.h.  Add stdio module indicator.
60638
60639         * lib/stdio_.h: Declare asprintf and vasprintf, based on
60640         vasprintf.h.
60641
60642         * lib/vasprintf.h: File removed.
60643
60644         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
60645         * lib/vasprintf.c: Ditto.
60646         * lib/xvasprintf.c: Ditto.
60647         * tests/test-vasprintf-posix.c: Ditto.
60648         * tests/test-vasprintf.c: Ditto.
60649
60650 2007-03-27  Bruno Haible  <bruno@clisp.org>
60651
60652         Make vasnprintf multithread-safe.
60653         * lib/vasnprintf.c (decimal_point_char): New function.
60654         (VASNPRINTF): Use it.
60655         Suggested by Simon Josefsson.
60656
60657 2007-03-27  Eric Blake  <ebb9@byu.net>
60658
60659         Support sub-second birthtime on cygwin.
60660         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
60661         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
60662         (get_stat_birthtime): Also work with st_birthtim.
60663
60664 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
60665
60666         * lib/stat-time.h (USE_BIRTHTIME): Remove.
60667         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
60668         (get_stat_birthtime_ns): Do not try to use "spare" fields.
60669         (get_stat_birthtime_ns): Simplify compile-time tests.
60670         (get_stat_birthtime): Change the API to look like
60671         get_stat_mtime etc., except return a negative tv_nsec on error.
60672         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
60673         Don't check for "spare" fields.
60674         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
60675         or for struct stat.st_birthtime, as these tests aren't used.
60676         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
60677
60678 2007-03-27  Bruno Haible  <bruno@clisp.org>
60679
60680         * lib/stat-time.h: Include <sys/stat.h>.
60681
60682 2007-03-27  James Youngman  <jay@gnu.org>
60683
60684         * lib/stat-time.h (get_stat_birthtime): New function for
60685           retrieving st_birthtime as provided by UFS2 (hence *BSD).
60686         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
60687           and its variants.
60688         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
60689         * modules/stat-time-test: New file.
60690         * tests/test-stat-time.c: New test, devised by Bruno Haible.
60691
60692 2007-03-26  Bruno Haible  <bruno@clisp.org>
60693
60694         Better support of signalling NaNs.
60695         * lib/atanl.c: Include isnanl.h.
60696         (atanl): Perform test for NaN at the beginning of the function and
60697         through a call to isnanl.
60698         * lib/cosl.c: Include isnanl.h.
60699         (cosl): Perform test for NaN at the beginning of the function and
60700         through a call to isnanl.
60701         * lib/ldexpl.c: Include isnanl.h.
60702         (ldexpl): Perform test for NaN through a call to isnanl.
60703         * lib/logl.c: Include isnanl.h.
60704         (logl): Perform test for NaN at the beginning of the function and
60705         through a call to isnanl.
60706         * lib/sinl.c: Include isnanl.h.
60707         (sinl): Perform test for NaN at the beginning of the function and
60708         through a call to isnanl.
60709         * lib/sqrtl.c: Include isnanl.h.
60710         (sqrtl): Perform test for NaN at the beginning of the function and
60711         through a call to isnanl.
60712         * lib/tanl.c: Include isnanl.h.
60713         (tanl): Perform test for NaN at the beginning of the function and
60714         through a call to isnanl.
60715         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
60716         * modules/mathl (Depends-on): Add isnanl.
60717
60718 2007-03-26  Eric Blake  <ebb9@byu.net>
60719
60720         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
60721         regression in logic sense of previous patch.
60722
60723 2007-03-26  Bruno Haible  <bruno@clisp.org>
60724
60725         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
60726         unportable shell command "if ! ...".
60727         Reported by Ralf Wildenhues.
60728
60729 2007-03-25  Bruno Haible  <bruno@clisp.org>
60730
60731         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
60732         <sysexits.h> file, and only add EX_CONFIG.
60733         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
60734         absolute file name and whether it is sufficient. Substitute also
60735         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
60736         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
60737         ABSOLUTE_SYSEXITS_H into sysexits.h.
60738
60739 2007-03-25  Bruno Haible  <bruno@clisp.org>
60740
60741         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
60742         hints is NULL.
60743
60744 2007-03-25  Bruno Haible  <bruno@clisp.org>
60745
60746         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
60747         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
60748
60749 2007-03-25  Bruno Haible  <bruno@clisp.org>
60750
60751         * lib/vasnprintf.c: Include langinfo.h.
60752         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
60753         multithread-safe.
60754         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
60755         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
60756         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
60757         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
60758         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
60759         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
60760         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
60761         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
60762         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
60763         Reported by Simon Josefsson.
60764
60765 2007-03-25  Bruno Haible  <bruno@clisp.org>
60766
60767         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
60768         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
60769         * modules/vasnprintf (Depends-on): Add stdint.
60770
60771 2007-03-25  Bruno Haible  <bruno@clisp.org>
60772
60773         * modules/fpieee: New file.
60774         * m4/fpieee.m4: New file.
60775         * modules/isnan-nolibm (Depends-on): Add fpieee.
60776         * modules/isnanl-nolibm (Depends-on): Add fpieee.
60777         * modules/isnanl (Depends-on): Add fpieee.
60778
60779 2007-03-25  Bruno Haible  <bruno@clisp.org>
60780
60781         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
60782
60783 2007-03-25  Bruno Haible  <bruno@clisp.org>
60784
60785         Avoid test failures on IRIX 6.5.
60786         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
60787         (main): Use it.
60788         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
60789         macros.
60790         (main): Use them.
60791
60792 2007-03-25  Bruno Haible  <bruno@clisp.org>
60793
60794         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
60795         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
60796         exists but doesn't work.
60797         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
60798         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
60799         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
60800         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
60801         math.h.
60802
60803 2007-03-25  Bruno Haible  <bruno@clisp.org>
60804
60805         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
60806         returns inf. Needed on IRIX 6.5.
60807
60808 2007-03-25  Bruno Haible  <bruno@clisp.org>
60809
60810         * tests/test-frexpl.c: Include isnanl-nolibm.h.
60811         (main): Use isnanl instead of x != x idiom.
60812         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
60813
60814         * tests/test-frexp.c: Include isnan.h.
60815         (main): Use isnan instead of x != x idiom.
60816         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
60817
60818 2007-03-25  Bruno Haible  <bruno@clisp.org>
60819
60820         * tests/test-frexp.c (NaN): New function/macro.
60821         (main): Use it instead of 0.0 / 0.0.
60822         * tests/test-isnan.c (NaN): New function/macro.
60823         (main): Use it instead of 0.0 / 0.0.
60824         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
60825         (test_function): Use it instead of 0.0 / 0.0.
60826         * tests/test-vasprintf-posix.c (NaN): New function/macro.
60827         (test_function): Use it instead of 0.0 / 0.0.
60828         * tests/test-snprintf-posix.h (NaN): New function/macro.
60829         (test_function): Use it instead of 0.0 / 0.0.
60830         * tests/test-sprintf-posix.h (NaN): New function/macro.
60831         (test_function): Use it instead of 0.0 / 0.0.
60832         * tests/test-fprintf-posix.h (NaN): New function/macro.
60833         (test_function): Use it instead of 0.0 / 0.0.
60834         * tests/test-printf-posix.h (NaN): New function/macro.
60835         (test_function): Use it instead of 0.0 / 0.0.
60836
60837         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
60838
60839 2007-03-25  Bruno Haible  <bruno@clisp.org>
60840
60841         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
60842
60843 2007-03-25  Bruno Haible  <bruno@clisp.org>
60844
60845         * lib/regexec.c (merge_state_with_log): Make static.
60846
60847 2007-03-25  Bruno Haible  <bruno@clisp.org>
60848
60849         * lib/trigl.c (kernel_rem_pio2): Make static.
60850
60851 2007-03-25  Bruno Haible  <bruno@clisp.org>
60852
60853         * lib/sincosl.c (sincosl_table): Make static.
60854
60855 2007-03-25  Bruno Haible  <bruno@clisp.org>
60856
60857         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
60858         if the compiler does not support C99.
60859
60860 2007-03-25  Bruno Haible  <bruno@clisp.org>
60861
60862         * modules/time (Makefile.am): Ensure all rule action lines start with a
60863         tab.
60864
60865 2007-03-24  Bruno Haible  <bruno@clisp.org>
60866
60867         * modules/tsearch-tests: New file.
60868         * tests/test-tsearch.sh: New file.
60869         * tests/test-tsearch.c: New file, mostly copied from glibc.
60870
60871         * modules/search-tests: New file.
60872         * tests/test-search.c: New file.
60873
60874         * modules/search: New file.
60875         * lib/search_.h: New file, incorporating lib/tsearch.h.
60876         * m4/search_h.m4: New file.
60877         * lib/tsearch.h: Remove file.
60878         * lib/tsearch.c: Include search.h instead of tsearch.h.
60879         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
60880         HAVE_TSEARCH.
60881         * modules/tsearch (Files): Remove lib/tsearch.h.
60882         (Depends-on): Add search.
60883         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
60884         (Include): Change tsearch.h into search.h.
60885
60886 2007-03-24  Bruno Haible  <bruno@clisp.org>
60887
60888         * modules/fpucw: New file.
60889         * lib/fpucw.h: New file.
60890         * lib/frexp.c: Include fpucw.h.
60891         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
60892         (FUNC): Use them.
60893         * lib/printf-frexp.c: Include fpucw.h.
60894         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
60895         (FUNC): Use them.
60896         * lib/vasnprintf.c: Include fpucw.h.
60897         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
60898         'long double' calculations.
60899         * tests/test-frexpl.c: Include fpucw.h.
60900         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
60901         * tests/test-printf-frexpl.c: Include fpucw.h.
60902         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
60903         * modules/frexpl (Depends-on): Add fpucw.
60904         * modules/printf-frexpl (Depends-on): Likewise.
60905         * modules/fprintf-posix (Depends-on): Likewise.
60906         * modules/snprintf-posix (Depends-on): Likewise.
60907         * modules/sprintf-posix (Depends-on): Likewise.
60908         * modules/vasnprintf-posix (Depends-on): Likewise.
60909         * modules/vasprintf-posix (Depends-on): Likewise.
60910         * modules/vfprintf-posix (Depends-on): Likewise.
60911         * modules/vsnprintf-posix (Depends-on): Likewise.
60912         * modules/vsprintf-posix (Depends-on): Likewise.
60913         * modules/frexpl-tests (Depends-on): Likewise.
60914         * modules/printf-frexpl-tests (Depends-on): Likewise.
60915
60916 2007-03-24  Bruno Haible  <bruno@clisp.org>
60917
60918         * lib/float+.h: New file.
60919         * lib/isnan.c: Include float+.h.
60920         (SIZE): New macro.
60921         (FUNC): Compare only SIZE bytes of the value.
60922         * lib/vasnprintf.c: Include float+.h.
60923         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
60924         SIZEOF_LDBL or SIZEOF_DBL bytes.
60925         * modules/isnan-nolibm (Files): Add lib/float+.h.
60926         * modules/isnanl-nolibm (Files): Add lib/float+.h.
60927         * modules/isnanl (Files): Add lib/float+.h.
60928         * modules/vasnprintf (Files): Add lib/float+.h.
60929
60930 2007-03-24  Bruno Haible  <bruno@clisp.org>
60931
60932         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
60933         include isnanl-nolibm.h.
60934
60935 2007-03-24  Bruno Haible  <bruno@clisp.org>
60936
60937         * tests/test-read-file.c (main): Don't produce spurious output for
60938         expected situations. Make the test fail if it encountered unexpected
60939         results.
60940
60941 2007-03-24  Bruno Haible  <bruno@clisp.org>
60942
60943         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
60944         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
60945
60946 2007-03-24  Bruno Haible  <bruno@clisp.org>
60947
60948         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
60949
60950 2007-03-24  Bruno Haible  <bruno@clisp.org>
60951
60952         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
60953         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
60954
60955         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
60956         * modules/utf8-ucs4: Turn into a symbolic link to module
60957         unistr/u8-mbtouc.
60958
60959         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
60960         utf8-ucs4-unsafe.
60961         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
60962         unistr/u8-mbtouc-unsafe.
60963
60964         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
60965         * modules/utf16-ucs4: Turn into a symbolic link to module
60966         unistr/u16-mbtouc.
60967
60968         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
60969         utf16-ucs4-unsafe.
60970         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
60971         unistr/u16-mbtouc-unsafe.
60972
60973         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
60974         * modules/ucs4-utf8: Turn into a symbolic link to module
60975         unistr/u8-ubtomb.
60976
60977         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
60978         * modules/ucs4-utf16: Turn into a symbolic link to module
60979         unistr/u16-ubtomb.
60980
60981 2007-03-24  Bruno Haible  <bruno@clisp.org>
60982
60983         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
60984         Enable the function only if HAVE_INLINE.
60985         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
60986         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
60987         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
60988         Enable the function only if HAVE_INLINE.
60989         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
60990         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
60991         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
60992         Enable the function only if HAVE_INLINE.
60993         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
60994         Enable the function only if HAVE_INLINE.
60995         * modules/utf8-ucs4: Update.
60996         * modules/utf8-ucs4-unsafe: Update.
60997         * modules/utf16-ucs4: Update.
60998         * modules/utf16-ucs4-unsafe: Update.
60999         * modules/ucs4-utf8: Update.
61000         * modules/ucs4-utf16: Update.
61001
61002 2007-03-24  Bruno Haible  <bruno@clisp.org>
61003
61004         * lib/utf8-ucs4.h: Remove file.
61005         * lib/utf8-ucs4-unsafe.h: Remove file.
61006         * lib/utf16-ucs4.h: Remove file.
61007         * lib/utf16-ucs4-unsafe.h: Remove file.
61008         * lib/ucs4-utf8.h: Remove file.
61009         * lib/ucs4-utf16.h: Remove file.
61010         * lib/unistr.h: Include their previous contents.
61011         * m4/utf-ucs4.m4: Remove file.
61012         * m4/ucs4-utf.m4: Remove file.
61013         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
61014         (Depends-on): Add unistr/base.
61015         (configure.ac): Remove gl_UTF_UCS4.
61016         (Makefile.am): Update.
61017         (Include): Change to unistr.h.
61018         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
61019         (Depends-on): Add unistr/base.
61020         (configure.ac): Remove gl_UTF_UCS4.
61021         (Makefile.am): Update.
61022         (Include): Change to unistr.h.
61023         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
61024         (Depends-on): Add unistr/base.
61025         (configure.ac): Remove gl_UTF_UCS4.
61026         (Makefile.am): Update.
61027         (Include): Change to unistr.h.
61028         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
61029         (Depends-on): Add unistr/base.
61030         (configure.ac): Remove gl_UTF_UCS4.
61031         (Makefile.am): Update.
61032         (Include): Change to unistr.h.
61033         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
61034         (Depends-on): Add unistr/base.
61035         (configure.ac): Remove gl_UCS4_UTF.
61036         (Makefile.am): Update.
61037         (Include): Change to unistr.h.
61038         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
61039         (Depends-on): Add unistr/base.
61040         (configure.ac): Remove gl_UCS4_UTF.
61041         (Makefile.am): Update.
61042         (Include): Change to unistr.h.
61043         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
61044         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
61045         utf8-ucs4-unsafe.h.
61046         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
61047         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
61048         utf16-ucs4-unsafe.h.
61049         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
61050         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
61051         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
61052         * lib/unistr/u8-strchr.c: Likewise.
61053         * lib/unistr/u8-strrchr.c: Likewise.
61054         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
61055         * lib/unistr/u16-strchr.c: Likewise.
61056         * lib/unistr/u16-strrchr.c: Likewise.
61057         * lib/striconveh.c: Update.
61058         * lib/linebreak.c: Update.
61059
61060 2007-03-24  Bruno Haible  <bruno@clisp.org>
61061
61062         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
61063         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
61064
61065 2007-03-22  Bruno Haible  <bruno@clisp.org>
61066
61067         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
61068
61069 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
61070
61071         * MODULES.html.sh (File system functions): New module write-any-file.
61072         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
61073         * m4/write-any-file.m4: New files.
61074
61075 2007-03-23  Eric Blake  <ebb9@byu.net>
61076
61077         * gnulib-tool: Rearrange space-tab sequences, since some editors
61078         like to eat them.
61079
61080 2007-03-23  Eric Blake  <ebb9@byu.net>
61081
61082         * lib/version-etc.c (version_etc_va): Update license wording to
61083         be more concise.  Recommended by Richard Stallman.
61084
61085 2007-03-22  Bruno Haible  <bruno@clisp.org>
61086
61087         * lib/poll.c (MSG_PEEK): New fallback definition.
61088
61089 2007-03-22  Bruno Haible  <bruno@clisp.org>
61090
61091         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
61092         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
61093         (main): Update.
61094         Fixes a compilation error on BeOS.
61095
61096 2007-03-22  Bruno Haible  <bruno@clisp.org>
61097
61098         * modules/frexpl-tests: New file.
61099         * tests/test-frexpl.c: New file.
61100
61101         * modules/frexpl: New file.
61102         * m4/frexpl.m4: New file.
61103         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
61104         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
61105         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
61106         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
61107         (Depends-on): Add frexpl. Remove isnanl-nolibm.
61108         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
61109
61110 2007-03-22  Bruno Haible  <bruno@clisp.org>
61111
61112         * lib/frexpl.c: Share code with lib/frexp.c.
61113         * modules/mathl (Files): Add lib/frexp.c.
61114         (Depends-on): Add isnanl-nolibm.
61115
61116 2007-03-22  Bruno Haible  <bruno@clisp.org>
61117
61118         * modules/printf-frexp (Files): Add m4/frexp.m4.
61119         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
61120         only if the found frexp function actually works.
61121
61122 2007-03-22  Bruno Haible  <bruno@clisp.org>
61123
61124         * lib/frexp.c: Remove older implementation that uses divisions.
61125
61126 2007-03-21  Bruno Haible  <bruno@clisp.org>
61127
61128         * modules/frexp-tests: New file.
61129         * tests/test-frexp.c: New file.
61130
61131         * modules/frexp: New file.
61132         * lib/frexp.c: New file.
61133         * m4/frexp.m4: New file.
61134         * lib/math_.h (frexp): New declaration.
61135         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
61136         REPLACE_FREXP.
61137         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
61138
61139 2007-03-21  Bruno Haible  <bruno@clisp.org>
61140
61141         * modules/isnanl-tests: New file.
61142         * tests/test-isnanl.c: New file.
61143
61144         * modules/isnanl: New file.
61145         * lib/isnanl.h: New file.
61146         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
61147         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
61148         gl_FUNC_ISNANL_WORKS.
61149         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
61150         New macros.
61151
61152 2007-03-21  Bruno Haible  <bruno@clisp.org>
61153
61154         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
61155         lib/isnanl.h.
61156         (Include): Update.
61157         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
61158         * lib/vasnprintf.c: Update.
61159         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
61160         tests/test-isnanl.h, remove tests/test-isnanl.c.
61161         (Makefile.am): Update.
61162         * tests/test-isnanl-nolibm.c: New file.
61163         * tests/test-isnanl.h: New file.
61164         * tests/test-isnanl.c: Remove file.
61165
61166 2007-03-21  Jim Meyering  <jim@meyering.net>
61167
61168         When trying to open ".", treat ESTALE like EACCES.
61169         * lib/savewd.c (savewd_save): Resort to forking not just upon
61170         failure with EACCES, but also when errno is ESTALE.
61171
61172 2007-03-20  Bruno Haible  <bruno@clisp.org>
61173
61174         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
61175         Needed on AIX 5.1. Reported by Matthew Woehlke.
61176
61177 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
61178
61179         Suggestions by Bruno Haible:
61180         * lib/acl-internal.h: Include "gettext.h" rather than rolling
61181         our own.
61182         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
61183         * modules/acl (Depends-on): Add gettext.
61184
61185 2007-03-19  Bruno Haible  <bruno@clisp.org>
61186
61187         * modules/iconvme: Remove file.
61188         * lib/iconvme.h: Remove file.
61189         * lib/iconvme.c: Remove file.
61190         * m4/iconvme.m4: Remove file.
61191
61192 2007-03-19  Bruno Haible  <bruno@clisp.org>
61193
61194         * doc/relocatable-maint.texi: Break long shell script line.
61195         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
61196
61197 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
61198
61199         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
61200         handle file_has_acl.
61201         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
61202         * lib/acl.c: Move header inclusions and related macro defns into
61203         lib/acl-internal.h.
61204         (S_ISLNK): Remove defn, since that's now done for us.
61205         (file_has_acl): Move to lib/file-has-acl.c.
61206         Call acl_trivial if available.  This is the crucial part of the fix.
61207         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
61208         shared within the library.  Rewrite a bit, partly to make it compatible
61209         with the GNU coding style.
61210         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
61211         Remove unnecessary double-quotes.
61212         Don't test for acl_to_text; the build will catch that.
61213         Replace acl_entries if it doesn't exist and it is needed.
61214         Check for -lsec and acl_trivial (as used on Solaris 10).
61215         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
61216         lib/file-has-acl.c.
61217         (Depends-on): Add sys_stat, for S_ISLNK.
61218
61219 2007-03-19  Ben Pfaff  <blp@gnu.org>
61220
61221         * doc/gnulib.texi: Fix typos.
61222         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
61223
61224 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
61225
61226         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
61227         If size is zero here, buf must be zero.
61228
61229 2007-03-19  Simon Josefsson  <simon@josefsson.org>
61230
61231         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
61232         <bruno@clisp.org>.
61233
61234 2007-03-18  Bruno Haible  <bruno@clisp.org>
61235
61236         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
61237         Suggested by Eric Blake.
61238
61239 2007-03-18  Ben Pfaff  <blp@gnu.org>
61240
61241         * doc/relocatable.texi: Recommend using as prefix a directory
61242         that does not exist and will never be created.  Based on
61243         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
61244         and others.
61245
61246 2007-03-17  Bruno Haible  <bruno@clisp.org>
61247
61248         * lib/fchownat.c: Include lchown.h.
61249
61250 2007-03-17  Bruno Haible  <bruno@clisp.org>
61251
61252         Fix endless loop when the given allocated size was > INT_MAX.
61253         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
61254         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
61255         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
61256         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
61257         * lib/sprintf.c (sprintf): Likewise.
61258
61259 2007-03-17  Bruno Haible  <bruno@clisp.org>
61260
61261         * tests/test-argp-2.sh (func_compare): Output a context diff.
61262
61263 2007-03-17  Bruno Haible  <bruno@clisp.org>
61264
61265         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
61266         locale's decimal-point character.
61267
61268 2007-03-17  Bruno Haible  <bruno@clisp.org>
61269
61270         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
61271         before comparing it. Needed because on some platforms (e.g. x86) a
61272         'long double' occupies less bytes than sizeof (long double).
61273
61274 2007-03-17  Bruno Haible  <bruno@clisp.org>
61275
61276         * tests/test-crc.c (main): Make printf statements 64-bit clean.
61277         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
61278         * tests/test-getaddrinfo.c (simple): Likewise.
61279         * tests/test-read-file.c (main): Likewise.
61280
61281 2007-03-17  Bruno Haible  <bruno@clisp.org>
61282
61283         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
61284
61285 2007-03-17  Bruno Haible  <bruno@clisp.org>
61286
61287         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
61288         unused variable.
61289
61290 2007-03-17  Bruno Haible  <bruno@clisp.org>
61291
61292         * tests/test-c-strcasecmp.c: Include c-strcase.h.
61293         * tests/test-c-strncasecmp.c: Likewise.
61294
61295 2007-03-17  Bruno Haible  <bruno@clisp.org>
61296
61297         * modules/stdlib (Depends-on): Add unistd.
61298         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
61299         Needed for MacOS X 10.3.
61300
61301 2007-03-17  Bruno Haible  <bruno@clisp.org>
61302
61303         * lib/unistr/u-strdup.h: Include <stdlib.h>.
61304
61305 2007-03-17  Bruno Haible  <bruno@clisp.org>
61306
61307         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
61308
61309 2007-03-17  Bruno Haible  <bruno@clisp.org>
61310
61311         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
61312         to reflect files copied from gnulib (with or without modifications).
61313         Suggested by Jim Meyering.
61314
61315 2007-03-17  Eric Blake  <ebb9@byu.net>
61316
61317         * NEWS: Document stdlib change from 2007-02-18.
61318
61319 2007-03-17  Jim Meyering  <jim@meyering.net>
61320
61321         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
61322         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
61323         someone uses a name containing shell meta-characters.
61324         Reported by Alfred M. Szmidt.
61325
61326         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
61327
61328 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
61329
61330         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
61331         and copy gettext configuration files only if configure.ac contains
61332         a use of AM_GNU_GETTEXT_VERSION.
61333
61334 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
61335
61336         * build-aux/bootstrap (gnulib_name): New variable.
61337         (gnulib_tool_options): Use it.
61338
61339 2007-03-13  Simon Josefsson  <simon@josefsson.org>
61340
61341         * tests/test-des.c: Use new namespace.
61342
61343 2007-03-15  Bruno Haible  <bruno@clisp.org>
61344
61345         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
61346         Reported by James Youngman <jay@gnu.org>.
61347
61348 2007-03-15  Bruno Haible  <bruno@clisp.org>
61349
61350         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
61351         declared prototype. Needed with cc on OSF/1 5.1.
61352
61353 2007-03-15  Bruno Haible  <bruno@clisp.org>
61354
61355         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
61356         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
61357         (struct gl_list_implementation): Add dispose_fn argument to the
61358         'create_empty', 'create' methods.
61359         (struct gl_list_impl_base): Add field 'dispose_fn'.
61360         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
61361         argument.
61362         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
61363         dispose_fn argument.
61364         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
61365         dispose_fn on the dropped values.
61366         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
61367         dispose_fn argument.
61368         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
61369         dropped values.
61370         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
61371         (gl_tree_remove_node): Call dispose_fn on the dropped value.
61372         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
61373         (gl_tree_remove_node): Call dispose_fn on the dropped value.
61374         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
61375         argument.
61376         (gl_tree_list_free): Call dispose_fn on the dropped values.
61377         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
61378         the dropped values.
61379         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
61380         Add dispose_fn argument.
61381         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
61382         Call dispose_fn on the dropped values.
61383         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
61384         Add dispose_fn argument.
61385         (gl_sublist_create): Initialize the 'dispose_fn' field.
61386         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
61387         * tests/test-array_list.c (main): Update.
61388         * tests/test-carray_list.c (main): Update.
61389         * tests/test-avltree_list.c (main): Update.
61390         * tests/test-rbtree_list.c (main): Update.
61391         * tests/test-avltreehash_list.c (main): Update.
61392         * tests/test-rbtreehash_list.c (main): Update.
61393         * tests/test-linked_list.c (main): Update.
61394         * tests/test-linkedhash_list.c (main): Update.
61395         * tests/test-array_oset.c (main): Update.
61396
61397 2007-03-15  Bruno Haible  <bruno@clisp.org>
61398
61399         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
61400         (gl_oset_create_empty): Add dispose_fn argument.
61401         (struct gl_oset_implementation): Add dispose_fn argument to
61402         'create_empty' method.
61403         (struct gl_oset_impl_base): Add dispose_fn field.
61404         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
61405         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
61406         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
61407         values.
61408         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
61409         (gl_tree_oset_free): Call dispose_fn on the dropped values.
61410         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
61411         dropped value.
61412         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
61413         dropped value.
61414         * tests/test-array_oset.c (main): Update.
61415         * tests/test-avltree_oset.c (main): Update.
61416         * tests/test-rbtree_oset.c (main): Update.
61417         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
61418
61419 2007-03-13  Bruno Haible  <bruno@clisp.org>
61420
61421         * tests/test-stdbool.c (i): Update after last patch.
61422
61423 2007-03-12  Bruno Haible  <bruno@clisp.org>
61424
61425         * lib/quotearg.c: Include <wctype.h> early, before the definition of
61426         the iswprint macro. Needed on Solaris 2.5.1.
61427
61428 2007-03-12  Bruno Haible  <bruno@clisp.org>
61429
61430         * tests/test-printf-frexp.c (main): Declare x as volatile.
61431
61432 2007-03-12  Simon Josefsson  <simon@josefsson.org>
61433
61434         * doc/gnulib.texi (Build robot for gnulib): New section.
61435
61436 2007-03-12  Jim Meyering  <jim@meyering.net>
61437
61438         * build-aux/bootstrap: New file.
61439         * build-aux/bootstrap.conf: New file, from coreutils.
61440
61441 2007-03-11  Bruno Haible  <bruno@clisp.org>
61442
61443         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
61444
61445 2007-03-12  Simon Josefsson  <simon@josefsson.org>
61446
61447         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
61448         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
61449         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
61450
61451 2007-03-11  Bruno Haible  <bruno@clisp.org>
61452
61453         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
61454         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
61455
61456 2007-03-11  Bruno Haible  <bruno@clisp.org>
61457
61458         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
61459         formula. Needed for SunPRO C 5.0.
61460
61461 2007-03-11  Bruno Haible  <bruno@clisp.org>
61462
61463         * modules/long-options (Depends-on): Add getopt.
61464
61465 2007-03-11  Bruno Haible  <bruno@clisp.org>
61466
61467         * modules/modechange (Depends-on): Add stdbool.
61468
61469 2007-03-11  Bruno Haible  <bruno@clisp.org>
61470
61471         * modules/i-ring (Depends-on): Add stdbool.
61472
61473 2007-03-11  Bruno Haible  <bruno@clisp.org>
61474
61475         * modules/gc-des (Depends-on): Add stdbool.
61476
61477 2007-03-11  Bruno Haible  <bruno@clisp.org>
61478
61479         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
61480
61481 2007-03-11  Bruno Haible  <bruno@clisp.org>
61482
61483         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
61484
61485 2007-03-11  Bruno Haible  <bruno@clisp.org>
61486
61487         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
61488
61489 2007-03-11  Bruno Haible  <bruno@clisp.org>
61490
61491         * lib/vasnprintf.c (sprintf): Undefine.
61492
61493 2007-03-11  Bruno Haible  <bruno@clisp.org>
61494
61495         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
61496         initializers in SunPRO C and Compaq C compilers.
61497
61498 2007-03-11  Bruno Haible  <bruno@clisp.org>
61499
61500         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
61501         decrementing code ANSI C compliant.
61502
61503 2007-03-11  Bruno Haible  <bruno@clisp.org>
61504
61505         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
61506         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
61507
61508 2007-03-11  Bruno Haible  <bruno@clisp.org>
61509
61510         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
61511         <stdbool.h> substitute doesn't pass.
61512
61513 2007-03-11  Bruno Haible  <bruno@clisp.org>
61514
61515         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
61516
61517 2007-03-11  Bruno Haible  <bruno@clisp.org>
61518
61519         * gnulib-tool (func_create_megatestdir): Create also an autobuild
61520         script, for submission to autobuild.josefsson.org.
61521
61522 2007-03-10  Bruno Haible  <bruno@clisp.org>
61523
61524         * modules/canonicalize-lgpl-tests: New file.
61525         * tests/test-canonicalize-lgpl.sh: New file.
61526         * tests/test-canonicalize-lgpl.c: New file.
61527
61528         * modules/c-strcase-tests: New file.
61529         * tests/test-c-strcase.sh: New file.
61530         * tests/test-c-strcasecmp.c: New file.
61531         * tests/test-c-strncasecmp.c: New file.
61532
61533         * modules/atexit-tests: New file.
61534         * tests/test-atexit.sh: New file.
61535         * tests/test-atexit.c: New file.
61536
61537 2007-03-10  Bruno Haible  <bruno@clisp.org>
61538
61539         * tests/test-binary-io.sh: Use temporary filenames that are not so
61540         likely to clash with those of other tests (in a parallel make).
61541         * tests/test-binary-io.c: Likewise.
61542
61543 2007-03-10  Bruno Haible  <bruno@clisp.org>
61544
61545         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
61546         fallback; use #error instead.
61547         Suggested by Simon Josefsson.
61548
61549 2007-03-10  Bruno Haible  <bruno@clisp.org>
61550
61551         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
61552         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
61553         first and the last.
61554
61555 2007-03-10  Bruno Haible  <bruno@clisp.org>
61556
61557         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
61558
61559 2007-03-10  Bruno Haible  <bruno@clisp.org>
61560
61561         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
61562         "make distcheck".
61563         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
61564         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
61565         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
61566
61567 2007-03-10  Bruno Haible  <bruno@clisp.org>
61568
61569         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
61570         variable.
61571         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
61572         variable.
61573
61574 2007-03-09  Eric Blake  <ebb9@byu.net>
61575         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
61576
61577         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
61578         types are not being provided by gnulib.
61579         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
61580         types are supported.
61581
61582 2007-03-10  Bruno Haible  <bruno@clisp.org>
61583
61584         * lib/stdio_.h (__attribute__): New macro.
61585         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
61586         vsprintf): Specify __attribute__ __format__ for GCC.
61587         Suggested by Eric Blake.
61588
61589 2007-03-09  Bruno Haible  <bruno@clisp.org>
61590
61591         * modules/printf-posix-tests: New file.
61592         * tests/test-printf-posix.sh: New file.
61593         * tests/test-printf-posix.c: New file.
61594
61595         * modules/printf-posix: New file.
61596         * lib/printf.c: New file.
61597         * m4/printf-posix-rpl.m4: New file.
61598         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
61599         REPLACE_PRINTF.
61600         * lib/stdio_.h (printf): New declaration.
61601         (format, __format__, ____printf____, ____scanf____, ____strftime____,
61602         ____strfmon____): New macros.
61603         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
61604         REPLACE_PRINTF.
61605
61606 2007-03-09  Bruno Haible  <bruno@clisp.org>
61607
61608         * tests/test-vasnprintf-posix2.sh: New file.
61609         * tests/test-vasnprintf-posix2.c: New file.
61610         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
61611         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
61612         (Makefile.am): Activate test-vasnprintf-posix2.sh.
61613
61614         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
61615         a locale dependent decimal point, rather than always '.'.
61616
61617 2007-03-09  Eric Blake  <ebb9@byu.net>
61618
61619         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
61620         spite of platforms like Tandem/NSK that define it to -1.
61621
61622 2007-03-08  Bruno Haible  <bruno@clisp.org>
61623
61624         * modules/vprintf-posix-tests: New file.
61625         * tests/test-vprintf-posix.sh: New file.
61626         * tests/test-vprintf-posix.c: New file.
61627         * tests/test-printf-posix.h: New file.
61628
61629         * modules/vprintf-posix: New file.
61630         * lib/vprintf.c: New file.
61631         * m4/vprintf-posix.m4: New file.
61632         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
61633         REPLACE_VPRINTF.
61634         * lib/stdio_.h (vprintf): New declaration.
61635         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
61636         REPLACE_VPRINTF.
61637
61638 2007-03-08  Bruno Haible  <bruno@clisp.org>
61639
61640         * modules/fprintf-posix-tests: New file.
61641         * tests/test-fprintf-posix.sh: New file.
61642         * tests/test-fprintf-posix.c: New file.
61643
61644         * modules/fprintf-posix: New file.
61645         * lib/fprintf.c: New file.
61646         * m4/fprintf-posix.m4: New file.
61647         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
61648         REPLACE_FPRINTF.
61649         * lib/stdio_.h (fprintf): New declaration.
61650         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
61651         REPLACE_FPRINTF.
61652
61653 2007-03-08  Bruno Haible  <bruno@clisp.org>
61654
61655         * modules/vfprintf-posix-tests: New file.
61656         * tests/test-vfprintf-posix.sh: New file.
61657         * tests/test-vfprintf-posix.c: New file.
61658         * tests/test-fprintf-posix.h: New file.
61659         * tests/test-fprintf-posix.out: New file.
61660
61661         * modules/vfprintf-posix: New file.
61662         * lib/vfprintf.c: New file.
61663         * m4/vfprintf-posix.m4: New file.
61664         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
61665         REPLACE_VFPRINTF.
61666         * lib/stdio_.h (vfprintf): New declaration.
61667         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
61668         REPLACE_VFPRINTF.
61669
61670 2007-03-08  Bruno Haible  <bruno@clisp.org>
61671
61672         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
61673
61674 2007-03-08  Bruno Haible  <bruno@clisp.org>
61675
61676         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
61677         instead of 'expr' invocations.
61678         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
61679         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
61680         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
61681         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
61682         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
61683         Suggested by Paul Eggert.
61684
61685 2007-03-08  Bruno Haible  <bruno@clisp.org>
61686
61687         * modules/fseterr-tests: New file.
61688         * tests/test-fseterr.c: New file.
61689
61690         * modules/fseterr: New file.
61691         * lib/fseterr.h: New file.
61692         * lib/fseterr.c: New file.
61693
61694 2007-03-08  Bruno Haible  <bruno@clisp.org>
61695
61696         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
61697         * lib/getopt_.h: Likewise.
61698         * lib/mbswidth.h: Likewise.
61699         * lib/setenv.h: Likewise.
61700         * lib/vasnprintf.h: Likewise.
61701         * lib/vasprintf.h: Likewise.
61702         * lib/verror.h: Likewise.
61703         * lib/xsetenv.h: Likewise.
61704         * lib/xvasprintf.h: Likewise.
61705
61706 2007-03-08  Jim Meyering  <jim@meyering.net>
61707
61708         * users.txt: Add parted.
61709
61710         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
61711
61712 2007-03-07  Bruno Haible  <bruno@clisp.org>
61713
61714         * m4/printf.m4: Make the shell script snippets copy&pastable.
61715
61716 2007-03-02  Bruno Haible  <bruno@clisp.org>
61717
61718         * lib/netinet_in_.h: New file.
61719         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
61720         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
61721         * modules/netinet_in (Files): Add lib/netinet_in_.h.
61722         (Depends-on): Add absolute-header.
61723         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
61724         into netinet/in.h.
61725
61726 2007-03-03  Bruno Haible  <bruno@clisp.org>
61727
61728         * lib/sys_select_.h: New file.
61729         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
61730         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
61731         * modules/sys_select (Files): Add lib/sys_select_.h.
61732         (Depends-on): Add absolute-header.
61733         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
61734         into sys/select.h.
61735
61736 2007-03-02  Bruno Haible  <bruno@clisp.org>
61737
61738         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
61739         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
61740         values.
61741         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
61742         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
61743         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
61744         * modules/sys_socket (Depends-on): Add absolute-header.
61745         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
61746         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
61747         (Include): Remove requirement of inclusion of <sys/types.h>.
61748
61749 2007-03-02  Bruno Haible  <bruno@clisp.org>
61750
61751         * lib/byteswap_.h (bswap_32): Fix formula.
61752
61753 2007-03-06  Bruno Haible  <bruno@clisp.org>
61754
61755         * modules/sprintf-posix-tests: New file.
61756         * tests/test-sprintf-posix.c: New file.
61757
61758         * modules/sprintf-posix: New file.
61759         * lib/sprintf.c: New file.
61760         * m4/sprintf-posix.m4: New file.
61761         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
61762         REPLACE_SPRINTF.
61763         * lib/stdio_.h (sprintf): New declaration.
61764         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
61765         REPLACE_SPRINTF.
61766
61767 2007-03-06  Bruno Haible  <bruno@clisp.org>
61768
61769         * modules/vsprintf-posix-tests: New file.
61770         * tests/test-vsprintf-posix.c: New file.
61771         * tests/test-sprintf-posix.h: New file.
61772
61773         * modules/vsprintf-posix: New file.
61774         * lib/vsprintf.c: New file.
61775         * m4/vsprintf-posix.m4: New file.
61776         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
61777         REPLACE_VSPRINTF.
61778         * lib/stdio_.h (vsprintf): New declaration.
61779         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
61780         REPLACE_VSPRINTF.
61781
61782 2007-03-06  Bruno Haible  <bruno@clisp.org>
61783
61784         * modules/vsnprintf (Depend-on): Remove minmax.
61785
61786 2007-03-06  Bruno Haible  <bruno@clisp.org>
61787
61788         * modules/snprintf-posix-tests: New file.
61789         * tests/test-snprintf-posix.c: New file.
61790
61791         * modules/snprintf-posix: New file.
61792         * m4/snprintf-posix.m4: New file.
61793         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
61794         gl_FUNC_SNPRINTF.
61795         (gl_FUNC_SNPRINTF): Invoke it.
61796         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
61797         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
61798         is set.
61799         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
61800
61801 2007-03-06  Bruno Haible  <bruno@clisp.org>
61802
61803         * modules/vsnprintf-posix-tests: New file.
61804         * tests/test-vsnprintf-posix.c: New file.
61805         * tests/test-snprintf-posix.h: New file.
61806
61807         * modules/vsnprintf-posix: New file.
61808         * m4/vsnprintf-posix.m4: New file.
61809         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
61810         gl_FUNC_VSNPRINTF.
61811         (gl_FUNC_VSNPRINTF): Invoke it.
61812         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
61813         * lib/stdio_.h (vsnprintf): Define as a replacement if
61814         REPLACE_VSNPRINTF is set.
61815         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
61816
61817 2007-03-06  Bruno Haible  <bruno@clisp.org>
61818
61819         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
61820         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
61821
61822 2007-03-06  Bruno Haible  <bruno@clisp.org>
61823
61824         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
61825         (asinl): Declare also if HAVE_DECL_ASINL is set.
61826         (atanl): Declare also if HAVE_DECL_ATANL is set.
61827         (ceill): Declare also if HAVE_DECL_CEILL is set.
61828         (cosl): Declare also if HAVE_DECL_COSL is set.
61829         (expl): Declare also if HAVE_DECL_EXPL is set.
61830         (floorl): Declare also if HAVE_DECL_FLOORL is set.
61831         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
61832         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
61833         (logl): Declare also if HAVE_DECL_LOGL is set.
61834         (sinl): Declare also if HAVE_DECL_SINL is set.
61835         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
61836         (tanl): Declare also if HAVE_DECL_TANL is set.
61837         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
61838         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
61839         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
61840         declaration of frexpl, ldexpl.
61841         * modules/printf-frexpl (Depends-on): Add math.
61842         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
61843
61844 2007-03-05  Bruno Haible  <bruno@clisp.org>
61845
61846         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
61847         frexpl and ldexpl are declared.
61848         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
61849
61850 2007-03-05  Bruno Haible  <bruno@clisp.org>
61851
61852         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
61853         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
61854
61855 2007-03-05  Bruno Haible  <bruno@clisp.org>
61856
61857         * lib/stdio_.h: Include <stddef.h>.
61858
61859 2007-03-05  Bruno Haible  <bruno@clisp.org>
61860
61861         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
61862
61863 2007-03-05  Bruno Haible  <bruno@clisp.org>
61864
61865         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
61866         NetBSD 4, from Ralf Wildenhues.
61867
61868 2007-03-04  Bruno Haible  <bruno@clisp.org>
61869
61870         * lib/vasprintf.h: Update #if logic for the case when the functions
61871         exist but are overridden.
61872
61873 2007-03-04  Bruno Haible  <bruno@clisp.org>
61874
61875         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
61876         implementations: glibc-2.4 and MacOS X 10.3.
61877         * tests/test-vasnprintf-posix.c (test_function): Test also the case
61878         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
61879         * tests/test-vasprintf-posix.c (test_function): Likewise.
61880
61881 2007-03-04  Bruno Haible  <bruno@clisp.org>
61882
61883         * modules/vasprintf-posix-tests: New file.
61884         * tests/test-vasprintf-posix.c: New file.
61885
61886         * modules/vasprintf-posix: New file.
61887         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
61888         defined.
61889         * m4/vasprintf-posix.m4: New file.
61890         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
61891         gl_FUNC_VASPRINTF.
61892         (gl_FUNC_VASPRINTF): Invoke it.
61893         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
61894         here.
61895         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
61896
61897 2007-03-04  Bruno Haible  <bruno@clisp.org>
61898
61899         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
61900         REPLACE_GETTIMEOFDAY.
61901         * modules/sys_time (Makefile.am): Likewise.
61902         * m4/sys_time_h.m4: Likewise.
61903         * m4/gettimeofday.m4: Likewise.
61904
61905 2007-03-04  Bruno Haible  <bruno@clisp.org>
61906
61907         * modules/vasnprintf-posix-tests: New file.
61908         * tests/test-vasnprintf-posix.c: New file.
61909
61910         * modules/vasnprintf-posix: New file.
61911         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
61912         printf-frexpl.h.
61913         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
61914         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
61915         REPLACE_VASNPRINTF is defined.
61916         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
61917         gl_FUNC_VASNPRINTF.
61918         (gl_FUNC_VASNPRINTF): Invoke it.
61919         * m4/vasnprintf-posix.m4: New file.
61920         * m4/printf.m4: New file.
61921
61922 2007-03-04  Bruno Haible  <bruno@clisp.org>
61923
61924         Compile progreloc.c only if --enable-relocatable is specified.
61925         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
61926         if --enable-relocatable was specified.
61927         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
61928         lib_SOURCES.
61929
61930 2007-03-04  Jim Meyering  <jim@meyering.net>
61931
61932         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
61933         Use it consistently, rather than enumerating errno constants.
61934
61935 2007-03-04  Bruno Haible  <bruno@clisp.org>
61936
61937         * modules/xvasprintf-tests: New file.
61938         * tests/test-xvasprintf.c: New file.
61939
61940         * modules/vasprintf-tests: New file.
61941         * tests/test-vasprintf.c: New file.
61942
61943         * modules/vasnprintf-tests: New file.
61944         * tests/test-vasnprintf.c: New file.
61945
61946         * modules/vsnprintf-tests: New file.
61947         * tests/test-vsnprintf.c: New file.
61948
61949         * modules/snprintf-tests: New file.
61950         * tests/test-snprintf.c: New file.
61951
61952 2007-03-04  Bruno Haible  <bruno@clisp.org>
61953
61954         Compile relocatable.c only if --enable-relocatable is specified.
61955         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
61956         gl_RELOCATABLE_LIBRARY.
61957         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
61958         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
61959         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
61960         gl_RELOCATABLE_LIBRARY.
61961         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
61962         (Makefile.am): Remove lib_SOURCES.
61963         * modules/relocatable-lib-lgpl (configure.ac): Invoke
61964         gl_RELOCATABLE_LIBRARY.
61965         (Makefile.am): Remove lib_SOURCES.
61966         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
61967         always.
61968         * modules/relocatable-prog-wrapper (configure.ac): Invoke
61969         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
61970
61971 2007-03-04  Bruno Haible  <bruno@clisp.org>
61972
61973         * modules/argmatch-tests: New file.
61974         * tests/test-argmatch.c: New file.
61975
61976         * tests/test-allocsa.c (main): Halve the number of loop runs.
61977
61978         * modules/alloca-opt-tests: New file.
61979         * tests/test-alloca-opt.c: New file.
61980
61981 2007-03-04  Jim Meyering  <jim@meyering.net>
61982
61983         Work around difference between Linux ACLs and Solaris 10 ZFS.
61984         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
61985         for EINVAL.
61986
61987 2007-03-03  Bruno Haible  <bruno@clisp.org>
61988
61989         * modules/relocatable-prog (Depends-on): Add back progreloc's
61990         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
61991
61992 2007-03-03  Bruno Haible  <bruno@clisp.org>
61993
61994         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
61995         * modules/relocatable-lib: New file.
61996
61997 2007-03-03  Bruno Haible  <bruno@clisp.org>
61998
61999         * modules/relocatable-prog: Renamed from modules/relocatable.
62000         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
62001
62002 2007-03-03  Bruno Haible  <bruno@clisp.org>
62003
62004         * modules/relocatable-script (Files): Add doc/relocatable.texi,
62005         m4/relocatable-lib.m4.
62006         (Depends-on): Remove 'relocatable'.
62007         (configure.ac): Add gl_RELOCATABLE_NOP.
62008
62009 2007-03-03  Bruno Haible  <bruno@clisp.org>
62010
62011         * modules/relocatable-prog-wrapper: New file.
62012         * modules/relocatable (Depends-on): Add it. Remove all other
62013         dependencies except progname.
62014         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
62015
62016         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
62017         (gl_FUNC_STRERROR): Nop.
62018         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
62019
62020         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
62021         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
62022
62023         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
62024         (gl_FUNC_READLINK): Update.
62025
62026         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
62027
62028 2007-03-03  Bruno Haible  <bruno@clisp.org>
62029
62030         * lib/xreadlink.c: Include <unistd.h> unconditionally.
62031         * modules/xreadlink (Depends-on): Add unistd.
62032         * modules/xreadlink-with-size (Depends-on): Likewise.
62033
62034 2007-03-03  Bruno Haible  <bruno@clisp.org>
62035
62036         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
62037         extracted from gt_FUNC_SETENV.
62038         (gt_FUNC_SETENV): Remove macro.
62039         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
62040         remove gt_FUNC_SETENV.
62041
62042 2007-03-03  Bruno Haible  <bruno@clisp.org>
62043
62044         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
62045         ENABLE_RELOCATABLE here.
62046         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
62047
62048 2007-03-03  Bruno Haible  <bruno@clisp.org>
62049
62050         * modules/rbtreehash-list-tests (Depends-on): Add progname.
62051         * tests/test-rbtreehash_list.c: Include progname.h.
62052         (main): Call set_program_name.
62053
62054         * modules/rbtree-oset-tests (Depends-on): Add progname.
62055         * tests/test-rbtree_oset.c: Include progname.h.
62056         (main): Call set_program_name.
62057
62058         * modules/rbtree-list-tests (Depends-on): Add progname.
62059         * tests/test-rbtree_list.c: Include progname.h.
62060         (main): Call set_program_name.
62061
62062         * modules/linked-list-tests (Depends-on): Add progname.
62063         * tests/test-linked_list.c: Include progname.h.
62064         (main): Call set_program_name.
62065
62066 2007-03-03  Bruno Haible  <bruno@clisp.org>
62067
62068         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
62069         All uses of __restrict changed to _Restrict_.
62070         * lib/glob_.h (__restrict): Remove macro.
62071
62072 2007-03-02  Bruno Haible  <bruno@clisp.org>
62073
62074         * modules/gettext (configure.ac): Require gettext infrastructure
62075         from version 0.16.1.
62076
62077 2007-03-02  Bruno Haible  <bruno@clisp.org>
62078
62079         * modules/linkedhash-list-tests (Depends-on): Add progname.
62080         * tests/test-linkedhash_list.c: Include progname.h.
62081         (main): Call set_program_name.
62082
62083         * modules/carray-list-tests (Depends-on): Add progname.
62084         * tests/test-carray_list.c: Include progname.h.
62085         (main): Call set_program_name.
62086
62087         * modules/avltreehash-list-tests (Depends-on): Add progname.
62088         * tests/test-avltreehash_list.c: Include progname.h.
62089         (main): Call set_program_name.
62090
62091         * modules/avltree-oset-tests (Depends-on): Add progname.
62092         * tests/test-avltree_oset.c: Include progname.h.
62093         (main): Call set_program_name.
62094
62095         * modules/avltree-list-tests (Depends-on): Add progname.
62096         * tests/test-avltree_list.c: Include progname.h.
62097         (main): Call set_program_name.
62098
62099         * modules/array-oset-tests (Depends-on): Add progname.
62100         * tests/test-array_oset.c: Include progname.h.
62101         (main): Call set_program_name.
62102
62103         * modules/array-list-tests (Depends-on): Add progname.
62104         * tests/test-array_list.c: Include progname.h.
62105         (main): Call set_program_name.
62106
62107         * modules/argp-tests (Depends-on): Add progname.
62108         * tests/test-argp.c: Include argp.h first. Include progname.h.
62109         (main): Call set_program_name.
62110
62111 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
62112
62113         * doc/gnulib-tool.texi (Initial import): Reword description of
62114         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
62115         limited effect even if defined after the first system include.
62116
62117 2007-03-01  Bruno Haible  <bruno@clisp.org>
62118
62119         * build-aux/config.libpath: Update to libtool-1.5.22.
62120         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
62121
62122 2007-03-01  Bruno Haible  <bruno@clisp.org>
62123
62124         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
62125         foo_CFLAGS.
62126         Reported by Ralf Wildenhues.
62127
62128 2007-03-01  Bruno Haible  <bruno@clisp.org>
62129
62130         * build-aux/install-reloc: Remove object files left over by some
62131         compilers.
62132         Reported by Ralf Wildenhues.
62133
62134 2007-03-01  Bruno Haible  <bruno@clisp.org>
62135
62136         * build-aux/install-reloc: Break long lines.
62137
62138 2007-03-01  Bruno Haible  <bruno@clisp.org>
62139
62140         * doc/relocatable.texi: Document that it may not work on OpenBSD.
62141         Reported by Ralf Wildenhues.
62142
62143 2007-03-01  Bruno Haible  <bruno@clisp.org>
62144
62145         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
62146         include ordering constraints.
62147
62148 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
62149
62150         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
62151         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
62152         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
62153         as another example.
62154         * lib/time_.h: Fix misspelling.
62155         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
62156         Require gl_HEADER_TIME_H_DEFAULTS.
62157         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
62158         * m4/time_r.m4 (gl_TIME_R): Likewise.
62159         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
62160
62161 2007-03-01  Bruno Haible  <bruno@clisp.org>
62162
62163         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
62164         * m4/utimens.m4 (gl_UTIMENS): Likewise.
62165
62166 2007-03-01  Jim Meyering  <jim@meyering.net>
62167
62168         * modules/xreadlink (Maintainer): Add my name.
62169         * modules/xreadlink-with-size (Depends-on): Alphabetize.
62170
62171 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
62172             Bruno Haible  <bruno@clisp.org>
62173
62174         * build-aux/install-reloc: Compile also c-ctype.c.
62175         * build-aux/relocatable.sh.in: New file.
62176         * doc/relocatable.texi: New file.
62177         * doc/relocatable-maint.texi: New file.
62178         * doc/gnulib.texi: Include relocatable-maint.texi.
62179         * lib/progreloc.c: Include unistd.h unconditionally.
62180         * lib/relocwrapper.c: Include unistd.h unconditionally.
62181         Include c-ctype.h.
62182         (add_dotbin): Use c_tolower.
62183         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
62184         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
62185         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
62186         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
62187         to m4/relocatable-lib.m4.
62188         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
62189         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
62190         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
62191         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
62192         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
62193         * modules/relocatable: New file.
62194         * modules/relocatable-lib: New file.
62195         * modules/relocatable-script: New file.
62196
62197 2007-02-28  Bruno Haible  <bruno@clisp.org>
62198
62199         Import --enable-relocatable infrastructure.
62200         * build-aux/config.libpath: New file, from GNU gettext.
62201         * build-aux/install-reloc: New file, from GNU gettext.
62202         * build-aux/reloc-ldflags: New file, from GNU gettext.
62203         * lib/relocatable.h: New file, from GNU gettext.
62204         * lib/relocatable.c: New file, from GNU gettext.
62205         * lib/relocwrapper.c: New file, from GNU gettext.
62206         * m4/relocatable.m4: New file, from GNU gettext.
62207
62208 2007-02-28  Bruno Haible  <bruno@clisp.org>
62209
62210         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
62211
62212         * modules/xreadlink: New file, from GNU gettext with modifications.
62213         * lib/xreadlink.c: New file, from GNU gettext.
62214         * lib/xreadlink.h: Add comments.
62215         (xreadlink): New declaration.
62216
62217         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
62218         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
62219         lib/xreadlink-with-size.c.
62220         (configure.ac): Remove gl_XREADLINK invocation.
62221         (Makefile.am): Augment lib_SOURCES.
62222         * m4/xreadlink.m4: Remove file.
62223         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
62224         (xreadlink_with_size): Renamed from xreadink.
62225         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
62226         * modules/canonicalize (Depends-on): Replace xreadlink with
62227         xreadlink-with-size.
62228         * lib/canonicalize.c (canonicalize_filename_mode): Update.
62229
62230 2007-02-25  Jim Meyering  <jim@meyering.net>
62231
62232         * build-aux/announce-gen: When complaining about excess arguments,
62233         list them.
62234
62235 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
62236
62237         * README: Document signed integer overflow situation more
62238         accurately.
62239
62240 2007-02-25  Bruno Haible  <bruno@clisp.org>
62241
62242         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
62243         'a' or 'A' conversion.
62244
62245 2007-02-25  Bruno Haible  <bruno@clisp.org>
62246
62247         * modules/filename: Renamed from modules/pathname.
62248         (Files): Replace lib/pathname.h with lib/filename.h. Replace
62249         lib/concatpath.c with lib/concat-filename.c.
62250         (Makefile.am): Update.
62251         (Include): Replace pathname.h with filename.h.
62252         * lib/filename.h: Renamed from lib/pathname.h.
62253         (concatenated_filename): Renamed from concatenated_pathname.
62254         * lib/concat-filename.c: Renamed from lib/concatpath.c.
62255         (concatenated_filename): Renamed from concatenated_pathname.
62256         * lib/findprog.c: Include filename.h instead of pathname.h.
62257         (find_in_path): Update.
62258         * lib/javacomp.c: Include filename.h instead of pathname.h.
62259         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
62260         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
62261         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
62262         is_oldgcj_14_13_usable, is_javac_usable): Update.
62263         * lib/javaexec.c: Include filename.h instead of pathname.h.
62264         (execute_java_class): Update.
62265         * modules/findprog: Update.
62266         * modules/javacomp: Update.
62267         * modules/javaexec: Update.
62268         * MODULES.html.sh (File system functions): Add 'filename', remove
62269         'pathname'.
62270
62271 2007-02-25  Bruno Haible  <bruno@clisp.org>
62272
62273         * modules/printf-frexpl-tests: New file.
62274         * tests/test-printf-frexpl.c: New file.
62275
62276         * modules/printf-frexpl: New file.
62277         * lib/printf-frexpl.h: New file.
62278         * lib/printf-frexpl.c: New file.
62279         * m4/printf-frexpl.m4: New file.
62280
62281 2007-02-25  Bruno Haible  <bruno@clisp.org>
62282
62283         * modules/printf-frexp-tests: New file.
62284         * tests/test-printf-frexp.c: New file.
62285
62286         * modules/printf-frexp: New file.
62287         * lib/printf-frexp.h: New file.
62288         * lib/printf-frexp.c: New file.
62289         * m4/printf-frexp.m4: New file.
62290
62291 2007-02-25  Bruno Haible  <bruno@clisp.org>
62292
62293         Assume automake >= 1.10 for the tests.
62294         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
62295         * modules/arctwo-tests: Likewise.
62296         * modules/argp-tests: Likewise.
62297         * modules/avltree-list-tests: Likewise.
62298         * modules/avltree-oset-tests: Likewise.
62299         * modules/avltreehash-list-tests: Likewise.
62300         * modules/carray-list-tests: Likewise.
62301         * modules/crc-tests: Likewise.
62302         * modules/des-tests: Likewise.
62303         * modules/gc-arcfour-tests: Likewise.
62304         * modules/gc-arctwo-tests: Likewise.
62305         * modules/gc-des-tests: Likewise.
62306         * modules/gc-hmac-md5-tests: Likewise.
62307         * modules/gc-hmac-sha1-tests: Likewise.
62308         * modules/gc-md2-tests: Likewise.
62309         * modules/gc-md4-tests: Likewise.
62310         * modules/gc-md5-tests: Likewise.
62311         * modules/gc-pbkdf2-sha1-tests: Likewise.
62312         * modules/gc-rijndael-tests: Likewise.
62313         * modules/gc-sha1-tests: Likewise.
62314         * modules/gc-tests: Likewise.
62315         * modules/getaddrinfo-tests: Likewise.
62316         * modules/hmac-md5-tests: Likewise.
62317         * modules/hmac-sha1-tests: Likewise.
62318         * modules/linked-list-tests: Likewise.
62319         * modules/linkedhash-list-tests: Likewise.
62320         * modules/lock-tests: Likewise.
62321         * modules/md2-tests: Likewise.
62322         * modules/md4-tests: Likewise.
62323         * modules/md5-tests: Likewise.
62324         * modules/rbtree-list-tests: Likewise.
62325         * modules/rbtree-oset-tests: Likewise.
62326         * modules/rbtreehash-list-tests: Likewise.
62327         * modules/read-file-tests: Likewise.
62328         * modules/rijndael-tests: Likewise.
62329         * modules/stdint-tests: Likewise.
62330         * modules/tls-tests: Likewise.
62331
62332 2007-02-24  Bruno Haible  <bruno@clisp.org>
62333
62334         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
62335         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
62336         function; instead check whether isnan with a double argument links.
62337         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
62338         function; instead check whether isnan with a 'long double' argument
62339         links.
62340         Reported by Eric Blake <ebb9@byu.net>.
62341
62342 2007-02-24  Bruno Haible  <bruno@clisp.org>
62343
62344         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
62345         defined.
62346         * lib/isnanl.c: Remove all code. Just include isnan.c.
62347         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
62348
62349 2007-02-25  Jim Meyering  <jim@meyering.net>
62350
62351         Avoid conflicting types for 'unsetenv' on FreeBSD.
62352         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
62353         conflicting with FreeBSD's (5.0 and 6.1) function declaration
62354         in stdlib.h.
62355
62356 2007-02-24  Bruno Haible  <bruno@clisp.org>
62357
62358         * modules/isnanl-nolibm-tests: New file.
62359         * tests/test-isnanl.c: New file.
62360
62361         * modules/isnanl-nolibm: New file.
62362         * lib/isnanl.h: New file.
62363         * lib/isnanl.c: New file.
62364         * m4/isnanl.m4: New file.
62365
62366 2007-02-24  Bruno Haible  <bruno@clisp.org>
62367
62368         * modules/isnan-nolibm-tests: New file.
62369         * tests/test-isnan.c: New file.
62370
62371         * modules/isnan-nolibm: New file.
62372         * lib/isnan.h: New file.
62373         * lib/isnan.c: New file.
62374         * m4/isnan.m4: New file.
62375
62376 2007-02-24  Bruno Haible  <bruno@clisp.org>
62377
62378         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
62379         assume that an exponent fits in 20 bits.
62380
62381 2007-02-24  Jim Meyering  <jim@meyering.net>
62382
62383         * m4/regex.m4: Update the description of the configure-time option,
62384         --without-included-regex, to state accurately what the defaults are,
62385         and perhaps to give people an idea why using this option is risky.
62386
62387 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
62388
62389         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
62390         loops on small arguments.  This attempts to avoid the problem
62391         Bruno Haible reported for AIX 4.3.2 in
62392         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
62393
62394 2007-02-23  Bruno Haible  <bruno@clisp.org>
62395
62396         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
62397         Needed for help2man.
62398
62399 2007-02-23  Karl Berry  <karl@gnu.org>
62400
62401         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
62402         exists, foo.h should be cvs-ignored, not committed.
62403
62404 2007-02-23  Eric Blake  <ebb9@byu.net>
62405
62406         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
62407         * lib/stat-time.h (includes): Likewise.
62408         * lib/utimecmp.c (includes): Likewise.
62409         * lib/utimens.h (includes): Likewise.
62410         * lib/getdate.y (includes): Also include "timespec.h" for use
62411         internal to the module.
62412         * modules/utimens (Depends-on): Revert yesterday's patch.
62413         * modules/nanosleep (Depends-on): Add missing dependency.
62414
62415 2007-02-22  Bruno Haible  <bruno@clisp.org>
62416
62417         * lib/glob.c: Don't include getlogin_r.h.
62418
62419 2007-02-22  Jim Meyering  <jim@meyering.net>
62420
62421         * modules/utimens (Depends-on): Add timespec, required for
62422         utimens.h's inclusion of timespec.h.
62423
62424 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
62425
62426         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
62427         long unreadable paths in GNU/Linux.  Problem reported by Andreas
62428         Schwab in
62429         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
62430         I'll try to think of a better way to fix the Solaris problem.
62431
62432         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
62433         like glibc; on Solaris 10, it fails with errno == EINVAL.
62434         POSIX says the behavior is unspecified if the first argument is NULL,
62435         so play it safe and never pass NULL to the system getcwd.
62436
62437 2007-02-21  Jim Meyering  <jim@meyering.net>
62438
62439         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
62440         of gettimeofday.  It would conflict with the one now always
62441         provided via sys_time_.h.  Reported by Matthew Woehlke, as
62442         an IRIX 6.5 build failure.
62443
62444 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
62445
62446         Minor fixups to port to Solaris 10 with Sun C 5.8.
62447         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
62448         * modules/getcwd (Depends-on): Add dirfd.
62449         * lib/putenv.c (putenv): #undef it.
62450         (rpl_putenv): New decl.
62451         (malloc, free): Include <stdlib.h> rather than prototyping separately.
62452
62453 2007-02-20  Bruno Haible  <bruno@clisp.org>
62454
62455         * modules/stdio-tests: New file.
62456         * tests/test-stdio.c: New file.
62457
62458         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
62459         (Depends-on): Add stdio.
62460         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
62461         (Include): Use <stdio.h> instead of vsnprintf.h.
62462         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
62463         HAVE_DECL_VSNPRINTF.
62464         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
62465
62466         * modules/snprintf (Files): Remove lib/snprintf.h.
62467         (Depends-on): Add stdio.
62468         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
62469         (Include): Use <stdio.h> instead of snprintf.h.
62470         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
62471         HAVE_DECL_SNPRINTF.
62472         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
62473         * lib/getaddrinfo.c: Likewise.
62474
62475         * modules/stdio: New file.
62476         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
62477         * lib/snprintf.h: Remove file.
62478         * lib/vsnprintf.h: Remove file.
62479         * lib/.cppi-disable: Remove snprintf.h.
62480         * m4/stdio_h.m4: New file.
62481         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
62482
62483 2007-02-20  Jim Meyering  <jim@meyering.net>
62484
62485         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
62486         used by e.g., mingw.  From Bruno Haible.
62487
62488 2007-02-19  Bruno Haible  <bruno@clisp.org>
62489
62490         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
62491         warnings.
62492         Reported by Ben Pfaff <blp@cs.stanford.edu>.
62493
62494 2007-02-19  Bruno Haible  <bruno@clisp.org>
62495
62496         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
62497         from mingw users.
62498
62499 2007-02-19  Bruno Haible  <bruno@clisp.org>
62500
62501         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
62502         warnings.
62503         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
62504
62505 2007-02-19  Jim Meyering  <jim@meyering.net>
62506
62507         Don't use FD after a successful "fdopendir (fd)".
62508         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
62509         Reset it by calling dirfd on the just-obtained DIR*.
62510
62511         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
62512         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
62513
62514 2007-02-18  Bruno Haible  <bruno@clisp.org>
62515
62516         * lib/readlink.c: Include <unistd.h>.
62517         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
62518         HAVE_READLINK.
62519         * modules/readlink (Depends-on): Add unistd.
62520         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
62521         (Include): Add <unistd.h>.
62522
62523         * lib/getlogin_r.h: Remove file.
62524         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
62525         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
62526         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
62527         HAVE_DECL_GETLOGIN_R.
62528         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
62529         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
62530         (Include): Use <unistd.h> instead of getlogin_r.h.
62531
62532         * lib/getcwd.h: Remove file.
62533         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
62534         * lib/xgetcwd.c: Likewise.
62535         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
62536         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
62537         * modules/getcwd (Files): Remove lib/getcwd.h.
62538         (Depends-on): Add unistd.
62539         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
62540         (Include): Use <unistd.h> instad of getcwd.h.
62541
62542         * lib/ftruncate.c: Include <unistd.h> first.
62543         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
62544         Set HAVE_FTRUNCATE.
62545         * modules/ftruncate (Depends-on): Add unistd.
62546         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
62547
62548         * lib/fchdir.c: Include <unistd.h> first.
62549         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
62550         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
62551         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
62552         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
62553         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
62554
62555         * lib/dup2.c: Include <unistd.h> first.
62556         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
62557         HAVE_DUP2.
62558         * modules/dup2 (Depends-on): Add unistd.
62559         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
62560
62561         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
62562         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
62563         REPLACE_CHOWN. Don't define chown as a macro here.
62564         * modules/chown (Depends-on): Add unistd.
62565         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
62566
62567         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
62568         Add definition for GL_LINK_WARNING.
62569         (chown, dup2): New declarations.
62570         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
62571         link warning.
62572         (ftruncate): New declaration.
62573         (getcwd): New declaration, taken from old getcwd.h.
62574         (getlogin_r): New declaration, taken from old getlogin_r.h.
62575         (readlink): New declaration.
62576         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
62577         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
62578         (gl_PREREQ_UNISTD): Remove macro.
62579         (gl_UNISTD_MODULE_INDICATOR): New macro.
62580         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
62581         many new variables. Don't set UNISTD_H.
62582         * modules/unistd (Description): Change.
62583         (Depends-on): Add link-warning.
62584         (configure.ac): Update.
62585         (Makefile.am): Create unistd.h always. Substitute many new variables
62586         into it.
62587
62588 2007-02-18  Bruno Haible  <bruno@clisp.org>
62589
62590         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
62591         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
62592         HAVE_GETSUBOPT.
62593         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
62594         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
62595         * lib/getsubopt.h: Remove file.
62596         * modules/getsubopt (Files): Remove lib/getsubopt.h.
62597         (Depends-on): Add stdlib.
62598         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
62599         (Includes): Use <stdlib.h> instead of getsubopt.h.
62600         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
62601         Set HAVE_GETSUBOPT.
62602         * lib/getsubopt.c: Don't include getsubopt.h.
62603
62604 2007-02-18  Bruno Haible  <bruno@clisp.org>
62605
62606         * modules/fchdir (Depends-on): Add dup2.
62607
62608 2007-02-18  Bruno Haible  <bruno@clisp.org>
62609
62610         * lib/stdlib_.h: Handle glibc's special invocation convention
62611         specially.
62612
62613 2007-02-18  Bruno Haible  <bruno@clisp.org>
62614
62615         * modules/stdlib-tests: New file.
62616         * tests/test-stdlib.c: New file.
62617
62618         * modules/mkstemp (Files): Remove lib/mkstemp.h.
62619         (Depends-on): Add stdlib.
62620         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
62621         (Includes): Use <stdlib.h> instead of mkstemp.h.
62622         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
62623         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
62624         * lib/mkstemp.c: Don't include mkstemp.h.
62625         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
62626         * lib/stdlib--.h: Don't include mkstemp.h.
62627
62628         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
62629         (Depends-on): Add stdlib.
62630         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
62631         (Includes): Use <stdlib.h> instead of mkdtemp.h.
62632         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
62633         HAVE_MKDTEMP.
62634         * lib/mkdtemp.c: Don't include mkdtemp.h.
62635         * lib/clean-temp.c: Don't include mkdtemp.h.
62636
62637         * modules/exit (Files): Remove lib/exit.h.
62638         (Depends-on): Add stdlib.
62639         (Makefile.am): Remove lib_SOURCES.
62640         (Include): Use <stdlib.h> instead of exit.h.
62641         * lib/argmatch.c: Don't include exit.h.
62642         * lib/execute.c: Likewise.
62643         * lib/pagealign_alloc.c: Likewise.
62644         * lib/pipe.c: Likewise.
62645         * lib/wait-process.c: Likewise.
62646         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
62647         * lib/exitfail.c: Likewise.
62648         * lib/savewd.c: Likewise.
62649         * lib/xsetenv.c: Likewise.
62650
62651         * modules/stdlib: New file.
62652         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
62653         and extra comments about mkstemp().
62654         * lib/exit.h: Remove file.
62655         * lib/mkdtemp.h: Remove file.
62656         * lib/mkstemp.h: Remove file.
62657         * m4/stdlib_h.m4: New file.
62658         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
62659
62660 2007-02-18  Bruno Haible  <bruno@clisp.org>
62661
62662         * modules/math-tests: New file.
62663         * tests/test-math.c: New file.
62664
62665         * modules/math: New file.
62666         * modules/mathl (Files): Remove lib/mathl.h.
62667         (Depends-on): Add math.
62668         (Makefile.am): Don't mention mathl.h.
62669         (Include): Use <math.h> instead of mathl.h.
62670         * lib/math_.h: New file.
62671         * lib/mathl.h: Remove file.
62672         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
62673         mathl.h.
62674         * lib/asinl.c: Likewise.
62675         * lib/atanl.c: Likewise.
62676         * lib/ceill.c: Likewise.
62677         * lib/cosl.c: Likewise.
62678         * lib/expl.c: Likewise.
62679         * lib/floorl.c: Likewise.
62680         * lib/frexpl.c: Likewise.
62681         * lib/ldexpl.c: Likewise.
62682         * lib/logl.c: Likewise.
62683         * lib/sincosl.c: Likewise.
62684         * lib/sinl.c: Likewise.
62685         * lib/sqrtl.c: Likewise.
62686         * lib/tanl.c: Likewise.
62687         * lib/trigl.c: Likewise.
62688         * m4/math_h.m4: New file.
62689         * MODULES.html.sh (Mathematics): Add math.
62690
62691 2007-02-17  Bruno Haible  <bruno@clisp.org>
62692
62693         * modules/wctype-tests: New file.
62694         * tests/test-wctype.c: New file.
62695
62696         * modules/wchar-tests: New file.
62697         * tests/test-wchar.c: New file.
62698
62699         * modules/unistd-tests: New file.
62700         * tests/test-unistd.c: New file.
62701
62702         * modules/time-tests: New file.
62703         * tests/test-time.c: New file.
62704
62705         * modules/sysexits-tests: New file.
62706         * tests/test-sysexits.c: New file.
62707
62708         * modules/sys_time-tests: New file.
62709         * tests/test-sys_time.c: New file.
62710
62711         * modules/sys_stat-tests: New file.
62712         * tests/test-sys_stat.c: New file.
62713
62714         * modules/sys_socket-tests: New file.
62715         * tests/test-sys_socket.c: New file.
62716
62717         * modules/sys_select-tests: New file.
62718         * tests/test-sys_select.c: New file.
62719
62720         * modules/string-tests: New file.
62721         * tests/test-string.c: New file.
62722
62723         * modules/stdbool-tests: New file.
62724         * tests/test-stdbool.c: New file.
62725
62726         * modules/netinet_in-tests: New file.
62727         * tests/test-netinet_in.c: New file.
62728
62729         * modules/inttypes-tests: New file.
62730         * tests/test-inttypes.c: New file.
62731
62732         * modules/fcntl-tests: New file.
62733         * tests/test-fcntl.c: New file.
62734
62735         * modules/byteswap-tests: New file.
62736         * tests/test-byteswap.c: New file.
62737
62738         * modules/arpa_inet-tests: New file.
62739         * tests/test-arpa_inet.c: New file.
62740
62741 2007-02-17  Bruno Haible  <bruno@clisp.org>
62742
62743         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
62744         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
62745         if the corresponding module is not enabled. Emit link warnings if
62746         the function is used nevertheless.
62747         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
62748         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
62749         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
62750         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
62751         * modules/inttypes (Depends-on): Add link-warning.
62752         (Makefile.am): Copy the contents of build-aux/link-warning.h into
62753         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
62754         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
62755         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
62756         * modules/imaxdiv (configure.ac): Likewise.
62757         * modules/strtoimax (configure.ac): Likewise.
62758         * modules/strtoumax (configure.ac): Likewise.
62759
62760 2007-02-17  Bruno Haible  <bruno@clisp.org>
62761
62762         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
62763         gl_STRING_MODULE_INDICATOR_DEFAULTS.
62764         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
62765         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
62766
62767 2007-02-17  Bruno Haible  <bruno@clisp.org>
62768
62769         * modules/link-warning: New file.
62770         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
62771         * lib/string_.h (GL_LINK_WARNING): Remove definition.
62772         * modules/string (Depends-on): Add link-warning.
62773         (Makefile.am): Copy the contents of build-aux/link-warning.h into
62774         string.h.
62775         * MODULES.html.sh (Support for building libraries and executables): Add
62776         link-warning.
62777
62778 2007-02-17  Bruno Haible  <bruno@clisp.org>
62779
62780         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
62781         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
62782         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
62783         long lines.
62784
62785 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
62786             Bruno Haible  <bruno@clisp.org>
62787
62788         * modules/tmpfile: New file.
62789         * lib/tmpfile.c: New file.
62790         * m4/tmpfile.m4: New file.
62791         * MODULES.html.sh (func_all_modules): New section "Input/output".
62792
62793 2007-02-15  Bruno Haible  <bruno@clisp.org>
62794
62795         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
62796         (supports_delete_on_close): New function.
62797         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
62798
62799 2007-02-14  Bruno Haible  <bruno@clisp.org>
62800
62801         * modules/mbspcasecmp-tests: New file.
62802         * tests/test-mbspcasecmp.sh: New file.
62803         * tests/test-mbspcasecmp.c: New file.
62804
62805         New module mbspcasecmp.
62806         * modules/mbspcasecmp: New file.
62807         * lib/mbspcasecmp.c: New file.
62808         * lib/string_.h (strncasecmp): Change warning message.
62809         (mbspcasecmp): New declaration.
62810         * m4/mbspcasecmp.m4: New file.
62811         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
62812         GNULIB_MBSPCASECMP.
62813         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
62814         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
62815
62816 2007-02-14  Bruno Haible  <bruno@clisp.org>
62817
62818         * modules/mbsncasecmp-tests: New file.
62819         * tests/test-mbsncasecmp.sh: New file.
62820         * tests/test-mbsncasecmp.c: New file.
62821
62822         New module mbsncasecmp.
62823         * modules/mbsncasecmp: New file.
62824         * lib/mbsncasecmp.c: New file.
62825         * lib/string_.h (mbsncasecmp): New declaration.
62826         * m4/mbsncasecmp.m4: New file.
62827         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
62828         GNULIB_MBSNCASECMP.
62829         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
62830         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
62831
62832 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
62833
62834         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
62835         Verify that it doesn't overlap with our flags.
62836         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
62837         do not have the desired effect in multibyte locales; instead, use
62838         mbscasecmp.
62839         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
62840         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
62841         we don't require GNU fnmatch ourselves (if our users require it, they
62842         should do so explicitly).
62843
62844         Fix regex code so it doesn't rely on strcasecmp.
62845         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
62846         Otherwise, include gnulib's langinfo.h.
62847         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
62848         undesirable behavior in non-C locales.  Instead, rely on localecharset.
62849         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
62850         * modules/regex (FILES): Remove m4/codeset.m4.
62851         (Depends-on): Add localcharset.  Remove strcase.
62852
62853 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62854
62855         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
62856         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
62857
62858 2007-02-13  Bruno Haible  <bruno@clisp.org>
62859
62860         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
62861         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
62862
62863 2007-02-12  Bruno Haible  <bruno@clisp.org>
62864
62865         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
62866         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
62867         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
62868         time warning rather than a link error.
62869
62870 2007-02-12  Bruno Haible  <bruno@clisp.org>
62871
62872         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
62873         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
62874         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
62875
62876 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
62877
62878         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
62879         args, not 2.
62880
62881 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
62882
62883         New module 'time', so that apps can include <time.h> as per
62884         POSIX and GNU instead of separate include files like time_r.h
62885         and timegm.h.  This implementation tries out a simpler approach
62886         for replacing decls in standard include files (as compared to
62887         the string module), somewhat as an experiment.
62888
62889         * config/srclist.txt: Comment out mktime.c for now.
62890         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
62891         since it doesn't apply any more.  Use generic wording instead.
62892         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
62893         'time'.
62894         * lib/time_.h, m4/time_h.m4, modules/time: New files.
62895         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
62896         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
62897         Don't include <sys/types.h>; no longer needed since we assume C89.
62898         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
62899         * lib/strftime.c: Likewise.
62900         * lib/time_r.c: Likewise.
62901         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
62902         * lib/nanosleep.c: Include <time.h> first, to check interface.
62903         * lib/strptime.c: Likewise.
62904         * lib/time_r.c: Likewise.
62905         * lib/timegm.c: Likewise.
62906         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
62907         needed.
62908         * lib/timegm.c: Don't include timegm.h; no longer needed.
62909         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
62910         time.h now handles any problems in that area.
62911         (struct timespec, nanosleep): Remove; time.h now arranges for these.
62912         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
62913         that time.h defines struct timespec.
62914         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
62915         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
62916         handles that.
62917         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
62918         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
62919         needed.  Set REPLACE_LOCALTIME.
62920         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
62921         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
62922         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
62923         nanosleep; time_h.m4 now does that.  Don't require
62924         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
62925         module handles this now.
62926         * modules/getdate (Depends-on): Remove timespec.  Add time.
62927         * modules/nanosleep (Depends-on): Likewise.
62928         * modules/stat-time (Depends-on): Likewise.
62929         * modules/nanosleep (Include): Include time.h, not timespec.h.
62930         * modules/strptime (Files): Remove lib/strptime.h.
62931         (Depends-on): Add extensions, time.
62932         (Include): Include time.h, not strptime.h.
62933         * modules/time_r (Files): Remove lib/time_r.h.
62934         (Depends-on): Add time.
62935         (Include): Include time.h, not time_r.h.
62936         * modules/timegm: Likewise.
62937         * modules/timespec (Description): Now does timespec-related decls
62938         of our own, instead of struct timespec itself.
62939         (Depends-on): Add time; remove extensions.
62940         (Maintainer): Add self.
62941         * modules/utimecmp (Depends-on): Add time; remove timespec.
62942         * modules/utimens (Depends-on): Likewise.
62943         * modules/xnanosleep (Depends-on): Likewise.
62944
62945 2007-02-11  Bruno Haible  <bruno@clisp.org>
62946
62947         * lib/c-strstr.c: Include allocsa.h.
62948         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
62949         * lib/c-strcasestr.c: Include allocsa.h.
62950         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
62951         * lib/strcasestr.c: Include allocsa.h.
62952         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
62953         * lib/mbsstr.c: Include allocsa.h.
62954         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
62955         allocsa/freesa instead of malloc/free.
62956         * lib/mbscasestr.c: Include allocsa.h.
62957         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
62958         allocsa/freesa instead of malloc/free.
62959         * modules/c-strstr (Depends-on): Add allocsa.
62960         * modules/c-strcasestr (Depends-on): Likewise.
62961         * modules/strcasestr (Depends-on): Likewise.
62962         * modules/mbsstr (Depends-on): Likewise.
62963         * modules/mbscasestr (Depends-on): Likewise.
62964
62965 2007-02-11  Bruno Haible  <bruno@clisp.org>
62966
62967         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
62968
62969         * modules/mbsspn-tests: New file.
62970         * tests/test-mbsspn.sh: New file.
62971         * tests/test-mbsspn.c: New file.
62972
62973 2007-02-11  Bruno Haible  <bruno@clisp.org>
62974
62975         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
62976
62977         * modules/mbspbrk-tests: New file.
62978         * tests/test-mbspbrk.sh: New file.
62979         * tests/test-mbspbrk.c: New file.
62980
62981 2007-02-11  Bruno Haible  <bruno@clisp.org>
62982
62983         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
62984         unneeded cast.
62985
62986         * modules/mbscspn-tests: New file.
62987         * tests/test-mbscspn.sh: New file.
62988         * tests/test-mbscspn.c: New file.
62989
62990 2007-02-11  Bruno Haible  <bruno@clisp.org>
62991
62992         * modules/mbscasecmp-tests: New file.
62993         * tests/test-mbscasecmp.sh: New file.
62994         * tests/test-mbscasecmp.c: New file.
62995
62996 2007-02-11  Bruno Haible  <bruno@clisp.org>
62997
62998         Ensure O(n) worst-case complexity of mbscasestr.
62999         * lib/mbscasestr.c: Include stdbool.h.
63000         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
63001         functions.
63002         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
63003         the bookkeeping indicates that it's worth it.
63004         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
63005
63006         * modules/mbscasestr-tests: New file.
63007         * tests/test-mbscasestr1.c: New file.
63008         * tests/test-mbscasestr2.sh: New file.
63009         * tests/test-mbscasestr2.c: New file.
63010         * tests/test-mbscasestr3.sh: New file.
63011         * tests/test-mbscasestr3.c: New file.
63012         * tests/test-mbscasestr4.sh: New file.
63013         * tests/test-mbscasestr4.c: New file.
63014         * m4/locale-tr.m4: New file.
63015
63016 2007-02-11  Bruno Haible  <bruno@clisp.org>
63017
63018         Ensure O(n) worst-case complexity of mbsstr.
63019         * lib/mbsstr.c: Include stdbool.h.
63020         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
63021         functions.
63022         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
63023         bookkeeping indicates that it's worth it.
63024         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
63025
63026         * modules/mbsstr-tests: New file.
63027         * tests/test-mbsstr1.c: New file.
63028         * tests/test-mbsstr2.sh: New file.
63029         * tests/test-mbsstr2.c: New file.
63030         * tests/test-mbsstr3.sh: New file.
63031         * tests/test-mbsstr3.c: New file.
63032         * m4/locale-fr.m4: New file.
63033
63034 2007-02-11  Bruno Haible  <bruno@clisp.org>
63035
63036         * lib/mbsrchr.c (mbsrchr): Fix bug.
63037
63038         * modules/mbsrchr-tests: New file.
63039         * tests/test-mbsrchr.sh: New file.
63040         * tests/test-mbsrchr.c: New file.
63041
63042 2007-02-11  Bruno Haible  <bruno@clisp.org>
63043
63044         * lib/mbschr.c (mbschr): Fix bug.
63045
63046         * modules/mbschr-tests: New file.
63047         * tests/test-mbschr.sh: New file.
63048         * tests/test-mbschr.c: New file.
63049         * m4/locale-zh.m4: New file.
63050
63051 2007-02-11  Bruno Haible  <bruno@clisp.org>
63052
63053         Support for copying multibyte string iterators.
63054         * lib/mbiter.h: Include <string.h>.
63055         (mbiter_multi_copy): New function.
63056         (mbi_copy): New macro.
63057         * lib/mbuiter.h: Include <string.h>.
63058         (mbuiter_multi_copy): New function.
63059         (mbui_copy): New macro.
63060
63061 2007-02-11  Bruno Haible  <bruno@clisp.org>
63062
63063         New module mbslen.
63064         * modules/mbslen: New file.
63065         * lib/mbslen.c: New file.
63066         * lib/string_.h (mbslen): New declaration.
63067         * m4/mbslen.m4: New file.
63068         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63069         GNULIB_MBSLEN.
63070         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
63071         * MODULES.html.sh (Internationalization functions): Add mbslen.
63072
63073 2007-02-11  Bruno Haible  <bruno@clisp.org>
63074
63075         Ensure O(n) worst-case complexity of strcasestr substitute.
63076         * lib/strcasestr.c: Include stdbool.h.
63077         (knuth_morris_pratt): New function.
63078         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
63079         bookkeeping indicates that it's worth it.
63080         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
63081
63082         * modules/strcasestr-tests: New file.
63083         * tests/test-strcasestr.c: New file.
63084
63085 2007-02-11  Bruno Haible  <bruno@clisp.org>
63086
63087         Ensure O(n) worst-case complexity of c_strcasestr.
63088         * lib/c-strcasestr.c: Include stdbool.h, string.h.
63089         (knuth_morris_pratt): New function.
63090         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
63091         the bookkeeping indicates that it's worth it.
63092         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
63093
63094         * modules/c-strcasestr-tests: New file.
63095         * tests/test-c-strcasestr.c: New file.
63096
63097 2007-02-11  Bruno Haible  <bruno@clisp.org>
63098
63099         Ensure O(n) worst-case complexity of c_strstr.
63100         * lib/c-strstr.c: Include stdbool.h, string.h.
63101         (knuth_morris_pratt): New function.
63102         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
63103         bookkeeping indicates that it's worth it.
63104         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
63105
63106         * lib/c-strstr.c: Complete rewrite for maintainability.
63107
63108         * modules/c-strstr-tests: New file.
63109         * tests/test-c-strstr.c: New file.
63110
63111 2007-02-11  Bruno Haible  <bruno@clisp.org>
63112
63113         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
63114         5.2.1 and earlier, whereby \055 was treated just like the range
63115         delimiter '-'.
63116         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
63117
63118 2007-02-08  Bruno Haible  <bruno@clisp.org>
63119
63120         * modules/regex (Depends-on): Add stdbool.
63121         Reported by Dalibor Topic <robilad@kaffe.org>.
63122
63123 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
63124
63125         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
63126         Prefer returning from main to exiting from it.
63127         Remove unnecessary parens after sizeof.
63128
63129 2007-02-05  Bruno Haible  <bruno@clisp.org>
63130
63131         New module mbssep.
63132         * modules/mbssep: New file.
63133         * lib/mbssep.c: New file.
63134         * lib/string_.h (strsep): Add a conditional link warning.
63135         (mbssep): New declaration.
63136         * m4/mbssep.m4: New file.
63137         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63138         GNULIB_MBSSEP.
63139         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
63140         * MODULES.html.sh (Internationalization functions): Add mbssep.
63141
63142 2007-02-05  Bruno Haible  <bruno@clisp.org>
63143
63144         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
63145         Optimize search in case of 1 delimiter.
63146
63147 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
63148
63149         * lib/acl.h: Include sys/types.h before sys/acl.h.
63150
63151 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
63152
63153         Merge upstream fix for glibc bugzilla #3957:
63154
63155         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
63156
63157         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
63158         bit for RE_HAT_LISTS_NOT_NEWLINE.
63159         (build_charclass_op): Remove bogus comment.
63160
63161 2007-02-05  Simon Josefsson  <simon@josefsson.org>
63162
63163         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
63164
63165 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
63166
63167         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
63168         * lib/memmem.c [!defined _LIBC]: Include config.h.
63169
63170 2007-02-04  Bruno Haible  <bruno@clisp.org>
63171
63172         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
63173         warning message.
63174
63175 2007-02-04  Bruno Haible  <bruno@clisp.org>
63176
63177         New module mbstok_r.
63178         * modules/mbstok_r: New file.
63179         * lib/mbstok_r.c: New file.
63180         * lib/string_.h (strtok_r): Change argument names to match the
63181         comments. Add a conditional link warning.
63182         (mbstok_r): New declaration.
63183         * m4/mbstok_r.m4: New file.
63184         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63185         GNULIB_MBSTOK_R.
63186         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
63187         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
63188
63189 2007-02-04  Bruno Haible  <bruno@clisp.org>
63190
63191         New module mbsspn.
63192         * modules/mbsspn: New file.
63193         * lib/mbsspn.c: New file.
63194         * lib/string_.h (strspn): Add a conditional link warning.
63195         (mbsspn): New declaration.
63196         * m4/mbsspn.m4: New file.
63197         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63198         GNULIB_MBSSPN.
63199         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
63200         * MODULES.html.sh (Internationalization functions): Add mbsspn.
63201
63202 2007-02-04  Bruno Haible  <bruno@clisp.org>
63203
63204         New module mbspbrk.
63205         * modules/mbspbrk: New file.
63206         * lib/mbspbrk.c: New file.
63207         * lib/string_.h (strpbrk): Add a conditional link warning.
63208         (mbspbrk): New declaration.
63209         * m4/mbspbrk.m4: New file.
63210         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63211         GNULIB_MBSPBRK.
63212         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
63213         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
63214
63215 2007-02-04  Bruno Haible  <bruno@clisp.org>
63216
63217         New module mbscspn.
63218         * modules/mbscspn: New file.
63219         * lib/mbscspn.c: New file.
63220         * lib/string_.h (strcspn): Add a conditional link warning.
63221         (mbscspn): New declaration.
63222         * m4/mbscspn.m4: New file.
63223         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63224         GNULIB_MBSCSPN.
63225         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
63226         * MODULES.html.sh (Internationalization functions): Add mbscspn.
63227
63228 2007-02-04  Bruno Haible  <bruno@clisp.org>
63229
63230         New module mbscasestr, reduced goal of strcasestr.
63231         * modules/mbscasestr: New file.
63232         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
63233         (mbscasestr): Renamed from strcasestr.
63234         * lib/strcasestr.c: Don't include mbuiter.h.
63235         (strcasestr): Remove support for multibyte locales.
63236         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
63237         Change the conditional link warning.
63238         (mbscasestr): New declaration.
63239         * m4/mbscasestr.m4: New file.
63240         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
63241         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
63242         REPLACE_STRCASESTR.
63243         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
63244         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
63245         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
63246         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
63247         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
63248         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
63249         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
63250         (Depends-on): Remove mbuiter.
63251         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
63252
63253 2007-02-04  Bruno Haible  <bruno@clisp.org>
63254
63255         Simplify handling of strncasecmp.
63256         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
63257         the conditional link warning.
63258         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
63259         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
63260         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
63261         * modules/strcase (configure.ac): Don't invoke
63262         gl_STRING_MODULE_INDICATOR.
63263         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
63264
63265 2007-02-04  Bruno Haible  <bruno@clisp.org>
63266
63267         New module mbscasecmp, reduced goal of strcasecmp.
63268         * modules/mbscasecmp: New file.
63269         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
63270         (mbscasecmp): Renamed from strcasecmp.
63271         * lib/strcasecmp.c: Don't include mbuiter.h.
63272         (strcasecmp): Remove support for multibyte locales.
63273         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
63274         Change the conditional link warning.
63275         (mbscasecmp): New declaration.
63276         * m4/mbscasecmp.m4: New file.
63277         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
63278         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
63279         REPLACE_STRCASECMP.
63280         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
63281         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63282         GNULIB_MBSCASECMP.
63283         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
63284         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
63285         * modules/strcase (Files): Remove m4/mbrtowc.m4.
63286         (Depends-on): Remove mbuiter.
63287         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
63288
63289 2007-02-04  Bruno Haible  <bruno@clisp.org>
63290
63291         New module mbsstr. Remove module strstr.
63292         * modules/mbsstr: New file.
63293         * modules/strstr: Remove file.
63294         * lib/mbsstr.c: Renamed from lib/strstr.c.
63295         (mbsstr): Renamed from strstr.
63296         * lib/string_.h (strstr): Remove declaration. Change the conditional
63297         link warning.
63298         (mbsstr): New declaration.
63299         * m4/mbsstr.m4: New file.
63300         * m4/strstr.m4: Remove file.
63301         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
63302         REPLACE_STRSTR.
63303         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
63304         Don't initialize GNULIB_STRSTR.
63305         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
63306         substitute GNULIB_STRSTR and REPLACE_STRSTR.
63307         * MODULES.html.sh (Internationalization functions): Add mbsstr.
63308         (Support for systems lacking ANSI C 89): Remove strstr.
63309
63310 2007-02-04  Bruno Haible  <bruno@clisp.org>
63311
63312         New module mbsrchr.
63313         * modules/mbsrchr: New file.
63314         * lib/mbsrchr.c: New file.
63315         * lib/string_.h (strrchr): Add a conditional link warning.
63316         (mbsrchr): New declaration.
63317         * m4/mbsrchr.m4: New file.
63318         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63319         GNULIB_MBSRCHR.
63320         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
63321         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
63322
63323 2007-02-04  Bruno Haible  <bruno@clisp.org>
63324
63325         New module mbschr.
63326         * modules/mbschr: New file.
63327         * lib/mbschr.c: New file.
63328         * lib/string_.h (strchr): Add a conditional link warning.
63329         (mbschr): New declaration.
63330         * m4/mbschr.m4: New file.
63331         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63332         GNULIB_MBSCHR.
63333         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
63334         * MODULES.html.sh (Internationalization functions): Add mbschr.
63335
63336 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
63337
63338         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
63339
63340         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
63341
63342 2007-02-04  Bruno Haible  <bruno@clisp.org>
63343
63344         New module description section 'configure.ac-early'.
63345         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
63346         (func_get_autoconf_early_snippet): New function.
63347         (func_import, func_create_testdir): Use it. Remove special cases for
63348         modules 'extensions' and 'lock'.
63349         * modules/extensions (configure.ac-early): Require
63350         gl_USE_SYSTEM_EXTENSIONS.
63351         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
63352
63353 2007-02-04  Bruno Haible  <bruno@clisp.org>
63354
63355         Make use of gcj-4.3's -fsource and -ftarget option.
63356         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
63357         and if so try the options -fsource and -ftarget.
63358         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
63359         source_version, ftarget_option, target_version arguments.
63360         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
63361         (is_envjavac_oldgcj_14_14_usable): Renamed from
63362         is_envjavac_gcj_14_14_usable.
63363         (is_envjavac_oldgcj_14_13_usable): Renamed from
63364         is_envjavac_gcj_14_13_usable.
63365         (is_gcj_present): Update.
63366         (is_gcj_43, is_gcj43_usable): New functions.
63367         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
63368         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
63369         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
63370         try the options -fsource and -ftarget.
63371
63372 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
63373
63374         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
63375         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
63376         larger value.
63377
63378 2007-02-03  Jim Meyering  <jim@meyering.net>
63379
63380         Give tools a better chance to allocate space for very large buffers.
63381         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
63382
63383         Make pwd and readlink work also when run with an unreadable parent dir
63384         on systems with openat support.
63385         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
63386         provided getcwd function, even when we have openat support.
63387         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
63388
63389 2007-02-02  Bruno Haible  <bruno@clisp.org>
63390
63391         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
63392         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
63393         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
63394         portability problems if one of these functions is only used on specific
63395         platforms.
63396         Reported by Paul Eggert.
63397
63398 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
63399
63400         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
63401         is causing more trouble than it's curing.
63402         * lib/regex_internal.h (__mempcpy): Remove.
63403         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
63404         (and make the code a tad smaller to boot).
63405         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
63406
63407 2007-02-02  Jim Meyering  <jim@meyering.net>
63408
63409         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
63410         section, not in the Makefile.am: one.
63411
63412 2007-02-02  Eric Blake  <ebb9@byu.net>
63413
63414         * lib/strchrnul.c: Always include config.h first.
63415
63416         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
63417         gnulib strstr is not necessary here.
63418
63419 2007-02-02  Simon Josefsson  <simon@josefsson.org>
63420
63421         * m4/socklen.m4: Fix typo.
63422
63423 2007-02-02  Eric Blake  <ebb9@byu.net>
63424
63425         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
63426         * modules/netinet_in (Makefile.am): Likewise.
63427
63428 2007-02-01  Bruno Haible  <bruno@clisp.org>
63429
63430         * lib/string_.h (GL_LINK_WARNING): New macro.
63431         (strcasecmp, strstr, strcasestr): If provided by the system,
63432         conditionally define as a macro that leads to a warning instead of to
63433         an error.
63434         (strncasecmp): Conditionally define as a macro that leads to a warning.
63435
63436 2007-02-01  Karl Berry  <karl@gnu.org>
63437
63438         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
63439
63440 2007-02-01  Bruno Haible  <bruno@clisp.org>
63441
63442         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
63443         renamings.
63444
63445 2007-02-01  Eric Blake  <ebb9@byu.net>
63446
63447         * modules/regex (Depends-on): Revert dependence on mempcpy.
63448         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
63449         module's definition of mempcpy.
63450         Reported by Paul Eggert.
63451
63452 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
63453
63454         * lib/string_.h: If the gnulib module XYZ is not present, undefine
63455         the symbol XYZ before redefining it.  This fixes a problem with
63456         programs that don't use XYZ, when compiled on systems that define
63457         XYZ to something else.
63458
63459 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
63460
63461         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
63462         occurs when "mkdir -m foo" creates a setgid directory that is (1)
63463         writeable to group or other and (2) is intended to have a special
63464         mode bit that is set or cleared.  In such a case, the directory
63465         should be neither group- nor other-writeable until the special
63466         mode bits are right.
63467
63468 2007-01-31  Eric Blake  <ebb9@byu.net>
63469
63470         * modules/mountlist (Depends-on): Add strstr.
63471
63472         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
63473         bug.
63474         * modules/string (Makefile.am): Remove redundant replacement.
63475         * modules/regex (Depends-on): Add mempcpy.
63476
63477 2007-01-31  Bruno Haible  <bruno@clisp.org>
63478
63479         New module description field 'Link'.
63480         * gnulib-tool (func_usage): Document --extract-link-directive.
63481         (sed_extract_prog): Recognize 'Link' directive.
63482         (func_get_link_directive): New function.
63483         (func_import): Show summary of link directives.
63484         Handle --extract-link-directive option.
63485         * modules/acl (Link): New section.
63486         * modules/clock-time (Link): New section.
63487         * modules/euidaccess (Link): New section.
63488         * modules/gettext (Link): New section.
63489         * modules/iconv (Link): New section.
63490         * modules/lock (Link): New section.
63491         * modules/nanosleep (Link): New section.
63492         * modules/readline (Link): New section.
63493
63494 2007-01-27  Bruno Haible  <bruno@clisp.org>
63495
63496         Enforce the use of gnulib modules for unportable <string.h> functions.
63497         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
63498         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
63499         (gl_HEADER_STRING_H_BODY): Require it.
63500         * lib/string_.h: If the gnulib module XYZ is not present, redefine
63501         the symbol XYZ to one that gives a link error.
63502         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
63503         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
63504         * modules/mempcpy (configure.ac): Likewise.
63505         * modules/memrchr (configure.ac): Likewise.
63506         * modules/stpcpy (configure.ac): Likewise.
63507         * modules/stpncpy (configure.ac): Likewise.
63508         * modules/strcase (configure.ac): Likewise.
63509         * modules/strcasestr (configure.ac): Likewise.
63510         * modules/strchrnul (configure.ac): Likewise.
63511         * modules/strdup (configure.ac): Likewise.
63512         * modules/strndup (configure.ac): Likewise.
63513         * modules/strnlen (configure.ac): Likewise.
63514         * modules/strpbrk (configure.ac): Likewise.
63515         * modules/strsep (configure.ac): Likewise.
63516         * modules/strstr (configure.ac): Likewise.
63517         * modules/strtok_r (configure.ac): Likewise.
63518
63519 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
63520
63521         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
63522
63523 2007-01-30  Jim Meyering  <jim@meyering.net>
63524
63525         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
63526
63527 2007-01-29  Bruno Haible  <bruno@clisp.org>
63528
63529         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
63530         * lib/execute.c: Likewise.
63531         * lib/pipe.c: Likewise.
63532         * lib/printf-args.h: Likewise.
63533         * lib/printf-args.c: Likewise.
63534         * lib/printf-parse.c: Likewise.
63535         * lib/vasnprintf.c: Likewise.
63536
63537 2007-01-29  Eric Blake  <ebb9@byu.net>
63538
63539         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
63540         declaration.
63541
63542 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
63543
63544         * lib/strptime.h (strptime): Use 'restrict' for args where
63545         POSIX requires this.
63546         * lib/strptime.c (strptime): Likewise.
63547         Change license notice from LGPL to GPL, since gnulib-tool will
63548         change this as needed.
63549         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
63550         defined.
63551         Include "strptime.h" first, to check interface.
63552         Do not #undef _LIBC and _NL_CURRENT.
63553         Do not include <stdlib.h>; no longer needed.
63554         Include "time_r.h" and declare ptime_locale_status
63555         only if _LIBC is not defined.
63556         (__P): Remove unused macro.
63557         (match_string): Bring back glibc version, but use it only if _LIBC
63558         is defined.
63559         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
63560         Remove unnecessary assertion and abort() call.
63561         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
63562         * m4/strptime.m4: Fix serial number comment.
63563         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
63564         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
63565         (Depends-on): Add time_r.
63566
63567 2007-01-29  Bruno Haible  <bruno@clisp.org>
63568
63569         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
63570         strptime.
63571         * modules/strptime (Depends-on): Add stdbool.
63572         * lib/strptime.h: Include <time.h> always. Add comments.
63573
63574 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
63575
63576         * modules/strptime: New file.
63577         * lib/strptime.h: New file.
63578         * lib/strptime.c: New file.
63579         * m4/strptime.m4: New file.
63580
63581 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
63582
63583         * MODULES.html.sh: New module mpsort.
63584         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
63585
63586         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
63587         a circularity problem with HP-UX ia64 reported by Bob Proulx in
63588         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
63589         All uses changed.
63590         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
63591         All uses changed.
63592         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
63593         to _Restrict_.
63594         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
63595         the parameter matches the prototype.
63596
63597 2007-01-28  Jim Meyering  <jim@meyering.net>
63598
63599         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
63600         sys/time.h here, reverting that part of the previous patch:
63601         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
63602
63603 2007-01-28  Bruno Haible  <bruno@clisp.org>
63604
63605         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
63606         value of $(SYS_TIME_H).
63607         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
63608         remove it conditionally, too. [added by Jim Meyering]
63609         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
63610         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
63611         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
63612         GETTIMEOFDAY_REPLACEMENT to 1.
63613
63614 2007-01-28  Bruno Haible  <bruno@clisp.org>
63615
63616         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
63617         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
63618         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
63619         Set UNISTD_H instead of UNISTD_H2.
63620         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
63621
63622 2007-01-28  Bruno Haible  <bruno@clisp.org>
63623
63624         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
63625         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
63626
63627 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63628
63629         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
63630         (func_create_testdir): Ensure C locale for `grep' and `tr'
63631         character ranges.
63632         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
63633         ACLOCAL_AMFLAGS parsing state machine.
63634
63635 2007-01-27  Bruno Haible  <bruno@clisp.org>
63636
63637         * modules/unistr/base: Update.
63638
63639 2007-01-27  Bruno Haible  <bruno@clisp.org>
63640
63641         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
63642         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
63643         * modules/unistr/u32-mbtouc-unsafe: Renamed from
63644         modules/unistr/u32-mbtouc.
63645         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
63646         * lib/unistr.h: Update.
63647         * lib/linebreak.c: Update.
63648         * modules/unistr/u32-mbtouc: Renamed from
63649         modules/unistr/u32-mbtouc-safe.
63650         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
63651         * lib/unistr.h: Update.
63652         * lib/unistr/u32-to-u8.c: Update.
63653         * lib/unistr/u32-to-u16.c: Update.
63654
63655 2007-01-27  Bruno Haible  <bruno@clisp.org>
63656
63657         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
63658         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
63659         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
63660         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
63661         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
63662         * modules/unistr/u16-mbtouc-unsafe: Renamed from
63663         modules/unistr/u16-mbtouc.
63664         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
63665         * lib/unistr.h: Update.
63666         * lib/linebreak.c: Update.
63667         * modules/linebreak: Update.
63668         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
63669         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
63670         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
63671         * modules/unistr/u16-mbtouc: Renamed from
63672         modules/unistr/u16-mbtouc-safe.
63673         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
63674         * lib/unistr.h: Update.
63675         * lib/unistr/u16-to-u8.c: Update.
63676         * modules/unistr/u16-to-u8: Update.
63677         * lib/unistr/u16-to-u32.c: Update.
63678         * modules/unistr/u16-to-u32: Update.
63679
63680 2007-01-27  Bruno Haible  <bruno@clisp.org>
63681
63682         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
63683         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
63684         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
63685         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
63686         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
63687         * modules/unistr/u8-mbtouc-unsafe: Renamed from
63688         modules/unistr/u8-mbtouc.
63689         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
63690         * lib/unistr.h: Update.
63691         * lib/striconveh.c: Update.
63692         * modules/striconveh: Update.
63693         * lib/linebreak.c: Update.
63694         * modules/linebreak: Update.
63695         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
63696         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
63697         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
63698         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
63699         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
63700         * lib/unistr.h: Update.
63701         * lib/striconveh.c: Update.
63702         * modules/striconveh: Update.
63703         * lib/unistr/u8-to-u16.c: Update.
63704         * modules/unistr/u8-to-u16: Update.
63705         * lib/unistr/u8-to-u32.c: Update.
63706         * modules/unistr/u8-to-u32: Update.
63707
63708 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63709
63710         Sync from Libtool.
63711         * lib/argz.c: Do not include strings.h nor memory.h, include
63712         string.h unconditionally.  Patch by Simon Josefsson.
63713
63714 2007-01-27  Bruno Haible  <bruno@clisp.org>
63715
63716         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
63717         from gl_HEADER_STRING_H_BODY.
63718         (gl_HEADER_STRING_H_BODY): Require it.
63719         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
63720         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
63721         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
63722         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
63723         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
63724         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
63725         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
63726         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
63727         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
63728         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
63729         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
63730         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
63731         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
63732         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
63733         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
63734
63735 2007-01-27  Bruno Haible  <bruno@clisp.org>
63736
63737         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
63738         check_PROGRAMS into noinst_PROGRAMS.
63739         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
63740         check_PROGRAMS in this case.
63741         (func_import): Set for_test to false.
63742         (func_create_testdir): Set for_test to true.
63743
63744 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
63745             Bruno Haible  <bruno@clisp.org>
63746
63747         * modules/strcasestr (Files): Remove lib/strcasestr.h.
63748         (Depends-on): Add string.
63749         (Includes): Use <string.h> instead of strcasestr.h.
63750         * modules/string (Makefile.am): Also substitute the value of
63751         REPLACE_STRCASESTR.
63752         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
63753         assume strcasestr is declared in <string.h> not <strings.h>. Also
63754         set REPLACE_STRCASESTR.
63755         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
63756         REPLACE_STRCASESTR.
63757         * lib/strcasestr.h: Remove file.
63758         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
63759         * lib/string_.h (strcasestr): New declaration.
63760
63761 2007-01-27  Bruno Haible  <bruno@clisp.org>
63762
63763         * lib/string_.h: Use 'extern'.
63764
63765 2007-01-27  Jim Meyering  <jim@meyering.net>
63766
63767         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
63768         of set-but-not-used local, "q".
63769
63770         * lib/mempcpy.c: Include <config.h> before <string.h>.
63771         This fixes a compilation error on HP-UX, due to the system's
63772         "restrict"-using mempcpy prototype.
63773
63774 2007-01-26  Bruno Haible  <bruno@clisp.org>
63775
63776         Small optimization.
63777         * lib/javacomp.c: Include c-strstr.h.
63778          (is_envjavac_gcj): Use c_strstr instead of strstr.
63779         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
63780
63781 2007-01-26  Bruno Haible  <bruno@clisp.org>
63782
63783         * MODULES.html.sh (Unicode string functions): Add the new modules.
63784
63785         * modules/uniconv/u32-strconv-to-locale: New file.
63786         * lib/uniconv/u32-strconv-to-locale.c: New file.
63787
63788         * modules/uniconv/u16-strconv-to-locale: New file.
63789         * lib/uniconv/u16-strconv-to-locale.c: New file.
63790
63791         * modules/uniconv/u8-strconv-to-locale: New file.
63792         * lib/uniconv/u8-strconv-to-locale.c: New file.
63793
63794         * modules/uniconv/u32-strconv-from-locale: New file.
63795         * lib/uniconv/u32-strconv-from-locale.c: New file.
63796
63797         * modules/uniconv/u16-strconv-from-locale: New file.
63798         * lib/uniconv/u16-strconv-from-locale.c: New file.
63799
63800         * modules/uniconv/u8-strconv-from-locale: New file.
63801         * lib/uniconv/u8-strconv-from-locale.c: New file.
63802
63803         * modules/uniconv/u32-strconv-to-enc: New file.
63804         * lib/uniconv/u32-strconv-to-enc.c: New file.
63805         * modules/uniconv/u32-strconv-to-enc-tests: New file.
63806         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
63807
63808         * modules/uniconv/u16-strconv-to-enc: New file.
63809         * lib/uniconv/u16-strconv-to-enc.c: New file.
63810         * lib/uniconv/u-strconv-to-enc.h: New file.
63811         * modules/uniconv/u16-strconv-to-enc-tests: New file.
63812         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
63813
63814         * modules/uniconv/u8-strconv-to-enc: New file.
63815         * lib/uniconv/u8-strconv-to-enc.c: New file.
63816         * modules/uniconv/u8-strconv-to-enc-tests: New file.
63817         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
63818
63819         * modules/uniconv/u32-strconv-from-enc: New file.
63820         * lib/uniconv/u32-strconv-from-enc.c: New file.
63821         * modules/uniconv/u32-strconv-from-enc-tests: New file.
63822         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
63823
63824         * modules/uniconv/u16-strconv-from-enc: New file.
63825         * lib/uniconv/u16-strconv-from-enc.c: New file.
63826         * modules/uniconv/u16-strconv-from-enc-tests: New file.
63827         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
63828
63829         * modules/uniconv/u8-strconv-from-enc: New file.
63830         * lib/uniconv/u8-strconv-from-enc.c: New file.
63831         * lib/uniconv/u-strconv-from-enc.h: New file.
63832         * modules/uniconv/u8-strconv-from-enc-tests: New file.
63833         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
63834
63835         * modules/uniconv/u32-conv-from-enc: New file.
63836         * lib/uniconv/u32-conv-from-enc.c: New file.
63837         * modules/uniconv/u32-conv-from-enc-tests: New file.
63838         * tests/uniconv/test-u32-conv-from-enc.c: New file.
63839
63840         * modules/uniconv/u16-conv-from-enc: New file.
63841         * lib/uniconv/u16-conv-from-enc.c: New file.
63842         * lib/uniconv/u-conv-from-enc.h: New file.
63843         * modules/uniconv/u16-conv-from-enc-tests: New file.
63844         * tests/uniconv/test-u16-conv-from-enc.c: New file.
63845
63846         * modules/uniconv/u8-conv-from-enc: New file.
63847         * lib/uniconv/u8-conv-from-enc.c: New file.
63848         * modules/uniconv/u8-conv-from-enc-tests: New file.
63849         * tests/uniconv/test-u8-conv-from-enc.c: New file.
63850
63851         * modules/uniconv/base: New file.
63852         * lib/uniconv.h: New file.
63853
63854 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
63855
63856         * doc/gnulib-tool.texi (Initial import): Update to match current
63857         behavior with strdup module.
63858         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
63859         * lib/memmem.h: Remove; all uses removed.  This is now done
63860         by <string.h>.
63861         * lib/mempcpy.h: Likewise.
63862         * lib/memrchr.h: Likewise.
63863         * lib/stpcpy.h: Likewise.
63864         * lib/stpncpy.h: Likewise.
63865         * lib/strcase.h: Likewise.
63866         * lib/strchrnul.h: Likewise.
63867         * lib/strdup.h: Likewise.
63868         * lib/strndup.h: Likewise.
63869         * lib/strnlen.h: Likewise.
63870         * lib/strpbrk.h: Likewise.
63871         * lib/strsep.h: Likewise.
63872         * lib/strstr.h: Likewise.
63873         * lib/strtok_r.h: Likewise.
63874         * lib/string_.h: New file.
63875         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
63876         Rely on <string.h> instead.
63877         * lib/canon-host.c: Likewise.
63878         * lib/chdir-long.c: Likewise.
63879         * lib/concatpath.c: Likewise.
63880         * lib/exclude.c: Likewise.
63881         * lib/fchdir.c: Likewise.
63882         * lib/getaddrinfo.c: Likewise.
63883         * lib/getcwd.c: Likewise.
63884         * lib/getsubopt.c: Likewise.
63885         * lib/glob.c: Likewise.
63886         * lib/hard-locale.c: Likewise.
63887         * lib/iconvme.c: Likewise.
63888         * lib/javacomp.c: Likewise.
63889         * lib/mempcpy.c: Likewise.
63890         * lib/memrchr.c: Likewise.
63891         * lib/regex_internal.h: Likewise.
63892         * lib/stpncpy.c: Likewise.
63893         * lib/strcasecmp.c: Likewise.
63894         * lib/strchrnul.c: Likewise.
63895         * lib/strdup.c: Likewise.
63896         * lib/striconv.c: Likewise.
63897         * lib/striconveh.c: Likewise.
63898         * lib/striconveha.c: Likewise.
63899         * lib/strncasecmp.c: Likewise.
63900         * lib/strndup.c: Likewise.
63901         * lib/strnlen.c: Likewise.
63902         * lib/strsep.c: Likewise.
63903         * lib/strstr.c: Likewise.
63904         * lib/strtok_r.c: Likewise.
63905         * lib/userspec.c: Likewise.
63906         * lib/w32spawn.h: Likewise.
63907         * lib/xstrndup.c: Likewise.
63908         * lib/mountlist.c (strstr): Remove decl.
63909         * m4/string_h.m4: New file.
63910         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
63911         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
63912         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
63913         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
63914         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
63915         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
63916         Set REPLACE_STRCASECMP if necessary.
63917         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
63918         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
63919         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
63920         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
63921         HAVE_DECL_STRDUP if necessary.
63922         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
63923         since gl_FUNC_STRNDUP does that now.
63924         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
63925         Check for decl here...
63926         (gl_PREREQ_STRNLEN): ... not here.
63927         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
63928         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
63929         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
63930         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
63931         necessary.
63932         * modules/string: New file.
63933         * modules/memmem (Files): Remove special-purpose include file.
63934         (Depends-on): Add string.
63935         (Include): Include <string.h>, not the removed file.
63936         * modules/mempcpy: Likewise.
63937         * modules/memrchr: Likewise.
63938         * modules/stpcpy: Likewise.
63939         * modules/stpncpy: Likewise.
63940         * modules/strcase: Likewise.
63941         * modules/strchrnul: Likewise.
63942         * modules/strdup: Likewise.
63943         * modules/strndup: Likewise.
63944         * modules/strnlen: Likewise.
63945         * modules/strpbrk: Likewise.
63946         * modules/strsep: Likewise.
63947         * modules/strstr: Likewise.
63948         * modules/strtok_r: Likewise.
63949         * tests/test-dirname.c: Don't include "strdup.h", since
63950         <string.h> now suffices.
63951         * tests/test-memmem.c: Don't include "memmem.h", since
63952         <string.h> now suffices.
63953
63954 2007-01-25  Bruno Haible  <bruno@clisp.org>
63955
63956         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
63957         *resultp is 0.
63958
63959         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
63960         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
63961         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
63962         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
63963
63964         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
63965         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
63966         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
63967         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
63968         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
63969         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
63970
63971 2007-01-24  Bruno Haible  <bruno@clisp.org>
63972
63973         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
63974         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
63975         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
63976         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
63977         gl_FUNC_FTS_CORE.
63978         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
63979         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
63980         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
63981         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
63982         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
63983         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
63984         gl_FUNC_FCHOWNAT.
63985         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
63986         gl_FUNC_STRFTIME.
63987         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
63988         Reported by Ralf Wildenhues.
63989
63990 2007-01-24  Bruno Haible  <bruno@clisp.org>
63991
63992         Drop AC_REQUIRE calls that are redundant with the module dependencies.
63993         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
63994         gl_GETADDRINFO.
63995         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
63996         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
63997         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
63998
63999 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
64000
64001         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
64002         Don't use 'exit'; just return from 'main'.
64003         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
64004
64005         * lib/fnmatch_.h: Readjust white space and comments to match
64006         glibc, to avoid spurious diffs.
64007
64008 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
64009
64010         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
64011         2004-12-01 change by Jakub Jelinek, since this code won't compile
64012         if !LIBC.  Problem reported by Bob Proulx.
64013
64014 2007-01-23  Bruno Haible  <bruno@clisp.org>
64015
64016         * lib/striconveh.c: Include c-strcaseeq.h.
64017         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
64018         * modules/striconveh (Depends-on): Add c-strcaseeq.
64019
64020 2007-01-23  Bruno Haible  <bruno@clisp.org>
64021
64022         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
64023
64024         * modules/c-strcaseeq: New file.
64025         * lib/c-strcaseeq.h: New file.
64026
64027         * modules/streq: New file.
64028         * lib/streq.h: New file.
64029
64030 2007-01-23  Bruno Haible  <bruno@clisp.org>
64031
64032         * modules/striconveha-tests: New file.
64033         * tests/test-striconveha.c: New file.
64034
64035         * lib/striconveha.h: Include <stdbool.h>.
64036         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
64037         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
64038         (mem_iconveha_notranslit): Renamed from mem_iconveha.
64039         (mem_iconveha): New function.
64040         (str_iconveha_notranslit): Renamed from str_iconveha.
64041         (str_iconveha): New function.
64042         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
64043         c-strcase.
64044
64045 2007-01-23  Bruno Haible  <bruno@clisp.org>
64046
64047         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
64048         encodings without forgiving before trying any encoding with handler.
64049         (str_iconveha): Try all encodings without forgiving before trying any
64050         encoding with handler.
64051
64052 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
64053
64054         Import the following changes from libc.
64055
64056         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
64057
64058         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
64059
64060         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
64061
64062         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
64063         normal_bracket label.
64064
64065         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
64066
64067         [BZ #361]
64068         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
64069         to normal_bracket after fetching the next character.
64070
64071 2007-01-22  Bruno Haible  <bruno@clisp.org>
64072
64073         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
64074         argument.
64075         * lib/striconveh.c (iconv_carefully_1): New function.
64076         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
64077         argument.
64078         (str_cd_iconveh): Update.
64079         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
64080         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
64081         * tests/test-striconveh.c (MAGIC): New macro.
64082         (new_offsets): New function.
64083         (main): Test call with and without offsets.
64084
64085 2007-01-22  Bruno Haible  <bruno@clisp.org>
64086
64087         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
64088         * modules/sys_select (Makefile.am): Likewise.
64089         * modules/sys_socket (Makefile.am): Likewise.
64090         * modules/sys_time (Makefile.am): Likewise.
64091
64092 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
64093
64094         * modules/gettimeofday (License): Change from GPL to LGPL, since
64095         gettimeofday is a library function.
64096
64097 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
64098
64099         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
64100
64101 2007-01-21  Bruno Haible  <bruno@clisp.org>
64102
64103         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
64104
64105 2007-01-21  Bruno Haible  <bruno@clisp.org>
64106
64107         * modules/striconveha: New file.
64108         * lib/striconveha.h: New file.
64109         * lib/striconveha.c: New file.
64110         * MODULES.html.sh (Internationalization functions): Add striconveha.
64111         * lib/striconv.c (str_iconv): Optimize the case of an empty input
64112         string.
64113         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
64114
64115 2007-01-21  Bruno Haible  <bruno@clisp.org>
64116
64117         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
64118         * lib/striconveh.c (str_iconveh): Likewise.
64119
64120 2007-01-21  Bruno Haible  <bruno@clisp.org>
64121
64122         * lib/striconveh.h (mem_iconveh): New declaration.
64123         * lib/striconveh.c (mem_iconveh): New function.
64124         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
64125
64126 2007-01-21  Bruno Haible  <bruno@clisp.org>
64127
64128         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
64129
64130         * lib/striconveh.h (mem_cd_iconveh): Change specification.
64131         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
64132         original result buffer.
64133         (str_cd_iconveh): Update.
64134         * tests/test-striconveh.c (main): Update.
64135
64136         * lib/striconv.h (mem_cd_iconv): Change specification.
64137         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
64138         result buffer.
64139         (str_cd_iconv): Update.
64140         * tests/test-striconv.c (main): Update.
64141
64142 2007-01-21  Bruno Haible  <bruno@clisp.org>
64143
64144         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
64145
64146 2007-01-20  Jim Meyering  <jim@meyering.net>
64147
64148         * lib/userspec.c (parse_with_separator): If a user or group string
64149         starts with "+", skip the corresponding name-to-ID look-up, since
64150         such a look-up must fail: user and group names may not include "+".
64151
64152 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
64153
64154         * lib/poll.c: Include sys/time.h and time.h unconditionally,
64155         since we now assume the sys_time module.
64156         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
64157         check for sys/time.h; no longer needed.
64158         * modules/poll (Depends-on): Depend on sys_time.
64159
64160 2007-01-18  Bruno Haible  <bruno@clisp.org>
64161
64162         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
64163         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
64164
64165         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
64166         gettimeofday.
64167
64168         * tests/test-gettimeofday.c: Include <time.h>.
64169         (dummy): Remove variable.
64170
64171         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
64172         gl_HEADER_SYS_TIME_H.
64173         (gl_HEADER_SYS_TIME_H): New macro.
64174
64175         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
64176         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
64177         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
64178         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
64179         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
64180         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
64181         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
64182         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
64183         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
64184         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
64185         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
64186
64187         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
64188         last change; it caused a compilation error when cross-compiling to
64189         Cygwin.
64190
64191 2007-01-18  Jim Meyering  <jim@meyering.net>
64192
64193         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
64194         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
64195         than the race-prone "test -d sys || mkdir sys".
64196         (configure.ac): Use AC_PROG_MKDIR_P.
64197         * modules/sys_select: Likewise.
64198         * modules/sys_socket: Likewise.
64199         * modules/sys_time: Likewise.
64200
64201 2007-01-18  Eric Blake  <ebb9@byu.net>
64202
64203         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
64204         replace gettimeofday.
64205         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
64206         name, to avoid infinite recursion.
64207
64208 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
64209
64210         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
64211         module sys_time.
64212         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
64213         assume timespec.h defines struct timeval.
64214         * lib/settime.c: Likewise.
64215         * lib/utimens.c: Likewise.
64216         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
64217         since we now assume the gettimeofday module.
64218         * lib/tempname.c (__gen_tempname): Likewise.
64219         * lib/gettimeofday.h: Remove.
64220         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
64221         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
64222         Include <time.h>, for 'time()'.
64223         (localtime_buffer_addr): Also use this workaround if
64224         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
64225         to simplify the uses.  All uses changed.
64226         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
64227         that #undef is inside {}, and 'const' follows type name consistently.
64228         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
64229         (gettimeofday): Do not use the maximum possible value for
64230         tv->tv_usec, since that might break usages other than ls.c.
64231         Instead, we'll leave ls.c alone.  This undoes today's patch
64232         by Bruno.  Add a compile-time warning for 1s-clock resolution;
64233         we've never observed the problem but might as well keep the
64234         canary.
64235         * lib/nanosleep.c: Include timespec.h first, for interface check.
64236         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
64237         now assume the sys_time module.
64238         * lib/tempname.c: Likewise.
64239         * lib/timespec.h: Likewise.
64240         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
64241         needed.
64242         * lib/strftime.c: Likewise.
64243         * lib/timespec.h: Likewise.
64244         * lib/posixtm.c: Include posixtm.h first, for interface check.
64245         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
64246         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
64247         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
64248         * lib/sys_time_.h: New file.
64249         * lib/timespec.h (struct timespec): Use long int, not long.
64250         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
64251         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
64252         Remove obsolescent call to AC_HEADER_TIME.
64253         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
64254         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
64255         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
64256         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
64257         Likewise.
64258         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
64259         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
64260         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
64261         into the sys_time module.  Check for gettimeofday just once.
64262         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
64263         for gettimeofday signature to just check the signature.  Merely
64264         compile it, since linking doesn't test signature.  Improve test for
64265         whether gettimeofday.o is actually needed.
64266         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
64267         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
64268         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
64269         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
64270         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
64271         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
64272         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
64273         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
64274         than worrying about sys/time.h.
64275         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
64276         Don't bother worrying about TIME_WITH_SYS_TIME.
64277         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
64278         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
64279         * m4/sys_time_h.m4: New file.
64280         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
64281         Don't include sys/time.h.  Return from main rather than exiting.
64282         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
64283         all uses changed.
64284         * modules/gethrxtime (Depends-on): Add sys_time.
64285         * modules/gettime (Depends-on): Likewise.
64286         * modules/gettimeofday (Depends-on): Likewise.
64287         * modules/nanosleep (Depends-on): Likewise.
64288         * modules/settime (Depends-on): Likewise.
64289         * modules/tempname (Depends-on): Likewise.
64290         * modules/utimens (Depends-on): Likewise.
64291         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
64292         (Include): Change back to <sys/time.h>.
64293         (Maintainer): Add self.
64294         * modules/sys_time: New file.
64295         * modules/tempname (Depends-on): Add gettimeofday.
64296         * tests/test-gettimeofday.c: Include <sys/time.h>
64297         rather than gettimeofday.h.
64298
64299 2007-01-17  Bruno Haible  <bruno@clisp.org>
64300
64301         * gnulib-tool (func_get_license): Revert last patch. Instead, let
64302         the license default to GPL.
64303         (func_create_testdir): Don't complain if a module is LGPL and its
64304         tests module depends on GPLed modules.
64305
64306 2007-01-17  Bruno Haible  <bruno@clisp.org>
64307
64308         * lib/gettimeofday.c (gettimeofday): Add code for the case
64309         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
64310         maximum possible value for tv->tv_usec, rather than the minimum one.
64311
64312 2005-10-08  Martin Lambers  <marlam@marlam.de>
64313 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
64314 2007-01-16  Bruno Haible  <bruno@clisp.org>
64315
64316         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
64317         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
64318         gl_FUNC_GETTIMEOFDAY.
64319         (Include): Add gettimeofday.h.
64320         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
64321         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
64322         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
64323         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
64324         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
64325         * lib/gettimeofday.h: New file.
64326         * lib/gettimeofday.c: Include <sys/timeb.h>.
64327         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
64328         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
64329         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
64330         fall back on time().
64331
64332         * tests/test-gettimeofday.c: New file.
64333         * modules/gettimeofday-tests: New file.
64334
64335 2007-01-16  Eric Blake  <ebb9@byu.net>
64336
64337         * modules/fnmatch (Depends-on): Depend on wchar.
64338         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
64339         * m4/fnmatch.m4: Likewise.
64340         * modules/mbchar (Makefile.am): Assume <wchar.h>.
64341         * m4/mbchar.m4: Likewise.
64342         * modules/mbswidth (Depends-on): Depend on wchar.
64343         * lib/mbswidth.c: Assume <wchar.h>.
64344         * m4/mbswidth.m4: Likewise.
64345         * modules/quotearg (Depends-on): Depend on wchar.
64346         * lib/quotearg.c: Assume <wchar.h>.
64347         * m4/quotearg.m4: Likewise.
64348         * modules/regex (Depends-on): Depend on wchar.
64349         * lib/regex_internal.h: Assume <wchar.h>.
64350         * m4/regex.m4: Likewise.
64351         * modules/stdint (Depends-on): Depend on wchar.
64352         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
64353         * m4/stdint.m4: Likewise.
64354         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
64355         * modules/strftime (Depends-on): Depend on wchar.
64356         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
64357         * modules/strtol (Depends-on): Depend on wchar.
64358         * lib/strtol.c: Assume <wchar.h>.
64359         * modules/wcwidth (Depends-on): Depend on wchar.
64360         * lib/wcwidth.h: Assume <wchar.h>.
64361         * m4/wcwidth.m4: Likewise.
64362
64363 2007-01-16  Bruno Haible  <bruno@clisp.org>
64364
64365         * modules/csharpexec-script: New, created from...
64366         * modules/csharpexec: ... this.
64367
64368 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
64369
64370         * modules/javaexec-script: New, created from...
64371         * modules/javaexec: ... this.
64372
64373 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
64374
64375         * modules/poll (Dependencies): Add sys_select.
64376
64377 2007-01-15  Jim Meyering  <jim@meyering.net>
64378
64379         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
64380         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
64381         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
64382         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
64383
64384 2007-01-15  Bruno Haible  <bruno@clisp.org>
64385
64386         * modules/striconveh: New file.
64387         * lib/striconveh.h: New file.
64388         * lib/striconveh.c: New file.
64389         * MODULES.html.sh (Internationalization functions): Add striconveh.
64390
64391         * modules/striconveh-tests: New file.
64392         * tests/test-striconveh.c: New file.
64393
64394 2007-01-15  Bruno Haible  <bruno@clisp.org>
64395
64396         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
64397         not from GNU libiconv or GNU libc.
64398
64399 2007-01-15  Bruno Haible  <bruno@clisp.org>
64400
64401         * doc/gnulib-intro.texi (Copyright): Explain the different license
64402         terms for module descriptions, autoconf macros, tests, documentation.
64403
64404 2007-01-14  Bruno Haible  <bruno@clisp.org>
64405
64406         * modules/striconv-tests: New file.
64407         * tests/test-striconv.c: New file.
64408
64409 2007-01-14  Bruno Haible  <bruno@clisp.org>
64410
64411         * modules/iconv-tests: New file.
64412         * tests/test-iconv.c: New file.
64413
64414 2007-01-14  Bruno Haible  <bruno@clisp.org>
64415
64416         * gnulib-tool (func_get_license): For test modules, use the license of
64417         the main module.
64418
64419 2007-01-14  Bruno Haible  <bruno@clisp.org>
64420
64421         * modules/iconv (Include): Clarify that <iconv.h> can only be included
64422         if iconv is found to exist.
64423
64424 2007-01-14  Bruno Haible  <bruno@clisp.org>
64425
64426         * modules/c-ctype-tests: New file.
64427         * tests/test-c-ctype.c: New file.
64428
64429 2007-01-14  Bruno Haible  <bruno@clisp.org>
64430
64431         * modules/binary-io-tests: New file.
64432         * tests/test-binary-io.sh: New file.
64433         * tests/test-binary-io.c: New file.
64434
64435 2007-01-14  Bruno Haible  <bruno@clisp.org>
64436
64437         * modules/array-oset-tests: New file.
64438         * tests/test-array_oset.c: New file.
64439
64440 2007-01-14  Bruno Haible  <bruno@clisp.org>
64441
64442         * modules/array-list-tests: New file.
64443         * tests/test-array_list.c: New file.
64444
64445 2007-01-14  Bruno Haible  <bruno@clisp.org>
64446
64447         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
64448         and make.
64449         Reported by Simon Josefsson in
64450         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
64451
64452 2007-01-14  Bruno Haible  <bruno@clisp.org>
64453
64454         * modules/allocsa-tests: New file.
64455         * tests/test-allocsa.c: New file.
64456
64457 2007-01-14  Bruno Haible  <bruno@clisp.org>
64458
64459         * modules/fchdir (Depends-on): Add absolute-header.
64460         * modules/unistd (Depends-on): Likewise.
64461
64462 2006-12-30  Bruno Haible  <bruno@clisp.org>
64463
64464         * modules/fchdir: New file.
64465         * modules/unistd (Files): Add lib/unistd_.h.
64466         (Makefile.am): Generate unistd.h from unistd_.h.
64467         * lib/fchdir.c: New file.
64468         * lib/dirent_.h: New file.
64469         * lib/unistd_.h: New file.
64470         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
64471         * m4/fchdir.m4: New file.
64472         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
64473         (gl_HEADER_UNISTD): Invoke it.
64474         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
64475         function.
64476         * lib/backupfile.c (opendir, closedir): Undefine.
64477         * lib/chown.c (open, close): Undefine.
64478         * lib/clean-temp.c (open, close): Undefine.
64479         * lib/copy-file.c (open, close): Undefine.
64480         * lib/execute.c (open, close): Undefine.
64481         * lib/fsusage.c (open, close): Undefine.
64482         * lib/gc-gnulib.c (open, close): Undefine.
64483         * lib/getcwd.c (opendir, closedir): Undefine.
64484         * lib/glob.c (opendir, closedir): Undefine.
64485         * lib/javacomp.c (open, close): Undefine.
64486         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
64487         * lib/openat-proc.c (open, close): Undefine.
64488         * lib/pagealign_alloc.c (open, close): Undefine.
64489         * lib/pipe.c (open, close): Undefine.
64490         * lib/progreloc.c (open, close): Undefine.
64491         * lib/savedir.c (opendir, closedir): Undefine.
64492         * lib/utime.c (open, close): Undefine.
64493         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
64494
64495 2007-01-10  Bruno Haible  <bruno@clisp.org>
64496
64497         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
64498
64499 2007-01-12  Eric Blake  <ebb9@byu.net>
64500
64501         Provide a robust <wchar.h>.  Further simplifications are now
64502         possible in other modules, but not included here.
64503         * modules/wchar: New module.
64504         * m4/wchar.m4: New file.
64505         * lib/wchar_.h: Likewise.
64506         * modules/mbchar (Depends-on): Depend on wchar, as the first use
64507         of the new module.
64508         * MODULES.html.sh (Extended multibyte and wide character utilities):
64509         New section.
64510
64511 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
64512
64513         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
64514         to a reasonable default for memory allocation.
64515         (xreadlink): Don't allocate a huge buffer, to work around a buggy
64516         file system that reports garbage st_size values for symlinks.
64517         Problem reported by Liyang Hu.
64518
64519 2007-01-11  Simon Josefsson  <simon@josefsson.org>
64520
64521         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
64522         Emacs .#* auto-save files).
64523
64524 2007-01-11  Bruno Haible  <bruno@clisp.org>
64525
64526         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
64527         directory.
64528
64529 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
64530
64531         Use @...@ consistently in lib/wctype_.h.
64532         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
64533         on it being set to 1 or 0.
64534         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
64535         go back to AC_SUBSTing it.
64536         * modules/wctype (Makefile.am): Undo previous change.
64537
64538 2007-01-10  Eric Blake  <ebb9@byu.net>
64539
64540         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
64541         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
64542         * modules/wctype (Makefile.am): Likewise.
64543         Reported by Chris McGuire.
64544
64545 2007-01-10  Jim Meyering  <jim@meyering.net>
64546
64547         fts.c: a small readability/maintainability improvement
64548         * lib/fts.c (fts_read): Make this code slightly more readable and
64549         maintainable by hoisting the "sp->fts_cur = p" assignments to
64550         immediately follow the statements that set P.  Derived from
64551         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
64552
64553 2007-01-10  Eric Blake  <ebb9@byu.net>
64554
64555         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
64556         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
64557         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
64558         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
64559         Reported by Chris McGuire.
64560
64561 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64562
64563         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
64564         in sed script.
64565
64566 2007-01-09  Bruno Haible  <bruno@clisp.org>
64567
64568         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
64569         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
64570         variables.
64571         (func_module): Use them.
64572
64573 2007-01-09  Bruno Haible  <bruno@clisp.org>
64574
64575         * modules/unistr/base: New file.
64576         * lib/unistr.h: New file.
64577
64578         * modules/unistr/u8-to-u16: New file.
64579         * lib/unistr/u8-to-u16.c: New file.
64580
64581         * modules/unistr/u8-to-u32: New file.
64582         * lib/unistr/u8-to-u32.c: New file.
64583
64584         * modules/unistr/u16-to-u8: New file.
64585         * lib/unistr/u16-to-u8.c: New file.
64586
64587         * modules/unistr/u16-to-u32: New file.
64588         * lib/unistr/u16-to-u32.c: New file.
64589
64590         * modules/unistr/u32-to-u8: New file.
64591         * lib/unistr/u32-to-u8.c: New file.
64592
64593         * modules/unistr/u32-to-u16: New file.
64594         * lib/unistr/u32-to-u16.c: New file.
64595
64596         * modules/unistr/u8-check: New file.
64597         * modules/unistr/u16-check: New file.
64598         * modules/unistr/u32-check: New file.
64599         * lib/unistr/u8-check.c: New file.
64600         * lib/unistr/u16-check.c: New file.
64601         * lib/unistr/u32-check.c: New file.
64602
64603         * modules/unistr/u8-chr: New file.
64604         * modules/unistr/u16-chr: New file.
64605         * modules/unistr/u32-chr: New file.
64606         * lib/unistr/u8-chr.c: New file.
64607         * lib/unistr/u16-chr.c: New file.
64608         * lib/unistr/u32-chr.c: New file.
64609
64610         * modules/unistr/u8-cmp: New file.
64611         * modules/unistr/u16-cmp: New file.
64612         * modules/unistr/u32-cmp: New file.
64613         * lib/unistr/u8-cmp.c: New file.
64614         * lib/unistr/u16-cmp.c: New file.
64615         * lib/unistr/u32-cmp.c: New file.
64616
64617         * modules/unistr/u8-cpy: New file.
64618         * modules/unistr/u16-cpy: New file.
64619         * modules/unistr/u32-cpy: New file.
64620         * lib/unistr/u8-cpy.c: New file.
64621         * lib/unistr/u16-cpy.c: New file.
64622         * lib/unistr/u32-cpy.c: New file.
64623         * lib/unistr/u-cpy.h: New file.
64624
64625         * modules/unistr/u8-cpy-alloc: New file.
64626         * modules/unistr/u16-cpy-alloc: New file.
64627         * modules/unistr/u32-cpy-alloc: New file.
64628         * lib/unistr/u8-cpy-alloc.c: New file.
64629         * lib/unistr/u16-cpy-alloc.c: New file.
64630         * lib/unistr/u32-cpy-alloc.c: New file.
64631         * lib/unistr/u-cpy-alloc.h: New file.
64632
64633         * modules/unistr/u8-endswith: New file.
64634         * modules/unistr/u16-endswith: New file.
64635         * modules/unistr/u32-endswith: New file.
64636         * lib/unistr/u8-endswith.c: New file.
64637         * lib/unistr/u16-endswith.c: New file.
64638         * lib/unistr/u32-endswith.c: New file.
64639         * lib/unistr/u-endswith.h: New file.
64640
64641         * modules/unistr/u8-mblen: New file.
64642         * modules/unistr/u16-mblen: New file.
64643         * modules/unistr/u32-mblen: New file.
64644         * lib/unistr/u8-mblen.c: New file.
64645         * lib/unistr/u16-mblen.c: New file.
64646         * lib/unistr/u32-mblen.c: New file.
64647
64648         * modules/unistr/u8-mbtouc: New file.
64649         * modules/unistr/u16-mbtouc: New file.
64650         * modules/unistr/u32-mbtouc: New file.
64651         * lib/unistr/u8-mbtouc.c: New file.
64652         * lib/unistr/u16-mbtouc.c: New file.
64653         * lib/unistr/u32-mbtouc.c: New file.
64654
64655         * modules/unistr/u8-mbtouc-safe: New file.
64656         * modules/unistr/u16-mbtouc-safe: New file.
64657         * modules/unistr/u32-mbtouc-safe: New file.
64658         * lib/unistr/u8-mbtouc-safe.c: New file.
64659         * lib/unistr/u16-mbtouc-safe.c: New file.
64660         * lib/unistr/u32-mbtouc-safe.c: New file.
64661
64662         * modules/unistr/u8-move: New file.
64663         * modules/unistr/u16-move: New file.
64664         * modules/unistr/u32-move: New file.
64665         * lib/unistr/u8-move.c: New file.
64666         * lib/unistr/u16-move.c: New file.
64667         * lib/unistr/u32-move.c: New file.
64668         * lib/unistr/u-move.h: New file.
64669
64670         * modules/unistr/u8-next: New file.
64671         * modules/unistr/u16-next: New file.
64672         * modules/unistr/u32-next: New file.
64673         * lib/unistr/u8-next.c: New file.
64674         * lib/unistr/u16-next.c: New file.
64675         * lib/unistr/u32-next.c: New file.
64676
64677         * modules/unistr/u8-prev: New file.
64678         * modules/unistr/u16-prev: New file.
64679         * modules/unistr/u32-prev: New file.
64680         * lib/unistr/u8-prev.c: New file.
64681         * lib/unistr/u16-prev.c: New file.
64682         * lib/unistr/u32-prev.c: New file.
64683
64684         * modules/unistr/u8-set: New file.
64685         * modules/unistr/u16-set: New file.
64686         * modules/unistr/u32-set: New file.
64687         * lib/unistr/u8-set.c: New file.
64688         * lib/unistr/u16-set.c: New file.
64689         * lib/unistr/u32-set.c: New file.
64690         * lib/unistr/u-set.h: New file.
64691
64692         * modules/unistr/u8-startswith: New file.
64693         * modules/unistr/u16-startswith: New file.
64694         * modules/unistr/u32-startswith: New file.
64695         * lib/unistr/u8-startswith.c: New file.
64696         * lib/unistr/u16-startswith.c: New file.
64697         * lib/unistr/u32-startswith.c: New file.
64698         * lib/unistr/u-startswith.h: New file.
64699
64700         * modules/unistr/u8-stpcpy: New file.
64701         * modules/unistr/u16-stpcpy: New file.
64702         * modules/unistr/u32-stpcpy: New file.
64703         * lib/unistr/u8-stpcpy.c: New file.
64704         * lib/unistr/u16-stpcpy.c: New file.
64705         * lib/unistr/u32-stpcpy.c: New file.
64706         * lib/unistr/u-stpcpy.h: New file.
64707
64708         * modules/unistr/u8-stpncpy: New file.
64709         * modules/unistr/u16-stpncpy: New file.
64710         * modules/unistr/u32-stpncpy: New file.
64711         * lib/unistr/u8-stpncpy.c: New file.
64712         * lib/unistr/u16-stpncpy.c: New file.
64713         * lib/unistr/u32-stpncpy.c: New file.
64714         * lib/unistr/u-stpncpy.h: New file.
64715
64716         * modules/unistr/u8-strcat: New file.
64717         * modules/unistr/u16-strcat: New file.
64718         * modules/unistr/u32-strcat: New file.
64719         * lib/unistr/u8-strcat.c: New file.
64720         * lib/unistr/u16-strcat.c: New file.
64721         * lib/unistr/u32-strcat.c: New file.
64722         * lib/unistr/u-strcat.h: New file.
64723
64724         * modules/unistr/u8-strchr: New file.
64725         * modules/unistr/u16-strchr: New file.
64726         * modules/unistr/u32-strchr: New file.
64727         * lib/unistr/u8-strchr.c: New file.
64728         * lib/unistr/u16-strchr.c: New file.
64729         * lib/unistr/u32-strchr.c: New file.
64730
64731         * modules/unistr/u8-strcmp: New file.
64732         * modules/unistr/u16-strcmp: New file.
64733         * modules/unistr/u32-strcmp: New file.
64734         * lib/unistr/u8-strcmp.c: New file.
64735         * lib/unistr/u16-strcmp.c: New file.
64736         * lib/unistr/u32-strcmp.c: New file.
64737
64738         * modules/unistr/u8-strcpy: New file.
64739         * modules/unistr/u16-strcpy: New file.
64740         * modules/unistr/u32-strcpy: New file.
64741         * lib/unistr/u8-strcpy.c: New file.
64742         * lib/unistr/u16-strcpy.c: New file.
64743         * lib/unistr/u32-strcpy.c: New file.
64744         * lib/unistr/u-strcpy.h: New file.
64745
64746         * modules/unistr/u8-strcspn: New file.
64747         * modules/unistr/u16-strcspn: New file.
64748         * modules/unistr/u32-strcspn: New file.
64749         * lib/unistr/u8-strcspn.c: New file.
64750         * lib/unistr/u16-strcspn.c: New file.
64751         * lib/unistr/u32-strcspn.c: New file.
64752         * lib/unistr/u-strcspn.h: New file.
64753
64754         * modules/unistr/u8-strdup: New file.
64755         * modules/unistr/u16-strdup: New file.
64756         * modules/unistr/u32-strdup: New file.
64757         * lib/unistr/u8-strdup.c: New file.
64758         * lib/unistr/u16-strdup.c: New file.
64759         * lib/unistr/u32-strdup.c: New file.
64760         * lib/unistr/u-strdup.h: New file.
64761
64762         * modules/unistr/u8-strlen: New file.
64763         * modules/unistr/u16-strlen: New file.
64764         * modules/unistr/u32-strlen: New file.
64765         * lib/unistr/u8-strlen.c: New file.
64766         * lib/unistr/u16-strlen.c: New file.
64767         * lib/unistr/u32-strlen.c: New file.
64768         * lib/unistr/u-strlen.h: New file.
64769
64770         * modules/unistr/u8-strmblen: New file.
64771         * modules/unistr/u16-strmblen: New file.
64772         * modules/unistr/u32-strmblen: New file.
64773         * lib/unistr/u8-strmblen.c: New file.
64774         * lib/unistr/u16-strmblen.c: New file.
64775         * lib/unistr/u32-strmblen.c: New file.
64776
64777         * modules/unistr/u8-strmbtouc: New file.
64778         * modules/unistr/u16-strmbtouc: New file.
64779         * modules/unistr/u32-strmbtouc: New file.
64780         * lib/unistr/u8-strmbtouc.c: New file.
64781         * lib/unistr/u16-strmbtouc.c: New file.
64782         * lib/unistr/u32-strmbtouc.c: New file.
64783
64784         * modules/unistr/u8-strncat: New file.
64785         * modules/unistr/u16-strncat: New file.
64786         * modules/unistr/u32-strncat: New file.
64787         * lib/unistr/u8-strncat.c: New file.
64788         * lib/unistr/u16-strncat.c: New file.
64789         * lib/unistr/u32-strncat.c: New file.
64790         * lib/unistr/u-strncat.h: New file.
64791
64792         * modules/unistr/u8-strncmp: New file.
64793         * modules/unistr/u16-strncmp: New file.
64794         * modules/unistr/u32-strncmp: New file.
64795         * lib/unistr/u8-strncmp.c: New file.
64796         * lib/unistr/u16-strncmp.c: New file.
64797         * lib/unistr/u32-strncmp.c: New file.
64798
64799         * modules/unistr/u8-strncpy: New file.
64800         * modules/unistr/u16-strncpy: New file.
64801         * modules/unistr/u32-strncpy: New file.
64802         * lib/unistr/u8-strncpy.c: New file.
64803         * lib/unistr/u16-strncpy.c: New file.
64804         * lib/unistr/u32-strncpy.c: New file.
64805         * lib/unistr/u-strncpy.h: New file.
64806
64807         * modules/unistr/u8-strnlen: New file.
64808         * modules/unistr/u16-strnlen: New file.
64809         * modules/unistr/u32-strnlen: New file.
64810         * lib/unistr/u8-strnlen.c: New file.
64811         * lib/unistr/u16-strnlen.c: New file.
64812         * lib/unistr/u32-strnlen.c: New file.
64813         * lib/unistr/u-strnlen.h: New file.
64814
64815         * modules/unistr/u8-strpbrk: New file.
64816         * modules/unistr/u16-strpbrk: New file.
64817         * modules/unistr/u32-strpbrk: New file.
64818         * lib/unistr/u8-strpbrk.c: New file.
64819         * lib/unistr/u16-strpbrk.c: New file.
64820         * lib/unistr/u32-strpbrk.c: New file.
64821         * lib/unistr/u-strpbrk.h: New file.
64822
64823         * modules/unistr/u8-strrchr: New file.
64824         * modules/unistr/u16-strrchr: New file.
64825         * modules/unistr/u32-strrchr: New file.
64826         * lib/unistr/u8-strrchr.c: New file.
64827         * lib/unistr/u16-strrchr.c: New file.
64828         * lib/unistr/u32-strrchr.c: New file.
64829
64830         * modules/unistr/u8-strspn: New file.
64831         * modules/unistr/u16-strspn: New file.
64832         * modules/unistr/u32-strspn: New file.
64833         * lib/unistr/u8-strspn.c: New file.
64834         * lib/unistr/u16-strspn.c: New file.
64835         * lib/unistr/u32-strspn.c: New file.
64836         * lib/unistr/u-strspn.h: New file.
64837
64838         * modules/unistr/u8-strstr: New file.
64839         * modules/unistr/u16-strstr: New file.
64840         * modules/unistr/u32-strstr: New file.
64841         * lib/unistr/u8-strstr.c: New file.
64842         * lib/unistr/u16-strstr.c: New file.
64843         * lib/unistr/u32-strstr.c: New file.
64844         * lib/unistr/u-strstr.h: New file.
64845
64846         * modules/unistr/u8-strtok: New file.
64847         * modules/unistr/u16-strtok: New file.
64848         * modules/unistr/u32-strtok: New file.
64849         * lib/unistr/u8-strtok.c: New file.
64850         * lib/unistr/u16-strtok.c: New file.
64851         * lib/unistr/u32-strtok.c: New file.
64852         * lib/unistr/u-strtok.h: New file.
64853
64854         * modules/unistr/u8-uctomb: New file.
64855         * modules/unistr/u16-uctomb: New file.
64856         * modules/unistr/u32-uctomb: New file.
64857         * lib/unistr/u8-uctomb.c: New file.
64858         * lib/unistr/u16-uctomb.c: New file.
64859         * lib/unistr/u32-uctomb.c: New file.
64860
64861         * MODULES.html.sh (Unicode string functions): Add the new modules.
64862
64863 2007-01-08  Bruno Haible  <bruno@clisp.org>
64864
64865         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
64866         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
64867         subdirectories.
64868
64869 2007-01-08  Karl Berry  <karl@gnu.org>
64870
64871         * doc/error.texi: mention that main() fns must set program_name
64872         when progname is used.
64873
64874 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
64875
64876         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
64877         WCTYPE_H is empty, for the benefit of builds from non-distclean
64878         directories.  Problem reported by Eric Blake in
64879         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
64880
64881 2007-01-08  Bruno Haible  <bruno@clisp.org>
64882
64883         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
64884         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
64885         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
64886         PROVIDE_CANONICALIZE_FILENAME_MODE.
64887         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
64888
64889 2007-01-08  Bruno Haible  <bruno@clisp.org>
64890
64891         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
64892         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
64893         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
64894         * lib/fts.c: Likewise.
64895         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
64896
64897 2006-12-25  Bruno Haible  <bruno@clisp.org>
64898
64899         * modules/utf8-ucs4-safe: New file.
64900         * lib/utf8-ucs4-safe.h: New file.
64901         * lib/unistr/utf8-ucs4-safe.c: New file.
64902
64903         * modules/utf16-ucs4-safe: New file.
64904         * lib/utf16-ucs4-safe.h: New file.
64905         * lib/unistr/utf16-ucs4-safe.c: New file.
64906
64907         * MODULES.html.sh (Unicode string functions): Add the new modules.
64908
64909 2007-01-08  Bruno Haible  <bruno@clisp.org>
64910
64911         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
64912         (Depends-on): Add unitypes.
64913         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
64914         (u8_mbtouc_aux): Move out to separate file.
64915         (u8_mbtouc): Use ucs4_t, uint8_t types.
64916         * lib/unistr/utf8-ucs4.c: New file.
64917
64918         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
64919         (Depends-on): Add unitypes.
64920         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
64921         (u16_mbtouc_aux): Move out to separate file.
64922         (u16_mbtouc): Use ucs4_t, uint16_t types.
64923         * lib/unistr/utf16-ucs4.c: New file.
64924
64925         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
64926         (Depends-on): Add unitypes.
64927         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
64928         (u8_uctomb_aux): Move out to separate file.
64929         (u8_uctomb): Use ucs4_t, uint8_t types.
64930         * lib/unistr/ucs4-utf8.c: New file.
64931
64932         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
64933         (Depends-on): Add unitypes.
64934         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
64935         (u16_uctomb_aux): Move out to separate file.
64936         (u16_uctomb): Use ucs4_t, uint16_t types.
64937         * lib/unistr/ucs4-utf16.c: New file.
64938
64939 2006-12-25  Bruno Haible  <bruno@clisp.org>
64940
64941         * modules/unitypes: New file.
64942         * lib/unitypes.h: New file.
64943         * MODULES.html.sh (func_all_modules): New section "Unicode string
64944         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
64945         this section. Add unitypes.
64946
64947 2007-01-08  Bruno Haible  <bruno@clisp.org>
64948
64949         Avoid variable names that conflict with those from libtool.
64950         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
64951         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
64952         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
64953         library_names_spec to acl_library_names_spec, hardcode_* to
64954         acl_hardcode_*.
64955         Reported by Ralf Wildenhues.
64956
64957 2007-01-08  Bruno Haible  <bruno@clisp.org>
64958
64959         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
64960         definition.
64961         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
64962         definition.
64963         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
64964         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
64965         definition.
64966         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
64967         definition.
64968         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
64969         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
64970         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
64971         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
64972         definition.
64973         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
64974         definition.
64975         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
64976         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
64977         GC_USE_<algorithm>.
64978         * lib/gc-libgcrypt.c: Likewise.
64979         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
64980         * modules/gc-arctwo (configure.ac): Likewise.
64981         * modules/gc-des (configure.ac): Likewise.
64982         * modules/gc-hmac-md5 (configure.ac): Likewise.
64983         * modules/gc-hmac-sha1 (configure.ac): Likewise.
64984         * modules/gc-md2 (configure.ac): Likewise.
64985         * modules/gc-md4 (configure.ac): Likewise.
64986         * modules/gc-md5 (configure.ac): Likewise.
64987         * modules/gc-random (configure.ac): Likewise.
64988         * modules/gc-rijndael (configure.ac): Likewise.
64989         * modules/gc-sha1 (configure.ac): Likewise.
64990
64991 2007-01-08  Bruno Haible  <bruno@clisp.org>
64992
64993         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
64994         macro definition.
64995         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
64996         definition.
64997         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
64998         definition.
64999         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
65000         * modules/fcntl-safer (configure.ac): Likewise.
65001         * modules/fopen-safer (configure.ac): Likewise.
65002         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
65003         GNULIB_FWRITEERROR macro definition.
65004
65005 2007-01-08  Bruno Haible  <bruno@clisp.org>
65006
65007         * m4/gnulib-common.m4: New file.
65008         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
65009         (func_get_filelist): Add m4/gnulib-common.m4.
65010
65011 2007-01-08  Bruno Haible  <bruno@clisp.org>
65012
65013         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
65014         command.
65015
65016 2007-01-08  Jim Meyering  <jim@meyering.net>
65017
65018         Use a more robust test for a "can't happen" condition.
65019         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
65020         narrowed the st_size value.  Presuming the "can't happen" condition
65021         is true, that narrowing could conceivably convert an invalid st_size
65022         value into a valid one.  Instead, use a change based on Matthew
65023         Woehlke's original patch.
65024
65025         Slight readability improvement: use an assert-like macro
65026         in place of literal "abort ()" uses.
65027         * lib/fts.c (fts_assert): Define.
65028         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
65029         Use this macro instead of a bare 'abort'.
65030
65031 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
65032
65033         Don't worry about using IRIX 5.3's wctype.h broken definitions;
65034         simply work around them.
65035         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
65036         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
65037         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
65038         declaring.
65039         Don't bother to define as macros, since the standard doesn't require it.
65040         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
65041         longer worry about IRIX 5.3.
65042         (HAVE_WCTYPE_CTMP_BUG): Remove.
65043
65044 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
65045
65046         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
65047         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
65048         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
65049         Problems reported by Georg Schwarz for IRIX 5.3.
65050
65051         * gnulib-tool (autoconf_minversion): Take the maximum version number
65052         found, not the minimum.  Problem reported by James Youngman.
65053
65054 2007-01-03  Karl Berry  <karl@gnu.org>
65055
65056         * doc/error.texi: new file, explaining interaction with progname.
65057         * doc/gnulib.texi: include it.  Update copyright.
65058
65059 2007-01-03  Simon Josefsson  <simon@josefsson.org>
65060
65061         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
65062         AC_CANONICAL_HOST, to improve autobuild outputs.
65063
65064 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
65065             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
65066
65067         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
65068         sockets, server sockets, and other file descriptors.  Count errors
65069         to compute the return value.  Reorder the code a bit to be easier
65070         to follow.  Don't set event bits that were not requested (except
65071         POLLERR and POLLHUP).
65072
65073 2007-01-01  Bruno Haible  <bruno@clisp.org>
65074
65075         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
65076
65077 2007-01-03  Jim Meyering  <jim@meyering.net>
65078
65079         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
65080
65081 2007-01-02  Bruno Haible  <bruno@clisp.org>
65082
65083         * modules/settime (Include): Require timespec.h.
65084         * modules/nanosleep (Include): Likewise.
65085
65086 2007-01-01  Bruno Haible  <bruno@clisp.org>
65087
65088         * gnulib-tool (func_emit_copyright_notice): Bump year.
65089         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
65090
65091 2007-01-01  Bruno Haible  <bruno@clisp.org>
65092
65093         Improve support for OpenBSD.
65094         * build-aux/config.rpath (libname_spec): Export.
65095         (library_names_spec): New variable. Export.
65096         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
65097         library_names_spec from the config.rpath output. Locate shared library
65098         through the name pattern in library_names_spec.
65099
65100 2007-01-01  Eric Blake  <ebb9@byu.net>
65101
65102         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
65103
65104 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
65105
65106         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
65107         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
65108         assume the C locale, and avoid an "eval" that could cause trouble.
65109         Problem with SORT reported by Bob Proulx.
65110
65111         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
65112         Define.  Trivial patch from Henning Nielsen Lund, originally
65113         sent to bug-grep@gnu.org today.
65114
65115 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
65116
65117         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
65118         struct stat.  Problem reported by Henning Nielsen Lund.
65119         * lib/acl.c: Include acl.h first, to check interface.  Don't
65120         bother to include sys/types.h and sys/stat.h again.
65121
65122 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
65123
65124         Import the following change from libc; problem reported by
65125         Sven Verdoolaege.
65126
65127         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
65128
65129         [BZ #1373]
65130         * lib/argp.h: Remove __NTH for __argp_usage inline function.
65131
65132 2006-12-28  Jim Meyering  <jim@meyering.net>
65133
65134         * build-aux/announce-gen: Do not assume that the package
65135         builds any of tar.gz, tar.bz2, and .xdelta files.
65136         Suggestion from Simon Josefsson.
65137
65138 2006-12-28  Simon Josefsson  <simon@josefsson.org>
65139
65140         * modules/announce-gen: New file.
65141
65142 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
65143
65144         * lib/mbchar.h: Just include <wctype.h>; the wctype module
65145         handles its gotchas now.
65146         * lib/mbswidth.c: Likewise.
65147         * lib/wcwidth.h: Likewise.
65148         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
65149         and iswcntrl; the wctype module does this stuff now.
65150         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
65151         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
65152         * modules/mbchar (Depends-on): Add wctype.
65153         * modules/mbswidth (Depends-on): Likewise.
65154         * modules/wcwidth (Depends-on): Likewise.
65155
65156 2006-12-27  Eric Blake  <ebb9@byu.net>
65157
65158         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
65159         module uses more than what <wctype.h> is required to provide.
65160
65161 2006-12-26  Eric Blake  <ebb9@byu.net>
65162
65163         * gnulib-tool (sed_extract_prog): Avoid space-tab.
65164
65165 2006-12-26  Eric Blake  <ebb9@byu.net>
65166
65167         * modules/absolute-header: New module.
65168         * modules/fcntl (Depends-on): Depend on it.
65169         * modules/inttypes (Depends-on): Likewise.
65170         * modules/stdint (Depends-on): Likewise.
65171         * modules/sys_stat (Depends-on): Likewise.
65172         * modules/wctype (Depends-on): Likewise.
65173         * MODULES.html.sh (Support for building libraries and
65174         executables): Document it.
65175
65176 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
65177
65178         * gnulib-tool (SED): Remove, undoing previous change.
65179         The problem was that it broke coreutils on Solaris, because
65180         "sed --posix" leaked into a makefile.
65181         (sed): New alias, if 'alias' and GNU sed.
65182
65183 2006-12-24  Jim Meyering  <jim@meyering.net>
65184
65185         Work around an fchownat bug in glibc-2.4:
65186         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
65187         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
65188         in spite of the -P option.
65189         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
65190         New macros.
65191         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
65192         * modules/openat (Files): Add lib/fchownat.c.
65193         * lib/openat.c (fchownat): Don't define here.  Move to...
65194         * lib/fchownat.c: ...this new file.
65195
65196 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
65197
65198         Fix bug reported by Bruno Haible in
65199         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
65200         where quotearg.c didn't compile on Mac OS X 10.2 because it
65201         lacks <wchar.h> and wint_t.
65202         * lib/wctype_.h (__wctype_wint_t): New type.
65203         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
65204         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
65205         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
65206         Arg is now of type __wctype_wint_t, not wint_t.
65207         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
65208         substitute HAVE_WINT_T.
65209         * modules/wctype (Files): Add m4/wint_t.m4.
65210         (wctype.h): Substitute HAVE_WINT_T.
65211
65212 2006-12-23  Bruno Haible  <bruno@clisp.org>
65213
65214         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
65215
65216 2006-12-23  Bruno Haible  <bruno@clisp.org>
65217
65218         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
65219         S_ISLNK.
65220         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
65221         mingw.
65222
65223 2006-12-22  Bruno Haible  <bruno@clisp.org>
65224
65225         * lib/copy-file.c: Include acl.h.
65226         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
65227         Close the file descriptors only after being done with copy_acl.
65228         * modules/copy-file (Depends-on): Add acl.
65229
65230 2006-12-22  Bruno Haible  <bruno@clisp.org>
65231
65232         * gnulib-tool (SED): New variable.
65233         Use $SED instead of sed everywhere.
65234
65235 2006-12-22  Bruno Haible  <bruno@clisp.org>
65236
65237         * modules/no-c++: New file.
65238         * m4/no-c++.m4: New file.
65239         * MODULES.html.sh (Support for building libraries and executables):
65240         Add no-c++.
65241
65242 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
65243
65244         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
65245         Include <limits.h>, and use its INT_MAX to rewrite the
65246         j loop so that it does not overflow 'int'.  Problem reported by
65247         Ralf Wildenhues in
65248         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
65249         Play it safe by shifting left by 1 rather than multiplying by 2,
65250         as GCC is less likely to optimize this away when the value
65251         is signed (when it assumes overflow leads to undefined behavior).
65252         Also, don't assume time_t uses two's complement.
65253
65254 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
65255
65256         * MODULES.html.sh: New module wctype.
65257         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
65258         * lib/fnmatch.c: Don't bother to include <wchar.h> before
65259         <wctype.h>, since the new wctype module should fix this.
65260         * lib/quotearg.c: Include <wctype.h> unconditionally, since
65261         the wctype module should arrange for it.
65262         * lib/regex_internal.h: Likewise.
65263         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
65264         since the wctype module should handle this now.
65265         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
65266         * modules/fnmatch (Depends-on): Add wctype.
65267         * modules/quotearg (Depends-on): Likewise.
65268         * modules/regex (Depends-on): Likewise.
65269
65270 2006-12-19  Bruno Haible  <bruno@clisp.org>
65271
65272         * lib/strdup.h [C++]: Wrap definitions in extern "C".
65273         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
65274
65275 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65276
65277         * modules/savewd (Depends-on): Fix dependency on fcntl.
65278
65279 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
65280
65281         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
65282         conforms to C99, rather than relying on the user's environment
65283         setting of STDINT_H.
65284
65285 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
65286         and Eric Blake  <ebb9@byu.net>
65287
65288         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
65289         This is more consistent with the other defines here.
65290         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
65291         Port to z/OS.  Problem reported by Paul Gilmartin.
65292         Change local vars to use gl_ prefix rather than ac_.
65293         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
65294         with other defines.
65295         * modules/double-slash-root: New module.
65296         * modules/dirname (Files): Remove m4/double-slash-root.m4.
65297         (Depends-on): Add double-slash-root.
65298         * MODULES.html.sh (File system functions): Mention new module.
65299
65300 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
65301
65302         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
65303         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
65304         This is for the benefit of gzip, which doesn't do i18n.
65305
65306 2006-12-12  Jim Meyering  <jim@meyering.net>
65307
65308         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
65309         Reported by Andreas Schwab <schwab@suse.de>.
65310
65311 2006-12-12  Bruno Haible  <bruno@clisp.org>
65312
65313         Merge these changes.
65314         2006-09-05  Bruno Haible  <bruno@clisp.org>
65315         * lib/iconvme.c (iconv_string): No need to save and restore errno when
65316         iconv_alloc succeeded.
65317         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
65318         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
65319         test for " && dest " at the end - dest is always != NULL there. Call
65320         iconv with 4xNULL arguments initially, to reset the state. Call iconv
65321         with 2xNULL arguments, also to flush the state storage. Handle the
65322         IRIX iconv behaviour. Realloc the final result, to throw away unused
65323         memory.
65324
65325 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
65326
65327         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
65328         and fchmodat unconditionally, since glibc 2.4 has them.
65329         Problem reported by Arkadiusz Miskiewicz.
65330
65331 2006-12-10  Bruno Haible  <bruno@clisp.org>
65332
65333         * gnulib-tool (func_import): Show the include files only for those
65334         modules that are copied and specified.
65335         Reported by Karl Berry.
65336
65337 2006-12-08  Jim Meyering  <jim@meyering.net>
65338
65339         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
65340         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
65341
65342         * build-aux/announce-gen: Add two new options, both optional:
65343         --bootstrap-tools=TOOL_LIST
65344               a comma-separated list of tools, e.g.,
65345               autoconf,automake,bison,gnulib
65346         --gnulib-snapshot-date=DATE
65347               if gnulib is in the bootstrap tool list,
65348               then report this as the snapshot date.
65349               If not specified, use the current date/time.
65350               If you specify a date here, be sure it's UTC.
65351
65352 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65353
65354         * tests/test-argp-2.sh: Fix test to match actual output.
65355         (func_compare): Fix sed script to be portable.
65356
65357 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
65358
65359         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
65360         workaround for this case.  It is not autoconfigured now; offhand
65361         it's hard to see how to autoconfigure it.
65362
65363 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
65364
65365         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
65366         a directory that is about to be chowned.  Such a directory's
65367         initial file permissions should permit the owner only and this
65368         should not be changed until after the chown, since the group and
65369         other bits would be incorrect if they granted permission before
65370         the chown.
65371
65372         Fix porting problem for iswctype reported by Georg Schwarz in:
65373         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
65374         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
65375         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
65376         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
65377         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
65378
65379 2006-12-03  Jim Meyering  <jim@meyering.net>
65380
65381         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
65382         p->fts_statp may not yet be defined.
65383         (fts_read): Instead, set it in the caller, once p->fts_statp is
65384         sure to be defined, and corresponds to a top-level directory.
65385         This bug made du -x fail.  Here's the coreutils test case:
65386         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
65387         Reported by Mike Frysinger.
65388
65389 2006-12-01  Jim Meyering  <jim@meyering.net>
65390
65391         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
65392         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
65393         Reported by Simon Josefsson.
65394
65395 2006-11-30  Jim Meyering  <jim@meyering.net>
65396
65397         * m4/warning.m4: Use the all-permissive copyright notice
65398         recommended by RMS (rather than LGPL).
65399         * m4/vararrays.m4: Likewise.
65400         * m4/flexmember.m4: Likewise.
65401
65402 2006-11-29  Bruno Haible  <bruno@clisp.org>
65403
65404         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
65405         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
65406         using +=.
65407         Reported by Simon Josefsson <simon@josefsson.org>.
65408
65409 2006-11-28  James Youngman <jay@gnu.org>
65410
65411         * README: Advise users that they might find the bug-gnulib@gnu.org
65412         and autotools-announce@gnu.org mailing lists useful.
65413
65414 2006-11-28  Bruno Haible  <bruno@clisp.org>
65415
65416         * m4/ptrdiff_max.m4: Remove file.
65417
65418 2006-11-21  Bruno Haible  <bruno@clisp.org>
65419
65420         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
65421         _AC_COMPUTE_INT.
65422         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
65423         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
65424         _AC_COMPUTE_INT.
65425         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
65426         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
65427         _AC_COMPUTE_INT.
65428         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
65429
65430 2006-11-28  Jim Meyering  <jim@meyering.net>
65431
65432         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
65433         warning from "gcc -Wshadow" about shadowing the builtin.
65434
65435 2006-11-27  Bruno Haible  <bruno@clisp.org>
65436
65437         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
65438         _AC_COMPUTE_INT.
65439         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
65440
65441 2006-11-27  Bruno Haible  <bruno@clisp.org>
65442             Paul Eggert  <eggert@cs.ucla.edu>
65443
65444         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
65445
65446 2006-11-26  Bruno Haible  <bruno@clisp.org>
65447
65448         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
65449         noinst_LTLIBRARIES.
65450
65451 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
65452             Bruno Haible  <bruno@clisp.org>
65453
65454         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
65455         if compiling with "gcc -ansi".
65456
65457 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
65458
65459         Fix some incompatibilities with gcc -ansi -pedantic.
65460         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
65461         if compiling pedantically with GCC, unless it's C99 or later.
65462         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
65463         it mishandles gcc -ansi -pedantic as well.
65464         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
65465         if gcc -pedantic.
65466         * lib/regexec.c (check_node_accept_bytes): Don't use auto
65467         initializers for struct if -pedantic, unless it's C99 or later.
65468
65469 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
65470
65471         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
65472         Don't close an fd more than once. Identical atimes indicate
65473         success, not failure.
65474
65475 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
65476
65477         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
65478
65479 2006-11-23  Jim Meyering  <jim@meyering.net>
65480
65481         * build-aux/announce-gen: New file.  From coreutils.
65482
65483 2006-11-22  Jim Meyering  <jim@meyering.net>
65484
65485         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
65486         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
65487         (fts_read): Use a temporary to narrow the overused st_size member
65488         before using it in a switch statement.  Reported by Matthew Woehlke.
65489
65490         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
65491         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
65492
65493 2006-11-20  Bruno Haible  <bruno@clisp.org>
65494
65495         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
65496         changequote instead of pairs of brackets.
65497         Reported by Andreas Schwab <schwab@suse.de>.
65498
65499 2006-11-21  Jim Meyering  <jim@meyering.net>
65500
65501         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
65502         so as to remain compatible with older compilers.
65503         Patch from Michael Deutschmann.
65504
65505 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
65506
65507         * MODULES.html.sh (File system functions): Add openat.
65508
65509         * lib/openat.h (rpl_fstatat): New macro, if
65510         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
65511         (fstatat): Define to rpl_fstatat under the same conditions,
65512         unless COMPILING_FSTATAT.
65513         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
65514         seems to have the bug.
65515         * lib/fstatat.c: New file.
65516         * modules/openat (Files): Add it.
65517
65518 2006-11-20  Bruno Haible  <bruno@clisp.org>
65519
65520         * Makefile: New file.
65521
65522 2006-11-20  Jim Meyering  <jim@meyering.net>
65523
65524         The beginnings of syntax-related checks for gnulib.
65525         * lib/Makefile: New file.
65526         * lib/t-idcache: New script.  Ensure that the two halves of
65527         idcache.c stay in sync.
65528
65529         * lib/idcache.c: Adjust comments in user- and group- portions to
65530         be more accurate, and to be consistent with one another.
65531
65532 2006-11-20  Jim Meyering  <jim@meyering.net>
65533
65534         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
65535         continue using the flexible array member (thus, this module performs
65536         half as many malloc calls), with the addition that...
65537         (getgroup, getuser): Consistently record a non-match via an empty
65538         "name" string, and map an empty string match to a NULL return value.
65539         * modules/idcache (Depends-on): Re-add flexmember.
65540
65541         * lib/idcache.c (getuser): Remove all uses of the register keyword.
65542         (getuidbyname, getgroup, getgidbyname): Likewise.
65543
65544         Use cleaner syntax: NULL rather than 0.
65545         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
65546
65547 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
65548
65549         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
65550         It mishandled the case where the group was missing.
65551         Problem reported by Greg Schafer.
65552         * modules/idcache: Likewise.
65553
65554 2006-11-18  Jim Meyering  <jim@meyering.net>
65555
65556         * check-module (%exempt_header): Add exception for some
65557         conditionally-included headers.
65558
65559         * modules/i-ring (Depends-on): Add verify.
65560         (License): Change to LGPL.
65561
65562 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
65563
65564         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
65565         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
65566         and inttostr.h.  Use snprintf rather than uinttostr, so that
65567         LGPLed code doesn't depend on GPLed.
65568
65569 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
65570
65571         * modules/inline (License): Change from GPL to LGPL.
65572
65573 2006-11-17  Jim Meyering  <jim@meyering.net>
65574
65575         * modules/d-type (License): Switch to LGPL.
65576
65577 2006-11-15  Bruno Haible  <bruno@clisp.org>
65578
65579         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
65580
65581 2006-11-15  Eric Blake  <ebb9@byu.net>
65582
65583         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
65584         the module dependency.
65585
65586 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
65587             Bruno Haible  <bruno@clisp.org>
65588
65589         * gnulib-tool (func_create_testdir): Add license consistency check.
65590
65591 2006-11-15  Eric Blake  <ebb9@byu.net>
65592
65593         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
65594         random "(cached)" in configure output.
65595
65596 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65597
65598         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
65599         test for conforming inttypes.h is both announced and cached.
65600
65601         * MODULES.html.sh (seen_modules, seen_files): New variables.
65602         (func_module): Rewrite to use a few less gnulib-tool and sed
65603         invocations.  Avoid a couple of quadratic algorithms for ...
65604         (missed_modules, missed_files): ... these, with ...
65605         (func_append, func_tmpdir): ... these new functions, from
65606         gnulib-tool.  Analogously, install traps for cleanup.
65607
65608         * tests/test-gc.c (main): Remove unused variables.
65609         * tests/test-read-file.c: Include stdlib.h, for 'free'.
65610
65611 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
65612
65613         * modules/inttostr (License): Change to LGPL.
65614
65615 2006-11-14  Eric Blake  <ebb9@byu.net>
65616
65617         * modules/tempname (License): Change to LGPL.
65618
65619 2006-11-14  Eric Blake  <ebb9@byu.net>
65620
65621         * doc/functions.texi (Function Portability): *printf functions on
65622         Cygwin now understand all POSIX size specifiers.
65623
65624 2006-11-14  Bruno Haible  <bruno@clisp.org>
65625
65626         * modules/c-ctype (License): Change to LGPL.
65627
65628 2006-11-12  Bruno Haible  <bruno@clisp.org>
65629
65630         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
65631         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
65632         for GNOME libraries, for which the include files are installed in
65633         subdirectories of $prefix/include.
65634
65635 2006-11-12  Bruno Haible  <bruno@clisp.org>
65636
65637         * m4/lib-link.m4: Require at least autoconf-2.54.
65638         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
65639         name to underscores for the --with option.
65640
65641 2006-11-13  Bruno Haible  <bruno@clisp.org>
65642
65643         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
65644         the tests directory.
65645         Reported by Ralf Wildenhues.
65646
65647 2006-11-13  Bruno Haible  <bruno@clisp.org>
65648
65649         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
65650         (func_emit_initmacro_end): Undo the override here.
65651         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
65652         Works around the famous automake error in coreutils.
65653
65654 2006-11-13  Eric Blake  <ebb9@byu.net>
65655
65656         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
65657         element, not its node.
65658
65659 2006-11-12  Bruno Haible  <bruno@clisp.org>
65660
65661         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
65662         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
65663
65664 2006-11-12  Bruno Haible  <bruno@clisp.org>
65665
65666         * gnulib-tool: New option --local-symlink.
65667         (func_usage): Document it.
65668         (lsymbolic): New variable.
65669         (func_import, func_create_testdir): If --symlink was not specified,
65670         test whether --local-symlink was specified and the file comes from
65671         the local_gnulib_dir.
65672
65673 2006-11-12  Bruno Haible  <bruno@clisp.org>
65674
65675         * gnulib-tool (func_ln): New function.
65676         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
65677
65678 2006-11-12  Bruno Haible  <bruno@clisp.org>
65679
65680         Finish support for source files in subdirectories.
65681         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
65682         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
65683         AUTOMAKE_OPTIONS.
65684         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
65685
65686 2006-11-12  Bruno Haible  <bruno@clisp.org>
65687
65688         * gnulib-tool (func_get_automake_snippet): Synthesize also an
65689         EXTRA_lib_SOURCES augmentation.
65690         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
65691
65692 2006-11-12  Jim Meyering  <jim@meyering.net>
65693
65694         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
65695         file descriptors.  This also averts a failure on systems with
65696         native openat support when a traversed directory lacks "x" access.
65697         * lib/fts_.h: Include "i-ring.h"
65698         (struct FTS) [fts_fd_ring]: New member.
65699         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
65700         (FCHDIR): Add parentheses.
65701         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
65702         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
65703         When descending, rather than simply closing the previous
65704         fts_cwd_fd value, push that file descriptor onto the ring.
65705         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
65706         (fts_open): Initialize the new fd_ring member.
65707         (fts_close): Clear the ring.
65708         (fts_safe_changedir): When possible, use our new fd_ring to skip
65709         the diropen and fstat and dev/ino comparison that would normally
65710         accompany a virtual `chdir ("..")'.
65711
65712         * modules/fts (Depends-on): Add i-ring.
65713         * modules/i-ring: New module.
65714         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
65715         * m4/i-ring.m4: New file.
65716
65717 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65718
65719         * gnulib-tool (func_create_testdir): Fix replacement of
65720         `build-aux' in configure.ac.  Run autotools in gltests
65721         subdirectory.
65722         (func_create_testdir, func_create_megatestdir, test): There is
65723         no need for '--force' in most autotool invocations in a new
65724         tree.  Actually fail the whole test if any of the tools, or the
65725         configure or make stages fail.
65726
65727         Sync from Automake.
65728         * build-aux/gnupload: Revert last change.  Add pointer to upload
65729         instructions of the GNU Maintenance Instructions.
65730         Suggestion by Karl Berry.
65731
65732 2006-11-10  Jim Meyering  <jim@meyering.net>
65733
65734         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
65735
65736 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
65737
65738         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
65739         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
65740         (bind_textdomain_codeset) [! ENABLE_NLS]:
65741         Evaluate all the arguments.  That way, callers get compatible behavior
65742         if the arguments have side effects.  Also, it avoids some GCC
65743         diagnostics in some cases; Joel E. Denny reported problems when Bison
65744         was configured with --enable-gcc-warnigs.
65745
65746 2006-11-10  Jim Meyering  <jim@meyering.net>
65747
65748         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
65749         relevant options in CFLAGS (like -O, -fno-inline) are taken into
65750         account.
65751
65752 2006-11-10  Jim Meyering  <jim@meyering.net>
65753
65754         * modules/inline: New file/module.
65755         * modules/xalloc (Files): Remove m4/inline.m4.
65756         (Depends-on): Add inline, instead.
65757         * modules/oset: Likewise.
65758         * modules/list: Likewise.
65759
65760 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
65761
65762         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
65763         Problem reported by Matthew Woehlke.
65764
65765 2006-11-09  Bruno Haible  <bruno@clisp.org>
65766
65767         * lib/tempname.c (gen_tempname): Remove variant that invokes
65768         __gen_tempname.
65769         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
65770         __gen_tempname.
65771
65772 2006-11-08  Bruno Haible  <bruno@clisp.org>
65773
65774         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
65775         to 'yes' instead of 'cross-compiling'.
65776
65777 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
65778
65779         * lib/quotearg.h (quotearg_free): New decl.
65780         * lib/quotearg.c (quotearg_free): New function.
65781         (slot0, nslots, slotvec0, slotvec):
65782         Now file-scope so that quotearg_free can get at them.
65783
65784 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65785
65786         Sync from Automake.
65787         * build-aux/gnupload: Add missing 'gnu' to example URL.
65788         Report by Karl Berry.
65789
65790 2006-11-08  Bruno Haible  <bruno@clisp.org>
65791
65792         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
65793         Suggested by Paul Eggert.
65794
65795 2006-11-08  Jim Meyering  <jim@meyering.net>
65796
65797         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
65798         It's already included if !_LIBC.
65799         (fts_safe_changedir): Add a comment.
65800
65801 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
65802
65803         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
65804         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
65805         Matthew Woehlke.
65806
65807         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
65808         definitions up, to avoid colliding with change below.
65809         (static_inline) [HAVE_INLINE]: New macro.
65810         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
65811         Provide extern decls when !HAVE_INLINE.  Do not define unless
65812         static_inline is defined, either by us or by xmalloc.c.  Use
65813         static_inline rather than static inline.
65814         (XCALLOC): Optimize sizeof(T) = 1 case.
65815         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
65816
65817 2006-11-07  Bruno Haible  <bruno@clisp.org>
65818
65819         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
65820         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
65821         AC_C_INLINE.
65822         * modules/xalloc (Files): Add m4/inline.m4.
65823
65824 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65825
65826         * README: Fix typo.
65827         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
65828         (Miscellanous Notes): ...from this.
65829
65830 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
65831
65832         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
65833         Mention that offsetof should be used instead of sizeof.
65834         From Bruno Haible.
65835
65836 2006-11-07  Bruno Haible  <bruno@clisp.org>
65837
65838         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
65839
65840 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
65841
65842         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
65843         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
65844         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
65845         (gl_tree_add_before, gl_tree_add_after):
65846         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
65847         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
65848         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
65849         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
65850         (gl_linked_add_after, gl_linked_add_at): Likewise.
65851         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
65852         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
65853         (gl_tree_add_before, gl_tree_add_after): Likewise.
65854         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
65855         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
65856         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
65857
65858 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65859
65860         * lib/gl_oset.h: Use C comment style, not C++ comment style.
65861
65862 2006-11-06  Bruno Haible  <bruno@clisp.org>
65863
65864         * m4/inline.m4: New file.
65865         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
65866         * modules/list (Files): Add m4/inline.m4.
65867         * modules/oset (Files): Likewise.
65868
65869 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
65870
65871         * lib/idcache.c: Include <stddef.h>, for offsetof.
65872         (struct userid.name): Change from char * to a flexible array member.
65873         All uses changed.
65874         * modules/idcache (Depends-on): Add flexmember.
65875
65876         * MODULES.html.sh (Core language properties): New module flexmember.
65877         * modules/flexmember, m4/flexmember.m4: New files.
65878
65879         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
65880         inline functions that are identical with the old xnmalloc_inline,
65881         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
65882         that we can avoid some unnecessary integer multiplications and
65883         divisions in the common case where the element size is known at
65884         compile time.
65885         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
65886         needed.
65887         (xnboundedmalloc): Remove.
65888         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
65889         arguments, for consistency with rest of this header.
65890         (xcharalloc): Rewrite using XNMALLOC.
65891         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
65892         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
65893         versions have been moved to lib/xalloc.h and renamed to be the
65894         non-*_inline versions.
65895         (xmalloc, xrealloc): Implement without reference to the xnmalloc
65896         and xnrealloc functions, since those functions are now inline and
65897         now call us.
65898         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
65899         renaming described above.
65900         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
65901         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
65902         captures the dependency in AC_C_INLINE.
65903
65904         New module canonicalize-lgpl, proposed by Charles Wilson in
65905         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
65906         with a few small changes afterwards.
65907         * MODULES.html.sh (File system functions): New module
65908         canonicalize-lgpl.
65909         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
65910         and canonicalize_file_name.
65911         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
65912         * modules/canonicalize-lgpl: New files.
65913
65914 2006-11-05  Bruno Haible  <bruno@clisp.org>
65915
65916         * gnulib-tool (func_import, func_create_testdir): Create directories
65917         also for files in subdirectories of lib/.
65918
65919 2006-11-05  Bruno Haible  <bruno@clisp.org>
65920
65921         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
65922         ANSI C compliant.
65923
65924 2006-11-03  Bruno Haible  <bruno@clisp.org>
65925
65926         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
65927         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
65928         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
65929         (xnboundedmalloc): New inline function.
65930         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
65931         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
65932         xmalloc.
65933         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
65934         xmalloc.
65935         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
65936         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
65937         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
65938         xmalloc.
65939         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
65940         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
65941         xmalloc.
65942         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
65943         gl_tree_add_after): Use XMALLOC instead of xmalloc.
65944         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
65945         xmalloc.
65946         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
65947         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
65948         gl_tree_add_after): Use XMALLOC instead of xmalloc.
65949         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
65950         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
65951         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
65952         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
65953
65954 2006-11-03  Bruno Haible  <bruno@clisp.org>
65955
65956         * lib/c-ctype.h [C++]: Define functions without name mangling.
65957         * lib/fwriteerror.h [C++]: Likewise.
65958         * lib/gcd.h [C++]: Likewise.
65959         * lib/linebreak.h [C++]: Likewise.
65960
65961 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
65962
65963         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
65964         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
65965         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
65966         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
65967         Check for functions and headers just once.
65968         Check for declaration of canonicalize_file_name.
65969         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
65970
65971 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
65972
65973         * gnulib-tool (func_import): Fix typo in actioncmd.
65974
65975 2006-11-02  Bruno Haible  <bruno@clisp.org>
65976
65977         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
65978         newline sequence in the Makefile.am snippet as a space, like "make"
65979         does.
65980         Reported by Roger Persson <perrog@gmail.com>.
65981
65982 2006-11-01  Bruno Haible  <bruno@clisp.org>
65983
65984         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
65985         already declared in <string.h>.
65986         * lib/strcase.h (strncasecmp): Don't declare it if yes.
65987
65988 2006-11-01  Bruno Haible  <bruno@clisp.org>
65989
65990         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
65991         * lib/strcase.h: Include <string.h>.
65992         (strcasecmp): Define to rpl_strcasecmp here.
65993
65994 2006-11-01  Bruno Haible  <bruno@clisp.org>
65995
65996         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
65997
65998 2006-11-01  Eric Blake  <ebb9@byu.net>
65999
66000         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
66001
66002         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
66003
66004 2006-10-29  Bruno Haible  <bruno@clisp.org>
66005
66006         Make it compile in C++ mode.
66007         * lib/full-write.c (full_rw): Add a cast.
66008
66009 2006-11-01  Bruno Haible  <bruno@clisp.org>
66010
66011         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
66012         be POSIX compliant.
66013         Reported by Roger Persson <perrog@gmail.com>.
66014
66015 2006-11-01  Eric Blake  <ebb9@byu.net>
66016
66017         * lib/getopt_.h: Fix comments.
66018
66019 2006-10-31  Eric Blake  <ebb9@byu.net>
66020
66021         * modules/tmpdir (Depends-on): Add sys_stat.
66022         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
66023         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
66024         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
66025         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
66026         tempname.
66027
66028 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
66029
66030         Avoid some C++ diagnostics reported by Bruno Haible.
66031         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
66032         xmalloc.
66033         (quotearg_alloc): Use xcharalloc rather than xmalloc.
66034         (struct slotvec): Move to top level.
66035         (quotearg_n_options): Rewrite to avoid xmalloc.
66036         * lib/xalloc.h (xcharalloc): New function.
66037         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
66038         [defined __cplusplus]: Add function template that provides result
66039         type propagation.  This part of the change is from Bruno Haible.
66040
66041 2006-10-29  Bruno Haible  <bruno@clisp.org>
66042
66043         Make it compile in C++ mode.
66044         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
66045         * lib/strnlen1.c (strnlen1): Cast memchr result.
66046         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
66047         * lib/clean-temp.c (string_equals, string_hash): Add casts.
66048         (create_temp_dir): Rename local variable 'template'.
66049         (compile_csharp_using_sscli): Add cast.
66050         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
66051         * lib/findprog.c (find_in_path): Likewise.
66052         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
66053         * lib/wait-process.c (register_slave_subprocess): Likewise.
66054
66055 2006-10-22  Bruno Haible  <bruno@clisp.org>
66056
66057         * modules/tsearch: New file.
66058         * lib/tsearch.h: New file.
66059         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
66060         * m4/tsearch.m4: New file.
66061         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
66062
66063 2006-10-29  Eric Blake  <ebb9@byu.net>
66064
66065         * lib/arcfour.c: Assume config.h.
66066         * lib/arctwo.c: Likewise.
66067         * lib/base64.c: Likewise.
66068         * lib/check-version.c: Likewise.
66069         * lib/crc.c: Likewise.
66070         * lib/des.c: Likewise.
66071         * lib/gc-gnulib.c: Likewise.
66072         * lib/gc-libgcrypt.c: Likewise.
66073         * lib/gc-pbkdf2-sha1.c: Likewise.
66074         * lib/getaddrinfo.c: Likewise.
66075         * lib/getdelim.c: Likewise.
66076         * lib/getline.c: Likewise.
66077         * lib/hmac-md5.c: Likewise.
66078         * lib/hmac-sha1.c: Likewise.
66079         * lib/iconvme.c: Likewise.
66080         * lib/md2.c: Likewise.
66081         * lib/md4.c: Likewise.
66082         * lib/memxor.c: Likewise.
66083         * lib/read-file.c: Likewise.
66084         * lib/readline.c: Likewise.
66085         * lib/rijndael-alg-fst.c: Likewise.
66086         * lib/rijndael-api-fst.c: Likewise.
66087         * lib/xgetdomainname.c: Likewise.
66088
66089 2006-10-28  Eric Blake  <ebb9@byu.net>
66090
66091         * lib/xstrndup.c: Assume config.h.
66092
66093 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
66094
66095         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
66096         stat-macros.h is now for our own macros, whereas stat_h is for
66097         macros in the <sys/stat.h> name space.
66098         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
66099         (STAT_MACROS_H): Remove.
66100         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
66101         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
66102         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
66103         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
66104         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
66105         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
66106         Move these macros to ...
66107         * lib/stat_.h: here.  Don't include stat-macros.h.
66108         * lib/canonicalize.c: Don't include stat-macros.h.
66109         * lib/chown.c: Likewise.
66110         * lib/euidaccess.c: Likewise.
66111         * lib/file-type.c: Likewise.
66112         * lib/filemode.c: Likewise.
66113         * lib/glob.c: Likewise.
66114         * lib/isapipe.c: Likewise.
66115         * lib/lchown.c: Likewise.
66116         * lib/lstat.c: Likewise.
66117         * lib/mkdir-p.c: Likewise.
66118         * lib/rmdir.c: Likewise.
66119         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
66120         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
66121         unless mkdir isn't declared, to speed up 'configure'.
66122         Always create sys/stat.h, since it's unlikely any real sys/stat.h
66123         would define all the S_* symbols.
66124         * modules/canonicalize (Depends-on):
66125         Depend on sys_stat, not stat-macros.
66126         * modules/chown: Likewise.
66127         * modules/euidaccess: Likewise.
66128         * modules/filemode: Likewise.
66129         * modules/file-type: Likewise.
66130         * modules/glob: Likewise.
66131         * modules/isapipe: Likewise.
66132         * modules/lchown: Likewise.
66133         * modules/lstat: Likewise.
66134         * modules/mkancesdirs: Likewise.
66135         * modules/rmdir: Likewise.
66136         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
66137         * modules/modechange: Likewise.
66138         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
66139         (configure.ac): Remove gl_STAT_MACROS.
66140         * modules/sys_stat (Depends-on): Remove stat-macros.
66141
66142 2006-10-27  Bruno Haible  <bruno@clisp.org>
66143
66144         * m4/signed.m4: Remove file.
66145         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
66146         invocation.
66147         * modules/vasnprintf (Files): Remove m4/signed.m4.
66148
66149 2006-10-27  Bruno Haible  <bruno@clisp.org>
66150
66151         Update to GNU gettext 0.16.
66152         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
66153         m4/inttypes-h.m4, m4/signed.m4.
66154         * m4/gettext.m4: Update to GNU gettext 0.16.
66155         * m4/intl.m4: New file, from GNU gettext.
66156         * m4/intldir.m4: New file, from GNU gettext.
66157         * config/srclist.txt: Update
66158
66159 2006-10-27  Eric Blake  <ebb9@byu.net>
66160
66161         * MODULES.html.sh: Document tempname.
66162         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
66163         dependencies.
66164         (Files): Move lib/tempname.c...
66165         * modules/tempname: ...to this new module.
66166         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
66167         (gl_PREREQ_TEMPNAME): Move...
66168         * m4/tempname.m4: ...to this new file.
66169         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
66170         * modules/sys_stat (Depends-on): Add stat-macros.
66171         * lib/stat_.h (includes): Pick up stat macros.
66172         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
66173         if stat macros are broken.
66174         * lib/tempname.c (includes): No need to include "stat-macros.h".
66175         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
66176         (direxists, __path_search) [!_LIBC]: Don't compile these in
66177         gnulib; the tmpdir module covers that.
66178         * lib/tempname.h: New file.
66179
66180 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
66181
66182         * COPYING: Explain how gnulib-tool converts licence headers.
66183         Almost all wording by Eric Blake.
66184
66185 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
66186
66187         * lib/mbchar.h (is_basic_table): Make read-only.
66188         * lib/mbchar.c (is_basic_table): Likewise.
66189         Reported by John Darrington.
66190
66191 2006-10-25  Bruno Haible  <bruno@clisp.org>
66192
66193         * lib/progname.h (set_program_name): Undefine before defining.
66194
66195 2006-10-25  Bruno Haible  <bruno@clisp.org>
66196
66197         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
66198         false for non-gcc C++ compilers.
66199         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
66200
66201 2006-10-24  Bruno Haible  <bruno@clisp.org>
66202
66203         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
66204         iconv implementations like Irix iconv.
66205
66206 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
66207
66208         * modules/vararrays: New file.
66209         * m4/vararrays.m4: New file, taken from diffutils.
66210         * MODULES.html.sh: New module vararrays.
66211
66212 2006-10-24  Karl Berry  <karl@gnu.org>
66213
66214         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
66215         Don't call GNU Unix.
66216
66217 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66218
66219         * users.txt: Add Libtool.
66220
66221         Sync from Libtool:
66222
66223         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
66224
66225         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
66226         to gnulib's policy of including config.h unconditionally.
66227
66228 2006-10-24  Bruno Haible  <bruno@clisp.org>
66229
66230         * modules/wcwidth (Files): Add m4/wint_t.m4.
66231         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
66232         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
66233
66234 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
66235
66236         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
66237         to pacify GCC with some -W flags enabled.  Problem reported by
66238         Bruno Haible.
66239
66240 2006-10-24  Jim Meyering  <jim@meyering.net>
66241
66242         * MODULES.html.sh: Remove uinttostr.  It's not a module.
66243         Reported by Karl Berry.
66244
66245 2006-10-23  Bruno Haible  <bruno@clisp.org>
66246
66247         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
66248
66249 2006-10-24  Bruno Haible  <bruno@clisp.org>
66250
66251         * lib/gl_list.h: Use C comment style, not C++ comment style.
66252
66253 2006-10-23  Eric Blake  <ebb9@byu.net>
66254
66255         * lib/getaddrinfo.c (includes): Add missing include.
66256
66257 2006-10-23  Bruno Haible  <bruno@clisp.org>
66258             Paul Eggert  <eggert@cs.ucla.edu>
66259
66260         Ability to rename obstack_free.
66261         * lib/obstack.h (__obstack_free): New macro. Declare instead of
66262         obstack_free.
66263         (obstack_free): Invoke the __obstack_free macro.
66264         * lib/obstack.c (obstack_free): Use __obstack_free macro.
66265
66266 2006-10-23  Bruno Haible  <bruno@clisp.org>
66267             Paul Eggert  <eggert@cs.ucla.edu>
66268
66269         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
66270         __argc, __argv from the declaration. (They are defined as macros on
66271         mingw.)
66272
66273 2006-10-22  Bruno Haible  <bruno@clisp.org>
66274
66275         * doc/gnulib-intro.texi: New file.
66276         * doc/gnulib.texi: Include it.
66277
66278 2006-10-21  Bruno Haible  <bruno@clisp.org>
66279
66280         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
66281         "Introduction", "Miscellanous Notes", "Particular Modules".
66282
66283 2006-10-21  Bruno Haible  <bruno@clisp.org>
66284
66285         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
66286         Change mostlyclean-local rule to avoid sh syntax error from bash
66287         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
66288
66289 2006-10-23  Jim Meyering  <jim@meyering.net>
66290
66291         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
66292         in place of snprintf.
66293
66294         * modules/inttostr (Files): Add lib/uinttostr.c.
66295         * lib/uinttostr.c (inttostr): New file/function.
66296         * lib/inttostr.h (uinttostr): Declare.
66297         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
66298         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
66299         Add uinttostr.
66300         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
66301
66302 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
66303
66304         * lib/canonicalize.c (ELOOP): Define if not already defined.
66305         Problem reported by Bruno Haible in
66306         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
66307
66308 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
66309
66310         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
66311         Problem reported by Perry Smith and Ville Laurikari.
66312
66313         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
66314         uses.
66315
66316 2006-10-19  Bruno Haible  <bruno@clisp.org>
66317
66318         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
66319         for mingw.
66320
66321 2006-10-19  Bruno Haible  <bruno@clisp.org>
66322
66323         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
66324         Needed for mingw.
66325
66326 2006-10-19  Bruno Haible  <bruno@clisp.org>
66327
66328         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
66329
66330 2006-10-19  Bruno Haible  <bruno@clisp.org>
66331
66332         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
66333         it.
66334
66335 2006-10-19  Bruno Haible  <bruno@clisp.org>
66336
66337         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
66338         invocation.
66339
66340 2006-10-19  Bruno Haible  <bruno@clisp.org>
66341
66342         * gnulib-tool (func_create_testdir): Don't include ftruncate and
66343         mountlist by default.
66344
66345 2006-10-16  Bruno Haible  <bruno@clisp.org>
66346
66347         * lib/c-strstr.c: Include c-strstr.h.
66348
66349 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
66350
66351         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
66352         in a slash.
66353
66354 2006-10-18  Bruno Haible  <bruno@clisp.org>
66355
66356         * lib/lock.h [C++]: Wrap definitions in extern "C".
66357
66358 2006-10-18  Bruno Haible  <bruno@clisp.org>
66359
66360         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
66361         gl_LIBOBJS list.
66362
66363 2006-10-18  Bruno Haible  <bruno@clisp.org>
66364
66365         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
66366
66367 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
66368
66369         * lib/xstrtol.h: Include gettext.h.
66370         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
66371         Problem reported by Eric Blake.
66372         * modules/xstrtol (Depends-on): Add gettext-h.
66373
66374 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
66375
66376         * lib/strftime.c (advance): New macro.
66377         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
66378         incomplete type, so you can't add 0 to it.  Problem and patch
66379         reported by Eelco Dolstra for dietlibc.
66380
66381 2006-10-18  Jim Meyering  <jim@meyering.net>
66382
66383         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
66384         type for a local, and rename it: s/up/user_proc/.
66385
66386 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
66387
66388         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
66389         READ_UTMP_USER_PROCESS.
66390         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
66391
66392 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
66393
66394         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
66395         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
66396
66397 2006-10-17  Eric Blake  <ebb9@byu.net>
66398
66399         * lib/sigprocmask.c (sigprocmask): Fix typo.
66400
66401         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
66402
66403         * modules/clean-temp (Makefile.am): Don't add to make output...
66404         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
66405         config.h.
66406
66407 2006-10-17  Bruno Haible  <bruno@clisp.org>
66408
66409         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
66410         differently if DEFAULT_TEXT_DOMAIN is set.
66411
66412 2006-10-16  Bruno Haible  <bruno@clisp.org>
66413
66414         * lib/clean-temp.c: Include fwriteerror.h.
66415
66416 2006-10-16  Bruno Haible  <bruno@clisp.org>
66417
66418         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
66419
66420 2006-10-16  Bruno Haible  <bruno@clisp.org>
66421
66422         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
66423         * lib/sigprocmask.h: Include <sys/types.h>.
66424         (sigset_t): Use the system's definition if present.
66425
66426 2006-10-17  Eric Blake  <ebb9@byu.net>
66427
66428         * lib/xvasprintf.c (includes): Assume config.h.
66429         * lib/xasprintf.c (includes): Likewise.
66430
66431 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
66432
66433         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
66434         at least as wide as intmax_t.
66435
66436 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
66437
66438         (Imported from Automake.)
66439         * build-aux/gnupload: Update to version 1.1 of directive file.
66440
66441 2006-10-16  Eric Blake  <ebb9@byu.net>
66442
66443         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
66444         match Automake 1.10a.
66445
66446 2006-10-14  Bruno Haible  <bruno@clisp.org>
66447
66448         * modules/sigprocmask: New file.
66449         * lib/sigprocmask.h: New file.
66450         * lib/sigprocmask.c: New file.
66451         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
66452         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
66453         request sigprocmask.o.
66454         (gl_PREREQ_SIGPROCMASK): New macro.
66455         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
66456         (Depends-on): Add sigprocmask.
66457         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
66458         gt_SIGNALBLOCKING. Test for 'raise' only once.
66459         * lib/fatal-signal.c: Include sigprocmask.h.
66460         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
66461         unblock_fatal_signals): Define always.
66462         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
66463         sigprocmask.
66464
66465 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
66466
66467         Sync from Automake.
66468         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
66469         which incorrectly sets the mode of an existing destination
66470         directory.  In some cases the unpatched install-sh could do the
66471         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
66472         system.  We hope this is rare in practice, but it's clearly worth
66473         fixing.  Problem reported by Alex Unleashed in
66474         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
66475         Also, don't bother to check for -m bugs unless we're using -m;
66476         suggested by Stepan Kasal.
66477
66478 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66479
66480         Sync from Automake.
66481         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
66482         `-c' flag, so they appear at the same position as in %FASTDEP%
66483         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
66484         which ignores unknown options only after the first non-option.
66485         Bug report against M4 by Nelson H. F. Beebe.
66486
66487 2006-10-13  Jim Meyering  <jim@meyering.net>
66488
66489         Fix a bug in yesterday's change.
66490         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
66491         p->fts_statp->st_dev would be used uninitialized.
66492         Ensures that we always call fts_stat on the very first entry.
66493         Miklos Szeredi reported that find -xdev stopped working.
66494
66495 2006-10-12  Bruno Haible  <bruno@clisp.org>
66496
66497         * gnulib-tool (func_get_automake_snippet): Append an automatically
66498         computed EXTRA_DIST augmentation.
66499         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
66500         * modules/alloca-opt (Makefile.am): Likewise.
66501         * modules/allocsa (Makefile.am): Likewise.
66502         * modules/arcfour (Makefile.am): Likewise.
66503         * modules/arctwo (Makefile.am): Likewise.
66504         * modules/argmatch (Makefile.am): Likewise.
66505         * modules/argz (Makefile.am): Likewise.
66506         * modules/atexit (Makefile.am): Likewise.
66507         * modules/backupfile (Makefile.am): Likewise.
66508         * modules/byteswap (Makefile.am): Likewise.
66509         * modules/c-strtod (Makefile.am): Likewise.
66510         * modules/c-strtold (Makefile.am): Likewise.
66511         * modules/calloc (Makefile.am): Likewise.
66512         * modules/canon-host (Makefile.am): Likewise.
66513         * modules/canonicalize (Makefile.am): Likewise.
66514         * modules/chdir-long (Makefile.am): Likewise.
66515         * modules/chdir-safer (Makefile.am): Likewise.
66516         * modules/check-version (Makefile.am): Likewise.
66517         * modules/chown (Makefile.am): Likewise.
66518         * modules/cloexec (Makefile.am): Likewise.
66519         * modules/close-stream (Makefile.am): Likewise.
66520         * modules/closeout (Makefile.am): Likewise.
66521         * modules/crc (Makefile.am): Likewise.
66522         * modules/csharpexec (Makefile.am): Likewise.
66523         * modules/cycle-check (Makefile.am): Likewise.
66524         * modules/des (Makefile.am): Likewise.
66525         * modules/dev-ino (Makefile.am): Likewise.
66526         * modules/dirfd (Makefile.am): Likewise.
66527         * modules/dirname (Makefile.am): Likewise.
66528         * modules/dup2 (Makefile.am): Likewise.
66529         * modules/eealloc (Makefile.am): Likewise.
66530         * modules/error (Makefile.am): Likewise.
66531         * modules/euidaccess (Makefile.am): Likewise.
66532         * modules/exclude (Makefile.am): Likewise.
66533         * modules/exitfail (Makefile.am): Likewise.
66534         * modules/fcntl-safer (Makefile.am): Likewise.
66535         * modules/fcntl (Makefile.am): Likewise.
66536         * modules/file-type (Makefile.am): Likewise.
66537         * modules/fileblocks (Makefile.am): Likewise.
66538         * modules/filemode (Makefile.am): Likewise.
66539         * modules/filenamecat (Makefile.am): Likewise.
66540         * modules/fnmatch (Makefile.am): Likewise.
66541         * modules/fopen-safer (Makefile.am): Likewise.
66542         * modules/fpending (Makefile.am): Likewise.
66543         * modules/fprintftime (Makefile.am): Likewise.
66544         * modules/free (Makefile.am): Likewise.
66545         * modules/fsusage (Makefile.am): Likewise.
66546         * modules/ftruncate (Makefile.am): Likewise.
66547         * modules/fts (Makefile.am): Likewise.
66548         * modules/gc-arcfour (Makefile.am): Likewise.
66549         * modules/gc-des (Makefile.am): Likewise.
66550         * modules/gc-hmac-md5 (Makefile.am): Likewise.
66551         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
66552         * modules/gc-md4 (Makefile.am): Likewise.
66553         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
66554         * modules/gc-sha1 (Makefile.am): Likewise.
66555         * modules/gc (Makefile.am): Likewise.
66556         * modules/getaddrinfo (Makefile.am): Likewise.
66557         * modules/getcwd (Makefile.am): Likewise.
66558         * modules/getdelim (Makefile.am): Likewise.
66559         * modules/getdomainname (Makefile.am): Likewise.
66560         * modules/getgroups (Makefile.am): Likewise.
66561         * modules/gethostname (Makefile.am): Likewise.
66562         * modules/gethrxtime (Makefile.am): Likewise.
66563         * modules/getline (Makefile.am): Likewise.
66564         * modules/getloadavg (Makefile.am): Likewise.
66565         * modules/getlogin_r (Makefile.am): Likewise.
66566         * modules/getndelim2 (Makefile.am): Likewise.
66567         * modules/getopt (Makefile.am): Likewise.
66568         * modules/getpagesize (Makefile.am): Likewise.
66569         * modules/getpass-gnu (Makefile.am): Likewise.
66570         * modules/getpass (Makefile.am): Likewise.
66571         * modules/getsubopt (Makefile.am): Likewise.
66572         * modules/gettime (Makefile.am): Likewise.
66573         * modules/gettimeofday (Makefile.am): Likewise.
66574         * modules/getugroups (Makefile.am): Likewise.
66575         * modules/getusershell (Makefile.am): Likewise.
66576         * modules/glob (Makefile.am): Likewise.
66577         * modules/group-member (Makefile.am): Likewise.
66578         * modules/hard-locale (Makefile.am): Likewise.
66579         * modules/hash (Makefile.am): Likewise.
66580         * modules/hmac-md5 (Makefile.am): Likewise.
66581         * modules/hmac-sha1 (Makefile.am): Likewise.
66582         * modules/human (Makefile.am): Likewise.
66583         * modules/idcache (Makefile.am): Likewise.
66584         * modules/imaxabs (Makefile.am): Likewise.
66585         * modules/imaxdiv (Makefile.am): Likewise.
66586         * modules/inet_ntop (Makefile.am): Likewise.
66587         * modules/inet_pton (Makefile.am): Likewise.
66588         * modules/intprops (Makefile.am): Likewise.
66589         * modules/inttostr (Makefile.am): Likewise.
66590         * modules/inttypes (Makefile.am): Likewise.
66591         * modules/isapipe (Makefile.am): Likewise.
66592         * modules/javaversion (Makefile.am): Likewise.
66593         * modules/lchmod (Makefile.am): Likewise.
66594         * modules/lchown (Makefile.am): Likewise.
66595         * modules/localcharset (Makefile.am): Likewise.
66596         * modules/long-options (Makefile.am): Likewise.
66597         * modules/lstat (Makefile.am): Likewise.
66598         * modules/malloc (Makefile.am): Likewise.
66599         * modules/mathl (Makefile.am): Likewise.
66600         * modules/mbchar (Makefile.am): Likewise.
66601         * modules/md2 (Makefile.am): Likewise.
66602         * modules/md4 (Makefile.am): Likewise.
66603         * modules/md5 (Makefile.am): Likewise.
66604         * modules/memcasecmp (Makefile.am): Likewise.
66605         * modules/memchr (Makefile.am): Likewise.
66606         * modules/memcmp (Makefile.am): Likewise.
66607         * modules/memcoll (Makefile.am): Likewise.
66608         * modules/memcpy (Makefile.am): Likewise.
66609         * modules/memmem (Makefile.am): Likewise.
66610         * modules/memmove (Makefile.am): Likewise.
66611         * modules/mempcpy (Makefile.am): Likewise.
66612         * modules/memrchr (Makefile.am): Likewise.
66613         * modules/memset (Makefile.am): Likewise.
66614         * modules/memxor (Makefile.am): Likewise.
66615         * modules/mkancesdirs (Makefile.am): Likewise.
66616         * modules/mkdir-p (Makefile.am): Likewise.
66617         * modules/mkdir (Makefile.am): Likewise.
66618         * modules/mkdtemp (Makefile.am): Likewise.
66619         * modules/mkstemp (Makefile.am): Likewise.
66620         * modules/mktime (Makefile.am): Likewise.
66621         * modules/modechange (Makefile.am): Likewise.
66622         * modules/mountlist (Makefile.am): Likewise.
66623         * modules/nanosleep (Makefile.am): Likewise.
66624         * modules/obstack (Makefile.am): Likewise.
66625         * modules/openat (Makefile.am): Likewise.
66626         * modules/pagealign_alloc (Makefile.am): Likewise.
66627         * modules/pathmax (Makefile.am): Likewise.
66628         * modules/physmem (Makefile.am): Likewise.
66629         * modules/poll (Makefile.am): Likewise.
66630         * modules/posixtm (Makefile.am): Likewise.
66631         * modules/posixver (Makefile.am): Likewise.
66632         * modules/putenv (Makefile.am): Likewise.
66633         * modules/quote (Makefile.am): Likewise.
66634         * modules/quotearg (Makefile.am): Likewise.
66635         * modules/raise (Makefile.am): Likewise.
66636         * modules/read-file (Makefile.am): Likewise.
66637         * modules/readline (Makefile.am): Likewise.
66638         * modules/readlink (Makefile.am): Likewise.
66639         * modules/readtokens (Makefile.am): Likewise.
66640         * modules/readutmp (Makefile.am): Likewise.
66641         * modules/realloc (Makefile.am): Likewise.
66642         * modules/regex (Makefile.am): Likewise.
66643         * modules/rename-dest-slash (Makefile.am): Likewise.
66644         * modules/rename (Makefile.am): Likewise.
66645         * modules/rijndael (Makefile.am): Likewise.
66646         * modules/rmdir (Makefile.am): Likewise.
66647         * modules/rpmatch (Makefile.am): Likewise.
66648         * modules/safe-read (Makefile.am): Likewise.
66649         * modules/safe-write (Makefile.am): Likewise.
66650         * modules/same-inode (Makefile.am): Likewise.
66651         * modules/same (Makefile.am): Likewise.
66652         * modules/save-cwd (Makefile.am): Likewise.
66653         * modules/savedir (Makefile.am): Likewise.
66654         * modules/setenv (Makefile.am): Likewise.
66655         * modules/settime (Makefile.am): Likewise.
66656         * modules/sha1 (Makefile.am): Likewise.
66657         * modules/sig2str (Makefile.am): Likewise.
66658         * modules/snprintf (Makefile.am): Likewise.
66659         * modules/stat-macros (Makefile.am): Likewise.
66660         * modules/stat-time (Makefile.am): Likewise.
66661         * modules/stdbool (Makefile.am): Likewise.
66662         * modules/stdint (Makefile.am): Likewise.
66663         * modules/stdlib-safer (Makefile.am): Likewise.
66664         * modules/stpcpy (Makefile.am): Likewise.
66665         * modules/stpncpy (Makefile.am): Likewise.
66666         * modules/strcase (Makefile.am): Likewise.
66667         * modules/strcasestr (Makefile.am): Likewise.
66668         * modules/strchrnul (Makefile.am): Likewise.
66669         * modules/strcspn (Makefile.am): Likewise.
66670         * modules/strdup (Makefile.am): Likewise.
66671         * modules/strerror (Makefile.am): Likewise.
66672         * modules/strftime (Makefile.am): Likewise.
66673         * modules/strndup (Makefile.am): Likewise.
66674         * modules/strnlen (Makefile.am): Likewise.
66675         * modules/strpbrk (Makefile.am): Likewise.
66676         * modules/strsep (Makefile.am): Likewise.
66677         * modules/strstr (Makefile.am): Likewise.
66678         * modules/strtod (Makefile.am): Likewise.
66679         * modules/strtoimax (Makefile.am): Likewise.
66680         * modules/strtok_r (Makefile.am): Likewise.
66681         * modules/strtol (Makefile.am): Likewise.
66682         * modules/strtoll (Makefile.am): Likewise.
66683         * modules/strtoul (Makefile.am): Likewise.
66684         * modules/strtoull (Makefile.am): Likewise.
66685         * modules/strtoumax (Makefile.am): Likewise.
66686         * modules/strverscmp (Makefile.am): Likewise.
66687         * modules/sys_socket (Makefile.am): Likewise.
66688         * modules/sys_stat (Makefile.am): Likewise.
66689         * modules/sysexits (Makefile.am): Likewise.
66690         * modules/time_r (Makefile.am): Likewise.
66691         * modules/timegm (Makefile.am): Likewise.
66692         * modules/timespec (Makefile.am): Likewise.
66693         * modules/tmpfile-safer (Makefile.am): Likewise.
66694         * modules/trim (Makefile.am): Likewise.
66695         * modules/unistd-safer (Makefile.am): Likewise.
66696         * modules/unlinkdir (Makefile.am): Likewise.
66697         * modules/unlocked-io (Makefile.am): Likewise.
66698         * modules/userspec (Makefile.am): Likewise.
66699         * modules/utime (Makefile.am): Likewise.
66700         * modules/utimecmp (Makefile.am): Likewise.
66701         * modules/utimens (Makefile.am): Likewise.
66702         * modules/vasnprintf (Makefile.am): Likewise.
66703         * modules/vasprintf (Makefile.am): Likewise.
66704         * modules/vsnprintf (Makefile.am): Likewise.
66705         * modules/xalloc (Makefile.am): Likewise.
66706         * modules/xgetcwd (Makefile.am): Likewise.
66707         * modules/xnanosleep (Makefile.am): Likewise.
66708         * modules/xreadlink (Makefile.am): Likewise.
66709         * modules/xstrtod (Makefile.am): Likewise.
66710         * modules/xstrtol (Makefile.am): Likewise.
66711         * modules/xstrtold (Makefile.am): Likewise.
66712         * modules/yesno (Makefile.am): Likewise.
66713         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
66714
66715 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
66716
66717         * modules/error (Makefile.am): Distribute files through
66718         EXTRA_DIST, not lib_SOURCES.
66719
66720 2006-10-12  Eric Blake  <ebb9@byu.net>
66721
66722         * modules/error (Makefile.am): Distribute files in /lib.
66723         * modules/obstack (Makefile.am): Likewise.
66724
66725 2006-10-12  Bruno Haible  <bruno@clisp.org>
66726
66727         * modules/acl (Makefile.am): Distribute all files in lib/ through
66728         EXTRA_DIST.
66729         * modules/arcfour (Makefile.am): Likewise.
66730         * modules/arctwo (Makefile.am): Likewise.
66731         * modules/argmatch (Makefile.am): Likewise.
66732         * modules/argz (Makefile.am): Likewise.
66733         * modules/atexit (Makefile.am): Likewise.
66734         * modules/backupfile (Makefile.am): Likewise.
66735         * modules/c-strtod (Makefile.am): Likewise.
66736         * modules/c-strtold (Makefile.am): Likewise.
66737         * modules/calloc (Makefile.am): Likewise.
66738         * modules/canon-host (Makefile.am): Likewise.
66739         * modules/canonicalize (Makefile.am): Likewise.
66740         * modules/chdir-long (Makefile.am): Likewise.
66741         * modules/chdir-safer (Makefile.am): Likewise.
66742         * modules/check-version (Makefile.am): Likewise.
66743         * modules/chown (Makefile.am): Likewise.
66744         * modules/cloexec (Makefile.am): Likewise.
66745         * modules/close-stream (Makefile.am): Likewise.
66746         * modules/closeout (Makefile.am): Likewise.
66747         * modules/crc (Makefile.am): Likewise.
66748         * modules/cycle-check (Makefile.am): Likewise.
66749         * modules/des (Makefile.am): Likewise.
66750         * modules/dirfd (Makefile.am): Likewise.
66751         * modules/dirname (Makefile.am): Likewise.
66752         * modules/dup2 (Makefile.am): Likewise.
66753         * modules/euidaccess (Makefile.am): Likewise.
66754         * modules/exclude (Makefile.am): Likewise.
66755         * modules/exitfail (Makefile.am): Likewise.
66756         * modules/fcntl-safer (Makefile.am): Likewise.
66757         * modules/file-type (Makefile.am): Likewise.
66758         * modules/fileblocks (Makefile.am): Likewise.
66759         * modules/filemode (Makefile.am): Likewise.
66760         * modules/filenamecat (Makefile.am): Likewise.
66761         * modules/fnmatch (Makefile.am): Likewise.
66762         * modules/fopen-safer (Makefile.am): Likewise.
66763         * modules/fpending (Makefile.am): Likewise.
66764         * modules/fprintftime (Makefile.am): Likewise.
66765         * modules/free (Makefile.am): Likewise.
66766         * modules/fsusage (Makefile.am): Likewise.
66767         * modules/ftruncate (Makefile.am): Likewise.
66768         * modules/fts (Makefile.am): Likewise.
66769         * modules/gc (Makefile.am): Likewise.
66770         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
66771         * modules/getaddrinfo (Makefile.am): Likewise.
66772         * modules/getcwd (Makefile.am): Likewise.
66773         * modules/getdelim (Makefile.am): Likewise.
66774         * modules/getdomainname (Makefile.am): Likewise.
66775         * modules/getgroups (Makefile.am): Likewise.
66776         * modules/gethostname (Makefile.am): Likewise.
66777         * modules/gethrxtime (Makefile.am): Likewise.
66778         * modules/getline (Makefile.am): Likewise.
66779         * modules/getloadavg (Makefile.am): Likewise.
66780         * modules/getlogin_r (Makefile.am): Likewise.
66781         * modules/getopt (Makefile.am): Likewise.
66782         * modules/getpass (Makefile.am): Likewise.
66783         * modules/getpass-gnu (Makefile.am): Likewise.
66784         * modules/getsubopt (Makefile.am): Likewise.
66785         * modules/gettime (Makefile.am): Likewise.
66786         * modules/gettimeofday (Makefile.am): Likewise.
66787         * modules/getugroups (Makefile.am): Likewise.
66788         * modules/getusershell (Makefile.am): Likewise.
66789         * modules/glob (Makefile.am): Likewise.
66790         * modules/group-member (Makefile.am): Likewise.
66791         * modules/hard-locale (Makefile.am): Likewise.
66792         * modules/hash (Makefile.am): Likewise.
66793         * modules/hmac-md5 (Makefile.am): Likewise.
66794         * modules/hmac-sha1 (Makefile.am): Likewise.
66795         * modules/human (Makefile.am): Likewise.
66796         * modules/idcache (Makefile.am): Likewise.
66797         * modules/imaxabs (Makefile.am): Likewise.
66798         * modules/imaxdiv (Makefile.am): Likewise.
66799         * modules/inet_ntop (Makefile.am): Likewise.
66800         * modules/inet_pton (Makefile.am): Likewise.
66801         * modules/inttostr (Makefile.am): Likewise.
66802         * modules/isapipe (Makefile.am): Likewise.
66803         * modules/lchown (Makefile.am): Likewise.
66804         * modules/long-options (Makefile.am): Likewise.
66805         * modules/lstat (Makefile.am): Likewise.
66806         * modules/malloc (Makefile.am): Likewise.
66807         * modules/mathl (Makefile.am): Likewise.
66808         * modules/mbchar (Makefile.am): Likewise.
66809         * modules/md2 (Makefile.am): Likewise.
66810         * modules/md4 (Makefile.am): Likewise.
66811         * modules/md5 (Makefile.am): Likewise.
66812         * modules/memcasecmp (Makefile.am): Likewise.
66813         * modules/memchr (Makefile.am): Likewise.
66814         * modules/memcmp (Makefile.am): Likewise.
66815         * modules/memcoll (Makefile.am): Likewise.
66816         * modules/memcpy (Makefile.am): Likewise.
66817         * modules/memmem (Makefile.am): Likewise.
66818         * modules/memmove (Makefile.am): Likewise.
66819         * modules/mempcpy (Makefile.am): Likewise.
66820         * modules/memrchr (Makefile.am): Likewise.
66821         * modules/memset (Makefile.am): Likewise.
66822         * modules/memxor (Makefile.am): Likewise.
66823         * modules/mkancesdirs (Makefile.am): Likewise.
66824         * modules/mkdir (Makefile.am): Likewise.
66825         * modules/mkdir-p (Makefile.am): Likewise.
66826         * modules/mkdtemp (Makefile.am): Likewise.
66827         * modules/mkstemp (Makefile.am): Likewise.
66828         * modules/mktime (Makefile.am): Likewise.
66829         * modules/modechange (Makefile.am): Likewise.
66830         * modules/mountlist (Makefile.am): Likewise.
66831         * modules/nanosleep (Makefile.am): Likewise.
66832         * modules/openat (Makefile.am): Likewise.
66833         * modules/pagealign_alloc (Makefile.am): Likewise.
66834         * modules/physmem (Makefile.am): Likewise.
66835         * modules/poll (Makefile.am): Likewise.
66836         * modules/posixtm (Makefile.am): Likewise.
66837         * modules/posixver (Makefile.am): Likewise.
66838         * modules/putenv (Makefile.am): Likewise.
66839         * modules/quote (Makefile.am): Likewise.
66840         * modules/quotearg (Makefile.am): Likewise.
66841         * modules/raise (Makefile.am): Likewise.
66842         * modules/read-file (Makefile.am): Likewise.
66843         * modules/readline (Makefile.am): Likewise.
66844         * modules/readlink (Makefile.am): Likewise.
66845         * modules/readtokens (Makefile.am): Likewise.
66846         * modules/readutmp (Makefile.am): Likewise.
66847         * modules/realloc (Makefile.am): Likewise.
66848         * modules/regex (Makefile.am): Likewise.
66849         * modules/rename (Makefile.am): Likewise.
66850         * modules/rename-dest-slash (Makefile.am): Likewise.
66851         * modules/rijndael (Makefile.am): Likewise.
66852         * modules/rmdir (Makefile.am): Likewise.
66853         * modules/rpmatch (Makefile.am): Likewise.
66854         * modules/safe-read (Makefile.am): Likewise.
66855         * modules/safe-write (Makefile.am): Likewise.
66856         * modules/same (Makefile.am): Likewise.
66857         * modules/save-cwd (Makefile.am): Likewise.
66858         * modules/savedir (Makefile.am): Likewise.
66859         * modules/setenv (Makefile.am): Likewise.
66860         * modules/settime (Makefile.am): Likewise.
66861         * modules/sha1 (Makefile.am): Likewise.
66862         * modules/sig2str (Makefile.am): Likewise.
66863         * modules/snprintf (Makefile.am): Likewise.
66864         * modules/stdlib-safer (Makefile.am): Likewise.
66865         * modules/stpcpy (Makefile.am): Likewise.
66866         * modules/stpncpy (Makefile.am): Likewise.
66867         * modules/strcase (Makefile.am): Likewise.
66868         * modules/strcasestr (Makefile.am): Likewise.
66869         * modules/strchrnul (Makefile.am): Likewise.
66870         * modules/strcspn (Makefile.am): Likewise.
66871         * modules/strdup (Makefile.am): Likewise.
66872         * modules/strerror (Makefile.am): Likewise.
66873         * modules/strftime (Makefile.am): Likewise.
66874         * modules/strndup (Makefile.am): Likewise.
66875         * modules/strnlen (Makefile.am): Likewise.
66876         * modules/strpbrk (Makefile.am): Likewise.
66877         * modules/strsep (Makefile.am): Likewise.
66878         * modules/strstr (Makefile.am): Likewise.
66879         * modules/strtod (Makefile.am): Likewise.
66880         * modules/strtoimax (Makefile.am): Likewise.
66881         * modules/strtok_r (Makefile.am): Likewise.
66882         * modules/strtol (Makefile.am): Likewise.
66883         * modules/strtoll (Makefile.am): Likewise.
66884         * modules/strtoul (Makefile.am): Likewise.
66885         * modules/strtoull (Makefile.am): Likewise.
66886         * modules/strtoumax (Makefile.am): Likewise.
66887         * modules/strverscmp (Makefile.am): Likewise.
66888         * modules/time_r (Makefile.am): Likewise.
66889         * modules/timegm (Makefile.am): Likewise.
66890         * modules/tmpfile-safer (Makefile.am): Likewise.
66891         * modules/unistd-safer (Makefile.am): Likewise.
66892         * modules/unlinkdir (Makefile.am): Likewise.
66893         * modules/userspec (Makefile.am): Likewise.
66894         * modules/utime (Makefile.am): Likewise.
66895         * modules/utimecmp (Makefile.am): Likewise.
66896         * modules/utimens (Makefile.am): Likewise.
66897         * modules/vasnprintf (Makefile.am): Likewise.
66898         * modules/vasprintf (Makefile.am): Likewise.
66899         * modules/vsnprintf (Makefile.am): Likewise.
66900         * modules/xalloc (Makefile.am): Likewise.
66901         * modules/xgetcwd (Makefile.am): Likewise.
66902         * modules/xnanosleep (Makefile.am): Likewise.
66903         * modules/xreadlink (Makefile.am): Likewise.
66904         * modules/xstrtod (Makefile.am): Likewise.
66905         * modules/xstrtol (Makefile.am): Likewise.
66906         * modules/xstrtold (Makefile.am): Likewise.
66907         * modules/yesno (Makefile.am): Likewise.
66908
66909 2006-10-12  Jim Meyering  <jim@meyering.net>
66910
66911         * m4/getloadavg.m4: Revert the change below.
66912
66913         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
66914         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
66915         fail with a symlink, which is what coreutils' ./bootstrap now
66916         creates by default.
66917
66918 2006-10-12  Bruno Haible  <bruno@clisp.org>
66919
66920         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
66921         mingw.
66922         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
66923         MSVC and mingw explicitly.
66924
66925 2006-10-11  Simon Josefsson  <jas@extundo.com>
66926             Bruno Haible  <bruno@clisp.org>
66927
66928         Add support for multiple gnulib-tool invocations in the scope of a
66929         single configure.ac file.
66930         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
66931         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
66932         with the same contents as the _LIBADD variable.
66933         (func_emit_initmacro_start, func_emit_initmacro_end,
66934         func_emit_initmacro_done): New functions.
66935         (func_import, func_create_testdir): Invoke them. Allow the identifiers
66936         gl_LIBOBJS and gl_LTLIBOBJS.
66937
66938 2006-10-11  Bruno Haible  <bruno@clisp.org>
66939
66940         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
66941         (func_create_testdir): Don't create po/Makefile.am, don't invoke
66942         autoreconf. Instead, invoke autopoint explicitly but move back the
66943         *.m4 files from gnulib.
66944
66945 2006-10-11  Bruno Haible  <bruno@clisp.org>
66946
66947         * gnulib-tool (func_usage): Make module names after --create-testdir
66948         optional.
66949         (func_create_testdir): If no module was specified, use nearly all
66950         modules.
66951
66952 2006-10-12  Jim Meyering  <jim@meyering.net>
66953
66954         Big performance improvement for fts-based tools that use FTS_NOSTAT.
66955         Avoid spurious inode-mismatch problems on non-POSIX file systems.
66956         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
66957         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
66958         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
66959         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
66960         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
66961         (fts_set_stat_required): New function.
66962         (fts_open): Defer the calls to fts_stat, if possible or requested.
66963         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
66964         into fts_stat itself.
66965         (fts_read): Perform any required (deferred) fts_stat call.
66966         (fts_build): Likewise, for the directory we're about to open and read.
66967         In the readdir loop, carefully decide whether each entry will require
66968         an eventual call to fts_stat, using dirent.d_type info if available.
66969         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
66970         a command line argument into this function.  Update all callers.
66971         Map a return value of FTS_DOT to FTS_D for a command line argument.
66972         * modules/fts (Depends-on): Add d-type.  Alphabetize.
66973         Thanks to Miklos Szeredi for his tenacity and for the initial
66974         bug report about "find" failing on a FUSE-based file system.
66975
66976         * lib/fts.c (fts_open): Use consistent indentation.
66977
66978 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
66979
66980         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
66981         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
66982         reported by Jim Meyering.  All uses of cache variables renamed
66983         to match Autoconf's.
66984         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
66985         the other one.
66986
66987         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
66988         Fix misspelling in diagnostic.
66989
66990 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
66991
66992         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
66993         defined.  Problem reported by Matthew Woehlke.
66994
66995         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
66996         Add support for Tandem NonStop R series.
66997         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
66998         Use new macro.
66999
67000         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
67001         (has_trailing_slash): Omit size arg; all callers changed.
67002         Omit 'inline', since it doesn't help performance and we'd
67003         need to configure it.
67004         Don't count //, ///, etc. as having a trailing slash.
67005         As a side effect, this removes a C99ism reported by Matthew Woehlke.
67006         (rpl_rename_dest_slash): On failure, use rename's errno rather
67007         than (in some cases) an incorrect or junk errno.
67008         Simplify code by removing need to compute length; this does
67009         cause it to make two passes instead of one over the file name,
67010         but it's worth it.
67011
67012         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
67013         change, since Autoconf's version may no longer be appropriate now
67014         that we are using CVS Autoconf's version.  Add support for Tandem.
67015
67016 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
67017             Bruno Haible  <bruno@clisp.org>
67018
67019         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
67020         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
67021         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
67022         gl_AC_TYPE_LONG_LONG.
67023
67024         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
67025         instead of HAVE_LONG_LONG.
67026         * lib/printf-args.c (printf_fetchargs): Likewise.
67027         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
67028         * lib/vasnprintf.c (VASNPRINTF): Likewise.
67029         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
67030         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
67031         gl_AC_TYPE_LONG_LONG.
67032
67033 2006-10-11  Bruno Haible  <bruno@clisp.org>
67034
67035         * m4/longlong.m4: Add comments.
67036         * m4/ulonglong.m4: Likewise.
67037
67038 2006-10-10  Bruno Haible  <bruno@clisp.org>
67039
67040         Make it possible to #define stpcpy, strdup to aliases.
67041         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
67042         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
67043
67044 2006-10-10  Bruno Haible  <bruno@clisp.org>
67045
67046         Make it possible to #define gcd to an alias.
67047         * lib/gcd.c: Include config.h.
67048
67049 2006-10-10  Bruno Haible  <bruno@clisp.org>
67050
67051         Make it possible to #define c_isascii to an alias.
67052         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
67053         defined. Undefine the macros before defining them, to avoid gcc
67054         warnings.
67055         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
67056         define NO_C_CTYPE_MACROS early.
67057
67058 2006-10-10  Bruno Haible  <bruno@clisp.org>
67059
67060         Make it possible to #define set_program_name to an alias.
67061         * lib/progname.c: Don't undefine set_program_name; instead, undefine
67062         ENABLE_RELOCATABLE early.
67063
67064 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
67065
67066         Port to Tandem NSK OSS, which has 64-bit signed int but at most
67067         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
67068         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
67069         More generally, don't assume that 64-bit signed int is available
67070         if unsigned int is, and vice versa.
67071         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
67072         unsigned symbols, not on their signed counterparts.
67073         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
67074         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
67075         (UINT64_C, UINTMAX_C):
67076         Likewise.
67077         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
67078         unsigned counterparts.
67079         (Have_long_long, Unsigned): New macros.
67080         (Int): Renamed from INT.
67081         (strtoimax): Use the new macros.
67082         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
67083         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
67084         * modules/inttypes (inttypes.h): Substitute
67085         HAVE_UNSIGNED_LONG_LONG_INT.
67086         * modules/stdint (stdint.h): Likewise.
67087         (Files): Add m4/ulonglong.m4.
67088
67089 2006-10-10  Bruno Haible  <bruno@clisp.org>
67090
67091         Fix a gcc -Wshadow warning.
67092         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
67093         to 'bucket'.
67094         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
67095         gl_linked_indexof_from_to): Likewise.
67096         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
67097         Likewise.
67098         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
67099         Likewise.
67100         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
67101         Reported by Eric Blake.
67102
67103 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
67104
67105         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
67106         for NetBSD.  Problem reported by Bruno Haible.
67107
67108 2006-10-09  Jim Meyering  <jim@meyering.net>
67109
67110         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
67111         Patch from Bruno Haible.
67112
67113 2006-10-09  Jim Meyering  <jim@meyering.net>
67114
67115         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
67116         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
67117         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
67118
67119 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
67120
67121         Don't include <config.h> twice; this doesn't work in some cases,
67122         e.g., when config.h has "#define intmax_t long long int" and
67123         we include <config.h>, <inttypes.h>, <config.h> in that order.
67124         Problem reported by Matthew Woehlke in:
67125         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
67126         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
67127         * lib/fts-cycle.c: Don't include config.h.
67128         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
67129         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
67130         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
67131         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
67132         inttypes.h.
67133         * lib/xstrtoumax.c: Likewise.
67134         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
67135         __strtol and the like, so that this module is more like its siblings.
67136         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
67137         Remove; no longer needed now that we assume gnulib inttypes.h.
67138
67139 2006-10-08  Bruno Haible  <bruno@clisp.org>
67140
67141         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
67142         option.
67143
67144 2006-10-07  Jim Meyering  <jim@meyering.net>
67145
67146         * modules/inttypes (inttypes.h): Revert what seems to have been
67147         an inadvertent part of today's change: use "|", not "/" in the
67148         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
67149
67150 2006-10-07  Bruno Haible  <bruno@clisp.org>
67151
67152         * modules/sublist: New file.
67153
67154 2006-10-07  Bruno Haible  <bruno@clisp.org>
67155
67156         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
67157         * modules/argz (argz.h): Likewise.
67158         * modules/arpa_inet (arpa/inet.h): Likewise.
67159         * modules/byteswap (byteswap.h): Likewise.
67160         * modules/configmake (configmake.h): Likewise.
67161         * modules/fcntl (fcntl.h): Likewise.
67162         * modules/fnmatch (fnmatch.h): Likewise.
67163         * modules/getopt (getopt.h): Likewise.
67164         * modules/glob (glob.h): Likewise.
67165         * modules/inttypes (inttypes.h): Likewise.
67166         * modules/netinet_in (netinet/in.h): Likewise.
67167         * modules/poll (poll.h): Likewise.
67168         * modules/stdbool (stdbool.h): Likewise.
67169         * modules/stdint (stdint.h): Likewise.
67170         * modules/sys_select (sys/select.h): Likewise.
67171         * modules/sys_socket (sys/socket.h): Likewise.
67172         * modules/sys_stat (sys/stat.h): Likewise.
67173         * modules/sysexits (sysexits.h): Likewise.
67174         * modules/unistd (unistd.h): Likewise.
67175         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
67176         Add a "DO NOT EDIT" comment to the generated file.
67177         (func_import): Likewise for gnulib-comp.m4.
67178
67179 2006-10-07  Bruno Haible  <bruno@clisp.org>
67180
67181         * lib/gl_sublist.h: New file.
67182         * lib/gl_sublist.c: New file.
67183
67184 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
67185
67186         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
67187         name (relative to the original working directory) and the file
67188         name component (relative to the temporary working directory).  All
67189         callers changed.
67190         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
67191         * lib/mkdir-p.c (make_dir_parents): Likewise.
67192         * lib/mkdir-p.h (make_dir_parents): Likewise.
67193
67194 2006-10-06  Eric Blake  <ebb9@byu.net>
67195
67196         Define several macros for use by the clean-temp module.
67197         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
67198         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
67199         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
67200
67201         * lib/clean-temp.h (close_stream_temp): New declaration.
67202         * lib/clean-temp.c (includes): Pull in headers according to what
67203         other modules are in use.
67204         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
67205
67206 2006-10-06  Bruno Haible  <bruno@clisp.org>
67207
67208         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
67209         instead of fopen, fwriteerror.
67210
67211 2006-10-06  Bruno Haible  <bruno@clisp.org>
67212
67213         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
67214         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
67215         int.
67216         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
67217         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
67218         Return an error indicator.
67219         Suggested by Eric Blake.
67220
67221 2006-10-06  Bruno Haible  <bruno@clisp.org>
67222
67223         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
67224         Reported by Eric Blake.
67225
67226 2006-10-06  Bruno Haible  <bruno@clisp.org>
67227
67228         * modules/closeout (Description): Mention stderr too.
67229
67230 2006-10-06  Bruno Haible  <bruno@clisp.org>
67231         and Paul Eggert  <eggert@cs.ucla.edu>
67232
67233         * lib/closeout.c (close_stdout): Also close stderr.
67234         * lib/closeout.h: Update comment.
67235
67236 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
67237
67238         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
67239         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
67240         * lib/dirchownmod.c: Include lchown.h.
67241         * lib/lchown.c: Don't include files that lchown.h now includes.
67242         Don't declare chown, since lchown.h now does that.
67243         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
67244         (lchown): Define to rpl_chown if lchown is declared but
67245         does not exist.  Declare using a prototype if lchown is not
67246         declared.  Add a copyright notice.
67247         * lib/mkstemp.h: Include <unistd.h>.
67248         * lib/openat.c: Include lchown.h.
67249
67250         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
67251         we now test for that separately.
67252         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
67253         rather than O_NOFOLLOW, when testing whether it's possible to
67254         avoid a race condition reliably.
67255         * lib/savewd.c (savewd_chdir): Likewise.
67256
67257         Remove macros that are no longer needed now that stdint.h is
67258         reliable.
67259         * lib/fsusage.c (UINTMAX_MAX): Remove.
67260         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
67261         * lib/utimecmp.c (SIZE_MAX): Remove.
67262
67263         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
67264
67265         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
67266         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
67267         O_NOATIME works.
67268
67269 2006-10-05  Bruno Haible  <bruno@clisp.org>
67270
67271         * lib/gl_list.h (gl_sortedlist_search_from_to,
67272         gl_sortedlist_indexof_from_to): New declarations.
67273         (gl_list_implementation): New fields sortedlist_search_from_to,
67274         sortedlist_indexof_from_to.
67275         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
67276         inline functions.
67277         * lib/gl_list.c (gl_sortedlist_search_from_to,
67278         gl_sortedlist_indexof_from_to): New functions.
67279         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
67280         function.
67281         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
67282         (gl_array_sortedlist_search_from_to): New function.
67283         (gl_array_list_implementation): Update.
67284         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
67285         function.
67286         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
67287         (gl_carray_sortedlist_search_from_to): New function.
67288         (gl_carray_list_implementation): Update.
67289         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
67290         gl_linked_sortedlist_indexof_from_to): New functions.
67291         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
67292         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
67293         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
67294         gl_tree_sortedlist_indexof_from_to): New functions.
67295         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
67296         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
67297         Update.
67298         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
67299         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
67300         Update.
67301
67302 2006-10-05  Bruno Haible  <bruno@clisp.org>
67303
67304         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
67305         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
67306         (struct gl_list_implementation): Add fields search_from_to,
67307         indexof_from_to. Remove fields search, indexof.
67308         (gl_list_search): Use the search_from_to method.
67309         (gl_list_search_from, gl_list_search_from_to): New functions.
67310         (gl_list_indexof): Use the indexof_from_to method.
67311         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
67312         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
67313         (gl_list_search_from, gl_list_search_from_to): New functions.
67314         (gl_list_indexof): Use the indexof_from_to method.
67315         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
67316         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
67317         gl_array_indexof. Add start_index, end_index arguments.
67318         (gl_array_search_from_to): Renamed from gl_array_search. Add
67319         start_index, end_index arguments.
67320         (gl_array_remove, gl_array_list_implementation): Update.
67321         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
67322         gl_carray_indexof. Add start_index, end_index arguments.
67323         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
67324         start_index, end_index arguments.
67325         (gl_carray_remove, gl_carray_list_implementation): Update.
67326         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
67327         gl_linked_search. Add start_index, end_index arguments.
67328         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
67329         start_index, end_index arguments.
67330         (gl_linked_remove): Update.
67331         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
67332         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
67333         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
67334         field to 'size_t'.
67335         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
67336         gl_tree_search. Add start_index, end_index arguments.
67337         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
67338         start_index, end_index arguments.
67339         (gl_tree_remove): Update.
67340         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
67341         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
67342         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
67343         function.
67344         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
67345         gl_tree_search. Add start_index, end_index arguments.
67346         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
67347         start_index, end_index arguments.
67348         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
67349         Update.
67350         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
67351
67352 2006-10-05  Bruno Haible  <bruno@clisp.org>
67353
67354         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
67355
67356         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
67357         fwriteerror_temp): New declarations.
67358         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
67359         (descriptors): New variable.
67360         (cleanup): First, close the descriptors.
67361         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
67362         fclose_temp, fwriteerror_temp): New functions.
67363
67364 2006-10-04  Jim Meyering  <jim@meyering.net>
67365
67366         * lib/fts.c (fts_open): Tiny comment change.
67367
67368 2006-10-04  Bruno Haible  <bruno@clisp.org>
67369
67370         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
67371         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
67372         gl_LOCK_BODY.
67373         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
67374         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
67375         gl_LOCK_EARLY_BODY.
67376         (gl_LOCK): Require gl_LOCK_BODY.
67377
67378 2006-10-04  Bruno Haible  <bruno@clisp.org>
67379
67380         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
67381         (gl_oset_search_atleast): New declaration.
67382         (struct gl_oset_implementation): Add field 'search_atleast'.
67383         (gl_oset_search_atleast): New inline function.
67384         * lib/gl_oset.c (gl_oset_search_atleast): New function.
67385         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
67386         (gl_array_oset_implementation): Update.
67387         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
67388         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
67389         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
67390
67391 2006-10-04  Bruno Haible  <bruno@clisp.org>
67392
67393         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
67394
67395 2006-10-03  Bruno Haible  <bruno@clisp.org>
67396
67397         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
67398         from gl_avltreehash_list_implementation.
67399
67400 2006-10-03  Bruno Haible  <bruno@clisp.org>
67401
67402         * lib/gl_oset.c (gl_oset_add): Fix return type.
67403
67404 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
67405
67406         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
67407
67408 2006-10-02  Eric Blake  <ebb9@byu.net>
67409
67410         * modules/strnlen (Depends-on): Add extensions.
67411
67412 2006-10-02  Eric Blake  <ebb9@byu.net>
67413
67414         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
67415         definition in 2.60+.
67416
67417 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
67418
67419         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
67420         checks.
67421
67422 2006-10-02  Bruno Haible  <bruno@clisp.org>
67423
67424         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
67425         to the AUTOMAKE_OPTIONS.
67426         Reported by Jim Meyering.
67427
67428 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
67429
67430         Work around bug in Solaris 10 /proc file system:
67431         /proc/self/fd/NNN/.. isn't the parent directory of
67432         the directory whose file descriptor is NNN.  This needs to
67433         be worked around at run time, not compile time, since a
67434         program might be built on Solaris 8, where things work, and
67435         run on Solaris 10.
67436         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
67437         to use the following interface instead:
67438         (OPENAT_BUFFER_SIZE): New macro.
67439         (openat_proc_name): New function.
67440         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
67441         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
67442         Likewise.
67443         * lib/openat-proc.c: New file.
67444         * modules/openat (Files): Add lib/openat-proc.c.
67445         (Depends-on): Add same-inode, stdbool.
67446         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
67447
67448 2006-09-29  Bruno Haible  <bruno@clisp.org>
67449
67450         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
67451         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
67452         argument. Set stdout_closed before testing for ferror, not after.
67453         (fwriteerror, fwriteerror_no_ebadf): New functions.
67454
67455 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67456
67457         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
67458
67459 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
67460
67461         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
67462         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
67463
67464 2006-09-28  Jim Meyering  <jim@meyering.net>
67465
67466         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
67467         Include <unistd.h>.
67468
67469 2006-09-28  Bruno Haible  <bruno@clisp.org>
67470
67471         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
67472         * modules/linkedhash-list (Depends-on): Likewise.
67473         * modules/rbtreehash-list (Depends-on): Likewise.
67474
67475 2006-09-28  Bruno Haible  <bruno@clisp.org>
67476
67477         * lib/strndup.h: Simplify the redefinition of strndup.
67478         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
67479         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
67480
67481 2006-09-28  Bruno Haible  <bruno@clisp.org>
67482
67483         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
67484         * lib/gl_linkedhash_list.c: Likewise.
67485         * lib/gl_rbtreehash_list.c: Likewise.
67486
67487 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
67488
67489         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
67490         getaddrinfo.
67491
67492         * lib/__fpending.h: Don't include <stdio_ext.h> unless
67493         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
67494         it causes <stdio_ext.h> to cause a compile-time error.
67495         Problem reported by Nelson H. F. Beebe.
67496         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
67497         of HAVE_DECL___PENDING.
67498
67499         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
67500         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
67501         declaration.
67502
67503 2006-09-27  Jim Meyering  <jim@meyering.net>
67504
67505         This file could end up with a definition for a function
67506         named __strndup, rather than rpl_strndup on a system with
67507         incomplete weak_alias support.
67508         * lib/strndup.c (strndup): Rename from __strndup.
67509         Remove #defines that used to map __strndup to strndup.
67510         Don't use K&R prototypes.
67511         Remove LIBC-related code, since this file is not sync'd with glibc.
67512         * lib/strndup.h: Revamp, accordingly.
67513         * m4/strndup.m4: Modernize.
67514
67515 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
67516
67517         * modules/savewd (Depends-on): Add 'raise'.
67518         * lib/savewd.c: Include <signal.h>, for 'raise'.
67519
67520 2006-09-26  Jim Meyering  <jim@meyering.net>
67521
67522         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
67523         when we detect Darwin 8.7.0's acl_get_file bug.
67524         Rearrange to perform the new (below) run-test while $LIBS
67525         contains any acl-related library.  Set USE_ACL at the end.
67526         (gl_ACL_GET_FILE): New function.
67527
67528 2006-09-26  Eric Blake  <ebb9@byu.net>
67529
67530         * lib/verror.c: Include <config.h> unconditionally.
67531
67532 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
67533
67534         * modules/clock-time (Maintainer): Add self.
67535         * modules/getlogin_r (Depends-on): Add extensions.
67536
67537 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67538
67539         * modules/clock-time: New module.
67540         * modules/nanosleep (Depends-on): Add clock-time.
67541         * modules/gethrxtime (Depends-on): Likewise.
67542         * modules/gettime (Depends-on): Likewise.
67543         * modules/settime (Depends-on): Likewise.
67544
67545         * modules/fts-lgpl: Depend on openat.
67546         * modules/mkancesdirs: Depend on savewd.
67547         * modules/mkdir-p: Likewise.
67548
67549 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67550
67551         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
67552
67553         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
67554         `gl_have_arbitrary_file_name_length_limit' to
67555         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
67556         actually works between configure runs.
67557
67558 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67559             Bruno Haible  <bruno@clisp.org>
67560
67561         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
67562
67563 2006-09-25  Jim Meyering  <jim@meyering.net>
67564
67565         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
67566         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
67567
67568 2006-09-25  Eric Blake  <ebb9@byu.net>
67569
67570         * gnulib-tool (func_import, func_create_testdir): Fix typos in
67571         exec's in 2006-09-18 patch when shuffling fds.
67572
67573 2006-09-25  Bruno Haible  <bruno@clisp.org>
67574
67575         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
67576         Reported by Jim Meyering.
67577
67578 2006-09-24  Jim Meyering  <jim@meyering.net>
67579
67580         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
67581         compare a pointer against a literal "0".  That caused failures with
67582         at least HP-UX's hpcc.
67583
67584 2006-09-22  Simon Josefsson  <jas@extundo.com>
67585
67586         * modules/gc-sha1:
67587         * modules/gc-md4:
67588         * modules/gc-hmac-sha1:
67589         * modules/gc-hmac-md5:
67590         * modules/gc-des:
67591         * modules/gc-arcfour: Distribute more files.
67592
67593 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67594
67595         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
67596         (gl_linked_iterator_from_to): Initialize struct completely.
67597         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
67598         (gl_tree_iterator_from_to): Likewise
67599         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
67600         * lib/gl_array_list.c [lint] (gl_array_iterator)
67601         (gl_array_iterator_from_to): Likewise.
67602         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
67603         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
67604         (gl_carray_iterator_from_to): Likewise.
67605
67606         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
67607         * lib/md4.c (md4_process_block): Remove unused variable.
67608         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
67609         parentheses for clarity.
67610
67611 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67612
67613         * modules/bison-i18n (Depends-on): Add gettext.
67614
67615 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67616
67617         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
67618         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
67619         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
67620         also add missing comma that caused broken test.
67621         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
67622         stdlib.h, for `abort'.
67623         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
67624         variables.
67625         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
67626         include unistd.h if present, for `rmdir'.
67627         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
67628         variables.
67629         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
67630         in the process include standard headers for prototypes.
67631         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
67632         gets declared on GNU/Linux.
67633         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
67634         unistd.h, for `rmdir'.
67635         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
67636
67637         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
67638         always true.
67639         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
67640
67641         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
67642
67643 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67644
67645         * gnulib-tool (func_version): Create output all at once.  This
67646         may help avoid triggering unnecessary SIGPIPEs, and at any
67647         rate it doesn't hurt.
67648
67649 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67650             Bruno Haible  <bruno@clisp.org>
67651
67652         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
67653         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
67654         * m4/signed.m4 (bh_C_SIGNED): Likewise.
67655
67656         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
67657         (gl_FUNC_VASPRINTF): Invoke it.
67658
67659 2006-09-22  Bruno Haible  <bruno@clisp.org>
67660
67661         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
67662         getloadavg.c as first argument.
67663
67664 2006-09-22  Bruno Haible  <bruno@clisp.org>
67665
67666         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
67667         at the beginning of the gl_INIT macro.
67668         * modules/getloadavg (configure.ac): Pass $gl_source_base to
67669         gl_GETLOADAVG.
67670
67671 2006-09-22  Bruno Haible  <bruno@clisp.org>
67672
67673         * gnulib-tool (func_create_megatestdir): Don't include the config-h
67674         module.
67675         Suggested by Ralf Wildenhues.
67676
67677 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
67678
67679         Import this patch from libc:
67680
67681         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
67682
67683         * lib/regex_internal.c (re_string_reconstruct): Handle
67684         offset < pstr->valid_raw_len && pstr->offsets_needed case.
67685         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
67686         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
67687         re_string_context_at.
67688
67689         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
67690         now requires it.
67691         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
67692         gl_REGEX now does it for us.
67693         (gl_REGEX): Add test taken from
67694         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
67695
67696         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
67697         Check that large offsets work.  Modernize Autoconf usages.
67698         Prefer "yes" to mean a good thing rather than a bad.
67699         Don't put "#define mkstemp" in config.h, as this might interfere
67700         with standard system headers that "#define mkstemp mkstemp64".
67701
67702         * modules/mkstemp (Depends-on): Add extensions, so that
67703         mkstemp is visible on some platforms.
67704         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
67705         (Include): Change to "mkstemp.h" from <stdlib.h>.
67706         (Files): Add mkstemp.h.
67707
67708         * lib/mkstemp.h: New file, since some standard headers
67709         #define mkstemp.
67710         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
67711         Include "mkstemp.h".
67712         Make the _LIBC code resemble glibc original more,
67713         e.g., use K&R style.
67714         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
67715         (mkstemp): Remove, since mkstemp.h does this for us.
67716         * lib/stdlib--.h: Include mkstemp.h.
67717
67718         Import this patch from libc:
67719
67720         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
67721
67722         * lib/tempname.c (__gen_tempname): Change attempts_min
67723         into a macro.  Use preprocessor to decide how to initialize
67724         attempts [Coverity CID 67].
67725
67726 2006-09-20  Bruno Haible  <bruno@clisp.org>
67727
67728         * lib/mkdtemp.c: Import from libc.
67729         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
67730                 * sysdeps/posix/tempname.c (__gen_tempname): Change
67731                 attempts_min into a macro.  Use preprocessor to decide how to
67732                 initialize attempts [Coverity CID 67].
67733         2001-11-27  Paul Eggert  <eggert@twinsun.com>
67734                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
67735                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
67736
67737 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67738
67739         * gnulib-tool (func_exit): New function, to allow to pass the
67740         exit status portably through the trap.  Use everywhere.
67741         (--help, --version): Signal a write error.
67742         (trap): catch SIGPIPE, for write errors.
67743         Exit at the end of the trap, with the correct exit status.
67744
67745 2006-09-19  Karl Berry  <karl@gnu.org>
67746
67747         * doc/gnulib.texi: note about the license texinfo files.
67748
67749 2006-09-19  Eric Blake  <ebb9@byu.net>
67750
67751         * gnulib-tool: Avoid space-tab.
67752
67753 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
67754
67755         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
67756         that prevented coreutils 6.1 from building.  Problem reported
67757         by Petter Reinholdtsen.
67758
67759 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
67760
67761         * gnulib-tool (avoidlist): Fix typo that broke options like
67762         --avoid=lock that are used by coreutils bootstrap.
67763
67764 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
67765
67766         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
67767         more systematically.
67768
67769 2006-09-18  Jim Meyering  <jim@meyering.net>
67770
67771         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
67772
67773 2006-09-18  Bruno Haible  <bruno@clisp.org>
67774
67775         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
67776
67777 2006-09-18  Bruno Haible  <bruno@clisp.org>
67778
67779         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
67780         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
67781         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
67782         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
67783         * m4/gettext.m4: Require autoconf >= 2.52.
67784         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
67785         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
67786         of gl_cv_header_inttypes_h.
67787
67788 2006-09-18  Bruno Haible  <bruno@clisp.org>
67789
67790         * lib/javaversion.c: Include configmake.h.
67791
67792 2006-09-18  Bruno Haible  <bruno@clisp.org>
67793
67794         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
67795         avoid that the while loops be executed in a subshell.
67796
67797 2006-09-18  Bruno Haible  <bruno@clisp.org>
67798
67799         * MODULES.html.sh (func_module): Break long lines.
67800         Suggested by Bruce Korb <bkorb@gnu.org>.
67801
67802 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67803
67804         Speed up by a factor of 1.12.
67805         * gnulib-tool (nl): New variable.
67806         (func_import): Rewrite include directive extraction to only read each
67807         directive once.
67808
67809 2006-09-17  Bruno Haible  <bruno@clisp.org>
67810
67811         * modules/javaversion (Makefile.am): Remove DEFS setting.
67812         (Depends-on): Add configmake, for PKGDATADIR definition.
67813
67814 2006-09-17  Bruno Haible  <bruno@clisp.org>
67815
67816         * gnulib-tool (func_create_testdir): Rewrite all files at once.
67817
67818 2006-09-17  Bruno Haible  <bruno@clisp.org>
67819
67820         * gnulib-tool (func_append): New function, stolen from libtool.m4.
67821         (func_modules_transitive_closure, func_modules_add_dummy,
67822         func_modules_to_filelist, func_import, func_create_testdir,
67823         func_create_megatestdir, ...): Use it wherever possible.
67824         Suggested by Ralf Wildenhues.
67825
67826 2006-09-16  Karl Berry  <karl@gnu.org>
67827
67828         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
67829         to avoid sectioning errors.
67830         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
67831         [ifinfo]: blank line after @center-ed titles.
67832         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
67833         Spell FSF address consistently with others.
67834         (These changes approved by rms.)
67835
67836 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67837
67838         Speed up by a factor of 1.61.
67839         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
67840         already checked module names again.
67841
67842 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67843
67844         Speed up by a factor of 1.13.
67845         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
67846         for new_files, and the input to func_add_or_update.
67847
67848 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67849
67850         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
67851         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
67852
67853 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
67854
67855         * modules/mkancesdirs (Depends-on): Add fcntl.
67856         * modules/savewd: New file.
67857         * MODULES.html.sh (File system functions): Add savewd.
67858
67859         * modules/configmake (Makefile.am): Add support for the
67860         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
67861
67862 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
67863
67864         * m4/savewd.m4: New file.
67865
67866 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
67867
67868         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
67869         (dirchownmod): New arg FD.  All callers changed.
67870         Use FD rather than opening the directory ourself, as opening is
67871         now the caller's responsibility.
67872         * lib/dirchownmod.h: Likewise.
67873         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
67874         hosts that require <sys/types.h> before <sys/stat.h>.  Include
67875         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
67876         (test_dir): Remove.
67877         (mkancesdirs): Return length of prefix of FILE that has already
67878         been made, or -2 if there is a child doing the work.  Redo
67879         algorithm so that it is O(N) rather than O(N**2).  Optimize away
67880         ".", and treat ".." specially since it might stray back into
67881         already-created areas.  Use a subprocess if necessary.  New arg
67882         WD; all users changed.  MAKE_DIR function should now return 1
67883         if it creates a directory that is not readable.  Return -2 if
67884         a child process is spun off.
67885         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
67886         Adjust signature to match code.
67887         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
67888         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
67889         all users changed.
67890         * lib/savewd.c, lib/savewd.h: New files.
67891
67892 2006-09-15  Jim Meyering  <jim@meyering.net>
67893
67894         * modules/rename-dest-slash: New module.
67895         * MODULES.html.sh (posix_compat): Add it here.
67896
67897         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
67898
67899 2006-09-15  Jim Meyering  <jim@meyering.net>
67900
67901         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
67902         file.
67903
67904         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
67905
67906 2006-09-15  Jim Meyering  <jim@meyering.net>
67907
67908         * lib/rename-dest-slash.c (has_trailing_slash): Use
67909         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
67910         (rpl_rename_dest_slash): Perform the cheaper trailing slash
67911         test before testing whether SRC is a directory.
67912         Suggestions from Bruno Haible.
67913
67914         Avoid a warning about an unused variable.
67915         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
67916         into the #ifdef block where it's used.
67917
67918         * lib/rename-dest-slash.c: New file.
67919
67920 2006-09-14  Bruno Haible  <bruno@clisp.org>
67921
67922         * lib/allocsa.c: Include <config.h> unconditionally.
67923         * lib/asnprintf.c: Likewise.
67924         * lib/asprintf.c: Likewise.
67925         * lib/c-strcasecmp.c: Likewise.
67926         * lib/c-strcasestr.c: Likewise.
67927         * lib/c-strncasecmp.c: Likewise.
67928         * lib/c-strstr.c: Likewise.
67929         * lib/classpath.c: Likewise.
67930         * lib/clean-temp.c: Likewise.
67931         * lib/concatpath.c: Likewise.
67932         * lib/copy-file.c: Likewise.
67933         * lib/csharpcomp.c: Likewise.
67934         * lib/csharpexec.c: Likewise.
67935         * lib/execute.c: Likewise.
67936         * lib/fatal-signal.c: Likewise.
67937         * lib/findprog.c: Likewise.
67938         * lib/fwriteerror.c: Likewise.
67939         * lib/gl_array_list.c: Likewise.
67940         * lib/gl_array_oset.c: Likewise.
67941         * lib/gl_avltree_list.c: Likewise.
67942         * lib/gl_avltree_oset.c: Likewise.
67943         * lib/gl_avltreehash_list.c: Likewise.
67944         * lib/gl_carray_list.c: Likewise.
67945         * lib/gl_linked_list.c: Likewise.
67946         * lib/gl_linkedhash_list.c: Likewise.
67947         * lib/gl_list.c: Likewise.
67948         * lib/gl_oset.c: Likewise.
67949         * lib/gl_rbtree_list.c: Likewise.
67950         * lib/gl_rbtree_oset.c: Likewise.
67951         * lib/gl_rbtreehash_list.c: Likewise.
67952         * lib/imaxabs.c: Likewise.
67953         * lib/imaxdiv.c: Likewise.
67954         * lib/javacomp.c: Likewise.
67955         * lib/javaexec.c: Likewise.
67956         * lib/javaversion.c: Likewise.
67957         * lib/linebreak.c: Likewise.
67958         * lib/localcharset.c: Likewise.
67959         * lib/lock.c: Likewise.
67960         * lib/mbchar.c: Likewise.
67961         * lib/mbswidth.c: Likewise.
67962         * lib/mkdtemp.c: Likewise.
67963         * lib/pipe.c: Likewise.
67964         * lib/printf-args.c: Likewise.
67965         * lib/printf-parse.c: Likewise.
67966         * lib/progname.c: Likewise.
67967         * lib/progreloc.c: Likewise.
67968         * lib/readlink.c: Likewise.
67969         * lib/sh-quote.c: Likewise.
67970         * lib/stpcpy.c: Likewise.
67971         * lib/stpncpy.c: Likewise.
67972         * lib/strcasecmp.c: Likewise.
67973         * lib/strcasestr.c: Likewise.
67974         * lib/strcspn.c: Likewise.
67975         * lib/striconv.c: Likewise.
67976         * lib/strncasecmp.c: Likewise.
67977         * lib/strnlen1.c: Likewise.
67978         * lib/strstr.c: Likewise.
67979         * lib/strtok_r.c: Likewise.
67980         * lib/tls.c: Likewise.
67981         * lib/tmpdir.c: Likewise.
67982         * lib/unicodeio.c: Likewise.
67983         * lib/unsetenv.c: Likewise.
67984         * lib/vasnprintf.c: Likewise.
67985         * lib/vasprintf.c: Likewise.
67986         * lib/wait-process.c: Likewise.
67987         * lib/xallocsa.c: Likewise.
67988         * lib/xsetenv.c: Likewise.
67989         * lib/xstriconv.c: Likewise.
67990
67991 2006-09-13  Simon Josefsson  <jas@extundo.com>
67992
67993         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
67994         that internally, suggested by Ralf Wildenhues
67995         <Ralf.Wildenhues@gmx.de>.
67996
67997 2006-09-13  Simon Josefsson  <jas@extundo.com>
67998
67999         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
68000         @LIBOBJS@.
68001         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
68002
68003 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
68004
68005         * lib/_fpending.c: Include <config.h> unconditionally, since we no
68006         longer worry about uses that don't define HAVE_CONFIG_H.
68007         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
68008         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
68009         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
68010         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
68011         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
68012         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
68013         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
68014         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
68015         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
68016         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
68017         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
68018         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
68019         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
68020         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
68021         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
68022         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
68023         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
68024         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
68025         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
68026         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
68027         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
68028         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
68029         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
68030         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
68031         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
68032         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
68033         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
68034         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
68035         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
68036         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
68037         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
68038         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
68039         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
68040         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
68041         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
68042         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
68043         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
68044         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
68045         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
68046         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
68047         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
68048         Likewise.
68049
68050 2006-09-13  Eric Blake  <ebb9@byu.net>
68051
68052         * lib/getopt.c: Fix typo in last commit.
68053
68054 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
68055
68056         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
68057         dgettext.
68058
68059 2006-09-12  Jim Meyering  <jim@meyering.net>
68060
68061         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
68062         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
68063         Reported by Nelson H. F. Beebe.
68064
68065 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
68066
68067         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
68068         program_invocation_name and program_invocation_short_name are
68069         initialized.
68070         * lib/argp-namefrob.h: Move declarations of program_invocation_name
68071         and program_invocation_short_name to argp.h, so they are visible
68072         to user programs.
68073         * lib/argp.h: Likewise
68074
68075 2006-09-10  Bruno Haible  <bruno@clisp.org>
68076
68077         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
68078         m4/inttypes_h.m4, m4/uintmax_t.m4.
68079
68080 2006-09-10  Bruno Haible  <bruno@clisp.org>
68081
68082         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
68083         gl_AC_TYPE_UINTMAX_T.
68084
68085 2006-09-10  Bruno Haible  <bruno@clisp.org>
68086
68087         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
68088
68089 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
68090
68091         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
68092         convention.  Text proposed by Bruno Haible.
68093         (struct argp_option): Document the use of N_() wrappers.
68094
68095         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
68096         '\v', and translate the two parts separately, instead of feeding
68097         the whole string to gettext.  This allows to exclude
68098         '\v' from the strings visible to the translator by writing doc
68099         strings as N_("..") "\v" N_("..").
68100
68101 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
68102
68103         * config/srclist.txt: Undo latest change; the bug was fixed.
68104
68105 2006-09-09  Bruno Haible  <bruno@clisp.org>
68106
68107         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
68108         assignments if building a library without libtool.
68109         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
68110         in func_emit_lib_Makefile_am.
68111         (func_import): When building a static library libfoo.a, arrange to
68112         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
68113         (func_create_testdir): Likewise.
68114         * modules/gc (configure.ac, Makefile.am): If building statically,
68115         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
68116         * modules/iconvme (configure.ac, Makefile.am): Likewise.
68117         * modules/striconv (configure.ac, Makefile.am): Likewise.
68118         Based on a suggestion by Ralf Wildenhues.
68119
68120 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
68121
68122         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
68123         Check for unistd.h too, since Autoconf doesn't assume POSIX.
68124         Also:
68125
68126         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
68127         Add year_2050_test to catch glibc bug 2821
68128         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
68129
68130         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
68131         Prefer #ifdef to #if.
68132
68133         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
68134         Return from 'main' instead of calling 'exit'.
68135
68136 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
68137
68138         * lib/mktime.c (guess_time_tm): Fix bug where mktime
68139         returned the maximum time_t value rather than (time_t) -1.
68140         Problem originally reported by William Bardwell
68141         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
68142
68143         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
68144         Moved to here ...
68145         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
68146         ... from here.
68147
68148 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
68149
68150         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
68151         2821 is fixed.
68152
68153 2006-09-08  Jim Meyering  <jim@meyering.net>
68154
68155         Don't make generated files read-only.  That would bother too many
68156         people.  However, do retain the ability to work when targets are
68157         read-only: remove the destination and temporary files before writing
68158         them (when generated via sed or echo), or by using the -f option for
68159         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
68160         * modules/alloca-opt, modules/argz, modules/arpa_inet:
68161         * modules/byteswap, modules/configmake, modules/fcntl:
68162         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
68163         * modules/localcharset, modules/netinet_in, modules/poll:
68164         * modules/stdbool, modules/stdint, modules/sys_select:
68165         * modules/sys_socket, modules/sys_stat, modules/sysexits:
68166
68167 2006-09-08  Jim Meyering  <jim@meyering.net>
68168
68169         Avoid new build failure on FreeBSD 6.0.
68170         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
68171         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
68172         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
68173
68174 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68175
68176         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
68177
68178 2006-09-07  Jim Meyering  <jim@meyering.net>
68179
68180         Fix global typo in last change: use chmod u-w, not chmod u-x.
68181         Spotted by Paul Eggert and Bruce Korb.
68182         * modules/alloca-opt, modules/argz, modules/arpa_inet:
68183         * modules/byteswap, modules/configmake, modules/fcntl:
68184         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
68185         * modules/localcharset, modules/netinet_in, modules/poll:
68186         * modules/stdbool, modules/stdint, modules/sys_select:
68187         * modules/sys_socket, modules/sys_stat, modules/sysexits:
68188
68189 2006-09-06  Jim Meyering  <jim@meyering.net>
68190
68191         Make generated files be read-only.
68192         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
68193         Ensure that each generated file is now read-only.
68194         * modules/argz: Likewise.
68195         * modules/arpa_inet: Likewise.
68196         * modules/byteswap: Likewise.
68197         * modules/configmake: Likewise.
68198         * modules/fcntl: Likewise.
68199         * modules/fnmatch: Likewise.
68200         * modules/getopt: Likewise.
68201         * modules/glob: Likewise.
68202         * modules/inttypes: Likewise.
68203         * modules/netinet_in: Likewise.
68204         * modules/poll: Likewise.
68205         * modules/stdbool: Likewise.
68206         * modules/stdint: Likewise.
68207         * modules/sys_select: Likewise.
68208         * modules/sys_socket: Likewise.
68209         * modules/sys_stat: Likewise.
68210         * modules/sysexits: Likewise.
68211         * modules/localcharset: Same as above, but continue using temporary
68212         file named "t-$@" (why different?) rather than the "$@-t" used
68213         everywhere else.
68214
68215         * modules/sysexits (Makefile.am): Replace literal occurrences
68216         of "sysexit.h" more readable, and more consistent, "$@".
68217
68218 2006-09-06  Bruno Haible  <bruno@clisp.org>
68219
68220         * modules/striconv: New file.
68221         * modules/xstriconv: New file.
68222         * MODULES.html.sh (Internationalization functions): Add striconv,
68223         xstriconv.
68224
68225 2006-09-06  Bruno Haible  <bruno@clisp.org>
68226
68227         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
68228         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
68229         not using libtool correctly.
68230
68231 2006-09-06  Bruno Haible  <bruno@clisp.org>
68232
68233         * lib/striconv.h: New file.
68234         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
68235         iconvstring.c.
68236         * lib/xstriconv.h: New file.
68237         * lib/xstriconv.c: New file.
68238
68239 2006-09-06  Bruno Haible  <bruno@clisp.org>
68240
68241         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
68242         lib_..._LDFLAGS.
68243
68244 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68245
68246         * lib/argz_.h: Sync from Libtool.
68247
68248         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
68249                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
68250
68251         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
68252
68253 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
68254
68255         * modules/trim: New file.
68256
68257 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
68258
68259         * lib/trim.h: New file.
68260         * lib/trim.c: New file.
68261
68262 2006-09-05  Bruno Haible  <bruno@clisp.org>
68263
68264         * MODULES.html.sh (String handling): Add trim.
68265
68266 2006-09-04  Karl Berry  <karl@gnu.org>
68267
68268         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
68269         until next release.
68270
68271 2006-09-03  Bruno Haible  <bruno@clisp.org>
68272
68273         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
68274         correctly.
68275
68276 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
68277
68278         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
68279         not gl_GETLOADAVG.  Omit unneeded semicolons.
68280         Problems reported by Ralf Wildenhues in
68281         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
68282         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
68283         at the end, which is the usual gnulib style.
68284
68285         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
68286         of doing all the work ourselves.
68287         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
68288         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
68289
68290 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
68291
68292         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
68293         Problem reported by Ralf Wildenhues in
68294         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
68295
68296         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
68297         HAVE_STRUCT_STATFS_F_FSTYPENAME.
68298
68299 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
68300
68301         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
68302         yesterday's patch by changing test -n to test -z.
68303
68304 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
68305
68306         * modules/getloadavg (Files): Add m4/getloadavg.m4.
68307         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
68308         the former is now obsolescent.
68309
68310         * modules/chdir-long (Depends-on): Add fcntl.
68311
68312 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
68313
68314         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
68315         obsolescent, and programs should use gnulib instead.
68316         * m4/getloadavg.m4: New file, with contents taken from Autoconf
68317         but with prefixes changed.
68318
68319 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
68320
68321         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
68322         or stdbool.h, because they might not exist while configuring.
68323
68324         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
68325         Don't include unistd.h or limits.h; not needed, since chdir-long.h
68326         does that for us.
68327         (O_DIRECTORY): Remove.
68328
68329 2006-08-31  Eric Blake  <ebb9@byu.net>
68330
68331         * gnulib-tool: Don't let emacs change spaces to TAB.
68332
68333 2006-08-31  Bruno Haible  <bruno@clisp.org>
68334
68335         * gnulib-tool: When calling func_import more than once, do it in a
68336         subshell.
68337         Reported by Eric Blake <ebb9@byu.net>.
68338
68339 2006-08-31  Bruno Haible  <bruno@clisp.org>
68340
68341         * gnulib-tool (nl): Remove variable.
68342         (sed_transform_lib_file): Use more robust test for config-h module.
68343         (func_import): Fix typo in 2006-08-25 patch.
68344
68345 2006-08-31  Bruno Haible  <bruno@clisp.org>
68346
68347         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
68348         specified, augment Makefile.am variables instead of assigning them.
68349
68350 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
68351
68352         Work around a bug in both the Linux and SunOS 64-bit kernels:
68353         nanosleep mishandles sleeps for longer than 2**31 seconds.
68354         Problem reported by Frank v Waveren in
68355         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
68356         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
68357         Check for nanosleep bug.
68358         (LIB_NANOSLEEP): Append clock_gettime library if needed.
68359
68360 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
68361
68362         Work around a bug in both the Linux and SunOS 64-bit kernels:
68363         nanosleep mishandles sleeps for longer than 2**31 seconds.
68364         Problem reported by Frank v Waveren in
68365         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
68366         * lib/nanosleep.c (BILLION): New constant.
68367         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
68368         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
68369         implementation.
68370
68371 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
68372
68373         * modules/nanosleep (Depends-on): Add gettime.
68374
68375 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
68376         and Simon Josefsson  <jas@extundo.com>
68377         and Oskar Liljeblad  <oskar@osk.mine.nu>
68378
68379         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
68380         * gnulib-tool (func_import): New license type 'unmodifiable license
68381         text'.
68382         * modules/fdl: Use it.  Longer description.
68383         * module/gpl, module/lgpl: New files.
68384
68385 2006-08-30  Jim Meyering  <jim@meyering.net>
68386
68387         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
68388         shadowing the parameter.
68389
68390 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68391
68392         Sync from Libtool:
68393
68394         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68395
68396         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
68397         sharing with gnulib.  Report by Eric Blake.
68398
68399 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
68400
68401         * modules/isapipe: New file.
68402         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
68403
68404 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
68405
68406         * modules/configmake (Makefile.am): Add a comment, and omit
68407         the CONFIGMAKE_ prefix from generated macro names.  Suggested
68408         by Bruno Haible.
68409
68410 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
68411
68412         * m4/isapipe.m4: New file.
68413
68414 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
68415
68416         * lib/isapipe.c, lib/isapipe.h: New files.
68417
68418 2006-08-29  Jim Meyering  <jim@meyering.net>
68419
68420         * modules/configmake (Makefile.am): Make configmake.h depend on
68421         Makefile.  Otherwise, a stale configmake.h could hang around.
68422
68423 2006-08-29  Eric Blake  <ebb9@byu.net>
68424
68425         * lib/error.c (error_at_line, print_errno_message): Match libc, after
68426         resolution of upstream bug 3044.
68427
68428 2006-08-29  Bruno Haible  <bruno@clisp.org>
68429
68430         * modules/localcharset (Depends-on): Add configmake.
68431         (Makefile.am): Remove setting of LIBDIR through DEFS.
68432
68433 2006-08-29  Bruno Haible  <bruno@clisp.org>
68434
68435         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
68436         defined.
68437
68438 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
68439
68440         * modules/fcntl: New file.
68441         * modules/chdir-safer (Depends-on): Add fcntl.
68442         * modules/fts: Likewise.
68443         * modules/mkdir-p: Likewise.
68444
68445         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
68446         This undoes the most recent change, since we're now addressing the
68447         problem in a different way.
68448
68449         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
68450         into output, since the output might be called Makefile.am even
68451         if $makefile_name is something different.
68452         (func_import): Use $makefile_am rather than
68453         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
68454         empty.
68455
68456         * modules/inttypes (Files): Add m4/inttypes-h.m4.
68457
68458 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
68459
68460         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
68461         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
68462         recent change to stdint.m4, since we're now addressing the problem in a
68463         different way.
68464
68465 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
68466
68467         * m4/fcntl_h.m4: New file.
68468
68469 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
68470
68471         * lib/fcntl_.h: New file.
68472         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
68473         the fcntl module.
68474         * lib/dirchownmod.c: Likewise.
68475         * lib/fts.c: Likewise.
68476
68477         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
68478         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
68479         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
68480         just before including <inttypes.h>, to avoid circular inclusion.
68481
68482 2006-08-28  Jim Meyering  <jim@meyering.net>
68483
68484         * doc/visibility.texi: Actually read and correct the grammar of the
68485         sentence affected by yesterday's change.
68486
68487 2006-08-28  Eric Blake  <ebb9@byu.net>
68488
68489         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
68490         needs wrapper.
68491
68492 2006-08-28  Eric Blake  <ebb9@byu.net>
68493
68494         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
68495
68496 2006-08-28  Eric Blake  <ebb9@byu.net>
68497
68498         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
68499
68500 2006-08-28  Bruno Haible  <bruno@clisp.org>
68501
68502         * modules/c-strstr: New file, from GNU gettext.
68503         * MODULES.html.sh (String handling): Add c-strstr.
68504
68505 2006-08-28  Bruno Haible  <bruno@clisp.org>
68506
68507         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
68508         macros.
68509         Reported by Eric Blake.
68510
68511 2006-08-28  Bruno Haible  <bruno@clisp.org>
68512
68513         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
68514         (VASNPRINTF): Return a string of length > INT_MAX without failing.
68515         * lib/vasprintf.c: Include errno.h, limits.h.
68516         (EOVERFLOW): New fallback definition.
68517         (vasprintf): Test here whether the string length is > INT_MAX.
68518         * lib/vsnprintf.c: Include errno.h, limits.h.
68519         (EOVERFLOW): New fallback definition.
68520         (vsnprintf): Fix bug when generated string was too long for the buffer.
68521         Test here whether the string length is > INT_MAX.
68522
68523 2006-08-28  Bruno Haible  <bruno@clisp.org>
68524
68525         * lib/inttypes_.h (SCNX*): Remove definitions.
68526         Reported by Eric Blake.
68527
68528 2006-08-28  Bruno Haible  <bruno@clisp.org>
68529
68530         * lib/c-strstr.h: New file, from GNU gettext.
68531         * lib/c-strstr.c: New file, from GNU gettext.
68532
68533 2006-08-28  Bruno Haible  <bruno@clisp.org>
68534
68535         * gnulib-tool: Reorder some statements.
68536
68537 2006-08-28  Bruno Haible  <bruno@clisp.org>
68538
68539         * gnulib-tool: New option --makefile-name.
68540         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
68541         $makefile_name.
68542         (func_import): Write $makefile_name to the cache file, and read it from
68543         there unless explicitly specified. Use $makefile_name as file name
68544         instead of Makefile.am. Adjust the recommendations accordingly.
68545
68546 2006-08-28  Bruno Haible  <bruno@clisp.org>
68547
68548         * gnulib-tool (func_verify_module): Check against misapplying patch.
68549
68550 2006-08-28  Bruno Haible  <bruno@clisp.org>
68551
68552         * gnulib-tool (func_relativize, func_relconcat): New functions.
68553         Give an error if --local-dir is given with --update.
68554         Remove trailing slashes from $local_gnulib_dir.
68555         (func_import): Store the relativized $local_gnulib_dir in
68556         gnulib-cache.m4, and read it from there if not specified explicitly.
68557
68558 2006-08-28  Bruno Haible  <bruno@clisp.org>
68559
68560         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
68561         is the current directory. Respect also $local_gnulib_dir.
68562
68563 2006-08-28  Bruno Haible  <bruno@clisp.org>
68564             Simon Josefsson  <jas@extundo.com>
68565
68566         BeOS portability.
68567         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
68568
68569 2006-08-27  Jim Meyering  <jim@meyering.net>
68570
68571         * doc/visibility.texi: Remove duplicate word: "pointer".
68572
68573 2006-08-26  Bruno Haible  <bruno@clisp.org>
68574
68575         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
68576         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
68577         (Makefile.am): Create inttypes.h from inttypes_.h.
68578         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
68579
68580         * modules/imaxabs: New file.
68581
68582         * modules/imaxdiv: New file.
68583
68584 2006-08-26  Bruno Haible  <bruno@clisp.org>
68585
68586         * m4/inttypes.m4: New file.
68587         * m4/_inttypes_h.m4: Remove file.
68588         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
68589         PRI_MACROS_BROKEN.
68590         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
68591
68592         * m4/imaxabs.m4: New file.
68593
68594         * m4/imaxdiv.m4: New file.
68595
68596 2006-08-26  Bruno Haible  <bruno@clisp.org>
68597
68598         * lib/inttypes_.h: New file.
68599         * lib/inttypes.h: Remove file.
68600         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
68601
68602         * lib/imaxabs.c: New file.
68603
68604         * lib/imaxdiv.c: New file.
68605
68606 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
68607
68608         New config-h module, so that "make" output needn't be cluttered
68609         by -DHAVE_CONFIG_H.
68610         * MODULES.html.sh (Support for building libraries and executables):
68611         Add config-h.
68612         * modules/config-h: New file.
68613         * gnulib-tool (nl, sed_transform_lib_file): New vars.
68614         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
68615         the config-h module is used.
68616
68617         New configmake module, so that "make" output needn't be cluttered
68618         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
68619         * MODULES.html.sh (Support for building libraries and executables):
68620         Add configmake.
68621         * modules/configmake: New file.
68622
68623 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
68624
68625         * m4/config-h.m4: New file.
68626
68627 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
68628
68629         * config/srclist.txt: Add elisp-comp.
68630
68631 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
68632
68633         * MODULES.html.sh (Support for building libraries and executables):
68634         Add elisp-comp.
68635         * build-aux/elisp-comp: New file.
68636         * modules/elisp-comp: New file.
68637
68638 2006-08-24  Bruno Haible  <bruno@clisp.org>
68639
68640         * gnulib-tool (func_create_testdir): Use non-default values of
68641         sourcebase and m4base.
68642
68643 2006-08-24  Bruno Haible  <bruno@clisp.org>
68644
68645         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
68646         HTML structure.
68647
68648 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
68649
68650         * modules/openat (Depends-on): Add lchown.
68651
68652 2006-08-23  Bruno Haible  <bruno@clisp.org>
68653
68654         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
68655         of gl_LOCK_EARLY instead of gl_LOCK.
68656
68657 2006-08-23  Bruno Haible  <bruno@clisp.org>
68658
68659         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
68660         on OSF/1 to no.
68661         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
68662
68663 2006-08-23  Bruno Haible  <bruno@clisp.org>
68664
68665         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
68666         as unusable.
68667
68668         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
68669         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
68670         (gl_LOCK): New macro.
68671
68672 2006-08-22  Simon Josefsson  <jas@extundo.com>
68673
68674         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
68675         to md5 module.
68676
68677 2006-08-22  Simon Josefsson  <jas@extundo.com>
68678
68679         * MODULES.html.sh: Add "Support for maintaining and release
68680         projects".
68681
68682         * build-aux/gnupload: New file, from coreutils.
68683
68684 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
68685
68686         Avoid the need for AC_LIBSOURCES in m4 macros.
68687         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
68688         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
68689         * modules/check-version (EXTRA_DIST): Add check-version.h.
68690         * modules/crc (EXTRA_DIST): Add crc.h.
68691         * modules/des (EXTRA_DIST): Add des.h.
68692         * modules/gc (EXTRA_DIST): Add gc.h.
68693         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
68694         * modules/getline (EXTRA_DIST): Add getline.h.
68695         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
68696         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
68697         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
68698         * modules/md2 (EXTRA_DIST): Add md2.h.
68699         * modules/md4 (EXTRA_DIST): Add md4.h.
68700         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
68701         * modules/read-file (EXTRA_DIST): Add read-file.h.
68702         * modules/readline (EXTRA_DIST): Add readline.h.
68703         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
68704         rijndael-api-fst.h.
68705
68706 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
68707
68708         * m4/rijndael.m4 (gl_ARCFOUR):
68709         * m4/arctwo.m4 (gl_ARCTWO):
68710         * m4/check-version.m4 (gl_CHECK_VERSION):
68711         * m4/crc.m4 (gl_CRC):
68712         * m4/des.m4 (gl_DES):
68713         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
68714         * m4/gc.m4 (gl_GC):
68715         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
68716         * m4/getline.m4 (gl_FUNC_GETLINE):
68717         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
68718         * m4/hmac-md5.m4 (gl_HMAC_MD5):
68719         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
68720         * m4/md2.m4 (gl_MD2):
68721         * m4/md4.m4 (gl_MD4):
68722         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
68723         * m4/read-file.m4 (gl_FUNC_READ_FILE):
68724         * m4/readline.m4 (gl_FUNC_READLINE):
68725         * m4/rijndael.m4 (gl_RIJNDAEL):
68726         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
68727         to get the necessary .h files and whatnot.
68728
68729 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
68730
68731         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
68732         gnulib rather than the other way around.
68733         * config/srclistvars.sh (COREUTILS): Remove.
68734
68735 2006-08-22  Jim Meyering  <jim@meyering.net>
68736
68737         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
68738
68739         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
68740
68741 2006-08-22  Eric Blake  <ebb9@byu.net>
68742
68743         * modules/regexprops-generic: New file.
68744         * MODULES.html.sh (Support for building documentation): List it.
68745
68746 2006-08-22  Eric Blake  <ebb9@byu.net>
68747
68748         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
68749         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
68750         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
68751         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
68752
68753 2006-08-22  Bruno Haible  <bruno@clisp.org>
68754
68755         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
68756         and lib_LTLIBRARIES like the other lib_* variables.
68757
68758 2006-08-22  Bruno Haible  <bruno@clisp.org>
68759
68760         * build-aux/x-to-1.in: New file, from GNU gettext.
68761
68762 2006-08-22  Bruno Haible  <bruno@clisp.org>
68763
68764         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
68765         <utmpx.h> exists.
68766
68767 2006-08-22  Bruno Haible  <bruno@clisp.org>
68768
68769         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
68770         <utmpx.h> exists.
68771
68772 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
68773
68774         BeOS portability.
68775         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
68776         exist.
68777         Problem reported by Bruno Haible.
68778
68779 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
68780
68781         Avoid the need for AC_LIBSOURCES in m4 macros.
68782         * modules/acl (EXTRA_DIST): Add acl.h.
68783         * modules/argmatch (Files): Add m4/argmatch.m4.
68784         (configure.ac): Add gl_ARGMATCH.
68785         (EXTRA_DIST): Renamed from lib_SOURCES, for
68786         consistency with the other modules.  Remove argmatch.c.
68787         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
68788         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
68789         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
68790         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
68791         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
68792         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
68793         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
68794         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
68795         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
68796         * modules/closeout (EXTRA_DIST): Add closeout.h.
68797         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
68798         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
68799         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
68800         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
68801         dirname.h; remove basename.c and stripslash.c.
68802         * modules/exclude (EXTRA_DIST): Add exclude.h.
68803         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
68804         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
68805         * modules/file-type (EXTRA_DIST): Add file-type.h.
68806         * modules/filemode (EXTRA_DIST): Add filemode.h.
68807         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
68808         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
68809         * modules/fpending (EXTRA_DIST): Add __fpending.h.
68810         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
68811         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
68812         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
68813         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
68814         * modules/getdate (EXTRA_DIST): Add getdate.c.
68815         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
68816         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
68817         * modules/getpass (EXTRA_DIST): Add getpass.h.
68818         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
68819         * modules/group-member (EXTRA_DIST): Add group-member.h.
68820         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
68821         * modules/hash (EXTRA_DIST): Add hash.h.
68822         * modules/human (EXTRA_DIST): Add human.h.
68823         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
68824         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
68825         * modules/lchown (EXTRA_DIST): Add lchown.h.
68826         * modules/long-options (EXTRA_DIST): Add long-options.h.
68827         * modules/lstat (EXTRA_DIST): Add lstat.h.
68828         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
68829         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
68830         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
68831         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
68832         * modules/memxor (EXTRA_DIST): Add memxor.h.
68833         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
68834         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
68835         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
68836         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
68837         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
68838         * modules/physmem (EXTRA_DIST): Add physmem.h.
68839         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
68840         * modules/posixver (EXTRA_DIST): Add posixver.h.
68841         * modules/quote (EXTRA_DIST): Add quote.h.
68842         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
68843         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
68844         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
68845         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
68846         regex_internal.h regexec.c.
68847         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
68848         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
68849         * modules/same (EXTRA_DIST): Add same.h.
68850         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
68851         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
68852         * modules/savedir (EXTRA_DIST): Add savedir.h.
68853         * modules/sha1 (EXTRA_DIST): Add sha1.h.
68854         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
68855         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
68856         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
68857         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
68858         * modules/strdup (EXTRA_DIST): Add strdup.h.
68859         * modules/strftime (EXTRA_DIST): Add strftime.h.
68860         * modules/strndup (EXTRA_DIST): Add strndup.h.
68861         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
68862         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
68863         * modules/time_r (EXTRA_DIST): Add time_r.h.
68864         * modules/timespec (EXTRA_DIST): Add timespec.h.
68865         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
68866         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
68867         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
68868         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
68869         * modules/userspec (EXTRA_DIST): Add userspec.h.
68870         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
68871         * modules/utimens (EXTRA_DIST): Add utimens.h.
68872         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
68873         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
68874         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
68875         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
68876         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
68877         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
68878         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
68879         * modules/yesno (EXTRA_DIST): Add yesno.h.
68880
68881 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
68882
68883         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
68884
68885         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
68886         * m4/dev-ino.m4, same-inode.m4: Remove.
68887
68888         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
68889         * m4/acl.m4 (AC_FUNC_ACL):
68890         * m4/backupfile.m4 (gl_BACKUPFILE):
68891         * m4/c-strtod.m4 (gl_C99_STRTOLD):
68892         * m4/canon-host.m4 (gl_CANON_HOST):
68893         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
68894         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
68895         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
68896         * m4/cloexec.m4 (gl_CLOEXEC):
68897         * m4/close-stream.m4 (gl_CLOSE_STREAM):
68898         * m4/closeout.m4 (gl_CLOSEOUT):
68899         * m4/dirfd.m4 (gl_FUNC_DIRFD):
68900         * m4/dirname.m4 (gl_DIRNAME):
68901         * m4/exclude.m4 (gl_EXCLUDE):
68902         * m4/exitfail.m4 (gl_EXITFAIL):
68903         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
68904         * m4/file-type.m4 (gl_FILE_TYPE):
68905         * m4/filemode.m4 (gl_FILEMODE):
68906         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
68907         * m4/fpending.m4 (gl_FUNC_FPENDING):
68908         * m4/fprintftime.m4 (gl_FPRINTFTIME):
68909         * m4/fts.m4 (gl_FUNC_FTS):
68910         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
68911         * m4/getdate.m4 (gl_GETDATE):
68912         * m4/gethrxtime.m4 (gl_GETHRXTIME):
68913         * m4/getpagesize.m4 (gl_GETPAGESIZE):
68914         * m4/getpass.m4 (gl_FUNC_GETPASS):
68915         * m4/gettime.m4 (gl_GETTIME):
68916         * m4/getugroups.m4 (gl_GETUGROUPS):
68917         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
68918         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
68919         * m4/hard-locale.m4 (gl_HARD_LOCALE):
68920         * m4/hash.m4 (gl_HASH):
68921         * m4/idcache.m4 (gl_IDCACHE):
68922         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
68923         * m4/lchown.m4 (gl_FUNC_LCHOWN):
68924         * m4/long-options.m4 (gl_LONG_OPTIONS):
68925         * m4/lstat.m4 (gl_FUNC_LSTAT):
68926         * m4/md5.m4 (gl_MD5):
68927         * m4/memcasecmp.m4 (gl_MEMCASECMP):
68928         * m4/memcoll.m4 (gl_MEMCOLL):
68929         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
68930         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
68931         * m4/memxor.m4 (gl_MEMXOR):
68932         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
68933         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
68934         * m4/modechange.m4 (gl_MODECHANGE):
68935         * m4/mountlist.m4 (gl_MOUNTLIST):
68936         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
68937         * m4/openat.m4 (gl_FUNC_OPENAT):
68938         * m4/pathmax.m4 (gl_PATHMAX):
68939         * m4/physmem.m4 (gl_PHYSMEM):
68940         * m4/posixtm.m4 (gl_POSIXTM):
68941         * m4/posixver.m4 (gl_POSIXVER):
68942         * m4/quote.m4 (gl_QUOTE):
68943         * m4/quotearg.m4 (gl_QUOTEARG):
68944         * m4/readtokens.m4 (gl_READTOKENS):
68945         * m4/readutmp.m4 (gl_READUTMP):
68946         * m4/regex.m4 (gl_REGEX):
68947         * m4/safe-read.m4 (gl_SAFE_READ):
68948         * m4/safe-write.m4 (gl_SAFE_WRITE):
68949         * m4/same.m4 (gl_SAME):
68950         * m4/save-cwd.m4 (gl_SAVE_CWD):
68951         * m4/savedir.m4 (gl_SAVEDIR):
68952         * m4/settime.m4 (gl_SETTIME):
68953         * m4/sha1.m4 (gl_SHA1):
68954         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
68955         * m4/stat-macros.m4 (gl_STAT_MACROS):
68956         * m4/stat-time.m4 (gl_STAT_TIME):
68957         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
68958         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
68959         * m4/strdup.m4 (gl_FUNC_STRDUP):
68960         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
68961         * m4/strndup.m4 (gl_FUNC_STRNDUP):
68962         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
68963         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
68964         * m4/time_r.m4 (gl_TIME_R):
68965         * m4/timespec.m4 (gl_TIMESPEC):
68966         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
68967         * m4/unlinkdir.m4 (gl_UNLINKDIR):
68968         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
68969         * m4/userspec.m4 (gl_USERSPEC):
68970         * m4/utimecmp.m4 (gl_UTIMECMP):
68971         * m4/utimens.m4 (gl_UTIMENS):
68972         * m4/xalloc.m4 (gl_XALLOC):
68973         * m4/xgetcwd.m4 (gl_XGETCWD):
68974         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
68975         * m4/xreadlink.m4 (gl_XREADLINK):
68976         * m4/xstrtod.m4 (gl_XSTRTOD):
68977         * m4/yesno.m4 (gl_YESNO):
68978         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
68979         to get the necessary .h files and whatnot.
68980
68981 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
68982             Bruno Haible  <bruno@clisp.org>
68983
68984         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
68985         /bin/sh understanding of '!' conditional negation.
68986
68987 2006-08-21  Jim Meyering  <jim@meyering.net>
68988
68989         * modules/openat (Depends-on): Really alphabetize.
68990
68991         * modules/acl (Depends-on): Add error and quote.
68992
68993         * check-module (find_included_lib_files): Add at-func.c to the
68994         ok-to-include-more-than-once white list.
68995
68996         * modules/openat (Depends-on): Add lstat.  Alphabetize.
68997
68998 2006-08-21  Bruno Haible  <bruno@clisp.org>
68999
69000         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
69001         Emit a pkgdata_DATA variable only if some snippets add contents to it.
69002         Reported by Martin Lambers <marlam@marlam.de>.
69003
69004 2006-08-21  Bruno Haible  <bruno@clisp.org>
69005
69006         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
69007         specify an installation location, don't emit a noinst_LIBRARIES or
69008         noinst_LTLIBRARIES assignment.
69009
69010 2006-08-21  Bruno Haible  <bruno@clisp.org>
69011
69012         BeOS portability.
69013         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
69014         BeOS has mbrtowc() but no <wctype.h>.
69015
69016 2006-08-21  Bruno Haible  <bruno@clisp.org>
69017
69018         BeOS portability.
69019         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
69020         exist.
69021
69022 2006-08-21  Bruno Haible  <bruno@clisp.org>
69023
69024         BeOS portability.
69025         * lib/mbchar.h: Include <wctype.h> only if it exists.
69026
69027 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
69028
69029         Remove files that are no longer needed by their respective modules.
69030         * m4/obstack.m4: Remove.
69031         * m4/strerror_r.m4: Remove.
69032         * m4/uint32_t.m4: Remove.
69033         * m4/uintptr_t.m4: Remove.
69034         * m4/ullong_max.m4: Remove.
69035         * m4/xstrtoimax.m4: Remove.
69036         * m4/xstrtoumax.m4: Remove.
69037
69038         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
69039         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
69040         dependencies now capture this.
69041
69042         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
69043         Do not use AC_LIBSOURCES, since gnulib modules now do this.
69044         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
69045         * m4/human.m4 (gl_HUMAN): Likewise.
69046         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
69047         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
69048
69049         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
69050
69051         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
69052         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
69053         stdint.
69054         * m4/human.m4 (gl_HUMAN): Likewise.
69055         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
69056         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
69057         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
69058         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
69059         * m4/xstrtol (gl_XSTRTOL): Likewise.
69060
69061         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
69062         AC_TYPE_LONG_LONG_INT.
69063         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
69064         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
69065         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
69066         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
69067
69068         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
69069         on stdbool.
69070
69071         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
69072         (gl_PREREQ_XSTRTOUL): Remove.
69073
69074         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
69075
69076         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
69077         mode.
69078
69079 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
69080
69081         Add and change modules to make it easier for coreutils to use
69082         gnulib-tool.
69083         * modules/backupfile (Files): Remove m4/d-ino.m4.
69084         (Depends-on): Add d-ino.
69085         * modules/cycle-check (Depends-on): Add stdint.
69086         (lib_SOURCES): Add cycle-check.h.
69087         * modules/d-ino: New module.
69088         * modules/d-type: New module.
69089         * modules/error (Files): Remove m4/strerror_r.m4.
69090         * modules/filemode (Files): Add m4/st_dm_mode.m4.
69091         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
69092         m4/inttypes_h.m4, m4/uintmax_t.m4.
69093         (Depends-on): Add stdint.
69094         (lib_SOURCES): Add fsusage.h.
69095         * modules/getcwd (Files): Remove d-ino.m4.
69096         (Depends-on): Add d-ino.
69097         * modules/getndelim2 (Depends-on): Add stdint.
69098         * modules/glob (Files): Remove m4/d-type.m4.
69099         (Depends-on): Add d-type.
69100         * modules/host-os: New module.
69101         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
69102         m4/inttypes_h.m4, m4/uintmax_t.m4.
69103         * Depends-on: Add stdint.
69104         (lib_SOURCES): Add human.h.
69105         * modules/inttostr (Files): Remove m4/intmax_t.m4,
69106         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
69107         m4/uintmax_t.m4, m4/ulonglong.m4.
69108         (Depends-on): Add stdint.
69109         (EXTRA_DIST): Add inttostr.h.
69110         * modules/lchmod: New module.
69111         * modules/link-follow: New module.
69112         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
69113         (Depends-on): Add lchmod.
69114         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
69115         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
69116         (Depends-on): Add stdint.
69117         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
69118         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
69119         (Depends-on): Add stdint.
69120         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
69121         * modules/perl: New module.
69122         * modules/regex (Depends-on): Add stdint.
69123         * modules/rmdir-errno: New module.
69124         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
69125         m4/intmax_t.m4.
69126         (Depends-on): Add stdint.
69127         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
69128         m4/uintmax_t.m4.
69129         (Depends-on): Add stdint.
69130         * modules/unlink-busy: New module.
69131         * modules/utimecmp (Depends-on): Add stdint.
69132         * modules/uptime: New module.
69133         * modules/winsz-ioctl: New module.
69134         * modules/winsz-termios: New module.
69135         * modules/xnanosleep (Depends-on): Add nanosleep.
69136         * modules/ullong_max: Remove.
69137         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
69138         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
69139         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
69140         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
69141         (Depends-on): Add inttypes.
69142         (lib_SOURCES): Add xstrtol.h.
69143         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
69144         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
69145         * MODULES.html.sh: Move 'assert' into the assert section.
69146         Move 'dummy' into the linking section.
69147         Remove ullong_max.
69148         Add section for compatibility checks for POSIX:2001 functions,
69149         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
69150         winsz-ioctl, and winsz-termios into it.
69151         Add lchmod.
69152         Add top-level Misc section and put host-os, perl, and uptime
69153         into it.
69154
69155 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
69156
69157         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
69158         now assume the stdint module.  Do not include inttypes.h.
69159         * lib/fsusage.h: Likewise.
69160         * lib/getndelim2.c: Likewise.
69161         * lib/human.h: Likewise.
69162         * lib/inttostr.h: Likewise.
69163         * lib/obstack.c: Likewise.
69164         * lib/regex_internal.h: Likewise.
69165         * lib/tempname.c: Likewise.
69166         * lib/utimecmp.c: Likewise.
69167         * lib/xstrtol.h: Likewise.
69168
69169         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
69170
69171         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
69172         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
69173         * lib/xtime.h: Likewise.
69174
69175 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
69176
69177         * modules/openat (Files): Add lib/fchmodat.c.
69178         Fixes problem reported by Jay Youngman.
69179
69180 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
69181
69182         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
69183         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
69184
69185 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
69186             Bruno Haible  <bruno@clisp.org>
69187
69188         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
69189         and is a script that invokes bison. Tighten the code. Add comments.
69190
69191 2006-08-18  Jim Meyering  <jim@meyering.net>
69192
69193         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
69194         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
69195         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
69196         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
69197
69198 2006-08-18  Bruno Haible  <bruno@clisp.org>
69199
69200         * modules/bison-i18n: New file.
69201         * MODULES.html.sh (Internationalization functions): Add it.
69202
69203 2006-08-18  Bruno Haible  <bruno@clisp.org>
69204
69205         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
69206         sys/statvfs.h. When getmntinfo was found, check its declaration and
69207         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
69208
69209 2006-08-18  Bruno Haible  <bruno@clisp.org>
69210
69211         * m4/bison-i18n.m4: New file, from bison.
69212
69213 2006-08-18  Bruno Haible  <bruno@clisp.org>
69214
69215         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
69216         (ME_DUMMY): Treat "kernfs" as a dummy.
69217         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
69218
69219 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
69220
69221         Update from coreutils.
69222
69223         2006-08-15  Jim Meyering  <jim@meyering.net>
69224
69225         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
69226
69227         2006-01-17  Jim Meyering  <jim@meyering.net>
69228
69229         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
69230
69231         2006-01-11  Jim Meyering  <jim@meyering.net>
69232
69233         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
69234         Check for the lchmod function.
69235
69236 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
69237
69238         Update from coreutils.
69239
69240         * lib/__fpending.h: Add copyright notice.
69241         * lib/fprintftime.h: Likewise.
69242         * lib/savedir.c: Use (C) in copyright notice.
69243         * lib/savedir.h: Likewise.
69244
69245         2006-08-15  Jim Meyering  <jim@meyering.net>
69246
69247         * lib/at-func.c: New file, with the logic of all emulated at-functions.
69248         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
69249         in support of the EXPECTED_ERRNO macro.
69250         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
69251         definitions.  Instead, define the appropriate symbols and include
69252         "at-func.c".
69253         * lib/mkdirat.c (mkdirat): Likewise.
69254         * lib/fchmodat.c (fchmodat): Likewise.
69255         (ENOSYS): Remove definition.
69256         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
69257         it.  Don't include "unistd--.h" -- it wasn't ever used.
69258
69259         2006-01-17  Jim Meyering  <jim@meyering.net>
69260
69261         Rewrite fts.c not to change the current working directory,
69262         by using openat, fstatat, fdopendir, etc..
69263
69264         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
69265         (HAVE_OPENAT_SUPPORT): Define.
69266         [_LIBC] (fchdir): Don't undef or define; no longer used.
69267         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
69268         Now, this `function' always succeeds, and consumes its file descriptor
69269         parameter -- so callers must not close such FDs.  Update callers.
69270         (diropen_fd, opendirat, cwd_advance_fd): New functions.
69271         (diropen): Add parameter, SP.  Adjust all callers.
69272         Implement using diropen_fd, rather than open.
69273         (fts_open): Initialize new member, fts_cwd_fd.
69274         Remove fts_rft-setting code.
69275         (fts_close): Close fts_cwd_fd, if necessary.
69276         (__opendir2): Define in terms of opendir or opendirat,
69277         depending on whether the FST_NOCHDIR flag is set.
69278         (fts_build): Since fts_safe_changedir consumes its FD, and since
69279         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
69280         and close the dup'd file descriptor upon failure.
69281         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
69282         (fts_safe_changedir): Tweak semantics to reflect that this function
69283         now calls cwd_advance_fd and hence consumes its FD argument.
69284         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
69285         [struct FTS] (fts_rft): Remove now-unused member.
69286         [struct FTS] (fts_cycle.state): Improve comment.
69287
69288         * lib/openat.c (openat_needs_fchdir): New function.
69289         * lib/openat.h (openat_needs_fchdir): Declare it.
69290
69291 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
69292
69293         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
69294         Problem and fix reported by Pádraig Brady in
69295         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
69296
69297 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
69298
69299         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
69300
69301 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
69302
69303         * lib/memcoll.c (memcoll): Optimize for the common case where the
69304         arguments are bytewise equal.
69305
69306 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
69307
69308         * doc/regexprops-generic.texi: Add a copyright notice.
69309
69310 2006-08-15  Bruno Haible  <bruno@clisp.org>
69311
69312         * modules/tmpdir (License): Change to LGPL.
69313
69314 2006-08-15  Bruno Haible  <bruno@clisp.org>
69315
69316         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
69317         module.
69318
69319 2006-08-14  Simon Josefsson  <jas@extundo.com>
69320
69321         * config/srclist.txt: Add gnupload.
69322
69323 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
69324
69325         Change copyright notice from LGPL 2 to GPL 2, since that's the
69326         standard form used in the gnulib repository.
69327         * tests/test-lock.c: Likewise.
69328         * tests/test-stdint.c: Likewise.
69329         * tests/test-tls.c: Likewise.
69330
69331         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
69332         prelude-manager.  User shorter URLs for GNU projects, without '?'.
69333         Add copyright notice.
69334
69335         * check-module: Add copyright notice.  Output a copyright
69336         notice if "--version" is specified.
69337         * modules/COPYING: New file.
69338         * tests/test-getaddrinfo.c: Add copyright notice.
69339         * tests/test-verify.c: Likewise.
69340
69341 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
69342
69343         Change copyright notice from LGPL 2 to GPL 2, since that's the
69344         standard form used in the gnulib repository.
69345         * lib/lock.c: LGPL -> GPL.
69346         * lib/lock.h: Likewise.
69347         * lib/strnlen1.c: Likewise.
69348         * lib/strnlen1.h: Likewise.
69349         * lib/tls.c: Likewise.
69350         * lib/tls.h: Likewise.
69351         * lib/tmpdir.c: Likewise.
69352
69353         * lib/TODO: Remove; this belongs only in coreutils.
69354
69355 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
69356
69357         Add copyright notices to long-enough files that lack them, since
69358         otherwise the files aren't clearly free.  Use the same notice that
69359         getdate.texi already uses.
69360         * doc/alloca-opt.texi: Add copyright notice.
69361         * doc/alloca.texi: Likewise.
69362         * doc/ctime.texi: Likewise.
69363         * doc/functions.texi: Likewise.
69364         * doc/gcd.texi: Likewise.
69365         * doc/gnulib-tool.texi: Likewise.
69366         * doc/inet_ntoa.texi: Likewise.
69367         * doc/visibility.texi: Likewise.
69368
69369         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
69370         * doc/quote.texi: Add copyright notice.
69371
69372         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
69373         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
69374         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
69375         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
69376         is now obsolete, and give a pointer to the Sun list.
69377         Add copyright notice.
69378
69379 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
69380
69381         * config/srclistvars.sh: Add copyright notice.
69382
69383 2006-08-14  Eric Blake  <ebb9@byu.net>
69384
69385         Import the following change from libc:
69386
69387         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
69388
69389         Upstream bug 2997.
69390         * lib/misc/error.c: Add space between program name and message if file
69391         name is missing.
69392
69393 2006-08-12  Karl Berry  <karl@gnu.org>
69394
69395         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
69396         remove, these originate in gnulib now.
69397
69398 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69399
69400         * doc/Makefile (standards.info standards.html standards.dvi):
69401         Also depend on make-stds.texi.
69402
69403 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
69404
69405         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
69406         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
69407
69408         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
69409         in wchar_t.  Problem reported by Eric Blake.
69410
69411         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
69412         LEN is smaller than SIZE.  Suggested by Bruno Haible.
69413         Also, help the compiler to keep LEN in a register.
69414
69415 2006-08-11  Eric Blake  <ebb9@byu.net>
69416
69417         * users.txt: Sort.  Add tar.
69418
69419 2006-08-11  Bruno Haible  <bruno@clisp.org>
69420
69421         * users.txt: New file.
69422
69423 2006-08-11  Bruno Haible  <bruno@clisp.org>
69424
69425         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
69426         before <wchar.h>. Needed for OSF/1 and BSD/OS.
69427
69428 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
69429
69430         * modules/snprintf (Depends-on): Remove minmax.
69431         (Maintainer): Add self and Bruno.
69432
69433 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
69434
69435         * lib/.cppi-disable: Add snprintf.h, socket_.h.
69436         * lib/snprintf.c: Include <errno.h> and <limits.h>.
69437         (EOVERFLOW): Define if the system does not.
69438         Do not include "minmax.h"; it wasn't used.
69439         (snprintf): Don't assume size_t promotes to an unsigned type.
69440         Fix bug when generated string was too long for the buffer: the
69441         buffer's contents are supposed to be the initial prefix of the
69442         output.  Don't assume vasnprintf returns EOVERFLOW if the size
69443         exceeds INT_MAX; do the check ourselves.
69444
69445         Import the following changes from libc:
69446
69447         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
69448
69449         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
69450         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
69451         set wc to the byte which couldn't be converted.
69452         (re_string_reconstruct): Don't clear valid_raw_len before calling
69453         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
69454         tip_context using re_string_context_at.
69455
69456         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
69457
69458         * lib/posix/regex.h: g++ still cannot handled [restrict].
69459
69460         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
69461
69462         * lib/posix/regex.h: Remove special handling for VMS.
69463
69464 2006-08-10  Jim Meyering  <jim@meyering.net>
69465
69466         * modules/same-inode: New module.
69467         * modules/dev-ino: New module.
69468         * modules/cycle-check: Depend on these modules, rather than simply
69469         including their .h files.
69470         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
69471         required via m4/cycle-check.m4.
69472         * modules/same: Depend on new same-inode module, rather than
69473         including same-inode.h.
69474         * modules/chdir-safer: New file.
69475
69476         * modules/chown (Depends-on): Add stat-macros.
69477
69478 2006-08-10  Jim Meyering  <jim@meyering.net>
69479
69480         * m4/cycle-check.m4: New file.
69481         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
69482         * m4/dev-ino.m4, m4/same-inode.m4: New files.
69483
69484 2006-08-10  Eric Blake  <ebb9@byu.net>
69485
69486         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
69487         in from original proposal.
69488
69489 2006-08-10  Eric Blake  <ebb9@byu.net>
69490         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
69491
69492         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
69493         namespace.
69494
69495 2006-08-10  Bruno Haible  <bruno@clisp.org>
69496
69497         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
69498         as well.
69499
69500 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
69501
69502         Sync from coreutils.
69503
69504         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
69505
69506         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
69507         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
69508
69509 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
69510
69511         * modules/restrict: Remove; no longer needed now that we assume
69512         Autoconf 2.59 or later.
69513         * MODULES.html.sh: Remove 'restrict'.
69514         * modules/argp (Depends-on): Remove 'restrict'.
69515         * modules/base64 (Depends-on): Likewise.
69516         * modules/gc (Depends-on): Likewise.
69517         * modules/getaddrinfo (Depends-on): Likewise.
69518         * modules/glob (Depends-on): Likewise.
69519         * modules/inet_ntop (Depends-on): Likewise.
69520         * modules/inet_pton (Depends-on): Likewise.
69521         * modules/memxor (Depends-on): Likewise.
69522         * modules/regex (Depends-on): Likewise.
69523         * modules/strtok_r (Depends-on): Likewise.
69524         * modules/time_r (Depends-on): Likewise.
69525
69526 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
69527
69528         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
69529         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
69530         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
69531         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
69532         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
69533         * m4/memxor.m4 (gl_MEMXOR): Likewise.
69534         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
69535         gl_C_RESTRICT replaced by AC_C_RESTRICT.
69536
69537         Merge from coreutils.
69538         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
69539         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
69540         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
69541         * m4/time_r.m4 (gl_TIME_R): Likewise.
69542
69543 2006-08-09  Karl Berry  <karl@gnu.org>
69544
69545         * config/srclist.txt: no more gettext-tools, per Bruno.
69546
69547 2006-08-08  Eric Blake  <ebb9@byu.net>
69548
69549         * modules/verror: New module.
69550         * MODULES.html.sh: Document it.
69551
69552 2006-08-08  Eric Blake  <ebb9@byu.net>
69553
69554         * lib/verror.h, lib/verror.c: New files.
69555
69556 2006-08-08  Eric Blake  <ebb9@byu.net>
69557
69558         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
69559         verror_at_line output complies with GNU Coding Standards even when
69560         file is NULL.
69561
69562 2006-08-07  Bruno Haible  <bruno@clisp.org>
69563
69564         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
69565         versions of AIX.
69566         Reported by Ralf Wildenhues.
69567
69568 2006-08-07  Bruno Haible  <bruno@clisp.org>
69569
69570         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
69571         in an AC_DEFUN. Needed so that the autoconf snippets can use
69572         AC_REQUIRE.
69573
69574 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69575
69576         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
69577         Initialize pkgdata_DATA.
69578         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
69579         overriding it.
69580
69581 2006-08-06  Eric Blake  <ebb9@byu.net>
69582
69583         * lib/error.h: Fold in some upstream changes from glibc.
69584         * lib/error.c: Likewise.
69585
69586 2006-08-04  Bruno Haible  <bruno@clisp.org>
69587
69588         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
69589         Make the mostlyclean-local rule depend on mostlyclean-generic.
69590         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
69591
69592 2006-07-31  Bruno Haible  <bruno@clisp.org>
69593
69594         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
69595         <stdlib.h>, <string.h>.
69596
69597 2006-07-30  Bruno Haible  <bruno@clisp.org>
69598
69599         * modules/readlink (License): Change to LGPL.
69600
69601 2006-07-30  Bruno Haible  <bruno@clisp.org>
69602
69603         * modules/javaversion (Makefile.am): Distribute javaversion.java and
69604         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
69605         set PKGDATADIR to point to it.
69606
69607 2006-07-30  Bruno Haible  <bruno@clisp.org>
69608
69609         * modules/csharpexec (configure.ac): Comment out macro invocation.
69610         * modules/javaexec (configure.ac): Likewise.
69611         * modules/javacomp-script (configure.ac): Likewise.
69612
69613         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
69614
69615 2006-07-30  Bruno Haible  <bruno@clisp.org>
69616
69617         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
69618         linked-list.
69619
69620 2006-07-30  Bruno Haible  <bruno@clisp.org>
69621
69622         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
69623
69624 2006-07-30  Bruno Haible  <bruno@clisp.org>
69625
69626         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
69627         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
69628         get removed.
69629
69630 2006-07-29  Bruno Haible  <bruno@clisp.org>
69631
69632         Make it possible for gnulib-tool to work with locally modified or
69633         augmented gnulib repositories.
69634         * gnulib-tool (func_usage): Document --local-dir option.
69635         (local_gnulib_dir): New variable.
69636         Handle --local-dir option.
69637         (func_lookup_file): New function.
69638         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
69639         (func_get_description, func_get_filelist, func_get_description,
69640         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
69641         func_get_automake_snippet, func_get_include_directive,
69642         func_get_license, func_get_maintainer): Use func_lookup_file.
69643         (func_import, func_create_testdir): Use func_lookup_file.
69644
69645 2006-07-29  Bruno Haible  <bruno@clisp.org>
69646
69647         * modules/setenv (Depends-on): Add unistd.
69648
69649 2006-07-29  Bruno Haible  <bruno@clisp.org>
69650
69651         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
69652
69653 2006-07-29  Bruno Haible  <bruno@clisp.org>
69654
69655         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
69656
69657 2006-07-29  Bruno Haible  <bruno@clisp.org>
69658
69659         * gnulib-tool (import, update): If there is no Makefile.am, look at
69660         aclocal.m4, instead of bailing out.
69661
69662 2006-07-29  Bruno Haible  <bruno@clisp.org>
69663
69664         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
69665         Categorize the options by when they are useful.
69666
69667 2006-07-29  Bruno Haible  <bruno@clisp.org>
69668
69669         * gnulib-tool (func_usage): Document option --no-libtool.
69670         Handle option --no-libtool.
69671         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
69672         for changed semantics of $libtool variable.
69673         (func_import): Likewise. If libtool is not used, show this through
69674         an option --no-libtool.
69675         (func_create_testdir): Update.
69676
69677 2006-07-29  Bruno Haible  <bruno@clisp.org>
69678
69679         * gnulib-tool (func_import): Extend error message about missing
69680         --doc-base.
69681
69682 2006-07-29  Bruno Haible  <bruno@clisp.org>
69683
69684         * gnulib-tool (func_import): Don't create the $docbase directory if
69685         there is no file to store there.
69686
69687 2006-07-29  Bruno Haible  <bruno@clisp.org>
69688
69689         * gnulib-tool (autoconf_minversion): If a --dir option is given and
69690         relevant, look for configure.ac there, not in the current directory.
69691         Also use a simple search for AC_PREREQ, not "autoconf --trace".
69692
69693 2006-07-29  Bruno Haible  <bruno@clisp.org>
69694
69695         * gnulib-tool (SORT): New variable.
69696         (func_usage): Undocument --assume-autoconf option.
69697         Remove --assume-autoconf option handling.
69698         (autoconf_minversion): Determine from the contents of configure.ac.
69699         (func_import): Remove autoconf_minversion handling.
69700         Suggested by Eric Blake.
69701
69702 2006-07-29  Bruno Haible  <bruno@clisp.org>
69703
69704         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
69705
69706 2006-07-29  Bruno Haible  <bruno@clisp.org>
69707
69708         * config/srclist.txt (*setenv.[ch]): Remove rules.
69709
69710 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
69711
69712         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
69713
69714 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
69715
69716         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
69717         arpa/inet.h.
69718
69719 2006-07-28  Simon Josefsson  <jas@extundo.com>
69720
69721         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
69722         * modules/inet_pton (Depends-on): Likewise.
69723
69724 2006-07-28  Simon Josefsson  <jas@extundo.com>
69725
69726         * m4/netinet_in_h.m4: New file.
69727
69728 2006-07-28  Simon Josefsson  <jas@extundo.com>
69729
69730         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
69731         #include's.
69732
69733 2006-07-28  Simon Josefsson  <jas@extundo.com>
69734
69735         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
69736         #include's.
69737
69738 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
69739
69740         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
69741         setgid on directories only if they set these bits.
69742         * lib/modechange.h: Remove obsolete comment about masks.
69743
69744 2006-07-28  Eric Blake  <ebb9@byu.net>
69745
69746         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
69747         macro expansion.
69748
69749 2006-07-28  Bruno Haible  <bruno@clisp.org>
69750
69751         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
69752
69753 2006-07-28  Bruno Haible  <bruno@clisp.org>
69754
69755         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
69756
69757 2006-07-28  Bruno Haible  <bruno@clisp.org>
69758
69759         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
69760         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
69761         Define fallbacks.
69762         Avoids link error on FreeBSD 4.x.
69763         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
69764
69765         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
69766         encoding.
69767         * lib/mbswidth.c (iswcntrl): Likewise.
69768
69769 2006-07-27  Bruno Haible  <bruno@clisp.org>
69770
69771         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
69772         test.
69773
69774 2006-07-27  Bruno Haible  <bruno@clisp.org>
69775
69776         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
69777         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
69778         defined.
69779
69780 2006-07-26  Eric Blake  <ebb9@byu.net>
69781
69782         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
69783
69784 2006-07-26  Eric Blake  <ebb9@byu.net>
69785
69786         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
69787         like mingw that lack mkstemp.
69788         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
69789         avoid compilation warning on mingw.
69790
69791 2006-07-26  Bruno Haible  <bruno@clisp.org>
69792
69793         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
69794         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
69795         INT_FAST*_MIN, INTPTR_MIN.
69796
69797 2006-07-25  Bruno Haible  <bruno@clisp.org>
69798
69799         * modules/version-etc (Depends-on): Add stdarg.
69800
69801 2006-07-25  Bruno Haible  <bruno@clisp.org>
69802
69803         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
69804         complex commands.
69805
69806 2006-07-25  Bruno Haible  <bruno@clisp.org>
69807
69808         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
69809         defined in <stdarg.h> or config.h.
69810
69811 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
69812
69813         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
69814         (gl_STDIO_SAFER): Remove.
69815
69816 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
69817
69818         * MODULES.html.sh (File stream based Input/Output):
69819         Add fopen-safer, tmpfile-safer; remove stdio-safer.
69820         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
69821         * modules/fopen-safer, modules/tmpfile-safer: New files.
69822         * modules/stdio-safer: Remove.
69823
69824 2006-07-24  Bruno Haible  <bruno@clisp.org>
69825
69826         * modules/tmpdir: New file.
69827         * MODULES.html.sh (File system functions): Add it.
69828
69829 2006-07-24  Bruno Haible  <bruno@clisp.org>
69830
69831         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
69832         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
69833
69834 2006-07-24  Bruno Haible  <bruno@clisp.org>
69835
69836         * modules/clean-temp: New file.
69837
69838 2006-07-24  Bruno Haible  <bruno@clisp.org>
69839
69840         * m4/tmpdir.m4: New file, from GNU gettext.
69841
69842 2006-07-24  Bruno Haible  <bruno@clisp.org>
69843
69844         * lib/tmpdir.h: New file, from GNU gettext.
69845         * lib/tmpdir.c: New file, from GNU gettext.
69846
69847 2006-07-24  Bruno Haible  <bruno@clisp.org>
69848
69849         * lib/clean-temp.h: New file, from GNU gettext.
69850         * lib/clean-temp.c: New file, from GNU gettext.
69851
69852 2006-07-23  Eric Blake  <ebb9@byu.net>
69853
69854         * modules/stdio-safer (Files): Add tmpfile-safer.c.
69855         (Depends-on): Add binary-io.
69856
69857 2006-07-23  Eric Blake  <ebb9@byu.net>
69858
69859         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
69860
69861 2006-07-23  Eric Blake  <ebb9@byu.net>
69862
69863         * lib/tmpfile-safer.c: New file.
69864         * lib/stdio-safer.h (fopen_safer): Add prototype.
69865         * lib/stdio--.h (tmpfile): Make safer.
69866
69867 2006-07-23  Bruno Haible  <bruno@clisp.org>
69868
69869         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
69870         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
69871         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
69872         gl_linked_remove_at): Use it.
69873
69874 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
69875         and Simon Josefsson <jas@extundo.com>
69876
69877         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
69878
69879         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
69880
69881 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
69882
69883         * modules/close-stream: New file.
69884         * modules/closeout (Description): Make it clear that it exits
69885         with a diagnostic on error.
69886         (Depends-on): Add close-stream.  Remove fpending, stdbool.
69887         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
69888
69889 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
69890
69891         * m4/close-stream.m4: New file.
69892
69893 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
69894
69895         * lib/close-stream.c, lib/close-stream.h: New files.
69896
69897 2006-07-22  Bruno Haible  <bruno@clisp.org>
69898
69899         Merge from GNU gettext 0.15.
69900
69901         2006-05-01  Bruno Haible  <bruno@clisp.org>
69902
69903                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
69904
69905         2006-07-22  Bruno Haible  <bruno@clisp.org>
69906
69907                 * modules/javaversion: New file.
69908                 * MODULES.html.sh (Java): Add javaversion.
69909
69910         2006-03-12  Bruno Haible  <bruno@clisp.org>
69911
69912                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
69913
69914         2005-12-04  Bruno Haible  <bruno@clisp.org>
69915
69916                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
69917                 (untested).
69918
69919         2006-06-21  Bruno Haible  <bruno@clisp.org>
69920
69921                 Avoid warnings from recent versions of mcs.
69922                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
69923                 -o, -L, -r any more. Use options documented since mcs-1.0
69924                 instead. Similarly for -g.
69925
69926         2005-12-04  Bruno Haible  <bruno@clisp.org>
69927
69928                 * build-aux/csharpcomp.sh.in: Suffix for resources is
69929                 .resources, not .resource.
69930
69931         2005-07-09  Bruno Haible  <bruno@clisp.org>
69932
69933                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
69934                 add a .dll suffix.
69935                 Reported by Mark Junker <mjscod@gmx.de>.
69936
69937         2006-07-22  Bruno Haible  <bruno@clisp.org>
69938
69939                 * modules/gettext: Upgrade to gettext-0.15.
69940                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
69941                 m4/visibility.m4.
69942                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
69943
69944 2006-07-22  Bruno Haible  <bruno@clisp.org>
69945
69946         Merge from GNU gettext 0.15.
69947
69948         2006-03-25  Bruno Haible  <bruno@clisp.org>
69949
69950                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
69951
69952         2006-07-21  Bruno Haible  <bruno@clisp.org>
69953
69954                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
69955                 "1.1".
69956
69957         2006-05-09  Bruno Haible  <bruno@clisp.org>
69958
69959                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
69960                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
69961                 for the conftestver execution.
69962
69963         2006-05-01  Bruno Haible  <bruno@clisp.org>
69964
69965                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
69966                 optional target-version argument. Verify that the compiler
69967                 groks source of the specified source-version, or add -source
69968                 option as necessary. Verify that the compiler produces
69969                 bytecode in the specified target-version, or add -target and
69970                 -source options as necessary. Make the result of the test
69971                 available as variable CONF_JAVAC. Also log error output in
69972                 config.log.
69973
69974         2006-03-11  Bruno Haible  <bruno@clisp.org>
69975
69976                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
69977
69978         2006-05-09  Bruno Haible  <bruno@clisp.org>
69979
69980                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
69981                 CLASSPATH_SEPARATOR to a semicolon.
69982
69983         2006-03-12  Bruno Haible  <bruno@clisp.org>
69984
69985                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
69986                 available as variable CONF_JAVA, for subsequent autoconf
69987                 tests. Also log error output in config.log.
69988
69989         2006-07-19  Bruno Haible  <bruno@clisp.org>
69990
69991                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
69992                 that getline works on glibc2 systems. Needed to avoid trouble
69993                 in relocatable.c.
69994                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
69995
69996         2005-12-04  Bruno Haible  <bruno@clisp.org>
69997
69998                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
69999                 launcher (untested).
70000
70001         2005-12-04  Bruno Haible  <bruno@clisp.org>
70002
70003                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
70004
70005         2006-07-22  Bruno Haible  <bruno@clisp.org>
70006
70007                 * gettext.m4: Update from GNU gettext-0.15.
70008                 * nls.m4: Likewise.
70009                 * po.m4: Likewise.
70010                 * inttypes-pri.m4: Likewise.
70011                 * inttypes-h.m4: Renamed from inttypes.m4.
70012                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
70013
70014 2006-07-22  Bruno Haible  <bruno@clisp.org>
70015
70016         Merge from GNU gettext 0.15.
70017
70018         2005-07-05  Bruno Haible  <bruno@clisp.org>
70019
70020                 * printf-args.c (printf_fetchargs): Work around broken
70021                 definition of wint_t on mingw.
70022
70023         2005-02-12  Bruno Haible  <bruno@clisp.org>
70024
70025                 * xallocsa.h: Add extern "C" for C++.
70026
70027         2006-05-17  Bruno Haible  <bruno@clisp.org>
70028
70029                 Cygwin portability.
70030                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
70031
70032         2006-04-30  Bruno Haible  <bruno@clisp.org>
70033
70034                 * progreloc.c: Include <mach-o/dyld.h> if available.
70035                 (find_executable): Use _NSGetExecutablePath when possible.
70036
70037         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
70038
70039                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
70040                 function.
70041
70042         2005-12-29  Bruno Haible  <bruno@clisp.org>
70043
70044                 * progreloc.c (set_program_name_and_installdir): Fix
70045                 compilation error.
70046
70047         2005-12-04  Bruno Haible  <bruno@clisp.org>
70048
70049                 Cygwin portability.
70050                 * progreloc.c: Include <windows.h> also on Cygwin.
70051                 (find_executable): Add support for Cygwin.
70052                 (set_program_name_and_installdir): Handle also platforms with
70053                 nonempty EXEEXT.
70054
70055         2006-07-11  Bruno Haible  <bruno@clisp.org>
70056
70057                 * javacomp.c: Fix a comment.
70058                 Reported by Jim Meyering.
70059
70060         2006-04-30  Bruno Haible  <bruno@clisp.org>
70061
70062                 * javacomp.h (compile_java_class): Add source_version,
70063                 target_version arguments.
70064                 * javacomp.c: Rewritten to choose only a compiler that
70065                 respects the specified source_version and target_version.
70066
70067         2006-06-27  Bruno Haible  <bruno@clisp.org>
70068
70069                 Assume correct S_ISDIR macro.
70070                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
70071
70072         2006-07-22  Bruno Haible  <bruno@clisp.org>
70073
70074                 * javaversion.h: New file, from GNU gettext.
70075                 * javaversion.c: New file, from GNU gettext.
70076                 * javaversion.java: New file, from GNU gettext.
70077                 * javaversion.class: New file, from GNU gettext.
70078
70079         2006-05-17  Bruno Haible  <bruno@clisp.org>
70080
70081                 Cygwin portability.
70082                 * javaexec.c (execute_java_class): Test for jview program
70083                 also on Cygwin.
70084
70085         2006-04-09  Bruno Haible  <bruno@clisp.org>
70086
70087                 * fatal-signal.c: Don't include string.h.
70088                 (at_fatal_signal): Use a copying loop instead of memcpy.
70089
70090         2005-12-04  Bruno Haible  <bruno@clisp.org>
70091
70092                 * csharpexec.c: Add support for 'clix' launcher (untested).
70093                 (execute_csharp_using_sscli): New function.
70094                 (execute_csharp_program): Call it.
70095
70096         2006-06-21  Bruno Haible  <bruno@clisp.org>
70097
70098                 Avoid warnings from recent versions of mcs.
70099                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
70100                 -o, -L, -r any more. Use options documented since mcs-1.0
70101                 instead. Similarly for -g.
70102
70103         2005-07-09  Bruno Haible  <bruno@clisp.org>
70104
70105                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
70106                 add a .dll suffix.
70107                 Reported by Mark Junker <mjscod@gmx.de>.
70108
70109         2006-06-17  Bruno Haible  <bruno@clisp.org>
70110
70111                 * config.charset: Update for NetBSD 3.0.
70112
70113         2006-05-17  Bruno Haible  <bruno@clisp.org>
70114
70115                 Cygwin portability.
70116                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
70117
70118         2006-05-16  Bruno Haible  <bruno@clisp.org>
70119
70120                 * localcharset.c [CYGWIN]: Include <windows.h>.
70121                 (get_charset_aliases): For Cygwin, return the same CPxxx
70122                 aliases list as under WIN32.
70123                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
70124                 the environment variables. Fall back to GetACP().
70125
70126         2006-04-05  Bruno Haible  <bruno@clisp.org>
70127
70128                 * config.charset: Update Juan Manuel Guerrero's address.
70129
70130         2005-02-12  Bruno Haible  <bruno@clisp.org>
70131
70132                 * allocsa.h: Add extern "C" for C++.
70133
70134         2005-02-10  Bruno Haible  <bruno@clisp.org>
70135
70136                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
70137                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
70138
70139         2006-07-22  Bruno Haible  <bruno@clisp.org>
70140
70141                 * gettext.h: Update to GNU gettext-0.15.
70142
70143 2006-07-22  Bruno Haible  <bruno@clisp.org>
70144
70145         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
70146         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
70147         lib-prefix.m4, longdouble.m4, ssize_t.m4.
70148
70149 2006-07-21  Eric Blake  <ebb9@byu.net>
70150
70151         * modules/stdlib-safer: New file.
70152         * MODULES.html.sh (File stream based Input/Output): Add
70153         stdlib-safer.
70154
70155 2006-07-21  Eric Blake  <ebb9@byu.net>
70156
70157         * lib/stdlib-safer.h: New file from coreutils, required by
70158         stdlib--.h.
70159
70160 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
70161
70162         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
70163
70164 2006-07-20  Bruno Haible  <bruno@clisp.org>
70165
70166         * gnulib-tool: Recognize new option --assume-autoconf.
70167         (autoconf_minversion): New variable.
70168         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
70169
70170 2006-07-20  Bruno Haible  <bruno@clisp.org>
70171
70172         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
70173
70174 2006-07-19  Derek R. Price  <derek@ximbiot.com>
70175
70176         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
70177         Reindent and repaginate.
70178
70179 2006-07-19  Derek Price  <derek@ximbiot.com>
70180
70181         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
70182         Correct grammar.
70183
70184 2006-07-17  Bruno Haible  <bruno@clisp.org>
70185
70186         * modules/list: New file.
70187         * modules/array-list: New file.
70188         * modules/carray-list, modules/carray-list-tests: New files.
70189         * modules/linked-list, modules/linked-list-tests: New files.
70190         * modules/avltree-list, modules/avltree-list-tests: New files.
70191         * modules/rbtree-list, modules/rbtree-list-tests: New files.
70192         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
70193         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
70194         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
70195         * modules/oset: New file.
70196         * modules/array-oset: New file.
70197         * modules/avltree-oset, modules/avltree-oset-tests: New files.
70198         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
70199         * tests/test-carray_list.c: New file.
70200         * tests/test-linked_list.c: New file.
70201         * tests/test-avltree_list.c: New file.
70202         * tests/test-rbtree_list.c: New file.
70203         * tests/test-linkedhash_list.c: New file.
70204         * tests/test-avltreehash_list.c: New file.
70205         * tests/test-rbtreehash_list.c: New file.
70206         * tests/test-avltree_oset.c: New file.
70207         * tests/test-rbtree_oset.c: New file.
70208         * MODULES.html.sh (Container data structures): New section.
70209
70210 2006-07-17  Bruno Haible  <bruno@clisp.org>
70211
70212         * m4/gl_list.m4: New file.
70213
70214 2006-07-17  Bruno Haible  <bruno@clisp.org>
70215
70216         * lib/gl_list.h: New file.
70217         * lib/gl_list.c: New file.
70218         * lib/gl_array_list.h: New file.
70219         * lib/gl_array_list.c: New file.
70220         * lib/gl_carray_list.h: New file.
70221         * lib/gl_carray_list.c: New file.
70222         * lib/gl_linked_list.h: New file.
70223         * lib/gl_linked_list.c: New file.
70224         * lib/gl_anylinked_list1.h: New file.
70225         * lib/gl_anylinked_list2.h: New file.
70226         * lib/gl_avltree_list.h: New file.
70227         * lib/gl_avltree_list.c: New file.
70228         * lib/gl_anyavltree_list1.h: New file.
70229         * lib/gl_anyavltree_list2.h: New file.
70230         * lib/gl_rbtree_list.h: New file.
70231         * lib/gl_rbtree_list.c: New file.
70232         * lib/gl_anyrbtree_list1.h: New file.
70233         * lib/gl_anyrbtree_list2.h: New file.
70234         * lib/gl_anytree_list1.h: New file.
70235         * lib/gl_anytree_list2.h: New file.
70236         * lib/gl_linkedhash_list.h: New file.
70237         * lib/gl_linkedhash_list.c: New file.
70238         * lib/gl_anyhash_list1.h: New file.
70239         * lib/gl_anyhash_list2.h: New file.
70240         * lib/gl_avltreehash_list.h: New file.
70241         * lib/gl_avltreehash_list.c: New file.
70242         * lib/gl_rbtreehash_list.h: New file.
70243         * lib/gl_rbtreehash_list.c: New file.
70244         * lib/gl_anytreehash_list1.h: New file.
70245         * lib/gl_anytreehash_list2.h: New file.
70246
70247         * lib/gl_oset.h: New file.
70248         * lib/gl_oset.c: New file.
70249         * lib/gl_array_oset.h: New file.
70250         * lib/gl_array_oset.c: New file.
70251         * lib/gl_avltree_oset.h: New file.
70252         * lib/gl_avltree_oset.c: New file.
70253         * lib/gl_rbtree_oset.h: New file.
70254         * lib/gl_rbtree_oset.c: New file.
70255         * lib/gl_anytree_oset.h: New file.
70256
70257 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
70258
70259         * m4/mkancesdirs.m4: New file.
70260         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
70261         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
70262         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
70263         it.
70264
70265 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
70266
70267         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
70268         * lib/mkancesdirs.h: New files.
70269         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
70270         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
70271         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
70272         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
70273         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
70274         callers changed.  Revamp internals significantly, by not
70275         attempting to create directories that are temporarily more
70276         permissive than the final results.  Do not attempt to use
70277         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
70278         This removes some race conditions, fixes some bugs, and simplifies
70279         things.  Use new dirchownmod function to do owner and mode changes.
70280         * lib/mkdir-p.h: Likewise.
70281         * lib/modechange.c (octal_to_mode): New function.
70282         (struct mode_change): New member mentioned.
70283         (make_node_op_equals): New arg mentioned.  All callers changed.
70284         (mode_compile): Keep track of which mode bits the user has explicitly
70285         mentioned.
70286         (mode_adjust): New arg DIR, so that we implement the X op correctly.
70287         New arg PMODE_BITS, to keep track of which mode bits the user
70288         mentioned; it treats S_ISUID and S_ISGID speciall.
70289         All callers changed.
70290         * lib/modechange.h: Likewise.
70291
70292 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
70293
70294         * MODULES.html.sh: Add mkancestors.
70295         * modules/mkancesdirs: New module.
70296         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
70297         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
70298         The chdir-safer and afs files are now orphans; I'll remove them
70299         unless someone speaks up.
70300         Add lib/dirchownmod.c, lib/dirchownmod.h.
70301         (Depends-on): Remove alloca, chown, save-cwd, dirname.
70302         Add lchown, mkancesdirs.
70303         (Maintainer): Add self.
70304
70305 2006-07-15  Karl Berry  <karl@gnu.org>
70306
70307         * gnulib-tool: help message wording/arrangement.
70308
70309 2006-07-14  Simon Josefsson  <jas@extundo.com>
70310
70311         * doc/gnulib.texi (Libtool and Windows): New section.
70312
70313 2006-07-12  Simon Josefsson  <jas@extundo.com>
70314
70315         * modules/gendocs (License): Fix license, approved by Karl.
70316
70317 2006-07-12  Eric Blake  <ebb9@byu.net>
70318
70319         * MODULES.html.sh: Add gendocs.
70320
70321 2006-07-11  Eric Blake  <ebb9@byu.net>
70322
70323         * modules/fdl: New module, to install doc/fdl.texi.
70324         * MODULES.html.sh: Add new section for documentation modules.
70325         * gnulib-tool: Avoid space-tab.
70326         (--doc-base): New option, to manage files from doc.
70327
70328 2006-07-11  Eric Blake  <ebb9@byu.net>
70329
70330         * m4/absolute-header.m4: Fix comments to match recent change.
70331
70332 2006-07-11  Eric Blake  <ebb9@byu.net>
70333
70334         * gnulib-tool: List --doc-base before --tests-base.
70335
70336 2006-07-11  Derek R. Price  <derek@ximbiot.com>
70337
70338         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
70339
70340 2006-07-11  Bruno Haible  <bruno@clisp.org>
70341
70342         * README: Mention where to put documentation.
70343
70344 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70345
70346         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
70347
70348 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
70349
70350         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
70351         to stdint.m4.
70352
70353 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
70354
70355         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
70356         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
70357         "no/such/file/stdint.h" when there is no such file, so that
70358         the resulting C code can be parsed by dodgy compilers.
70359         Problems reported by Bob Proulx.
70360
70361 2006-07-10  Derek R. Price  <derek@ximbiot.com>
70362
70363         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
70364         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
70365         macros into the GNU _D_EXACT_NAMLEN.
70366         * lib/savedir.c:  Likewise.
70367         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
70368
70369 2006-07-10  Derek R. Price  <derek@ximbiot.com>
70370         and Paul Eggert  <eggert@cs.ucla.edu>
70371
70372         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
70373         * m4/savedir.m4:
70374         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
70375         macros into the GNU _D_EXACT_NAMLEN.
70376
70377 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
70378
70379         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
70380         around the absolute name, to work around a problem with the HP-UX
70381         11.23 native C compiler, reported by Bob Proulx.
70382
70383 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
70384
70385         * doc/maintain.texi, make-stds.texi: Sync from
70386         <http://savannah.gnu.org/projects/gnustandards>.
70387
70388 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
70389
70390         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
70391
70392 2006-07-09  Jim Meyering  <jim@meyering.net>
70393
70394         * m4/glob.m4: Remove a doubled word in a comment.
70395
70396 2006-07-09  Jim Meyering  <jim@meyering.net>
70397
70398         * lib/argp-pv.c: Remove a doubled word in a comment.
70399         * lib/check-version.c (check_version): Likewise.
70400         * lib/javacomp.c (compile_java_class): Likewise.
70401
70402 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
70403
70404         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
70405         for the benefit of people using Autoconf 2.60.  If you want to
70406         support older Autoconf versions you can copy m4/onceonly_2_57.m4
70407         (or m4/onceonly.m4, if pre-2.57) manually.
70408
70409 2006-07-08  Jim Meyering  <jim@meyering.net>
70410
70411         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
70412         comment.
70413         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
70414         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
70415         comment.
70416
70417 2006-07-08  Jim Meyering  <jim@meyering.net>
70418
70419         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
70420
70421 2006-07-07  Simon Josefsson  <jas@extundo.com>
70422
70423         * tests/test-crc.c: Change expected crc value, the test vector
70424         were probably computed using the old broken crc.c?
70425
70426 2006-07-06  Simon Josefsson  <jas@extundo.com>
70427
70428         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
70429         now the canonical place for the M4 file).
70430
70431         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
70432         from the sys_socket dependency now.
70433
70434         * modules/inet_pton (Files): Ditto.
70435
70436         * modules/inet_ntop (Files): Ditto.
70437
70438 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
70439
70440         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
70441         not gl_PREREQ_GETUSERSHELL.
70442
70443 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70444
70445         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
70446         with only one argument, for Autoconf 2.60.
70447         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
70448         expand to nothing, so add a shell command to avoid syntax error.
70449         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
70450
70451 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70452
70453         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
70454
70455 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
70456
70457         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
70458         no longer needed.  Check for isblank decl.
70459         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
70460         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
70461         of existence.
70462
70463 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
70464
70465         * lib/getloadavg.c: Use __VMS, not VMS.
70466         * lib/getopt.c: Likewise.
70467         * lib/getpagesize.h: Likewise.
70468         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
70469         and probably does not work.
70470
70471 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
70472
70473         * lib/.cppi-disable: Add wcwidth.
70474         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
70475         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
70476         (ISGRAPH): Remove.  All uses changed to isgraph.
70477         (FOLD) [!defined _LIBC]: Remove special case.
70478         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
70479         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
70480         HAVE_ISBLANK.
70481         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
70482         case.
70483
70484 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
70485
70486         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
70487         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
70488         brackets.  Other minor changes to suppress some compiler
70489         warnings.
70490
70491 2006-07-06  Derek R. Price  <derek@ximbiot.com>
70492         and Paul Eggert  <eggert@cs.ucla.edu>
70493
70494         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
70495         of invoking obsolescent AC_HEADER_DIRENT macro.
70496         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
70497         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
70498         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
70499         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
70500         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
70501         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
70502         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
70503         * m4/readdir.m4: Remove; no longer needed.
70504
70505 2006-07-06  Derek R. Price  <derek@ximbiot.com>
70506         and Paul Eggert  <eggert@cs.ucla.edu>
70507
70508         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
70509         Don't worry about this obsolete case any more.
70510         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
70511         directories.
70512         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
70513         worry about this obsolete case any more.
70514         * lib/fts.c: Likewise.
70515         * lib/getcwd.c: Likewise.
70516         * lib/glob.h: Likewise.
70517         * lib/savedir.c: Likewise.
70518
70519 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
70520
70521         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
70522         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
70523         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
70524         needed.
70525         All uses removed.
70526         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
70527         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
70528         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
70529         needed.
70530         * m4/getdate.m4 (gl_GETDATE): Likewise.
70531         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
70532         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
70533         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
70534         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
70535         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
70536         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
70537         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
70538         needed.
70539
70540 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
70541
70542         * lib/memcasecmp.c: Include <limits.h>.
70543         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
70544         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
70545         Don't assume isdigit succeeds only on '0' through '9'.
70546
70547 2006-07-05  Eric Blake  <ebb9@byu.net>
70548
70549         * modules/getaddrinfo (Depends-on): Add snprintf.
70550
70551 2006-07-05  Eric Blake  <ebb9@byu.net>
70552
70553         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
70554         to avoid 'header present but could not be compiled' on cygwin.
70555
70556 2006-07-05  Eric Blake  <ebb9@byu.net>
70557
70558         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
70559         missing from netdb.h.
70560         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
70561
70562 2006-07-05  Derek R. Price  <derek@ximbiot.com>
70563
70564         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
70565         no longer needed.
70566         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
70567         * m4/getdate.m4 (gl_GETDATE): Likewise.
70568         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
70569         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
70570         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
70571         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
70572         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
70573
70574 2006-07-05  Derek R. Price  <derek@ximbiot.com>
70575
70576         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
70577         All uses of is_space replaced by isspace.
70578         * lib/exit.h: Don't talk about STDC_HEADERS.
70579         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
70580         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
70581         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
70582         replaced by isprint etc.
70583         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
70584         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
70585         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
70586         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
70587         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
70588         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
70589
70590 2006-07-05  Bruno Haible  <bruno@clisp.org>
70591
70592         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
70593         the function exists, before testing against AIX.
70594         Reported by Martin Lambers <marlam@marlam.de>.
70595
70596 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
70597
70598         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
70599         From Mark D. Baushke.
70600
70601 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
70602
70603         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
70604         to the absolute name, not just one, to bypass Sun C 5.8's
70605         "warning: #include of /usr/include/... may be non-portable".
70606
70607 2006-07-04  Eric Blake  <ebb9@byu.net>
70608
70609         * modules/dirname-tests: New test module.
70610         * tests/test-dirname.c: New file, replacing dirname.c
70611         TEST_DIRNAME section that was recently deleted.
70612
70613 2006-07-04  Bruno Haible  <bruno@clisp.org>
70614
70615         Assume ANSI C header files and <ctype.h> functions.
70616         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
70617         (mbsnwidth): Use isprint, iscntrl instead.
70618
70619 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
70620
70621         Merge from coreutils.
70622         * MODULES.html.sh: Add xstrtold.
70623         * modules/xstrtold: New file.
70624         * modules/cycle-check (Files): Add lib/same-inode.h.
70625         * modules/dirname (Files): Add m4/double-slash-root.m4.
70626         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
70627         * modules/mkdir-p (Files): Add lib/same-inode.h.
70628         * modules/same (Files): Add lib/same-inode.h.
70629
70630 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
70631
70632         * m4/absolute-header.m4: Renamed from full-header-path.m4.
70633         This is to keep the terminology clean; POSIX talks about
70634         "absolute pathnames", not "full pathnames", but the GNU
70635         Coding Standards say to use "path" for something else;
70636         so use "absolute" to keep both sides happy.
70637         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
70638         Set gl_absolute_header, not gl_full_header_path.
70639         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
70640         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
70641         All uses changed.
70642
70643         Merge from coreutils.
70644
70645         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
70646
70647         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
70648         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
70649         want to require the building of c-strtod.o.
70650         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
70651         needs -lm directly.
70652         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
70653
70654         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
70655
70656         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
70657         --as-needed option if available.  Problem reported by Albert Chin in
70658         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
70659         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
70660         cc merely issues a bunch of annoying warnings for --as-needed
70661         (this problem was reported by Bob Proulx).  Also, try linking with
70662         -lm to detect a bug in binutils 2.16 (this problem was reported
70663         by Ralf Wildenhues).
70664
70665         2006-06-18  Jim Meyering  <jim@meyering.net>
70666
70667         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
70668         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
70669         macro.
70670         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
70671         also check for glibc-2.4's abort-inducing bug.
70672
70673         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
70674         Low-probability clean-up should be to use rmdir to get rid of
70675         the just-created directory, not unlink.
70676
70677         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
70678         configure fail, and request a bug report to inform us about it.
70679         Add a comment that, barring reports to the contrary, in 2007 we'll
70680         assume ftruncate is universally available.
70681
70682         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
70683
70684         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
70685
70686         2006-03-12  Jim Meyering  <jim@meyering.net>
70687
70688         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
70689         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
70690         * m4/same.m4 (gl_SAME): Likewise.
70691         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
70692
70693         2006-03-11  Eric Blake  <ebb9@byu.net>
70694
70695         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
70696         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
70697         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
70698         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
70699
70700 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
70701
70702         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
70703         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
70704         reported by Mark D. Baushke, one in
70705         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
70706
70707         Merge from coreutils.
70708
70709         * lib/.cppi-disable: Add stdint_.h.
70710         * lib/.cvsignore: Add stdint.h.
70711
70712         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
70713
70714         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
70715         both double and long double versions.
70716         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
70717         * lib/xstrtold.c: New file.
70718         * lib/xstrtod.h (xstrtold): New decl.
70719
70720         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
70721
70722         * lib/filemode.c (setst): Remove.
70723         (strmode): Rewrite to avoid setst.  This makes the code shorter,
70724         (arguably) clearer, and the generated code is a bit smaller on my
70725         Debian GNU/Linux stable x86 host.
70726
70727         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
70728
70729         * lib/filemode.c: Include "filemode.h" first, to test the interface.
70730         Assume that filemode.h includes sys/types.h and sys/stat.h.
70731         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
70732         (ftypelet): Reorder to put common cases first, for efficiency.
70733         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
70734         to do 'M'.
70735         (strmode): Renamed from mode_string, and now stores 12 bytes instead
70736         of 10, for compatibility with FreeBSD.  All callers changed.
70737         (filemodestring): Now stores 12 bytes instead of 10, and sets file
70738         types that can't be deduced solely from st_mode.  First arg is now a
70739         const pointer.
70740         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
70741         (strmode): Renamed from mode_string.
70742         (filemodestring): New decl.
70743         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
70744         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
70745         needed.
70746         (S_ISPORT, S_ISWHT): New macros, if not already defined.
70747
70748         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
70749
70750         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
70751         fsusage.h now does that.  Include fsusage.h first, to test interface.
70752         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
70753         at most one method (the old code could have generated decls that
70754         didn't conform to C89, not that this was ever exercised).
70755         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
70756
70757         2006-03-19  Jim Meyering  <jim@meyering.net>
70758
70759         Work even in a chroot where d_ino values for entries in "/"
70760         don't match the stat.st_ino values for the same names.
70761         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
70762         number, iterate through all entries again, using lstat instead.
70763         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
70764         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
70765
70766         * lib/getcwd.c (__getcwd): Clarify a comment.
70767         Use memcpy in place of a call to strcpy.
70768
70769         2006-03-12  Jim Meyering  <jim@meyering.net>
70770
70771         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
70772         matches that of the current directory (which we're about to chdir ".."
70773         out of), then save the dev-ino of the parent, instead.
70774
70775         * lib/same-inode.h (SAME_INODE): New file/macro.
70776         * lib/chdir-safer.c (SAME_INODE): Remove definition.
70777         Include "same-inode.h", instead.
70778         * lib/same.c: Likewise.
70779         * lib/cycle-check.h: Include "same-inode.h".
70780         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
70781         * lib/cycle-check.c (SAME_INODE): Remove definition.
70782         * lib/root-dev-ino.h: Include "same-inode.h".
70783
70784         2006-03-11  Eric Blake  <ebb9@byu.net>
70785
70786         * lib/same.c (same_name): s/base_name/last_component/
70787         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
70788         * lib/filenamecat.c (file_name_concat): Likewise.
70789
70790         2006-03-11  Eric Blake  <ebb9@byu.net>,
70791                     Paul Eggert  <eggert@cs.ucla.edu>
70792
70793         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
70794         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
70795         drive prefix.
70796         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
70797         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
70798         (last_component): New method.
70799         * lib/dirname.c (dir_len): Determine when drive letters need a
70800         subsequent slash.  Preserve // when it is special.
70801         (dir_name): Don't append dot when drive letter is absolute.
70802         [TEST_DIRNAME]: Move into a full-blown gnulib test.
70803         * lib/basename.c (base_name): New semantics - malloc the result.
70804         Preserve // when it is special.  Preserve relative files that look
70805         like drive letters.
70806         (base_len): Preserve // when it is special.
70807         (last_component): New method, similar to old base_name semantics.
70808         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
70809         base_name.  Strip redundant slashes from ///.
70810
70811 2006-07-03  Jim Meyering  <jim@meyering.net>
70812
70813         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
70814         macro is used before the first cycle_check call.
70815
70816 2006-07-03  Eric Blake  <ebb9@byu.net>
70817
70818         * modules/dirname (Depends-on): Add xstrndup.
70819
70820 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
70821
70822         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
70823         test cases, so that config.log is a bit easier to follow.
70824
70825 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
70826
70827         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
70828         both are 64 bits, since this seems to be the tradition, and this
70829         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
70830         we ever run into a host that prefers long long to long in this
70831         case, we'll need another configure-time test.  Problem reported by
70832         Jim Meyering.
70833
70834 2006-07-02  Eric Blake  <ebb9@byu.net>
70835
70836         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
70837
70838 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
70839
70840         * modules/inttypes (Depends-on): No longer depends on stdint.
70841         * modules/stdint (Description): Say more about assumptions.
70842         Say that the fast types might differ.  Say macros are used.
70843         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
70844         (Makefile.am): Revise list of substituted symbols to match
70845         new stdint.m4.
70846         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
70847         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
70848         * tests/test-stdint.c (verify_same_types)
70849         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
70850         the code conforms to C99/C89.
70851         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
70852         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
70853
70854 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
70855
70856         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
70857         but fix a bug, by requiring at least 64 bits.
70858         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
70859         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
70860         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
70861         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
70862
70863         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
70864         changes.  Make 2.59 a prerequisite.  Check and substitute for
70865         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
70866         inttypes.h.  Do not use special include files; just use the
70867         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
70868         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
70869         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
70870         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
70871         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
70872         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
70873         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
70874         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
70875         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
70876         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
70877         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
70878         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
70879         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
70880         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
70881         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
70882         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
70883         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
70884         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
70885         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
70886         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
70887         WINT_MAX.  Check for C99 conformance more strictly, by detecting
70888         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
70889         not check for things that C99 does not require, e.g., int8_t.  If
70890         a test isn't needed unless <stdint.h> isn't working, and is
70891         unlikely to be needed for any other reason, then don't do it
70892         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
70893         size_t, since we assume C89 freestanding at least.  Do not check
70894         for sig_atomic_t, wchar_t, or wint_t, since the code now does
70895         the right thing even if the types are not defined.  Instead use:
70896         (gl_STDINT_TYPE_PROPERTIES): New macro.
70897         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
70898         testing whether <sys/types.h> clashes, as Autoconf does this for
70899         us now.  All uses removed.
70900         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
70901         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
70902         (gl_CHECK_TYPE_SAME):
70903         Remove; no longer needed.
70904         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
70905         exists, since we'll return 0 anyway in that case.
70906         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
70907
70908 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
70909
70910         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
70911         possible collision with system files.
70912         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
70913         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
70914         WCHAR_MIN and WCHAR_MAX in this case.
70915         (<stddef.h>): Do not include; no longer needed.
70916         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
70917         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
70918         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
70919         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
70920         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
70921         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
70922         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
70923         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
70924         !defined(__c99))]: Include in this case too, since it's harmless
70925         now.
70926         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
70927         dangerous to do so.
70928         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
70929         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
70930         (_STDINT_MIN, _STDINT_MAX): New macros.
70931         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
70932         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
70933         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
70934         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
70935         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
70936         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
70937         macros, not typedefs; this simplifies things quite a bit.
70938         Use long int for all types narrower than int64_t.
70939         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
70940         Define in terms of long long int or int64_t or long int,
70941         not int64_t or int32_t.  This saves some compile-time testing.
70942         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
70943         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
70944         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
70945         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
70946         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
70947         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
70948         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
70949         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
70950         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
70951         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
70952         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
70953         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
70954         undef any previous version and define our own version, for
70955         simplicity and consistency with the new macros for types.
70956         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
70957         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
70958         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
70959         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
70960         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
70961         @WINT_T_SUFFIX@ to keep things simple here.
70962         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
70963         Simplify by assuming typical 8/16/32/64 host, since we're
70964         already doing that elsewhere anyway.
70965         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
70966         and assume long long int is 64 bits if available.  This
70967         speeds up 'configure'.
70968
70969 2006-07-01  Eric Blake  <ebb9@byu.net>
70970
70971         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
70972         Reported by Andreas Buening.
70973
70974 2006-07-01  Eric Blake  <ebb9@byu.net>
70975
70976         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
70977
70978 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
70979
70980         * lib/getaddrinfo.c: fixed typo
70981
70982 2006-06-29  Jim Meyering  <jim@meyering.net>
70983
70984         * modules/strftime (Maintainer): Add my name, since with the
70985         FPRINTFTIME changes strftime.c has forked from glibc.
70986
70987 2006-06-29  Eric Blake  <ebb9@byu.net>
70988
70989         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
70990
70991 2006-06-29  Eric Blake  <ebb9@byu.net>
70992
70993         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
70994
70995 2006-06-29  Eric Blake  <ebb9@byu.net>
70996
70997         * lib/stat_.h: New file.
70998
70999 2006-06-29  Eric Blake  <ebb9@byu.net>
71000
71001         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
71002         unused static function.
71003
71004 2006-06-29  Eric Blake  <ebb9@byu.net>
71005
71006         * doc/functions.texi (Function Portability): Document missing lstat
71007         on mingw.
71008
71009 2006-06-29  Eric Blake  <ebb9@byu.net>
71010
71011         * MODULES.html.sh: Add sys_stat.
71012         * modules/sys_stat: New module.
71013         * modules/mkstemp (Depends-on): Add sys_stat.
71014
71015 2006-06-29  Derek R. Price  <derek@ximbiot.com>
71016
71017         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
71018
71019 2006-06-29  Derek R. Price  <derek@ximbiot.com>
71020
71021         * m4/c-bs-a.m4: Removed.
71022
71023 2006-06-29  Derek R. Price  <derek@ximbiot.com>
71024
71025         * lib/strftime.c: Assume strftime() exists.
71026
71027 2006-06-29  Derek Price  <derek@ximbiot.com>
71028
71029         * modules/c-bs-a: Removed - \a is C89.
71030         * MODULES.html.sh: Remove c-bs-a.
71031
71032 2006-06-29  Bruno Haible  <bruno@clisp.org>
71033
71034         * modules/wcwidth (License): Change to LGPL.
71035
71036 2006-06-28  Simon Josefsson  <jas@extundo.com>
71037
71038         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
71039         on _WIN32.
71040
71041         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
71042         getnameinfo.
71043
71044 2006-06-28  Simon Josefsson  <jas@extundo.com>
71045
71046         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
71047
71048 2006-06-28  Simon Josefsson  <jas@extundo.com>
71049
71050         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
71051         functions there.  It will succeed on Windows XP, but on Windows
71052         2000 and (presumably) earlier, it will fail, and use the internal
71053         re-implementation.
71054         (use_win32_p): New function.
71055         (getaddrinfo): Use strtoul on servname, to support numeric ports.
71056         Support AI_NUMERICSERV to disable getservbyname.
71057         (getnameinfo): New function, only supports
71058         NI_NUMERICHOST|NI_NUMERICSERV for now.
71059
71060         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
71061         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
71062         getnameinfo.
71063
71064 2006-06-28  Eric Blake  <ebb9@byu.net>
71065
71066         * modules/wcwidth: New file.
71067         * modules/mbchar (Depends-on): Add wcwidth.
71068         * modules/mbswidth (Depends-on): Add wcwidth.
71069         * MODULES.html.sh: Add wcwidth.
71070
71071 2006-06-28  Eric Blake  <ebb9@byu.net>
71072
71073         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
71074         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
71075
71076 2006-06-28  Eric Blake  <ebb9@byu.net>
71077
71078         * lib/xvasprintf.h: Fix comments.
71079
71080 2006-06-28  Eric Blake  <ebb9@byu.net>
71081
71082         * lib/mbchar.h (wcwidth): Include wcwidth.h.
71083         * lib/mbswidth.c (wcwidth): Move from here...
71084         * lib/wcwidth.h: ...to this new file.
71085
71086 2006-06-28  Derek R. Price  <derek@ximbiot.com>
71087
71088         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
71089
71090         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
71091         it's obsolete.
71092         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
71093
71094 2006-06-28  Derek R. Price  <derek@ximbiot.com>
71095
71096         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
71097         Autoconf 2.60 says this stuff was obsolete.
71098
71099 2006-06-28  Bruno Haible  <bruno@clisp.org>
71100
71101         * modules/wcwidth (Files): Add m4/wchar_t.m4.
71102
71103 2006-06-28  Bruno Haible  <bruno@clisp.org>
71104
71105         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
71106         gt_TYPE_WCHAR_T.
71107
71108 2006-06-28  Bruno Haible  <bruno@clisp.org>
71109
71110         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
71111         declaration for wcwidth.
71112         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
71113
71114 2006-06-28  Bruno Haible  <bruno@clisp.org>
71115
71116         * lib/mkdtemp.c [MINGW]: Include <io.h>.
71117         (mkdir): Define using _mkdir.
71118
71119 2006-06-28  Bruno Haible  <bruno@clisp.org>
71120
71121         * lib/getaddrinfo.h: Fix POSIX URL.
71122         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
71123         _WIN32.
71124         (use_win32_p): Make static.
71125         (getaddrinfo): Reject service name if it is empty or does not consist
71126         solely of decimal digits, or if its value is > 65535.
71127         (getnameinfo): Remove useless casts.
71128
71129 2006-06-27  Simon Josefsson  <jas@extundo.com>
71130
71131         * modules/sys_select: New file, suggested by Bruno Haible, Paul
71132         Eggert and Martin Lambers.
71133
71134 2006-06-27  Simon Josefsson  <jas@extundo.com>
71135
71136         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
71137         Eggert and Martin Lambers.
71138
71139 2006-06-27  Bruno Haible  <bruno@clisp.org>
71140
71141         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
71142         result to 0, not to empty.
71143         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
71144
71145 2006-06-27  Bruno Haible  <bruno@clisp.org>
71146
71147         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
71148
71149 2006-06-26  Simon Josefsson  <jas@extundo.com>
71150
71151         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
71152         present.
71153
71154 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
71155
71156         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
71157         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
71158         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
71159
71160 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
71161
71162         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
71163
71164 2006-06-26  Bruno Haible  <bruno@clisp.org>
71165
71166         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
71167
71168 2006-06-26  Bruno Haible  <bruno@clisp.org>
71169
71170         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
71171
71172 2006-06-26  Bruno Haible  <bruno@clisp.org>
71173
71174         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
71175         SGI C compiler in pre-C99 mode.
71176         Suggested by Mark D. Baushke and Larry Jones.
71177
71178 2006-06-26  Bruno Haible  <bruno@clisp.org>
71179
71180         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
71181         WCHAR_MAX.
71182         Reported by Mark D. Baushke and Larry Jones.
71183
71184 2006-06-26  Bruno Haible  <bruno@clisp.org>
71185
71186         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
71187         in pre-C99 mode.
71188         Suggested by Mark D. Baushke and Larry Jones.
71189
71190 2006-06-23  Simon Josefsson  <jas@extundo.com>
71191             Bruno Haible  <bruno@clisp.org>
71192
71193         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
71194         Emit mostlyclean-local rule.
71195         (func_emit_tests_Makefile_am): Likewise.
71196         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
71197
71198 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
71199
71200         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
71201
71202 2006-06-23  Bruno Haible  <bruno@clisp.org>
71203
71204         * tests/test-stdint.c: Update to match ISO C 99 Technical
71205         Corrigendum 1.
71206
71207 2006-06-23  Bruno Haible  <bruno@clisp.org>
71208
71209         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
71210
71211 2006-06-23  Bruno Haible  <bruno@clisp.org>
71212
71213         * lib/stdint_.h: Treat IRIX like OpenBSD.
71214
71215 2006-06-23  Bruno Haible  <bruno@clisp.org>
71216
71217         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
71218         ISO C 99 Technical Corrigendum 1.
71219
71220 2006-06-22  Simon Josefsson  <jas@extundo.com>
71221
71222         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
71223         MinGW.
71224
71225 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
71226
71227         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
71228         needed.  Some compiler complained about some of them.  Problem reported
71229         by Larry Jones in
71230         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
71231
71232 2006-06-21  Simon Josefsson  <jas@extundo.com>
71233
71234         * tests/test-getaddrinfo.c: New file.
71235
71236         * modules/getaddrinfo-tests: New file.
71237
71238         * MODULES.html.sh: Add inet_pton.
71239
71240         * modules/inet_pton: New file.
71241
71242 2006-06-21  Simon Josefsson  <jas@extundo.com>
71243
71244         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
71245         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
71246         of using the (limited) gnulib implementation on Windows XP.
71247
71248         * m4/inet_pton.m4: New file.
71249
71250 2006-06-21  Simon Josefsson  <jas@extundo.com>
71251
71252         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
71253         variable.
71254
71255         * lib/socket_.h: Don't define WINVER.
71256
71257         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
71258         slightly modified to work in gnulib.
71259
71260 2006-06-21  Simon Josefsson  <jas@extundo.com>
71261
71262         * doc/gnulib.texi (Windows sockets): Add.
71263
71264 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
71265
71266         * lib/read-file.c (fread_file): Start with buffer allocation of
71267         0 bytes rather than 1 byte; this simplifies the code.
71268         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
71269         code to free buffer and save/restore errno.
71270         (internal_read_file): Remove unused local.
71271
71272 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
71273
71274         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
71275         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
71276         Problem reported by Denis Excoffier in
71277         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
71278
71279 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
71280
71281         * modules/sys_socket, modules/socklen: Include sys/types since
71282         FreeBSD 4.x's sys/socket.h needs it.
71283
71284 2006-06-19  Simon Josefsson  <jas@extundo.com>
71285
71286         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
71287
71288 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
71289
71290         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
71291
71292 2006-06-19  Bruno Haible  <bruno@clisp.org>
71293
71294         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
71295         and FULL_PATH_INTTYPES_H in angle brackets.
71296         Reported by Mark D. Baushke <mdb@gnu.org>.
71297
71298 2006-06-17  Eric Blake  <ebb9@byu.net>
71299
71300         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
71301         errno.
71302
71303 2006-06-17  Bruno Haible  <bruno@clisp.org>
71304
71305         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
71306         <sys/inttypes.h>.
71307
71308 2006-06-17  Bruno Haible  <bruno@clisp.org>
71309
71310         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
71311         whether errno is declared. Assume <errno.h> declares errno.
71312
71313 2006-06-17  Bruno Haible  <bruno@clisp.org>
71314
71315         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
71316
71317 2006-06-17  Bruno Haible  <bruno@clisp.org>
71318
71319         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
71320         problem on Solaris 2.5.1.
71321
71322 2006-06-16  Eric Blake  <ebb9@byu.net>
71323
71324         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
71325         * lib/unicodeio.c [!defined errno]: Likewise.
71326         * lib/strtol.c [!defined errno]: Likewise.
71327         * lib/strtod.c [!defined errno]: Likewise.
71328
71329 2006-06-15  Eric Blake  <ebb9@byu.net>
71330
71331         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
71332
71333 2006-06-15  Eric Blake  <ebb9@byu.net>
71334
71335         * config/srclist.txt (ssize_t.m4): Lose sync.
71336
71337 2006-06-15  Bruno Haible  <bruno@clisp.org>
71338
71339         * modules/stdint (Files): Include m4/full-header-path.m4,
71340         m4/size_max.m4, m4/wchar_t.m4.
71341         (Makefile.am): Many more substitutions.
71342         * modules/stdint-tests: New file.
71343         * tests/test-stdint.c: New file.
71344
71345 2006-06-15  Bruno Haible  <bruno@clisp.org>
71346
71347         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
71348         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
71349         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
71350         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
71351         gl_CHECK_TYPE_SAME): New macros.
71352
71353 2006-06-15  Bruno Haible  <bruno@clisp.org>
71354
71355         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
71356
71357 2006-06-15  Bruno Haible  <bruno@clisp.org>
71358
71359         * lib/stdint_.h: Rewritten to be fully auto-configured.
71360         Fixes bug on HP-UX/IA64.
71361
71362 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
71363
71364         * lib/getdate.y (__attribute__): Don't define if already defined.
71365         Problem reported by Larry Jones.
71366         * lib/utimens.c (__attribute__): Likewise.
71367
71368 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
71369
71370         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
71371         reported by Andreas Schwab.
71372
71373 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71374             Bruno Haible  <bruno@clisp.org>
71375
71376         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
71377         check for the declaration of strnlen and a run test that exposes the
71378         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
71379         rpl_strndup.
71380
71381 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71382             Bruno Haible  <bruno@clisp.org>
71383
71384         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
71385
71386 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71387
71388         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
71389         compile test, for Tru64 4.0D.
71390
71391 2006-05-28  Karl Berry  <karl@gnu.org>
71392
71393         * config/srclist.txt (printf-args.c): lose sync.
71394
71395 2006-05-26  Martin Lambers  <marlam@marlam.de>
71396
71397         * lib/getpass.c: Updates the test for the native W32 API, and adds
71398         missing includes, thus fixing compilation warnings.
71399
71400 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
71401
71402         * lib/exclude.c (exclude_fnmatch): New function.
71403         (excluded_file_name): Call exclude_fnmatch.
71404         * lib/exclude.h (excluded_file_name): New prototype
71405
71406 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
71407
71408         * lib/tempname.c (small_open, large_open): New macros.
71409         (__open, __open64) [!_LIBC]: Remove.
71410         (__gen_tempname): Use small_open and large_open instead of __open
71411         and __open64.  This fixes a portability bug on HP-UX 11.11i
71412         reported by Simon Wing-Tang in
71413         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
71414
71415 2006-05-24  Bruno Haible  <bruno@clisp.org>
71416
71417         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
71418         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
71419         Reported by Thorsten Maerz <torte@netztorte.de> via
71420         Aaron Stone <aaron@serendipity.cx>.
71421
71422 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
71423
71424         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
71425         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
71426         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
71427         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
71428         not really conditional on the cache.
71429         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
71430
71431 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
71432
71433         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
71434         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
71435         (my_usleep): Don't mishandle maximum value.
71436
71437 2006-05-19  Jim Meyering  <jim@meyering.net>
71438
71439         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
71440
71441 2006-05-17  Bruno Haible  <bruno@clisp.org>
71442
71443         Cygwin portability.
71444         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
71445
71446 2006-05-17  Bruno Haible  <bruno@clisp.org>
71447
71448         * lib/stdint_.h: Fix recognition of Cygwin.
71449
71450 2006-05-15  Bruno Haible  <bruno@clisp.org>
71451
71452         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
71453         on libtool patch by Ralf Wildenhues.
71454
71455 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
71456
71457         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
71458         test for C99 conformance; (bool) 0.5 is an integer constant
71459         expression, but (bool) -0.5 is not.  Problem reported by Fedor
71460         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
71461
71462 2006-05-11  Simon Josefsson  <jas@extundo.com>
71463
71464         * m4/xvasprintf.m4: Fix obvious typo.
71465
71466 2006-05-11  Jim Meyering  <jim@meyering.net>
71467
71468         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
71469         James Lemley.
71470
71471 2006-05-10  Simon Josefsson  <jas@extundo.com>
71472
71473         * lib/md4.c: Typo fix, update copyright years.
71474         (K1, K2): Don't use L because it turn computations into 64-bit on
71475         64-bit platforms.
71476
71477 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
71478
71479         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
71480         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
71481         unwanted sign propagation, e.g., on hosts with 64-bit int.
71482         There still are some problems with reeelly weird theoretical hosts
71483         (e.g., 33-bit int) but it's not worth worrying about now.
71484         * lib/sha1.c (rol): Likewise.
71485         (K1, K2, K3, K4): Remove unnecessary L suffix.
71486
71487 2006-05-10  Bruno Haible  <bruno@clisp.org>
71488
71489         * lib/des.c: Cast to avoid warnings.
71490
71491 2006-05-09  Bruno Haible  <bruno@clisp.org>
71492
71493         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
71494         (Depends-on): Depend also on xsize, stdarg.
71495         (configure.ac): Add gl_XVASPRINTF.
71496
71497 2006-05-09  Bruno Haible  <bruno@clisp.org>
71498
71499         * m4/xvasprintf.m4: New file.
71500
71501 2006-05-09  Bruno Haible  <bruno@clisp.org>
71502
71503         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
71504         (EOVERFLOW): Define fallback value.
71505         (xstrcat): New function.
71506         (xvasprintf): Recognize the special case of a string concatenation.
71507
71508 2006-05-08  Eric Blake  <ebb9@byu.net>
71509
71510         * gnulib-tool (func_version): Base copyright year on CVS date.
71511         (func_emit_copyright_notice): New function.
71512         (func_emit_lib_Makefile_am): Use it.
71513         (func_emit_tests_Makefile_am): Likewise.
71514         (func_import): Likewise.
71515
71516 2006-05-08  Bruno Haible  <bruno@clisp.org>
71517
71518         * modules/stdarg: New file.
71519         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
71520
71521 2006-05-08  Bruno Haible  <bruno@clisp.org>
71522
71523         * m4/stdarg.m4: New file, from GNU gettext.
71524
71525 2006-05-08  Bruno Haible  <bruno@clisp.org>
71526
71527         * config/srclist.txt (build-aux/config.rpath): different from latest
71528         release.
71529
71530 2006-05-08  Bruno Haible  <bruno@clisp.org>
71531
71532         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
71533
71534 2006-05-05  Jim Meyering  <jim@meyering.net>
71535
71536         * m4/warning.m4: New file, derived from bison's file by the same name.
71537
71538 2006-05-03  Bruno Haible  <bruno@clisp.org>
71539
71540         * lib/stdint_.h: Shorter URL.
71541         * lib/inttypes.h: Likewise.
71542
71543 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
71544
71545         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
71546
71547 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
71548
71549         * lib/verify.h: Document the internals better.  Most of this change
71550         was written by Bruno Haible.
71551
71552 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
71553
71554         * doc/verify.texi: New file, partly based on a proposal by
71555         Bruno Haible.
71556
71557 2006-05-02  Bruno Haible  <bruno@clisp.org>
71558
71559         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
71560         test from here...
71561         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
71562
71563 2006-04-29  Bruno Haible  <bruno@clisp.org>
71564
71565         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
71566         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
71567
71568 2006-04-29  Bruno Haible  <bruno@clisp.org>
71569
71570         * gnulib-tool: Make --update option actually work.
71571
71572 2006-04-29  Bruno Haible  <bruno@clisp.org>
71573
71574         * doc/gcd.texi: New file.
71575         * doc/gnulib.texi: Include it.
71576
71577 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
71578
71579         * lib/getdate.y (get_date): When adding relative date, start with the
71580         initial time, not with the result of the first mktime call.
71581
71582 2006-04-25  Bruno Haible  <bruno@clisp.org>
71583
71584         * gnulib-tool (func_import): Output the include directives in three
71585         blocks, sorted separately.
71586         Reported by Ben Pfaff <blp@cs.stanford.edu>.
71587
71588 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
71589
71590         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
71591         to define main with arguments, for C++.  Reported by Eric Blake.
71592         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
71593         Prefer 'int main ()' to 'int main (void)', for C++.
71594         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
71595         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
71596         for 'main', for C99 and C++.
71597
71598 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
71599
71600         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
71601         Don't assume that exit status -1 is valid.
71602         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
71603         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
71604         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
71605         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
71606         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
71607         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
71608         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
71609         functions can be used without declaring them, or that you can
71610         exit with status -1.
71611         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
71612
71613 2006-04-24  Karl Berry  <karl@gnu.org>
71614
71615         * config/srclist.txt (longdouble.m4): sync lost.
71616
71617 2006-04-24  Eric Blake  <ebb9@byu.net>
71618
71619         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
71620
71621 2006-04-24  Bruno Haible  <bruno@clisp.org>
71622
71623         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
71624         poll() implementation in AIX.
71625         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
71626
71627 2006-04-24  Bruno Haible  <bruno@clisp.org>
71628
71629         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
71630         assigned exactly once.
71631
71632 2006-04-23  Claudio Fontana  <claudio@gnu.org>
71633             Bruno Haible  <bruno@clisp.org>
71634
71635         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
71636         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
71637         for AM_CPPFLAGS.
71638
71639 2006-04-23  Bruno Haible  <bruno@clisp.org>
71640
71641         * modules/copy-file: Depend on unistd.
71642         * modules/execute: Likewise.
71643         * modules/fatal-signal: Likewise.
71644         * modules/findprog: Likewise.
71645         * modules/mkdtemp : Likewise.
71646         * modules/pipe: Likewise.
71647         * modules/wait-process: Likewise.
71648
71649 2006-04-23  Bruno Haible  <bruno@clisp.org>
71650
71651         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
71652         condition was already detected.
71653         Reported by Ben Pfaff <blp@cs.stanford.edu>.
71654
71655 2006-04-23  Bruno Haible  <bruno@clisp.org>
71656
71657         * lib/copy-file.c: Include <unistd.h> unconditionally.
71658         * lib/execute.c: Likewise.
71659         * lib/fatal-signal.c: Likewise.
71660         * lib/findprog.c: Likewise.
71661         * lib/mkdtemp.c: Likewise.
71662         * lib/pipe.h: Likewise.
71663         * lib/pipe.c: Likewise.
71664         * lib/wait-process.h: Likewise.
71665
71666 2006-04-23  Bruno Haible  <bruno@clisp.org>
71667
71668         * gnulib-tool (func_usage): Fix --import description. Document
71669         --update.
71670         (func_import): Create temporary file in a temporary directory, if
71671         --dry-run is specified. Silence errors from 'grep' when there are no
71672         m4 files in $m4dir.
71673         (func_create_testdir): Silence errors from 'grep' when there are no
71674         m4 files in $m4dir.
71675         Reported by Karl Berry <karl@freefriends.org>.
71676
71677 2006-04-20  Bruno Haible  <bruno@clisp.org>
71678
71679         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
71680         one argument, so that the code will be portable to Autoconf 2.60.
71681         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
71682         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
71683         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
71684
71685 2006-04-19  Derek Price  <derek@ximbiot.com>
71686             Eric Blake  <ebb9@byu.net>
71687
71688         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
71689         rather than "/full/path.h".  Update comment to match.  Shorten &
71690         generalize m4_translit call via AS_TR_CPP.
71691
71692 2006-04-19  Derek Price  <derek@ximbiot.com>
71693             Eric Blake  <ebb9@byu.net>
71694
71695         * lib/inttypes.h: Correct grammar in comment.
71696
71697 2006-04-18  Derek Price  <derek@ximbiot.com>
71698             Paul Eggert  <eggert@cs.ucla.edu>
71699
71700         * modules/inttypes: New file.
71701         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
71702
71703 2006-04-18  Derek Price  <derek@ximbiot.com>
71704             Paul Eggert  <eggert@cs.ucla.edu>
71705
71706         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
71707         New files.
71708
71709 2006-04-18  Derek Price  <derek@ximbiot.com>
71710             Paul Eggert  <eggert@cs.ucla.edu>
71711
71712         * lib/inttypes.h: New file.
71713         * lib/strtoimax.c: Assume <inttypes.h>.
71714
71715 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
71716
71717         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
71718         isn't mounted.  Problem reported by Kir Kolyshkin.
71719
71720 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
71721
71722         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
71723         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
71724         Derek R. Price.
71725         * lib/regex.h (RE_DUP_MAX): Update comment to match current
71726         implementation.
71727
71728 2006-04-12  Eric Blake  <ebb9@byu.net>
71729
71730         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
71731         is now done automatically by the corresponding Autoconf macro.
71732
71733 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
71734
71735         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
71736         time_r.h.
71737
71738 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
71739
71740         Merge regex changes from libc, removing some of our
71741         POSIX-conformance changes that were rejected and redoing them in a
71742         less-intrusive way.
71743
71744         * lib/regcomp.c (re_compile_internal, init_dfa):
71745         Length arg is now size_t, not Idx.  All uses changed.
71746         (peek_token): Forward decl now says internal_function.
71747         (__re_error_msgid, __re_error_msgid_idx):
71748         Now static rather than extern with attribute_hidden.
71749         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
71750         For some reason libc prefers K&R style defns for external functions.
71751         (regerror) [!defined _LIBC]: Likewise.
71752         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
71753         (seek_collating_symbol_entry, lookup_collation_sequence_value):
71754         (build_range_exp, build_collating_symbol):
71755         Use K&R-style defn.
71756         (re_compile_fastmap): Use '\0' to memset, not 0.
71757         (utf8_sb_map): Make the calculations more obvious.
71758         (init_dfa, parse_bracket_exp, build_charclass_op):
71759         Call calloc and cast result, as glibc does.
71760         (init_word_char, fetch_token, peek_token, peek_token_bracket):
71761         (build_range_exp, build_collating_symbol):
71762         Now internal functions.
71763
71764         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
71765
71766         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
71767         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
71768         Don't depend on VMS; depend on __VMS instead, for POSIX
71769         namespace cleanness.
71770         (regoff_t): Define to ssize_t, not long int.
71771
71772         Remove the REG_ macros named below.  Instead, make the old names
71773         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
71774         __USE_GNU_REGEX.
71775         (REG_BACKSLASH_ESCAPE_IN_LISTS):
71776         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
71777         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
71778         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
71779         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
71780         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
71781         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
71782         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
71783         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
71784         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
71785         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
71786         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
71787         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
71788         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
71789         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
71790         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
71791         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
71792         (REG_NREGS):
71793         Remove.  All uses replaced by the old RE_* names.
71794         (RE_BACKSLASH_ESCAPE_IN_LISTS):
71795         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
71796         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
71797         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
71798         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
71799         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
71800         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
71801         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
71802         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
71803         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
71804         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
71805         Don't bother having these macros be independent of each others'
71806         values, since they no longer exist in the POSIX name space.
71807
71808         Rename the following member names back to their old names,
71809         unless !__USE_GNU_REGEX.  All uses changed back.
71810         (buffer): Renamed from re_buffer.
71811         (allocated): Renamed from re_allocated.
71812         (used): Renamed from re_used.
71813         (syntax): Renamed from re_syntax.
71814         (fastmap): Renamed from re_fastmap.
71815         (translate): Renamed from re_translate.
71816         (can_be_null): Renamed from re_can_be_null.
71817         (regs_allocated): Renamed from re_regs_allocated.
71818         (fastmap_accurate): Renamed from re_fastmap_accurate.
71819         (no_sub): Renamed from re_no_sub.
71820         (not_bol): Renamed from re_not_bol.
71821         (not_eol): Renamed from re_not_eol.
71822         (newline_anchor): Renamed from re_newline_anchor.
71823         (num_regs): Renamed from rm_num_regs.
71824         (start): Renamed from rm_start.
71825         (end): Renamed from rm_end.
71826
71827         (free_state): Move up a bit.
71828
71829         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
71830         #define to be empty.
71831         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
71832         when that is what is intended.
71833         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
71834         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
71835         (MAX): New macro.
71836         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
71837         All uses changed back to re_malloc, etc.  It's now the caller's
71838         responsibility to check for overflow; all callers changed.
71839         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
71840         (re_x2nrealloc): Remove.
71841         (free_state): Remove decl.
71842
71843         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
71844         (re_set_registers, re_exec):
71845         Use K&R-style defn.
71846
71847         2006-01-31  Roland McGrath  <roland@redhat.com>
71848
71849         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
71850         Reported by Mike Frysinger <vapier@gentoo.org>.
71851
71852         2006-01-15  Andreas Jaeger  <aj@suse.de>
71853
71854         [BZ #1950]
71855         * lib/regex_internal.c (re_string_reconstruct): Adjust for
71856         build_wcs_upper_buffer change.
71857         (build_wcs_upper_buffer): Change return type.
71858
71859         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
71860
71861         * lib/regex_internal.h: Include <stdint.h> if available.
71862
71863         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
71864
71865         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
71866
71867         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
71868
71869         * lib/regcomp.c: Adjust for changed secondary hash function.
71870
71871         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
71872
71873         * lib/regex.h: Pretty printing.
71874         Clean up namespace a bit.
71875
71876         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
71877
71878         * lib/regexec.c (update_cur_sifted_state, check_arrival,
71879         check_arrival_add_next_nodes): Avoid using uninitialized variable.
71880
71881         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
71882                     Ulrich Drepper  <drepper@redhat.com>
71883
71884         [BZ #1302]
71885         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
71886         changed.
71887         (bitset_word_t): Renamed from bitset_word.  All uses changed.
71888
71889         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
71890
71891         [BZ #281]
71892         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
71893         * lib/regcomp.c: Remove unnecessary uses of
71894         unsigned RE_TRANSLATE_TYPE.
71895         * lib/regex_internal.h: Likewise.
71896         * lib/regex_internal.c: Likewise.
71897         * lib/regexec.c: Likewise.
71898         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
71899
71900         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
71901
71902         * lib/regexec.c (find_recover_state): Remove unnecessary
71903         initialization.
71904         (transit_state_bkref): Make DFA a const pointer.
71905         (get_subexp): Likewise.
71906         (check_arrival): Likewise.
71907         (update_cur_sifted_state): Likewise.
71908         (re_search_internal): Likewise.
71909         (prune_impossible_nodes): Likewise.
71910         (acquire_init_state_context): Likewise.
71911         (proceed_next_node): Likewise.
71912         (set_regs): Likewise.
71913         (free_fail_stack_return): Likewise.
71914         (check_arrival_expand_ecl): Mark DFA parameter as const.
71915         (check_arrival_expand_ecl_sub): Likewise.
71916         (check_subexp_limits): Likewise.
71917         (sub_epsilon_src_nodes):  Likewise.
71918         (add_epsilon_src_nodes):  Likewise.
71919         (merge_state_array): Likewise.
71920         (update_regs): Likewise.
71921         (build_trtable): Likewise.
71922         (sift_states_backward): Mark MCTX parameter as const.
71923         (build_sifted_states): Likewise.
71924         (update_cur_sifted_state): Likewise.
71925         (sift_states_mkref): Likewise.
71926         (check_arrival_expand_ecl): Mark eclosure as const.
71927         (check_dst_limits_calc_pos_1): Likewise.
71928         * lib/regex_internal.h (re_match_context_t): Make dfa a const
71929         pointer.
71930
71931         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
71932
71933         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
71934         (transit_state_sb): Likewise.
71935         (transit_state_mb): Likewise.
71936         (sift_states_iter_mb): Likewise.
71937         (check_arrival_add_next_nodes): Likewise.
71938         (check_node_accept_bytes): Change first parameter to pointer-to-const.
71939         [_LIBC] (re_search_2_stub): Use mempcpy.
71940
71941         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
71942         mbrtowc for very simple UTF-8 case.
71943
71944         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
71945         a pointer-to-const.
71946         (re_acquire_state_context): Likewise.
71947         * lib/regex_internal.h: Adjust prototypes.
71948
71949         * lib/regex.c: Prevent using C++ compilers.
71950
71951         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
71952         (re_acquire_state_context): Likewise.
71953
71954 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
71955
71956         * modules/regex (Depends-on): Add ssize_t.
71957
71958 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
71959
71960         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
71961         translation table.
71962
71963 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
71964
71965         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
71966
71967 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
71968             Bruno Haible  <bruno@clisp.org>
71969
71970         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
71971         <sys/types.h> and <inttypes.h>.
71972
71973 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71974
71975         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
71976         `__error_t_defined', so argp.h will not typedef the former.
71977
71978 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
71979
71980         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
71981         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
71982         glibc names.  Even if glibc is changed to conform to POSIX, the
71983         traditional names will be available anyway, since regex depends on
71984         the extensions module.  Also, fix a longstanding typo in the
71985         implementation of Spencer ERE test #75 from grep 2.3.  Problems
71986         reported by Emanuele Giaquinta.  Also, change sense of cached
71987         variable, so that the message makes sense.
71988
71989 2006-03-24  Simon Josefsson  <jas@extundo.com>
71990
71991         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
71992         including some doc fixes.
71993         (base64_encode_alloc): Fix +1 bug on allocation failures.
71994
71995 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71996
71997         * lib/base64.c (base64_encode): Do not read past end of array with
71998         unsanitized input on systems with CHAR_BIT > 8.
71999
72000 2006-03-24  Eric Blake  <ebb9@byu.net>
72001
72002         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
72003
72004 2006-03-22  Karl Berry  <karl@gnu.org>
72005
72006         * config/srclist.txt (*setenv.[ch]): get from coreutils.
72007         * config/srclistvars.sh (COREUTILS): new var.
72008
72009 2006-03-17  Jim Meyering  <jim@meyering.net>
72010
72011         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
72012         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
72013
72014 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
72015
72016         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
72017         no longer needs it.  Instead, check that regoff_t is as least
72018         as wide as ptrdiff_t.
72019
72020         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
72021         so that our regex.h stays compatible with the installed regex.
72022         This is helpful for installers who configure --without-included-regex.
72023         Problem reported by Emanuele Giaquinta.
72024
72025 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
72026
72027         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
72028         Typedef to long int, not to off_, as POSIX will likely change
72029         in that direction.
72030
72031 2006-03-15  Eric Blake  <ebb9@byu.net>
72032
72033         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
72034
72035 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
72036
72037         * lib/argp-help.c (validate_uparams): Fix typo
72038         * lib/argp-parse.c (argp_default_options): Consistently begin help
72039         messages with a lowercase letter.
72040
72041 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
72042
72043         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
72044         overrun buffers and shouldn't be used (much as gets shouldn't be
72045         used).
72046         * lib/time_r.c (asctime_r, ctime_r): Likewise.
72047
72048 2006-03-08  Simon Josefsson  <jas@extundo.com>
72049
72050         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
72051         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
72052
72053 2006-03-08  Simon Josefsson  <jas@extundo.com>
72054
72055         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
72056         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
72057
72058 2006-03-08  Simon Josefsson  <jas@extundo.com>
72059
72060         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
72061         signal that configure disabled the device.
72062
72063 2006-03-08  Simon Josefsson  <jas@extundo.com>
72064
72065         * build-aux/maint.mk: Fix refresh-po, to handle no translated
72066         languages.
72067
72068 2006-03-07  Simon Josefsson  <jas@extundo.com>
72069
72070         * modules/getopt (Depends-on): Add unistd.
72071
72072         * modules/unistd: New file.
72073
72074 2006-03-07  Simon Josefsson  <jas@extundo.com>
72075
72076         * modules/gc-random: New file.
72077
72078 2006-03-07  Simon Josefsson  <jas@extundo.com>
72079
72080         * m4/unistd_h.m4: New file.
72081
72082 2006-03-07  Simon Josefsson  <jas@extundo.com>
72083
72084         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
72085         test to be side-effect free by storing the result in the cache
72086         variable gl_cv_lib_readline, and moving the assignment of
72087         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
72088         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
72089
72090 2006-03-07  Simon Josefsson  <jas@extundo.com>
72091
72092         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
72093         error on missing devices (the functions will return an error).
72094
72095         * m4/gc.m4: Move random stuff to gc-random.m4
72096
72097 2006-03-07  Simon Josefsson  <jas@extundo.com>
72098
72099         * lib/unistd_.h: New file.
72100
72101 2006-03-07  Simon Josefsson  <jas@extundo.com>
72102
72103         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
72104
72105 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
72106
72107         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
72108         Problem reported by Juan Manuel Guerrero.
72109
72110 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
72111
72112         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
72113         the unistd module.
72114         * lib/getlogin_r.c: Likewise.
72115         * lib/getlogin_r.h: Likewise.
72116         * lib/glob.c: Likewise.
72117         * lib/pagealign_alloc.c: Likewise.
72118         * lib/unistd_.h: Remove; no longer needed.
72119
72120 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
72121
72122         * MODULES.html.sh (Support for systems lacking POSIX:2001):
72123         Add unistd.
72124         * modules/c-stack (Depends-on): Add unistd.
72125         * modules/getlogin_r: Likewise.
72126         * modules/glob: Likewise.
72127         * modules/pagealign_alloc: Likewise.
72128         * modules/unistd (Files): Remove lib/unistd_.h.
72129         (EXTRA_DIST): Remove.
72130         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
72131         need unistd_.h.
72132         (MOSTLYCLEANFILES): Remove unistd.h-t.
72133
72134 2006-03-03  Simon Josefsson  <jas@extundo.com>
72135
72136         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
72137
72138 2006-03-03  Simon Josefsson  <jas@extundo.com>
72139
72140         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
72141         libidn and bison.
72142
72143 2006-03-03  Simon Josefsson  <jas@extundo.com>
72144
72145         * build-aux/maint.mk: Add indent target.
72146
72147 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
72148
72149         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
72150         our replacement poll.h in any case, to avoid a differing
72151         declaration from a system header.  Seen on AIX.
72152
72153 2006-03-01  Simon Josefsson  <jas@extundo.com>
72154
72155         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
72156         <kasal@ucw.cz>.
72157
72158 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
72159
72160         * modules/gettime (Depends-on): Add extensions module.
72161         * modules/nanosleep (Depends-on): Likewise.
72162         * modules/settime (Depends-on): Likewise.
72163
72164 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
72165
72166         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
72167         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
72168         pedantically.
72169         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
72170         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
72171
72172         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
72173         not "==".  Reported by Ralf Wildenhues.
72174
72175 2006-03-01  Karl Berry  <karl@gnu.org>
72176
72177         * doc/Copyright/request-*: new files, synced from gnuorg.
72178
72179 2006-03-01  Karl Berry  <karl@gnu.org>
72180
72181         * config/srclist.txt (Copyright/*): new entries.
72182
72183 2006-02-28  Simon Josefsson  <jas@extundo.com>
72184
72185         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
72186
72187 2006-02-27  Simon Josefsson  <jas@extundo.com>
72188
72189         * lib/base64.h: Indent #define's.  From Jim Meyering
72190         <jim@meyering.net>.
72191
72192 2006-02-27  Jim Meyering  <jim@meyering.net>
72193
72194         Revert the change of 2006-02-24, so these files can continue
72195         to be sync'd from gettext.
72196         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
72197         of `config.h'.
72198
72199 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
72200
72201         * modules/intprops: New file.
72202         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
72203         Add intprops.
72204         * modules/getloadavg (Files): Remove lib/intprops.h.
72205         (Depends-on): Add intprops.
72206         * modules/human: Likewise.
72207         * modules/inttostr: Likewise.
72208         * modules/openat: Likewise.
72209         * modules/sig2str: Likewise.
72210         * modules/userspec: Likewise.
72211         * modules/utimecmp: Likewise.
72212         * modules/xnanosleep: Likewise.
72213         * modules/xstrtol: Likewise.
72214
72215 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
72216
72217         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
72218         * modules/lock-tests (TESTS): Use $(EXEEXT).
72219         * modules/tls-tests: Likewise.
72220         * modules/argp-tests: Likewise.
72221         (check_PROGRAMS): New var, replacing...
72222         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
72223
72224 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72225
72226         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
72227         `config.h'.
72228
72229 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
72230
72231         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
72232
72233 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72234
72235         Sync from coreutils.
72236         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
72237         gl_CHDIR_SAFER.
72238
72239 2006-02-22  Jim Meyering  <jim@meyering.net>
72240
72241         Sync from coreutils.
72242         * m4/chdir-safer.m4: New file.
72243
72244 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
72245
72246         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
72247         AT_FDCWD exceeds INT_MAX.
72248         * lib/openat.h (AT_FDCWD): Likewise.
72249
72250 2006-02-17  Eric Blake  <address@hidden>
72251
72252         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
72253
72254 2006-02-16  Simon Josefsson  <jas@extundo.com>
72255
72256         * modules/getaddrinfo (Depends-on): Add sys_socket.
72257
72258 2006-02-15  Simon Josefsson  <jas@extundo.com>
72259
72260         * build-aux/maint.mk: Add dsyntax-check rule.
72261
72262 2006-02-15  Eric Blake  <ebb9@byu.net>
72263
72264         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
72265         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
72266         'present but cannot compile' warnings on cygwin.
72267         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
72268         use ws2tcpip.h if sys/socket.h works.
72269         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
72270         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
72271
72272 2006-02-14  Simon Josefsson  <jas@extundo.com>
72273
72274         * modules/maintainer-makefile (Files): Rename.
72275
72276         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
72277         and (the local) Makefile.cfg to maint-cfg.mk.
72278
72279         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
72280         to the latter.
72281
72282         * modules/maintainer-makefile: New module.
72283
72284         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
72285         severaly stripped to make it possible to build it up from scratch
72286         with reliable tests.
72287
72288         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
72289         fixes to permit overriding the default actions when configure and
72290         makefile are not available.
72291
72292 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
72293
72294         Sync from coreutils.
72295         * modules/lstat (Depends-on): Don't depend on xalloc.
72296         (License): Change from GPL to LGPL, since this is now simply a
72297         replacement for a libc function.
72298
72299 2006-02-14  Jim Meyering  <jim@meyering.net>
72300
72301         Sync from coreutils.
72302
72303         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
72304         failure on deficient systems, and simplify gnulib lgpl dependencies.
72305         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
72306         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
72307
72308         * lib/xalloc-die.c: Remove unused definition of N_.
72309
72310 2006-02-14  Jim Meyering  <jim@meyering.net>
72311
72312         Sync from coreutils.
72313         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
72314         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
72315         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
72316         double-quote uses of that variable, to accommodate the rare case in
72317         which getmntent is available in none of the libraries checked.  This
72318         happens at least on FreeBSD 5.0.
72319
72320 2006-02-13  Simon Josefsson  <jas@extundo.com>
72321
72322         * gnulib-tool (Usage): Fix --import, from
72323         karl@freefriends.org (Karl Berry).
72324
72325 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
72326
72327         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
72328
72329 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
72330
72331         * lib/argp-namefrob.h: Restore changes accidentally lost during the
72332         "autoupdate" on 2005-12-12.
72333
72334 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
72335
72336         * modules/closeout (Depends-on): Remove atexit.
72337
72338 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
72339
72340         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
72341         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
72342
72343 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
72344
72345         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
72346         __EXTENSIONS__ if this causes compilation to fail.  Problem
72347         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
72348         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
72349
72350 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
72351
72352         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
72353         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
72354         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
72355         All uses changed.
72356
72357 2006-01-26  Simon Josefsson  <jas@extundo.com>
72358
72359         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
72360         prototype is visible on mingw32.
72361
72362         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
72363         for mingw32.
72364
72365         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
72366         mingw32).
72367
72368 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
72369
72370         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
72371         attempt to open for write; this always fails, at least on POSIX
72372         hosts.  This reinstates the 2006-01-09 change, which was
72373         inadvertently removed.
72374
72375 2006-01-26  Bruno Haible  <bruno@clisp.org>
72376
72377         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
72378         Reported by Paul Eggert.
72379
72380 2006-01-26  Bruno Haible  <bruno@clisp.org>
72381             Paul Eggert  <eggert@cs.ucla.edu>
72382
72383         * lib/stdbool_.h (_Bool)
72384         [(! (defined __cplusplus || defined __BEOS__)
72385           && !defined __GNUC__
72386           && !(defined __HP_cc || defined __xlc__
72387                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
72388                || defined __sgi))]:
72389         #define to signed char in these cases too; this simplifies
72390         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
72391         etc., separately) and makes it more conservative.
72392
72393 2006-01-25  Simon Josefsson  <jas@extundo.com>
72394
72395         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
72396         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
72397         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
72398
72399 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
72400
72401         * lib/argp-namefrob.h: Bugfix. Remove stray #
72402
72403 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
72404
72405         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
72406         so that we test the test.
72407         Check for yet another HP-UX cc bug involving *bool |= bool.
72408
72409 2006-01-25  Karl Berry  <karl@gnu.org>
72410
72411         * config/srclist.txt (vasnprintf.c): sync lost.
72412
72413 2006-01-25  Jim Meyering  <jim@meyering.net>
72414
72415         Sync from the stable (b5) branch of coreutils:
72416
72417         * lib/fts.c (fts_children): Don't let close() clobber errno from
72418         failed fchdir().
72419
72420         * lib/fts.c (fts_stat): When following a symlink-to-directory,
72421         don't necessarily interpret stat-fails+lstat-succeeds as indicating
72422         a dangling symlink.  That can also happen at least for ELOOP.
72423         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
72424         FYI, this bug predates the inclusion of fts.c in coreutils.
72425
72426         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
72427         in their own block, so pre-c99 compilers don't object.
72428
72429         Avoid the double-free (first in fts_read, second in fts_close) that
72430         would occur when an `active' directory is made inaccessible (e.g.,
72431         via chmod a-x) during a traversal.
72432         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
72433         before returning.  Reproduce this failure by
72434         mkdir -p a/b; cd a; chmod a-x . b
72435         Reported by Stavros Passas.
72436
72437 2006-01-25  Jim Meyering  <jim@meyering.net>
72438
72439         * lib/fileblocks.c: Remove more useless parentheses.
72440         * lib/readutmp.h: Likewise.
72441
72442 2006-01-25  Bruno Haible  <bruno@clisp.org>
72443
72444         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
72445         warnings.
72446         Reported by Paul Eggert.
72447
72448 2006-01-25  Bruno Haible  <bruno@clisp.org>
72449
72450         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
72451         rid of a trap command. For Solaris sh.
72452         Reported by Mark D. Baushke <mdb@gnu.org>.
72453
72454 2006-01-24  Simon Josefsson  <jas@extundo.com>
72455
72456         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
72457         Bruno.
72458
72459 2006-01-24  Karl Berry  <karl@gnu.org>
72460
72461         * config/srclist.txt (argp-namefrob.h): sync lost.
72462
72463 2006-01-24  Jim Meyering  <jim@meyering.net>
72464
72465         * modules/openat (Files): Add lib/intprops.h.
72466         From Mark D. Baushke.
72467
72468 2006-01-24  Jim Meyering  <jim@meyering.net>
72469
72470         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
72471         Reported by Mark D. Baushke.
72472
72473 2006-01-24  Jim Meyering  <jim@meyering.net>
72474
72475         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
72476
72477 2006-01-24  Bruno Haible  <bruno@clisp.org>
72478
72479         * modules/strnlen (Maintainer): Change from glibc to all.
72480
72481 2006-01-24  Bruno Haible  <bruno@clisp.org>
72482
72483         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
72484         Patch by Paul Eggert.
72485
72486 2006-01-24  Bruno Haible  <bruno@clisp.org>
72487
72488         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
72489         already has it.
72490         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
72491         2005-11-26.
72492
72493         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
72494         'signed char' to avoid problems with the built-in _Bool type.
72495         Reported by Paul Eggert on 2005-11-26.
72496
72497 2006-01-24  Bruno Haible  <bruno@clisp.org>
72498
72499         * gnulib-tool (func_import): Avoid constructing complicated sed
72500         expressions inside backquote.
72501         Report and solution by Mark D. Baushke <mdb@gnu.org>.
72502
72503 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
72504
72505         These changes imported from libc.
72506         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
72507         test and two separate function calls.
72508         * lib/strndup.c (__strndup): Add libc_hidden_def.
72509
72510 2006-01-23  Simon Josefsson  <jas@extundo.com>
72511
72512         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
72513         Remove the test_*_SOURCES variable: automake infers it by default.
72514         * modules/tls-tests: Likewise.
72515
72516 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
72517
72518         Work around porting bugs reported by Dieter in
72519         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
72520         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
72521         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
72522         Include "getopt.h" first, to check interface.
72523         (getenv): Declare only if defined HAVE_DECL_GETENV &&
72524         !HAVE_DECL_GETENV.
72525         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
72526         (__strndup): Revert to K&R-style function dfns, the glibc style.
72527         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
72528         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
72529         Include strnlen.h first, to get prototype properly.
72530         (strnlen): Renamed from __strnlen.
72531         Remove weak alias.
72532
72533 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
72534
72535         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
72536
72537 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
72538
72539         * config/srclist.txt: Adjust to reflect glibc reorganization.
72540         This affects only comments.
72541
72542 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
72543
72544          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
72545          Reported by Bruce Korb <bkorb@gnu.org>.
72546
72547 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
72548
72549         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
72550         to pacify gcc -Wswitch-default.
72551
72552 2006-01-22  Bruno Haible  <bruno@clisp.org>
72553
72554         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
72555         temporary buffer for sprintf, take into account the precision also
72556         for 'd', 'i', 'u', 'o', 'x', 'X'.
72557
72558 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
72559
72560         * modules/argp-tests: New module
72561         * tests/test-argp.c: New file
72562         * tests/test-argp-2.sh: New file
72563
72564 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
72565
72566         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
72567         (__argp_base_name): Removed
72568         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
72569         typo.
72570         (__argp_base_name): Provide macro definition or extern declaration
72571         depending on the configuration
72572
72573 2006-01-20  Simon Josefsson  <jas@extundo.com>
72574
72575         * modules/inet_ntop (Depends-on): Depend on sys_socket.
72576
72577 2006-01-20  Simon Josefsson  <jas@extundo.com>
72578
72579         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
72580
72581 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
72582
72583         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
72584         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
72585         Suggested by Bruno Haible.
72586
72587 2006-01-20  Karl Berry  <karl@gnu.org>
72588
72589         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
72590         until changes propagate, I guess.
72591
72592 2006-01-19  Simon Josefsson  <jas@extundo.com>
72593
72594         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
72595
72596 2006-01-19  Simon Josefsson  <jas@extundo.com>
72597
72598         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
72599
72600 2006-01-19  Simon Josefsson  <jas@extundo.com>
72601
72602         * gnulib-tool: Set check_PROGRAMS.
72603
72604         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
72605         modules/des-tests, modules/gc-arcfour-tests,
72606         modules/gc-arctwo-tests, modules/gc-des-tests,
72607         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
72608         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
72609         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
72610         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
72611         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
72612         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
72613         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
72614         test_*_SOURCES.
72615
72616 2006-01-18  Simon Josefsson  <jas@extundo.com>
72617
72618         * modules/socklen (Depends-on): Depend on sys_socket.
72619
72620 2006-01-18  Simon Josefsson  <jas@extundo.com>
72621
72622         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
72623         modules/des-tests, modules/gc-arcfour-tests,
72624         modules/gc-arctwo-tests, modules/gc-des-tests,
72625         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
72626         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
72627         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
72628         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
72629         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
72630         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
72631         $(EXEEXT) to automake TESTS variable, for mingw32.
72632
72633 2006-01-17  Simon Josefsson  <jas@extundo.com>
72634
72635         * modules/socklen (Include): Need sys/socket.h.
72636
72637 2006-01-17  Bruno Haible  <bruno@clisp.org>
72638
72639         * modules/ssize_t (Include): Add <sys/types.h>.
72640
72641 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
72642
72643         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
72644         it's not portable and it doesn't work with cross-compiles.
72645         Problem reported by Bruno Haible.  Fix missing-$ typo in
72646         'test "gl_cv_ignore_unused_libraries" ...' that prevented
72647         -zignore from being used with Sun's C compiler.
72648
72649 2006-01-12  Simon Josefsson  <jas@extundo.com>
72650
72651         * lib/base64.c: Fix warning, reported by Bruno Haible
72652         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
72653
72654 2006-01-12  Bruno Haible  <bruno@clisp.org>
72655
72656         * modules/ldd: New file.
72657         * build-aux/ldd.sh.in: New file.
72658         * MODULES.html.sh (Support for building libraries and executables): Add
72659         ldd.
72660
72661 2006-01-12  Bruno Haible  <bruno@clisp.org>
72662
72663         * m4/ldd.m4: New file.
72664
72665 2006-01-12  Bruno Haible  <bruno@clisp.org>
72666
72667         * gnulib-tool (func_import, func_create_testdir): Don't go into an
72668         endless loop while replacing $auxdir with build-aux.
72669
72670 2006-01-11  Simon Josefsson  <jas@extundo.com>
72671
72672         * lib/stdint_.h (SIZE_MAX): Add missing (.
72673
72674 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
72675
72676         Sync from coreutils.
72677         * lib/md5.c: Fix commentary typos.
72678         (alignof, UNALIGNED_P): No need for a GCC-specific version.
72679         * lib/md5.h (__attribute__): Remove; unused.
72680         * lib/sha1.c: Fix commentary to match md5 better.
72681         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
72682         so that we don't need to worry about alignment.  All uses changed.
72683         This merges the 2005-10-28 md5 change into sha1.
72684
72685 2006-01-11  Jim Meyering  <jim@meyering.net>
72686
72687         Sync from coreutils.
72688         * lib/md5.c (OP): Fix spacing.
72689
72690 2006-01-11  Bruno Haible  <bruno@clisp.org>
72691
72692         Ensure automatic ordering between gl_LOCK and gl_ARGP.
72693         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
72694         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
72695
72696 2006-01-11  Bruno Haible  <bruno@clisp.org>
72697
72698         Ensure automatic ordering between gl_LOCK and gl_ARGP.
72699         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
72700         the "early" section as well.
72701
72702 2006-01-11  Bruno Haible  <bruno@clisp.org>
72703
72704         Avoid "ar: no archive members specified" error on MacOS X.
72705         * gnulib-tool (func_modules_add_dummy): New function.
72706         (func_import, func_create_testdir): Invoke it.
72707
72708 2006-01-11  Bruno Haible  <bruno@clisp.org>
72709
72710         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
72711         with $auxdir in AC_CONFIG_FILES statements.
72712
72713 2006-01-11  Bruno Haible  <bruno@clisp.org>
72714
72715         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
72716         Initialize also noinst_HEADERS to empty.
72717
72718 2006-01-11  Bruno Haible  <bruno@clisp.org>
72719
72720         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
72721         variables.
72722         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
72723         autoreconf.
72724
72725 2006-01-11  Bruno Haible  <bruno@clisp.org>
72726
72727         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
72728         overridable by the user.
72729         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
72730
72731 2006-01-10  Simon Josefsson  <jas@extundo.com>
72732
72733         * modules/sys_socket: New file.
72734
72735 2006-01-10  Simon Josefsson  <jas@extundo.com>
72736
72737         * m4/sys_socket_h.m4: New file.
72738
72739 2006-01-10  Simon Josefsson  <jas@extundo.com>
72740
72741         * lib/socket_.h: New file.
72742
72743 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
72744
72745         * modules/readutmp (Maintainer): Add myself.
72746
72747 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
72748
72749         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
72750         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
72751         People who are still concerned with buggy memcmp implementations
72752         can invoke gl_FUNC_MEMCMP themselves.
72753
72754 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
72755
72756         * lib/regex_internal.h (BITSET_WORD_BITS):
72757         Work around a bug in 64-bit PGC (before version 6.1-2), where the
72758         preprocessor mishandles large unsigned values as if they were signed.
72759         Problem reported by Claudio Fontana in
72760         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
72761
72762 2006-01-10  Jim Meyering  <jim@meyering.net>
72763
72764         Avoid the double-free (first in fts_read, second in fts_close) that
72765         would occur when an `active' directory is made inaccessible (e.g.,
72766         via chmod a-x) during a traversal.
72767         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
72768         before returning.  Reproduce this failure by
72769         mkdir -p a/b; cd a; chmod a-x . b
72770         Reported by Stavros Passas.
72771
72772         Sync from coreutils.
72773         * lib/sha1.c: Tweak grammar in a comment.
72774
72775 2006-01-10  Jim Meyering  <jim@meyering.net>
72776
72777         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
72778         Patch by Joerg Sonnenberger.
72779
72780 2006-01-10  Bruno Haible  <bruno@clisp.org>
72781
72782         * modules/readutmp: Depend on module free.
72783         * modules/strtok_r: Depend on module restrict.
72784
72785 2006-01-10  Bruno Haible  <bruno@clisp.org>
72786
72787         * modules/gettext (configure.ac): Add an invocation of
72788         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
72789
72790 2006-01-10  Bruno Haible  <bruno@clisp.org>
72791
72792         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
72793         Reported by Werner Lemberg <wl@gnu.org>.
72794
72795 2006-01-10  Bruno Haible  <bruno@clisp.org>
72796
72797         * lib/localcharset.c: Update from GNU gettext.
72798
72799 2006-01-10  Bruno Haible  <bruno@clisp.org>
72800
72801         * lib/argp.h (__const): Remove macro. Use const instead.
72802         * lib/argp-fmtstream.h (__const): Likewise.
72803         * lib/glob_.h (__const): Remove macro.
72804         * lib/glob-libc.h: Use const instead of __const.
72805
72806 2006-01-10  Bruno Haible  <bruno@clisp.org>
72807
72808         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
72809         variable.
72810         Needed to avoid an automake error regarding the 'gettext' module.
72811
72812 2006-01-09  Simon Josefsson  <jas@extundo.com>
72813
72814         * modules/inet_ntop (Depends-on): Add restrict.
72815
72816 2006-01-09  Simon Josefsson  <jas@extundo.com>
72817
72818         * modules/gc-rijndael-tests (License): Put under LGPL.
72819
72820         * modules/gc-des-tests (License): Likewise.
72821
72822         * modules/gc-arcfour-tests (License): Likewise.
72823
72824         * modules/gc-arctwo-tests (License): Likewise.
72825
72826         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
72827
72828         * modules/gc-hmac-sha1-tests (Files): Likewise.
72829
72830         * modules/gc-hmac-md5-tests (License): Likewise.
72831
72832         * modules/gc-sha1-tests (License): Likewise.
72833
72834         * modules/gc-md5-tests (License): Likewise.
72835
72836         * modules/gc-md4-tests (License): Likewise.
72837
72838         * modules/gc-md2-tests (License): Likewise.
72839
72840         * modules/gc-tests (License): Likewise.
72841
72842         * modules/des-tests (License): Likewise.
72843
72844         * modules/md4-tests (License): Likewise.
72845
72846         * modules/md2-tests (License): Likewise.
72847
72848 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
72849
72850         Sync from coreutils:
72851
72852         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
72853         * modules/lib-ignore: New file.
72854         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
72855         chdir-safer.m4, lchmod.m4.
72856         * modules/openat: Add mkdirat.c, openat-priv.h.
72857
72858 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
72859
72860         Sync from coreutils.
72861         * m4/lib-ignore.m4: New file.
72862         * m4/lchmod.m4: New file.
72863
72864 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
72865
72866         Sync from coreutils.
72867         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
72868         for write access: POSIX says that must fail.
72869         * lib/fts.c (diropen): Likewise.
72870         * lib/save-cwd.c (save_cwd): Likewise.
72871         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
72872         well, for minor improvements on hosts that lack O_DIRECTORY.
72873         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
72874         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
72875         Fall back on chown if open failed with EACCES.
72876
72877         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
72878         Report an error at compile-time if only a 1-second nominal clock
72879         resolution is found.
72880
72881         * lib/lchmod.h: New file.
72882         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
72883         (make_dir_parents): Use lchown rather than chown, and
72884         lchmod rather than chmod.
72885
72886         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
72887         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
72888         "proc" reported by n0dalus.
72889
72890         * lib/mountlist.c: Include <limits.h>.
72891         (dev_from_mount_options)
72892         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
72893         New function.  It no longer assumes "dev=" has the System V meaning
72894         on Linux (since it doesn't).  It also parses "dev=" more carefully.
72895         (read_file_system_list)
72896         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
72897         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
72898         dev= in that case.
72899
72900         * lib/posixtm.h (PDS_PRE_2000): New macro.
72901         * lib/posixtm.c (year): Arg is now syntax_bits rather than
72902         allow_century.  All usages changed.  Reject dates outside the range
72903         1969-1999 if PDS_PRE_2000 is used.
72904
72905 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
72906
72907         Sync from coreutils.
72908         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
72909         (Time of day items): Mention the possibility of leap seconds.
72910         Problem reported by Dr. David Alan Gilbert.
72911
72912 2006-01-09  Jim Meyering  <jim@meyering.net>
72913
72914         Sync from coreutils.
72915
72916         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
72917
72918         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
72919
72920         * lib/modechange.c (mode_compile): Reject an invalid mode string
72921         that starts with an octal digit.  From Andreas Gruenbacher.
72922
72923         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
72924         and dup to open_safer and dup_safer, respectively.
72925         (openat_permissive): Fix typo in comment.
72926
72927         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
72928         "gettext.h"; either no longer needed or are guaranteed by openat.h.
72929         (_): Remove; no longer needed.
72930         (openat): Renamed from rpl_openat; no need for rpl_openat
72931         since openat.h renames openat for us.
72932         Replace most of the body with a call to openat_permissive,
72933         to avoid duplicate code.
72934         Port to (probably hypothetical) environments were mode_t is
72935         wider than int.
72936         (openat_permissive): Require mode arg, so that we can check
72937         types better.  Put it just after flags.  Change cwd failure
72938         indicator from pointer-to-bool to pointer-to-errno-value.
72939         All callers changed.
72940         Invoke openat_save_fail and/or openat_restore_fail if
72941         cwd_errno is null, so that openat can call us.
72942         (openat_permissive, fdopendir, fstatat, unlinkat):
72943         Simplify errno handling to avoid some duplicate code,
72944         as it's OK to set errno on success.
72945         * lib/openat.h: Revamp code so that function macros depend on
72946         __OPENAT_PREFIX only, not also on AT_FDCWD.
72947         (openat_ro): Remove.  Caller changed to use openat_permissive.
72948         (openat_permissive): Now a macro, if not a function.
72949         (openat_restore_fail, openat_save_fail): Now always functions,
72950         since mkdirat needs them even if __OPENAT_PREFIX is defined.
72951
72952         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
72953         and openat.c.
72954         * lib/mkdirat.c: Include openat-priv.h.
72955         Remove definitions of macros defined therein.
72956         * lib/openat.c: Likewise.
72957
72958         * lib/mkdirat.c (mkdirat): New file and function.
72959         * lib/openat.h (mkdirat): Declare.
72960
72961         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
72962
72963         * lib/openat.h (openat_permissive): Declare.
72964         (openat_ro): Define.
72965
72966         * lib/openat.c (EXPECTED_ERRNO): New macro.
72967         (openat_permissive): New function -- used in remove.c rewrite.
72968         (all functions): Set errno just before returning, only if there
72969         was an actual failure.
72970         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
72971
72972         Emulate openat-family functions using Linux's procfs, if possible.
72973         Idea and some code based on Ulrich Drepper's glibc changes.
72974
72975         * lib/openat.c: (BUILD_PROC_NAME): New macro.
72976         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
72977         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
72978         before falling back on save_cwd and restore_cwd.
72979         (fdopendir, fstatat, unlinkat): Likewise.
72980
72981         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
72982         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
72983
72984         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
72985         as second argument to va_arg.  Otherwise, some versions of gcc
72986         warn that `if this code is reached, the program will abort'.
72987
72988 2006-01-09  Jim Meyering  <jim@meyering.net>
72989
72990         Sync from coreutils.
72991         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
72992         Require openat-priv.h.
72993
72994 2006-01-09  Bruno Haible  <bruno@clisp.org>
72995
72996         * modules/strnlen (Include): Use strnlen.h.
72997
72998 2006-01-09  Bruno Haible  <bruno@clisp.org>
72999
73000         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
73001
73002 2006-01-09  Bruno Haible  <bruno@clisp.org>
73003
73004         * lib/sysexit_.h (EX_OK): New macro.
73005         Suggested by Martin Lambers <marlam@marlam.de>.
73006
73007 2006-01-09  Bruno Haible  <bruno@clisp.org>
73008
73009         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
73010         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
73011
73012 2006-01-09  Bruno Haible  <bruno@clisp.org>
73013
73014         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
73015         numbers.
73016
73017 2006-01-09  Bruno Haible  <bruno@clisp.org>
73018
73019         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
73020         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
73021         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
73022         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
73023
73024 2006-01-09  Bruno Haible  <bruno@clisp.org>
73025
73026         * build-aux/javacomp.sh.in: New file, moved from lib/.
73027         * modules/javacomp-script (Files): Update.
73028         (configure.ac): Add AC_CONFIG_FILES invocation.
73029         (EXTRA_DIST): Remove variable.
73030
73031         * build-aux/javaexec.sh.in: New file, moved from lib/.
73032         * modules/javaexec (Files): Update.
73033         (configure.ac): Add AC_CONFIG_FILES invocation.
73034         (EXTRA_DIST): Remove javaexec.sh.in.
73035
73036         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
73037         * modules/csharpcomp-script (Files): Update.
73038         (configure.ac): Add AC_CONFIG_FILES invocation.
73039         (EXTRA_DIST): Remove variable.
73040
73041         * build-aux/csharpexec.sh.in: New file, moved from lib/.
73042         * modules/csharpexec (Files): Update.
73043         (configure.ac): Add AC_CONFIG_FILES invocation.
73044         (EXTRA_DIST): Remove csharpexec.sh.in.
73045
73046 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
73047
73048         Sync from coreutils.
73049
73050         Add POSIX ACL support
73051         * lib/acl.h (copy_acl, set_acl): Add declarations.
73052         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
73053         systems other than Linux.
73054         (chmod_or_fchmod): New function: use fchmod when possible,
73055         and chmod otherwise.
73056         (file_has_acl): Add a POSIX ACL implementation, with a
73057         Linux-specific subcase.
73058         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
73059         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
73060         acls are unsupported.
73061         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
73062         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
73063         are unsupported.
73064
73065 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
73066
73067         Sync from coreutils.
73068         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
73069
73070 2006-01-07  Bruno Haible  <bruno@clisp.org>
73071
73072         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
73073         gl_EARLY.
73074
73075 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
73076
73077         * lib/strftime.c (tzname): Don't declare if it is already #defined.
73078         Problem reported for Mingw by Mark Junker.
73079
73080 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
73081
73082         * README: Gnulib normally doesn't generate a tarball.
73083
73084 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
73085
73086         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
73087         long int, not int, for nanosecond counts, so that people who are
73088         used to POSIX struct timespec won't be surprised.  Reported by Jim
73089         Meyering.
73090
73091 2005-12-28  Bruno Haible  <bruno@clisp.org>
73092
73093         * build-aux/config.rpath: Update from GNU gettext.
73094
73095 2005-12-16  Jim Meyering  <jim@meyering.net>
73096
73097         * modules/fprintftime: New module.
73098         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
73099
73100 2005-12-16  Jim Meyering  <jim@meyering.net>
73101
73102         * m4/fprintftime.m4: New file.
73103
73104 2005-12-16  Jim Meyering  <jim@meyering.net>
73105
73106         * lib/fprintftime.c, lib/fprintftime.h: New files.
73107
73108 2005-12-15  Simon Josefsson  <jas@extundo.com>
73109
73110         * modules/socklen (configure.ac): Fix M4 macro name, to align with
73111         new m4/socklen.m4.
73112
73113 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
73114
73115         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
73116         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
73117
73118 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
73119
73120         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
73121         * lib/argp-help.c (fill_in_uparams): Check if the constructed
73122         struct uparams is valid. Fall back to the default values if it is
73123         not.
73124
73125 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
73126
73127         * modules/argp (Files): Add argp-pin.c
73128         (Depends-on): dirname
73129         (lib_SOURCES): Add argp-pin.c
73130
73131 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
73132
73133         * m4/argp.m4:  Check if program_invocation_name and
73134         program_invocation_short_name are declared and define appropriate
73135         macros if they are not.
73136
73137 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
73138
73139         * lib/argp-help.c (__argp_base_name): New function
73140         (__argp_short_program_name): Rewrite using __argp_base_name
73141         * lib/argp-namefrob.h: Define program_invocation_name and
73142         program_invocation_short_name if requested
73143         (__argp_base_name): Add prototype
73144         * lib/argp-parse.c (argp_def): Use gettext wrappers
73145         (argp_default_parser): Use __argp_base_name
73146         * lib/argp-pin.c: New file. Defines program_invocation_name and
73147         program_invocation_short_name on systems that lack them.
73148
73149 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
73150
73151         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
73152         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
73153         porting problem reported by Georg Schwarz in
73154         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
73155
73156 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
73157
73158         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
73159         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
73160         porting problem reported by Georg Schwarz in
73161         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
73162
73163 2005-12-05  Bruno Haible  <bruno@clisp.org>
73164
73165         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
73166         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
73167         Reported by Mark Junker <mjscod@gmx.de>.
73168
73169 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
73170
73171         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
73172         Use implementation from Albert Chin, with some
73173         comments/corrections by Stepan Kasal and myself.
73174
73175 2005-12-02  Bruno Haible  <bruno@clisp.org>
73176
73177         * gnulib-tool (func_import): Accept GPLed build tool modules when
73178         --lgpl is given.
73179         * modules/csharpcomp-script: New file.
73180         * modules/csharpcomp: Depend on it.
73181         * modules/javacomp-script: New file.
73182         * modules/javacomp: Depend on it.
73183         Suggested by Simon Josefsson.
73184
73185 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
73186
73187         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
73188         statement, to work around an HP-UX 10.20 compiler bug reported by
73189         Peter O'Gorman.
73190
73191 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
73192
73193         * modules/savedir (Depends-on): Add openat.
73194
73195 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
73196
73197         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
73198         (uintmax_t) [defined uintmax_t]: Do not declare.
73199         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
73200         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
73201         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
73202         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
73203         sake of portability to weird hosts that C allows (though we don't
73204         know of any practical examples).
73205
73206         * lib/savedir.h (fdsavedir): New decl.
73207         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
73208         contains most of the former guts of savedir.
73209         (savedir): Use savedirstream.
73210         Include "openat.h".
73211
73212 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
73213
73214         * modules/obstack (Files): Add m4/ulonglong.m4.
73215         Problem reported by Davide Angelocola.
73216
73217 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
73218
73219         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
73220         coreutils no longer futzes with rounding modes.
73221
73222 2005-11-14  Jim Meyering  <jim@meyering.net>
73223
73224         * lib/mkstemp-safer.c: Include <config.h>, required for possible
73225         replacement of mkstemp.
73226
73227 2005-11-10  Simon Josefsson  <jas@extundo.com>
73228
73229         * lib/readline.c: Remove EOL.
73230
73231 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
73232
73233         * modules/gethrxtime (Depends-on): Add gettime.
73234
73235 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
73236
73237         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
73238         or gettimeofday; no longer needed.
73239
73240 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
73241
73242         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
73243         time business.
73244         (gethrxtime) [! (HAVE_NANOUPTIME
73245         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
73246         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
73247         our own approximation.
73248
73249 2005-11-08  Eric Blake  <ebb9@byu.net>
73250
73251         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
73252
73253 2005-11-08  Eric Blake  <ebb9@byu.net>
73254
73255         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
73256
73257 2005-11-04  Bruno Haible  <bruno@clisp.org>
73258
73259         * gnulib-tool: Implement --update mode.
73260
73261 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
73262
73263         Fix porting problem reported by Theodoros V. Kalamatianos.
73264         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
73265         Don't assume that futimes failing means we must fail.
73266
73267 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
73268
73269         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
73270         variables to suggest the intended function of the PATH_MAX check.
73271
73272 2005-10-30  Kean Johnston  <jkj@sco.com>
73273
73274         Trivial changes to support SCO systems.
73275         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
73276         as PATH_MAX.
73277         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
73278         where __ptr is null when no I/O is pending.
73279
73280 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
73281
73282         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
73283         leave errno alone.  Problem reported by Dmitry V. Levin.
73284
73285 2005-10-28  Simon Josefsson  <jas@extundo.com>
73286
73287         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
73288         Test more.
73289
73290         * tests/test-gc-md2.c, tests/test-md2.c: New files.
73291
73292         * modules/md2, modules/md2-tests: New files.
73293
73294 2005-10-28  Simon Josefsson  <jas@extundo.com>
73295
73296         * m4/inet_ntop.m4: More tests.
73297
73298         * m4/gc-md2.m4, md2.m4: New file.
73299
73300 2005-10-28  Simon Josefsson  <jas@extundo.com>
73301
73302         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
73303         "restrict" keywords, as per POSIX.  Protect the function
73304         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
73305         Don't use K&R prototypes.  Check the sprintf return values.
73306         Re-define EAFNOSUPPORT if not present.  Indent.
73307
73308         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
73309         suggested by Bruno Haible <bruno@clisp.org>.
73310
73311         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
73312
73313         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
73314
73315         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
73316         libgcrypt).
73317
73318         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
73319
73320         * lib/md2.h, lib/md2.c: New files.
73321
73322 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
73323
73324         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
73325         errno alone.  Problem reported by Frederic Jolliton.
73326
73327 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
73328
73329         * modules/verify (License): Change from GPL to LGPL.  This is a
73330         tiny module and there are apparently near-equivalents that are
73331         under the BSD license.
73332
73333 2005-10-24  Simon Josefsson  <jas@extundo.com>
73334
73335         * modules/sha1: Relicense to LGPL.
73336
73337 2005-10-24  Simon Josefsson  <jas@extundo.com>
73338
73339         * lib/md4.h: Shrink buffer size, now that we changed the type.
73340
73341 2005-10-23  Simon Josefsson  <jas@extundo.com>
73342
73343         * gnulib-tool (func_import): Fix --tests-base.
73344
73345 2005-10-22  Simon Josefsson  <jas@extundo.com>
73346
73347         * modules/arcfour (Depends-on): Need stdint.
73348
73349 2005-10-22  Simon Josefsson  <jas@extundo.com>
73350
73351         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
73352         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
73353
73354 2005-10-22  Simon Josefsson  <jas@extundo.com>
73355
73356         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
73357         suggested by Bruno Haible <bruno@clisp.org>.
73358
73359 2005-10-22  Simon Josefsson  <jas@extundo.com>
73360
73361         * lib/crc.h: Include stddef.h, for size_t.
73362
73363 2005-10-22  Simon Josefsson  <jas@extundo.com>
73364
73365         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
73366         arcfour_context struct (simplify test vector testing in GNU
73367         Shishi).
73368
73369 2005-10-21  Simon Josefsson  <jas@extundo.com>
73370
73371         * modules/des, modules/des-tests: New files.
73372
73373         * modules/gc-des, modules/gc-des-tests: New files.
73374
73375         * tests/test-des.c, tests/test-gc-des.c: New file.
73376
73377 2005-10-21  Simon Josefsson  <jas@extundo.com>
73378
73379         * modules/arctwo, modules/arctwo-tests: New files.
73380
73381         * tests/test-arctwo.c: New file.
73382
73383         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
73384
73385         * tests/test-gc-arctwo.c: New file.
73386
73387 2005-10-21  Simon Josefsson  <jas@extundo.com>
73388
73389         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
73390         Bruno Haible <bruno@clisp.org>.
73391
73392         * m4/gc-des.m4: New file.
73393
73394 2005-10-21  Simon Josefsson  <jas@extundo.com>
73395
73396         * m4/arctwo.m4: New file.
73397
73398         * m4/gc-arctwo.m4: New file.
73399
73400 2005-10-21  Simon Josefsson  <jas@extundo.com>
73401
73402         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
73403         block.
73404
73405 2005-10-21  Simon Josefsson  <jas@extundo.com>
73406
73407         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
73408         <bruno@clisp.org>.
73409
73410         * lib/hmac-sha1.c (hmac_sha1): Likewise.
73411
73412         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
73413         Bruno Haible <bruno@clisp.org>.
73414
73415         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
73416         <bruno@clisp.org>.
73417
73418 2005-10-21  Simon Josefsson  <jas@extundo.com>
73419
73420         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
73421
73422 2005-10-21  Simon Josefsson  <jas@extundo.com>
73423
73424         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
73425
73426 2005-10-21  Simon Josefsson  <jas@extundo.com>
73427
73428         * lib/des.h, lib/des.c: New files.
73429
73430         * lib/gc-gnulib.c: Support DES.c
73431
73432 2005-10-21  Simon Josefsson  <jas@extundo.com>
73433
73434         * lib/arctwo.h, lib/arctwo.c: New files.
73435
73436         * lib/gc-gnulib.c: Support ARCTWO.
73437
73438 2005-10-21  Simon Josefsson  <jas@extundo.com>
73439
73440         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
73441         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
73442
73443 2005-10-21  Simon Josefsson  <jas@extundo.com>
73444
73445         * gnulib-tool (func_import, func_create_testdir): Define automake
73446         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
73447         Makefile.am snippet),
73448         suggested by Bruno Haible <bruno@clisp.org>.
73449
73450         * modules/gc (Makefile.am): Use it.
73451
73452 2005-10-21  Bruno Haible  <bruno@clisp.org>
73453
73454         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
73455         patch.
73456
73457 2005-10-19  Simon Josefsson  <jas@extundo.com>
73458
73459         * tests/test-gc-rijndael.c: New file.
73460
73461         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
73462
73463 2005-10-19  Simon Josefsson  <jas@extundo.com>
73464
73465         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
73466         interface too.
73467
73468 2005-10-19  Simon Josefsson  <jas@extundo.com>
73469
73470         * tests/test-gc-arcfour.c: New file.
73471
73472         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
73473
73474 2005-10-19  Simon Josefsson  <jas@extundo.com>
73475
73476         * modules/gc-md4, modules/gc-md4-tests: New file.
73477
73478         * tests/test-gc-md4.c: New file.
73479
73480 2005-10-19  Simon Josefsson  <jas@extundo.com>
73481
73482         * m4/gc-md4.m4: New file.
73483
73484 2005-10-19  Simon Josefsson  <jas@extundo.com>
73485
73486         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
73487         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
73488         <kasal@ucw.cz>.
73489
73490 2005-10-19  Simon Josefsson  <jas@extundo.com>
73491
73492         * m4/gc-arcfour.m4: New file.
73493
73494         * m4/gc-rijndael.m4: New file.
73495
73496 2005-10-19  Simon Josefsson  <jas@extundo.com>
73497
73498         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
73499
73500 2005-10-19  Simon Josefsson  <jas@extundo.com>
73501
73502         * lib/gc-gnulib.c: Support ARCFOUR.
73503
73504 2005-10-19  Simon Josefsson  <jas@extundo.com>
73505
73506         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
73507         support.
73508
73509         * lib/gc.h: Add ECB enum type.
73510
73511         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
73512
73513 2005-10-18  Simon Josefsson  <jas@extundo.com>
73514
73515         * tests/test-md5.c: New file.
73516
73517         * modules/md5-tests: New file.
73518
73519 2005-10-18  Simon Josefsson  <jas@extundo.com>
73520
73521         * tests/test-md4.c: New file.
73522
73523         * modules/md4, modules/md4-tests: New files.
73524
73525 2005-10-18  Simon Josefsson  <jas@extundo.com>
73526
73527         * m4/md4.m4: New file.
73528
73529 2005-10-18  Simon Josefsson  <jas@extundo.com>
73530
73531         * lib/md4.h, lib/md4.c: New files, based on md5.?.
73532
73533 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
73534
73535         * gnulib-tool (func_create_testdir): Omit the second check whether
73536         BUILT_SOURCES in nonempty.
73537
73538 2005-10-17  Simon Josefsson  <jas@extundo.com>
73539
73540         * tests/test-rijndael.c: New file.
73541
73542 2005-10-17  Simon Josefsson  <jas@extundo.com>
73543
73544         * modules/sha1: Depend on stdint instead of md5.
73545
73546         * modules/md5: Depend on stdint, remove uint32_t.
73547
73548 2005-10-17  Simon Josefsson  <jas@extundo.com>
73549
73550         * modules/gc-sha1-tests: New file.
73551
73552         * tests/test-gc-sha1.c: New file.
73553
73554 2005-10-17  Simon Josefsson  <jas@extundo.com>
73555
73556         * m4/md5.m4: Remove call to uint32_t.m4.
73557
73558 2005-10-17  Simon Josefsson  <jas@extundo.com>
73559
73560         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
73561
73562         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
73563         md5.h.
73564
73565         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
73566
73567         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
73568
73569 2005-10-17  Simon Josefsson  <jas@extundo.com>
73570
73571         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
73572
73573 2005-10-17  Simon Josefsson  <jas@extundo.com>
73574
73575         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
73576
73577 2005-10-17  Simon Josefsson  <jas@extundo.com>
73578
73579         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
73580
73581         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
73582
73583 2005-10-17  Bruno Haible  <bruno@clisp.org>
73584
73585         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
73586         that it can also be used in a test.
73587
73588 2005-10-16  Bruno Haible  <bruno@clisp.org>
73589
73590         * gnulib-tool (func_emit_tests_Makefile_am): Also define
73591         TESTS_ENVIRONMENT, so that individual tests can augment it.
73592
73593         * gnulib-tool (func_create_testdir): Use an intermediate target for
73594         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
73595         macros, like $(ALLOCA_H), which cannot be passed through the command
73596         line.
73597
73598 2005-10-15  Simon Josefsson  <jas@extundo.com>
73599
73600         * modules/rijndael-tests: New file.
73601
73602         * modules/rijndael: New file.
73603
73604 2005-10-15  Simon Josefsson  <jas@extundo.com>
73605
73606         * m4/rijndael.m4: New file.
73607
73608 2005-10-15  Simon Josefsson  <jas@extundo.com>
73609
73610         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
73611
73612         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
73613
73614 2005-10-14  Simon Josefsson  <jas@extundo.com>
73615
73616         * tests/test-arcfour.c: New file.
73617
73618         * modules/arcfour, modules/arcfour-tests: New files.
73619
73620 2005-10-14  Simon Josefsson  <jas@extundo.com>
73621
73622         * m4/arcfour.m4: New file.
73623
73624 2005-10-14  Simon Josefsson  <jas@extundo.com>
73625
73626         * lib/arcfour.h, lib/arcfour.c: New files.
73627
73628 2005-10-14  Roland McGrath  <roland@redhat.com>
73629
73630         Import from libc.  [BZ #1331]
73631         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
73632         macro argument.
73633         Reported by Matej Vela <vela@debian.org>.
73634
73635 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
73636
73637         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
73638         include <wchar.h>; no longer needed.
73639
73640 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
73641
73642         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
73643
73644 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
73645         and  Ulrich Drepper  <drepper@redhat.com>
73646
73647         Import from libc.
73648         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
73649         instead of inline stream orientation test and two separate
73650         function calls.  Pay no attention to USE_IN_LIBIO.
73651
73652 2005-10-13  Simon Josefsson  <jas@extundo.com>
73653
73654         * modules/gc-hmac-md5-tests: New file.
73655
73656         * tests/test-gc-hmac-sha1.c: New file.
73657
73658         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
73659
73660         * modules/gc-hmac-md5-tests: New file.
73661
73662         * tests/test-gc-md5.c: New file.
73663
73664         * modules/gc-md5-tests: New file.
73665
73666 2005-10-13  Simon Josefsson  <jas@extundo.com>
73667
73668         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
73669         Move memory allocation outside of loop.
73670
73671 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
73672
73673         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
73674         intermediate directory is in a read-only file system.  Problem
73675         reported by Eric Blake.
73676
73677 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
73678
73679         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
73680
73681 2005-10-12  Simon Josefsson  <jas@extundo.com>
73682
73683         * tests/test-hmac-sha1.c: New file.
73684
73685         * modules/hmac-sha1-tests: New file.
73686
73687         * modules/hmac-sha1: New file.
73688
73689 2005-10-12  Simon Josefsson  <jas@extundo.com>
73690
73691         * modules/gc-sha1: New file.
73692
73693 2005-10-12  Simon Josefsson  <jas@extundo.com>
73694
73695         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
73696
73697         * tests/test-gc-pbkdf2-sha1.c: New file.
73698
73699 2005-10-12  Simon Josefsson  <jas@extundo.com>
73700
73701         * modules/gc-md5, modules/gc-hmac-md5: New files.
73702
73703         * modules/gc (Files): Remove md5, memxor and hmac files.
73704
73705 2005-10-12  Simon Josefsson  <jas@extundo.com>
73706
73707         * m4/gc-pbkdf2-sha1.m4: New file.
73708
73709         * m4/gc-hmac-sha1.m4: New file.
73710
73711         * m4/gc-sha1: New file.
73712
73713         * m4/hmac-sha1.m4: New file.
73714
73715 2005-10-12  Simon Josefsson  <jas@extundo.com>
73716
73717         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
73718
73719         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
73720
73721 2005-10-12  Simon Josefsson  <jas@extundo.com>
73722
73723         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
73724         suggested by Bruno Haible <bruno@clisp.org>.
73725
73726 2005-10-12  Simon Josefsson  <jas@extundo.com>
73727
73728         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
73729
73730 2005-10-12  Simon Josefsson  <jas@extundo.com>
73731
73732         * lib/gc-pbkdf2-sha1.c: New file.
73733
73734         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
73735
73736 2005-10-12  Simon Josefsson  <jas@extundo.com>
73737
73738         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
73739
73740         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
73741
73742 2005-10-12  Simon Josefsson  <jas@extundo.com>
73743
73744         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
73745         GC_USE_HMAC_MD5, respectively.
73746
73747         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
73748         (gc_md5): Fix typo.
73749
73750         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
73751
73752         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
73753
73754         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
73755
73756 2005-10-12  Bruno Haible  <bruno@clisp.org>
73757
73758         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
73759         Reported by Stepan Kasal <kasal@ucw.cz>.
73760
73761 2005-10-11  Simon Josefsson  <jas@extundo.com>
73762
73763         * tests/test-crc.c: New file.
73764
73765         * modules/crc, modules/crc-tests: New files.
73766
73767 2005-10-11  Simon Josefsson  <jas@extundo.com>
73768
73769         * m4/crc.m4: New file.
73770
73771 2005-10-11  Simon Josefsson  <jas@extundo.com>
73772
73773         * lib/gc.h: Add gc_hash and gc_hash_buffer.
73774
73775         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
73776
73777         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
73778
73779 2005-10-11  Simon Josefsson  <jas@extundo.com>
73780
73781         * lib/crc.h, lib/crc.c: New files.
73782
73783         * lib/gc.h (gc_hash_buffer): Add doc.
73784
73785 2005-10-11  Bruno Haible  <bruno@clisp.org>
73786
73787         * modules/c-strcasestr: New file.
73788         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
73789
73790 2005-10-11  Bruno Haible  <bruno@clisp.org>
73791
73792         * modules/c-strcase: New file.
73793         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
73794
73795 2005-10-11  Bruno Haible  <bruno@clisp.org>
73796
73797         * lib/strcasecmp.c: Include limits.h.
73798         (strcasecmp): Avoid integer overflow on exotic platforms.
73799         * lib/strncasecmp.c: Include limits.h.
73800         (strncasecmp): Avoid integer overflow on exotic platforms.
73801         Reported by Paul Eggert.
73802
73803 2005-10-11  Bruno Haible  <bruno@clisp.org>
73804
73805         * lib/c-strcasestr.h: New file, from GNU gettext.
73806         * lib/c-strcasestr.c: New file, from GNU gettext.
73807
73808 2005-10-11  Bruno Haible  <bruno@clisp.org>
73809
73810         * lib/c-strcase.h: New file, from GNU gettext.
73811         * lib/c-strcasecmp.c: New file, from GNU gettext.
73812         * lib/c-strncasecmp.c: New file, from GNU gettext.
73813
73814 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
73815
73816         * modules/mempcpy (License): GPL -> LGPL.
73817         * modules/strchrnul (License): Likewise.
73818         * modules/sysexits (License): Likewise.
73819
73820 2005-10-08  Simon Josefsson  <jas@extundo.com>
73821
73822         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
73823
73824 2005-10-07  Simon Josefsson  <jas@extundo.com>
73825
73826         * m4/memxor.m4: Remove gl_C_RESTRICT call.
73827
73828 2005-10-06  Simon Josefsson  <jas@extundo.com>
73829
73830         * tests/test-hmac-md5.c: New file.
73831
73832         * modules/hmac-md5-tests: New file.
73833
73834         * modules/hmac-md5: New file.
73835
73836 2005-10-06  Simon Josefsson  <jas@extundo.com>
73837
73838         * m4/hmac-md5.m4: New file.
73839
73840         * m4/memxor.m4: Require gl_C_RESTRICT.
73841
73842 2005-10-06  Simon Josefsson  <jas@extundo.com>
73843
73844         * lib/memxor.c (memxor): Avoid casts and warnings.
73845
73846 2005-10-06  Simon Josefsson  <jas@extundo.com>
73847
73848         * lib/hmac-md5.c: New file.
73849
73850         * lib/hmac.h: New file.
73851
73852 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
73853
73854         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
73855         promotes to int, not unsigned int, to catch the AIX 5.3
73856         compiler bug.
73857
73858 2005-10-05  Simon Josefsson  <jas@extundo.com>
73859
73860         * modules/memxor: New file.
73861
73862         * modules/iconv (Files): Move config.rpath to havelib, it is used
73863         there.
73864
73865         * modules/havelib (Files): Add config.rpath.
73866
73867 2005-10-05  Simon Josefsson  <jas@extundo.com>
73868
73869         * m4/memxor.m4: New file.
73870
73871 2005-10-05  Simon Josefsson  <jas@extundo.com>
73872
73873         * lib/memxor.c (memxor): Fix compiler error.
73874
73875         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
73876         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
73877
73878         * lib/memxor.h, lib/memxor.c: New files.
73879
73880         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
73881         we assume all systems have it, suggested by Jim Meyering
73882         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
73883         any systems lack sys/socket.h; mingw32 is known to lack it, but we
73884         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
73885         same reasons.
73886
73887 2005-10-05  Simon Josefsson  <jas@extundo.com>
73888
73889         * config/srclist.txt: Add glibc bug 1423 for md5.h.
73890
73891 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
73892
73893         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
73894         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
73895         needed, since the source code now assumes these .h files.
73896
73897 2005-10-05  Derek Price  <derek@ximbiot.com>
73898
73899         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
73900
73901 2005-10-05  Bruno Haible  <bruno@clisp.org>
73902
73903         * modules/stdint (License): Change to LGPL.
73904
73905 2005-10-04  Simon Josefsson  <jas@extundo.com>
73906
73907         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
73908         D. Baushke" <mdb@gnu.org>.
73909
73910 2005-10-04  Bruno Haible  <bruno@clisp.org>
73911
73912         * lib/verify.h (verify_true): Provide alternative definition for C++.
73913
73914 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
73915
73916         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
73917         (SSIZE_MAX): New macro, if not already defined.
73918         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
73919         than 2 GiB.
73920
73921 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
73922
73923         Sync from coreutils.
73924         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
73925         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
73926         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
73927         ULLONG_MAX doesn't work with 2.7.2.1.
73928
73929 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
73930
73931         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
73932         From Ben Pfaff.
73933
73934         * modules/exclude (Depends-on): Depend on verify.
73935         * modules/strtoimax (Depends-on): Likewise.
73936         * modules/utimecmp (Depends-on): Likewise.
73937
73938 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
73939
73940         * lib/exclude.c: Include verify.h.
73941         (verify): Remove.  All callers changed to use verify.h's version.
73942         * lib/strtoimax.c: Likewise.
73943         * lib/utimecmp.c: Likewis.e
73944
73945         Sync from coreutils.
73946         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
73947         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
73948         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
73949         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
73950         bother returning ENOSYS if settimeofday or stime fails; just let
73951         them return whatever errno they want to return.
73952         * lib/utimens.c: Include unistd.h, for dup2.
73953         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
73954         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
73955
73956 2005-10-02  Jim Meyering  <jim@meyering.net>
73957
73958         Sync from coreutils.
73959         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
73960         from glibc-2.2.5 that fails for read-only files.
73961
73962 2005-10-02  Jim Meyering  <jim@meyering.net>
73963
73964         Sync from coreutils.
73965         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
73966         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
73967         `#if HAVE_CONFIG_H'.
73968         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
73969         Remove AT_FDCWD test.
73970         Do not consume the fd unless successful.
73971         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
73972         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
73973         block, so that we don't even try to compile it if settimeofday is
73974         available.  This works around a compilation failure on OSF1 V5.1,
73975         due to stime requiring a `long int*' while tv_sec is `int'.
73976
73977 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
73978
73979         Sync from coreutils.
73980         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
73981         against `yes', rather than just testing for nonempty.
73982
73983 2005-10-01  Simon Josefsson  <jas@extundo.com>
73984
73985         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
73986         and Darwin.
73987
73988         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
73989         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
73990         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
73991         freeaddrinfo and gai_strerror are declared by the POSIX headers.
73992         Check if struct addrinfo is declared.
73993
73994 2005-10-01  Simon Josefsson  <jas@extundo.com>
73995
73996         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
73997         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
73998         AI_* and EAI_* definitions.  Protect function declarations.
73999
74000 2005-10-01  Jim Meyering  <jim@meyering.net>
74001
74002         Sync from coreutils.
74003
74004         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
74005         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
74006         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
74007         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
74008         in the inet and nsl libraries.  Required on Solaris 5.7.
74009
74010 2005-10-01  Jim Meyering  <jim@meyering.net>
74011
74012         Sync from coreutils.
74013         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
74014         in the inet and nsl libraries.  Required on Solaris 5.7.
74015
74016 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
74017
74018         * lib/getdelim.c (getdelim): Remove unused variables.
74019
74020 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
74021
74022         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
74023         so that the code works even with ancient cpp.  Portability problem
74024         with GCC 2.7.2.1 reported by Thomas M.Ott.
74025
74026 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
74027
74028         * modules/regex (Depends-on): Add strcase.
74029
74030         * modules/gethostname (Licence): Change from GPL to LGPL, since
74031         gethostname.c is a trivial implementation of a standard library
74032         function.
74033         * modules/poll (License): Change from GPL to LGPL, since it's
74034         derived from LGPL code.
74035
74036 2005-09-27  Jim Meyering  <jim@meyering.net>
74037
74038         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
74039         HAVE_CONFIG_H.
74040
74041         * lib/intprops.h (signed_type_or_expr__): Define.
74042         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
74043         for unsigned types.
74044
74045 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
74046
74047         * lib/verify.h (verify_expr): Remove, replacing with:
74048         (verify_true): New macro that returns true instead of void.
74049         (verify_type__): Remove.
74050         (verify): Use verify_true rather than verify_type__.
74051
74052 2005-09-26  Bruno Haible  <bruno@clisp.org>
74053
74054         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
74055         is necessary.
74056         (lib_SOURCES): Remove mbchar.c.
74057         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
74058         (Files): Add m4/mbrtowc.m4.
74059         * modules/mbiter: Likewise.
74060         * modules/mbuiter: Likewise.
74061
74062 2005-09-26  Bruno Haible  <bruno@clisp.org>
74063
74064         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
74065         compile mbchar.c if they are not both present.
74066         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
74067         * m4/mbiter.m4 (gl_MBITER): Likewise.
74068         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
74069         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
74070         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
74071
74072 2005-09-25  Jim Meyering  <jim@meyering.net>
74073
74074         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
74075         also uses socklen_t.
74076
74077 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
74078
74079         * lib/utimens.c (ENOSYS): Define if not already defined.
74080         (futimens): Support having a null PATH if the file descriptor
74081         is nonnegative.
74082
74083         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
74084         Remove.
74085         (__attribute): Define to empty unless GCC 3.1 or later.
74086         This works around a core dump on OpenBSD 3.4, which has GCC
74087         2.95.3, which dumps core when given __attribute__(()).  It also
74088         simplifies other tests, since we really don't want to bother with
74089         worrying about which ancient version of GCC supported what.
74090         Original problem reported by Yoann Vandoorselaere, with part of
74091         the fix suggested by Derek Price.
74092
74093 2005-09-24  Jim Meyering  <jim@meyering.net>
74094
74095         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
74096         so we can once again use a positive bitfield width of 1 -- now we
74097         don't have to explain why we were using a bitfield width of 2.
74098
74099 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
74100
74101         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
74102         and similarly for the other external symbols.  Problem reported
74103         by James Gallager.
74104
74105         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
74106         bug reported by Jim Meyering.
74107
74108         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
74109         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
74110         not needed, since socklen is a prerequisite module.
74111
74112 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
74113
74114         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
74115         Problem reported by Eric Blake.
74116         (getaddrinfo): Initialize se so that it's not garbage.
74117         Redo internal storage allocation so that it doesn't make unportable
74118         assumptions about alignment.
74119         Fix a memory leak.
74120
74121         * lib/utimens.c (futimens): Use futimesat if available.
74122         Prefer it to futimes since it doesn't have the futimes bug.
74123
74124         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
74125         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
74126         Instead, declare a function that returns a pointer to an array,
74127         and use verify_type__ to declare the size of the array.
74128         Problem and germ of a solution reported by Bruno Haible.
74129         (verify_type__): Use 2, not 1, for bitfield size, to avoid
74130         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
74131
74132 2005-09-23  Jim Meyering  <jim@meyering.net>
74133
74134         Sync from coreutils.
74135         Correct build failure (socklen_t not defined) on at least
74136         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
74137         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
74138
74139 2005-09-23  Jim Meyering  <jim@meyering.net>
74140
74141         * modules/getaddrinfo (Depends-on): Add socklen.
74142
74143 2005-09-23  Bruno Haible  <bruno@clisp.org>
74144
74145         * tests/test-verify.c: New file.
74146
74147 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
74148
74149         Sync from coreutils.
74150
74151         * modules/argmatch (Depends-on): Add verify.
74152         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
74153         unistd-safer.
74154         * modules/save-cwd (Depends-on): Likewise.
74155
74156         * modules/openat (Files): Add lib/openat-die.c.
74157         (Depends-on): Remove error, exitfail.
74158         Add dirname.
74159
74160         * modules/verify: New file.
74161         * MODULES.html.sh (Diagnostics <assert.h>): New section,
74162         with "verify" module.
74163
74164 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
74165
74166         Sync from coreutils.
74167
74168         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
74169         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
74170         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
74171         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
74172         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
74173         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
74174         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
74175         Don't bother checking for string.h, stdlib.h, unistd.h.
74176         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
74177         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
74178         module's job.
74179         * m4/jm-macros.m4 (gl_MACROS): Likewise.
74180         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
74181
74182         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
74183         (gl_GETDATE): Use it.
74184
74185         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
74186
74187 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
74188
74189         Sync from coreutils.
74190
74191         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
74192         stat-time.h.
74193         * lib/argmatch.h: Include verify.h
74194         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
74195         (ARGMATCH_ASSERT): Remove; unused.
74196         * lib/canonicalize.c: Assume STDC_HEADERS.
74197         * lib/exclude.c: Include "strcase.h".
74198         * lib/regex_internal.h [!defined _LIBC]: Likewise.
74199         * lib/getusershell.c: Include stdio--.h rather than stdio.h
74200         and stdio-safer.h.
74201         (getusershell): Call fopen, not fopen_safer.
74202         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
74203         Do not include unistd-safer.h.
74204         (save_cwd): Don't call fd_safer; no longer needed
74205         now that we include fcntl--.h.
74206
74207         * lib/getdate.y (relative_time): New type.
74208         (RELATIVE_TIME_0): New constant.
74209         (parser_control): Use relative_time instead of doing it ourselves.
74210         (%union): Add new relative_time rel member.
74211         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
74212         Now typeless.
74213         (relunit, relunit_snumber): Now of type rel.
74214         (zone, rel, relunit, get_date): Adjust to above changes.
74215
74216         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
74217         Do not include unistd-safer.h.
74218         (getloadavg): Don't call fd_safer; no longer needed
74219         now that we include fcntl--.h.
74220
74221         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
74222         (make_dir_parents): Treat ENOSYS like EEXIST.
74223
74224         Improve quality of diagnostics on restore_cwd failure.
74225         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
74226         (make_dir_parents): Last arg is now int * (for errno), not bool *.
74227         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
74228         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
74229         each time through the loop.  Do not diagnose restore_cwd failure;
74230         that is the caller's job (and perhaps the caller does not care).
74231
74232         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
74233         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
74234         If the file already exists but is not a directory, don't bother
74235         to try to make its parents.
74236         Close potential file descriptor leak if we can't chdir("/") (!).
74237         Don't always return true if chdir($PWD) fails; return true only
74238         if the requested action was done successfully (except for the
74239         chdir($PWD)).
74240         Don't log final directory unless we actually made it.
74241         Refactor to avoid duplicate code to fix up permissions.
74242         Don't attempt to fix up parent permissions if chdir($PWD) fails.
74243
74244         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
74245         to make it a bit faster and (I hope) clearer.
74246         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
74247         Fix bug in formats like %2N.
74248
74249         * lib/verify.h: New file.
74250
74251 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
74252
74253         Sync from coreutils.
74254         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
74255
74256 2005-09-22  Jim Meyering  <jim@meyering.net>
74257
74258         Sync from coreutils.
74259
74260         * m4/lstat.m4 (gl_FUNC_LSTAT):
74261         Use AC_LIBSOURCES to require lstat.c and lstat.h.
74262         Remove obsolete comment.
74263         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
74264         * m4/xstrtod.m4: Likewise.
74265
74266         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
74267
74268 2005-09-22  Jim Meyering  <jim@meyering.net>
74269
74270         Sync from coreutils.
74271
74272         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
74273
74274         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
74275         the .tm_year member, since otherwise gcc-4.0 would now warn about
74276         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
74277
74278         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
74279         order to avoid an unsuppressible warning from gcc on 64-bit systems.
74280
74281         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
74282         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
74283         when run in a time zone for which daylight savings time is in effect
74284         for the starting date.
74285
74286         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
74287         stop us from restricting permissions of just-created absolute-named
74288         directories.
74289         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
74290         to restore initial working directory.
74291         * lib/mkdir-p.c (make_dir_parents): New parameter:
74292         different_working_dir, to tell caller if/when we change the working
74293         directory and are unable to return to the initial one.
74294         * lib/mkdir-p.h (make_dir_parents): Update prototype.
74295         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
74296         `return false'.  This fixes a bug introduced on 2004-07-30.
74297
74298         * lib/openat.c (fdopendir): Be sure to close the supplied
74299         file descriptor before returning.  This makes our replacement
74300         implementation a little closer to Solaris's, where fdopendir
74301         ties the file descriptor to the returned DIR* pointer.
74302         * lib/openat.c (unlinkat): New function.
74303         * lib/openat.h (unlinkat): Add prototype.
74304         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
74305         (openat_restore_fail): Rename from openat_restore_die.
74306         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
74307
74308         Provide an alternative to exiting immediately upon save_cwd or
74309         restore_cwd failure.  Now, an application can arrange e.g.,
74310         to perform a longjump in that case.
74311         * lib/openat.c: Include dirname.h.
74312         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
74313         (rpl_openat, fdopendir, fstatat): Call openat_save_die
74314         and openat_restore_die rather than calling error directly.
74315         Don't include "error.h" or "exitfail.h"; they're no longer needed.
74316
74317         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
74318         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
74319         define.
74320
74321         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
74322         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
74323                             int utc, int nanoseconds);
74324         Background:
74325         date should not have to allocate a megabyte of virtual memory to
74326         handle a format argument like +%1048575T.  When implemented with
74327         strftime, it must allocate such a buffer, use strftime to fill it
74328         in, print it, then free it.
74329         With fprintftime, it simply prints everything and exits.
74330         With no need for memory allocation, that's one fewer way to fail.
74331         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
74332         optional field width, not before, so we accept %9:z, not %:9z.
74333         (my_strftime): Be sure to use L_('x') for literals.
74334
74335         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
74336         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
74337         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
74338         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
74339         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
74340         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
74341         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
74342         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
74343         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
74344         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
74345         * lib/xgethostname.c, lib/xreadlink.c:
74346         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
74347
74348         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
74349         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
74350         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
74351         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
74352         and don't include <sys/file.h>).
74353
74354 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
74355
74356         Sync from coreutils.
74357
74358         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
74359         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
74360         [!LDAV_DONE]: Avoid unused variable warning.
74361
74362 2005-09-21  Bruno Haible  <bruno@clisp.org>
74363
74364         * lib/unicodeio.h (unicode_to_mb): New declaration.
74365
74366 2005-09-20  Derek Price  <derek@ximbiot.com>
74367
74368         * lib/getaddrinfo.c: Don't include <netdb.h> included from
74369         getaddrinfo.h.
74370
74371 2005-09-20  Bruno Haible  <bruno@clisp.org>
74372
74373         * gnulib-tool: Remove trailing slashes from the values specified for
74374         --source-base, --m4-base, --tests-base, --aux-dir.
74375         Suggested by Simon Josefsson <jas@extundo.com>.
74376
74377 2005-09-20  Bruno Haible  <bruno@clisp.org>
74378
74379         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
74380         func_modules_to_filelist, func_import, func_create_testdir): Make all
74381         sorting results locale-independent, so that gnulib-cache.m4 doesn't
74382         change when gnulib-tool is invoked in a different locale.
74383
74384 2005-09-19  Simon Josefsson  <jas@extundo.com>
74385
74386         * m4/socklen.m4: Fix typo.
74387
74388 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74389
74390         Use a consistent style for including <config.h>.
74391         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
74392         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
74393         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
74394         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
74395         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
74396         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
74397         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
74398         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
74399         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
74400         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
74401         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
74402         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
74403         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
74404         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
74405         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
74406         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
74407         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
74408         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
74409         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
74410         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
74411         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
74412         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
74413         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
74414         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
74415         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
74416         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
74417         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
74418         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
74419         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
74420         lib/xstrtoumax.c, lib/yesno.c:
74421         Standardize inclusion of config.h.
74422         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
74423         lib/inttostr.h:  Removed inclusion of config.h from header files.
74424         * lib/inttostr.c:  Adjusted in-tree users.
74425         * lib/timespec.h: Remove superfluous warning to include config.h.
74426         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
74427         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
74428         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
74429         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
74430         config.h with HAVE_CONFIG_H.
74431
74432 2005-09-19  Jim Meyering  <jim@meyering.net>
74433
74434         * modules/pathmax (License): Change to LGPL.
74435
74436 2005-09-19  Derek Price  <derek@ximbiot.com>
74437
74438         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
74439
74440 2005-09-19  Bruno Haible  <bruno@clisp.org>
74441
74442         * gnulib-tool (import): Provide default for --tests-base.
74443
74444 2005-09-19  Bruno Haible  <bruno@clisp.org>
74445
74446         * doc/quote.texi: New file, extracted from gnulib.texi.
74447         * doc/ctime.texi: New file, extracted from gnulib.texi.
74448         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
74449         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
74450         * doc/gnulib.texi: Include them.
74451
74452 2005-09-18  Bruno Haible  <bruno@clisp.org>
74453
74454         Portability fix.
74455         * gnulib-tool (func_readlink): New function.
74456         (func_ln_if_changed): Use it.
74457
74458 2005-09-18  Bruno Haible  <bruno@clisp.org>
74459
74460         * gnulib-tool: Support --with-tests also with --import.
74461         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
74462         (func_import): Use variables $testsbase and $inctests. Emit a
74463         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
74464         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
74465         SUBDIRS += $testsdir.
74466         (func_create_testdir): Update.
74467
74468 2005-09-18  Bruno Haible  <bruno@clisp.org>
74469
74470         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
74471         instead of $dry_run.
74472         (func_cp_if_changed, func_mv_if_changed): Remove functions.
74473         (func_ln_if_changed): Don't handle dry-run here.
74474         (func_import): In dry-run mode, detect more precisely which actions
74475         would be performed, and don't use "...ing" verbs.
74476
74477 2005-09-18  Bruno Haible  <bruno@clisp.org>
74478
74479         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
74480         (func_import): Use join on two temporary files instead of three nested
74481         loops, in order to determine which files are new or old.
74482
74483 2005-09-18  Bruno Haible  <bruno@clisp.org>
74484
74485         * gnulib-tool (func_import): Comment out code that spits out the
74486         new files with --dry-run.
74487
74488 2005-09-18  Bruno Haible  <bruno@clisp.org>
74489
74490         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
74491
74492 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
74493
74494         * lib/stat-time.h: New file.
74495         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
74496         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
74497         in a different way.
74498         (timespec_cmp): New function.
74499         * lib/utimecmp.c: Include stat-time.h.
74500         (SYSCALL_RESOLUTION): Depend on whether various struct stat
74501         members exist, not on the obsolescent ST_MTIM_NSEC.
74502         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
74503
74504 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
74505
74506         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
74507
74508 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
74509
74510         * MODULES.html.sh (File system functions): Add stat-time.
74511         * modules/stat-time: New file.
74512         * modules/timespec (Files): Remove m4/st_mtim.m4; this
74513         is now done in a different way, by the stat-time module.
74514         * modules/utimecmp (Depends-on): Add stat-time.
74515
74516 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
74517
74518         * m4/st_mtim.m4: Remove.  Superseded by...
74519         * m4/stat-time.m4: New file.
74520         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
74521         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
74522
74523 2005-09-15  Derek Price  <derek@ximbiot.com>
74524
74525         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
74526
74527 2005-09-15  Derek Price  <derek@ximbiot.com>
74528
74529         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
74530         * lib/regex_internal.c: Ditto, using this...
74531         (__GNUC_PREREQ): ...new macro.
74532         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
74533         using...
74534         (__GNUC_PREREQ): ...this new macro.
74535
74536         * lib/strstr.h: Include string.h. Define strstr as a macro here.
74537
74538 2005-09-15  Derek Price  <derek@ximbiot.com>
74539             Paul Eggert  <eggert@cs.ucla.edu>
74540
74541         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
74542         changes, consolidating in...
74543         * lib/regex_internal.h: ...this file.
74544
74545 2005-09-13  Jim Meyering  <jim@meyering.net>
74546
74547         * lib/canon-host.c: Filter through gnu indent and reword comments
74548         slightly.
74549         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
74550
74551 2005-09-13  Derek Price  <derek@ximbiot.com>
74552
74553         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
74554         failure.
74555         Reported by Jim Meyering  <jim@meyering.net>.
74556
74557 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
74558
74559         * lib/base64.c: Typo.
74560         (base64_encode): Put b64str in initialized data section.
74561
74562 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
74563
74564         Merge glibc and coreutils changes into gnulib, plus a few
74565         extra fixes.
74566         * lib/md5.c: Use #error rather than a string.
74567         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
74568         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
74569         (__attribute__): Define to empty for non recent-GCC.
74570         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
74571         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
74572         Renamed from their non-__ counterparts, with new macros replacing
74573         them if not _LIBC.  Add __THROW attribute.
74574         (rol): Remove.
74575         (struct md5_ctx): Align buffer if using GCC.
74576         * lib/sha1.h (struct sha1_ctx): Likewise.
74577         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
74578         The old name was backwards.
74579         (NOTSWAP): Remove; not used.
74580         (rol): New macro, moved here from md5.h.
74581         (sha1_process_block): Remove a FIXME that doesn't make sense.
74582
74583 2005-09-12  Derek Price  <derek@ximbiot.com>
74584
74585         Return usable errors from canon-host.
74586         * lib/canon-host.h: New file.
74587         * lib/canon-host.c (canon_host): Wrap...
74588         (canon_host_r): ...this new function, which now relies exclusively on
74589         getaddrinfo.
74590         (ch_strerror): New function.
74591         (last_cherror): New global.
74592         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
74593         interface.
74594         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
74595         void *.
74596         (freeaddrinfo): Free ai->ai_canonname when set.
74597
74598 2005-09-12  Derek Price  <derek@ximbiot.com>
74599
74600         Make canon-host require getaddrinfo.
74601         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
74602         AC_LIBSOURCE canon-host.h.  Call...
74603         (gl_PREREQ_CANON_HOST): ...this new function, which requires
74604         gl_GETADDRINFO.
74605         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
74606
74607 2005-09-12  Derek Price  <derek@ximbiot.com>
74608
74609         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
74610         LGPL.
74611         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
74612
74613 2005-09-12  Derek Price  <derek@ximbiot.com>
74614
74615         * lib/gai_strerror.c: Include config.h when available.  Include
74616         getaddrinfo.h before other headers to test interface.
74617         Reported by Larry Jones <lawrence.jones@ugs.com>.
74618
74619 2005-09-12  Derek Price  <derek@ximbiot.com>
74620             Paul Eggert  <eggert@cs.ucla.edu>
74621
74622         * modules/glob (Files): Add glob-libc.h.
74623
74624 2005-09-12  Derek Price  <derek@ximbiot.com>
74625             Paul Eggert  <eggert@cs.ucla.edu>
74626
74627         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
74628         glob_.h, glob-libc.h.
74629         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
74630
74631 2005-09-12  Derek Price  <derek@ximbiot.com>
74632             Paul Eggert  <eggert@cs.ucla.edu>
74633
74634         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
74635         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
74636         protecting things that should be done only in gnulib contexts.
74637         * lib/glob_.h: New file, containing only the glob things needed for
74638         gnulib.
74639         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
74640         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
74641         (glob, globfree, glob_pattern_p): Now defined simply in terms of
74642         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
74643         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
74644         and to respect the namespace rules better.
74645
74646 2005-09-08  Simon Josefsson  <jas@extundo.com>
74647
74648         * modules/socklen: New file.
74649
74650 2005-09-08  Simon Josefsson  <jas@extundo.com>
74651
74652         * m4/socklen.m4: New file.
74653
74654 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
74655
74656         * modules/utimens (Files): Add m4/utimbuf.m4, since
74657         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
74658         Reported by Sergey Poznyakoff.
74659
74660 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
74661
74662         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
74663         definitions, since that's the preferred style in glibc.
74664         Fix a minor spacing issue, and update copyright notice to match
74665         glibc's.
74666
74667 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
74668
74669         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
74670
74671 2005-09-06  Simon Josefsson  <jas@extundo.com>
74672
74673         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
74674         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
74675
74676 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
74677
74678         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
74679         warning.
74680
74681 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
74682
74683         * config/srclist.txt: Add glibc bug 1302.
74684
74685 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
74686
74687         Change bitset word type from unsigned int to unsigned long int,
74688         as this has better performance on typical 64-bit hosts.
74689         Port bitset code to hosts with unusual word sizes.
74690         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
74691         (build_collating_symbol):
74692         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
74693         argument is a bitset.  This is merely a style issue, but it makes
74694         it clearer that an entire array is expected.
74695         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
74696         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
74697         Port to the case where bitset_word is not the same as unsigned int.
74698         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
74699         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
74700         Likewise.
74701         * lib/regexec.c (check_dst_limits_calc_pos_1,
74702         check_subexp_matching_top):
74703         (build_trtable, group_nodes_into_DFAstates):
74704         Likewise.
74705         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
74706         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
74707         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
74708         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
74709         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
74710         * lib/regcomp.c (optimize_subexps, lower_subexp):
74711         Work even if bitset_word has holes in its bitwise representation.
74712         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
74713         * lib/regexec.c (check_dst_limits_calc_pos_1,
74714         check_subexp_matching_top):
74715         Likewise.
74716         * lib/regex_internal.c (re_string_reconstruct):
74717         Don't assume UCHAR_MAX == 255.
74718         * lib/regex_internal.h (bitset_set_all): Likewise.
74719         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
74720         All uses changed.
74721         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
74722         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
74723         All uses changed.
74724         (BITSET_WORD_MAX): New macro.
74725         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
74726         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
74727         (bitset_empty, bitset_copy):
74728         Prefer sizeof (bitset) to multiplying it out ourselves.
74729         (bitset_not_merge): Remove; unused.
74730         (bitset_contain): Return bool, not unsigned int with one bit on.
74731         All callers changed.
74732         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
74733         alignment than re_node_set; do this by defining a new internal
74734         type struct dests_alloc and using it to allocate memory.
74735
74736 2005-09-05  Bruno Haible  <bruno@clisp.org>
74737
74738         * gnulib-tool (func_import): Fix comparison in handling of symbolic
74739         links.
74740
74741 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
74742
74743         * modules/size_max (Makefile.am): Add size_max.h
74744
74745 2005-09-04  Derek Price  <derek@ximbiot.com>
74746
74747         * gnulib-tool (func_import): Fix reversed $symbolic logic.
74748
74749 2005-09-03  Simon Josefsson  <jas@extundo.com>
74750
74751         * gnulib-tool: Fix typo.
74752
74753 2005-09-03  Simon Josefsson  <jas@extundo.com>
74754
74755         * config/srclist.txt: Add glibc bug 1293.
74756
74757 2005-09-03  Derek Price  <derek@ximbiot.com>
74758
74759         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
74760         From Larry Jones <lawrence.jones@ugs.com>.
74761
74762 2005-09-02  Simon Josefsson  <jas@extundo.com>
74763
74764         * modules/socklen: New file.
74765
74766 2005-09-02  Simon Josefsson  <jas@extundo.com>
74767
74768         * modules/havelib: New module.
74769
74770         * modules/gettext, modules/iconv, modules/lock, modules/readline:
74771         Use havelib.
74772
74773 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
74774
74775         Check for arithmetic overflow when calculating sizes, to prevent
74776         some buffer-overflow issues.  These patches are conservative, in the
74777         sense that when I couldn't determine whether an overflow was possible,
74778         I inserted a run-time check.
74779         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
74780         macros.
74781         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
74782         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
74783         (re_xnrealloc, re_x2nrealloc): New inline functions.
74784         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
74785         parse_bracket_exp):
74786         (build_equiv_class, build_charclass): Check for arithmetic overflow
74787         in size expression calculations.
74788         * lib/regex_internal.c (re_string_realloc_buffers):
74789         (build_wcs_upper_buffer, re_node_set_add_intersect):
74790         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
74791         (re_dfa_add_node, register_state): Likewise.
74792         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
74793         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
74794         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
74795         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
74796
74797 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
74798
74799         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
74800         m4/ulonglong.m4.  Problem reported by Martin Lambers.
74801
74802 2005-09-02  Bruno Haible  <bruno@clisp.org>
74803
74804         Support for lib vs. lib64 distinction on biarch platforms.
74805         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
74806         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
74807         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
74808
74809 2005-09-02  Bruno Haible  <bruno@clisp.org>
74810
74811         * gnulib-tool (import): In the other first-use case, provide defaults
74812         as well.
74813
74814 2005-09-02  Bruno Haible  <bruno@clisp.org>
74815
74816         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
74817         patches not yet found in the latest gettext release.
74818
74819 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
74820
74821         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
74822         to avoid a collision with bits/local_lim.h in glibc.
74823         All uses changed.  Problem reported by Dmitry V. Levin in
74824         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
74825
74826         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
74827         bugs in int versus size_t comparisons.
74828         (re_string_context_at): Fix bug where the code assumed that
74829         Idx is signed.
74830
74831         Use bool where appropriate.
74832         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
74833         All callers changed.
74834         (calc_eclosure_iter): Likewise, for ROOT arg.
74835         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
74836         (build_charclass_op): Likewise, for NON_MATCH arg.
74837         * lib/regex_internal.c (re_string_allocate, re_string_construct):
74838         (re_string_construct_common): Likewise, for ICASE arg.
74839         * lib/regexec.c (re_search_2_stub, re_search_stub):
74840         Likewise, for RET_LEN arg.
74841         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
74842         (set_regs): Likewise, for FL_BACKTRACK arg.
74843         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
74844         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
74845         (calc_eclosure_iter, parse_bracket_exp):
74846         Use bool for internal variables that are booleans.
74847         * lib/regexec.c (re_search_internal, check_matching,
74848         proceed_next_node):
74849         (set_regs, build_sifted_states, sift_states_bkref):
74850         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
74851         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
74852         (find_collation_sequence_value):
74853         Likewise.
74854         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
74855         (re_node_set_compare):
74856         Return bool, not int. All callers changed.
74857         * lib/regexec.c (check_halt_node_context, check_dst_limits):
74858         (build_trtable, check_node_accept): Likewise.
74859         * lib/regex_internal.h: Include stdbool.h.
74860
74861         Fix bugs uncovered when converting to bool.
74862         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
74863         failure instead of charging ahead blindly.
74864         * lib/regex_internal.c (register_state): Likewise.
74865         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
74866         for freeing internal storage.
74867         (group_nodes_into_DFA_states): Use unsigned int, not int, for
74868         bitset pieces used as boolean, to avoid undefined behavior
74869         on hosts that do int overflow checking.
74870
74871 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
74872
74873         * config/srclist.txt: Add glibc bugs 1285-1287.
74874
74875 2005-09-01  Jim Meyering  <jim@meyering.net>
74876
74877         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
74878         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
74879         Require gl_STAT_MACROS, too.
74880
74881 2005-09-01  Bruno Haible  <bruno@clisp.org>
74882
74883         * gnulib-tool (import): In the first-use case, provide defaults.
74884
74885 2005-09-01  Bruno Haible  <bruno@clisp.org>
74886
74887         * gnulib-tool (func_import): Remove the .tmp files.
74888
74889 2005-09-01  Bruno Haible  <bruno@clisp.org>
74890
74891         * gnulib-tool (func_import): Fix handling of symbolic links.
74892
74893 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
74894
74895         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
74896         old glibc regex code mishandles strings longer than 2**31 bytes.
74897         This patch fixes this when the regex code is used in gnulib
74898         (i.e., outside glibc).
74899
74900         This patch should not affect the use of the regex code inside
74901         glibc.  No doubt this problem also needs to be handled for glibc
74902         as well, but the result will be an incompatible change to the
74903         glibc ABI, and the old ABI will have to be supported too.  That
74904         can be the the subject for another patch.
74905
74906         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
74907         governing whether the rest of this patch is active.  By default,
74908         the macro is disabled and the patch has no effect.
74909         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
74910         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
74911         (struct re_pattern_buffer, re_search, re_search_2, re_match):
74912         (re_match_2, re_set_registers): Use the new types.
74913         * lib/regex_internal.h (Idx, re_hashval_t): New types.
74914         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
74915         New macros.
74916         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
74917         (re_string_context_at, bin_tree_t, re_dfastate_t):
74918         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
74919         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
74920         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
74921         (re_string_char_size_at, re_string_wchar_at):
74922         (re_string_elem_size_at):
74923         Use the new types and macros to port to 64-bit hosts.
74924         Use unsigned types for internal values, so that the code
74925         mostly works even for arrays larger than SSIZE_MAX.
74926         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
74927         (search_duplicated_node, calc_eclosure_iter, fetch_number):
74928         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
74929         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
74930         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
74931         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
74932         (calc_inveclosure, parse_dup_op, build_range_exp):
74933         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
74934         (fetch_number, create_token_tree, mark_opt_subexp):
74935         Likewise.
74936         * lib/regex_internal.c (re_string_construct_common,
74937         create_ci_newstate):
74938         (create_cd_newstate, re_string_allocate, re_string_construct):
74939         (re_string_realloc_buffers, build_wcs_upper_buffer):
74940         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
74941         (re_string_reconstruct, re_string_peek_byte_case):
74942         (re_string_fetch_byte_case, re_string_context_at):
74943         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
74944         (re_node_set_init_copy, re_node_set_add_intersect):
74945         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
74946         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
74947         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
74948         (re_acquire_state, re_acquire_state_context, register_state):
74949         Likewise.
74950         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
74951         search_cur_bkref_entry):
74952         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
74953         (re_search_internal, re_search_2_stub, re_search_stub)
74954         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
74955         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
74956         (update_cur_sifted_state, check_dst_limits):
74957         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
74958         (check_subexp_limits, sift_states_bkref, merge_state_array):
74959         (check_subexp_matching_top, get_subexp, get_subexp_sub):
74960         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
74961         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
74962         (expand_bkref_cache, check_node_accept_bytes):
74963         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
74964         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
74965         (acquire_init_state_context, check_halt_node_context):
74966         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
74967         (sift_states_backward, clean_state_log_if_needed):
74968         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
74969         (find_recover_state, transit_state_sb, transit_state_mb):
74970         (transit_state_bkref, build_trtable, match_ctx_clean):
74971         Likewise.
74972         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
74973         to work around an assumption that REG_MISSING is negative.
74974
74975         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
74976         (seek_collating_symbol_entry) [defined _LIBC]:
74977         (lookup_collation_sequence_value) [defined _LIBC]:
74978         (build_range_exp, build_collating_symbol) [defined _LIBC]:
74979         Use prototypes rather than old-style function definitions.
74980         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
74981         (transit_state_sb) [0]:
74982         (find_collation_sequence_value) [defined _LIBC]: Likewise.
74983
74984         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
74985         rm_eo.
74986
74987         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
74988         (optimize_subexps, lower_subexp):
74989         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
74990         since the signed shift might overflow.  Use 1u<<31 instead.
74991         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
74992         Likewise.
74993         * lib/regexec.c (check_dst_limits_calc_pos_1,
74994         check_subexp_matching_top): Likewise.
74995
74996         * lib/regcomp.c (optimize_subexps, lower_subexp):
74997         Use CHAR_BIT rather than 8, for clarity.
74998         * lib/regexec.c (check_dst_limits_calc_pos_1):
74999         (check_subexp_matching_top): Likewise.
75000         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
75001         have to worry about portability issues when shifting it left.
75002         Remove no-longer-needed test for table_size > 0.
75003         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
75004         in a word, as the resulting behavior is undefined.
75005         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
75006         in one case, a <= should have been an <, and in another case the
75007         whole test was missing.
75008         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
75009         the standard name CHAR_BIT.
75010         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
75011         this is not true on one's complement and signed-magnitude hosts.
75012
75013         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
75014         next_last_offset.
75015         (struct re_dfa_t): Remove unused member states_alloc.
75016         * lib/regcomp.c (init_dfa): Don't initialize unused members.
75017
75018 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
75019
75020         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
75021         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
75022         and large-file glibc and in 32-bit large-file Solaris.
75023
75024 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
75025
75026         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
75027         lengths fit in regoff_t; this isn't true if regoff_t is the same
75028         width as size_t.
75029         * lib/regex.c (re_search_internal): 5th arg is LAST_START
75030         (= START + RANGE) instead of RANGE.  This avoids overflow
75031         problems when regoff_t is the same width as size_t.
75032         All callers changed.
75033         (re_search_2_stub): Check for overflow when adding the
75034         sizes of the two strings.
75035         (re_search_stub): Check for overflow when adding START
75036         to RANGE; if it occurs, substitute the extreme value.
75037
75038 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
75039
75040         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
75041
75042 2005-08-31  Jim Meyering  <jim@meyering.net>
75043
75044         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
75045         a pointer-to-const.
75046         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
75047         (register_state): Likewise.
75048         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
75049         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
75050         (group_nodes_into_DFAstates): Likewise.
75051
75052 2005-08-31  Jim Meyering  <jim@meyering.net>
75053
75054         * check-module: Add a FIXME comment.
75055
75056 2005-08-31  Eric Blake  <ebb9@byu.net>
75057
75058         * modules/unistd-safer (Files): Add unistd--.h.
75059         * modules/stdio-safer (Files): Add stdio--.h.
75060
75061 2005-08-31  Derek Price  <derek@ximbiot.com>
75062
75063         * lib/getdelim.c (getdelim): Return EOF on EOF.
75064         Reported by Larry Jones <lawrence.jones@ugs.com>.
75065
75066 2005-08-31  Bruno Haible  <bruno@clisp.org>
75067
75068         Avoid unnecessary diffs in the generated lib/Makefile.am.
75069         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
75070         the generated files.
75071         (func_import): Don't set cmd.
75072
75073 2005-08-31  Bruno Haible  <bruno@clisp.org>
75074
75075         * lib/strstr.c: Include <stddef.h>, for NULL.
75076         * lib/strcasestr.c: Likewise.
75077         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
75078
75079 2005-08-31  Bruno Haible  <bruno@clisp.org>
75080
75081         * gnulib-tool: New option --macro-prefix.
75082         (func_import): Use macro_prefix.
75083         (import): Handle option --macro-prefix.
75084
75085 2005-08-31  Bruno Haible  <bruno@clisp.org>
75086
75087         * gnulib-tool (import): Rename most ac_* variables to cached_*.
75088         Also use new variables cached_lgpl, cached_libtool.
75089
75090 2005-08-31  Bruno Haible  <bruno@clisp.org>
75091
75092         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
75093         always instantiating them.
75094
75095 2005-08-31  Bruno Haible  <bruno@clisp.org>
75096
75097         * gnulib-tool (func_import): Read the previous cached settings
75098         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
75099         earlier added by gnulib but are now dropped. Warn when a gnulib file
75100         overwrites a non-gnulib file.
75101
75102 2005-08-31  Bruno Haible  <bruno@clisp.org>
75103
75104         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
75105         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
75106         projects that don't keep autogenerated files in CVS. Put into
75107         actioncmd only the specified modules, not the transitive closure.
75108
75109 2005-08-31  Bruno Haible  <bruno@clisp.org>
75110
75111         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
75112         Create directories that shall be filled.
75113         (import): Don't look for gl_* macros in configure.ac. Recurse across
75114         all directories containing a gnulib-cache.m4 files, if meaningful.
75115
75116 2005-08-31  Bruno Haible  <bruno@clisp.org>
75117
75118         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
75119         (import): Set seen_libtool when we see gl_LIBTOOL.
75120
75121 2005-08-31  Bruno Haible  <bruno@clisp.org>
75122
75123         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
75124         declaration macro definitions from generated gnulib.m4.
75125
75126 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
75127
75128         * lib/iconvme.h: Add prototype for iconv_alloc.
75129
75130 2005-08-29  Simon Josefsson  <jas@extundo.com>
75131
75132         * lib/iconvme.c: Fix errno.
75133
75134 2005-08-29  Bruno Haible  <bruno@clisp.org>
75135
75136         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
75137         that it works when the directory contains spaces.
75138
75139 2005-08-29  Bruno Haible  <bruno@clisp.org>
75140
75141         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
75142
75143 2005-08-29  Bruno Haible  <bruno@clisp.org>
75144
75145         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
75146         Emit more advice.
75147
75148 2005-08-29  Bruno Haible  <bruno@clisp.org>
75149         and Stepan Kasal  <kasal@ucw.cz>
75150
75151         * check-module: If more parameters are given, check each of them
75152         separately; add more exceptions, as noted by Jim Meyering.
75153         (check_module): New procedure.
75154         (%exempt_header): Now contains all exceptions.
75155
75156 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
75157
75158         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
75159
75160 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
75161
75162         * lib/iconvme.c: Split iconv_string into iconv_alloc.
75163
75164 2005-08-28  Bruno Haible  <bruno@clisp.org>
75165
75166         * m4/gnulib-tool.m4: New file.
75167
75168 2005-08-27  Jim Meyering  <jim@meyering.net>
75169
75170         * modules/unistd-safer (Files): Add pipe-safer.c.
75171         * modules/fcntl-safer (Files): Add creat-safer.c.
75172
75173 2005-08-27  Jim Meyering  <jim@meyering.net>
75174
75175         * m4/stdlib-safer.m4: New file.  From coreutils.
75176         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
75177         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
75178         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
75179         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
75180         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
75181
75182 2005-08-27  Jim Meyering  <jim@meyering.net>
75183
75184         * lib/fopen-safer.c: Merge minor changes from coreutils.
75185         * lib/dup-safer.c: Likewise.
75186         * lib/fd-safer.c: Likewise.
75187
75188         Merge from coreutils.
75189         * lib/stdio--.h: New file.
75190         * lib/stdlib--.h: New file.
75191         * lib/mkstemp-safer.c: New file.
75192
75193         GNU tar needs these.
75194         * lib/pipe-safer.c: New file.
75195         * lib/creat-safer.c: New file.
75196         * lib/fcntl--.h (creat): Define to creat_safer.
75197         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
75198         * lib/unistd--.h (pipe): Define to pipe_safer.
75199         * lib/unistd-safer.h: Declare pipe_safer.
75200
75201 2005-08-26  Simon Josefsson  <jas@extundo.com>
75202
75203         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
75204         Haible <bruno@clisp.org>.
75205
75206 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
75207
75208         * lib/regex_internal.h: Remove all references to
75209         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
75210         or better.
75211         (bitset_not, bitset_merge, bitset_not_merge):
75212         (bitset_mask, re_string_allocate, re_string_construct):
75213         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
75214         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
75215         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
75216         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
75217         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
75218         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
75219         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
75220         (re_acquire_state_context):
75221         Remove unnecessary forward decls.
75222         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
75223         Put __attribute at function definition,
75224         now that the function decl has been removed.
75225         * lib/regex_internal.c (re_string_peek_byte_case):
75226         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
75227         Likewise.
75228
75229 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
75230
75231         * m4/regex.m4: Add AC_PREREQ(2.50).
75232         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
75233
75234 2005-08-25  Simon Josefsson  <jas@extundo.com>
75235
75236         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
75237         __fsetlocking.
75238
75239 2005-08-25  Simon Josefsson  <jas@extundo.com>
75240
75241         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
75242         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
75243         GLIBC specific code.
75244
75245 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
75246
75247         Make regex safe for g++.  This fixes one real bug (an "err"
75248         that should have been "*err").  g++ problem reported by
75249         Sam Steingold.
75250         * lib/regex_internal.h (re_calloc): New macro, consistent with
75251         re_malloc etc.  All callers of calloc changed to use re_calloc.
75252         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
75253         not int.  All callers changed.
75254         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
75255         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
75256         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
75257         (find_recover_state): Change "err" to "*err"; this fixes what
75258         appears to be a real bug.
75259         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
75260         versus int.
75261
75262 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
75263
75264         * modules/regex (Depends-on): Add malloc, since the code
75265         assumes that !malloc(0) means failure.
75266
75267 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
75268
75269         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
75270
75271         alloca modernization/simplification for regex.
75272         * lib/regex.c: Remove portability cruft for alloca.  This no longer
75273         needs to be at the start of the file, and can be moved into
75274         regex_internal.h and simplified.
75275         * lib/regex_internal.h: Include <alloca.h>.
75276         (__libc_use_alloca) [!defined _LIBC]: New macro.
75277         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
75278         now works outside glibc.
75279
75280 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
75281
75282         * config/srclist.txt: Add glibc bugs 1241, 1245.
75283
75284 2005-08-25  Jim Meyering  <jim@meyering.net>
75285
75286         * lib/open-safer.c: Include <config.h>.
75287         Otherwise, we'd lose LARGEFILE support in any file using
75288         e.g. "fcntl--.h"
75289
75290 2005-08-25  Bruno Haible  <bruno@clisp.org>
75291
75292         * m4/minmax.m4: Require autoconf 2.52.
75293         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
75294         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
75295         alternatives of translit over the alphabet.
75296         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
75297
75298 2005-08-24  Simon Josefsson  <jas@extundo.com>
75299
75300         * tests/test-getpass.c: New file.
75301
75302 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
75303
75304         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
75305         for GNU regex features.
75306
75307 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
75308
75309         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
75310         * lib/regex.h (regerror): Likewise.
75311
75312         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
75313         requires this.  (The code never needed it.)
75314
75315         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
75316         All uses of recently-renamed identifiers changed to use the new,
75317         POSIX-compliant names.  The code will build and run just fine
75318         without these changes, but it's better to eat our own dog food
75319         and use the standard-conforming names.
75320
75321         * lib/regex.h: Fix a multitude of POSIX name space violations.
75322         These changes have an effect only for programs that define
75323         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
75324         do not change anything for programs compiled in the normal way.
75325         Also, there is no effect on the ABI.
75326
75327         (_REGEX_SOURCE): New macro.
75328         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
75329         defined and _GNU_SOURCE is not; this fixes a name space violation.
75330
75331         Rename the following macros to obey POSIX requirements.
75332         The old names are still visible as macros if _REGEX_SOURCE is defined.
75333         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
75334         RE_BACKSLASH_ESCAPE_IN_LISTS.
75335         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
75336         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
75337         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
75338         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
75339         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
75340         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
75341         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
75342         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
75343         (REG_INTERVALS): renamed from RE_INTERVALS.
75344         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
75345         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
75346         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
75347         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
75348         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
75349         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
75350         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
75351         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
75352         RE_UNMATCHED_RIGHT_PAREN_ORD.
75353         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
75354         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
75355         (REG_DEBUG): renamed from RE_DEBUG.
75356         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
75357         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
75358         unusual, since we can't clash with the POSIX REG_ICASE.
75359         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
75360         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
75361         (REG_NO_SUB): renamed from RE_NO_SUB.
75362         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
75363         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
75364         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
75365         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
75366         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
75367         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
75368         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
75369         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
75370         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
75371         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
75372         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
75373         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
75374         RE_SYNTAX_POSIX_MINIMAL_BASIC.
75375         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
75376         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
75377         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
75378         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
75379         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
75380         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
75381         (REG_FIXED): Renamed from REGS_FIXED.
75382         (REG_NREGS): Renamed from RE_NREGS.
75383
75384         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
75385         of other REG_* macros, since POSIX says the user is allowed to
75386         #undef these macros selectively.
75387
75388         (reg_errcode_t): Update comment stating what other tables need
75389         to be consistent.
75390
75391         Rename the following enum values to obey POSIX requirements.
75392         The old names are still visible as macros.
75393         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
75394         is not defined, since GNU is supposed to be a superset of POSIX as
75395         much as possible, and since we want reg_errcode_t to be a signed
75396         type for implementation consistency.
75397         (_REG_NOERROR): Renamed from REG_NOERROR.
75398         (_REG_NOMATCH): Renamed from REG_NOMATCH.
75399         (_REG_BADPAT): Renamed from REG_BADPAT.
75400         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
75401         (_REG_ECTYPE): Renamed from REG_ECTYPE.
75402         (_REG_EESCAPE): Renamed from REG_EESCAPE.
75403         (_REG_ESUBREG): Renamed from REG_ESUBREG.
75404         (_REG_EBRACK): Renamed from REG_EBRACK.
75405         (_REG_EPAREN): Renamed from REG_EPAREN.
75406         (_REG_EBRACE): Renamed from REG_EBRACE.
75407         (_REG_BADBR): Renamed from REG_BADBR.
75408         (_REG_ERANGE): Renamed from REG_ERANGE.
75409         (_REG_ESPACE): Renamed from REG_ESPACE.
75410         (_REG_BADRPT): Renamed from REG_BADRPT.
75411         (_REG_EEND): Renamed from REG_EEND.
75412         (_REG_ESIZE): Renamed from REG_ESIZE.
75413         (_REG_ERPAREN): Renamed from REG_ERPAREN.
75414         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
75415         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
75416         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
75417         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
75418
75419         (_REG_RE_NAME, _REG_RM_NAME): New macros.
75420         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
75421         changed.  But support the old name if the new one is not defined
75422         and if _REGEX_SOURCE.
75423
75424         Change the following member names in struct re_pattern_buffer.
75425         The old names are still supported if !_REGEX_SOURCE.
75426         The new names are always supported, regardless of _REGEX_SOURCE.
75427         (re_buffer): Renamed from buffer.
75428         (re_allocated): Renamed from allocated.
75429         (re_used): Renamed from used.
75430         (re_syntax): Renamed from syntax.
75431         (re_fastmap): Renamed from fastmap.
75432         (re_translate): Renamed from translate.
75433         (re_can_be_null): Renamed from can_be_null.
75434         (re_regs_allocated): Renamed from regs_allocated.
75435         (re_fastmap_accurate): Renamed from fastmap_accurate.
75436         (re_no_sub): Renamed from no_sub.
75437         (re_not_bol): Renamed from not_bol.
75438         (re_not_eol): Renamed from not_eol.
75439         (re_newline_anchor): Renamed from newline_anchor.
75440
75441         Change the following member names in struct re_registers.
75442         The old names are still supported if !_REGEX_SOURCE.
75443         The new names are always supported, regardless of _REGEX_SOURCE.
75444         (rm_num_regs): Renamed from num_regs.
75445         (rm_start): Renamed from start.
75446         (rm_end): Renamed from end.
75447
75448         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
75449         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
75450         Prepend __ to parameter names.
75451
75452         Undo yesterday's changes.
75453
75454 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
75455
75456         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
75457         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
75458         lib/regex.c.
75459
75460 2005-08-24  Jim Meyering  <jim@meyering.net>
75461
75462         Sync from coreutils.
75463         * m4/fcntl-safer.m4: New file.
75464
75465         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
75466         and object files for this module.
75467
75468 2005-08-24  Jim Meyering  <jim@meyering.net>
75469
75470         Sync from coreutils.
75471         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
75472
75473 2005-08-24  Jim Meyering  <jim@meyering.net>
75474
75475         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
75476         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
75477
75478 2005-08-24  Jim Meyering  <jim@meyering.net>
75479
75480         * modules/fcntl-safer: New module.
75481         * modules/fts (Depends-on): Add fcntl-safer.
75482         * MODULES.html.sh (File descriptor based Input/Output):
75483         Add fcntl-safer.
75484
75485 2005-08-24  Bruno Haible  <bruno@clisp.org>
75486
75487         Support for unit test modules.
75488         * modules/README: Mention tests modules.
75489         * modules/TEMPLATE-TESTS: New file.
75490         * gnulib-tool: New options --extract-tests-module, --with-tests and
75491         --tests-base (unused for the moment).
75492         (testsbase, inctests): New variables.
75493         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
75494         (func_verify_module): Exclude TEMPLATE-TESTS.
75495         (func_verify_nontests_module, func_verify_tests_module): New functions.
75496         (func_get_dependencies): Add implicit dependency for tests modules.
75497         (func_get_tests_module): New function.
75498         (func_modules_transitive_closure): When --with-tests was specified,
75499         include the unit tests as well, unless explicitly avoided.
75500         (func_emit_lib_Makefile_am): Ignore the tests modules here.
75501         (func_emit_tests_Makefile_am): New function.
75502         (func_create_testdir): When --with-tests was specified, emit a
75503         tests/ directory.
75504         * MODULES.html.sh (Future developments): Update.
75505
75506 2005-08-24  Bruno Haible  <bruno@clisp.org>
75507
75508         * modules/tls-tests: New file.
75509         * tests/test-tls.c: New file, from GNU gettext.
75510
75511 2005-08-24  Bruno Haible  <bruno@clisp.org>
75512
75513         * modules/lock-tests: New file.
75514         * tests/test-lock.c: New file, from GNU gettext.
75515
75516 2005-08-24  Bruno Haible  <bruno@clisp.org>
75517
75518         * lib/lock.h: Add multiple inclusion guard.
75519         * lib/tls.h: Add multiple inclusion guard.
75520
75521 2005-08-24  Bruno Haible  <bruno@clisp.org>
75522
75523         * gnulib-tool: Add support for the --aux-dir option to
75524         --create-testdir, --create-megatestdir, --test, --megatest.
75525         (func_create_testdir, func_create_megatestdir): Optionally emit a
75526         AC_CONFIG_AUX_DIR directive.
75527         (create-testdir, create-megatestdir, test, megatest): Provide a
75528         default value for $auxdir.
75529
75530 2005-08-24  Bruno Haible  <bruno@clisp.org>
75531
75532         * gnulib-tool (import): Use compound statement instead of subshell
75533         where possible.
75534
75535 2005-08-24  Bruno Haible  <bruno@clisp.org>
75536
75537         * gnulib-tool (import): Change --aux-dir default to "build-aux".
75538
75539 2005-08-24  Bruno Haible  <bruno@clisp.org>
75540
75541         * gnulib-tool (func_version): Update.
75542
75543 2005-08-24  Bruno Haible  <bruno@clisp.org>
75544
75545         * gnulib-tool (func_import, func_create_testdir,
75546         func_create_megatestdir): Quote all autoconf macro arguments.
75547
75548 2005-08-24  Bruno Haible  <bruno@clisp.org>
75549
75550         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
75551         option --force, because --force causes the aclocal.m4 of each
75552         subdirectory to be newer than the corresponding config.h.in.
75553
75554 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
75555
75556         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
75557         All contents moved to gl_REGEX.
75558         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
75559         assume that it does.
75560
75561 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
75562
75563         * lib/regex.h (REG_NOSYS)
75564         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
75565         Define, since POSIX requires it as of 2001.
75566         (_REG_ENOSYS)
75567         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
75568         New private symbol, used to keep the enum signed in all cases.
75569         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
75570         Youngman in
75571         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
75572
75573         * lib/regex_internal.c (re_string_skip_chars, register_state):
75574         (calc_state_hash):
75575         Remove forward decls; no longer needed now that we use prototypes.
75576         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
75577         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
75578         (clean_state_log_if_needed): Likewise.
75579
75580 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
75581
75582         * config/srclist.txt: Add glibc bugs 1231-1233.
75583
75584 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
75585
75586         Fix problems reported by Sam Steingold in
75587         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
75588         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
75589         assumed that reg_errcode_t is a signed type, which is not
75590         necessarily true if _XOPEN_SOURCE is not defined.
75591         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
75592         since some compilers warn about it otherwise.
75593
75594 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
75595
75596         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
75597         (init_word_char, create_initial_state, duplicate_node_closure):
75598         (fetch_token, peek_token_bracket, build_range_exp):
75599         (build_collating_symbol): Remove forward decls; no longer needed
75600         now that we use prototypes.
75601
75602         * lib/regcomp.c:
75603         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
75604         (re_compile_fastmap_iter, regcomp, regerror, regfree):
75605         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
75606         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
75607         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
75608         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
75609         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
75610         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
75611         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
75612         (build_range_exp, build_collating_symbol, parse_bracket_exp):
75613         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
75614         (build_charclass, build_charclass_op, fetch_number, create_tree):
75615         (create_token_tree, mark_opt_subexp, duplicate_tree):
75616         Use prototypes rather than old-style definitions.
75617
75618         * lib/regex_internal.c:
75619         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
75620         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
75621         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
75622         (re_string_reconstruct, re_string_peek_byte_case):
75623         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
75624         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
75625         (re_node_set_init_copy, re_node_set_add_intersect):
75626         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
75627         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
75628         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
75629         (re_acquire_state, re_acquire_state_context, register_state):
75630         (create_ci_newstate, create_cd_newstate, free_state):
75631         Likewise.
75632         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
75633         re_search_2):
75634         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
75635         (re_search_internal, prune_impossible_nodes):
75636         (acquire_init_state_context, check_matching, static):
75637         (check_halt_node_context, check_halt_state_context, proceed_next_node):
75638         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
75639         (update_regs, sift_states_backward, build_sifted_states):
75640         (clean_state_log_if_needed, merge_state_array):
75641         (update_cur_sifted_state, add_epsilon_src_nodes):
75642         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
75643         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
75644         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
75645         (find_recover_state, check_subexp_matching_top, transit_state_mb):
75646         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
75647         (check_arrival, check_arrival_add_next_nodes):
75648         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
75649         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
75650         (check_node_accept_bytes, check_node_accept, extend_buffers):
75651         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
75652         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
75653         (sift_ctx_init):
75654         Likewise.
75655
75656         * lib/regex_internal.h:
75657         (re_string_allocate, re_string_construct, re_string_reconstruct):
75658         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
75659         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
75660         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
75661         (re_string_context_at, re_string_peek_byte_case):
75662         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
75663         is defined, since we now use prototypes always.
75664
75665         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
75666         C89 or better.  All uses removed.
75667
75668 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
75669
75670         * config/srclist.txt: Add glibc bugs 1220-1227.
75671
75672 2005-08-20  Jim Meyering  <jim@meyering.net>
75673
75674         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
75675         of unused local, dfa.
75676
75677 2005-08-20  Bruno Haible  <bruno@clisp.org>
75678
75679         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
75680
75681 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
75682
75683         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
75684         (re_node_set_insert_last, re_dfa_add_node):
75685         Rename local variables to avoid GCC shadowing warnings.
75686
75687 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
75688
75689         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
75690         [defined lint]: Suppress bogus uninitialized-variable warnings.
75691
75692         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
75693         and let the caller return REG_ESPACE if out of space.  This
75694         removes an uninitialied-variable warning with GCC 4.0.1, and also
75695         avoids taking the address of a local variable.  All callers
75696         changed.
75697
75698 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
75699
75700         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
75701         $LIBCSRC/posix/regexec.c.
75702         Add glibc bug 1217 for regcomp.c.
75703
75704 2005-08-19  Jim Meyering  <jim@meyering.net>
75705
75706         * lib/regexec.c (proceed_next_node): Redo local variables to
75707         avoid GCC shadowing warnings.
75708
75709 2005-08-18  Bruno Haible  <bruno@clisp.org>
75710
75711         * lib/strstr.c (strstr): Fix return value in multibyte case.
75712         * lib/strcasestr.c (strcasestr): Likewise.
75713
75714 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
75715
75716         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
75717
75718 2005-08-17  Jim Meyering  <jim@meyering.net>
75719
75720         Make the %s format (seconds since the epoch) work for a negative
75721         number and when used with a zero-padded field width, e.g. %015s.
75722
75723         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
75724         label so that it precedes the code to set `digits'.  Otherwise,
75725         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
75726         print `00-22'.  Now, it prints `-0022', as it should.
75727
75728 2005-08-17  Bruno Haible  <bruno@clisp.org>
75729
75730         * modules/strstr (Files): Add m4/mbrtowc.m4.
75731         (Depends-on): Add mbuiter.
75732
75733 2005-08-17  Bruno Haible  <bruno@clisp.org>
75734
75735         * modules/strcasestr: New file.
75736         * MODULES.html.sh (String handling, based on ANSI C 89): Add
75737         strcasestr.
75738
75739 2005-08-17  Bruno Haible  <bruno@clisp.org>
75740
75741         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
75742
75743 2005-08-17  Bruno Haible  <bruno@clisp.org>
75744
75745         * modules/mbuiter: New file.
75746         * MODULES.html.sh (Extended multibyte and wide character utilities):
75747         Add mbuiter.
75748
75749 2005-08-17  Bruno Haible  <bruno@clisp.org>
75750
75751         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
75752         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
75753
75754 2005-08-17  Bruno Haible  <bruno@clisp.org>
75755
75756         * m4/strcasestr.m4: New file.
75757
75758 2005-08-17  Bruno Haible  <bruno@clisp.org>
75759
75760         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
75761         * lib/strstr.c: Completely rewritten, with multibyte locale support.
75762
75763 2005-08-17  Bruno Haible  <bruno@clisp.org>
75764
75765         * lib/strcasestr.h: New file.
75766         * lib/strcasestr.c: New file.
75767
75768 2005-08-17  Bruno Haible  <bruno@clisp.org>
75769
75770         * lib/strcasecmp.c: Use mbuiter.h.
75771
75772 2005-08-17  Bruno Haible  <bruno@clisp.org>
75773
75774         * lib/mbuiter.h: New file.
75775
75776 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
75777
75778         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
75779         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
75780         and gl_GETOPT are both invoked via different paths (as happens
75781         with GNU tar CVS because it uses both argp and getopt), the former
75782         wins.
75783
75784 2005-08-16  Bruno Haible  <bruno@clisp.org>
75785
75786         * modules/tls: New file.
75787         * MODULES.html.sh (Multithreading): Add tls.
75788
75789 2005-08-16  Bruno Haible  <bruno@clisp.org>
75790
75791         * modules/strnlen1: New file.
75792         * MODULES.html.sh (String handling): Add strnlen1.
75793
75794 2005-08-16  Bruno Haible  <bruno@clisp.org>
75795
75796         * modules/strcase (Files): Add m4/mbrtowc.m4.
75797         (Depends-on): Add strnlen1, mbchar.
75798
75799 2005-08-16  Bruno Haible  <bruno@clisp.org>
75800
75801         * modules/mbiter: New file.
75802         * MODULES.html.sh (Extended multibyte and wide character utilities):
75803         Add mbiter.
75804
75805 2005-08-16  Bruno Haible  <bruno@clisp.org>
75806
75807         * modules/mbfile: New file.
75808         * MODULES.html.sh (Extended multibyte and wide character utilities):
75809         Add mbfile.
75810
75811 2005-08-16  Bruno Haible  <bruno@clisp.org>
75812
75813         * modules/mbchar: New file.
75814         * MODULES.html.sh (Extended multibyte and wide character utilities):
75815         New section.
75816
75817 2005-08-16  Bruno Haible  <bruno@clisp.org>
75818
75819         * m4/tls.m4: New file, from GNU gettext.
75820
75821 2005-08-16  Bruno Haible  <bruno@clisp.org>
75822
75823         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
75824         always.
75825         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
75826
75827 2005-08-16  Bruno Haible  <bruno@clisp.org>
75828
75829         * m4/mbiter.m4: New file.
75830
75831 2005-08-16  Bruno Haible  <bruno@clisp.org>
75832
75833         * m4/mbfile.m4: New file.
75834
75835 2005-08-16  Bruno Haible  <bruno@clisp.org>
75836
75837         * m4/mbchar.m4: New file.
75838
75839 2005-08-16  Bruno Haible  <bruno@clisp.org>
75840
75841         * lib/tls.h: New file, from GNU gettext.
75842         * lib/tls.c: New file, from GNU gettext.
75843
75844 2005-08-16  Bruno Haible  <bruno@clisp.org>
75845
75846         * lib/strnlen1.h: New file.
75847         * lib/strnlen1.c: New file.
75848
75849 2005-08-16  Bruno Haible  <bruno@clisp.org>
75850
75851         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
75852         (mbi_init): Update.
75853         (mbi_avail, mbi_advance): Let the iteration end before the terminating
75854         NUL byte, not after it.
75855
75856 2005-08-16  Bruno Haible  <bruno@clisp.org>
75857
75858         * lib/strcase.h (strcasecmp): Add note in comments.
75859         * lib/strncasecmp.c: Use code from strcasecmp.c.
75860         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
75861         (strcasecmp): Work correctly in multibyte locales.
75862
75863 2005-08-16  Bruno Haible  <bruno@clisp.org>
75864
75865         * lib/mbiter.h: New file.
75866
75867 2005-08-16  Bruno Haible  <bruno@clisp.org>
75868
75869         * lib/mbfile.h: New file.
75870
75871 2005-08-16  Bruno Haible  <bruno@clisp.org>
75872
75873         * lib/mbchar.h: New file.
75874         * lib/mbchar.c: New file.
75875
75876 2005-08-16  Bruno Haible  <bruno@clisp.org>
75877
75878         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
75879         the valid ones. Makes the comparison operations transitive:
75880         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
75881         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
75882
75883 2005-08-15  Simon Josefsson  <jas@extundo.com>
75884
75885         * modules/ssize_t (License): Change to 'unlimited'.
75886
75887         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
75888
75889 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
75890
75891         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
75892         Add comments for each pending glibc patch.
75893
75894 2005-08-15  Bruno Haible  <bruno@clisp.org>
75895
75896         * lib/regex.h (__restrict_arr): Don't define to __restrict if
75897         __cplusplus is defined.
75898
75899 2005-08-14  Jim Meyering  <jim@meyering.net>
75900
75901         Sync from coreutils.
75902
75903         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
75904         Use the hash-table-based cycle-detection code not just when
75905         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
75906         Reported by James Youngman in
75907         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
75908         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
75909         FTS_TIGHT_CYCLE_CHECK.
75910         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
75911         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
75912         once again.
75913         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
75914         * lib/fts.c (fd_safer): Remove decl.
75915         Include fcntl--.h rather than unistd-safer.h
75916         (fts_safe_changedir): Don't call fd_safer; no longer needed
75917         now that we include fcntl--.h.
75918
75919 2005-08-12  Simon Josefsson  <jas@extundo.com>
75920
75921         * modules/getndelim2: Use ssize_t module.
75922         * modules/getnline: Likewise.
75923         * modules/safe-read: Likewise.
75924         * modules/xreadlink: Likewise.
75925
75926         * modules/ssize_t: New file.
75927
75928 2005-08-12  Simon Josefsson  <jas@extundo.com>
75929
75930         * m4/readline.m4: Look for termcap, curses or ncurses if required.
75931
75932 2005-08-12  Simon Josefsson  <jas@extundo.com>
75933
75934         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
75935         ssize_t.
75936
75937 2005-08-12  Simon Josefsson  <jas@extundo.com>
75938
75939         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
75940         readline, getdelim and check_version.
75941         (Support for systems lacking ISO C 99: Sizes of integer types):
75942         Add size_max.
75943
75944 2005-08-12  Bruno Haible  <bruno@clisp.org>
75945
75946         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
75947
75948 2005-08-11  Simon Josefsson  <jas@extundo.com>
75949
75950         * modules/readline: New file.
75951
75952         * modules/strnlen (Files): Add strnlen.h.
75953
75954 2005-08-11  Simon Josefsson  <jas@extundo.com>
75955
75956         * m4/readline.m4: New file.
75957
75958 2005-08-11  Simon Josefsson  <jas@extundo.com>
75959
75960         * lib/readline.h, readline.c: New file.
75961
75962 2005-08-11  Simon Josefsson  <jas@extundo.com>
75963
75964         * doc/gnulib.texi (Initial import, Finishing touches): Mention
75965         gl_AVOID.
75966
75967 2005-08-11  Bruno Haible  <bruno@clisp.org>
75968
75969         * lib/strnlen.h (strnlen): Change parameter name to match comment.
75970
75971 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
75972
75973         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
75974
75975 2005-08-10  Simon Josefsson  <jas@extundo.com>
75976
75977         * tests/test-iconvme.c: New file.
75978
75979 2005-08-10  Simon Josefsson  <jas@extundo.com>
75980
75981         * m4/strnlen.m4: New file.
75982
75983         * m4/strndup.m4: Don't check for strnlen declaration, done in
75984         strnlen.m4.
75985
75986 2005-08-10  Simon Josefsson  <jas@extundo.com>
75987
75988         * lib/strndup.c: Use strnlen.h.
75989
75990         * lib/strnlen.h: New file.
75991
75992 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
75993
75994         * README: Typos.
75995
75996 2005-08-02  Simon Josefsson  <jas@extundo.com>
75997
75998         * modules/readline: New file.
75999
76000 2005-08-02  Simon Josefsson  <jas@extundo.com>
76001
76002         * modules/getdelim: New file.
76003
76004         * modules/getline: Rewrite, don't use getndelim2.
76005
76006 2005-08-02  Simon Josefsson  <jas@extundo.com>
76007
76008         * m4/getline.m4: Separate out getdelim stuff into separate module.
76009
76010         * m4/getdelim.m4: New file.
76011
76012 2005-08-02  Simon Josefsson  <jas@extundo.com>
76013
76014         * lib/getline.h, getline.c: Rewrite.
76015
76016         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
76017
76018 2005-07-31  Bruno Haible  <bruno@clisp.org>
76019
76020         * lib/lock.h (gl_lock_initializer): New macro.
76021         (gl_lock_define_initialized): Use it.
76022         (gl_rwlock_initializer): New macro.
76023         (gl_rwlock_define_initialized): Use it.
76024         (gl_recursive_lock_initializer): New macro.
76025         (gl_recursive_lock_define_initialized): Use it.
76026
76027 2005-07-30  Karl Berry  <karl@gnu.org>
76028
76029         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
76030         Report from Ben Pfaff, regarding getopt.
76031
76032 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
76033
76034         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
76035         normal way.
76036         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
76037         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
76038         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
76039         (gl_GETOPT): Use the new macros.  Most of the implementation
76040         is moved to the new macros.  This is for programs like Emacs
76041         that don't want all the functionality of gl_GETOPT.
76042
76043 2005-07-26  Bruno Haible  <bruno@clisp.org>
76044
76045         * m4/lock.m4: Update from GNU gettext.
76046
76047 2005-07-26  Bruno Haible  <bruno@clisp.org>
76048
76049         * lib/lock.h: Update from GNU gettext.
76050         * lib/lock.c: Update from GNU gettext.
76051
76052 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
76053
76054         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
76055         obsolescent AC_TRY_RUN.  Include the default includes files, for
76056         'exit'.
76057
76058 2005-07-24  Bruno Haible  <bruno@clisp.org>
76059
76060         * modules/visibility: New file.
76061         * MODULES.html.sh (Misc): Add visibility.
76062
76063 2005-07-24  Bruno Haible  <bruno@clisp.org>
76064
76065         * m4/visibility.m4: New file.
76066
76067 2005-07-24  Bruno Haible  <bruno@clisp.org>
76068
76069         * doc/visibility.texi: New file.
76070
76071 2005-07-22  Bruno Haible  <bruno@clisp.org>
76072
76073         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
76074         $(ALLOCA_H), redundant through BUILT_SOURCES.
76075         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
76076         redundant through BUILT_SOURCES.
76077         * modules/byteswap (Makefile.am): Remove explicit dependency on
76078         $(BYTESWAP_H), redundant through BUILT_SOURCES.
76079         * modules/fnmatch (Makefile.am): Remove explicit dependency on
76080         $(FNMATCH_H), redundant through BUILT_SOURCES.
76081         * modules/getopt (Makefile.am): Remove explicit dependency on
76082         $(GETOPT_H), redundant through BUILT_SOURCES.
76083         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
76084         redundant through BUILT_SOURCES.
76085         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
76086         redundant through BUILT_SOURCES.
76087         * modules/stdbool (Makefile.am): Remove explicit dependency on
76088         $(STDBOOL_H), redundant through BUILT_SOURCES.
76089         * modules/stdint (Makefile.am): Remove explicit dependency on
76090         $(STDINT_H), redundant through BUILT_SOURCES.
76091         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
76092         Remove explicit dependency on $(SYSEXITS_H).
76093         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
76094
76095 2005-07-18  Simon Josefsson  <jas@extundo.com>
76096
76097         * lib/check-version.c (check_version): Accept identical versions too.
76098
76099 2005-07-18  Bruno Haible  <bruno@clisp.org>
76100
76101         * modules/lock: New file.
76102         * MODULES.html.sh (Multithreading): New section.
76103
76104 2005-07-18  Bruno Haible  <bruno@clisp.org>
76105
76106         * m4/lock.m4: New file, from GNU gettext.
76107
76108 2005-07-18  Bruno Haible  <bruno@clisp.org>
76109
76110         * lib/lock.h: New file, from GNU gettext.
76111         * lib/lock.c: New file, from GNU gettext.
76112
76113 2005-07-18  Bruno Haible  <bruno@clisp.org>
76114
76115         * lib/lock.h (gl_once_t): New type.
76116         (gl_once_define, gl_once): New macros.
76117         * lib/lock.c (fresh_once): New variable.
76118         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
76119         functions.
76120
76121 2005-07-16  Simon Josefsson  <jas@extundo.com>
76122
76123         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
76124         workaround, suggested by Bruno.
76125
76126 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
76127
76128         * modules/xalloc (Depends-on): Add xalloc-die.
76129         * modules/xvasprintf (Depends-on): Add xalloc-die.
76130
76131 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
76132
76133         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
76134         with a minor change.
76135
76136 2005-07-15  Bruno Haible  <bruno@clisp.org>
76137
76138         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
76139         When using lib/poll.c, define poll as rpl_poll.
76140
76141 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
76142
76143         * modules/argp (Depends-on): Remove unlocked-io.
76144
76145 2005-07-14  Derek Price  <derek@ximbiot.com>
76146
76147         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
76148         for glob symlink bug.
76149
76150 2005-07-14  Bruno Haible  <bruno@clisp.org>
76151
76152         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
76153         Instead, test for *_unlocked function declarations directly.
76154
76155 2005-07-11  Simon Josefsson  <jas@extundo.com>
76156
76157         * modules/size_max: New file.
76158
76159         * modules/xsize: Depend on size_max module for size_max.m4.
76160
76161 2005-07-11  Simon Josefsson  <jas@extundo.com>
76162
76163         * lib/size_max.h: New file.
76164
76165 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
76166
76167         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
76168         copyright symbol and the year.
76169         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
76170         (version_etc_va): Use parameterized copyright notice.
76171         Reword to conform to the current GNU coding standards.
76172
76173 2005-07-11  Karl Berry  <karl@gnu.org>
76174
76175         * doc/gnulib.texi (Quoting): new node.
76176         (Initial import): more info, from Patrice.
76177
76178 2005-07-11  Bruno Haible  <bruno@clisp.org>
76179
76180         * gnulib-tool (func_usage): Document option --avoid.
76181         (Command line options): Handle --avoid.
76182         (func_acceptable): New function.
76183         (func_modules_transitive_closure): Use it.
76184
76185 2005-07-11  Bruno Haible  <bruno@clisp.org>
76186
76187         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
76188         Reported by Jim Meyering.
76189
76190 2005-07-10  Bruno Haible  <bruno@clisp.org>
76191
76192         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
76193         Needed when size_t is smaller than 'unsigned int'.
76194         Reported by Paul Eggert.
76195
76196 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
76197
76198         * modules/argp (Depends-on): Add unlocked-io
76199
76200 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
76201
76202         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
76203         block of defines.
76204
76205 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
76206
76207         * config/srclist.txt: Comment out regcomp.c, since we have a porting
76208         fix now.
76209
76210 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
76211         and Paul Eggert  <eggert@cs.ucla.edu>
76212
76213         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
76214         in wint_t, not wchar_t.  Remove now-unnecessary cast.
76215
76216 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
76217
76218         * modules/regex (Files): Add lib/regex_internal.c,
76219         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
76220         (Depends-on): Add extensions.
76221         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
76222
76223 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
76224
76225         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
76226         pathconf.
76227         * m4/same.m4 (gl_SAME): Likewise.
76228         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
76229
76230         * m4/regex.m4: Adjust to new libc regex implementation.
76231         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
76232         all the .c and .h parts of (the new) regex.
76233         Quote the m4 stuff better.
76234         Check for RE_ICASE bug of old gnulib.
76235         Check for REG_STARTEND of recent libc.
76236         Rename local variables from jm_* to gl_*.
76237         Quote operand of "test -f".
76238         Say "recent enough" version of libc, not "version 2".
76239         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
76240         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
76241         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
76242         Remove check for btowc, isascii.
76243         Require AM_LANGINFO_CODESET.
76244
76245 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
76246
76247         * lib/regex.c, regex.h: Sync from libc.
76248         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
76249         * lib/regexec.c:
76250         New files, synced from libc, except that regex_internal.h
76251         currently has a small porting fix.
76252
76253 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
76254
76255         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
76256         regex_internal.c, regexec.c.
76257         Add regex_internal.h too, but as a comment, since the libc version
76258         is currently broken in gnulib mode.
76259
76260 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
76261
76262         Support programs like Emacs that use gnulib but not gettext.
76263         * MODULES.html.sh (Internationalization functions): Add gettext-h.
76264         * modules/gettext-h: New file.
76265         * modules/gettext (Files): Remove lib/gettext.h.
76266         (Depends-on): Add gettext-h.
76267         (Makefile.am): Remove lib_SOURCES.
76268         * modules/argmatch, modules/c-stack, modules/closeout:
76269         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
76270         * modules/execute, modules/file-type, modules/getaddrinfo:
76271         * modules/getopt, modules/human, modules/javacomp:
76272         * modules/javaexec, modules/mkdir-p, modules/obstack:
76273         * modules/openat, modules/pagealign_alloc, modules/pipe:
76274         * modules/quotearg, modules/regex, modules/rpmatch:
76275         * modules/unicodeio, modules/userspec, modules/version-etc:
76276         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
76277         * modules/xsetenv:
76278         Depend on gettext-h, not gettext.
76279
76280 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
76281
76282         * gnulib-tool (func_import): Add support for 'public domain' license.
76283         * modules/alloca, modules/atexit, modules/memmove:
76284         Now public domain, not GPL.
76285         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
76286         * modules/realloc, modules/strerror, modules/strtod:
76287         Now LGPL, not GPL.
76288
76289 2005-07-05  Bruno Haible  <bruno@clisp.org>
76290
76291         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
76292         autoconf CVS. Needed for mingw.
76293
76294 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
76295
76296         Remove the dependency of the strftime module on the tzset module.
76297         * modules/strftime (Depends-on): Remove dependency on tzset.
76298
76299 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
76300
76301         Remove the dependency of the strftime module on the tzset module.
76302         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
76303         gl_FUNC_TZSET_CLOBBER.
76304
76305 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
76306
76307         Remove the dependency of the strftime module on the tzset module.
76308         * lib/strftime.c (my_strftime)
76309         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
76310         Copy the input structure, to work around some of the bug with
76311         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
76312         Solaris releases, you should also use the tzset module, but we won't
76313         require it as a dependency any more since we don't want LGPLed code
76314         to depend on GPLed code.
76315
76316 2005-07-02  Jim Meyering  <jim@meyering.net>
76317
76318         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
76319         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
76320         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
76321         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
76322
76323 2005-07-02  Jim Meyering  <jim@meyering.net>
76324
76325         * lib/backupfile.c (backup_args): Change a `0' to NULL.
76326
76327 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
76328
76329         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
76330         declares only 'struct timespec;' (!).
76331
76332 2005-07-01  Jim Meyering  <jim@meyering.net>
76333
76334         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
76335         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
76336         * lib/save-cwd.c, tempname.c:
76337         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
76338         and don't include <sys/file.h>).
76339
76340 2005-06-29  Jim Meyering  <jim@meyering.net>
76341
76342         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
76343         type name.  Use the variable name instead.
76344         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
76345         Likewise.
76346
76347 2005-06-28  Simon Josefsson  <jas@extundo.com>
76348
76349         * modules/check-version (Files): Add check-version.m4.
76350
76351 2005-06-28  Simon Josefsson  <jas@extundo.com>
76352
76353         * m4/check-version.m4: New file, suggested by Jim Meyering
76354         <jim@meyering.net>.
76355
76356 2005-06-28  Simon Josefsson  <jas@extundo.com>
76357
76358         * lib/check-version.h, lib/check-version.c: New files.
76359
76360 2005-06-28  Simon Josefsson  <jas@extundo.com>
76361
76362         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
76363         collision with global variable.  Better indentation.  Don't
76364         increment buffer pointer beyond buffer end.  Based on comments
76365         from Paul Eggert <eggert@cs.ucla.edu>.
76366
76367         * lib/base64.h: Indent.
76368
76369 2005-06-28  Simon Josefsson  <jas@extundo.com>
76370
76371         * doc/gnulib.texi (Library version handling): New section.
76372
76373 2005-06-28  Jim Meyering  <jim@meyering.net>
76374
76375         * check-module (find_included_lib_files): Hard-code another
76376         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
76377         but modules/fts-lgpl (correctly) does not list those files.
76378
76379         * modules/canonicalize (Files): Add lib/pathmax.h.
76380
76381 2005-06-25  Simon Josefsson  <jas@extundo.com>
76382
76383         * modules/check-version: New file.
76384
76385 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
76386
76387         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
76388         initializer of struct addrinfo, as an indication that we don't
76389         care how many members the structure has.
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         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
76396         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
76397         * m4/stat.m4: Remove this file.
76398
76399 2005-06-24  Derek Price  <derek@ximbiot.com>
76400         and Bruno Haible  <bruno@clisp.org>
76401
76402         Remove stat module & update lstat.
76403         * lib/stat.c: Remove this file...
76404         (slash_aware_lstat): ...moving this content and its support...
76405         * lib/lstat.c (rpl_lstat): ...into here.
76406         * lib/lstat.h: New file.
76407
76408 2005-06-24  Derek Price  <derek@ximbiot.com>
76409         and Bruno Haible  <bruno@clisp.org>
76410
76411         Remove stat module & update lstat.
76412         * config/srclist.txt (libc sources): Remove stat.
76413
76414 2005-06-24  Derek Price  <derek@ximbiot.com>
76415         and Bruno Haible  <bruno@clisp.org>
76416
76417         Remove stat module & update lstat.
76418         * MODULES.html.sh (stat): Remove.
76419         * MODULES.html: Regenerated.
76420         * modules/lstat (Description): Correct function name.
76421         (Files): Add "lstat.h".
76422         (Depends-on): Remove stat, add xalloc, stat-macros.
76423         * modules/stat: Remove this file.
76424         (Include): Add "lstat.h", remove <sys/stat.h>.
76425
76426 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
76427
76428         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
76429         (ranged_convert): Don't save conversion in a temporary struct.
76430         This causes a warning with GCC 4.0.0, and anyway in the typical
76431         case it's not worth the extra 100 bytes or so of code.
76432         (ranged_convert, __mktime_internal): When calling a function via a
76433         pointer P, use P () rather than (*P) (), as we now assume C89 or
76434         better.
76435
76436 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
76437
76438         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
76439         "who -r" failed to give output.  Problem reported by Tim Waugh.
76440
76441         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
76442         (xcalloc): Use it to avoid needless tests.
76443         Problem reported by Jim Meyering.
76444
76445 2005-06-20  Derek Price  <derek@ximbiot.com>
76446
76447         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
76448         unnecessary for Autoconfs > 2.59c.
76449
76450 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
76451
76452         * lib/argp.h (__option_is_short): Check upper limit of
76453         __key. Isprint() requires its argument to have the value
76454         of an unsigned char or EOF.
76455
76456 2005-06-16  Jim Meyering  <jim@meyering.net>
76457
76458         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
76459         when either N or S is zero.
76460
76461 2005-06-16  Derek Price  <derek@ximbiot.com>
76462
76463         * m4/bison.m4: Declare YACC & YFLAGS precious.
76464
76465 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
76466
76467         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
76468         multibyte string or pattern, fall back on unibyte matching.
76469         Problem reported by James Youngman.
76470
76471 2005-06-08  Bruno Haible  <bruno@clisp.org>
76472
76473         * modules/csharpcomp: New file.
76474         * MODULES.html.sh (C#): Add csharpcomp.
76475
76476 2005-06-08  Bruno Haible  <bruno@clisp.org>
76477
76478         * m4/csharpcomp.m4: New file, from GNU gettext.
76479
76480 2005-06-08  Bruno Haible  <bruno@clisp.org>
76481
76482         * lib/csharpcomp.h: New file, from GNU gettext.
76483         * lib/csharpcomp.c: New file, from GNU gettext.
76484         * lib/csharpcomp.sh.in: New file, from GNU gettext.
76485
76486 2005-06-08  Bruno Haible  <bruno@clisp.org>
76487
76488         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
76489         warning on mingw.
76490
76491 2005-06-07  Derek Price  <derek@ximbiot.com>
76492
76493         Sync from CVS.
76494         * lib/glob_.h: Indent nested #ifdef.
76495
76496 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
76497
76498         Sync from coreutils.
76499         Use "file name" when talking about file names, instead of "filename"
76500         or "path", as per the GNU coding standards.
76501         * lib/mkdir-p.c: Renamed from makepath.c.
76502         (make_dir_parents): Renamed from make_path.  All callers changed.
76503         * lib/mkdir-p.h: Likewise.  All includers changed.
76504         * lib/filenamecat.c: Renamed from path-concat.c.
76505         (file_name_concat): Renamed from path_concat.  All callers changed.
76506         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
76507         * lib/filenamecat.h: Likewise.  All includers changed.
76508         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
76509         in comments or local variable names.
76510         * lib/basename.c: Likewise.
76511         * lib/canonicalize.c, canonicalize.h: Likewise.
76512         * lib/dirname.c, dirname.h: Likewise.
76513         * lib/euidaccess.c: Likewise.
76514         * lib/exclude.c: Likewise
76515         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
76516         * lib/fsusage.c, fsuage.h: Likewise.
76517         * lib/fts.c, fts_.h: Likewise.
76518         * lib/getcwd.c: Likewise.
76519         * lib/getloadavg.c: Likewise.
76520         * lib/mkstemp.c: Likewise.
76521         * lib/mountlist.c, mountlist.h: Likewise.
76522         * lib/openat.c, openat.h: Likewise.
76523         * lib/readlink-stub.c: Likewise.
76524         * lib/readutmp.c, readutmp.h: Likewise.
76525         * lib/rename.c: Likewise.
76526         * lib/rmdir.c: Likewise.
76527         * lib/same.c: Likewise.
76528         * lib/savedir.c: Likewise.
76529         * lib/stripslash.c: Likewise.
76530         * lib/tempname.c: Likewise.
76531         * lib/xreadlink.c: Likewise.
76532         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
76533         All uses changed.
76534         * lib/exclude.h: Likewise.
76535
76536         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
76537         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
76538         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
76539         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
76540         * lib/pathmax.h: Include <limits.h> unconditionally, since other
76541         files have been getting away with it for years (MORE/BSD 4.3
76542         is extinct now).
76543         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
76544         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
76545
76546         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
76547         Define to 256, not 255, as per modern POSIX.
76548
76549 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
76550
76551         Sync from coreutils.
76552         Use "file name" when talking about file names, instead of "filename"
76553         or "path", as per the GNU coding standards.
76554         * MODULES.html.sh: mkdir-p renamed from makepath.
76555         filenamecat renamed from path-concat.
76556         * modules/filenamecat: Renamed from modules/path-concat.
76557         (Files): filenamecat.h and filenamecat.c renamed from
76558         path-concat.h and path-concat.c.
76559         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
76560         (Include): filenamecat.h, not path-concat.h.
76561         * modules/mkdir-p: Renamed from modules/makepath.
76562         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
76563         makepath.c.
76564         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
76565         (Include): mkdir-p.h, not makepath.h.
76566
76567 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
76568
76569         Sync from coreutils.
76570         * m4/mkdir-p.m4: Renamed from makepath.m4.
76571         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
76572         Rename files from makepath.c to mkdir-p.c, and from
76573         makepath.h to mkdir-p.h.
76574         * m4/filenamecat.m4: Renamed from path-concat.m4.
76575         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
76576         Rename files from path-concat.c to filenamecat.c,
76577         and from path-concat.h to filenamecat.h.
76578         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
76579         "file name" in local variables or comments.
76580         * m4/rename.m4: Likewise.
76581
76582 2005-06-01  Bruno Haible  <bruno@clisp.org>
76583
76584         * modules/csharpexec: New file.
76585         * MODULES.html.sh (C#): New section.
76586
76587 2005-06-01  Bruno Haible  <bruno@clisp.org>
76588
76589         * m4/csharp.m4: New file, from GNU gettext.
76590         * m4/csharpexec.m4: New file, from GNU gettext.
76591
76592 2005-06-01  Bruno Haible  <bruno@clisp.org>
76593
76594         * lib/csharpexec.h: New file, from GNU gettext.
76595         * lib/csharpexec.c: New file, from GNU gettext.
76596         * lib/csharpexec.sh.in: New file, from GNU gettext.
76597
76598 2005-05-31  Derek Price  <derek@ximbiot.com>
76599             Paul Eggert  <eggert@cs.ucla.edu>
76600
76601         Sync from cvs.
76602         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
76603
76604 2005-05-31  Derek Price  <derek@ximbiot.com>
76605             Paul Eggert  <eggert@cs.ucla.edu>
76606
76607         Sync from cvs.
76608         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
76609
76610 2005-05-29  Derek Price  <derek@ximbiot.com>
76611
76612         * config/srclist.txt (glob_.h, glob.c): Add these files.
76613
76614 2005-05-29  Derek Price  <derek@ximbiot.com>
76615
76616         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
76617         * modules/glob: New file.
76618         * modules/getlogin_r: Add link to POSIX spec in description.
76619
76620 2005-05-29  Derek Price  <derek@ximbiot.com>
76621             Paul Eggert  <eggert@cs.ucla.edu>
76622
76623         * m4/glob.m4: New file.
76624
76625 2005-05-29  Derek Price  <derek@ximbiot.com>
76626             Paul Eggert  <eggert@cs.ucla.edu>
76627
76628         * lib/glob_.h, lib/glob.c: New files.
76629
76630 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
76631
76632         * modules/fts (Files): Remove m4/inttypes-pri.m4.
76633         * modules/fts-lgpl (Depends-on): Remove gettext.
76634
76635 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
76636
76637         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
76638         and don't require gt_INTTYPES_PRI.
76639
76640 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
76641
76642         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
76643
76644         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
76645         the configuration hassle isn't worth it.
76646         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
76647         (LONGEST_MODIFIER, PRIuMAX): Remove.
76648
76649 2005-05-27  Bruno Haible  <bruno@clisp.org>
76650
76651         * lib/getlogin_r.h: Remove second include of <stddef.h>.
76652
76653 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
76654
76655         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
76656         _POSIX_PTHREAD_SEMANTICS for Solaris.
76657
76658 2005-05-25  Derek Price  <derek@ximbiot.com>
76659
76660         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
76661
76662 2005-05-25  Derek Price  <derek@ximbiot.com>
76663             Paul Eggert  <eggert@cs.ucla.edu>
76664
76665         * modules/getlogin_r, m4/getlogin_r.m4: New files.
76666         * lib/getlogin_r.c, getlogin_r.h: New files.
76667
76668 2005-05-25  Bruno Haible  <bruno@clisp.org>
76669             Derek Price  <derek@ximbiot.com>
76670
76671         * lib/getlogin_r.h: Simplify API documentation.
76672
76673 2005-05-23  Derek Price  <derek@ximbiot.com>
76674
76675         * modules/minmax (Files): Add m4/minmax.m4.
76676         (configure.ac): Add gl_MINMAX.
76677
76678 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
76679
76680         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
76681         so that unistd-safer.h (GPL'ed code) need not be included.
76682
76683 2005-05-22  Bruno Haible  <bruno@clisp.org>
76684
76685         * m4/minmax.m4: New file.
76686         Based on a patch by Derek Price <derek@ximbiot.com>.
76687
76688 2005-05-22  Bruno Haible  <bruno@clisp.org>
76689
76690         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
76691         (INT64_MIN): Fix definition.
76692         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
76693
76694         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
76695         NEED_SIGNED_INT_TYPES.
76696
76697         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
76698         HAVE_SYSTEM_INTTYPES.
76699
76700 2005-05-22  Bruno Haible  <bruno@clisp.org>
76701
76702         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
76703         Also include <sys/param.h> if it defines MIN, MAX.
76704         Based on a patch by Derek Price <derek@ximbiot.com>.
76705
76706 2005-05-21  Jim Meyering  <jim@meyering.net>
76707
76708         * modules/fts (Files): Add m4/inttypes-pri.m4.
76709         (Depends-on): Add lstat and remove gettext.  Alphabetize.
76710
76711 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
76712
76713         New fts module.
76714         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
76715         (setup_dir, free_dir): New functions.
76716         (enter_dir, leave_dir): Define trivial
76717         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
76718         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
76719         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
76720         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
76721         Move to fts-cycle.c.
76722         (fts_open): Use setup_dir.
76723         (fts_close): Use free_dir.
76724         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
76725         This adds a label and some gotos, but the alternatives were messier.
76726         Check for memory allocation failure when entering a dir.
76727         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
76728         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
76729         (FTS): New member fts_cycle, that is a union that contains the
76730         old active_dir_ht and cycle_state.  All uses changed to mention
76731         fts_cycle.ht and fts_cycle.state.
76732         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
76733         fts.c, with the following changes:
76734         (setup_dir, free_dir): New functions.
76735         (enter_dir): Now returns bool.  Return true if successful, false
76736         if memory exhausted.  All callers changed.
76737         Do not bother partly cleaning up on
76738         memory allocation failure; that is free_dir's job.
76739         However, free ad if hash_insert fails, to avoid memory leak.
76740         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
76741         fts->fts_options to see which union member to use.
76742
76743 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
76744
76745         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
76746         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
76747
76748 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
76749
76750         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
76751
76752 2005-05-20  Jim Meyering  <jim@meyering.net>
76753
76754         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
76755         Now a macro, to pacify GCC.
76756
76757 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
76758
76759         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
76760         of -1.
76761
76762 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
76763
76764         * lib/chown.c (rpl_chown): Return -1 on failure.
76765
76766 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
76767
76768         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
76769         Don't check for stddef.h.
76770         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
76771         don't use its results.
76772         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
76773         since we include them unconditionally.  Don't require
76774         AM_STDBOOL_H, since stdbool is a prerequisite.
76775         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
76776         since we assume C89 or better.
76777         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
76778         as we don't use their results.
76779         Don't check for fchdir, memmove, memset, strrchr, as we use
76780         them unconditionally.
76781         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
76782         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
76783
76784 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
76785
76786         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
76787         Include <stddef.h> unconditionally, since we assume C89 now.
76788         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
76789         * lib/fts.c: Include fts_.h first, to check interface.
76790         Do not include intprops.h; no longer needed.
76791         Include cycle-check.h and hash.h, since fts_.h no longer does.
76792         Remove unnecessary casts of closedir to void.
76793         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
76794         decide whether to decrement nlinks.
76795         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
76796         (FTS): Use struct hash_table * instead of Hash_table, so that
76797         we no longer need to include hash.h here.
76798
76799 2005-05-18  Jim Meyering  <jim@meyering.net>
76800
76801         * modules/dirfd (License): Change to LGPL.  Most of the code
76802         is already in the public domain.
76803
76804 2005-05-18  Jim Meyering  <jim@meyering.net>
76805
76806         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
76807         Reported by Yoann Vandoorselaere.
76808
76809 2005-05-17  Jim Meyering  <jim@meyering.net>
76810
76811         * m4/fts.m4: New file, from coreutils.
76812
76813 2005-05-17  Jim Meyering  <jim@meyering.net>
76814
76815         * lib/fts.c, lib/fts_.h: New files, from coreutils.
76816
76817 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
76818
76819         Sync from coreutils.
76820         * m4/unlinkdir.m4: New file.
76821
76822 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
76823
76824         Sync from coreutils.
76825         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
76826         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
76827         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
76828         White space changes only.
76829         * lib/makepath.c (make_path): Port to hosts where leading "//" is
76830         special.
76831         * lib/yesno.c: Include getline.h, not ctype.h.
76832         (yesno): Don't remove leading white space; POSIX doesn't allow it.
76833         Use getline to remove arbitrary restriction on response length.
76834
76835 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
76836
76837         * config/srclist-update: Spell out "Street" in FSF postal
76838         mail address; this is the style the FSF seems to prefer.
76839
76840         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
76841         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
76842         this updates FSF postal mail address.
76843
76844         Sync from coreutils.
76845         * modules/unlinkdir: New file.
76846         * modules/yesno (Depends-on): Add getline.
76847         * MODULES.html.sh (File system functions): Add unlinkdir.
76848
76849 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
76850
76851         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
76852         lib/strsep.h:
76853         Change the initial comment to refer to GPL, not LGPL.
76854         gnulib-tool will change it to LGPL as needed.
76855
76856         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
76857         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
76858         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
76859         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
76860         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
76861         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
76862         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
76863         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
76864         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
76865         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
76866         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
76867         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
76868         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
76869         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
76870         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
76871         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
76872         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
76873         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
76874         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
76875         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
76876         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
76877         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
76878         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
76879         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
76880         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
76881         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
76882         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
76883         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
76884         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
76885         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
76886         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
76887         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
76888         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
76889         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
76890         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
76891         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
76892         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
76893         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
76894         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
76895         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
76896         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
76897         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
76898         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
76899         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
76900         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
76901         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
76902         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
76903         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
76904         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
76905         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
76906         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
76907         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
76908         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
76909         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
76910         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
76911         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
76912         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
76913         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
76914         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
76915         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
76916         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
76917         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
76918         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
76919         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
76920         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
76921         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
76922         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
76923         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
76924         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
76925         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
76926         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
76927         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
76928         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
76929         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
76930         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
76931         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
76932         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
76933         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
76934         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
76935         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
76936         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
76937         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
76938         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
76939         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
76940         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
76941         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
76942         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
76943         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
76944         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
76945         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
76946         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
76947         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
76948         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
76949         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
76950         lib/yesno.c, lib/yesno.h:
76951         Update FSF postal mail address.
76952
76953 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
76954
76955         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
76956         tests/test-memmem.c, tests/test-stpncpy.c:
76957         Update FSF postal mail address.
76958
76959 2005-05-13  Bruno Haible  <bruno@clisp.org>
76960
76961         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
76962         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
76963         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
76964         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
76965         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
76966         Add support for 64-bit integers in the MSVC compiler.
76967
76968 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
76969
76970         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
76971
76972 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
76973
76974         * gnulib-tool (func_import): Sort and uniquify recommended includes.
76975
76976 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
76977
76978         * doc/getdate.texi (General date syntax): Don't say that date
76979         date --iso-8601=ns generates acceptable dates; it doesn't yet.
76980         Problem reported by Nic Ferrier.
76981
76982 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
76983
76984         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
76985         specified in ai_socktype. Fix invalid ai_protocol
76986         check. ai_protocol is usually set to 0 or depending on
76987         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
76988         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
76989         ai_socktype / ai_protocol in the returned addrinfo structure.
76990
76991 2005-05-10  Simon Josefsson  <jas@extundo.com>
76992
76993         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
76994         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
76995
76996 2005-05-10  Karl Berry  <karl@gnu.org>
76997
76998         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
76999         (from http://www.gnu.org/licenses).
77000         * doc/COPYING.LIB: also rename to COPYING.LESSER.
77001         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
77002         fdl.texi suffices.
77003
77004 2005-05-10  Karl Berry  <karl@gnu.org>
77005
77006         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
77007         (COPYING.DOC): remove.
77008
77009         * config/srclist-update: new FSF address.
77010
77011 2005-05-10  Derek Price  <derek@ximbiot.com>
77012
77013         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
77014         possible.
77015
77016 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
77017             Bruno Haible  <bruno@clisp.org>
77018
77019         * modules/inet_ntop: New file.
77020         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
77021         inet_ntop.
77022
77023 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
77024             Bruno Haible  <bruno@clisp.org>
77025
77026         * m4/inet_ntop.m4: New file.
77027
77028 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
77029             Bruno Haible  <bruno@clisp.org>
77030
77031         * lib/inet_ntop.h: New file.
77032         * lib/inet_ntop.c: New file, from glibc with modifications.
77033
77034 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
77035
77036         * modules/time_r (License): Change to LGPL.
77037         * modules/extensions (License): Change to LGPL.  Actually,
77038         the license is more permissive than that, but currently gnulib-tool
77039         doesn't know how to handle more-permissive licenses.
77040
77041         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
77042         Problem reported by Dave Love.
77043
77044 2005-05-08  Jim Meyering  <jim@meyering.net>
77045
77046         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
77047         blank.
77048
77049 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
77050
77051         * modules/argmatch (Depends-on): Add stdbool.
77052         * modules/backupfile (Depends-on): Likewise.
77053         * modules/chdir-long (Depends-on): Likewise.
77054         * modules/closeout (Depends-on): Likewise.
77055         * modules/cycle-check (Depends-on): Likewise.
77056         * modules/dirname (Depends-on): Likewise.
77057         * modules/fnmatch (Depends-on): Likewise.
77058         * modules/fsusage (Depends-on): Likewise.
77059         * modules/fwriteerror (Depends-on): Likewise.
77060         * modules/getcwd (Depends-on): Likewise.
77061         * modules/getloadavg (Depends-on): Likewise.
77062         * modules/hard-locale (Depends-on): Likewise.
77063         * modules/makepath (Depends-on): Likewise.
77064         * modules/mountlist (Depends-on): Likewise.
77065         * modules/nanosleep (Depends-on): Likewise.
77066         * modules/posixtm (Depends-on): Likewise.
77067         * modules/quotearg (Depends-on): Likewise.
77068         * modules/readtokens (Depends-on): Likewise.
77069         * modules/readtokens0 (Depends-on): Likewise.
77070         * modules/readutmp (Depends-on): Likewise.
77071         * modules/save-cwd (Depends-on): Likewise.
77072         * modules/strftime (Depends-on): Likewise.
77073         * modules/userspec (Depends-on): Likewise.
77074         * modules/utimecmp (Depends-on): Likewise.
77075         * modules/xgetcwd (Depends-on): Likewise.
77076         * modules/xnanosleep (Depends-on): Likewise.
77077         * modules/xstrtod (Depends-on): Likewise.
77078         * modules/yesno (Depends-on): Likewise.
77079
77080 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
77081
77082         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
77083         needless checks.
77084
77085 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
77086
77087         Merge from coreutils.  Among other things,
77088         add bulletproofing for cases where stdin, stdout, or stderr are closed.
77089         * lib/fd-safer.c: New file.
77090         * lib/fcntl-safer.h, open-safer.c: Remove.
77091         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
77092         * lib/dup-safer.c: Include unistd-safer.h first.
77093         Don't include errno.h.
77094         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
77095         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
77096         * lib/file-type.c: Rely on file-type.h change.
77097         * lib/getloadavg.c: Include unistd-safer.h.
77098         (getloadavg): Use safer open.
77099         * lib/getusershell.c: Include "stdio-safer.h".
77100         (getusershell): Use safer fopen.
77101         * lib/long-options.c (long_options): Use NULL rather than 0.
77102         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
77103         'free'.
77104         * lib/modechange.c: Likewise.
77105         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
77106         (MODE_DONE): New constant.
77107         (struct mode_change): Remove 'next' member.
77108         (make_node_op_equals): New function; like the old one of the
77109         same name, except it allocates an array.
77110         (mode_compile, mode_create_from_ref): Use it.
77111         (mode_compile): Allocate result as an array, not a linked list.
77112         Parse octal string ourself, so that we catch mistakes like "+0".
77113         (mode_adjust): Arg is an array, not a linked list.
77114         * lib/modechange.c: Include stat-macros.h, xalloc.h.
77115         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
77116         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
77117         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
77118         Remove.  This is now stat-macros.h's job.
77119         (talloc): Remove.  All callers replaced by xalloc, so that
77120         our invokers don't have to worry about reporting memory failures.
77121         (make_node_op_equals): Remove.
77122         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
77123         New constants.
77124         (struct mode_change): Moved here from modechange.h.
77125         (mode_append_entry): Remove.
77126         (mode_compile): Remove MASKED_OPS arg, since it encouraged
77127         apps to have incorrect behavior.  Use simpler algorithm for head
77128         and tail.  Don't futz with umask; that's now the job of mode_adjust.
77129         Detect more invalid usages rather than having somewhat-random behavior.
77130         Don't insert an "a=" action, as that leads to incorrect behavior.
77131         (mode_compile, mode_create_from_ref): Return NULL on error instead
77132         of an enum, since now there's only one way to have an error.  All
77133         callers changed.
77134         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
77135         at the correct time.  Simplify calculation of "+u" and its ilk.
77136         Don't mishandle "+X".
77137         (mode_free): Remove "register" and localize decls.
77138         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
77139         (struct mode_change): Move to modechange.c; callers don't
77140         need to see this stuff.
77141         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
77142         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
77143         (mode_change, mode_adjust): Reflect the new signatures noted above.
77144         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
77145         that might redefine system include files.
77146         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
77147         (my_usleep): Use NULL rather than (void *) 0.
77148         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
77149         Use siginterrupt to specify that system calls should be interrupted.
77150         (rpl_nanosleep): Move initialization of suspended closer to call of
77151         my_usleep.
77152         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
77153         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
77154         (desirable_utmp_entry): New function.
77155         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
77156         using x2nrealloc, to simplify logic.
77157         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
77158         size calculation.  Do not assume utmp file is a regular file.
77159         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
77160         (READ_UTMP_CHECK_PIDS): New constant.
77161         * lib/save-cwd.c: Include unistd-safer.h.
77162         (save_cwd): Use fd_safer.
77163         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
77164         [!_LIBC] Include "stat-macros.h" instead.
77165         * lib/unistd-safer.h (fd_safer): New decl.
77166
77167 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
77168
77169         * modules/getloadavg (Depends-on): Add unistd-safer.
77170         * modules/getusershell (Depends-on): Add stdio-safer.
77171         * modules/lstat (Depends-on): Remove xalloc.
77172         * modules/mkstemp (Depends-on): Add stat-macros.
77173         * modules/modechange (Depends-on): Remove xstrtol.
77174         Add stat-macros, xalloc.
77175         * modules/save-cwd (Depends-on): Add unistd-safer.
77176         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
77177         * modules/unistd-safer (Files): Add lib/fd-safer.c
77178         (Makefile.am): Remove lib_SOURCES.
77179
77180         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
77181         Remove fcntl-safer; unistd-safer supersedes it.
77182
77183 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
77184
77185         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
77186         AC_HEADER_STAT.
77187         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
77188         (gl_PREREQ_CHOWN): Remove.
77189         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
77190         it.  Don't require AC_HEADER_STAT.
77191         (gl_PREREQ_LSTAT): Remove.
77192         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
77193         Don't require AC_HEADER_STAT.
77194         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
77195         (gl_PREREQ_RMDIR): Remove.
77196         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
77197         mention stat-macros.h or AC_HEADER_STAT, since we'll make
77198         the stat-macros module a prerequisite.
77199         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
77200         * m4/filemode.m4 (gl_FILEMODE): Likewise.
77201         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
77202         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
77203         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
77204         variable names.
77205         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
77206         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
77207         variable prefixes.
77208         * m4/fcntl-safer.m4: Remove.
77209         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
77210         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
77211         Invoke gl_PREREQ_FD_SAFER.
77212         (gl_PREREQ_FD_SAFER): New macro.
77213         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
77214         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
77215         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
77216         Remove duplicate call to AC_LIBOBJ(readutmp).
77217         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
77218
77219         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
77220         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
77221
77222 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
77223
77224         * MODULES.html.sh (Misc): Add byteswap.
77225
77226 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
77227
77228         * modules/getcwd (Depends-on): Add extensions.
77229         * modules/openat (Depends-on): Likewise.
77230
77231 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
77232
77233         * modules/byteswap: New file.
77234
77235 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
77236
77237         * m4/byteswap.m4: New file.
77238
77239 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
77240
77241         * lib/byteswap_.h: New file.
77242
77243 2005-04-25  Karl Berry  <karl@gnu.org>
77244
77245         * m4/gettext.m4: Update from GNU gettext 0.14.4.
77246
77247 2005-04-25  Albert Chin  <china@thewrittenword.com>
77248
77249         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
77250         Toolkit C bug.
77251
77252 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
77253
77254         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
77255         (func_ln_if_changed): Remove forcibly for no error message
77256         in case file does not exist.
77257
77258 2005-04-19  Simon Josefsson  <jas@extundo.com>
77259
77260         * gnulib-tool (Options): Make --symlink mean --symbolic.
77261
77262 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
77263
77264         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
77265
77266 2005-04-16  Simon Josefsson  <jas@extundo.com>
77267
77268         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
77269
77270 2005-04-15  Simon Josefsson  <jas@extundo.com>
77271
77272         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
77273
77274 2005-04-15  Simon Josefsson  <jas@extundo.com>
77275
77276         * gnulib-tool: Rename --symlink to --symbolic.
77277
77278 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
77279
77280         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
77281         symbolic links to files instead of copying/moving.  Add --aux-dir,
77282         specifying directory relative --dir where auxiliary build tools
77283         are placed.
77284
77285 2005-04-14  Bruno Haible  <bruno@clisp.org>
77286
77287         * modules/allocsa (License): Change to LGPL.
77288         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
77289
77290 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
77291
77292         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
77293         that "UTC +1 second" continues to work.  Problem reported
77294         by Dmitry V. Levin.
77295         (relunit_snumber): New rule.
77296         (relunit): Use it.
77297
77298 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
77299
77300         * lib/getdate.y (universal_time_zone_table): New constant.
77301         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
77302         universal_time_zone_table.
77303         (lookup_zone): Prefer universal_time_zone_table to
77304         local_time_zone_table, so that "GMT" time stamps are allowed in
77305         London during the summer.  Problem reported by Ian Abbott.
77306
77307 2005-04-12  Jim Meyering  <jim@meyering.net>
77308
77309         * lib/human.c (humblock): Set *options even when returning due to
77310         xstrtoumax conversion failure.  Thanks to a used-uninitialized
77311         warning from gcc-4.
77312
77313 2005-04-09  Jim Meyering  <jim@meyering.net>
77314
77315         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
77316         -Wuninitialized: initialize tm0.tm_year.
77317
77318 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
77319
77320         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
77321         count, since there's no maximum.  All uses changed.
77322         Add member dsts_seen.
77323         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
77324         not being INT_MAX.
77325         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
77326         Use pc_rels_seen to decide whther a date is absolute.
77327
77328         * lib/getdate.y (number): Don't overwrite year.
77329         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
77330         check.
77331
77332 2005-04-02  Simon Josefsson  <jas@extundo.com>
77333
77334         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
77335         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
77336
77337 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
77338
77339         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
77340         where no absolute path name can be longer than PATH_MAX.
77341
77342 2005-03-27  Jim Meyering  <jim@meyering.net>
77343
77344         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
77345
77346 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
77347
77348         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
77349         "one's complement" -> "ones' complement" in comment, as per Knuth.
77350         "value of type" -> "type or expression" in comment.
77351         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
77352
77353 2005-03-26  Jim Meyering  <jim@meyering.net>
77354
77355         Comment nits.
77356         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
77357         Correct typos: s/or/of/.
77358
77359 2005-03-26  Jim Meyering  <jim@meyering.net>
77360
77361         * modules/check-include-files: Move to ../ and rename to...
77362         * check-module: ...this.
77363
77364 2005-03-25  Jim Meyering  <jim@meyering.net>
77365
77366         * modules/xvasprintf (Files): Add xalloc.h.
77367
77368 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
77369
77370         * modules/gettext (Files): config/config.rpath ->
77371         build-aux/config.rpath
77372         * modules/iconv (Files): Likewise.
77373         Problem reported by Oskar Liljeblad.
77374
77375 2005-03-23  Jim Meyering  <jim@meyering.net>
77376
77377         * modules/check-include-files: New script to check for
77378         missing dependencies, multiple includes, etc.
77379
77380         * modules/c-strtold (Depends-on): Add xalloc.
77381         * modules/c-strtod (Depends-on): Add xalloc.
77382         * modules/hash (Depends-on): Add xalloc.
77383         (Files): Remove lib/xalloc.h.
77384
77385         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
77386         * modules/userspec (Files): Add lib/inttostr.h.
77387
77388 2005-03-23  Jim Meyering  <jim@meyering.net>
77389
77390         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
77391
77392 2005-03-22  Jim Meyering  <jim@meyering.net>
77393
77394         * modules/stat-macros: New module.
77395         * modules/canonicalize, modules/euidaccess, modules/file-type,
77396         * modules/filemode, modules/lchown, modules/makepath,
77397         * modules/rmdir, modules/stat: Depend on new stat-macros module
77398         rather than listing lib/stat-macros.h manually.
77399         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
77400
77401 2005-03-22  Jim Meyering  <jim@meyering.net>
77402
77403         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
77404
77405 2005-03-22  Bruno Haible  <bruno@clisp.org>
77406
77407         * config/srclist.txt: Replace target directory 'config' with
77408         'build-aux'.
77409         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
77410         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
77411         ../build-aux/.
77412
77413 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
77414
77415         * modules/chdir-long (Depends-on): Add mempcpy.
77416
77417         * modules/acl, modules/backupfile, modules/c-strtod,
77418         modules/c-strtold, modules/canon-host, modules/canonicalize,
77419         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
77420         modules/exclude, modules/exitfail, modules/file-type,
77421         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
77422         modules/getdate, modules/getline, modules/getpagesize,
77423         modules/getpass, modules/getugroups, modules/group-member,
77424         modules/hard-locale, modules/hash, modules/human, modules/idcache,
77425         modules/inttostr, modules/long-options, modules/makepath,
77426         modules/md5, modules/memcasecmp, modules/memcoll,
77427         modules/modechange, modules/mountlist, modules/path-concat,
77428         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
77429         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
77430         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
77431         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
77432         modules/strftime, modules/strndup, modules/strverscmp,
77433         modules/timespec, modules/unlocked-io, modules/userspec,
77434         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
77435         modules/yesno:
77436         Remove lib_SOURCES line from Makefile.am section, as this is now
77437         done automatically by the corresponding Autoconf macro.
77438
77439 2005-03-21  Jim Meyering  <jim@meyering.net>
77440
77441         Changes imported from coreutils.
77442
77443         * lib/cycle-check.c: Don't include xalloc.h.
77444
77445         * lib/path-concat.c: Don't include assert.h.
77446         (path_concat): Remove assertion that would have triggered
77447         for ABASE starting with more than one slash.
77448         Reported by Andreas Schwab.
77449
77450         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
77451         properly when ABASE is an absolute file name.
77452         Correct the description of this function.
77453         Include <assert.h>.
77454         Add an assertion and a test driver.
77455         This fixes a bug introduced on 2004-07-02.
77456         Andreas Schwab reported the resulting failure of cp --parents:
77457         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
77458
77459 2005-03-21  Jim Meyering  <jim@meyering.net>
77460
77461         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
77462         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
77463
77464 2005-03-21  Jim Meyering  <jim@meyering.net>
77465         and  Paul Eggert  <eggert@cs.ucla.edu>
77466
77467         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
77468         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
77469         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
77470         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
77471         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
77472         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
77473         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
77474         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
77475         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
77476         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
77477         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
77478         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
77479         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
77480         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
77481         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
77482         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
77483         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
77484         for these modules.
77485
77486 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
77487
77488         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
77489         (which shouldn't happen), generate nothing instead of returning 0
77490         immediately, so that nstrftime (NULL, ...) doesn't return 0.
77491
77492 2005-03-16  Bruno Haible  <bruno@clisp.org>
77493
77494         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
77495         HAVE_LONGLONG_64BIT.
77496
77497 2005-03-16  Bruno Haible  <bruno@clisp.org>
77498
77499         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
77500         HAVE_LONGLONG_64BIT.
77501
77502 2005-03-16  Bruno Haible  <bruno@clisp.org>
77503
77504         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
77505         HAVE_LONGLONG_64BIT.
77506
77507 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
77508
77509         * lib/strftime.c (my_strftime): Prepend space to format so that we can
77510         reliably distinguish strftime failure from empty output on POSIX
77511         hosts.
77512
77513 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
77514
77515         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
77516         (iconv_string): Don't guess a size-zero buffer, as that might cause
77517         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
77518         result would be 'too large', where 'too large' is (heuristically)
77519         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
77520         overflow concerns.  This will prevent some unwanted malloc failures
77521         when the inputs are very large.
77522
77523 2005-03-15  Karl Berry  <karl@gnu.org>
77524
77525         * config/srclist.txt (config.rpath): from gettext.
77526         * config/config.rpath: update.
77527
77528 2005-03-15  Bruno Haible  <bruno@clisp.org>
77529
77530         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
77531         to 'negate'.
77532
77533         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
77534         variable.
77535
77536         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
77537         results.
77538
77539 2005-03-14  Simon Josefsson  <jas@extundo.com>
77540
77541         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
77542         <fx@gnu.org>.
77543
77544 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
77545
77546         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
77547         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
77548         intprops.h.
77549         * lib/strtol.c: Likewise.
77550
77551 2005-03-14  Jim Meyering  <jim@meyering.net>
77552
77553         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
77554         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
77555         to be nonzero so that we (and caller) can detect the difference
77556         between a valid zero-length expansion and an error return, even
77557         when the underlying strftime fails before writing anything into
77558         that location.
77559
77560 2005-03-14  Bruno Haible  <bruno@clisp.org>
77561
77562         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
77563         Update from GNU gettext 0.14.3.
77564
77565 2005-03-10  Jim Meyering  <jim@meyering.net>
77566
77567         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
77568
77569 2005-03-10  Jim Meyering  <jim@meyering.net>
77570
77571         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
77572         so that this module works on systems without fchdir.
77573
77574 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
77575
77576         Factor int-properties macros into a single file, except for
77577         glibc-related files.
77578         * lib/intprops.h: New file.
77579         * lib/getloadavg.c: Include it instead of limits.h.
77580         (INT_STRLEN_BOUND): Remove.
77581         * lib/human.c: Include intprops.h.
77582         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
77583         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
77584         302/1000.
77585         * lib/inttostr.h: Include intprops.h instead of limits.h.
77586         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
77587         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
77588         for consistency with intprops.h.
77589         (time_t_is_integer, twos_complement_arithmetic): Use them.
77590         * lib/sig2str.h: Include <signal.h>, intprops.h.
77591         (INT_STRLEN_BOUND): Remove.
77592         * lib/strftime.c (TYPE_SIGNED): Remove.
77593         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
77594         * lib/strtol.c: Adjust comments to match intprops.h.
77595         * lib/userspec.c: Include intprops.h.
77596         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
77597         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
77598         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
77599         instead of rolling our own expressions.
77600         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
77601
77602         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
77603         instead of int.
77604         (my_strftime): Do not mishandle years close to INT_MAX, by doing
77605         the right thing even if adding 1900 would overflow.  Similarly
77606         for tm_mon + 1 and tm_yday + 1.
77607         Make %Y always equivalent to %C%y, and similarly for %G and %g.
77608         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
77609         (DO_SIGNED_NUMBER): New macro.
77610         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
77611
77612 2005-03-07  Bruno Haible  <bruno@clisp.org>
77613
77614         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
77615
77616 2005-03-07  Bruno Haible  <bruno@clisp.org>
77617
77618         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
77619
77620 2005-03-04  Derek R. Price  <derek@ximbiot.com>
77621
77622         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
77623         (func_import): Only replace files via --import when they have actually
77624         changed.
77625
77626 2005-03-03  Derek R. Price  <derek@ximbiot.com>
77627
77628         * m4/mmap-anon.m4: New file.
77629         * m4/pagealign_alloc.m4: New file.
77630
77631 2005-03-03  Derek R. Price  <derek@ximbiot.com>
77632             Bruno Haible  <bruno@clisp.org>
77633
77634         * modules/pagealign_alloc: New file.
77635         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
77636
77637 2005-03-03  Derek R. Price  <derek@ximbiot.com>
77638             Bruno Haible  <bruno@clisp.org>
77639
77640         * lib/pagealign_alloc.h: New file.
77641         * lib/pagealign_alloc.c: New file.
77642
77643 2005-03-03  Bruno Haible  <bruno@clisp.org>
77644
77645         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
77646         Use an all-permissive copyright notice, recommended by RMS.
77647
77648 2005-03-02  Bruno Haible  <bruno@clisp.org>
77649
77650         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
77651         of AIX, the replacement has to be done only after <string.h> is
77652         included, therefore not in config.h. stpncpy.h does the replacement,
77653         and stpncpy.c uses it.
77654
77655 2005-03-02  Bruno Haible  <bruno@clisp.org>
77656
77657         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
77658         stpncpy.c uses it.
77659
77660 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
77661
77662         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
77663         The workaround isn't strictly needed for POSIX conformance, and
77664         it's too much of a pain to configure and maintain.  We'll ask
77665         people to fix their kernels instead.
77666         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
77667         (NANOSLEEP_BUG_WORKAROUND): Remove.
77668         (xnanosleep): Remove the workaround.
77669
77670 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
77671
77672         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
77673         Reported by Derek Price.
77674         (Include): Add "timespec.h".
77675
77676         * modules/xnanosleep (Depends-on): Remove gethrxtime.
77677
77678 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
77679
77680         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
77681         to detect nanosleep bug.
77682
77683 2005-03-01  Bruno Haible  <bruno@clisp.org>
77684
77685         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
77686
77687 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
77688
77689         * modules/gethrxtime: New file.
77690         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
77691         (Depends-on): Add gethrxtime.
77692         (configure.ac): Add gl_XNANOSLEEP.
77693         (Makefile.am): Remove lib_SOURCES line.
77694
77695 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
77696
77697         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
77698         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
77699
77700 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
77701
77702         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
77703         * lib/timespec.h (gettime): Return void, since it always
77704         succeeds now.  All uses changed.
77705         * lib/gettime.c (gettime): Likewise.
77706         [HAVE_NANOTIME]: Prefer nanotime.
77707         Assume gettimeofday succeeds, as POSIX requires.
77708         Assime time () succeeds, since other code already does.
77709         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
77710         (timespec_subtract): Remove.
77711         (NANOSLEEP_BUG_WORKAROUND): New constant.
77712         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
77713         things considerably.  Use it only on GNU/Linux hosts, since the
77714         workaround shouldn't be needed elsewhere.
77715
77716 2005-02-24  Bruno Haible  <bruno@clisp.org>
77717
77718         * modules/gettext (Files): Add m4/glibc2.m4.
77719
77720 2005-02-24  Bruno Haible  <bruno@clisp.org>
77721
77722         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
77723         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
77724         * m4/progtest.m4:
77725         Update from GNU gettext 0.14.2.
77726         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
77727
77728 2005-02-24  Bruno Haible  <bruno@clisp.org>
77729
77730         * lib/localcharset.c: Update from GNU gettext 0.14.2.
77731         * lib/config.charset: Update from GNU gettext 0.14.2.
77732
77733 2005-02-24  Bruno Haible  <bruno@clisp.org>
77734
77735         * lib/gettext.h: Update from GNU gettext 0.14.2.
77736
77737 2005-02-23  Simon Josefsson  <jas@extundo.com>
77738
77739         * m4/iconvme.m4: New file.
77740
77741 2005-02-23  Jim Meyering  <jim@meyering.net>
77742
77743         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
77744         change.
77745         Thanks to Bruno Haible for catching it.
77746
77747 2005-02-22  Simon Josefsson  <jas@extundo.com>
77748
77749         * modules/iconvme: New file.
77750
77751         * MODULES.html.sh: Add iconvme.
77752
77753 2005-02-22  Simon Josefsson  <jas@extundo.com>
77754
77755         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
77756
77757 2005-02-22  Simon Josefsson  <jas@extundo.com>
77758
77759         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
77760
77761 2005-02-22  Jim Meyering  <jim@meyering.net>
77762
77763         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
77764         s/ifndef/ifdef/.
77765
77766 2005-02-20  Neil Conway  <neilc@samurai.com>
77767
77768         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
77769         returned by OSX/Darwin if the specified buffer is not large
77770         enough for the hostname.
77771
77772 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
77773
77774         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
77775         pass it to _help, otherwise the latter coredumps trying to
77776         dereference state.root_argp.
77777
77778 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
77779
77780         * modules/chdir-long (Depends-on): Add memrchr.
77781         * modules/memrchr (Files): Add lib/memrchr.h.
77782         (Include): "memrchr.h".
77783
77784 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
77785
77786         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
77787
77788 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
77789
77790         * lib/memrchr.h: New file.
77791         * lib/chdir-long.c: Include it.
77792         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
77793         Don't bother including stddef.h.
77794
77795 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
77796
77797         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
77798         inclusion.
77799         Include <sys/types.h>, for dev_t.
77800         (ME_DUMMY, ME_REMOTE): Move from here....
77801         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
77802         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
77803         Dmitry V. Levin.
77804         Include mountlist.h first, to test the interface.
77805
77806 2005-01-29  Bruno Haible  <bruno@clisp.org>
77807
77808         * lib/progname.c (program_name): Initialize.
77809         Needed when linking statically on MacOS X.
77810
77811 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
77812
77813         Sync from coreutils.
77814         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
77815         (Depends-on): Add c-strtod.
77816         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
77817
77818 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
77819
77820         Sync from coreutils.
77821         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
77822
77823         Remove files that are specific to coreutils.
77824         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
77825
77826 2005-01-28  Bruno Haible  <bruno@clisp.org>
77827
77828         * modules/javacomp: New file.
77829         * MODULES.html.sh (Java): Add javacomp.
77830
77831 2005-01-28  Bruno Haible  <bruno@clisp.org>
77832
77833         * m4/javacomp.m4: New file, from GNU gettext.
77834
77835 2005-01-28  Bruno Haible  <bruno@clisp.org>
77836
77837         * lib/javacomp.sh.in: New file, from GNU gettext.
77838         * lib/javacomp.h: New file, from GNU gettext.
77839         * lib/javacomp.c: New file, from GNU gettext.
77840
77841 2005-01-26  Simon Josefsson  <jas@extundo.com>
77842
77843         * lib/gai_strerror.c: Use GPL in header.
77844
77845 2005-01-26  Bruno Haible  <bruno@clisp.org>
77846
77847         * modules/javaexec: New file.
77848         * MODULES.html.sh (Java): Add javaexec.
77849
77850 2005-01-26  Bruno Haible  <bruno@clisp.org>
77851
77852         * m4/javaexec.m4: New file, from GNU gettext.
77853
77854 2005-01-26  Bruno Haible  <bruno@clisp.org>
77855
77856         * lib/javaexec.sh.in: New file, from GNU gettext.
77857         * lib/javaexec.h: New file, from GNU gettext.
77858         * lib/javaexec.c: New file, from GNU gettext.
77859
77860 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
77861
77862         * modules/lchown (Depends-on): Remove lchown.h
77863
77864 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
77865
77866         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
77867         must be defined if the header file was not found, in order
77868         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
77869
77870 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
77871
77872         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
77873         initializers for struct pentry_state.
77874         (__argp_error): Check return value of __asprintf
77875         (__argp_failure): Translate error message
77876
77877         * lib/argp-parse.c: Removed braces around the expansion of N_()
77878
77879 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
77880
77881         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
77882         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
77883         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
77884         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
77885         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
77886         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
77887         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
77888         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
77889         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
77890         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
77891         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
77892         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
77893         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
77894         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
77895         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
77896         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
77897         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
77898         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
77899         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
77900         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
77901         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
77902         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
77903         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
77904         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
77905         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
77906         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
77907         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
77908         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
77909         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
77910         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
77911         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
77912         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
77913         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
77914         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
77915         xstrtol.m4, xstrtoumax.m4, yesno.m4:
77916         Use an all-permissive copyright notice, recommended by RMS.
77917
77918 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
77919
77920         * modules/chdir-long (Depends-on): Remove mempcpy.
77921
77922 2005-01-21  Jim Meyering  <jim@meyering.net>
77923
77924         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
77925         same value as for Solaris 9.
77926
77927         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
77928         component length.  This included changing the parameter to be
77929         of type `char *' rather than `char const *'.
77930         * lib/chdir-long.h (chdir_long): Update prototype.
77931
77932         * lib/openat.c (fdopendir, fstatat): New functions.
77933         * lib/openat.h: Include headers required for use of DIR and struct
77934         stat.
77935         [AT_SYMLINK_NOFOLLOW]: Define.
77936         (fdopendir, fstatat): Add prototypes.
77937
77938 2005-01-21  Bruno Haible  <bruno@clisp.org>
77939
77940         * modules/classpath: New file.
77941         * MODULES.html.sh (Java): Add classpath.
77942
77943 2005-01-21  Bruno Haible  <bruno@clisp.org>
77944
77945         * lib/classpath.h: New file, from GNU gettext.
77946         * lib/classpath.c: New file, from GNU gettext.
77947
77948 2005-01-20  Simon Josefsson  <jas@extundo.com>
77949
77950         * modules/version-etc-fsf: New file.
77951
77952 2005-01-20  Simon Josefsson  <jas@extundo.com>
77953
77954         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
77955         * lib/version-etc.c: Remove version_etc_copyright.
77956         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
77957         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
77958
77959 2005-01-20  Simon Josefsson  <jas@extundo.com>
77960
77961         * lib/base64.h (isbase64): Add.
77962
77963         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
77964         using a unsigned prototype, don't inline.
77965         (base64_decode): Use it.
77966
77967 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
77968
77969         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
77970         it.
77971
77972 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
77973
77974         * lib/save-cwd.c (save_cwd): Remove code to support the case
77975         where fchdir is missing or flaky.
77976
77977 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
77978
77979         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
77980
77981 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
77982
77983         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
77984         AC_LIBSOURCES now does this.
77985         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
77986         with new ullong_max module.
77987
77988 2005-01-19  Bruno Haible  <bruno@clisp.org>
77989
77990         * modules/sh-quote: New file.
77991         * MODULES.html.sh (Executing programs): Add sh-quote.
77992
77993 2005-01-19  Bruno Haible  <bruno@clisp.org>
77994
77995         * lib/sh-quote.h: New file, from GNU gettext.
77996         * lib/sh-quote.c: New file, from GNU gettext.
77997
77998 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
77999
78000         Merge from coreutils.
78001         * m4/ullong_max.m4: New file.
78002         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
78003         (gl_MACROS): Assume localeconv exists.
78004
78005 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
78006
78007         Merge changes from coreutils, as described below in several
78008         changelogs dated today.
78009
78010         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
78011         (O_DIRECTORY): Remove; not needed here, since "." must be
78012         a directory.  All uses removed.
78013         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
78014         universal on Suns, and we also need to test for IRIX.
78015         Revamp code to use 'if' rather than '#if'.
78016         Avoid unnecessary comparison of cwd->desc to 0.
78017
78018         * lib/utimens.c (futimens): Robustify the previous patch, by checking
78019         for known valid error numbers rather than observed invalid ones.
78020
78021 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
78022
78023         * modules/ullong_max: New file.
78024
78025         * modules/chdir-long, modules/openat: New files.
78026         * modules/save-cwd (Depends-on): Depend on chdir-long.
78027         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
78028
78029 2005-01-18  Jim Meyering  <jim@meyering.net>
78030
78031         Merge from coreutils.
78032         * m4/chdir-long.m4, m4/openat.m4: New files.
78033         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
78034         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
78035         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
78036         is sane and DOES follow symlinks.  Besides, testing 20 different
78037         systems found no broken chown implementations.
78038         Prompted by a change in rsync's copy of this macro.
78039         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
78040
78041         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
78042
78043         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
78044         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
78045         NULL-means-set-to-current-time semantics.
78046         Remove temporary file immediately, rather than waiting
78047         for configure's at-exit trap code to do it.
78048
78049 2005-01-18  Jim Meyering  <jim@meyering.net>
78050
78051         * lib/version-etc.c (version_etc_copyright): Update copyright date.
78052
78053         * lib/utimens.c (futimens): Account for the fact that futimes
78054         can also fail with errno == ENOSYS or errno == ENOENT.
78055         Patch from Dmitry V. Levin.
78056
78057         Change the name of the robust chdir function from chdir to chdir_long.
78058         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
78059         (restore_cwd): Use chdir_long, not chdir.
78060         * lib/chdir-long.c: Renamed from chdir.c.
78061         * lib/chdir-long.h: Renamed from chdir.h.
78062         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
78063         Hurd.
78064
78065 2005-01-18  Bruno Haible  <bruno@clisp.org>
78066
78067         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
78068         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
78069         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
78070         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
78071         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
78072         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
78073         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
78074         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
78075         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
78076         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
78077         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
78078         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
78079         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
78080         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
78081         Use an all-permissive copyright notice, recommended by RMS.
78082
78083 2005-01-18  Bob Proulx  <bob@proulx.com>
78084
78085         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
78086         simplify offsetof() macro construct to avoid compile failure with
78087         native HP-UX 11.0 ANSI C compiler.
78088
78089 2005-01-17  Bruno Haible  <bruno@clisp.org>
78090
78091         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
78092         redundant because stpncpy.m4 takes care of it.
78093
78094 2005-01-17  Bruno Haible  <bruno@clisp.org>
78095
78096         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
78097
78098 2005-01-17  Bruno Haible  <bruno@clisp.org>
78099
78100         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
78101         used.
78102
78103 2005-01-17  Bruno Haible  <bruno@clisp.org>
78104
78105         * lib/fwriteerror.h (fwriteerror): Change specification to include
78106         fclose.
78107         * lib/fwriteerror.c: Include <stdbool.h>.
78108         (fwriteerror): At the end, close the file stream. Record whether
78109         stdout was already closed.
78110
78111 2005-01-17  Bruno Haible  <bruno@clisp.org>
78112
78113         * lib/execute.c (environ): Declare if needed.
78114         * lib/pipe.c (environ): Likewise.
78115         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
78116
78117 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
78118
78119         * modules/argp: Depend on vsnprintf
78120
78121 2005-01-10  Jim Meyering  <jim@meyering.net>
78122
78123         * modules/closeout (Depends-on): Add atexit.
78124
78125 2005-01-06  Bruno Haible  <bruno@clisp.org>
78126
78127         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
78128
78129 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
78130
78131         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
78132         definitions to be after all include files, to avoid collisions.
78133         Problem reported by Bob Proulx.
78134
78135 2005-01-04  Jim Meyering  <jim@meyering.net>
78136
78137         Changes imported from coreutils.
78138         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
78139         as the mkstemp template, use a temporary directory and an
78140         8.3-friendly template to avoid trouble on systems like DJGPP.
78141         Reported by Juan M. Guerrero via Stepan Kasal.
78142         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
78143         close. Remove the temporary directory right away, rather than waiting
78144         for configure's at-exit trap code to do it.
78145         Suggestion from Stepan Kasal.
78146
78147 2005-01-01  Simon Josefsson  <jas@extundo.com>
78148
78149         * gnulib-tool: Print #include directives when --import'ing.
78150
78151 2004-12-28  Simon Josefsson  <jas@extundo.com>
78152
78153         * tests/test-base64.c: Include required header files.  Remove
78154         unused variables.
78155
78156 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
78157
78158         * modules/error (Depends-on): Remove gettext.
78159
78160 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
78161
78162         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
78163         not needed.  This removes a dependency on the gettext module.
78164         [defined _LIBC]: Do not include <libintl.h>; not needed.
78165
78166 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
78167
78168         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
78169         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
78170
78171 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
78172
78173         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
78174         HAVE_DECL_STRTOLD.
78175
78176 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
78177
78178         * modules/getdate (Depends-on): Remove alloca-opt.
78179
78180 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
78181
78182         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
78183
78184 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
78185
78186         * lib/argp-parse.c: Include <stddef.h>.
78187         (alignof, alignto): New macros.
78188         (parser_init): Don't assume that void * is aligned sufficiently
78189         for struct option.
78190
78191         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
78192         need to extend the stack.
78193         (YYINITDEPTH): New macro, so that the initial stack isn't overly
78194         large.
78195
78196 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
78197
78198         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
78199
78200 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
78201
78202         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
78203         (2004-10-24) change.  Apparently this was a false alarm.
78204
78205         * modules/getdate: Depend on alloca-opt, not alloca.
78206
78207 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
78208
78209         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
78210         Remove now-obsolete comment about AIX.
78211         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
78212         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
78213         (YYMAXDEPTH): New macro.
78214
78215 2004-12-18  Simon Josefsson  <jas@extundo.com>
78216
78217         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
78218
78219 2004-12-18  Bruno Haible  <bruno@clisp.org>
78220
78221         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
78222
78223 2004-12-18  Bruno Haible  <bruno@clisp.org>
78224
78225         * lib/fatal-signal.c (fatal_signals): Make non-const.
78226         (init_fatal_signals): New function.
78227         (uninstall_handlers, install_handlers): Ignore signals that were set to
78228         SIG_IGN.
78229         (at_fatal_signal): Call init_fatal_signals.
78230         (init_fatal_signal_set): Likewise. Ignore signals that were set to
78231         SIG_IGN.
78232         Reported by Paul Eggert.
78233
78234 2004-12-18  Bruno Haible  <bruno@clisp.org>
78235
78236         * doc/alloca.texi: New file.
78237         * doc/alloca-opt.texi: New file.
78238
78239 2004-12-17  Jim Meyering  <jim@meyering.net>
78240
78241         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
78242         Otherwise, install-sh could exit with improper exit status when
78243         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
78244
78245 2004-12-16  Simon Josefsson  <jas@extundo.com>
78246
78247         * tests/test-base64.c: Add license.
78248
78249 2004-12-15  Stepan Kasal  <address@hidden>
78250
78251         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
78252
78253 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
78254
78255         * modules/getcwd (Files): Add m4/d-ino.m4.
78256         Suggested by Mark D. Baushke.
78257
78258 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
78259
78260         * lib/getdate.y (textint): New member "negative".
78261         (time_zone_hhmm): New function.
78262         Expect 14 shift-reduce conflicts, not 13.
78263         (o_colon_minutes): New rule.
78264         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
78265         (yylex): Set the "negative" member of signed numbers.
78266
78267 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
78268
78269         * doc/getdate.texi (Time of day items, Time zone items):
78270         Describe new formats +00:00, UTC+00:00.
78271
78272 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
78273
78274         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
78275         spurious "-l"s.  Problem reported by Stepan Kasal.
78276
78277 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
78278
78279         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
78280         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
78281
78282 2004-12-04  Simon Josefsson  <jas@extundo.com>
78283
78284         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
78285         Vandoorselaere <yoann@prelude-ids.org>.
78286
78287 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
78288
78289         Changes imported from coreutils.
78290         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
78291         exist.
78292         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
78293
78294 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
78295
78296         Changes imported from coreutils.
78297         * lib/hard-locale.c: Assume <locale.h> exists.
78298         Include "strdup.h".
78299         (GLIBC_VERSION): New macro.
78300         (hard_locale): Assume setlocale exists.
78301         Rewrite to avoid #ifdef.
78302         Use strdup rather than malloc + strcpy.
78303         * lib/human.c: Assume <locale.h> exists.
78304         (human_readable): Assume localeconv exists.
78305
78306 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
78307
78308         * modules/hard-locale (Depends-on): Add strdup.
78309
78310 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
78311
78312         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
78313         convert T2, not T.  (Imported from libc.)
78314
78315 2004-11-30  Simon Josefsson  <jas@extundo.com>
78316
78317         * modules/restrict (License): Change to LGPL.
78318
78319 2004-11-30  Simon Josefsson  <jas@extundo.com>
78320
78321         * m4/restrict.m4: Add copyright and copying conditions.
78322
78323 2004-11-30  Simon Josefsson  <jas@extundo.com>
78324
78325         * m4/base64.m4: New file.
78326
78327 2004-11-30  Simon Josefsson  <jas@extundo.com>
78328
78329         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
78330         base64.
78331
78332         * tests/test-base64.c: New file.
78333
78334         * modules/base64: New file.
78335
78336 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
78337
78338         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
78339         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
78340
78341         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
78342
78343 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
78344
78345         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
78346         (__getcwd.c): Don't restore errno; glibc doesn't.
78347         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
78348         first, falling back to our code only if its results look suspicious.
78349         Ensure that the resulting buffer is only as large as necessary.
78350
78351         * lib/readutmp.c: Include readutmp.h first.
78352         Include <errno.h>, since readutmp.h no longer does that.
78353         * lib/readutmp.h: Don't include <errno.h>,
78354         <sys/param.h>, <time.h>; not needed to establish interface.
78355         (errno): Remove decl.
78356         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
78357         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
78358         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
78359
78360 2004-11-28  Simon Josefsson  <jas@extundo.com>
78361
78362         * lib/base64.h, base64.c: New file.
78363
78364 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
78365
78366         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
78367
78368 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
78369
78370         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
78371         (Depends-on): Remove pathmax, same.  Add mempcpy.
78372         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
78373         (Makefile.am): Append getcwd.h to lib_SOURCES.
78374         (Include): Add getcwd.h.
78375         (Maintainer): Change from Jim Meyering to "all, glibc",
78376         since getdate now uses intended-for-glibc code.
78377         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
78378         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
78379
78380 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
78381
78382         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
78383         HP's ANSI C compiler.
78384         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
78385         Declaring int functions causes warnings on some modern systems and
78386         shouldn't be needed to compile on ancient ones.
78387         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
78388         defined.
78389
78390         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
78391         with the following changes.
78392         (__set_errno): Parenthesize properly.
78393         Include <stdbool.h>.
78394         (MIN, MAX, MATCHING_INO): New macros.
78395         (__getcwd): Define with prototype, not K&R form.
78396         Use heuristics to allocate default buffer on stack if possible.
78397         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
78398         behavior, and to avoid the PATH_MAX limit when computing
78399         ../../../../...
78400         Use MATCHING_INO to compare inode number to file.
78401         Check for arithmetic overflow in size calculations.
78402         Fix bug in reallocation of dot array that caused getcwd to fail
78403         on directories nested deeper than 75.
78404         Be more careful about saving errno on error.
78405         Do not use realloc; use only free+malloc, as this is a bit
78406         more flexible and avoids a needless copy operation.
78407         Do not inspect st_dev and st_ino for symbolic links; POSIX
78408         doesn't specify the latter.
78409         Check for closedir errors.
78410         Avoid needless casts.
78411         Use "#ifdef weak_alias" around weak_alias, to be like other
78412         glibc code.
78413         The following changes to getcwd.c have effect only when used in
78414         gnulib; they have no effect inside glibc proper.
78415         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
78416         as alloca isn't used.
78417         (alloca, __alloca): Likewise.
78418         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
78419         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
78420         unconditionally, as gnulib assumes C89 or better.
78421         Do not include <sys/param.h>.
78422         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
78423         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
78424         better.
78425         (NULL) [!defined NULL]: Remove; we assume C89 or better.
78426         Include <dirent.h> in a way that is compatible with modern Autoconf.
78427         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
78428         New macros, if not already defined.
78429         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
78430         Use "_LIBC", not "defined _LIBC", for consistency.
78431         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
78432         a mempcpy module.
78433         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
78434         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
78435         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
78436         credit only to Jim Meyering and adjust the copyright dates.
78437         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
78438         <stdlib.h>, <unistd.h>, "pathmax.h".
78439         Instead, include "xgetcwd.h" (first) and "getcwd.h".
78440         (INITIAL_BUFFER_SIZE): Remove.
78441         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
78442
78443 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
78444
78445         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
78446         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
78447         Use the _ONCE methods, for efficiency.
78448         Check for fcntl.h.  In test program, include <errno.h>
78449         and <fcntl.h> if available.  Remove old K&R cruft from
78450         test program.  Check for common errors in GNU/Linux,
78451         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
78452         don't do AC_LIBOBJ, as that's getcwd.m4's job.
78453         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
78454         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
78455         name accordingly.
78456         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
78457         accommodate new getcwd.c.
78458         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
78459         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
78460         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
78461         that's all we need now.
78462
78463 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
78464
78465         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
78466         argp-parse.c depends on getopt internals, that means we should
78467         always use our getopt, to be on the safe side.
78468         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
78469         order not to spoil the result of an eventual previous invocation
78470         of gl_GETOPT_SUBSTITUTE.
78471
78472 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
78473
78474         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
78475         redefinition warnings. To avoid them, include the defines
78476         in `#if !defined __need_getopt ... #endif'. The only place
78477         where __getopt_argv_const is used is in definitions
78478         of getopt_long and getopt_long_only below, which are as well
78479         protected by `#ifndef __need_getopt'.
78480         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
78481         __need_getopt after including <stdio.h> and <unistd.h> These
78482         headers might have defined it.
78483
78484 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
78485
78486         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
78487
78488 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
78489
78490         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
78491         (futimens): New function, which uses futimes if available.
78492         (futimens, utimens): Support timespec==NULL, with same semantics
78493         as utime and utimens.
78494         * lib/utimens.h (futimens): New decl.
78495
78496 2004-11-23  Jim Meyering  <jim@meyering.net>
78497
78498         * lib/getopt_.h: Remove trailing blanks.
78499
78500 2004-11-23  Jim Meyering  <jim@meyering.net>
78501
78502         * lib/__fpending.c: Add comment.
78503
78504 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
78505
78506         * modules/canonicalize (Depends-on): Add xreadlink.
78507         Problem reported by James Youngman.
78508
78509 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
78510
78511         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
78512         New macros.
78513         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
78514         optopt): Use them instead of invoking ## directly; otherwise, the
78515         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
78516
78517 2004-11-19  Bruno Haible  <bruno@clisp.org>
78518
78519         * lib/strtok_r.c: Move comments from here...
78520         * lib/strtok_r.h: ... to here.
78521
78522 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
78523
78524         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
78525         implementations that mishandle size_t overflow.
78526
78527 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
78528
78529         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
78530         might fail.  Problem reported by Yoann Vandoorselaere.
78531         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
78532         implementations that mishandle size_t overflow.
78533
78534 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
78535
78536         * modules/canon-host (Depends-on): Add strdup.
78537
78538 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
78539
78540         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
78541
78542 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
78543
78544         * lib/canon-host.c: Include "strdup.h".
78545         (canon_host): Use getaddrinfo if available, so that IPv6 works.
78546         Use strdup instead of malloc/strcpy to duplicate strings.
78547
78548         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
78549         (human_space_before_unit): New constant.
78550         * lib/human.c (human_readable): Support it.
78551
78552         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
78553         (xgetcwd): Set errno correctly when failing.
78554         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
78555         the failure is actually due to a PATH_MAX problem.
78556
78557         Further getopt changes to make it more likely that glibc will
78558         buy the changes back.
78559         * lib/getopt.c (POSIXLY_CORRECT): New constant.
78560         (getopt): Use it, so to preserve glibc semantic
78561         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
78562         when compiling for libc.
78563         * lib/getopt_.h (__getopt_argv_const): Bring it back.
78564         (getopt_long, getopt_long_only): Use it.
78565
78566         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
78567         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
78568         (getopt): Argv is now char * const *, as per standard.
78569         (_getopt_internal_r, _getopt_internal): Argv is now char **,
78570         not char *__getopt_argv_const *.
78571         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
78572         _getopt_long_only_r): Likewise.
78573         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
78574         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
78575         _getopt_long_r, _getopt_long_only_r): Likewise.
78576         * lib/getopt_.h (__getopt_argv_const): Remove.
78577         (getopt): Argv is now char * const *, as per standard.
78578
78579         * lib/getdate.y (tORDINAL): New token.
78580         (day, relunit): Allow it for relative times.
78581         (relative_time_table): Use tORDINAL for ordinals.
78582
78583 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
78584
78585         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
78586         Document that "second" isn't allowed as an ordinal number.
78587
78588 2004-11-16  Jim Meyering  <jim@meyering.net>
78589
78590         * modules/closeout (Depends-on): Add fpending.
78591
78592 2004-11-15  Jim Meyering  <jim@meyering.net>
78593
78594         * lib/closeout.c: Include "__fpending.h" once again.
78595         Include <stdbool.h>.
78596         (close_stdout): Don't fail just because stdout was closed initially,
78597         since some programs don't write to stdout in the normal course of
78598         operation (other than --version and --help), and we don't want this
78599         function to make e.g. `touch file >&-' fail.
78600         But do fail if it was closed and someone has tried to write to it.
78601         E.g., `printf foo >&-' must fail.
78602
78603 2004-11-13  Jim Meyering  <jim@meyering.net>
78604
78605         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
78606
78607 2004-11-12  Simon Josefsson  <jas@extundo.com>
78608
78609         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
78610         small doc fix is still pending.
78611
78612 2004-11-11  Simon Josefsson  <jas@extundo.com>
78613
78614         * modules/strtok_r: New file.
78615
78616         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
78617         strtok_r.
78618
78619 2004-11-11  Simon Josefsson  <jas@extundo.com>
78620
78621         * m4/strtok_r.m4: New file.
78622
78623         * m4/getopt.m4: Replace opterr.
78624
78625 2004-11-11  Simon Josefsson  <jas@extundo.com>
78626
78627         * lib/strtok_r.h, strtok_r.c: New file.
78628
78629 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
78630
78631         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
78632         of replacing opterr, getopt, etc.  This should handle the
78633         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
78634
78635 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
78636
78637         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
78638         we can stop lying to compilers about the constness of argv when we
78639         are compiled outside glibc.
78640         (getopt, getopt_long, getopt_long_only): Use it.
78641         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
78642         _getopt_internal, getopt): Likewise.
78643         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
78644         _getopt_long_only_r): Likewise.
78645         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
78646         _getopt_long_r, _getopt_long_only_r): Likewise.
78647
78648         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
78649         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
78650         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
78651         the other external symbols.
78652         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
78653         declaration, since the above renaming now works around collisions.
78654
78655 2004-11-11  Jim Meyering  <jim@meyering.net>
78656
78657         * lib/linebreak.c: Remove trailing blanks.
78658         * lib/alloca_.h: Likewise.
78659         * lib/acosl.c: Likewise.
78660         * lib/euidaccess.c: Likewise.
78661         * lib/allocsa.h: Likewise.
78662
78663 2004-11-10  Simon Josefsson  <jas@extundo.com>
78664
78665         * m4/getaddrinfo.m4: New file.
78666
78667 2004-11-10  Simon Josefsson  <jas@extundo.com>
78668
78669         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
78670
78671 2004-11-10  Simon Josefsson  <jas@extundo.com>
78672
78673         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
78674         getaddrinfo.
78675
78676         * modules/getaddrinfo: New file.
78677
78678 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
78679
78680         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
78681
78682 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
78683
78684         * lib/mktime.c (SHR): New macro, which is a portable
78685         substitute for >> that should work even on Crays.
78686         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
78687         Problem reported by Mark D. Baushke in
78688         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
78689         * lib/getdate.y (SHR): Likewise.
78690         (tm_diff): Use it.
78691         * lib/strftime.c (SHR): Likewise.
78692         (tm_diff): Use it.
78693         * lib/quotearg.c (struct quoting_options): Use unsigned int for
78694         quote_these_too, so that right shifts are well defined.  All uses
78695         changed.
78696
78697 2004-11-10  Jim Meyering  <jim@meyering.net>
78698
78699         Ensure that no close failure goes unreported.
78700         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
78701         return early when it seems there's nothing to flush.
78702         Don't include __fpending.h.
78703
78704 2004-11-10  Jim Meyering  <jim@meyering.net>
78705
78706         * modules/closeout (Depends-on): Remove fpending.
78707
78708 2004-11-10  Jim Meyering  <jim@meyering.net>
78709
78710         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
78711
78712 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
78713
78714         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
78715         gl_FUNC_STRFTIME.
78716         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
78717         and AC_REQUIRE when possible, to avoid duplicate checks.
78718         Check for <wchar.h>.
78719
78720 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
78721
78722         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
78723
78724 2004-11-09  Bruno Haible  <bruno@clisp.org>
78725
78726         * m4/sockpfaf.m4: New file.
78727
78728 2004-11-05  Bruno Haible  <bruno@clisp.org>
78729
78730         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
78731         Reported by Mark D. Baushke <mdb@cvshome.org>.
78732
78733 2004-11-04  Bruno Haible  <bruno@clisp.org>
78734
78735         2004-09-11  Bruno Haible  <bruno@clisp.org>
78736                 * allocsa.valgrind: New file.
78737         2004-02-06  Bruno Haible  <bruno@clisp.org>
78738                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
78739                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
78740                 Reported by Christopher Seip <chris.seip@hp.com>.
78741
78742 2004-11-04  Bruno Haible  <bruno@clisp.org>
78743
78744         * modules/allocsa (Files): Add lib/allocsa.valgrind.
78745         (Makefile.am): Distribute it.
78746
78747 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
78748
78749         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
78750         with errno == ERANGE if the buffer is too small.
78751         Problem reported by Mark D. Baushke.
78752
78753 2004-11-03  Albert Chin  <china@thewrittenword.com>
78754             Paul Eggert  <eggert@cs.ucla.edu>
78755
78756         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
78757         equivalent, substitute $ac_type for equivalent type rather than
78758         blindly using uint32_t *always* which won't work if uint32_t is not
78759         available.  Define _UINT32_T to work around typedef of uint32_t if
78760         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
78761         2.5.1.
78762
78763 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
78764
78765         * m4/jm-macros.m4: Sync from coreutils.
78766         (gl_MACROS): Check for mbrlen, for pathchk.
78767         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
78768
78769 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
78770
78771         * lib/xreadlink.c (MAXSIZE): New macro.
78772         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
78773         size does not exceed MAXSIZE.  Avoid cast.
78774         As suggested by Mark D. Baushke in
78775         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
78776         if readlink fails with buffer size just under MAXSIZE, try again
78777         with MAXSIZE.
78778
78779 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
78780
78781         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
78782
78783 2004-11-02  Derek R. Price  <derek@ximbiot.com>
78784         and  Paul Eggert  <eggert@cs.ucla.edu>
78785
78786         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
78787         (get_date): Overparenthesize to avoid GCC warning.
78788
78789 2004-11-02  Bruno Haible  <bruno@clisp.org>
78790
78791         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
78792         returns void.
78793
78794 2004-11-02  Bruno Haible  <bruno@clisp.org>
78795
78796         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
78797         function returns void.
78798
78799 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
78800
78801         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
78802         fflush_unlocked, flockfile, funlockfile, funlockfile,
78803         fputs_unlocked, putc_unlocked.
78804
78805 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
78806
78807         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
78808         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
78809         already declared.
78810
78811 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
78812
78813         * modules/getdate (Files): Add doc/getdate.texi.
78814         (Depends-on): Add setenv, xalloc.
78815
78816 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
78817
78818         * lib/getdate.y: Add support for TZ="foo" within a date string.
78819         Fix some bugs near time_t boundaries.  Reject dates with
78820         out-of-range components, e.g., "Sept 31".
78821         Include <stdlib.h>, "setenv.h", "xalloc.h".
78822         (ISDIGIT_LOCALE): Remove; unused.
78823         Note that the TZ and time functions used here are not reentrant.
78824         (mktime_ok, get_tz): New functions.
78825         (TZBUFSIZE): New constant.
78826         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
78827         This requires that we sometimes generate our own TZ="XXX..." setting.
78828
78829 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
78830
78831         * doc/getdate.texi: New file, from coreutils with modifications for
78832         the new TZ parsing.
78833
78834 2004-10-27  Derek R. Price  <derek@ximbiot.com>
78835
78836         * lib/mktime.c (not_equal_tm): Remove redundant check.
78837
78838 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
78839
78840         * modules/regex (lib_SOURCES): Add regex.c.
78841         Reported by James Youngman in
78842         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
78843
78844 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
78845
78846         * lib/getdate.y: Use Bison 1.875 features, and some minor
78847         code cleanups.  This change does not affect semantics.
78848         Don't include <stdlib.h>; no longer needed.
78849         Don't include unlocked-io.h; only the "#if TEST" code uses
78850         stdio, and performance isn't crucial there.
78851         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
78852         Bison 1.875 features as described below.
78853         All uses of "PC." replaced by "pc->".
78854         (YYSTYPE): Add a forward declaration.
78855         (yylex, yyerror): Use full prototypes in forward decls.
78856         Use "%pure-parser" rather than obsolescent "%pure_parser".
78857         Use %parse-param and %lex-param instead of obsolescent
78858         YYPARSE_PARAM and YYLEX_PARAM.
78859         (meridian_table, month_and_day_table, time_units_table,
78860         relative_time_table, time_zone_table, military_table,
78861         lookup_zone, lookup_word, get_date):
78862         Use NULL instead of 0 where appropriate.
78863         (to_hour): Avoid abort (), to avoid a dependency on
78864         stdlib.h.
78865         (yyerror, yylex): Now accepts parser_control * arg.
78866         (main) [TEST]: Use '\0' rather than 0 for char.
78867
78868 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
78869
78870         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
78871
78872 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
78873
78874         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
78875         It's now the caller's responsibility to handle the case where
78876         !HAVE_GETPAGESIZE && !defined getpagesize.
78877
78878         * lib/mktime.c (leapyear): Arg is long int, not int.
78879
78880 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
78881
78882         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
78883
78884 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
78885
78886         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
78887         missing.  Problem reported by James Youngman.
78888
78889 2004-10-16  Simon Josefsson  <jas@extundo.com>
78890
78891         * gnulib-tool: Fix comments.  Fix parse problem.
78892         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
78893
78894 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
78895
78896         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
78897         implementation of getopt_long.  Problem reported by Alexander Taler in:
78898         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
78899
78900 2004-10-15  Bruno Haible  <bruno@clisp.org>
78901
78902         * gnulib-tool: Untabify. Initialize supplied_libname.
78903         (func_usage): More homogenous output.
78904         (func_modules_transitive_closure, func_modules_to_filelist,
78905         func_emit_lib_Makefile_am): New functions.
78906         (func_import): New function, extracted from big case statement. Use
78907         func_get_license, func_modules_transitive_closure,
78908         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
78909         opt_lgpl. Don't use test -a, as it's not portable.
78910         (func_create_testdir): Use func_modules_transitive_closure,
78911         func_modules_to_filelist, func_emit_lib_Makefile_am.
78912
78913 2004-10-15  Bruno Haible  <bruno@clisp.org>
78914
78915         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
78916
78917 2004-10-15  Bruno Haible  <bruno@clisp.org>
78918
78919         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
78920         the portions belonging to each module.
78921         Suggested by Derek Robert Price <derek@ximbiot.com>.
78922
78923 2004-10-12  Simon Josefsson  <jas@extundo.com>
78924
78925         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
78926         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
78927         to real functions.
78928
78929 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
78930
78931         * modules/vsnprintf: New file.
78932
78933 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
78934
78935         * m4/vsnprintf.m4: New file.
78936
78937 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
78938
78939         * lib/vsnprintf.h: New file.
78940         * lib/vsnprintf.c: New file.
78941
78942 2004-10-11  Bruno Haible  <bruno@clisp.org>
78943
78944         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
78945         vsnprintf.
78946
78947 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
78948
78949         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
78950
78951 2004-10-07  Bruno Haible  <bruno@clisp.org>
78952
78953         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
78954         fits into the provided buffer.
78955
78956 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
78957
78958         * lib/diacrit.c, diacrit.h: Add GPL notice.
78959
78960         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
78961         notice.
78962         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
78963         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
78964         This avoids a potential constant-folding bug.
78965
78966 2004-10-05  Bruno Haible  <bruno@clisp.org>
78967
78968         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
78969         for the declaration of strsep.
78970
78971 2004-10-05  Bruno Haible  <bruno@clisp.org>
78972
78973         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
78974
78975 2004-10-04  Simon Josefsson  <jas@extundo.com>
78976
78977         * modules/memmem: New file.
78978         * tests/test-memmem.c: New file.
78979         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
78980
78981 2004-10-04  Simon Josefsson  <jas@extundo.com>
78982
78983         * m4/memmem.m4: New file.
78984
78985 2004-10-04  Simon Josefsson  <jas@extundo.com>
78986
78987         * lib/memmem.h: New file.
78988         * lib/memmem.c: New file, taken from glibc.
78989
78990 2004-10-04  Simon Josefsson  <jas@extundo.com>
78991
78992         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
78993         '#ifdef USE_UNLOCKED_IO'.
78994
78995 2004-10-04  Simon Josefsson  <jas@extundo.com>
78996
78997         * config/srclist.txt: Add memmem from glibc.
78998
78999 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
79000
79001         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
79002
79003         * modules/argmatch, modules/argp, modules/closeout, modules/error,
79004         modules/exclude, modules/getdate, modules/getline,
79005         modules/getndelim2, modules/getpass, modules/getpass-gnu,
79006         modules/getusershell, modules/linebuffer, modules/md5,
79007         modules/mountlist, modules/posixtm, modules/readtokens,
79008         modules/readutmp, modules/regex, modules/sha1,
79009         modules/version-etc, modules/yesno:
79010         Remove dependency on unlocked-io.
79011
79012 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
79013
79014         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
79015
79016         * m4/unlocked-io.m4: Add copyright notice.
79017         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
79018
79019 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
79020
79021         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
79022         * lib/xmalloc.c (xmemdup): Likewise.
79023         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
79024         XFREE): Remove these long-obsolescent macros.
79025         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
79026         * lib/xstrdup.c: Remove.
79027
79028         * lib/regex.c (re_comp): Cast gettext return value to char *,
79029         Problem reported by Martin Neitzel via Mark D. Baushke.
79030
79031 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
79032
79033         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
79034         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
79035         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
79036         regex.c, sha1.c, version-etc.c, yesno.c:
79037         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
79038         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
79039         the includer's responsibility.
79040
79041         Sync from coreutils.
79042
79043         * lib/modechange.c (mode_compile): Don't decrement a pointer that
79044         points to the start of a string, as the C Standard says the
79045         resulting behavior is undefined.
79046
79047         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
79048         simple -> simple_backups, numbered_existing ->
79049         numbered_existing_backups, numbered -> numbered_backups
79050         to avoid shadowing problems.  All uses changed.
79051         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
79052         * lib/backupfile.c (check_extension, numbered_backup):
79053         Rename locals to avoid shadowing 'basename'.
79054         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
79055         once.
79056
79057         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
79058         * lib/.cvsignore: Add getopt.h.
79059
79060 2004-10-04  Bruno Haible  <bruno@clisp.org>
79061
79062         * modules/README: New file.
79063         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
79064         not a module.
79065
79066 2004-10-02  Jim Meyering  <jim@meyering.net>
79067
79068         * lib/dirfd.h, getpagesize.h: Add copyright notice.
79069
79070 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
79071
79072         * modules/strsep: New file.
79073
79074 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
79075
79076         * m4/strsep.m4: New file.
79077
79078 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
79079
79080         * lib/strsep.h: New file.
79081         * lib/strsep.c: New file.
79082
79083 2004-10-01  Simon Josefsson  <jas@extundo.com>
79084
79085         * lib/snprintf.c (snprintf): Handle size==0.
79086
79087 2004-10-01  Simon Josefsson  <jas@extundo.com>
79088             Bruno Haible  <bruno@clisp.org>
79089
79090         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
79091         (snprintf): Declare 'args'.
79092
79093 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
79094
79095         * lib/snprintf.c: Remove comments as to why each header is needed.
79096
79097 2004-10-01  Bruno Haible  <bruno@clisp.org>
79098
79099         * MODULES.html.sh: Add strsep.
79100
79101 2004-09-30  Simon Josefsson  <jas@extundo.com>
79102
79103         * modules/snprintf: New file.
79104
79105 2004-09-30  Simon Josefsson  <jas@extundo.com>
79106
79107         * m4/snprintf.m4: New file.
79108
79109 2004-09-30  Simon Josefsson  <jas@extundo.com>
79110
79111         * lib/snprintf.h, lib/snprintf.c: New files.
79112
79113 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
79114
79115         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
79116         (hol_entry_help): Never translate an empty string.
79117         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
79118         * lib/argp.h (OPTION_NO_TRANS): New option.
79119
79120 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
79121
79122         * modules/argp (Maintainer): Replace Simon Josefsson
79123         by Sergey Poznyakoff.
79124
79125 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
79126
79127         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
79128         changes merged back into glibc.
79129
79130 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
79131
79132         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
79133
79134 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
79135
79136         * lib/xvasprintf.c: Include xalloc.h.
79137         (xvasprintf): Use xalloc_die, not xmalloc_die.
79138
79139 2004-09-29  Bruno Haible  <bruno@clisp.org>
79140
79141         * modules/alloca-opt: New file, derived from modules/alloca.
79142         * modules/allocsa: Depend on alloca-opt instead of alloca.
79143         * modules/setenv: Likewise.
79144         * modules/vasnprintf: Likewise.
79145         * MODULES.html.sh: Add alloca-opt.
79146
79147 2004-09-28  Simon Josefsson  <jas@extundo.com>
79148
79149         * gnulib-tool: New parameter --lgpl, to asseert that modules are
79150         LGPL, and to replace license template from GPL to LGPL.
79151
79152 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
79153
79154         * modules/dummy: Change license to LGPL.
79155
79156 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
79157
79158         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
79159
79160 2004-09-24  Simon Josefsson  <jas@extundo.com>
79161
79162         * modules/minmax (License): Change from GPL to LGPL.
79163
79164 2004-09-23  Simon Josefsson  <jas@extundo.com>
79165
79166         * gnulib-tool (--import): Typo.
79167
79168 2004-09-23  Simon Josefsson  <jas@extundo.com>
79169
79170         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
79171
79172 2004-09-22  Bruno Haible  <bruno@clisp.org>
79173
79174         * modules/*: Add 'License' field.
79175         * gnulib-tool: Accept --extract-license option.
79176         (func_get_license): New function.
79177
79178 2004-09-21  Bruno Haible  <bruno@clisp.org>
79179
79180         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
79181         Reported by Simon Josefsson.
79182
79183 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
79184
79185         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
79186         gl_AC_TYPE_LONG_LONG.
79187
79188 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
79189
79190         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
79191
79192 2004-09-18  Simon Josefsson  <jas@extundo.com>
79193         and  Paul Eggert  <eggert@cs.ucla.edu>
79194
79195         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
79196         calls with autoreconf.  Define GL_LIB.
79197
79198 2004-09-14  Karl Berry  <karl@gnu.org>
79199
79200         * config/srclist.txt: unsync setenv.c, sigh.
79201
79202 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
79203
79204         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
79205         Problem reported by Bruno Haible in:
79206         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
79207
79208 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
79209
79210         * config/srclist.txt: Comment out argp-pvh.c.
79211
79212 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
79213
79214         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
79215         in case some system header has #define'd it.  Problem reported by
79216         Soeren D. Schulze in
79217         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
79218
79219 2004-09-09  Karl Berry  <karl@gnu.org>
79220
79221         * regex.[ch]: delete from the root.  These were supposed to be
79222                 synced with emacs cvs, but this has not happened for about
79223                 a year, and anyway nothing else uses emacs regex.[ch].
79224                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
79225                 lib/regex[.ch] is untouched.
79226
79227 2004-09-09  Bruno Haible  <bruno@clisp.org>
79228
79229         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
79230
79231 2004-09-09  Bruno Haible  <bruno@clisp.org>
79232
79233         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
79234         modifications.
79235         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
79236
79237 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
79238
79239         * modules/xvasprintf: New file.
79240         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
79241
79242 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
79243
79244         * lib/xvasprintf.h: New file.
79245         * lib/xvasprintf.c: New file.
79246         * lib/xasprintf.c: New file.
79247
79248 2004-09-08  Bruno Haible  <bruno@clisp.org>
79249
79250         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
79251
79252 2004-09-08  Bruno Haible  <bruno@clisp.org>
79253
79254         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
79255         length is > INT_MAX.
79256         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
79257         more.
79258
79259 2004-09-08  Bruno Haible  <bruno@clisp.org>
79260
79261         * lib/stdint_.h: New file, taken from GNU clisp.
79262
79263 2004-09-08  Bruno Haible  <bruno@clisp.org>
79264             Oskar Liljeblad  <oskar@osk.mine.nu>
79265
79266         * modules/stdint: New file.
79267         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
79268
79269 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
79270
79271         Import from coreutils.
79272         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
79273         strings on unbounded length.  alloca's performance benefits aren't
79274         that important here.
79275         (V_STRDUP): Remove.
79276         (parse_with_separator): New function, with most of the internals
79277         of the old parse_user_spec.  Allow user to omit both user and group,
79278         for compatibility with FreeBSD.
79279         Clone only the user name, not the entire spec.
79280         Do not set *uid, *gid unless entirely successful.
79281         Avoid memory leak in some failing cases.
79282         Fix regression for USER.GROUP reported by Dmitry V. Levin in
79283         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
79284         (parse_user_spec): Rewrite to use parse_with_separator.
79285
79286 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
79287
79288         * modules/userspec: Don't depend on alloca.
79289
79290 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
79291
79292         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
79293
79294 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
79295
79296         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
79297         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
79298         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
79299
79300 2004-08-16  Simon Josefsson  <jas@extundo.com>
79301
79302         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
79303         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
79304         Add --dry-run for --import.
79305         Let user provided command line parameters override configure.ac
79306         settings.
79307
79308 2004-08-12  Simon Josefsson  <jas@extundo.com>
79309
79310         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
79311         as discussed with Paul Eggert in threads rooted at
79312         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
79313         and
79314         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
79315         Before, the test was empty, and relied on ELIDE_CODE in source
79316         code.)
79317         (gl_PREREQ_GETOPT): New macro.
79318         (gl_GETOPT): Use them.
79319
79320 2004-08-12  Simon Josefsson  <jas@extundo.com>
79321
79322         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
79323         * lib/getopt_.h: Renamed from getopt.h.
79324
79325 2004-08-12  Simon Josefsson  <jas@extundo.com>
79326
79327         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
79328         Change default library name from libfoo to libgnu.
79329         Now, if you have a configure.ac that says:
79330                 gl_SOURCE_BASE(gl)
79331                 gl_M4_BASE(gl/m4)
79332                 gl_MODULES(error getopt etcetera)
79333                 gl_INIT
79334         you can import all you need by running:
79335                 ../gnulib/gnulib-tool --import
79336
79337         * modules/getopt (Files): Rename getopt.h to getopt_.h.
79338         (Makefile.am): Rewrite, use logic from argz.
79339         (Include): Use <getopt.h> instead of "getopt.h".
79340
79341 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
79342
79343         * modules/argp (Files): Add m4/unlocked-io.m4.
79344         (Depends-on): Add extensions.
79345
79346 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
79347
79348         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
79349         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
79350         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
79351         Check for program_invocation_name, program_invocation_short_name,
79352         flockfile, funlockfile, features.h, _getopt_long_only_r.
79353
79354 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
79355
79356         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
79357         its complicated substitute.
79358         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
79359         and program_invocation_name.
79360         (__argp_basename) [!_LIBC]: Remove; the only use was
79361         replaced by its body.
79362         (__argp_short_program_name): Change condition from
79363         !defined __argp_short_program_name to
79364         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
79365         to match argp-namefrob.h.
79366         (__argp_failure): Don't assume strerror_r returns char *.
79367         * lib/argp-parse.c (N_): Define unconditionally.
79368         (argp_default_options): Fill out initializers with 0 to avoid
79369         gcc warnings.
79370
79371 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
79372
79373         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
79374         getopt1.c.
79375
79376 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
79377
79378         Merge from coreutils.
79379
79380         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
79381
79382         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
79383         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
79384
79385 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
79386
79387         Merge from coreutils.
79388
79389         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
79390         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
79391         for Reliant Unix 5.43.
79392
79393         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
79394         (union fooround): Use uintmax_t, not long int.
79395         The rest is a merge from libc:
79396         [defined _LIBC]: Include <shlib-compat.h>.
79397         (_obstack) [defined _LIBC]: Remove after 2.3.4.
79398
79399         * lib/settime.c (settime): Recode to avoid warning with
79400         Sun Forte C 6U2.
79401
79402         * lib/strverscmp.c: Convert to UTF-8.
79403
79404 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
79405
79406         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
79407         m4/uintmax_t.m4.
79408
79409 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
79410
79411         * modules/xalloc-die: New file.
79412         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
79413
79414         * modules/md5 (Files): Add m4/uint32_t.m4.
79415         * modules/sha1: Renamed from modules/sha.
79416         (Files):
79417         Rename lib/sha.h to lib/sha1.h.
79418         Rename lib/sha.c to lib/sha1.c.
79419         Rename m4/sha.m4 to m4/sha1.m4.
79420         (lib_SOURCES): Likewise.
79421         (configure.ac): Rename gl_SHA to gl_SHA1.
79422         (Include): sha.h -> sha1.h.
79423
79424 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
79425
79426         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
79427         * m4/sha1.m4: Renamed from sha.m4.
79428         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
79429
79430 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
79431
79432         * lib/obstack.h (obstack_empty_p):
79433         Don't assume that chunk->contents is suitably aligned.
79434         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
79435         Likewise. Problem reported by Benno in
79436         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
79437
79438         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
79439         readable.  This could be improved further but it'd take some work.
79440
79441 2004-08-08  Simon Josefsson  <jas@extundo.com>
79442
79443         * modules/xgethostname (Depends-on): Remove exit and error (not
79444         used).
79445
79446         * modules/getpass-gnu: Add getpass.h.
79447         (Depends-on): Add stdbool.
79448         * modules/getpass: Add getpass.h.
79449
79450 2004-08-08  Simon Josefsson  <jas@extundo.com>
79451
79452         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
79453         Check getpass declaration.
79454
79455 2004-08-08  Simon Josefsson  <jas@extundo.com>
79456
79457         * lib/xgethostname.c: Don't include error.h (not used).
79458
79459         * lib/getpass.h: Add.
79460         * lib/getpass.c: Include getpass.h first.
79461
79462 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
79463
79464         * lib/xalloc-die.c: New file.
79465         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
79466         All uses removed.
79467         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
79468         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
79469         xalloc-die.c.
79470         (_, N_, xalloc_die): Move to xalloc-die.c.
79471         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
79472         so that we needn't mess with xalloc_msg_memory_exhausted.
79473
79474         * lib/sha1.h: Renamed from sha.h.
79475         (SHA1_H): Renamed from _SHA_H.
79476         (sha1_ctx): Renamed from sha_ctx.
79477         (sha1_init_ctx): Renamed from sha_init_ctx.
79478         (sha1_process_block): Renamed from sha_process_block.
79479         (sha1_process_bytes): Renamed from sha_process_bytes.
79480         (sha1_finish_ctx): Renamed from sha_finish_ctx.
79481         (sha1_read_ctx): Renamed from sha_read_ctx.
79482         (sha1_stream): Renamed from sha_stream.
79483         (sha1_buffer): Renamed from sha_buffer.
79484         * lib/sha1.c: Likewise; renamed from sha.c.
79485         Do not include <sys/types.h>.
79486         Include <stddef.h> rather than <stdlib.h>.
79487
79488 2004-08-08  Bruno Haible  <bruno@clisp.org>
79489
79490         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
79491         FILESYSTEM_PREFIX_LEN.
79492         * lib/progreloc.c: Likewise.
79493         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
79494
79495 2004-08-06  Simon Josefsson  <jas@extundo.com>
79496
79497         * modules/progname (Depends-on): Don't depend on stdbool.
79498
79499 2004-08-06  Simon Josefsson  <jas@extundo.com>
79500
79501         * modules/getsubopt: New file.
79502         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
79503         getsubopt.
79504
79505 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
79506
79507         More merge from coreutils.
79508
79509         * m4/utimens.m4, m4/utimecmp.m4: New files.
79510         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
79511         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
79512         prereq.m4, sha.m4: Import changes from coreutils.
79513
79514 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
79515
79516         More merge from coreutils.
79517         * modules/raise, modules/readtokens0, modules/utimens:
79518         * modules/utimecmp, module/xnanosleep: New files.
79519         * modules/strftime: Add lib/strftime.h.
79520         Change include from <time.h> to "strftime.h".
79521         * modules/yesno: Add lib/yesno.h.
79522         * modules/backupfile: Remove lib/addext.c.
79523         * modules/euidaccess: Add stat-macros.h.
79524         * modules/canonicalize, modules/euidaccess,
79525         modules/filemode, modules/lchown, modules/makepath,
79526         modules/rmdir, modules/stat: Likewise.
79527
79528 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
79529
79530         Merge from tar.
79531         * lib/argp-help.c (make_hol, hol_append): Don't assume that
79532         SIZE_MAX is a valid preprocessor constant.
79533         (__argp_basename): Change from "#ifndef _LIBC"
79534         to "#ifndef __argp_short_program_name", so that
79535         we don't compile these functions for tar.
79536
79537         More merges from coreutils.
79538         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
79539         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
79540         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
79541         * lib/addext.c: Remove; no longer needed.
79542         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
79543         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
79544         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
79545         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
79546         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
79547         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
79548         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
79549         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
79550         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
79551         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
79552         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
79553         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
79554         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
79555         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
79556         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
79557         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
79558         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
79559         Import changes from coreutils.
79560
79561 2004-08-05  Simon Josefsson  <jas@extundo.com>
79562
79563         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
79564
79565 2004-08-05  Simon Josefsson  <jas@extundo.com>
79566
79567         * m4/getsubopt.m4: New file.
79568
79569 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
79570
79571         Merge from coreutils.
79572
79573         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
79574         * m4/getcwd-path-max.m4: New files.
79575
79576         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
79577         FILESYSTEM_PREFIX_LEN ->
79578         FILE_SYSTEM_PREFIX_LEN.
79579         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
79580         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
79581         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
79582         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
79583
79584         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
79585         prerequisite modules now handle the DOS stuff.
79586         Don't check for unistd.h.
79587
79588 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
79589
79590         Merge from coreutils.
79591
79592         * lib/.gdb-history: Remove; this doesn't belong here.
79593
79594         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
79595         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
79596         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
79597         * lib/getcwd.c: New files.
79598
79599         * lib/dirname.h: Include <stdbool.h>.
79600         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
79601         for consistency with POSIX terminology.  All uses changed.
79602         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
79603         (strip_trailing_slashes): Use bool for booleans.
79604         * lib/stripslash.c (strip_trailing_slashes): Likewise.
79605
79606         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
79607         sometimes returns a positive errno value even when it succeeds.
79608         (print_errno_message) [!LIBC]: Fall back on strerror if
79609         __strerror_r fails.
79610
79611         * lib/path-concat.c (mempcpy): Don't define if a system header defines
79612         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
79613         (longest_relative_suffix): New function.
79614         (path_concat): Use it.  Assume first argument is not NULL.
79615         Port to DOS.  Omit redundant separators.
79616         Report an error instead of returning NULL.
79617         Use mempcpy instead of memcpy.
79618         (xpath_concat): Remove: not declared or used.
79619
79620         * lib/same.h: Include <stdbool.h>
79621         (same_name): Return bool, not int.
79622         * lib/same.c (same_name): Likewise.
79623         (errno): Don't declare; we assume C89 or better now.
79624
79625         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
79626         if not already defined.
79627
79628         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
79629         * lib/dup-safer.c (errno): Likewise.
79630
79631 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
79632
79633         Merge from coreutils.
79634         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
79635         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
79636         * modules/path-concat: Don't depend on strdup.
79637
79638 2004-08-03  Simon Josefsson  <jas@extundo.com>
79639
79640         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
79641         * lib/progname.h: Don't include stdbool.h.
79642
79643 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
79644
79645         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
79646         * MODULES.html.sh (func_all_modules): Remove fatal.
79647
79648 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
79649
79650         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
79651
79652 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
79653
79654         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
79655         working.
79656
79657 2004-08-02  Simon Josefsson  <jas@extundo.com>
79658
79659         * lib/getsubopt.h: New file, with comments from Bruno Haible.
79660         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
79661         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
79662
79663 2004-08-01  Simon Josefsson  <jas@extundo.com>
79664
79665         * lib/xgetdomainname.c: Include stdlib.h, for free().
79666
79667 2004-07-19  Bruno Haible  <bruno@clisp.org>
79668
79669         * MODULES.html.sh (func_all_modules): Add dummy.
79670
79671 2004-07-16  Simon Josefsson  <jas@extundo.com>
79672
79673         * modules/dummy: New file.
79674
79675 2004-07-16  Simon Josefsson  <jas@extundo.com>
79676
79677         * lib/dummy.c: New file.
79678
79679 2004-07-16  Bruno Haible  <bruno@clisp.org>
79680
79681         * lib/backupfile.h: Add extern "C" for C++.
79682         * lib/closeout.h: Likewise.
79683         * lib/copy-file.h: Likewise.
79684         * lib/findprog.h: Likewise.
79685         * lib/full-write.h: Likewise.
79686         * lib/pathname.h: Likewise.
79687         * lib/progname.h: Likewise.
79688         * lib/stpcpy.h: Likewise.
79689         * lib/stpncpy.h: Likewise.
79690         * lib/strcase.h: Likewise.
79691         * lib/strstr.h: Likewise.
79692         * lib/xalloc.h: Likewise.
79693
79694         * lib/mbswidth.h: Add extern "C" for C++.
79695         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
79696
79697 2004-07-13  Robert Millan  <robertmh@gnu.org>
79698
79699         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
79700
79701 2004-07-09  Simon Josefsson  <jas@extundo.com>
79702
79703         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
79704         failed without this.)
79705
79706 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
79707
79708         * modules/chown (Files): Add lib/fchown-stub.c, since
79709         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
79710
79711 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
79712
79713         * lib/fchown-stub.c: New file.
79714
79715 2004-06-24  Jim Meyering  <jim@meyering.net>
79716
79717         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
79718
79719 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
79720
79721         * modules/argz: Omit "#include".
79722
79723         * MODULES.html.sh (func_all_modules): Add calloc, to match
79724         2004-06-01 addition of calloc module.
79725
79726 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
79727
79728         * m4/argz.m4: New file, which is autoupdated from libtool.
79729
79730 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
79731
79732         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
79733         libtool.
79734
79735 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
79736
79737         * config/srclist-update: Don't insist on "USA." before the
79738         close-comment, as libtool omits the period and puts the */ on a
79739         separate line.
79740         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
79741         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
79742
79743 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
79744
79745         * modules/argz: New file.
79746         * MODULES.html.sh (func_all_modules): Add argz.
79747
79748 2004-06-12  Jim Meyering  <jim@meyering.net>
79749         and  Paul Eggert  <eggert@cs.ucla.edu>
79750
79751         * modules/hash (Files): Add lib/xalloc.h.
79752         * modules/pipe (Depends-on): Add wait-process.
79753         * modules/stat (Depends-on): Add xalloc.
79754         * modules/userspec (Files): Add lib/userspec.h.
79755         * modules/xstrto
79756
79757         Upgrade from gettext-0.13.
79758         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
79759         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
79760         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
79761
79762 2004-06-10  Jim Meyering  <jim@meyering.net>
79763
79764         * lib/calloc.c: New file.
79765
79766 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
79767
79768         * lib/getdate.y (yylex): Allow space between sign and number.
79769         Problem reported by Dan Jacobson.
79770
79771 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
79772
79773         Merge from coreutils CVS.
79774
79775         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
79776         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
79777         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
79778         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
79779         xstrtol.m4: Fix copyright date and/or serial number.
79780
79781         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
79782         See if we need an fchown replacement.
79783         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
79784         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
79785         and use the replacement function if we detect either defect.
79786
79787         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
79788         gl_UTIMECMP.
79789
79790 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
79791         and  Jim Meyering  <jim@meyering.net>
79792
79793         Merge from coreutils CVS.
79794
79795         * lib/stat-macros.h: New file, with contents from file-type.h
79796         and coreutils' system.h.
79797         * lib/file-type.c: Include "stat-macros.h".
79798         * lib/file-type.h (file_type): Move all macro definitions to new file,
79799         stat-macros.h.
79800
79801         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
79802         Wrap old code with this conditional.
79803         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
79804         function that does not dereference symlinks.
79805         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
79806
79807         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
79808         dependency problems.
79809         (xreadlink): Accept new arg SIZE, for efficiency.
79810         All decls and uses changed.
79811         * lib/xreadlink.h: Include <stddef.h>, for size_t.
79812
79813         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
79814         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
79815
79816         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
79817         sysexits.h.
79818
79819 2004-06-01  Jim Meyering  <jim@meyering.net>
79820
79821         * m4/calloc.m4: New file.
79822
79823 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
79824
79825         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
79826         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
79827         Also, fix a typo in a diagnostic.
79828
79829 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
79830
79831         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
79832         or AC_FUNC_REALLOC.
79833
79834 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
79835
79836         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
79837         macros to be defined.
79838         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
79839         the allocator returns NULL because the requested size is zero.
79840
79841 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
79842
79843         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
79844         var.  Add comment explaining why libc still defines it.  This
79845         merges the following patch from glibc:
79846         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
79847
79848 2004-05-20  Andreas Schwab  <schwab@suse.de>
79849
79850         * m4/free.m4: Replace free if it not known to work, not the other
79851         way round.
79852
79853 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
79854
79855         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
79856         present in glibc since revision 1.1 of this file.
79857         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
79858         obstack_alignment_mask, obstack_alloc, obstack_base,
79859         obstack_blank, obstack_blank_fast, obstack_chunk_size,
79860         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
79861         obstack_grow0, obstack_init, obstack_int_grow,
79862         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
79863         obstack_next_free, obstack_object_size, obstack_ptr_grow,
79864         obstack_ptr_grow_fast, obstack_room): Remove declarations of
79865         nonexistent functions.
79866
79867 2004-05-18  Karl Berry  <karl@gnu.org>
79868
79869         * config/srclist.txt: break link for vasnprintf.c.
79870
79871 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
79872
79873         Port obstack to the AS/400, where pointers are 16 bytes wide and
79874         you cannot cast an integer to a valid pointer.  This patch is
79875         currently waiting to be integrated into glibc; see
79876         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
79877
79878         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
79879         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
79880         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
79881         (struct obstack): temp member is now a union of a pointer and
79882         an integer, instead of an integer.  All integer uses changed.
79883         This does not affect the physical layout of struct obstack,
79884         except on hosts (like the AS/400) where the size or alignment of
79885         void * is greater than that of ptrdiff_t.
79886         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
79887         __STDC__)]: Store temporary in pointer member of union, not
79888         integer member.
79889         * lib/obstack.c: Include <stddef.h>, for offsetof.
79890         (struct fooalign): Remove; it doesn't need a name.
79891         (union fooround): Change double to long double, and add void *.
79892         (DEFAULT_ALIGNMENT): Use offsetof to compute.
79893         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
79894         not a macro.  Hence the values are always int; so remove all
79895         casts-to-int in uses.
79896
79897 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
79898
79899         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
79900         we can get this patch merged into glibc.
79901
79902 2004-05-17  Derek R. Price  <derek@ximbiot.com>
79903             Paul Eggert  <eggert@cs.ucla.edu>
79904
79905         * m4/argp: Depend on alloca.
79906
79907 2004-05-17  Derek R. Price  <derek@ximbiot.com>
79908             Paul Eggert  <eggert@cs.ucla.edu>
79909
79910         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
79911         freecoding.
79912
79913 2004-05-17  Bruno Haible  <bruno@clisp.org>
79914
79915         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
79916         precision that consists of a '.' followed by an empty digit string.
79917         Patch by Tor Lillqvist <tml@iki.fi>.
79918
79919 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
79920
79921         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
79922         for backward compatibility with older code.  We need our own
79923         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
79924         it under some other name, and our alloca.h will define it.
79925
79926 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
79927             Derek Price  <derek@ximbiot.com>
79928
79929         * lib/alloca.c: Include <alloca.h>, to get our interface.
79930         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
79931         include <alloca.h> first.  Use C89 prototype for alloca; this
79932         requires including <stddef.h> for size_t.  Use extern "C" if C++.
79933         Use #elif for simplicity, since we can assume C89 now.
79934         Don't try to source the system alloca.h since it will not be found
79935         and to prevent recursively including its replacement.
79936         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
79937         * lib/regex.c: Likewise.
79938
79939 2004-05-16  Derek Price  <derek@ximbiot.com>
79940             Paul Eggert  <eggert@cs.ucla.edu>
79941
79942         getline cleanup.  This changes the getndelim2 API: both order of
79943         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
79944         no delimiter).
79945
79946         * lib/getline.c: Don't include stddef.h or stdio.h, since our
79947         interface does that.
79948         (getline): Always use getdelim, so that we don't have two
79949         copies of this code.
79950         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
79951         if available.
79952         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
79953         (GETNDELIM2_MAXIMUM): New macro.
79954         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
79955         instead of the old practice of delim2==0.  All callers changed.
79956         Return -1 on overflow, instead of returning junk.
79957         Do not set *linesize unless allocation succeeds.
79958         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
79959         that we include sys/types.h.
79960         * lib/getnline.h: Likewise.
79961         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
79962         (getndelim2): Reorder arguments.
79963         * lib/getnline.c (getnline, getndelim):
79964         Don't discard the NMAX argument.
79965         (getnline): Invoke getndelim, to avoid code duplication.
79966         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
79967         of (size_t) -1 by callers of the getnline family.
79968
79969 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
79970
79971         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
79972         Check for gettimeofday.
79973         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
79974         Check for settimeofday, stime.
79975
79976 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
79977
79978         * lib/nanosleep.c (suspended): Change its type from int to
79979         sig_atomic_t volatile.
79980         (first_call): Make it private to rpl_nanosleep, and have it
79981         be zero initially as that's a bit faster.
79982         (my_usleep): Round up fractional times instead of truncating them,
79983         as this is the usual meaning for 'sleep'.
79984
79985         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
79986         doesn't work.
79987         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
79988         (ENOSYS): Define if not defined.
79989         (settime): Fall back on stime if it exists and settimeofday fails.
79990         But don't bother with fallbacks if a method fails with errno == EPERM.
79991
79992 2004-05-11  Jim Meyering  <jim@meyering.net>
79993
79994         Prior to this change, the save_cwd caller required read access to the
79995         current directory on most systems (ones with the fchdir function).
79996
79997         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
79998         fails, try write-only, and finally, resort to using xgetcwd.
79999
80000 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
80001
80002         * lib/obstack.c, obstack.h: Import changes from libc.
80003
80004 2004-04-28  Bruno Haible  <bruno@clisp.org>
80005
80006         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
80007         also implicitly appends .exe to executables.
80008         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
80009         accepts Windows pathnames.
80010         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
80011         Treat Cygwin like Windows, since it now accepts Windows pathnames.
80012         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
80013         Treat Cygwin like Windows, since it now accepts Windows pathnames.
80014         Reported by Derek Robert Price <derek@ximbiot.com>.
80015
80016 2004-04-21  Karl Berry  <karl@gnu.org>
80017
80018         * config/srclist.txt (localcharset.c): break sync.
80019
80020 2004-04-20  Paul Eggert  <eggert@twinsun.com>
80021
80022         * m4/host-os.m4: Add a copyright notice.
80023
80024 2004-04-20  Jim Meyering  <jim@meyering.net>
80025
80026         Change UTILS_ to gl_ in AC_DEFINE'd names.
80027         Change utils_- and jm_-prefixed variables, too.
80028         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
80029         UTILS_FUNC_MKDIR_TRAILING_SLASH.
80030         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
80031
80032         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
80033         Don't emit trailing blanks.
80034         Also rename jm_-prefixed variables to have gl_ prefix.
80035
80036         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
80037         Also rename jm_-prefixed variables to have gl_ prefix.
80038
80039         * m4/jm-macros.m4: Reflect the renamings.
80040         * m4/prereq.m4: Likewise.
80041
80042 2004-04-20  Jim Meyering  <jim@meyering.net>
80043
80044         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
80045         memory.
80046
80047 2004-04-20  Jim Meyering  <jim@meyering.net>
80048             Bruno Haible  <bruno@clisp.org>
80049
80050         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
80051         memory when realloc fails.
80052
80053 2004-04-19  Jim Meyering  <jim@meyering.net>
80054
80055         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
80056         now that readutmp.c may call `free (0)'.
80057
80058 2004-04-19  Bruno Haible  <bruno@clisp.org>
80059
80060         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
80061         * m4/inttypes_h.m4: Likewise.
80062         * m4/stdint_h.m4: Likewise.
80063         * m4/intmax_t.m4: Likewise.
80064         * m4/uintmax_t.m4: Likewise.
80065
80066 2004-04-18  Jim Meyering  <jim@meyering.net>
80067
80068         * m4/prereq.m4: Don't forbid jm_ prefix.
80069
80070         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
80071         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
80072         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
80073         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
80074         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
80075         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
80076         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
80077         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
80078         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
80079         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
80080         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
80081         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
80082         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
80083         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
80084         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
80085         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
80086         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
80087         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
80088         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
80089
80090 2004-04-18  Jim Meyering  <jim@meyering.net>
80091
80092         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
80093         failure, don't leak memory and do call END_UTMP_ENT.
80094
80095 2004-04-16  Jim Meyering  <jim@meyering.net>
80096
80097         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
80098         coreutils' stat program.
80099         (gl_PREREQ): Don't require jm_PREREQ_STAT.
80100
80101 2004-04-11  Paul Eggert  <eggert@twinsun.com>
80102
80103         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
80104         C89.
80105         (CHAR_BIT): Remove, since we assume C89.
80106         Include <stdint.h> if available, as per current Autoconf CVS advice.
80107
80108 2004-03-31  Jim Meyering  <jim@meyering.net>
80109
80110         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
80111         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
80112         * m4/xalloc.m4: Likewise.
80113
80114 2004-03-30  Paul Eggert  <eggert@twinsun.com>
80115
80116         Merge from coreutils.
80117
80118         * m4/inttostr.m4: New file.
80119         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
80120         Require AM_STDBOOL_H and gl_TIMESPEC instead.
80121         Require gl_CLOCK_TIME.
80122         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
80123
80124 2004-03-30  Paul Eggert  <eggert@twinsun.com>
80125
80126         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
80127         not bool, to be more consistent with Unix conventions.
80128         Suggested by Bruno Haible.
80129
80130         Merge from coreutils.
80131
80132         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
80133         * lib/umaxtostr.c: New files.
80134
80135         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
80136         the usual <time.h> dance.
80137         (get_date): Change signature to support fractional time stamps.
80138         All callers changed.
80139         * lib/getdate.y: Include "getdate.h" first, as we can now
80140         assume C89 and don't need to worry about 'const'.
80141         Similarly, include "unlocked-io.h" near start, not in middle.
80142         Include <limits.h>.
80143         (textint.value): Use long int rather than int.
80144         (textint.digits): Use size_t rather than int.
80145         (BILLION, LOG10_BILLION): New constants.
80146         (parser_control): New member rel_ns.  Members day_ordinal,
80147         time_zone, month, day, hour, minutes, rel_year, rel_month,
80148         rel_day, rel_hour, rel_minutes, rel_seconds
80149         are now long int, not int.  Member seconds is now struct timespec,
80150         not int.  New member timespec_seen.  Members dates_seen, days_seen,
80151         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
80152         not int.
80153         (%union.intval): Now long int, not int.
80154         New member timespec.
80155         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
80156         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
80157         (spec): Now is a timespec or an item list.
80158         (timespec, items): New nonterminals.
80159         (time, rel, relunit, number, get_date):
80160         Add support for fractional seconds.
80161         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
80162         (gmtime, localtime, mktime): Remove decls; not needed with C89.
80163         (to_hour): First arg is now long int, not int.
80164         (to_year): Returns long int, not int.
80165         Don't treat year -70 like 70.
80166         (tm_diff): Returns long int, not int.
80167         (lookup_word): Use bool instead of int when appropriate.
80168         (yylex): Use size_t for count, not int.
80169         Detect overflow when parsing large integer constants.
80170         Add support for fractions.
80171         (get_date): Make pointers 'const' if possible.
80172         Use more-portable code to detect integer overflow.
80173         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
80174         Don't use ctime; it's not reliable if the year has >4 digits.
80175
80176         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
80177         This is for compatibility with BSD.
80178
80179         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
80180         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
80181         From coreutils' system.h.
80182
80183         * lib/userspec.c: Don't include "posixver.h".
80184         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
80185         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
80186         compatible extension.  Simplify code by removing a boolean int
80187         that was always nonzero if a string was nonnull.
80188
80189 2004-03-30  Jim Meyering  <jim@meyering.net>
80190
80191         Merge from coreutils.
80192
80193         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
80194         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
80195         on some systems one must include <grp.h> before it.
80196         Reported by Christian Krackowizer.
80197
80198 2004-03-30  Jim Meyering  <jim@meyering.net>
80199
80200         Merge from coreutils.
80201
80202         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
80203
80204         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
80205         an empty input stream.
80206
80207         * lib/readtokens.c: Include <stdbool.h>.
80208         (readtoken): Use `size_t' rather than int/long.
80209         All callers adjusted.
80210         Use `bool' rather than `int' where appropriate.
80211         Use memset rather than an explicit loop.
80212         Use x2nrealloc rather than xrealloc.
80213         Allow the use of `\0' as a delimiter.
80214         (readtokens): Likewise.
80215         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
80216
80217 2004-03-30  Jim Meyering  <jim@meyering.net>
80218
80219         * m4/realloc.m4: Remove file, since now it does no more than
80220         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
80221         the `configure.ac' section of module/realloc.
80222         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
80223
80224 2004-03-30  Bruno Haible  <bruno@clisp.org>
80225
80226         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
80227         nonnull.
80228
80229 2004-03-29  Paul Eggert  <eggert@twinsun.com>
80230
80231         Merge changes to getloadavg.c from coreutils and Emacs.
80232
80233         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
80234         Define to an expression, not to the empty string.
80235         Include cloexec.h and xalloc.h.
80236         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
80237         Use set_cloexec_flag rather than rolling our own.
80238         * lib/cloexec.c, lib/cloexec.h: New files.
80239
80240 2004-03-29  Paul Eggert  <eggert@twinsun.com>
80241
80242         * m4/cloexec.m4: New file.
80243
80244 2004-03-18  Paul Eggert  <eggert@twinsun.com>
80245
80246         * lib/getopt.h: Sync with libc CVS.
80247
80248 2004-03-18  Paul Eggert  <eggert@twinsun.com>
80249             Bruno Haible  <bruno@clisp.org>
80250
80251         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
80252         mbswidth.
80253
80254 2004-03-18  Paul Eggert  <eggert@twinsun.com>
80255             Bruno Haible  <bruno@clisp.org>
80256
80257         * lib/mbswidth.h: Include <wchar.h> only if
80258         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
80259         <wchar.h>.
80260         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
80261
80262 2004-03-09  Paul Eggert  <eggert@twinsun.com>
80263
80264         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
80265         Sync with libc CVS.
80266         * lib/getopt_int.h: New file, also synced from libc.
80267
80268 2004-03-09  Paul Eggert  <eggert@twinsun.com>
80269
80270         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
80271         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
80272         Bring back getopt.c, getopt.h, getopt1.c.
80273
80274 2004-03-07  Paul Eggert  <eggert@twinsun.com>
80275
80276         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
80277         All uses changed.  Check for sa_sigaction member; this fixes
80278         a bug first reported by Jason Andrade in
80279         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
80280
80281 2004-03-07  Paul Eggert  <eggert@twinsun.com>
80282
80283         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
80284         '#if' expressions.  Unlike the code it replaces, it does not
80285         depend on (defined _SC_PAGESIZE).  However, it does depend on
80286         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
80287         first reported by Jason Andrade in
80288         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
80289
80290 2004-02-25  Simon Josefsson  <jas@extundo.com>
80291
80292         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
80293
80294 2004-02-25  Simon Josefsson  <jas@extundo.com>
80295
80296         * lib/strdup.h: New file.
80297         * lib/strdup.c: Include it.
80298         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
80299         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
80300
80301 2004-02-23  Karl Berry  <karl@gnu.org>
80302
80303         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
80304         (from fencepost.gnu.org:/gd/gnuorg).
80305
80306 2004-02-23  Karl Berry  <karl@gnu.org>
80307
80308         * config/srclistvars.sh (GNUORG) [karl]: redefine.
80309         * config/srclist.txt: add maintain/standards documents.
80310
80311 2004-02-18  Bruno Haible  <bruno@clisp.org>
80312
80313         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
80314         Reported by Derek Robert Price <derek@ximbiot.com>.
80315
80316 2004-02-16  Karl Berry  <karl@gnu.org>
80317
80318         * config/mkinstalldirs, install-sh: update from automake.
80319
80320 2004-02-06  Karl Berry  <karl@gnu.org>
80321
80322         * m4/po.m4: update from gettext 0.14.1.
80323
80324 2004-02-06  Karl Berry  <karl@gnu.org>
80325
80326         * lib/config.charset: update from gettext 0.14.1.
80327
80328 2004-02-05  Paul Eggert  <eggert@twinsun.com>
80329
80330         Add comments and code, prompted by suggestions from Bruno Haible
80331         for sh-quote.
80332         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
80333         describing the enum quoting_style values.
80334         * lib/quotearg.c (quotearg_alloc): New function.
80335         (quotearg_buffer_restyled): Treat lone { and } as special.
80336         Treat = as special.  Work around bug with older shells
80337         that "see" a '\' that is really the 2nd byte of a multibyte char.
80338         Quote empty string with shell_quoting_style.
80339
80340 2004-02-03  Bruno Haible  <bruno@clisp.org>
80341
80342         * m4/pipe.m4: New file, from GNU gettext.
80343
80344 2004-02-03  Bruno Haible  <bruno@clisp.org>
80345
80346         * lib/pipe.h: New file, from GNU gettext.
80347         * lib/pipe.c: New file, from GNU gettext.
80348
80349 2004-01-27  Bruno Haible  <bruno@clisp.org>
80350
80351         * m4/execute.m4: New file, from GNU gettext.
80352
80353 2004-01-27  Bruno Haible  <bruno@clisp.org>
80354
80355         * lib/execute.h: New file, from GNU gettext.
80356         * lib/execute.c: New file, from GNU gettext.
80357         * lib/w32spawn.h: New file, from GNU gettext.
80358
80359 2004-01-24  Paul Eggert  <eggert@twinsun.com>
80360
80361         Merge from diffutils.
80362
80363         * lib/file-type.c (file_type): Add typed memory objects.
80364         * lib/file-type.h (S_TYPEISTMO): New macro.
80365
80366         * lib/c-stack.h (c_stack_action): Remove argv argument.
80367         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
80368         (die): Don't calculate message unless segv_action returns.
80369         (get_stack_location, min_address_from_argv, max_address_from_argv,
80370         volatile stack_base, volatile_stack_size): Remove.
80371         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
80372         that every segmentation violation is a stack overflow.  (Ouch!)
80373         See Debian bug 136249 (still outstanding) for more info about why
80374         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
80375
80376 2004-01-24  Paul Eggert  <eggert@twinsun.com>
80377
80378         Exit-status fix from coreutils.
80379
80380         Use exit_failure consistently in place of EXIT_FAILURE,
80381         so that program exit statuses are consistent on failure.
80382
80383         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
80384         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
80385         * lib/argmatch.h: Comment fix to match the above.
80386         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
80387         Now a macro referring to exit_failure, instead of a separate
80388         variable.  Include "exitfail.h" to get it.
80389         * lib/xstrtol.h: Include "exitfail.h".
80390         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
80391
80392         * lib/long-options.c (parse_long_options): Use prototype
80393         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
80394         for clarity.
80395
80396 2004-01-21  Jim Meyering  <jim@meyering.net>
80397
80398         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
80399         so as not to conflict with a different-sized __mktime_internal
80400         function in GNU libc.
80401         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
80402         Problem building statically-linked `ls' reported by Michael Brunnbauer.
80403
80404 2004-01-20  Karl Berry  <karl@gnu.org>
80405
80406         * config/config.guess: update from config.
80407
80408         * config/srclistvars.sh: GNUWWWLICENSES for karl.
80409
80410 2004-01-20  Bruno Haible  <bruno@clisp.org>
80411
80412         Safer stack allocation.
80413         * lib/setenv.c: Include allocsa.h.
80414         (alloca): Remove fallback definition.
80415         (freea): Remove macro.
80416         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
80417         instead of freea.
80418
80419 2004-01-20  Bruno Haible  <bruno@clisp.org>
80420
80421         * m4/eealloc.m4: New file, from GNU gettext.
80422
80423 2004-01-20  Bruno Haible  <bruno@clisp.org>
80424
80425         * m4/allocsa.m4: New file, from GNU gettext.
80426
80427 2004-01-20  Bruno Haible  <bruno@clisp.org>
80428
80429         * lib/xallocsa.h: New file, from GNU gettext.
80430         * lib/xallocsa.c: New file, from GNU gettext.
80431
80432 2004-01-20  Bruno Haible  <bruno@clisp.org>
80433
80434         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
80435
80436 2004-01-20  Bruno Haible  <bruno@clisp.org>
80437
80438         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
80439         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
80440         specially.
80441
80442 2004-01-20  Bruno Haible  <bruno@clisp.org>
80443
80444         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
80445         patch.
80446
80447 2004-01-20  Bruno Haible  <bruno@clisp.org>
80448
80449         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
80450
80451 2004-01-20  Bruno Haible  <bruno@clisp.org>
80452
80453         * lib/eealloc.h: New file.
80454
80455 2004-01-20  Bruno Haible  <bruno@clisp.org>
80456
80457         * lib/binary-io.h: Avoid warnings on Cygwin.
80458
80459 2004-01-20  Bruno Haible  <bruno@clisp.org>
80460
80461         * lib/allocsa.h: New file, from GNU gettext.
80462         * lib/allocsa.c: New file, from GNU gettext.
80463
80464 2004-01-18  Karl Berry  <karl@gnu.org>
80465
80466         * doc/gpl.texi, doc/lgpl.texi: new files.
80467
80468 2004-01-18  Karl Berry  <karl@gnu.org>
80469
80470         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
80471         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
80472
80473 2004-01-15  Paul Eggert  <eggert@twinsun.com>
80474
80475         Merge from coreutils.
80476
80477         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
80478         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
80479         (gl_DEFAULT_POSIX2_VERSION): Move
80480         the documentation from 'configure' into 'config.hin',
80481         so that 'configure --help' isn't burdened by it and
80482         we don't have to worry about its formatting there.
80483         Reword the documentation so that it's more succinct
80484         and can be run together into a single paragraph.
80485         * m4/same.m4 (gl_SAME): Check for pathconf.
80486
80487 2004-01-15  Paul Eggert  <eggert@twinsun.com>
80488
80489         Merge from coreutils.
80490
80491         * lib/posixver.c: Include posixver.h.
80492
80493         * lib/same.c: Include <stdbool.h>, <limits.h>.
80494         (_POSIX_NAME_MAX): Define if not defined.
80495         (MIN): New macro.
80496         (same_name): If file names are silently truncated, report
80497         that the file names are the same if they are the same after
80498         the silent truncation.
80499
80500         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
80501         conversion function.
80502         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
80503         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
80504         longer needed.
80505
80506 2004-01-15  Jim Meyering  <jim@meyering.net>
80507
80508         Merge from coreutils.
80509
80510         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
80511         if no library is required.
80512         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
80513         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
80514         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
80515         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
80516         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
80517         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
80518         value, $ac_cv_search_crypt, if it's "none required".
80519         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
80520         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
80521         not gl_FUNC_GETLOADAVG.
80522         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
80523         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
80524
80525 2004-01-15  Jim Meyering  <jim@meyering.net>
80526
80527         Merge from coreutils.
80528
80529         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
80530         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
80531         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
80532
80533         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
80534         optional configure-time default.
80535
80536         * lib/version-etc.c (version_etc_copyright): Update copyright date.
80537
80538         * lib/xreadlink.c (xreadlink): Correct outdated comment.
80539
80540 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
80541
80542         Merge from coreutils.
80543
80544         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
80545         value, $ac_cv_search_nanosleep, if it's "none required".
80546
80547 2004-01-14  Paul Eggert  <eggert@twinsun.com>
80548
80549         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
80550         with like-named macro in fnmatch.c.
80551         (EXT): Use an internal constant instead.
80552
80553         Merge fnmatch patches from glibc.
80554         * lib/fnmatch.c (mbsinit): Remove define.
80555         Add libc_hidden_ver (__fnmatch, fnmatch).
80556         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
80557         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
80558
80559 2004-01-14  Karl Berry  <karl@gnu.org>
80560
80561         * config/install-sh: update from automake.
80562
80563 2004-01-13  Karl Berry  <karl@gnu.org>
80564
80565         * config/install-sh: update from automake.
80566
80567 2004-01-09  Karl Berry  <karl@gnu.org>
80568
80569         * config/install-sh: update from automake.
80570
80571 2004-01-05  Karl Berry  <karl@gnu.org>
80572
80573         * config/config.{sub,guess}: update from config.
80574
80575 2003-12-31  Karl Berry  <karl@gnu.org>
80576
80577         * config/depcomp: update from automake.
80578
80579 2003-12-14  Karl Berry  <karl@gnu.org>
80580
80581         * lib/config.charset: update from gettext-runtime.
80582
80583 2003-12-03  Paul Eggert  <eggert@twinsun.com>
80584
80585         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
80586         Bug reported by Alfred M. Szmidt.
80587
80588 2003-12-03  Bruno Haible  <bruno@clisp.org>
80589
80590         * m4/gettext.m4: Upgrade from gettext-0.13.
80591         * m4/po.m4: Upgrade from gettext-0.13.
80592         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
80593         * m4/intmax.m4: New file, from gettext-0.13.
80594         * m4/printf-posix.m4: New file, from gettext-0.13.
80595
80596 2003-11-29  Karl Berry  <karl@gnu.org>
80597
80598         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
80599
80600 2003-11-25  Paul Eggert  <eggert@twinsun.com>
80601             Bruno Haible  <bruno@clisp.org>
80602
80603         * lib/printf-parse.h: Don't include sys/types.h.
80604         (ARG_NONE): New macro.
80605         (char_directive): Change type of *arg_index fields to size_t.
80606         * lib/printf-parse.c: Don't include sys/types.h.
80607         (SSIZE_MAX): Remove macro.
80608         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
80609         Remove unnecessary overflow check.
80610         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
80611         fields.
80612
80613 2003-11-25  Bruno Haible  <bruno@clisp.org>
80614
80615         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
80616
80617 2003-11-25  Bruno Haible  <bruno@clisp.org>
80618
80619         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
80620         gt_TYPE_SSIZE_T.
80621
80622 2003-11-24  Paul Eggert  <eggert@twinsun.com>
80623
80624         * modules/alloca: Remove dependency on xalloc.
80625
80626 2003-11-24  Paul Eggert  <eggert@twinsun.com>
80627
80628         * lib/alloca.c: Remove dependency on xalloc module.
80629         (xalloc_die): Remove.
80630         (memory_full) [!defined emacs]: New macro.
80631         [!defined emacs]: Don't include xalloc.h.
80632         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
80633         address arithmetic overflows.  Change datatypes a bit to avoid
80634         unnecessary casts.
80635
80636 2003-11-22  Jim Meyering  <jim@meyering.net>
80637
80638         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
80639         s/size/size_t/.
80640
80641 2003-11-21  Karl Berry  <karl@gnu.org>
80642
80643         * config/config.{sub,guess}: update from config.
80644
80645 2003-11-18  Karl Berry  <karl@gnu.org>
80646
80647         * config/config.{sub,guess}: update from config.
80648
80649         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
80650
80651 2003-11-17  Paul Eggert  <eggert@twinsun.com>
80652
80653         * README: Mention that S+T cannot overflow if S is the size of
80654         an existing object and T is sufficiently small.
80655
80656 2003-11-17  Jim Meyering  <jim@meyering.net>
80657
80658         On systems without utime and without a utimes function capable of
80659         dealing with a NULL struct utimbuf* argument, this utime replacement
80660         could -- in unusual circumstances -- leak a file descriptor.
80661         * lib/utime.c: Include <unistd.h> and <errno.h>.
80662         (utime_null): Be sure to close `fd' and to preserve errno.
80663         Reported by Geoff Collyer via Arnold Robbins.
80664
80665 2003-11-17  Bruno Haible  <bruno@clisp.org>
80666
80667         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
80668         (Depends-on): Add xsize.
80669
80670 2003-11-17  Bruno Haible  <bruno@clisp.org>
80671
80672         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
80673
80674 2003-11-17  Bruno Haible  <bruno@clisp.org>
80675
80676         * lib/vasnprintf.c (alloca): Remove fallback definition.
80677         (freea): Remove definition.
80678         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
80679         Reported by Paul Eggert.
80680
80681 2003-11-16  Paul Eggert  <eggert@twinsun.com>
80682             Bruno Haible  <bruno@clisp.org>
80683
80684         Protect against address arithmetic overflow.
80685         * lib/printf-args.h: Include stddef.h.
80686         (arguments): Change type of field 'count' to size_t.
80687         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
80688         'unsigned int' where appropriate.
80689         * lib/printf-parse.h: Include sys/types.h.
80690         (char_directive): Change type of *arg_index fields to ssize_t.
80691         (char_directives): Change type of fields 'count', max_*_length to
80692         size_t.
80693         * lib/printf-parse.c: Include sys/types.h and xsize.h.
80694         (SSIZE_MAX): Define fallback value.
80695         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
80696         instead of 'int' where appropriate. Check a_allocated, d_allocated
80697         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
80698         * lib/vasnprintf.c: Include xsize.h.
80699         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
80700         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
80701         overflow. Avoid wraparound when converting a width or precision from
80702         decimal to binary.
80703
80704 2003-11-16  Bruno Haible  <bruno@clisp.org>
80705
80706         Update from GNU gettext.
80707         * lib/printf-parse.c: Generalize to it can be compiled for wide
80708         strings.
80709         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
80710         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
80711         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
80712         SNPRINTF): New macros.
80713         Don't include <alloca.h> if the file is used inside libintl.
80714         (local_wcslen): New function, for Solaris 2.5.1.
80715         (VASNPRINTF): Use it instead of wcslen.
80716
80717 2003-11-16  Bruno Haible  <bruno@clisp.org>
80718
80719         * lib/xsize.h (xmax): New function.
80720         (xsum, xsum3, xsum4): Declare as "pure" functions.
80721
80722 2003-11-12  Paul Eggert  <eggert@twinsun.com>
80723
80724         * modules/xalloc (Files): Undo latest change, since xalloc.h
80725         no longer needs SIZE_MAX or PTRDIFF_MAX.
80726
80727 2003-11-12  Paul Eggert  <eggert@twinsun.com>
80728
80729         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
80730         gl_PTRDIFF_MAX.
80731
80732 2003-11-12  Paul Eggert  <eggert@twinsun.com>
80733
80734         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
80735         "return", to pacify some unknown compiler.  Problem reported
80736         by Joerg Schilling.
80737
80738 2003-11-12  Paul Eggert  <eggert@twinsun.com>
80739
80740         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
80741         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
80742         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
80743         heuristic is just as accurate as far as we know, and it removes a
80744         dependency on size_max.m4 and ptrdiff_max.m4.
80745
80746 2003-11-11  Bruno Haible  <bruno@clisp.org>
80747
80748         * modules/xsize (Files): Add m4/size_max.m4.
80749         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
80750
80751 2003-11-11  Bruno Haible  <bruno@clisp.org>
80752
80753         * m4/size_max.m4: New file.
80754         * m4/ptrdiff_max.m4: New file.
80755         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
80756         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
80757         (gl_XALLOC): Invoke it.
80758
80759 2003-11-11  Bruno Haible  <bruno@clisp.org>
80760
80761         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
80762         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
80763         defined.
80764
80765 2003-11-10  Paul Eggert  <eggert@twinsun.com>
80766
80767         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
80768         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
80769         rejected some allocations of exactly SIZE_MAX - 2 bytes.
80770         From Bruno Haible.
80771         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
80772         not (size_t) -1, since it's defined here.
80773
80774 2003-11-09  Karl Berry  <karl@gnu.org>
80775
80776         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
80777
80778 2003-11-06  Paul Eggert  <eggert@twinsun.com>
80779
80780         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
80781         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
80782         Reject sizes of exactly SIZE_MAX bytes.
80783         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
80784         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
80785
80786 2003-11-05  Bruno Haible  <bruno@clisp.org>
80787
80788         * lib/xsize.h: Include limits.h, to avoid a possible collision with
80789         SIZE_MAX defined in <limits.h> on Solaris.
80790
80791 2003-11-04  Jim Meyering  <jim@meyering.net>
80792
80793         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
80794         variable names, rather than @VAR@.
80795         * modules/poll: Likewise.
80796
80797 2003-11-04  Bruno Haible  <bruno@clisp.org>
80798
80799         * modules/xsize: New file.
80800         * modules/linebreak: Depend on xsize.
80801         * MODULES.html.sh (func_all_modules): Add xsize.
80802
80803 2003-11-04  Bruno Haible  <bruno@clisp.org>
80804
80805         * m4/xsize.m4: New file.
80806
80807 2003-11-04  Bruno Haible  <bruno@clisp.org>
80808
80809         * lib/xsize.h: New file.
80810         * lib/linebreak.c: Include xsize.h.
80811         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
80812         argument for overflow.
80813         Suggested by Paul Eggert.
80814
80815 2003-11-03  Karl Berry  <karl@gnu.org>
80816
80817         * config/config.{guess,sub}: update from config.
80818
80819 2003-11-03  Jim Meyering  <jim@meyering.net>
80820
80821         * modules/userspec (lib_SOURCES): Add userspec.h.
80822         (Include): Add "userspec.h".
80823         Improve description.
80824
80825 2003-11-03  Jim Meyering  <jim@meyering.net>
80826
80827         * lib/userspec.c: Include "userspec.h".
80828         * lib/userspec.h: New file.
80829
80830 2003-11-03  Bruno Haible  <bruno@clisp.org>
80831
80832         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
80833
80834 2003-11-03  Bruno Haible  <bruno@clisp.org>
80835
80836         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
80837         available, to avoid (extremely rare) race condition.
80838         Suggested by Paul Eggert.
80839
80840 2003-11-02  Karl Berry  <karl@gnu.org>
80841
80842         * config/srclist.txt (vasprintf.c): sync broken, sigh.
80843
80844 2003-10-31  Paul Eggert  <eggert@twinsun.com>
80845
80846         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
80847         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
80848         (read_filesystem_list): Set and use me_type_malloced.
80849         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
80850         whatever the type happens to be), for brevity and consistency.
80851         Check for size calculation overflow on Alphas running OSF/1.
80852
80853 2003-10-31  Jim Meyering  <jim@meyering.net>
80854
80855         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
80856
80857         * lib/linebuffer.c: Include <string.h> for declaration of memset.
80858
80859 2003-10-30  Paul Eggert  <eggert@twinsun.com>
80860             Bruno Haible  <bruno@clisp.org>
80861
80862         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
80863         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
80864
80865 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
80866
80867         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
80868         netbsd*-gnu*.  Suggested by Robert Millan.
80869
80870 2003-10-29  Paul Eggert  <eggert@twinsun.com>
80871
80872         * modules/group-member: Depend on stdbool.
80873
80874 2003-10-29  Paul Eggert  <eggert@twinsun.com>
80875
80876         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
80877
80878 2003-10-29  Paul Eggert  <eggert@twinsun.com>
80879
80880         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
80881         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
80882         after the 'gnu' in these cases.  This fixes some bugs in the
80883         previous change, and is based on suggestions by Robert Millan.
80884
80885 2003-10-29  Paul Eggert  <eggert@twinsun.com>
80886
80887         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
80888         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
80889         no longer needed.
80890         * lib/quotearg.c (quotearg_n_options): Use it.
80891         * lib/group-member.c: Include <stdbool.h>.
80892         (free_group_info): Arg is now const *; don't free arg.
80893         (get_group_info): Now returns bool and accepts struct group_info *,
80894         rather than returning a malloc'ed struct group_info *.
80895         All uses changed.  Check for overflow in internal size calculation.
80896
80897         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
80898         rather than xmalloc/xrealloc.
80899         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
80900         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
80901         conformance bug: the old code used a pointer after freeing the
80902         storage that it addressed.
80903         * lib/hash.c (hash_initialize): Simplify the code by using
80904         xalloc_oversized rather than doing it by hand.
80905         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
80906         the buffer preserved.  Use free and xmalloc instead.
80907         * lib/quotearg.c (quotearg_n_options): Likewise.
80908         Use a simpler test for size overflow.  Don't use xalloc_oversized
80909         because unsigned int might be wider than size_t (!); this suggests
80910         that we should switch from unsigned int to size_t for slot numbers.
80911
80912 2003-10-28  Paul Eggert  <eggert@twinsun.com>
80913
80914         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
80915         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
80916         NetBSD kernels.  Requested by Richard Stallman.
80917
80918 2003-10-27  Paul Eggert  <eggert@twinsun.com>
80919
80920         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
80921         to allocate the returned structure.  Do not allocate a subarray,
80922         as x2nrealloc will do that.
80923         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
80924         instead of xnrealloc.
80925         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
80926
80927 2003-10-27  Bruno Haible  <bruno@clisp.org>
80928
80929         * lib/stdbool_.h: Better support for BeOS.
80930
80931 2003-10-26  Paul Eggert  <eggert@twinsun.com>
80932
80933         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
80934         now uses inline.
80935
80936 2003-10-26  Paul Eggert  <eggert@twinsun.com>
80937
80938         * lib/xalloc.h (xalloc_oversized): New static inline function, for
80939         callers that want to do their own size-overflow checking.  Include
80940         <stdbool.h>, since xalloc_oversized returns bool.
80941         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
80942         to use xalloc_oversized.
80943
80944         Add two functions x2realloc, x2nrealloc, for programs that grow
80945         arrays dynamically by doubling their sizes.
80946         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
80947         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
80948         New functions.
80949
80950         Port to C99 semantics for 'inline' of external functions.
80951         Bug reported by Bruno Haible.
80952         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
80953         with the old contents of xnmalloc.
80954         (xnmalloc, xmalloc): Use it.
80955         (xnrealloc_inline): New static inline function,
80956         with the old contents of xnrealloc.
80957         (xnrealloc, xrealloc): Use it.
80958
80959         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
80960         that.
80961
80962 2003-10-26  Karl Berry  <karl@gnu.org>
80963
80964         * config/srclist.txt (COPYING.DOC): no longer available from
80965         /gd/gnuorg; don't know where the ultimate source is.
80966
80967 2003-10-25  Paul Eggert  <eggert@twinsun.com>
80968
80969         Fix several address-calculation bugs in the hash modules,
80970         plus some minor code cleanup.
80971
80972         * lib/hash.h: Include <stdbool.h>, for bool.
80973         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
80974         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
80975         hash_get_n_entries, hash_get_max_bucket_length,
80976         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
80977         hash_rehash): Use size_t rather than unsigned.
80978         * lib/hash.c (struct hash_table, hash_get_n_buckets,
80979         hash_get_n_buckets_used, hash_get_n_entries,
80980         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
80981         hash_get_entries, hash_do_for_each, hash_string, is_prime,
80982         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
80983         Likewise.
80984         (SIZE_MAX): Define if not defined.
80985         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
80986         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
80987         hash_print):
80988         Use const * when possible.
80989         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
80990         (check_tuning): Fix bug: if tuning parameters were very close to
80991         0 or 1, rounding errors could have caused subscript violations.
80992         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
80993         (hash_initialize): Add 'fail:' label
80994         to free table and return NULL, and use it to simplify code.
80995         Use calloc rather than clearing the storage ourself.
80996         (hash_initialize, hash_rehash): Check for arithmetic overflow in
80997         buffer size calculations.
80998         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
80999         Include <stddef.h>, for size_t.
81000         * lib/hash-pjw.c (hash_pjw): Likewise.
81001         Switch to method described by Bruno Haible.
81002         Include <limits.h>, for CHAR_BIT.
81003         (SIZE_BITS): New macro.
81004
81005 2003-10-23  Paul Eggert  <eggert@twinsun.com>
81006
81007         * m4/getline.m4 (AM_FUNC_GETLINE):
81008         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
81009         hosts.  Problem reported by Derek Robert Price in
81010         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
81011         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
81012         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
81013
81014 2003-10-21  Paul Eggert  <eggert@twinsun.com>
81015
81016         * lib/getndelim2.c (getndelim2): When size calculation overflows,
81017         ceiling the allocation at NMAX bytes rather than silently
81018         discarding input bytes before NMAX is reached.  This makes
81019         a difference only if NMAX exceeds SIZE_MAX / 2.
81020
81021         * lib/obstack.c: Merge from glibc.
81022         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
81023         Add libc_hidden_def (_obstack_newchunk).
81024         (_obstack_free) [! defined _LIBC]: Remove.
81025         [defined _LIBC]: Make a strong alias from obstack_free, rather than
81026         a clone of the function body.
81027         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
81028         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
81029
81030         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
81031         glibc.
81032         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
81033         arg to memcpy.
81034
81035         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
81036         (obstack_ptr_grow_fast, obstack_int_grow_fast):
81037         Don't use lvalue casts, as GCC plans to remove support for them
81038         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
81039         was also present in the non-GCC version, indicating that this
81040         code had always been buggy and had never been widely used.
81041         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
81042         Use the fast variant of each macro, rather than copying the
81043         definiens of the fast variant; that way, we'll be more likely to
81044         catch future bugs in the fast variants.
81045
81046 2003-10-20  Bruno Haible  <bruno@clisp.org>
81047
81048         * modules/wait-process: New file.
81049         * MODULES.html.sh (func_all_modules): Add wait-process.
81050
81051 2003-10-20  Bruno Haible  <bruno@clisp.org>
81052
81053         * m4/wait-process.m4: New file.
81054
81055 2003-10-20  Bruno Haible  <bruno@clisp.org>
81056
81057         * lib/wait-process.h: New file, from GNU gettext.
81058         * lib/wait-process.c: New file, from GNU gettext.
81059
81060 2003-10-19  Jim Meyering  <jim@meyering.net>
81061
81062         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
81063         HPUX 10.20.
81064
81065 2003-10-18  Karl Berry  <karl@gnu.org>
81066
81067         * config/config.guess: update from config.
81068
81069 2003-10-16  Paul Eggert  <eggert@twinsun.com>
81070
81071         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
81072         (getgroups): First arg is int, not size_t.
81073         Don't let 'free' mangle errno.
81074
81075 2003-10-16  Paul Eggert  <eggert@twinsun.com>
81076
81077         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
81078
81079 2003-10-16  Karl Berry  <karl@gnu.org>
81080
81081         * config/config.{guess,sub}: update from config.
81082
81083 2003-10-16  Jim Meyering  <jim@meyering.net>
81084
81085         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
81086         memcpy.
81087
81088 2003-10-15  Paul Eggert  <eggert@twinsun.com>
81089
81090         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
81091         (SIZE_MAX): Remove.
81092         (new_exclude, add_exclude_file): Initial size no longer needs to
81093         be a power of 2.
81094         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
81095         our own address arithmetic overflow checking.
81096
81097         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
81098         (fnmatch): Do not alloca more than 2000 wide characters;
81099         instead, use malloc for large buffers.
81100         Check for address arithmetic overflow, and return -1
81101         with errno set to ENOMEM in that case.
81102         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
81103         (NEW_PATTERN): Do not alloca more than 8000 bytes;
81104         instead, return -1.  Check for address arithmetic overflow.
81105
81106 2003-10-14  Paul Eggert  <eggert@twinsun.com>
81107
81108         Handle invalid suffixes and overflow independently, so that
81109         callers can treat them independently as needed.  Fix some bugs in
81110         suffix handling, e.g., "100k@" was not diagnosed as an invalid
81111         suffix for a human-readable blocksize.  The major caller-visible
81112         change is the addition of a new
81113         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
81114         that both overflow and suffix chars were found.
81115
81116         * lib/human.c (humblock): Don't check separately for invalid suffix
81117         char; that is xstrtoumax's job (now that its bug is fixed).
81118         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
81119         INTMAX_MAX]: New macros.
81120         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
81121         TYPE_MAXIMUM): New macros.
81122         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
81123         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
81124         if overflow occurs, as it's what __strtol does and it's more useful
81125         in practice.
81126         (__xstrtol): If __strtol reports some error other than ERANGE,
81127         reflect it to the caller as LONGINT_INVALID.  If it reports
81128         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
81129         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
81130         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
81131         value.
81132         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
81133         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
81134         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
81135         [defined UINTMAX_MAX]: New macros.
81136
81137 2003-10-14  Bruno Haible  <bruno@clisp.org>
81138
81139         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
81140
81141 2003-10-14  Bruno Haible  <bruno@clisp.org>
81142
81143         * m4/sig_atomic_t: New file, from GNU gettext.
81144         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
81145
81146 2003-10-14  Bruno Haible  <bruno@clisp.org>
81147
81148         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
81149         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
81150         Also use volatile where needed.
81151
81152 2003-10-12  Paul Eggert  <eggert@twinsun.com>
81153
81154         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
81155         Change maintainer from Bruno Haible to 'all'.
81156
81157 2003-10-12  Paul Eggert  <eggert@twinsun.com>
81158
81159         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
81160
81161 2003-10-12  Paul Eggert  <eggert@twinsun.com>
81162
81163         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
81164         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
81165         and define in terms of the other primitives.
81166         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
81167         (SIZE_MAX): Define if not already defined.
81168         (array_size_overflow): New function.
81169         (xalloc_die): Abort instead of exiting if 'error' returns.
81170         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
81171         (xmalloc, xrealloc): Use them.
81172         (xcalloc): Check for address arithmetic overflow.
81173         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
81174         a bit faster than strcpy.
81175
81176 2003-10-10  Simon Josefsson  <jas@extundo.com>
81177
81178         * modules/argp (Depends-on): Add restrict and strcase.
81179
81180 2003-10-10  Simon Josefsson  <jas@extundo.com>
81181
81182         * m4/argp.m4: Add AC_C_INLINE.
81183
81184 2003-10-08  Paul Eggert  <eggert@twinsun.com>
81185
81186         Merge getpass from libc, plus a few fixes.
81187
81188         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
81189         Include <stdbool.h>.
81190         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
81191         __fsetlocking to empty.
81192         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
81193         do include <bits/libc-lock.h>.
81194         Do not include <fcntl.h>; not needed.
81195         [_LIBC]: Include <wchar.h>.
81196         (NOTCANCEL_MODE): New macro.
81197         (flockfile, funlockfile) [_LIBC]: New macros.
81198         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
81199         [!_LIBC]: New macros.
81200         (call_fclose): New function.
81201         (getpass): Use it.  Save tty stream separately; this simplifies the
81202         code and makes it more reliable if stdin happens to equal stdout.
81203         Invoke __fsetlocking on tty.
81204         Handle thread cancellation if needed.
81205         Namespace cleanup (use __tcgetattr, __getline).
81206         Use bool for Booleans.
81207         [USE_IN_LIBIO]: Handle wide streams.
81208         [!_LIBC]: Unconditionally do the fseek, since we don't know what
81209         stream might go where.
81210
81211         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
81212         doesn't have to include <stdio.h> before us.
81213         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
81214         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
81215         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
81216         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
81217         if not declared, so that we can use getpass.c code from libc without
81218         rewriting it.
81219         (flockfile, ftrylockfile, funlockfile): New macros.
81220
81221 2003-10-08  Paul Eggert  <eggert@twinsun.com>
81222
81223         * modules/getpass: Depend on stdbool.
81224
81225 2003-10-08  Paul Eggert  <eggert@twinsun.com>
81226
81227         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
81228
81229 2003-10-07  Karl Berry  <karl@gnu.org>
81230
81231         * config/config.{guess,sub}: update from config.
81232
81233 2003-10-06  Jim Meyering  <jim@meyering.net>
81234             Bruno Haible  <bruno@clisp.org>
81235
81236         This lets translators provide better translations for the
81237         "Written by ..." part of --version output.
81238         * lib/version-etc.h: Include stdarg.h.
81239         (version_etc_copyright): Declare as readonly.
81240         (version_etc): Make this function variadic with a NULL-terminated list
81241         of author name strings.
81242         (version_etc_va): New declaration.
81243         * lib/version-etc.c: Include stdarg.h, stdlib.h.
81244         (version_etc_copyright): Declare as readonly.
81245         (version_etc_va): New function. Provide a different translatable string
81246         for each possible number of authors < 10. Abbreviate when there are 10
81247         authors or more.
81248         (version_etc): Make this function variadic. Call version_etc_va.
81249         Suggestion from Gary V. Vaughan.
81250
81251         * lib/long-options.h (parse_long_options): Change prototype: the
81252         authors string is moved to the end and becomes variadic.
81253         * lib/long-options.c: Include stdarg.h.
81254         (parse_long_options): Make this function variadic, too.
81255         Call version_etc_va, not version_etc.
81256
81257 2003-10-06  Bruno Haible  <bruno@clisp.org>
81258
81259         * modules/version-etc-2: Remove file.
81260         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
81261
81262 2003-10-06  Bruno Haible  <bruno@clisp.org>
81263
81264         * modules/fatal-signal: New file.
81265         * MODULES.html.sh (func_all_modules): Add fatal-signal.
81266
81267 2003-10-06  Bruno Haible  <bruno@clisp.org>
81268
81269         * m4/fatal-signal.m4: New file.
81270         * m4/signalblocking.m4: New file, from GNU gettext.
81271
81272 2003-10-06  Bruno Haible  <bruno@clisp.org>
81273
81274         * lib/version-etc-2.h: Remove file.
81275         * lib/version-etc-2.c: Remove file.
81276
81277 2003-10-06  Bruno Haible  <bruno@clisp.org>
81278
81279         * lib/fatal-signal.h: New file, from GNU gettext.
81280         * lib/fatal-signal.c: New file, from GNU gettext.
81281
81282 2003-10-05  Paul Eggert  <eggert@twinsun.com>
81283
81284         * README: Rework advice for preventing empty .o files.
81285         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
81286         not <sys/types.h>.
81287
81288 2003-10-04  Karl Berry  <karl@gnu.org>
81289
81290         * lib/argp*: update from libc.
81291
81292 2003-10-04  Karl Berry  <karl@gnu.org>
81293
81294         * config/config.{guess,sub}: update from config.
81295
81296 2003-10-02  Bruno Haible  <bruno@clisp.org>
81297
81298         * modules/lchown (Include): Add lchown.h.
81299         * modules/time_r (Include): Use "..." syntax.
81300         * modules/xgetdomainname (Include): Add xgetdomainname.h.
81301
81302 2003-10-01  Simon Josefsson  <jas@extundo.com>
81303
81304         * MODULES.html.sh (func_all_modules): Move gethostname from section
81305         'based on' to section 'lacking' POSIX:2001.
81306
81307 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
81308
81309         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
81310         to output mode on the same stream.
81311
81312 2003-09-29  Paul Eggert  <eggert@twinsun.com>
81313
81314         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
81315         Fix arg typo in previous patch.
81316
81317 2003-09-28  Jim Meyering  <jim@meyering.net>
81318
81319         * lib/error.c: Correct cpp indentation.
81320
81321 2003-09-27  Paul Eggert  <eggert@twinsun.com>
81322
81323         * modules/free: New file.
81324
81325 2003-09-27  Paul Eggert  <eggert@twinsun.com>
81326
81327         * m4/free.m4: New file.
81328
81329 2003-09-27  Paul Eggert  <eggert@twinsun.com>
81330
81331         * lib/minmax.h (MIN, MAX)
81332         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
81333         Omit the special code that used __typeof__, since we worry that
81334         it could be more trouble than it's worth.  See:
81335         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
81336         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
81337
81338         * lib/free.c: New file.
81339
81340 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
81341
81342         Trivial fixes to Makefile.am parts of module listings.
81343         * modules/strstr: Append strstr.h to lib_SOURCES.
81344         * modules/strcase: Likewise, for strcase.h.
81345
81346 2003-09-27  Karl Berry  <karl@gnu.org>
81347
81348         * config/mkinstalldirs: update from automake.
81349
81350 2003-09-26  Paul Eggert  <eggert@twinsun.com>
81351
81352         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
81353         (error_tail): Do not loop, reallocating temporary buffer, since
81354         the output cannot contain more wide characters than the input
81355         contains bytes, the size must be big enough already.  This avoids
81356         one potential size overflow calculation.  Check for size overflow
81357         when calculating temporary buffer size.  Free temporary buffer
81358         when done, if it was allocated with malloc; this plugs a memory
81359         leak.  Remove casts from void * to pointers, that are no longer
81360         needed now that we're assuming C89 or better.
81361
81362         Merge error changes from glibc.
81363
81364         * lib/error.c, error.h: Update copyright notice header to match glibc.
81365         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
81366         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
81367         Disable cancellation while printing error.
81368         * lib/error.h: Prepend __ to parameter names.
81369
81370 2003-09-26  Jim Meyering  <jim@meyering.net>
81371
81372         * lib/error.c (error_tail): Move some declarations
81373         into inner scope where the local variables are used.
81374
81375 2003-09-26  Bruno Haible  <bruno@clisp.org>
81376
81377         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
81378         stpncpy().
81379         Don't define stpncpy through config.h; it's now done through stpncpy.h.
81380
81381 2003-09-26  Bruno Haible  <bruno@clisp.org>
81382
81383         * lib/stpncpy.h (gnu_stpncpy): New declaration.
81384         (stpncpy): Define as alias for gnu_stpncpy.
81385         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
81386
81387 2003-09-25  Simon Josefsson  <jas@extundo.com>
81388
81389         * lib/xgetdomainname.h: New file.
81390         * lib/xgetdomainname.c: New file.
81391
81392 2003-09-25  Simon Josefsson  <jas@extundo.com>
81393             Bruno Haible  <bruno@clisp.org>
81394
81395         * modules/getdomainname: New file.
81396         * modules/xgetdomainname: New file.
81397         * MODULES.html.sh (func_all_modules): Add getdomainname,
81398         xgetdomainname.
81399
81400 2003-09-25  Simon Josefsson  <jas@extundo.com>
81401             Bruno Haible  <bruno@clisp.org>
81402
81403         * m4/getdomainname.m4: New file.
81404
81405 2003-09-25  Simon Josefsson  <jas@extundo.com>
81406             Bruno Haible  <bruno@clisp.org>
81407
81408         * lib/getdomainname.h: New file.
81409         * lib/getdomainname.c: New file.
81410
81411 2003-09-25  Karl Berry  <karl@gnu.org>
81412
81413         * lib/argp-fmtstream.c, argp-help.c: update from libc.
81414
81415 2003-09-25  Karl Berry  <karl@gnu.org>
81416
81417         * config/install-sh: update from automake.
81418
81419 2003-09-25  Bruno Haible  <bruno@clisp.org>
81420
81421         * modules/version-etc-2: New file, from modules/version-etc with
81422         modifications.
81423         * MODULES.html.sh (func_all_modules): Add version-etc-2.
81424
81425 2003-09-25  Bruno Haible  <bruno@clisp.org>
81426
81427         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
81428         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
81429
81430 2003-09-24  Simon Josefsson  <jas@extundo.com>
81431
81432         * modules/xgethostname: Add xgethostname.h.
81433
81434 2003-09-24  Paul Eggert  <eggert@twinsun.com>
81435
81436         * lib/linebuffer.c (freebuffer): Don't free the argument, just
81437         the buffer associated with the argument.  Bug reported by
81438         Simon Josefsson.
81439
81440 2003-09-24  Paul Eggert  <eggert@twinsun.com>
81441
81442         * README: Document assumptions that 'int' is at least 32 bits
81443         wide, that integer arithmetic is 2's complement without overflow,
81444         that there are no holes in integer values, that adding sizes of
81445         two nonoverlapping objects can't overflow, and that all-bits-zero
81446         yields scalar zero.  Fix spelling and capitalization typos.
81447
81448 2003-09-19  Karl Berry  <karl@gnu.org>
81449
81450         * lib/argp.h: update from libc.
81451
81452 2003-09-17  Paul Eggert  <eggert@twinsun.com>
81453
81454         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
81455         to avoid spurious warnings like "AC_RUN_IFELSE was called before
81456         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
81457
81458 2003-09-17  Paul Eggert  <eggert@twinsun.com>
81459
81460         * gnulib-tool: Use "test -h", not "test -L", for portability
81461         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
81462         (tags_regexp): Remove, since \| doesn't conform to POSIX.
81463         (sed_extract_prog): Issue s commands one-by-one, rather than
81464         using \| in one s command.
81465
81466 2003-09-16  Paul Eggert  <eggert@twinsun.com>
81467
81468         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
81469         input error, instead of returning NULL the next time we are called
81470         (and therefore losing track of errno).
81471
81472 2003-09-16  Bruno Haible  <bruno@clisp.org>
81473
81474         * gnulib-tool (func_create_testdir): Warn about duplicated
81475         dependencies.
81476
81477 2003-09-15  Paul Eggert  <eggert@twinsun.com>
81478
81479         * modules/argmatch, modules/fatal, modules/obstack,
81480         modules/xalloc, modules/xgethostname: Sort dependencies by
81481         importance, not alphabetically.
81482
81483 2003-09-15  Paul Eggert  <eggert@twinsun.com>
81484
81485         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
81486         fails, so that the caller gets the proper errno.
81487
81488         * lib/readutmp.c (read_utmp): Likewise.
81489         Check for fstat error.  Close stream and free storage
81490         when failing.
81491
81492 2003-09-14  Karl Berry  <karl@gnu.org>
81493
81494         * config/srclist.txt (strdup.c): disable for c89 changes.
81495
81496 2003-09-14  Jim Meyering  <jim@meyering.net>
81497
81498         * lib/getloadavg.c: Correct cpp indentation.
81499         * lib/strdup.c: Likewise.
81500         * lib/vasnprintf.c: Likewise.
81501
81502 2003-09-14  Bruno Haible  <bruno@clisp.org>
81503
81504         * modules/fwriteerror: New file.
81505         * MODULES.html.sh (func_all_modules): Add fwriteerror.
81506
81507 2003-09-14  Bruno Haible  <bruno@clisp.org>
81508
81509         * lib/fwriteerror.h: New file.
81510         * lib/fwriteerror.c: New file.
81511
81512 2003-09-12  Paul Eggert  <eggert@twinsun.com>
81513
81514         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
81515         modules/xgethostname, modules/xalloc: Depend on exit.
81516
81517 2003-09-12  Paul Eggert  <eggert@twinsun.com>
81518
81519         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
81520
81521         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
81522         and AC_MINIX, too, so that their extensions are available.
81523
81524         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
81525         This macro has been superseded by gl_BACKUPFILE.
81526
81527         More patches to assume C89 or better.
81528
81529         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
81530
81531         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
81532         unconditionally.
81533         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
81534         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
81535         Include <string.h>, <stdlib.h> unconditionally.
81536         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
81537         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
81538         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
81539         headers or for string.h.
81540         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
81541         or strtoul.
81542
81543         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
81544         headers.
81545         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
81546         * m4/userspec.m4 (gl_USERSPEC): Likewise.
81547         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
81548         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
81549         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
81550         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
81551         memcpy, memset.
81552         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
81553         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
81554         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
81555         strtol.
81556         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
81557         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
81558         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
81559         strtoul.
81560
81561 2003-09-12  Paul Eggert  <eggert@twinsun.com>
81562
81563         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
81564         * lib/obstack.c [!defined _LIBC]: Likewise.
81565         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
81566         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
81567         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
81568
81569         More changes to assume C89 or better.
81570
81571         * lib/error.c (error_tail): Assume vprintf.
81572
81573         * lib/argmatch.c (getenv): Remove decl.
81574         * lib/progreloc.c (get_full_program_name): Define via prototype.
81575         * lib/setenv.c (clearenv): Likewise.
81576         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
81577         needed.
81578         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
81579         (malloc, memcpy): Remove decls.
81580         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
81581         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
81582         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
81583         (memcpy): Remove macro.
81584         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
81585         (__P): Remove.  All uses removed.
81586         (PTR): Remove.  All uses changed to void *.
81587         (CHAR_BIT, NULL): Remove.
81588         (spaces, zeros, memset_space, memset_zero)
81589         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
81590         Remove.
81591         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
81592         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
81593         Define with prototype.
81594         Remove now-unnecessary prototype decl.
81595         (extra_args_spec): Assume ANSI C.  All uses changed.
81596         (extra_args_spec_iso): Remove.
81597         (my_strftime, emacs_strftimeu): Define via prototype.
81598         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
81599         unconditionally.
81600         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
81601         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
81602         (strtoul, strtol): Remove decls.
81603         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
81604         LONG_MAX): Remove.
81605         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
81606         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
81607         (LOCALE_PARAM_PROTO): New macro.
81608         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
81609         (INTERNAL (strtol), strtol): Define with a prototype.
81610         (PARAMS): Remove.  All uses removed.
81611         * lib/tempname.c: Include <string.h> unconditionally.
81612         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
81613         * lib/xgethostname.c (main): Define with a prototype.
81614         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
81615         Include <stdlib.h> unconditionally.
81616         (calloc, malloc, realloc, free): Remove decls.
81617         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
81618         Include <stdlib.h> unconditionally.  Sort include file names.
81619         (strtod): Remove.
81620         (xstrtod): Define with a prototype.
81621         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
81622         (strtol, strtoul): Remove decls.
81623
81624 2003-09-11  Paul Eggert  <eggert@twinsun.com>
81625
81626         More patches to assume C89 or better.
81627         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
81628         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
81629         string.h, memchr, STDC_HEADERS.
81630
81631 2003-09-11  Paul Eggert  <eggert@twinsun.com>
81632
81633         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
81634         Include <stdlib.h>, <string.h> unconditionally.
81635         Remove now-unnecessary cast to char *.
81636         * lib/strnlen.c: Include <string.h> unconditionally.
81637         * lib/yesno.c (yesno): Define with a prototype.
81638
81639 2003-09-11  Bruno Haible  <bruno@clisp.org>
81640
81641         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
81642
81643 2003-09-10  Jim Meyering  <jim@meyering.net>
81644
81645         * lib/error.c: Correct indentation of cpp directives.
81646
81647 2003-09-10  Bruno Haible  <bruno@clisp.org>
81648
81649         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
81650         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
81651         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
81652         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
81653         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
81654         <stdlib.h> and <string.h> checks.
81655         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
81656         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
81657
81658 2003-09-10  Bruno Haible  <bruno@clisp.org>
81659
81660         * lib/strcspn.c: Include <string.h> unconditionally.
81661         * lib/strpbrk.c: Include <string.h> unconditionally.
81662         * lib/strstr.c: Include <string.h> unconditionally.
81663         * lib/unicodeio.c: Include <string.h> unconditionally.
81664         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
81665         * lib/unsetenv.c: Likewise.
81666         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
81667         * lib/yesno.c: Include <stdlib.h> unconditionally.
81668         (rpmatch): Add prototype.
81669
81670 2003-09-09  Paul Eggert  <eggert@twinsun.com>
81671
81672         More patches to assume C89 or better.
81673         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
81674         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
81675         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
81676         or for string.h.
81677         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
81678         stdlib.h.
81679         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
81680         C headers.
81681         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
81682         string.h.
81683         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
81684         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
81685         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
81686         or for string.h.
81687         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
81688         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
81689         C headers.
81690         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
81691         memcpy.
81692         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
81693         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
81694         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
81695         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
81696         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
81697         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
81698         string.h, free.
81699         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
81700         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
81701         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
81702         C headers, or for string.h.
81703         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
81704         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
81705         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
81706         headers, memory.h, stdlib.h, string.h, strings.h.
81707         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
81708         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
81709         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
81710         strchr.
81711         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
81712         headers, memory.h, string.h.
81713         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
81714         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
81715         free.
81716         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
81717         headers.
81718         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
81719         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
81720         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
81721         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
81722         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
81723
81724 2003-09-09  Paul Eggert  <eggert@twinsun.com>
81725
81726         More K&R removal.
81727
81728         * lib/acosl.c (main): Use a prototype.
81729         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
81730         tanl.c: Likewise.
81731
81732         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
81733
81734         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
81735         (getopt, etopt_long, getopt_long_only, _getopt_internal)
81736         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
81737         with a prototype.
81738         * lib/getopt.c (const): Remove macro.
81739         Include <string.h> unconditionally.
81740         (my_index): Remove; all uses changed to strchr.
81741         (strlen): Remove decl.
81742         (exchange): Remove forward decl; no longer needed.
81743         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
81744         Define with prototype.
81745         * lib/getopt1.c (const): Remove macro.
81746         (getopt_long, getopt_long_only, main): Define with prototype.
81747
81748         * lib/getugroups.c: Include <string.h> unconditionally.
81749
81750         * lib/getusershell.c: Include <stdlib.h> unconditionally.
81751         (getusershell, setusershell, endusershell, readname, main):
81752         Define with prototypes.
81753
81754         * lib/group-member.c: Include group-member.h first.
81755         Include <stdlib.h> unconditionally.
81756
81757         * lib/hard-locale.c: Include hard-locale.h first.
81758         Include <stdlib.h>, <string.h> unconditionally.
81759
81760         * lib/hash.c (free, malloc): Remove decls.
81761         Include <stdlib.h> unconditionally.
81762
81763         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
81764         (getenv): Do not declare.
81765
81766         * lib/idcache.c: Include <string.h> unconditionally.
81767
81768         * lib/long-options.c: Include long-options.h first, to test interface.
81769         Include <stdlib.h> unconditionally.
81770
81771         * lib/makepath.c: Include makepath.h first, to test interface.
81772         Include <stdlib.h> and <string.h> unconditionally.
81773
81774         * lib/linebuffer.c: Include <stdlib.h>.
81775         (free): Remove decl.
81776
81777         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
81778         stddef.h. rpl_malloc returns void *, not char *.
81779         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
81780         prototype.
81781
81782         * lib/md5.h: Include <limits.h> unconditionally.
81783         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
81784         (__P): Remove; all uses removed.
81785         * lib/md5.c: Include "md5.h" first.
81786         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
81787         md5_buffer, md5_process_bytes, md5_process_block):
81788         Define with prototypes.
81789         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
81790         * lib/sha.c: Include "sha.h" first.
81791         Include <stdlib.h>, <string.h> unconditionally.
81792
81793         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
81794         * lib/memcmp.c (__ptr_t): Likewise.
81795         * lib/memrchr.c (__ptr_t): Likewise.
81796         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
81797         Include <string.h> unconditionally.
81798         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
81799         * lib/memchr.c: Include <stdlib.h> unconditionally.
81800         * lib/memchr.c (LONG_MAX): Remove.
81801         * lib/memrchr.c (LONG_MAX): Likewise.
81802         * lib/memchr.c (__memchr): Define via a prototype.
81803         * lib/memrchr.c (__memrchr): Likewise.
81804         * lib/memcmp.c (__P): Remove, and remove all uses.
81805         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
81806         Remove forward decls; no longer needed.
81807         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
81808         Use types required by C89 in prototype.
81809
81810         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
81811         * lib/savedir.c: Likewise.
81812         * lib/mkdir.c (free): Remove decl.
81813         * lib/rmdir.c (rmdir): Define with a prototype.
81814         * lib/savedir.c: Include savedir.h first, to test interface.
81815
81816         * lib/mktime.c (STDC_HEADERS): Remove.
81817         Include <stdlib.h>, <string.h> unconditionally.
81818
81819         * lib/modechange.c: Include <stdlib.h> unconditionally.
81820         (malloc): Remove decl.
81821
81822         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
81823         (free): Remove decl.
81824
81825         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
81826         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
81827         (This type really should be intptr_t, but that's a C99ism.)
81828         (_obstack_memcpy): Remove: all uses changed to memcpy.
81829         Include <string.h> unconditionally.
81830         (struct obstack): Assume __STDC__ for types of members
81831         chunkfun, freefun, extra_arg.
81832         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
81833         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
81834         obstack_begin, obstack_specify_allocation,
81835         obstack_specify_allocation_with_arg, obstack_chunkfun,
81836         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
81837         Remove unprototyped decls and the macros that use them.
81838         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
81839         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
81840         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
81841         (defined __STDC__ && __STDC__)]:
81842         Remove nonprototyped code.
81843         Include <stdlib.h> unconditionally.
81844         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
81845         _obstack_allocated_p, _obstack_free, obstack_free,
81846         _obstack_memory_used, print_and_abort):
81847         Define using prototypes.
81848         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
81849         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
81850         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
81851         obstack_next_free, obstack_object_size, obstack_room) [0]:
81852         Remove unused, unprototyped code.
81853
81854         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
81855
81856         * lib/physmem.c (physmem_total, physmem_available, main): Define
81857         with prototypes.
81858
81859         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
81860         (main): Define with a prototype.
81861
81862         * lib/posixver.c (getenv): Remove decl.
81863
81864         * lib/putenv.c (malloc): Returns void *, not char *.
81865         Include <string.h> unconditionally.
81866         (strchr, memcpy, NULL): Do not define.
81867
81868         * lib/readtokens.c: Include readtokens.h first, to test interface.
81869         Include <stdlib.h>, <string.h> unconditionally.
81870         (init_tokenbuffer): Define with a prototype.
81871
81872         * lib/regex.c (PARAMS): Remove.  All uses removed.
81873         All uses of _RE_ARGS removed, too.
81874         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
81875         unconditionally.
81876         (bzero): Assume memset exists.
81877         (memcmp, memcpy, NULL): Remove.
81878         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
81879         char, or assignments to local vars of type signed char.
81880         (init_syntax_once, PREFIX(extract_number_and_incr),
81881         PREFIX(print_partial_compiled_pattern),
81882         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
81883         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
81884         PREFIX(regex_grow_registers), PREFIX(regex_compile),
81885         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
81886         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
81887         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
81888         wcs_compile_range, byte_compile_range, truncate_wchar,
81889         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
81890         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
81891         count_mbs_length, wcs_re_match_2_internal,
81892         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
81893         PREFIX(alt_match_null_string_p),
81894         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
81895         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
81896         regfree, PREFIX(extract_number)): Define with prototype.  Remove
81897         now-unnecessary declaration, if any.
81898         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
81899         regcomp, regexec):
81900         Remove now-unnecessary casts among pointer types.
81901         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
81902
81903         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
81904         (free): Remove decl.
81905
81906         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
81907
81908         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
81909         (free): Remove decl.
81910
81911         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
81912         * lib/xgetcwd.c: Likewise.
81913
81914         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
81915         (free): Remove decl.
81916
81917         * lib/strchrnul.c (strchrnul): Define with a prototype.
81918         Fix bug: c_in was not converted to char before searching.
81919
81920         The following changes are not K&R related:
81921
81922         * lib/group-member.h: Include <sys/types.h>, so that this file is
81923         self-contained.
81924         * lib/makepath.h: Likewise.
81925
81926         * lib/getusershell.c (readname, default_index, line_size, readname):
81927         Use size_t, not int, for sizes.
81928         (readname): If the size overflows, report an error instead of
81929         looping forever.
81930
81931 2003-09-09  Paul Eggert  <eggert@twinsun.com>
81932
81933         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
81934         libc.
81935
81936 2003-09-09  Paul Eggert  <eggert@twinsun.com>
81937
81938         * README: New section: portability guidelines.
81939
81940 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
81941
81942         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
81943         C89 spec.
81944
81945 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
81946
81947         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
81948
81949 2003-09-08  Paul Eggert  <eggert@twinsun.com>
81950
81951         Assume C89 or better; remove K&R cruft.
81952         A few of these changes were first proposed by Derek Robert Price
81953         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
81954
81955         * lib/addext.c: Include <string.h> unconditionally.
81956         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
81957         Don't declare getenv or malloc.
81958
81959         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
81960         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
81961         (NULL): Remove.
81962         (find_stack_direction, alloca): Use prototypes.
81963
81964         * lib/atexit.c (atexit): Define using a prototype.
81965
81966         * lib/basename.c, dirname.c, stripslash.c:
81967         Include <string.h> unconditionally.
81968
81969         * lib/bcopy.c: Include <stddef.h>.
81970         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
81971
81972         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
81973
81974         * lib/error.h (error, error_at_line, error_print_progname)
81975         [! (defined (__STDC__) && __STDC__)]: Remove decls.
81976         * lib/error.c: Include error.h first, to check interface.
81977         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
81978         (VA_START): Remove; all uses changeed to va_start.
81979         (exit, strerror): Remove decls.
81980         (error_print_progname): Prototype uncondionally.
81981         Don't include <errno.h>; no longer needed.
81982         (private_strerror): Remove.
81983         (error_tail): Always define.
81984         (error, error_at_line): Assume C89 or better; always use prototypes.
81985         * lib/fatal.c: Include "fatal.h" first, to test interface.
81986         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
81987         (VA_START): Remove; all uses changed to va_start.
81988         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
81989         this case.
81990         (exit): Remove decl.
81991         (fatal): Prototype unconditionally.  Assume va_start works.
81992         Abort at end, to pacify gcc.
81993
81994         * lib/euidaccess.c (main): Define with a prototype.
81995
81996         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
81997
81998         * lib/exitfail.c: Include <stdlib.h> unconditionally.
81999
82000         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
82001         prototypes.
82002         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
82003         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
82004         (getenv): Remove decl.
82005         (fnmatch): Define using a prototype.
82006         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
82007         (FCT): Define using a prototype.
82008
82009         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
82010
82011         * lib/gethostname.c: Include <stddef.h>.
82012         (gethostname): Define with prototype.  Length is size_t, not int.
82013
82014 2003-09-08  Paul Eggert  <eggert@twinsun.com>
82015
82016         Assume C89 or better; remove K&R cruft.
82017         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
82018         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
82019         string.h, getenv, malloc.
82020         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
82021         headers.
82022         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
82023         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
82024         do not check for strerror.
82025         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
82026         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
82027         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
82028         do not check for doprnt or vprintf.
82029         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
82030         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
82031
82032 2003-09-08  Paul Eggert  <eggert@twinsun.com>
82033
82034         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
82035         getversion.c should have been removed then, but was accidentally
82036         preserved.
82037
82038         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
82039         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
82040
82041 2003-09-08  Karl Berry  <karl@gnu.org>
82042
82043         * config/config.sub, config.guess, srclistvars.sh: update from savannah
82044                 config, forget about prep.
82045
82046         * config/depcomp, missing: update from automake.
82047
82048 2003-09-07  Paul Eggert  <eggert@twinsun.com>
82049
82050         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
82051         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
82052
82053 2003-09-07  Paul Eggert  <eggert@twinsun.com>
82054
82055         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
82056         copy_tm_result.  Bug reported by Simon Josefsson in
82057         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
82058
82059 2003-09-06  Paul Eggert  <eggert@twinsun.com>
82060
82061         * m4/time_r.m4: New file.
82062         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
82063         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
82064         is. Check for timegm declaration.
82065         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
82066         Do not check for gmtime_r.
82067         Replace mktime if __mktime_internal does not exist and if mktime
82068         hasn't been replaced already.
82069
82070 2003-09-06  Paul Eggert  <eggert@twinsun.com>
82071
82072         * lib/time_r.c, lib/time_r.h: New files.
82073
82074         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
82075         __localtime_r.
82076         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
82077         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
82078
82079         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
82080         __gmtime_r.
82081         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
82082         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
82083         Include <time_r.h>.
82084
82085         * lib/timegm.c: Switch to glibc implementation, with the following
82086         changes:
82087         [defined HAVE_CONFIG_H]: Include <config.h>.
82088         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
82089         (__mktime_internal) [!defined _LIBC]: New decl.
82090         (__gmtime_r) [!defined _LIBC]: New macro and function.
82091         (timegm): Use a prototype, since gnulib assumes C89.
82092         Do not bother declaring tmp to be const, as it's not really usefu.
82093         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
82094         (timegm): Declare only if HAVE_DECL_TIMEGM.
82095
82096 2003-09-06  Paul Eggert  <eggert@twinsun.com>
82097
82098         * MODULES.html.sh (func_all_modules): Add time_r.
82099         * modules/time_r: New file.
82100         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
82101         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
82102
82103 2003-09-03  Paul Eggert  <eggert@twinsun.com>
82104
82105         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
82106         Bug reported by Lute Kamstra in
82107         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
82108
82109         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
82110         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
82111         course with correspondingly smaller numbers for tomorrow and
82112         yesterday.  From Tadayoshi Funaba.  Originally installed into
82113         sh-utils on 1999-08-07, but the patch got lost (I guess during the
82114         coreutils merge?).
82115
82116 2003-08-31  Simon Josefsson  <jas@extundo.com>
82117
82118         * modules/timegm: New file.
82119         * MODULES.html.sh (func_all_modules): Add timegm.
82120
82121 2003-08-31  Simon Josefsson  <jas@extundo.com>
82122
82123         * m4/timegm.m4: New file.
82124
82125 2003-08-31  Simon Josefsson  <jas@extundo.com>
82126
82127         * lib/timegm.h: New file.
82128         * lib/timegm.c: New file.  Based on
82129         wget-1.8.2/src/http.c:mktime_from_utc.
82130
82131 2003-08-31  Karl Berry  <karl@gnu.org>
82132
82133         * lib/argp.h: update from libc.
82134
82135 2003-08-28  Bruno Haible  <bruno@clisp.org>
82136
82137         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
82138         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
82139         followed by '#define fnmatch fnmatch_posix' gives an error.
82140
82141 2003-08-28  Bruno Haible  <bruno@clisp.org>
82142
82143         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
82144         warning on QNX, which defines O_BINARY to 000000.
82145
82146 2003-08-27  Jim Meyering  <jim@meyering.net>
82147
82148         * m4/mkstemp.m4: Require that the system mkstemp be able to create
82149         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
82150         would fail after 32.  Reported by Danny Levinson.  Details here:
82151         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
82152
82153 2003-08-24  Bruno Haible  <bruno@clisp.org>
82154
82155         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
82156         MSVC7 <stdio.h> is included later.
82157
82158 2003-08-22  Simon Josefsson  <jas@extundo.com>
82159
82160         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
82161
82162 2003-08-20  Karl Berry  <karl@gnu.org>
82163
82164         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
82165
82166 2003-08-20  Bruno Haible  <bruno@clisp.org>
82167
82168         * modules/progname: New file.
82169         * MODULES.html.sh (func_all_modules): Add progname.
82170
82171 2003-08-20  Bruno Haible  <bruno@clisp.org>
82172
82173         * lib/progname.h: New file, from GNU gettext.
82174         * lib/progname.c: New file, from GNU gettext.
82175         * lib/progreloc.c: New file, from GNU gettext.
82176
82177 2003-08-19  Jim Meyering  <jim@meyering.net>
82178
82179         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
82180         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
82181
82182 2003-08-19  Bruno Haible  <bruno@clisp.org>
82183
82184         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
82185         more.
82186
82187 2003-08-19  Bruno Haible  <bruno@clisp.org>
82188
82189         * lib/xstrdup.c: Assume <string.h> exists.
82190
82191 2003-08-18  Paul Eggert  <eggert@twinsun.com>
82192
82193         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
82194         in makefile rules.
82195
82196 2003-08-18  Jim Meyering  <jim@meyering.net>
82197
82198         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
82199         * m4/lib-ld.m4: Likewise.
82200
82201 2003-08-18  Jim Meyering  <jim@meyering.net>
82202
82203         * lib/setenv.h: Indent nested cpp directive.
82204         * lib/vasnprintf.c: Remove trailing blanks.
82205
82206 2003-08-17  Simon Josefsson  <jas@extundo.com>
82207
82208         * modules/xstrndup: New file.
82209         * MODULES.html.sh (func_all_modules): Add xstrndup.
82210
82211 2003-08-17  Simon Josefsson  <jas@extundo.com>
82212
82213         * modules/argp: Fix autoconf macro name. Add more dependencies.
82214
82215 2003-08-17  Simon Josefsson  <jas@extundo.com>
82216
82217         * m4/xstrndup.m4: New file.
82218
82219 2003-08-17  Simon Josefsson  <jas@extundo.com>
82220
82221         * m4/argp.m4: New file.
82222
82223 2003-08-17  Simon Josefsson  <jas@extundo.com>
82224             Bruno Haible  <bruno@clisp.org>
82225
82226         * lib/xstrndup.h: New file.
82227         * lib/xstrndup.c: New file.
82228
82229 2003-08-17  Bruno Haible  <bruno@clisp.org>
82230
82231         * modules/strndup (Files, Include): Add lib/strndup.h.
82232
82233 2003-08-17  Bruno Haible  <bruno@clisp.org>
82234
82235         * modules/euidaccess (Files): Add lib/euidaccess.h.
82236
82237 2003-08-17  Bruno Haible  <bruno@clisp.org>
82238
82239         * lib/strndup.h: New file.
82240
82241 2003-08-17  Bruno Haible  <bruno@clisp.org>
82242
82243         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
82244         like AC_GNU_SOURCE.
82245         * modules/extensions (configure.ac): Comment out the invocation of
82246         gl_USE_SYSTEM_EXTENSIONS.
82247
82248 2003-08-16  Paul Eggert  <eggert@twinsun.com>
82249
82250         Merges from coreutils, etc.
82251         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
82252         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
82253         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
82254         fixing a typo.
82255         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
82256         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
82257
82258 2003-08-16  Paul Eggert  <eggert@twinsun.com>
82259
82260         Document merge from coreutils.
82261         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
82262         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
82263         * modules/utime: Add m4/utimes-null.m4.
82264
82265 2003-08-16  Paul Eggert  <eggert@twinsun.com>
82266
82267         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
82268         space, undoing this 2003-08-12 change:
82269         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
82270
82271 2003-08-16  Paul Eggert  <eggert@twinsun.com>
82272
82273         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
82274         strtoul.c from libc, undoing this 2003-08-12 change:
82275         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
82276
82277 2003-08-16  Jim Meyering  <jim@meyering.net>
82278
82279         Merges from coreutils.
82280         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
82281         prefix.  Adjust cache variables similarly.  Create 500 rather than
82282         just 300 files, to exercise bug on Darwin6.5, too.
82283         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
82284         $missing_dir.
82285         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
82286         AM_SYS_POSIX_TERMIOS.
82287         Reported by mkc@mathdogs.com.
82288         Also change use of $am_cv_sys_posix_termios
82289         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
82290         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
82291         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
82292         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
82293         in /proc/mounts until it finds one with matching device number.  This
82294         is unnecessary when the FILE argument *is* a mount point.  No stat call
82295         is necessary in that case.  So, disable the statvfs-testing code on
82296         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
82297         as RedHat bug# 84846.
82298         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
82299         to 1MB, so as not to render systems with no stack size limit (e.g.,
82300         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
82301         Include <unistd.h>.  On some systems,
82302         it is required for the definition of _SC_PAGESIZE.
82303
82304 2003-08-16  Jim Meyering  <jim@meyering.net>
82305
82306         Merge from coreutils.
82307         * lib/xstrtoimax.c: #else #if -> #elif.
82308         * lib/xstrtoumax.c: Likewise.
82309
82310 2003-08-16  Jim Meyering  <jim@meyering.net>
82311
82312         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
82313         * m4/utimes.m4: Removed.
82314         * m4/utimes-null.m4: Renamed from utimes.m4.
82315
82316         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
82317         to 1MB, so as not to render systems with no stack size limit (e.g.,
82318         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
82319         Include <unistd.h>.  On some systems,
82320         it is required for the definition of _SC_PAGESIZE.
82321
82322 2003-08-16  Jim Meyering  <jim@meyering.net>
82323         and Paul Eggert  <eggert@cs.ucla.edu>
82324
82325         Merges from coreutils, etc.
82326
82327         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
82328         using the latest version from cvs.  This avoids problems with #line
82329         directives using a vendor (Sun) compiler.
82330         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
82331         Don't set GETGROUPS_LIB here; now it's
82332         done via getgroups.m4's wrapper function.
82333         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
82334         rather than just in sh-util/configure.in, so that the
82335         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
82336         same.
82337         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
82338         AC_FUNC_GETLOADAVG where to find getloadavg.c.
82339         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
82340         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
82341         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
82342         Remove code that is now done by the newly-required macros.
82343         Append $(EXEEXT) to DF_PROG.
82344         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
82345         Do not invoke or require the following here,
82346         since prereq.m4 or some gnulib .m4 now does this for us:
82347         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
82348         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
82349         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
82350         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
82351         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
82352         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
82353         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
82354         AC_FUNC_OBSTACK.
82355         Do not replace the following functions, as this is now the job
82356         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
82357         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
82358         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
82359         atexit getpass, strdup, getpagesize.
82360         Replace 'raise'.
82361         Do not check for the following functions, as this is now the job
82362         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
82363         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
82364         setregid.
82365         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
82366         Check for sys/sysctl.h.
82367         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
82368         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
82369         of checking for ssize_t ourselves.
82370
82371         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
82372         Require every macro that gnulib/modules/* suggests for us.
82373         (jm_PREREQ_ADDEXT): New macro.
82374         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
82375         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
82376
82377         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
82378         (gl_PHYSMEM): Use it.
82379         Also check for `table' function.
82380         Check for new headers and functions.
82381         Add check for sys/sysmp.h.
82382         With suggestions from Kaveh Ghazi.
82383         Ignore headers that are present but cannot be compiled.  This
82384         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
82385         C 5.4.
82386
82387 2003-08-15  Paul Eggert  <eggert@twinsun.com>
82388
82389         Document merge from coreutils.
82390         * modules/userspec: Depend on posixver.
82391         * modules/strftime: Depend on tzset.
82392
82393 2003-08-15  Paul Eggert  <eggert@twinsun.com>
82394
82395         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
82396         rather than tab, after '#' in shell-script copyright notices.
82397         Suggested by Bruno Haible.
82398
82399 2003-08-15  Paul Eggert  <eggert@twinsun.com>
82400
82401         * config/srclist-update: Use three spaces, rather than tab, after '#'
82402         in shell-script copyright notices.  Suggested by Bruno Haible.
82403         Remove unnecessary parenthesization in regular expression.
82404
82405 2003-08-15  Jim Meyering  <jim@meyering.net>
82406
82407         Merge from coreutils.
82408         * lib/xgethostname.c: Include <stdlib.h>.
82409         (xghostname): Don't exit for anything other than memory-related
82410         failure; just return NULL.
82411         * lib/userspec.c: Include "posixver.h".
82412         (parse_user_spec): Accept `.' as a separator only
82413         in pre-POSIX-200112 mode.
82414         * lib/strtoimax.c: Use #elif rather than #else #if.
82415         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
82416         Remove function, now that we can rely on a working tzset function.
82417         [!_LIBC]: Ensure that the required autoconf test has been run.
82418         [!defined _NL_CURRENT && HAVE_STRFTIME]:
82419         Use underlying_strftime for %r.
82420         * lib/sha.c: Merge in some clean-up and optimization changes from
82421         glibc.
82422         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
82423         Ensure that it is a multiple of 64.
82424         Rearrange loop exit tests so as to avoid performing an
82425         additional fread after encountering an error or EOF.
82426         * lib/realloc.c: Update copyright date.
82427
82428 2003-08-15  Jim Meyering  <jim@meyering.net>
82429         and Paul Eggert  <eggert@twinsun.com>
82430
82431         Merge from coreutils.
82432         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
82433         member but strut utmpx does not.  Needed for AIX 4.3.3.
82434         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
82435
82436 2003-08-15  Jim Meyering  <jim@meyering.net>
82437         and Paul Eggert  <eggert@cs.ucla.edu>
82438
82439         Merges from coreutils, etc.
82440         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
82441         Require gl_FUNC_TZSET_CLOBBER.
82442         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
82443         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
82444         members.
82445
82446 2003-08-14  Paul Eggert  <eggert@twinsun.com>
82447
82448         Help the merge from coreutils.
82449         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
82450         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
82451         * m4/tzset.m4: Use it too.
82452
82453 2003-08-14  Paul Eggert  <eggert@twinsun.com>
82454
82455         * modules/tzset: New file.
82456
82457 2003-08-14  Jim Meyering  <jim@meyering.net>
82458
82459         Merges from coreutils.
82460         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
82461         variable names, rather than @FNMATCH_H@.
82462         * modules/alloca: Likewise for $(ALLOCA_H).
82463
82464         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
82465         the three copies of the literal target, `fnmatch.h'.
82466         * modules/alloca (alloca.h): Likewise.
82467
82468 2003-08-14  Jim Meyering  <jim@meyering.net>
82469
82470         Merge from coreutils.
82471         * m4/tzset.m4: New file.
82472         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
82473         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
82474         otherwise, AIX 5.1 systems would end up using the latter.
82475         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
82476         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
82477         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
82478         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
82479
82480 2003-08-14  Jim Meyering  <jim@meyering.net>
82481
82482         Merge from coreutils.
82483         * lib/obstack.h: Whitespace changes.
82484         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
82485         and xcalloc return values.
82486         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
82487         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
82488         hang on OSF/1 5.1 for DIR on both local and remote file systems.
82489         Reported by (and fix confirmed by) Nelson H. F. Beebe.
82490         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
82491         error from mntctl.
82492         Use mntctl's return value to drive the entry-processing loop, since
82493         we can't rely on the value of the vmt_length member in the last
82494         entry.  On some systems doing so could result in exhausting
82495         virtual memory.  Based in part on a patch from Mike Jetzer.
82496
82497 2003-08-14  Jim Meyering  <jim@meyering.net>
82498         and Paul Eggert  <eggert@twinsun.com>
82499
82500         Merges from coreutils, plus other fixes.
82501         * lib/physmem.c: Merge in portability changes from gcc/libiberty
82502         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
82503         for credits and details.  Thanks to Kaveh Ghazi for helping
82504         to keep these files in sync.
82505         (ARRAY_SIZE): Define it.
82506         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
82507         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
82508         (memcasecmp): Don't assume size_t fits in unsigned int.
82509         Remove casts and duplicate code.
82510         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
82511         (memcpy): Remove definition.
82512         Merge in some clean-up and optimization changes from glibc.
82513         [BLOCKSIZE]: Move definition to top of file.
82514         Ensure that it is a multiple of 64.
82515         Rearrange loop exit tests so as to avoid performing an
82516         additional fread after encountering an error or EOF.
82517         * lib/md5.h (md5_uintptr): Define.
82518         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
82519         return to the initial working directory.  Preserve errno
82520         for caller.
82521         * lib/idcache.c: Include "xalloc.h".
82522         (xmalloc, xrealloc): Remove decls.
82523         (getuser): Remove casts no longer required in C89.
82524         * lib/human.c: Include stdio.h, for sprintf.
82525         * lib/group-member.c: Include "xalloc.h".
82526         (xmalloc, xrealloc): Remove decls.
82527         (get_group_info): Remove casts no longer required in C89.
82528         * lib/getusershell.c (readname): Remove casts no longer required in
82529         C89.
82530         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
82531         * lib/getline.c: Whitespace fix, from coreutils.
82532
82533 2003-08-13  Paul Eggert  <eggert@twinsun.com>
82534
82535         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
82536         Check for isascii.
82537
82538         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
82539         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
82540         Undo previous (whitespace-only) change.
82541
82542 2003-08-13  Paul Eggert  <eggert@twinsun.com>
82543
82544         * lib/exclude.c: Include <ctype.h>
82545         (IN_CTYPE_DOMAIN): New macro.
82546         (is_space): New fn.
82547         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
82548         and empty lines.
82549
82550         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
82551         Undo previous (whitespace-only) change.
82552
82553 2003-08-13  Paul Eggert  <eggert@twinsun.com>
82554
82555         * config/srclist-update: Change update back to the old behavior,
82556         leaving whitespace alone.  Use one 'sed' command rather than a
82557         pipeline.
82558         (fixlicense): Now a variable, not a function.
82559         (remove_trailing_blanks): Remove.
82560         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
82561         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
82562         Undo previous (whitespace-only) change.
82563
82564 2003-08-12  Paul Eggert  <eggert@twinsun.com>
82565
82566         Merge from coreutils.
82567         * modules/euidaccess: Add lib_SOURCES, include for new
82568         file euidaccess.h
82569
82570 2003-08-12  Paul Eggert  <eggert@twinsun.com>
82571
82572         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
82573         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
82574         Normalize leading white space and remove trailing white space.
82575
82576         Merge from coreutils
82577         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
82578
82579         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
82580         0.12.1.  These files are now being upgraded automatically by
82581         ../config/srclist-update.
82582
82583 2003-08-12  Paul Eggert  <eggert@twinsun.com>
82584
82585         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
82586         Normalize leading white space and remove trailing white space.
82587         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
82588         notice, as per ../config/srclist-update.
82589
82590         Merge from coreutils.
82591         * lib/euidaccess.h: New file.
82592         * lib/euidaccess.c: Include it.
82593         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
82594         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
82595         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
82596
82597 2003-08-12  Paul Eggert  <eggert@twinsun.com>
82598
82599         * config/srclist-update: Add copyright notice.
82600         (remove_id_lines, remove_trailing_blanks): New constants.
82601         (fixfile): Use them to normalize spacing a bit in copied files.
82602         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
82603         Normalize leading white space and remove trailing white space.
82604
82605         * config/texinfo.tex: Sync with texinfo.
82606
82607         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
82608         strtoul.c from libc, to merge coreutils whitespace changes.
82609
82610         * config/srclist.txt: Get the following m4 files from gettext:
82611         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
82612         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
82613         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
82614         wint_t.m4.
82615
82616 2003-08-12  Karl Berry  <karl@gnu.org>
82617
82618         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
82619         been made.
82620
82621 2003-08-11  Paul Eggert  <eggert@twinsun.com>
82622
82623         * modules/gnu-source, m4/gnu-source.m4:
82624         Remove; we're assuming Autoconf 2.54 or later now.
82625         Suggested by Bruno Haible.
82626         * MODULES.html.sh (func_all_modules): Remove gnu-source.
82627
82628 2003-08-11  Bruno Haible  <bruno@clisp.org>
82629
82630         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
82631
82632 2003-08-11  Bruno Haible  <bruno@clisp.org>
82633
82634         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
82635         (vasnprintf): Use it instead of wcslen.
82636
82637 2003-08-11  Bruno Haible  <bruno@clisp.org>
82638
82639         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
82640         value to ensure that _Bool promotes to int. Use #define for _Bool when
82641         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
82642
82643 2003-08-10  Karl Berry  <karl@gnu.org>
82644
82645         * lib/regex.h: update from libc (whitespace fix).
82646
82647 2003-08-09  Paul Eggert  <eggert@twinsun.com>
82648
82649         Merge some files from coreutils.  These changes were
82650         originally made by Jim Meyering.
82651         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
82652         many older Unixes require this.
82653         * lib/alloca.c (alloca): Remove cast to argument of free;
82654         no longer needed in C89.
82655         * lib/alloca_.h, regex.h: Fix white space to match
82656         what GNU indent does.
82657
82658 2003-08-09  Paul Eggert  <eggert@twinsun.com>
82659
82660         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
82661         apparently Emacs's Unicode mode got confused before my 2003-08-05
82662         checkin.
82663
82664 2003-08-08  Paul Eggert  <eggert@twinsun.com>
82665
82666         * m4/extensions.m4: New file.
82667         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
82668         Require gl_USE_SYSTEM_EXTENSIONS.
82669         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
82670         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
82671
82672 2003-08-08  Paul Eggert  <eggert@twinsun.com>
82673
82674         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
82675         * modules/extensions, modules/gnu-source: New files.
82676         * modules/timespec, modules/unlocked-io: Depend on extensions.
82677
82678 2003-08-07  Paul Eggert  <eggert@twinsun.com>
82679
82680         * modules/restrict: New file.
82681         * MODULES.html.sh (func_all_modules): Add restrict.
82682         * modules/regex: Depend on restrict.
82683
82684 2003-08-07  Paul Eggert  <eggert@twinsun.com>
82685
82686         * m4/restrict.m4: New file.
82687         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
82688
82689 2003-08-07  Bruno Haible  <bruno@clisp.org>
82690
82691         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
82692         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
82693
82694 2003-08-07  Bruno Haible  <bruno@clisp.org>
82695
82696         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
82697         makes the module 'getndelim2' compatible with the module 'getline'.
82698
82699 2003-08-05  Paul Eggert  <eggert@twinsun.com>
82700
82701         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
82702         byte with "\201" to avoid glitches when editing that source file
82703         with multi-gnome-terminal.
82704
82705 2003-08-05  Paul Eggert  <eggert@twinsun.com>
82706
82707         * lib/bumpalloc.h: Remove.
82708
82709 2003-08-05  Paul Eggert  <eggert@twinsun.com>
82710
82711         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
82712         * modules/bumpalloc: Remove.
82713
82714 2003-08-04  Paul Eggert  <eggert@twinsun.com>
82715
82716         * lib/getloadavg.c: Change copyright notice and spacing to conform to
82717         GNU coding style.
82718
82719         Merge from coreutils.
82720         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
82721         1. From glibc.
82722         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
82723         from Karl Berry, implemented by Jim Meyering.
82724         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
82725         from Dmitry V. Levin.
82726         Remove anachronistic cast of xrealloc.
82727         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
82728         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
82729         type. Otherwise, it wouldn't compile with at least /bin/cc on
82730         ymp-cray-unicos9.0.2.X.
82731         Combine two mostly-identical uses of alloca into one.
82732         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
82733
82734 2003-08-04  Dave Love  <d.love@dl.ac.uk>
82735
82736         [From Emacs.]
82737
82738         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
82739         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
82740         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
82741         obsolete NLIST_NAME_UNION.
82742         [__GNU__]: Undef BSD and FSCALE.
82743         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
82744
82745 2003-08-03  Paul Eggert  <eggert@twinsun.com>
82746
82747         * lib/stdbool_.h (_Bool): Make it signed char, instead of
82748         an enum type, so that it's guaranteed to promote to int.  See:
82749         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
82750
82751 2003-08-03  Karl Berry  <karl@gnu.org>
82752
82753         * config/depcomp: update from automake.
82754
82755 2003-07-31  Paul Eggert  <eggert@twinsun.com>
82756
82757         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
82758         (strerror): Don't assume that a printable int fits in 14 bytes.
82759
82760 2003-07-31  Bruno Haible  <bruno@clisp.org>
82761
82762         * modules/getpass-gnu: New file.
82763         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
82764
82765 2003-07-31  Bruno Haible  <bruno@clisp.org>
82766
82767         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
82768
82769 2003-07-24  Karl Berry  <karl@gnu.org>
82770
82771         * config/missing: update from automake.
82772
82773 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
82774             Bruno Haible  <bruno@clisp.org>
82775
82776         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
82777         * lib/getline.c (getline, getdelim): Likewise.
82778         Remove _GNU_SOURCE define; now it's defined in config.h through
82779         m4/getline.m4.
82780
82781 2003-07-23  Karl Berry  <karl@gnu.org>
82782
82783         * config/config.sub: update from prep.
82784
82785 2003-07-22  Paul Eggert  <eggert@twinsun.com>
82786
82787         * modules/xalloc (Depends-on): Add exitfail.
82788         * modules/xmemcoll: Likewise.
82789
82790 2003-07-22  Paul Eggert  <eggert@twinsun.com>
82791
82792         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
82793         over-parenthesization in macros.
82794
82795         Sync with coreutils.
82796
82797         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
82798         required by C99.
82799
82800         Use `exit_failure' for xalloc and xmemcoll instead of their own
82801         private exit-failure variables.
82802         * lib/xalloc.h (xalloc_exit_failure): Remove.
82803         * lib/xmalloc.c: Likewise.  Include exitfail.h.
82804         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
82805         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
82806         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
82807         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
82808
82809 2003-07-20  Jim Meyering  <jim@meyering.net>
82810
82811         * modules/closeout (Depends-on): Add exitfail.
82812         Suggestion from Bruno Haible.
82813
82814 2003-07-19  Karl Berry  <karl@gnu.org>
82815
82816         * config/config.sub: update from prep.
82817
82818 2003-07-18  Paul Eggert  <eggert@twinsun.com>
82819
82820         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
82821         Remove.
82822         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
82823         to test that it can stand by itself.  Include "exitfail.h".
82824         Clients should set exit_failure instead.
82825         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
82826
82827 2003-07-18  Bruno Haible  <bruno@clisp.org>
82828
82829         * modules/getndelim2: New file.
82830         * modules/getline: Share files with module getndelim2.
82831         * modules/getnline: Depend on getndelim2 instead of sharing files with
82832         it. Add getnline.c to lib_SOURCES.
82833         * MODULES.html.sh (func_all_modules): Add getndelim2.
82834
82835 2003-07-18  Bruno Haible  <bruno@clisp.org>
82836
82837         * m4/getndelim2.m4: New file.
82838         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
82839         invoke gl_PREREQ_GETNDELIM2.
82840         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
82841         gl_PREREQ_GETNDELIM2.
82842         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
82843         gl_GETNDELIM2.
82844
82845 2003-07-18  Bruno Haible  <bruno@clisp.org>
82846
82847         * lib/getndelim2.h: New file.
82848         * lib/getndelim2.c: Make into a module of its own. Include config.h,
82849         getndelim2.h.
82850         (getndelim2): Make non-static. Change return type to ssize_t.
82851         * lib/getline.h: Change argument names.
82852         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
82853         * lib/getnline.c: Include getndelim2.h.
82854
82855 2003-07-18  Andreas Schwab  <schwab@suse.de>
82856
82857         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
82858
82859 2003-07-17  Karl Berry  <karl@gnu.org>
82860
82861         * config/config.sub: update from prep.
82862
82863 2003-07-17  Bruno Haible  <bruno@clisp.org>
82864
82865         * modules/getnline: New file.
82866         * modules/getline: Add lib/getndelim2.c to source file list.
82867         * MODULES.html.sh (func_all_modules): Add getnline.
82868
82869 2003-07-17  Bruno Haible  <bruno@clisp.org>
82870
82871         * m4/getnline.m4: New file.
82872
82873 2003-07-17  Bruno Haible  <bruno@clisp.org>
82874
82875         * m4/Makefile.am.in: Remove file.
82876         * m4/Makefile.am: Remove file.
82877         * m4/Makefile.in: Remove file.
82878
82879 2003-07-17  Bruno Haible  <bruno@clisp.org>
82880
82881         * lib/getnline.h: New file.
82882         * lib/getnline.c: New file.
82883         * lib/getndelim2.c: New file, extracted from getline.c.
82884         (getndelim2): Renamed from getdelim2, with added nmax argument.
82885         * lib/getline.c: Include getndelim2.c.
82886         (getdelim2): Moved out to getndelim2.c.
82887         (getline, getdelim): Update.
82888
82889 2003-07-17  Bruno Haible  <bruno@clisp.org>
82890
82891         * lib/Makefile.am: Remove file.
82892         * lib/Makefile.in: Remove file.
82893
82894 2003-07-17  Bruno Haible  <bruno@clisp.org>
82895
82896         * configure.in: Remove file.
82897         * Makefile.in: Remove file.
82898
82899 2003-07-17  Bruno Haible  <bruno@clisp.org>
82900
82901         * MODULES.html.sh: Put the </BODY> right before </HTML>.
82902
82903 2003-07-16  Karl Berry  <karl@gnu.org>
82904
82905         * config/srclist-update: was running fixlicense twice, which caused
82906                 texinfo.tex to be nullified for some reason.  Simplify,
82907                 $gplsrc is no longer needed as far as I can see?
82908
82909 2003-07-16  Jim Meyering  <jim@meyering.net>
82910
82911         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
82912
82913 2003-07-15  Paul Eggert  <eggert@twinsun.com>
82914
82915         * config/srclist.txt: Get the following files from gettext-runtime/intl
82916         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
82917         ref-del.sin.  From Bruno Haible.
82918         * config/srclist-update (fixfile): Change grep pattern again, since the
82919         previous fix didn't work (there was another trailing $).  Use
82920         '[$]' to escape the $s.
82921
82922 2003-07-15  Karl Berry  <karl@gnu.org>
82923
82924         * lib/vasnprintf.c: update from gettext.
82925
82926 2003-07-15  Karl Berry  <karl@gnu.org>
82927
82928         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
82929         gets expanded when surrounded by '$'.
82930
82931 2003-07-15  Jim Meyering  <jim@meyering.net>
82932
82933         * modules/save-cwd: Don't depend on error.  From Derek Price.
82934
82935 2003-07-15  Jim Meyering  <jim@meyering.net>
82936
82937         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
82938
82939 2003-07-14  Simon Josefsson  <jas@extundo.com>
82940
82941         * modules/mempcpy: New file.
82942         * MODULES.html.sh (func_all_modules): Add mempcpy.
82943
82944 2003-07-14  Simon Josefsson  <jas@extundo.com>
82945
82946         * m4/mempcpy.m4: New file.
82947
82948 2003-07-14  Simon Josefsson  <jas@extundo.com>
82949
82950         * lib/mempcpy.h: New file.
82951         * lib/mempcpy.c: New file.
82952
82953 2003-07-14  Paul Eggert  <eggert@twinsun.com>
82954
82955         * modules/getdate, modules/posixtm: Depend on mktime.
82956
82957 2003-07-14  Paul Eggert  <eggert@twinsun.com>
82958
82959         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
82960         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
82961         unicodeio.c, unicodeio.h, unlocked-io.h:
82962         Switch from LGPL to GPL.
82963
82964 2003-07-14  Paul Eggert  <eggert@twinsun.com>
82965
82966         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
82967         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
82968         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
82969         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
82970         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
82971         updated automatically by ../config/srclist-update.  This changes
82972         their license from LPGL to GPL.
82973
82974 2003-07-14  Paul Eggert  <eggert@twinsun.com>
82975
82976         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
82977         assumed to refer to the root of the most recent stable gettext version.
82978         * config/srclistvars.sh: Add defaults for eggert.
82979         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
82980         Match "This program" as well as "The program".  This is needed
82981         for gettext.
82982
82983 2003-07-14  Jim Meyering  <jim@meyering.net>
82984
82985         Don't emit diagnostics.  Let callers do that.
82986         * lib/save-cwd.c: Don't include "error.h".
82987         (save_cwd): Don't call error.  Ensure that errno is valid
82988         when returning nonzero.
82989
82990         * lib/save-cwd.h (restore_cwd): Update prototype.
82991         * lib/save-cwd.c (restore_cwd): Remove two parameters.
82992         Simplify.  Don't call error upon failure.  Let callers do that.
82993         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
82994         when auditing is enabled.  But don't bother updating the #if.
82995
82996 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
82997
82998         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
82999         it breaks C++ compilation.
83000         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
83001
83002 2003-07-10  Simon Josefsson  <jas@extundo.com>
83003
83004         * modules/strchrnul (Makefile.am): Add strchrnul.h.
83005
83006 2003-07-10  Jim Meyering  <jim@meyering.net>
83007
83008         * m4/clock_time.m4: Remove trailing blank.
83009         * m4/intmax_t.m4: Likewise.
83010
83011 2003-07-10  Jim Meyering  <jim@meyering.net>
83012
83013         * lib/vasnprintf.c: Remove trailing blanks.
83014         Make cpp indentation consistent.
83015
83016 2003-07-09  Paul Eggert  <eggert@twinsun.com>
83017
83018         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
83019         posixver.c, strftime.c, strnlen.c, strverscmp.c:
83020         Switch from LGPL to GPL.
83021
83022 2003-07-09  Paul Eggert  <eggert@twinsun.com>
83023
83024         * config/srclist.txt: Sort sublists.  Add
83025         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
83026         that differ from gnulib for one reason or another; we'd like this list
83027         to be smaller but for now let's document what we have.
83028
83029 2003-07-08  Paul Eggert  <eggert@twinsun.com>
83030
83031         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
83032         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
83033         and sweeter "eval x=$x".
83034         * config/srclist.txt: Get lib/argp* from glibc.
83035
83036 2003-07-07  Paul Eggert  <eggert@twinsun.com>
83037
83038         * lib/mktime.c: Fix some boundary cases and remove need for floating
83039         point.
83040
83041         Issue a compile-time diagnostic if time_t is floating point, or if
83042         two's complement arithmetic is not in effect, or if arithmetic
83043         right shift does not propagate the sign.  These assumptions were
83044         all in the original code but they weren't checked.
83045
83046         (TIME_T_MIDPOINT, verify): New macros.
83047         (__isleap): Remove; it has integer overflow problems.
83048         (leapyear): New function, without those problems.
83049         (ydhms_tm_diff): Remove; splitting into two parts.
83050         (ydhms_diff): New function, containing the arithmetic part of
83051         the old ydhms_tm_diff function.  Issue a compile-time
83052         diagnostic if we are not using C99 integer division.
83053         Avoid casts when possible.
83054         (guess_time_tm): New function, containing the checking part of
83055         the old ydhms_tm_diff function.  Return the new value, rather than
83056         the difference between it and the old.  Accept a new argument T
83057         so that *T specifies the old value.  Check for overflow in the result.
83058
83059         (__mktime_internal): Use a time_t offset, not a long int offset.
83060         This undoes the 2003-06-04 change, which is no longer needed now
83061         that we have better overflow checking.
83062         (localtime_offset): Likewise.
83063
83064         (__mktime_internal): Avoid harmful overflow on hosts where time_t
83065         and long are 64-bit but int is only 32-bit.
83066         (ydhms_diff): Use long int to store year1 and yday1.
83067         Issue a compile-time diagnostic if long int is not wide enough.
83068
83069         (__mktime_internal): Use long int to store adjusted year and yday.
83070         Use plain C rather than preprocessor commands, if that doesn't
83071         affect efficiency.
83072         Check for overflow (and try to repair) after each probe
83073         rather than checking only at the very end.  This avoids some bugs
83074         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
83075         does not equal GMT offset at maximum time).
83076         Use integer to check for overflow rather than floating point; this
83077         is more portable to non-IEEE hosts, and is a tad faster.
83078         When we detect that we are oscillating between two values,
83079         don't check whether tm_isdst has the requested value, since
83080         we already know the answer.  When tm_isdst has the wrong value,
83081         use a different heuristic to find the right one, based on the
83082         extreme values actually observed in practice in tz2003a,
83083         rather than the (overly optimistic) "previous 3 calendar quarters".
83084
83085         (not_equal_tm, print_tm, check_result): Use "const T" rather than
83086         "T const" to accommodate glibc style.
83087         (check_result): Use less-confusing report format.  "long" -> "long int.
83088         (main): Likewise.
83089         Don't loop if the iteration overflows time_t.
83090         Allow a negative step in the iteration.
83091
83092 2003-07-06  Karl Berry  <karl@gnu.org>
83093
83094         * config/depcomp: update from automake.
83095         * config/config.sub: update from prep.
83096
83097 2003-07-03  Karl Berry  <karl@gnu.org>
83098
83099         * config/config.guess: update from prep.
83100
83101 2003-07-01  Paul Eggert  <eggert@twinsun.com>
83102
83103         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
83104         xreadlink.c now includes it unconditionally.
83105
83106 2003-07-01  Paul Eggert  <eggert@twinsun.com>
83107
83108         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
83109         having it depend on HAVE_SYS_TYPES_H.
83110
83111 2003-07-01  Bruno Haible  <bruno@clisp.org>
83112
83113         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
83114         <sys/types.h> should be sufficient.
83115         Reported by Paul Eggert.
83116
83117 2003-06-26  Karl Berry  <karl@gnu.org>
83118
83119         * config/depcomp: update from automake.
83120
83121 2003-06-26  Bruno Haible  <bruno@clisp.org>
83122
83123         * modules/human: Depend on module stdbool.
83124
83125 2003-06-25  Bruno Haible  <bruno@clisp.org>
83126
83127         * modules/readlink: New file.
83128         * modules/xreadlink: Depend on it.
83129         * MODULES.html.sh (func_all_modules): Add readlink.
83130
83131 2003-06-25  Bruno Haible  <bruno@clisp.org>
83132
83133         * m4/readlink.m4: New file.
83134
83135 2003-06-25  Bruno Haible  <bruno@clisp.org>
83136
83137         * lib/readlink.c: New file.
83138
83139 2003-06-22  Karl Berry  <karl@gnu.org>
83140
83141         * config/srclist.txt: update mkinstalldirs from automake.
83142         * config/mkinstalldirs: update.
83143
83144 2003-06-22  Bruno Haible  <bruno@clisp.org>
83145
83146         Portability to mingw32.
83147         * m4/ssize_t.m4: New file, from GNU gettext.
83148         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
83149         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
83150
83151 2003-06-22  Bruno Haible  <bruno@clisp.org>
83152
83153         * modules/safe-read: Add m4/ssize_t.m4.
83154         * modules/xreadlink: Add m4/ssize_t.m4.
83155
83156 2003-06-20  Bruno Haible  <bruno@clisp.org>
83157
83158         Assume C89, so PARAMS isn't needed.
83159         * lib/unicodeio.h (PARAMS): Remove.
83160         * lib/unicodeio.c: Don't use PARAMS.
83161
83162 2003-06-18  Karl Berry  <karl@gnu.org>
83163
83164         * config/config.{guess,sub}: update from prep.
83165
83166 2003-06-18  Jim Meyering  <jim@meyering.net>
83167
83168         Merge changes from coreutils.
83169         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
83170         Remove explicit declarations of xmalloc and realloc.
83171         Include xalloc.h.
83172         (read_utmp): Remove anachronistic cast of xmalloc.
83173
83174 2003-06-17  Paul Eggert  <eggert@twinsun.com>
83175
83176         Assume C89, so PARAMS isn't needed.
83177         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
83178         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
83179         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
83180         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
83181         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
83182         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
83183         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
83184         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
83185         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
83186         lib/xstrtod.h, lib/xstrtol.h: Likewise.
83187         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
83188         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
83189         no longer needed. Anyway, config.h should always be included before any
83190         other file.
83191
83192 2003-06-11  Simon Josefsson  <jas@extundo.com>
83193
83194         * modules/sysexits: New file.
83195         * MODULES.html.sh (func_all_modules): Add sysexits.
83196
83197 2003-06-11  Simon Josefsson  <jas@extundo.com>
83198
83199         * lib/sysexit_.h: New file.
83200
83201 2003-06-11  Derek Price  <derek@ximbiot.com>
83202
83203         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
83204         necessary.
83205
83206 2003-06-11  Bruno Haible  <bruno@clisp.org>
83207
83208         * m4/sysexits.m4: New file.
83209
83210 2003-06-10  Simon Josefsson  <jas@extundo.com>
83211
83212         * lib/argp.h: New file, from glibc.
83213         * lib/argp-ba.c: New file, from glibc.
83214         * lib/argp-eexst.c: New file, from glibc.
83215         * lib/argp-fmtstream.c: New file, from glibc.
83216         * lib/argp-fmtstream.h: New file, from glibc.
83217         * lib/argp-fs-xinl.c: New file, from glibc.
83218         * lib/argp-help.c: New file, from glibc.
83219         * lib/argp-namefrob.h: New file, from glibc.
83220         * lib/argp-parse.c: New file, from glibc.
83221         * lib/argp-pv.c: New file, from glibc.
83222         * lib/argp-pvh.c: New file, from glibc.
83223         * lib/argp-xinl.c: New file, from glibc.
83224
83225 2003-06-10  Simon Josefsson  <jas@extundo.com>
83226
83227         * modules/strchrnul: New file.
83228
83229 2003-06-10  Simon Josefsson  <jas@extundo.com>
83230
83231         * modules/argp: New file.
83232
83233 2003-06-10  Simon Josefsson  <jas@extundo.com>
83234
83235         * m4/strchrnul.m4: New file.
83236
83237 2003-06-10  Simon Josefsson  <jas@extundo.com>
83238
83239         * lib/strchrnul.h: New file.
83240         * lib/strchrnul.c: New file.
83241
83242 2003-06-10  Bruno Haible  <bruno@clisp.org>
83243
83244         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
83245
83246 2003-06-07  Karl Berry  <karl@gnu.org>
83247
83248         * config/config.{guess,sub}: update from prep.
83249
83250 2003-06-07  Jim Meyering  <jim@meyering.net>
83251
83252         * modules/strtod: Use $(...) notation, not @...@ for
83253         AC_REPLACE'd variables.
83254         * modules/localcharset: Likewise.
83255
83256 2003-06-07  Jim Meyering  <jim@meyering.net>
83257
83258         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
83259         in place of my name in the copyright comment.
83260         Remove definition and uses of __P.
83261
83262         From coreutils.
83263         * lib/stat.c: Don't declare xmalloc explicitly.
83264         Instead, include "xalloc.h".
83265         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
83266         xrealloc, and xcalloc return values.
83267         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
83268         Improve comment.
83269         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
83270
83271 2003-06-07  Bruno Haible  <bruno@clisp.org>
83272
83273         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
83274         avoid AC_CONFIG_LINKS.
83275         * modules/fnmatch (Makefile.am): Use explicit creation rule for
83276         fnmatch.h, to avoid AC_CONFIG_LINKS.
83277         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
83278
83279 2003-06-07  Bruno Haible  <bruno@clisp.org>
83280
83281         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
83282         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
83283         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
83284         directory.
83285         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
83286         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
83287         directory.
83288
83289 2003-06-06  Jim Meyering  <jim@meyering.net>
83290
83291         Merge from coreutils.
83292         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
83293         Consolidate declarations and initializations of *_base* locals.
83294
83295         Merge from coreutils.
83296         This avoids a core dump on systems without GNU putenv,
83297         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
83298         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
83299         (unsetenv): New static function, from GNU libc.
83300         (rpl_putenv): Use it.
83301
83302         * lib/modechange.c: Remove trailing blanks.
83303
83304         Merge from coreutils.
83305         * lib/fsusage.c: Remove declaration of statfs.
83306         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
83307
83308         * lib/posixtm.c: Include <stdbool.h> unconditionally.
83309
83310 2003-06-06  Jim Meyering  <jim@meyering.net>
83311
83312         * lib/stdbool_.h: Renamed from stdbool.h.in.
83313
83314 2003-06-06  Jim Meyering  <jim@meyering.net>
83315             Bruno Haible  <bruno@clisp.org>
83316
83317         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
83318         Adjust Makefile.am snippet not to redirect directly to target.
83319         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
83320
83321 2003-06-05  Paul Eggert  <eggert@twinsun.com>
83322
83323         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
83324         mismatch, look in future quarters as well as past.  This fixes a
83325         bug when processing fall-backwards gaps immediately after a long
83326         period of daylight-saving time.
83327
83328         * lib/mktime.c: Assume freestanding C89 or better.
83329         (HAVE_LIMITS_H): Remove.  Assume it's 1.
83330         (__P): Remove; not used.
83331         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
83332         (mktime, not_equal_tm, print_tm, check_result,
83333         main): Use prototypes.  Use const * where appropriate.
83334         (main): Fix typo in testing code that uncovered by above changes.
83335         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
83336
83337 2003-06-04  Paul Eggert  <eggert@twinsun.com>
83338
83339         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
83340         locale.h, localeconv.  This merges changes from coreutils.
83341
83342         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
83343         It can be removed after the next Autoconf is released.
83344         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
83345         needed.
83346
83347 2003-06-04  Paul Eggert  <eggert@twinsun.com>
83348
83349         * lib/mktime.c: Fix Debian bug 177940
83350         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
83351         (localtime_offset): Now long int, not time_t, because we want it
83352         to be guaranteed to be signed.  All uses changed.
83353         (__mktime_internal): If overflow would occur when adding offset,
83354         don't add it.
83355
83356         Merge 'human' changes from coreutils.  Rewrite to support
83357         locale-specific notations like thousands separators.
83358         * lib/human.c: Simplify authorship notice.
83359         Include human.h immediately after config.h.
83360         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
83361         <limits.h>: Do not include, since human.h does.
83362         (SIZE_MAX, UINTMAX_MAX): New macros.
83363         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
83364         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
83365         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
83366         (power_letter): Renamed from suffixes.
83367         (generate_suffix_backwards): Remove.
83368         (adjust_value): Now takes int style (because of human.h changes)
83369         and long double value (for greater precision on some platforms).
83370         (group_number): New function.
83371         (human_readable): Use it.  Use integer options, not enum.
83372         Put the options before the sizes in the arg list.
83373         Support all the new options.
83374         The old human_readable function has been removed;
83375         use inttostr.h instead.
83376         (human_readable, default_block_size, humblock):
83377         Use uintmax_t, not int, for block sizes.
83378         (human_readable_inexact, block_size_types): Remove.
83379         (block_size_opts): New constant.
83380         (human_options): Renamed from human_block_size, with new signature
83381         that allows block sizes up to UINTMAX_MAX.  All callers changed.
83382         * lib/human.h: Add copyright and authorship notice.
83383         Include <limits.h> and <stdbool.h> unconditionally.
83384         (PARAMS): Remove.  All uses removed.
83385         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
83386         (enum human_inexact_style): Remove tag; now a nameless enum.
83387         (human_floor, human_ceiling, human_round_to_even): Now have
83388         values 2, 0, 1 rather than -1, 1, 0.
83389         (human_group_digits, human_suppress_point_zero, human_autoscale,
83390         human_base_1024, human_SI, human_B): New constants.
83391         (human_readable_inexact, human_block_size): Remove.
83392         (human_readable): Size args are now uintmax_t, not int.
83393         (human_options): New decl.
83394
83395         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
83396         unnecessary now that we assume C89 or better.  This change
83397         imported from coreutils.
83398
83399         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
83400         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
83401         in the 2003-05-30 sync from glibc.
83402
83403         .h files should stand alone, but we shouldn't include <sys/types.h>
83404         if we can get away with just <stddef.h>.
83405
83406         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
83407         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
83408         rather than <sys/types.h>, as we merely need size_t.
83409         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
83410         to get size_t.
83411         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
83412         Include <stdio.h>, to get FILE.
83413         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
83414         memcasecmp.h has included <stddef.h> and all we need is size_t.
83415         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
83416         our interface, instead of including <sys/types.h>
83417
83418 2003-06-04  Paul Eggert  <eggert@twinsun.com>
83419
83420         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
83421         now, as glibc mktime is buggy on non-glibc systems.
83422
83423 2003-06-03  Karl Berry  <karl@gnu.org>
83424
83425         * config/config.sub: update from prep.
83426
83427 2003-06-02  Paul Eggert  <eggert@twinsun.com>
83428
83429         [from coreutils]
83430         Fix some minor time-related bugs with POSIX time arguments.
83431         Some valid time stamps were being rejected (notably -1, and
83432         time stamps before 1900 on 64-bit hosts).  And some invalid
83433         time stamps were being accepted, e.g. September 31.
83434
83435         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
83436         that we can return (time_t) -1 successfully.
83437         * lib/posixtm.c: Likewise.
83438         [HAVE_STDBOOL_H]: Include <stdbool.h>.
83439         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
83440         (t): Remove static var.
83441         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
83442         of static var.  All uses changed.
83443         (year): Do not reject years before 1900; they can occur with
83444         64-bit time_t.
83445         (posix_time_parse): Do not check for out-of-range components;
83446         that is now the caller's responsibility, since our checks were
83447         only approximations.
83448         (posixtime): Use mktime to check for out-of-range components,
83449         since it knows them exactly.
83450         If mktime returns (time_t) -1, check whether an error actually occurred
83451         by invoking localtime on -1.
83452         (main) [TEST_POSIXTIME]: Check for input data errors, and report
83453         posixtime failures better.
83454         Improve the test data (in comments only).
83455
83456 2003-06-02  Karl Berry  <karl@gnu.org>
83457
83458         * config/mkinstalldirs (version): new variable.
83459         (--version): new option.
83460         (usage): improve message.
83461
83462 2003-05-30  Karl Berry  <karl@gnu.org>
83463
83464         * lib/mktime.c: update from libc.
83465
83466 2003-05-30  Bruno Haible  <bruno@clisp.org>
83467
83468         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
83469         * config/config.rpath: Upgrade to gettext-0.12.1.
83470
83471 2003-05-30  Bruno Haible  <bruno@clisp.org>
83472
83473         * m4/gettext.m4: Upgrade to gettext-0.12.1.
83474         * m4/nls.m4: New file, from gettext-0.12.1.
83475         * m4/po.m4: New file, from gettext-0.12.1.
83476         * m4/progtest.m4: Upgrade to gettext-0.12.1.
83477
83478 2003-05-30  Bruno Haible  <bruno@clisp.org>
83479
83480         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
83481         * lib/localcharset.h: Likewise.
83482         * lib/localcharset.c: Likewise.
83483
83484 2003-05-29  Karl Berry  <karl@gnu.org>
83485
83486         * config/config.rpath: update from gettext.
83487
83488 2003-05-28  Paul Eggert  <eggert@twinsun.com>
83489
83490         Assume the headers required for C89 freestanding compilers.
83491         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
83492         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
83493         * m4/human.m4 (gl_HUMAN): Likewise.
83494         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
83495         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
83496         * m4/userspec.m4 (gl_USERSPEC): Likewise.
83497         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
83498         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
83499         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
83500
83501 2003-05-28  Paul Eggert  <eggert@twinsun.com>
83502
83503         Assume the headers required for C89 freestanding compilers.
83504         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
83505         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
83506         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
83507         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
83508         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
83509         define, since <limits.h> is guaranteed to do that.
83510         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
83511         * lib/exclude.c: Include <stdbool.h> unconditionally.
83512         * lib/tempname.c: Include <stddef.h> unconditionally.
83513         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
83514         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
83515         <stddef.h> does that.
83516         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
83517         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
83518         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
83519         needed.
83520         * lib/xstrtol.c: Likewise.
83521         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
83522         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
83523
83524         * lib/addext.c (addext): Use assignment rather than cast, to avoid
83525         warnings on some platforms.
83526
83527         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
83528         arbitrarily.
83529
83530 2003-05-26  Jim Meyering  <jim@meyering.net>
83531
83532         Merge in a change from coreutils:
83533         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
83534         that is guaranteed to be `no'.  Use `no_such_member' to indicate
83535         that condition, rather than `-1' which is slightly misleading.
83536         Change the name of the cache variable to have the gl_ prefix.
83537         Prompted by a patch from Richard Dawe for DJGPP.
83538
83539 2003-05-24  Karl Berry  <karl@gnu.org>
83540
83541         * config/config.guess: update from prep.
83542
83543 2003-05-22  Karl Berry  <karl@gnu.org>
83544
83545         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
83546
83547 2003-05-20  Karl Berry  <karl@gnu.org>
83548
83549         * config/config.guess: update from prep.
83550
83551 2003-05-18  Karl Berry  <karl@gnu.org>
83552
83553         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
83554         might actually be set by the user.
83555
83556         * config/depcomp, install-sh, mdate-sh: update from automake.
83557
83558 2003-05-17  Bruno Haible  <bruno@clisp.org>
83559
83560         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
83561         invalid expansion for AC_EGREP_CPP.
83562         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
83563         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
83564         Suggested by Akim Demaille <akim@epita.fr> in
83565         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
83566
83567 2003-05-12  Jim Meyering  <jim@meyering.net>
83568
83569         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
83570         the space-padded-by-default conversion specifiers, %e, %k, %l.
83571
83572 2003-05-12  Bruno Haible  <bruno@clisp.org>
83573
83574         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
83575         the string is longer than 4 KB.
83576
83577 2003-05-11  Karl Berry  <karl@gnu.org>
83578
83579         * config/config.{guess,sub}: update from prep.
83580
83581 2003-05-09  Bruno Haible  <bruno@clisp.org>
83582
83583         * modules/error: Add m4/strerror_r.m4 to file list.
83584
83585 2003-05-03  Bruno Haible  <bruno@clisp.org>
83586
83587         Upgrade to Unicode-4.0.
83588         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
83589         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
83590         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
83591         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
83592         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
83593         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
83594         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
83595         Change width of U+E0100..U+E01EF from 1 to 0.
83596
83597 2003-04-25  Jim Meyering  <jim@meyering.net>
83598
83599         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
83600         of type size_t, not int.
83601
83602 2003-04-25  Bruno Haible  <bruno@clisp.org>
83603
83604         * lib/copy-file.c: Include <stddef.h>, for size_t.
83605
83606 2003-04-21  Paul Eggert  <eggert@twinsun.com>
83607
83608         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
83609         code which expansion is under static control.  Patch imported from
83610         Akim Demaille's patch to Bison; see
83611         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
83612
83613 2003-04-14  Bruno Haible  <bruno@clisp.org>
83614
83615         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
83616
83617 2003-04-11  Jim Meyering  <jim@meyering.net>
83618
83619         Merge changes from Coreutils.
83620
83621         2003-03-22  Jim Meyering  <jim@meyering.net>
83622
83623         * lib/strftime.c (widen): Cast alloca return value to proper type.
83624
83625         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
83626
83627         From GNU libc.
83628         * lib/strftime.c (my_strftime): Handle very large width
83629         specifications for numeric values correctly.  Improve checks for
83630         overflow.
83631
83632         2003-01-19  Jim Meyering  <jim@meyering.net>
83633
83634         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
83635         definitions.
83636         (nl_get_alt_digit) [! defined my_strftime]: Define.
83637         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
83638         _nl_get_alt_digit and _nl_get_walt_digit.
83639
83640         * lib/strftime.c (my_strftime): Merge in locale-related changes from
83641         libc. These changes have no effect outside of _LIBC.
83642
83643 2003-04-10  Bruno Haible  <bruno@clisp.org>
83644
83645         * modules/findprog: New file.
83646         * MODULES.html.sh (func_all_modules): Add it.
83647
83648 2003-04-10  Bruno Haible  <bruno@clisp.org>
83649
83650         * m4/findprog.m4: New file.
83651         * m4/eaccess.m4: New file.
83652
83653 2003-04-10  Bruno Haible  <bruno@clisp.org>
83654
83655         * lib/findprog.h: New file, from GNU gettext.
83656         * lib/findprog.c: New file, from GNU gettext.
83657
83658 2003-04-05  Jim Meyering  <jim@meyering.net>
83659
83660         Merge changes from Coreutils.
83661
83662         * lib/exclude.h (PARAMS): Remove definition and uses.
83663         * lib/exclude.c: Remove uses of `PARAMS'.
83664
83665         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
83666         Add test-cases for DOS filenames. Declare program_name.
83667         (main): Set up program_name.  Patch by Rich Dawe.
83668
83669         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
83670         error from mntctl.
83671         Use mntctl's return value to drive the entry-processing loop, since
83672         we can't rely on the value of the vmt_length member in the last
83673         entry.  On some systems doing so could result in exhausting
83674         virtual memory.  Based in part on a patch from Mike Jetzer.
83675
83676 2003-04-04  Bruno Haible  <bruno@clisp.org>
83677
83678         * modules/linebreak: New file.
83679         * MODULES.html.sh (func_all_modules): Add it.
83680
83681 2003-04-04  Bruno Haible  <bruno@clisp.org>
83682
83683         * m4/linebreak.m4: New file.
83684
83685 2003-04-04  Bruno Haible  <bruno@clisp.org>
83686
83687         * lib/linebreak.h: New file, from GNU gettext.
83688         * lib/linebreak.c: New file, from GNU gettext with slight
83689         modifications.
83690         * lib/lbrkprop.h: New file, from GNU gettext.
83691
83692 2003-04-03  Bruno Haible  <bruno@clisp.org>
83693
83694         * modules/utf8-ucs4: New file.
83695         * modules/utf16-ucs4: New file.
83696         * modules/ucs4-utf8: New file.
83697         * modules/ucs4-utf16: New file.
83698         * MODULES.html.sh (func_all_modules): Add them.
83699
83700 2003-04-03  Bruno Haible  <bruno@clisp.org>
83701
83702         * m4/utf-ucs4.m4: New file.
83703         * m4/ucs4-utf.m4: New file.
83704
83705 2003-04-03  Bruno Haible  <bruno@clisp.org>
83706
83707         * lib/utf8-ucs4.h: New file, from GNU gettext.
83708         * lib/utf16-ucs4.h: New file, from GNU gettext.
83709         * lib/ucs4-utf8.h: New file, from GNU gettext.
83710         * lib/ucs4-utf16.h: New file, from GNU gettext.
83711
83712 2003-04-02  Bruno Haible  <bruno@clisp.org>
83713
83714         * modules/binary-io: New file.
83715         * MODULES.html.sh (func_all_modules): Add it.
83716
83717 2003-04-02  Bruno Haible  <bruno@clisp.org>
83718
83719         * lib/binary-io.h: New file, from GNU gettext.
83720
83721 2003-04-01  Bruno Haible  <bruno@clisp.org>
83722
83723         * modules/pathname: New file.
83724         * MODULES.html.sh (func_all_modules): Add it.
83725
83726 2003-04-01  Bruno Haible  <bruno@clisp.org>
83727
83728         * lib/pathname.h: New file, from GNU gettext.
83729         * lib/concatpath.c: New file, from GNU gettext.
83730
83731 2003-03-30  Bruno Haible  <bruno@clisp.org>
83732
83733         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
83734
83735 2003-03-30  Bruno Haible  <bruno@clisp.org>
83736
83737         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
83738         function chown() doesn't exist.
83739
83740 2003-03-28  Bruno Haible  <bruno@clisp.org>
83741
83742         * modules/copy-file: New file.
83743         * MODULES.html.sh (func_all_modules): Add it.
83744
83745 2003-03-28  Bruno Haible  <bruno@clisp.org>
83746
83747         * m4/copy-file.m4: New file.
83748
83749 2003-03-28  Bruno Haible  <bruno@clisp.org>
83750
83751         * lib/copy-file.h: New file, from GNU gettext.
83752         * lib/copy-file.c: New file, from GNU gettext.
83753
83754 2003-03-18  Jim Meyering  <jim@meyering.net>
83755
83756         * lib/quote.c (quote_n): Fix typo in comment.
83757
83758 2003-03-18  Bruno Haible  <bruno@clisp.org>
83759
83760         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
83761         checking.
83762         * m4/onceonly_2_57.m4: Likewise.
83763
83764 2003-03-17  Bruno Haible  <bruno@clisp.org>
83765
83766         * m4/onceonly.m4: Require autoconf 2.54 or newer.
83767         (m4_quote): Remove macro.
83768         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
83769
83770 2003-03-14  Jim Meyering  <jim@meyering.net>
83771
83772         Merge changes from Coreutils.
83773         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
83774         to be const, in order to avoid warnings.
83775         (obstack_room): Likewise.
83776         (obstack_empty_p): Likewise.
83777
83778 2003-03-14  Bruno Haible  <bruno@clisp.org>
83779
83780         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
83781         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
83782
83783 2003-03-13  Paul Eggert  <eggert@twinsun.com>
83784
83785         Merge changes from Bison.
83786         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
83787         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
83788         when compiling Bison 1.875's `bitset bset = obstack_alloc
83789         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
83790         * lib/hash.c: Include <stdbool.h> unconditionally.
83791
83792 2003-03-13  Paul Eggert  <eggert@twinsun.com>
83793
83794         * m4/onceonly.m4 (m4_quote): New macro.
83795         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
83796         Quote AC_FOREACH variable-expansions properly.
83797
83798 2003-03-13  Paul Eggert  <eggert@twinsun.com>
83799
83800         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
83801
83802 2003-03-09  Paul Eggert  <eggert@twinsun.com>
83803
83804         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
83805         Reported by Bruce Becker; see:
83806         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
83807
83808 2003-03-03  Paul Eggert  <eggert@twinsun.com>
83809             Bruno Haible  <bruno@clisp.org>
83810
83811         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
83812         Reported by John Hughes, see
83813         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
83814
83815 2003-02-20  Bruno Haible  <bruno@clisp.org>
83816
83817         * MODULES.html.sh (func_all_modules): Add poll.
83818
83819 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
83820
83821         * modules/poll: New file.
83822
83823 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
83824
83825         * lib/poll_.h: New file.
83826         * lib/poll.c: New file.
83827
83828 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
83829
83830         * m4/poll.m4: New file.
83831
83832 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
83833
83834         * modules/mathl: New file.
83835
83836 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
83837
83838         * lib/mathl.h: New file.
83839         * lib/acosl.c: New file.
83840         * lib/asinl.c: New file.
83841         * lib/atanl.c: New file.
83842         * lib/ceill.c: New file.
83843         * lib/cosl.c: New file.
83844         * lib/expl.c: New file.
83845         * lib/floorl.c: New file.
83846         * lib/frexpl.c: New file.
83847         * lib/ldexpl.c: New file.
83848         * lib/logl.c: New file.
83849         * lib/sincosl.c: New file.
83850         * lib/sinl.c: New file.
83851         * lib/sqrtl.c: New file.
83852         * lib/tanl.c: New file.
83853         * lib/trigl.c: New file.
83854         * lib/trigl.h: New file.
83855
83856 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
83857
83858         * m4/mathl.m4: New file.
83859
83860 2003-02-18  Bruno Haible  <bruno@clisp.org>
83861
83862         * MODULES.html.sh (func_all_modules): Add mathl.
83863
83864 2003-02-17  Bruno Haible  <bruno@clisp.org>
83865
83866         * modules/mkdtemp: New module.
83867         * MODULES.html.sh (func_all_modules): Add it.
83868
83869 2003-02-17  Bruno Haible  <bruno@clisp.org>
83870
83871         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
83872
83873 2003-02-17  Bruno Haible  <bruno@clisp.org>
83874
83875         * lib/mkdtemp.h: New file, from GNU gettext.
83876         * lib/mkdtemp.c: New file, from GNU gettext.
83877
83878 2003-02-02  Jim Meyering  <jim@meyering.net>
83879
83880         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
83881         e.g. glibc-2.2.93.
83882
83883 2003-01-31  Bruno Haible  <bruno@clisp.org>
83884
83885         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
83886         'rpl_rename'.
83887         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
83888         'rpl_strnlen'.
83889         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
83890         'rpl_strtod'.
83891         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
83892         'rpl_utime'.
83893
83894 2003-01-31  Bruno Haible  <bruno@clisp.org>
83895
83896         * lib/rename.c: #undef rename before defining rpl_rename.
83897         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
83898
83899 2003-01-30  Bruno Haible  <bruno@clisp.org>
83900
83901         * modules/vasnprintf, modules/vasprintf: New modules.
83902         * MODULES.html.sh (func_all_modules): Add them.
83903
83904 2003-01-30  Bruno Haible  <bruno@clisp.org>
83905
83906         * m4/signed.m4: New file, from GNU gettext.
83907         * m4/longdouble.m4: New file, from GNU gettext.
83908         * m4/wchar_t.m4: New file, from GNU gettext.
83909         * m4/wint_t.m4: New file, from GNU gettext.
83910         * m4/vasnprintf.m4: New file.
83911         * m4/vasprintf.m4: New file.
83912
83913 2003-01-30  Bruno Haible  <bruno@clisp.org>
83914
83915         * lib/printf-args.h: New file, from GNU gettext.
83916         * lib/printf-args.c: New file, from GNU gettext.
83917         * lib/printf-parse.h: New file, from GNU gettext.
83918         * lib/printf-parse.c: New file, from GNU gettext.
83919         * lib/vasnprintf.h: New file, from GNU gettext.
83920         * lib/vasnprintf.c: New file, from GNU gettext.
83921         * lib/asnprintf.c: New file, from GNU gettext.
83922         * lib/vasprintf.h: New file, from GNU gettext with modifications.
83923         * lib/vasprintf.c: New file, from GNU gettext.
83924         * lib/asprintf.c: New file, from GNU gettext.
83925
83926 2003-01-29  Bruno Haible  <bruno@clisp.org>
83927
83928         * modules/stpncpy: New module.
83929         * MODULES.html.sh (func_all_modules): Add it.
83930
83931 2003-01-29  Bruno Haible  <bruno@clisp.org>
83932
83933         * m4/stpncpy.m4: New file.
83934
83935 2003-01-29  Bruno Haible  <bruno@clisp.org>
83936
83937         * lib/stpncpy.h: New file, from GNU gettext with modifications.
83938         * lib/stpncpy.c: New file, from GNU gettext with modifications.
83939
83940 2003-01-28  Bruno Haible  <bruno@clisp.org>
83941
83942         * modules/c-ctype: New module.
83943         * MODULES.html.sh (func_all_modules): Add it.
83944
83945 2003-01-28  Bruno Haible  <bruno@clisp.org>
83946
83947         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
83948         Paul Eggert.
83949         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
83950         Paul Eggert.
83951
83952 2003-01-27  Bruno Haible  <bruno@clisp.org>
83953
83954         * modules/xsetenv: New module.
83955         * MODULES.html.sh (func_all_modules): Add it.
83956
83957 2003-01-27  Bruno Haible  <bruno@clisp.org>
83958
83959         * lib/xsetenv.h: New file, from GNU gettext.
83960         * lib/xsetenv.c: New file, from GNU gettext.
83961
83962 2003-01-23  Jim Meyering  <jim@meyering.net>
83963
83964         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
83965         from working on systems without dirfd (at least Irix and OSF1/Tru64).
83966
83967 2003-01-23  Bruno Haible  <bruno@clisp.org>
83968
83969         * modules/minmax: New module.
83970         * MODULES.html.sh (func_all_modules): Add it.
83971
83972 2003-01-23  Bruno Haible  <bruno@clisp.org>
83973
83974         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
83975         Eggert.
83976
83977 2003-01-22  Bruno Haible  <bruno@clisp.org>
83978
83979         * modules/exit: New module.
83980         * MODULES.html.sh (func_all_modules): Add it.
83981
83982 2003-01-22  Bruno Haible  <bruno@clisp.org>
83983
83984         * lib/exit.h: New file, from GNU gettext.
83985
83986 2003-01-19  Bruno Haible  <bruno@clisp.org>
83987
83988         * gnulib-tool: Recognize option --extract-maintainer.
83989         (func_get_maintainer): New function.
83990         * modules/*: Add Maintainer entry.
83991
83992 2003-01-16  Jim Meyering  <jim@meyering.net>
83993
83994         * m4/regex.m4: The `regex' struct is both input and output.
83995         Initialize it before each use.  Patch by Tim Waugh.
83996
83997 2003-01-16  Bruno Haible  <bruno@clisp.org>
83998
83999         * MODULES.html.sh: Add a table of contents. Add the module name as
84000         leftmost column. Add hyperlinks.
84001
84002 2003-01-15  Bruno Haible  <bruno@clisp.org>
84003
84004         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
84005
84006 2003-01-15  Bruno Haible  <bruno@clisp.org>
84007
84008         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
84009         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
84010         suffix.
84011
84012 2003-01-15  Bruno Haible  <bruno@clisp.org>
84013
84014         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
84015
84016 2003-01-15  Bruno Haible  <bruno@clisp.org>
84017
84018         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
84019         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
84020
84021 2003-01-14  Jim Meyering  <jim@meyering.net>
84022
84023         * lib/same.c (same_name): Tweak a comment.
84024
84025 2003-01-14  Bruno Haible  <bruno@clisp.org>
84026
84027         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
84028         when a string comparison is sufficient.
84029
84030 2003-01-14  Bruno Haible  <bruno@clisp.org>
84031
84032         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
84033         'unsigned int'.
84034
84035 2003-01-14  Bruno Haible  <bruno@clisp.org>
84036
84037         * lib/hash-pjw.c: Add comment about low quality of this function.
84038
84039 2003-01-13  Bruno Haible  <bruno@clisp.org>
84040
84041         * modules/stpcpy: Distribute lib/stpcpy.h.
84042         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
84043
84044 2003-01-13  Bruno Haible  <bruno@clisp.org>
84045
84046         * modules/*: Add a description.
84047         * modules/strpbrk: Fix Makefile.am snippet.
84048         * modules/strtoimax: Fix dependencies.
84049         * modules/strtoumax: Likewise.
84050
84051 2003-01-13  Bruno Haible  <bruno@clisp.org>
84052
84053         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
84054         * modules/alloca (Makefile.am): All object files depend on alloca.h.
84055         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
84056
84057 2003-01-13  Bruno Haible  <bruno@clisp.org>
84058
84059         * gnulib-tool (func_create_testdir): Store config/* files in the main
84060         directory.
84061         * config.rpath: Move to ...
84062         * config/config.rpath: ... here.
84063         * modules/gettext: Contains config/config.rpath, not config.rpath.
84064         * modules/iconv: Likewise.
84065
84066 2003-01-12  Paul Eggert  <eggert@twinsun.com>
84067
84068         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
84069         to avoid collisions with libcurses and libreadline.
84070
84071         * m4/getstr.m4: Remove.
84072         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
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
84079         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
84080         * lib/getstr.h, getstr.c: Remove.
84081         * lib/getline.c: Include "getline.h", to check interface.
84082         Move body of old getstr.c here: this defines MIN_CHUNK and
84083         declares getdelim2, which is renamed from getstr.
84084         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
84085
84086         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
84087         All uses changed.
84088         * lib/linebuffer.h: Likewise.
84089         (readline): Remove backward-compatibility macro.
84090
84091 2003-01-12  Paul Eggert  <eggert@twinsun.com>
84092
84093         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
84094         to avoid collisions with libcurses and libreadline.
84095         * getstr: Remove.
84096         * MODULES.html.sh: Remove getstr.
84097         * modules/getline: Depend on unlocked-io, not getstr.
84098
84099 2003-01-12  Jim Meyering  <jim@meyering.net>
84100
84101         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
84102
84103 2003-01-10  Bruno Haible  <bruno@clisp.org>
84104
84105         * modules/alloca: Change Makefile.am requirements. Simplify Include
84106         requirements. Add lib/alloca_.h to file list.
84107
84108 2003-01-10  Bruno Haible  <bruno@clisp.org>
84109
84110         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
84111
84112 2003-01-10  Bruno Haible  <bruno@clisp.org>
84113
84114         * lib/alloca_.h: New file.
84115         * lib/getdate.y: Unconditionally include alloca.h.
84116         * lib/makepath.c: Likewise.
84117         * lib/setenv.c: Likewise.
84118         * lib/userspec.c: Likewise.
84119
84120 2003-01-09  Karl Berry  <karl@gnu.org>
84121
84122         * MODULES.html.sh: include `dirname $0` in PATH, to find
84123         gnulib-tool.
84124
84125 2003-01-09  Bruno Haible  <bruno@clisp.org>
84126
84127         * modules/stdbool: Change configure.ac, Makefile.am requirements.
84128         Simplify Include requirements. Add lib/stdbool.h.in to file list.
84129
84130 2003-01-09  Bruno Haible  <bruno@clisp.org>
84131
84132         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
84133
84134 2003-01-09  Bruno Haible  <bruno@clisp.org>
84135
84136         * lib/stdbool.h.in: New file.
84137
84138 2003-01-09  Bruno Haible  <bruno@clisp.org>
84139
84140         * gnulib-tool (func_all_modules): Ignore files ending in ~.
84141         * MODULES.html.sh: Likewise.
84142
84143 2003-01-08  Jim Meyering  <jim@meyering.net>
84144
84145         * lib/full-write.c: Undefine and define-away `const' after inclusion
84146         of errno.h, not before.  Suggestion from Bruno Haible.
84147
84148 2003-01-08  Bruno Haible  <bruno@clisp.org>
84149
84150         * modules/full-read: Depend on full-write.
84151
84152 2003-01-08  Bruno Haible  <bruno@clisp.org>
84153
84154         * lib/safe-read.c: Include specification header first, to ensure its
84155         selfcontainedness.
84156         * lib/full-write.c: Likewise.
84157
84158 2003-01-07  Jim Meyering  <jim@meyering.net>
84159
84160         * lib/full-write.c: Rework so that it may serve to define full_read,
84161         too.
84162         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
84163
84164 2003-01-07  Bruno Haible  <bruno@clisp.org>
84165
84166         * lib/strtoimax.c: Include <stdint.h> as an alternative to
84167         <inttypes.h>.
84168         * lib/xstrtol.h: Likewise.
84169         * lib/xstrtoimax.c: Likewise.
84170         * lib/xstrtoumax.c: Likewise.
84171         * lib/human.h: Likewise.
84172
84173         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
84174         on systems that have <inttypes.h> but not <stdint.h>.
84175
84176 2003-01-07  Bruno Haible  <bruno@clisp.org>
84177
84178         * MODULES.html.sh: Add copyright notice.
84179         (missed_files): Omit CVS directory entries.
84180         (func_module): Make it work with sed-3.02.
84181         * MODULES.txt: Remove file.
84182
84183 2003-01-06  Jim Meyering  <jim@meyering.net>
84184
84185         * lib/version-etc.c: Update year in translatable copyright string.
84186
84187 2003-01-03  Karl Berry  <karl@gnu.org>
84188
84189         * config/config.{guess,sub}: update from prep.
84190
84191 2003-01-02  Karl Berry  <karl@gnu.org>
84192
84193         * doc/COPYING.DOC: belatedly updated to 1.2.
84194
84195 2003-01-01  Karl Berry  <karl@gnu.org>
84196
84197         * gnulib-tool (func_verify_module): report module name $module in
84198         error message, not $1.
84199         * gnulib-tool (create-testdir): don't complain if destdir couldn't
84200         be created, only if it doesn't exist.
84201         * gnulib-tool (last_checkin_date): don't expand the $Date here.
84202
84203 2002-12-31  Paul Eggert  <eggert@twinsun.com>
84204
84205         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
84206
84207 2002-12-31  Paul Eggert  <eggert@twinsun.com>
84208
84209         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
84210         memcmp if strcoll doesn't work.
84211
84212 2002-12-31  Bruno Haible  <bruno@clisp.org>
84213
84214         * lib/utime.c (utime_null): No need to call ftruncate if the file was
84215         nonempty.
84216
84217 2002-12-31  Bruno Haible  <bruno@clisp.org>
84218
84219         * lib/memcoll.c (STRCOLL): New macro.
84220         (memcoll): Use it.
84221
84222 2002-12-31  Bruno Haible  <bruno@clisp.org>
84223
84224         * lib/localcharset.h: New file.
84225         * lib/localcharset.c: Include it.
84226         * lib/unicodeio.c: Likewise.
84227
84228 2002-12-31  Bruno Haible  <bruno@clisp.org>
84229
84230         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
84231         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
84232
84233 2002-12-31  Bruno Haible  <bruno@clisp.org>
84234
84235         * lib/getline.h: Include <stddef.h>, for size_t.
84236
84237         * lib/unicodeio.h: Include <stddef.h>, for size_t.
84238         * lib/unicodeio.c: Don't include <stddef.h>.
84239
84240 2002-12-31  Bruno Haible  <bruno@clisp.org>
84241
84242         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
84243         HAVE_TM_ZONE.
84244
84245 2002-12-24  Karl Berry  <karl@gnu.org>
84246
84247         * config/config.guess: update from prep.
84248
84249 2002-12-24  Bruno Haible  <bruno@clisp.org>
84250
84251         General infrasructure.
84252         * m4/README: Rewritten.
84253         * m4/onceonly.m4: New file.
84254         * m4/onceonly_2_57.m4: New file.
84255
84256         Module atexit.
84257         * m4/atexit.m4: New file.
84258
84259         Module strtod.
84260         * m4/strtod.m4: New file.
84261
84262         Module strtol.
84263         * m4/strtol.m4: New file.
84264
84265         Module strtoul.
84266         * m4/strtoul.m4: New file.
84267
84268         Module memchr.
84269         * m4/memchr.m4: New file.
84270
84271         Module memcmp.
84272         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
84273         (jm_FUNC_MEMCMP): Invoke it.
84274
84275         Module memcpy.
84276         * m4/memcpy.m4: New file.
84277
84278         Module memmove.
84279         * m4/memmove.m4: New file.
84280
84281         Module memset.
84282         * m4/memset.m4: New file.
84283
84284         Module strcspn.
84285         * m4/strcspn.m4: New file.
84286
84287         Module strpbrk.
84288         * m4/strpbrk.m4: New file.
84289
84290         Module strstr.
84291         * m4/strstr.m4: New file.
84292
84293         Module strerror.
84294         * m4/strerror.m4: New file.
84295
84296         Module mktime.
84297         * m4/mktime.m4: Renamed from jm-mktime.m4.
84298         (gl_PREREQ_MKTIME): New macro.
84299         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
84300
84301         Module malloc.
84302         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
84303         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
84304         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
84305
84306         Module realloc.
84307         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
84308         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
84309         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
84310
84311         Module strftime.
84312         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
84313         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
84314         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
84315         gl_TM_GMTOFF.
84316         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
84317
84318         Module xalloc.
84319         * m4/xalloc.m4: New file.
84320
84321         Module alloca.
84322         * m4/alloca.m4: New file.
84323
84324         Module putenv.
84325         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
84326         (jm_FUNC_PUTENV): Invoke it.
84327
84328         Module setenv.
84329         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
84330         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
84331         when invoked twice.
84332         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
84333         gt_FUNC_SETENV.
84334
84335         Module memrchr.
84336         * m4/memrchr.m4: New file.
84337
84338         Module stpcpy.
84339         * m4/stpcpy.m4: New file.
84340
84341         Module strcase.
84342         * m4/strcase.m4: New file.
84343
84344         Module strdup.
84345         * m4/strdup.m4: New file.
84346
84347         Module strnlen.
84348         * m4/strnlen.m4: New file.
84349
84350         Module strndup.
84351         * m4/strndup.m4: New file.
84352
84353         Module xstrtod.
84354         * m4/xstrtod.m4: New file.
84355
84356         Module xstrtol.
84357         * m4/xstrtol.m4: New file.
84358
84359         Module getdate.
84360         * m4/getdate.m4: New file.
84361
84362         Module unlocked-io.
84363         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
84364         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
84365         * m4/jm-glibc-io.m4n: Remove file.
84366
84367         Module long-options.
84368         * m4/long-options.m4: New file.
84369
84370         Module md5.
84371         * m4/md5.m4: New file.
84372
84373         Module sha.
84374         * m4/sha.m4: New file.
84375
84376         Module getstr.
84377         * m4/getstr.m4: New file.
84378
84379         Module getline.
84380         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
84381         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
84382         <sys/types.h>, for size_t. Use the function name gnu_getline, not
84383         simply getline. Infoke gl_PREREQ_GETLINE.
84384
84385         Module obstack.
84386         * m4/obstack.m4: New file.
84387
84388         Module hash.
84389         * m4/hash.m4: New file.
84390
84391         Module readtokens.
84392         * m4/readtokens.m4: New file.
84393
84394         Module strverscmp.
84395         * m4/strverscmp.m4: New file.
84396
84397         Module stdbool.
84398         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
84399         OSF/1.
84400
84401         Module strtoll.
84402         * m4/strtoll.m4: New file.
84403
84404         Module strtoull.
84405         * m4/strtoull.m4: New file.
84406
84407         Module strtoimax.
84408         * m4/strtoimax.m4: New file.
84409
84410         Module strtoumax.
84411         * m4/strtoumax.m4: New file.
84412
84413         Module xstrtoimax.
84414         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
84415         jm_AC_PREREQ_XSTRTOIMAX.
84416         Moved the strtol prerequisites to strtol.m4.
84417         Moved the strtoll prerequisites to strtoll.m4.
84418         Moved the strtoimax prerequisites to strtoimax.m4.
84419
84420         Module xstrtoumax.
84421         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
84422         jm_AC_PREREQ_XSTRTOUMAX.
84423         Moved the strtoul prerequisites to strtoul.m4.
84424         Moved the strtoull prerequisites to strtoull.m4.
84425         Moved the strtoumax prerequisites to strtoumax.m4.
84426
84427         Module chown.
84428         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
84429         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
84430
84431         Module dup2.
84432         * m4/dup2.m4: New file.
84433
84434         Module ftruncate.
84435         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
84436         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
84437
84438         Module getgroups.
84439         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
84440         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
84441
84442         Module gettimeofday.
84443         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
84444         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
84445         gl_PREREQ_GETTIMEOFDAY.
84446
84447         Module mkdir.
84448         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
84449         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
84450
84451         Module mkstemp.
84452         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
84453         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
84454         jm_AC_TYPE_UINTMAX_T.
84455         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
84456
84457         Module stat.
84458         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
84459         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
84460
84461         Module lstat.
84462         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
84463         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
84464
84465         Module timespec.
84466         * m4/timespec.m4 (gl_TIMESPEC): New macro.
84467         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
84468         * m4/st_mtim.m4: Indentation.
84469
84470         Module nanosleep.
84471         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
84472         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
84473         gl_PREREQ_NANOSLEEP.
84474
84475         Module regex.
84476         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
84477         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
84478         (gl_REGEX): New macro.
84479
84480         Module rename.
84481         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
84482         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
84483
84484         Module rmdir.
84485         * m4/rmdir.m4: New file.
84486
84487         Module utime.
84488         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
84489         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
84490         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
84491
84492         Module dirname.
84493         * m4/dirname.m4: New file.
84494
84495         Module getopt.
84496         * m4/getopt.m4: New file.
84497
84498         Module unistd-safer.
84499         * m4/unistd-safer.m4: New file.
84500
84501         Module fnmatch.
84502         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
84503         declaration.
84504         (gl_PREREQ_FNMATCH_EXTRA): New macro.
84505         (gl_FUNC_FNMATCH_POSIX): New macro.
84506         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
84507         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
84508         simply fnmatch.
84509
84510         Module exclude.
84511         * m4/exclude.m4: New file.
84512
84513         Module human.
84514         * m4/human.m4: New file.
84515
84516         Module acl.
84517         * m4/acl.m4: Nop.
84518
84519         Module backupfile.
84520         * m4/backupfile.m4: New file.
84521         * m4/d-ino.m4: Indentation.
84522
84523         Module fsusage.
84524         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
84525         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
84526         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
84527
84528         Module dirfd.
84529         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
84530         requirements.
84531
84532         Module euidaccess.
84533         * m4/euidaccess.m4: New file.
84534
84535         Module file-type.
84536         * m4/file-type.m4: New file.
84537
84538         Module fileblocks.
84539         * m4/fileblocks.m4: New file.
84540
84541         Module filemode.
84542         * m4/filemode.m4: New file.
84543
84544         Module isdir.
84545         * m4/isdir.m4: New file.
84546
84547         Module lchown.
84548         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
84549         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
84550
84551         Module makepath.
84552         * m4/makepath.m4: New file.
84553
84554         Module modechange.
84555         * m4/modechange.m4: New file.
84556
84557         Module mountlist.
84558         * m4/mountlist.m4: New file.
84559         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
84560         Indentation.
84561
84562         Module path-concat.
84563         * m4/path-concat.m4: New file.
84564
84565         Module pathmax.
84566         * m4/pathmax.m4: New file.
84567
84568         Module same.
84569         * m4/same.m4: New file.
84570
84571         Module save-cwd.
84572         * m4/save-cwd.m4: New file.
84573
84574         Module savedir.
84575         * m4/savedir.m4: New file.
84576
84577         Module xgetcwd.
84578         * m4/xgetcwd.m4: New file.
84579         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
84580
84581         Module xreadlink.
84582         * m4/xreadlink.m4: New file.
84583
84584         Module safe-read.
84585         * m4/safe-read.m4: New file.
84586
84587         Module safe-write.
84588         * m4/safe-write.m4: New file.
84589
84590         Module closeout.
84591         * m4/closeout.m4: New file.
84592
84593         Module stdio-safer.
84594         * m4/stdio-safer.m4: New file.
84595
84596         Module getpass.
84597         * m4/getpass.m4: New file.
84598
84599         Module getugroups.
84600         * m4/getugroups.m4: New file.
84601
84602         Module group-member.
84603         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
84604         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
84605
84606         Module idcache.
84607         * m4/idcache.m4: New file.
84608
84609         Module userspec.
84610         * m4/userspec.m4: New file.
84611
84612         Module gettime.
84613         * m4/clock_time.m4: New file.
84614         * m4/gettime.m4: New file.
84615
84616         Module settime.
84617         * m4/settime.m4: New file.
84618
84619         Module posixtm.
84620         * m4/posixtm.m4: New file.
84621
84622         Module gethostname.
84623         * m4/gethostname.m4: New file.
84624
84625         Module canon-host.
84626         * m4/canon-host.m4: New file.
84627
84628         Module gettext.
84629         * m4/codeset.m4: New file, from gettext-0.11.5.
84630         * m4/gettext.m4: New file, from gettext-0.11.5.
84631         * m4/glibc21.m4: New file, from gettext-0.11.5.
84632         * m4/iconv.m4: New file, from gettext-0.11.5.
84633         * m4/intdiv0.m4: New file, from gettext-0.11.5.
84634         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
84635         * m4/inttypes.m4: New file, from gettext-0.11.5.
84636         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
84637         * m4/isc-posix.m4: New file, from gettext-0.11.5.
84638         * m4/lcmessage.m4: New file, from gettext-0.11.5.
84639         * m4/lib-ld.m4: New file, from gettext-0.11.5.
84640         * m4/lib-link.m4: New file, from gettext-0.11.5.
84641         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
84642         * m4/progtest.m4: New file, from gettext-0.11.5.
84643         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
84644         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
84645         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
84646
84647         Module localcharset.
84648         * m4/localcharset.m4: New file.
84649
84650         Module hard-locale.
84651         * m4/hard-locale.m4: New file.
84652
84653         Module mbswidth.
84654         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
84655         onceonly macros.
84656         * m4/mbrtowc.m4: Add comment.
84657
84658         Module memcasecmp.
84659         * m4/memcasecmp.m4: New file.
84660
84661         Module memcoll.
84662         * m4/memcoll.m4: New file.
84663
84664         Module unicodeio.
84665         * m4/unicodeio.m4: New file.
84666
84667         Module rpmatch.
84668         * m4/rpmatch.m4: New file.
84669
84670         Module yesno.
84671         * m4/yesno.m4: New file.
84672
84673         Module exitfail.
84674         * m4/exitfail.m4: New file.
84675
84676         Module c-stack.
84677         * m4/c-stack.m4 (gl_C_STACK): New macro.
84678         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
84679
84680         Module error.
84681         * m4/error.m4 (gl_ERROR): New macro.
84682         (jm_PREREQ_ERROR): Use onceonly macros.
84683
84684         Module fatal.
84685         * m4/fatal.m4: New file.
84686
84687         Module getloadavg.
84688         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
84689         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
84690
84691         Module getpagesize.
84692         * m4/getpagesize.m4: New file.
84693
84694         Module getusershell.
84695         * m4/getusershell.m4: New file.
84696
84697         Module physmem.
84698         * m4/physmem.m4: New file.
84699
84700         Module posixver.
84701         * m4/posixver.m4: New file.
84702
84703         Module quotearg.
84704         * m4/quotearg.m4: New file.
84705
84706         Module quote.
84707         * m4/quote.m4: New file.
84708
84709         Module readutmp.
84710         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
84711
84712         Module sig2str.
84713         * m4/sig2str.m4: New file.
84714
84715         Other.
84716         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
84717         ulonglong.m4.
84718         * m4/intmax_t.m4: New file.
84719         * m4/d-type.m4: Indentation.
84720         * m4/jm-macros.m4: Update.
84721         * m4/prereq.m4 (jm_PREREQ): Update.
84722         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
84723         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
84724         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
84725         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
84726         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
84727         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
84728         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
84729         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
84730         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
84731         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
84732         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
84733         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
84734         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
84735         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
84736         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
84737         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
84738         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
84739         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
84740         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
84741
84742 2002-12-24  Bruno Haible  <bruno@clisp.org>
84743
84744         * MODULES.txt: Update according to m4/ changes.
84745
84746         Module gettext.
84747         * config.rpath: New file, from gettext-0.11.5.
84748
84749         * modules/*: New module descriptions.
84750         * gnulib-tool: New file.
84751         * MODULES.html.sh: New file.
84752
84753 2002-12-21  Karl Berry  <karl@gnu.org>
84754
84755         * doc/fdl.texi: update to version 1.2.
84756
84757 2002-12-19  Karl Berry  <karl@gnu.org>
84758
84759         * config/config.guess: update from prep.
84760
84761 2002-12-18  Bruno Haible  <bruno@clisp.org>
84762
84763         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
84764         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
84765
84766 2002-12-17  Bruno Haible  <bruno@clisp.org>
84767
84768         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
84769         stdlib.h, string.h.
84770
84771 2002-12-17  Bruno Haible  <bruno@clisp.org>
84772
84773         * lib/canon-host.c (strdup): Remove unused declaration.
84774
84775         * lib/fsusage.c: Include full_read.h.
84776         (get_fs_usage): Use full_read instead of safe_read.
84777
84778         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
84779
84780 2002-12-12  Karl Berry  <karl@gnu.org>
84781
84782         * config/config.guess: update from prep.
84783
84784 2002-12-11  Bruno Haible  <bruno@clisp.org>
84785
84786         * m4/setenv.m4: New file, from gettext-0.11.5.
84787
84788 2002-12-11  Bruno Haible  <bruno@clisp.org>
84789
84790         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
84791         not unsetenv().
84792         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
84793         modifications:
84794
84795         2002-12-11  Bruno Haible  <bruno@clisp.org>
84796
84797                 * setenv.c (alloca): Fall back to malloc.
84798                 (freea): New macro.
84799                 (setenv): Use freea() to free memory allocated with alloca().
84800
84801         2002-11-13  Bruno Haible  <bruno@clisp.org>
84802
84803                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
84804                 function declarations.
84805                 * unsetenv.c (unsetenv): Likewise.
84806
84807         2002-03-04  Bruno Haible  <bruno@clisp.org>
84808
84809                 Portability to AIX 4.3.3.
84810                 * unsetenv.c: New file, extracted from setenv.c.
84811                 * setenv.c: Move the unsetenv() function to unsetenv.c.
84812
84813         2001-12-20  Bruno Haible  <bruno@clisp.org>
84814
84815                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
84816                 use malloc instead. For SunOS 4.
84817
84818         2001-12-11  Bruno Haible  <bruno@clisp.org>
84819
84820                 * setenv.c: Declare alloca.
84821                 (compar_fn_t): New typedef.
84822                 (KNOWN_VALUE, STORE_VALUE): Use it.
84823
84824         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
84825         setenv.h.
84826
84827 2002-12-10  Paul Eggert  <eggert@twinsun.com>
84828
84829         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
84830         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
84831         Choose values that are less likely to collide with system fnmatch
84832         options.
84833         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
84834         defined (e.g., a pure POSIX system).
84835         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
84836         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
84837
84838 2002-12-06  Paul Eggert  <eggert@twinsun.com>
84839
84840         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
84841         a pain in practice to deal with generated m4 files.  This change
84842         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
84843
84844         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
84845         and jm-glibc-io.m4, as they are no longer a special case.
84846         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
84847         kludge and the auto-generation stuff.  Check only whether the
84848         functions are declared, not whether they exist, since older hosts
84849         that don't declare the functions can't use the optimization anyway.
84850
84851 2002-12-06  Jim Meyering  <jim@meyering.net>
84852
84853         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
84854
84855         Merge in changes from libc's misc/error.c, in preparation
84856         for the merge of gnulib's changes back into libc.
84857
84858         * lib/error.c (_): Define only if not already defined.
84859         Move definition to follow all #include directives.
84860         Include unlocked-io.h only if !_LIBC.
84861         [_LIBC]: Include <libio/libioP.h>.
84862         [USE_IN_LIBIO]: Include <libio/iolibio.h>
84863         (fflush): Tweak definition to use INTUSE.
84864         (putc): Define.
84865
84866 2002-12-05  Paul Eggert  <eggert@twinsun.com>
84867
84868         * lib/alloca.c [defined emacs]: Include "lisp.h".
84869         (xalloc_die) [defined emacs]: New macro.
84870         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
84871         [! defined emacs]: Include <xalloc.h>.
84872         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
84873         (pointer): Typedef to POINTER_TYPE *.
84874         (malloc): Remove decl; we now always use xmalloc.
84875         (alloca): Use old-style definition, since Emacs needs this.
84876         Check for arithmetic overflow when computing combined size.
84877
84878 2002-12-04  Paul Eggert  <eggert@twinsun.com>
84879
84880         Do not generate unlocked-io.h automatically, since it's easier to
84881         maintain it by hand.
84882
84883         * lib/unlocked-io.h: New file, from GNU diffutils,
84884         but with proper copyright notice and attribution.
84885         * lib/gen-uio: Remove.
84886         * lib/Makefile.am: Add copyright notice.
84887         (libfetish_a_SOURCES): Add unlocked-io.h.
84888         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
84889         (DISTCLEANFILES, io_functions): Remove macros.
84890         (EXTRA_DIST): Remove gen_uio.
84891         (unlocked-io.h): Remove rule.
84892
84893 2002-12-04  Jim Meyering  <jim@meyering.net>
84894
84895         Reflect the fact that stat.c and lstat.c are no longer generated.
84896         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
84897         (DISTCLEANFILES): Likewise.
84898         (EXTRA_DIST): Likewise.
84899         (all_local): Don't depend on stat.c or lstat.c.
84900         (stat.c, lstat.c): Remove rules.
84901         (EXTRA_DIST): Remove xstat.in.
84902
84903         * lib/xstat.in: Remove file.  Contents moved into stat.c.
84904         * lib/stat.c: New file.  Contents mostly from xstat.in.
84905         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
84906         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
84907
84908         * lib/safe-read.c: Rework so that it may serve to define safe_write,
84909         too.
84910         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
84911
84912 2002-12-03  Jim Meyering  <jim@meyering.net>
84913
84914         * lib/safe-read.c, safe-write.c: Change variable names and comments,
84915         but not semantics, to minimize the differences between these two files.
84916         (safe_read): Change comment to mention SAFE_READ_ERROR.
84917
84918         * lib/safe-read.c (IS_EINTR): Define.
84919         (safe_read): Use IS_EINTR in place of in-function cpp directives.
84920
84921 2002-12-02  Jim Meyering  <jim@meyering.net>
84922
84923         * lib/safe-read.c (EINTR): Define.
84924         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
84925         (INT_MAX): Provide fallback.
84926         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
84927
84928         * lib/safe-read.h (SAFE_READ_ERROR): Define.
84929
84930 2002-12-02  Bruno Haible  <bruno@clisp.org>
84931
84932         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
84933         Define, taken from safe-read.c.
84934         (INT_MAX): Provide fallback.
84935         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
84936         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
84937
84938         * lib/safe-read.c (EINTR): Remove definition.
84939         (safe_read): Don't use EINTR if it is absent.
84940
84941 2002-12-01  Jim Meyering  <jim@meyering.net>
84942
84943         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
84944         zero.
84945         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
84946
84947 2002-11-27  Paul Eggert  <eggert@twinsun.com>
84948
84949         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
84950         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
84951         with `if (! (value < limit)) abort ();', for readability.
84952
84953 2002-11-26  Karl Berry  <karl@gnu.org>
84954
84955         * lib/strdup.c: copy from libc again, with jim's ok.
84956         * lib/.cppi-disable: re-add strdup.c
84957
84958 2002-11-25  Karl Berry  <karl@gnu.org>
84959
84960         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
84961         instead of "strtol.c".
84962
84963 2002-11-25  Karl Berry  <karl@gnu.org>
84964
84965         * config/install-sh: update from automake for variable quoting, $0 in
84966         error msgs, etc.
84967
84968         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
84969         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
84970         entry.
84971
84972 2002-11-25  Jim Meyering  <jim@meyering.net>
84973
84974         * lib/mktime.c: Sync from libc, now that it has the latest fix.
84975
84976 2002-11-24  Karl Berry  <karl@gnu.org>
84977
84978         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
84979         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
84980
84981 2002-11-24  Jim Meyering  <jim@meyering.net>
84982
84983         Update from coreutils:
84984
84985         * lib/mktime.c: Merge in changes from libc.
84986
84987         Avoid a link-time failure on some Linux systems.
84988         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
84989         (otherwise).
84990         (__mon_yday): Declare with the STATIC attribute.
84991         (__mktime_internal): Likewise.
84992         Based on a report from Greg Schafer.
84993
84994 2002-11-23  Jim Meyering  <jim@meyering.net>
84995
84996         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
84997         Use `unsigned', not `int', as type of index.
84998
84999         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
85000
85001         * lib/fsusage.c: Remove unneeded parentheses around operands of
85002         `defined'.
85003
85004 2002-11-22  Paul Eggert  <eggert@twinsun.com>
85005
85006         * lib/quotearg.h: Allow multiple inclusion by surrounding with
85007         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
85008         so that we can be included first.
85009         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
85010         * lib/quotearg.c: Include quotearg.h immediately after config.h.
85011         No need to include stddef.h or sys/types.h any more.
85012         Surround local include files with "", not "<>".
85013         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
85014         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
85015         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
85016         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
85017         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
85018         (ISPRINT): Remove; no longer needed now that we assume C89.
85019
85020         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
85021         Preserve errno.
85022
85023         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
85024         quotearg_char): Use SIZE_MAX rather than
85025         (size_t) -1 when we are talking about "infinity".
85026
85027         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
85028
85029 2002-11-22  Paul Eggert  <eggert@twinsun.com>
85030
85031         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
85032         hint that one should use `if (! x) abort ();' rather than `assert
85033         (x);', and anyway it's one less thing to worry about configuring.
85034         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
85035         hash_rehash, hash_insert): Use abort rather than assert.
85036
85037 2002-11-22  Bruno Haible  <bruno@clisp.org>
85038
85039         * lib/safe-read.h: Assume C89. Add comments.
85040         (safe_read): Change return type to size_t.
85041         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
85042         byte counts > SSIZE_MAX correctly.
85043         * lib/safe-write.h: New file.
85044         * lib/safe-write.c: New file.
85045         * lib/full-read.h: New file.
85046         * lib/full-read.c: New file.
85047         * lib/full-write.h: Assume C89. Add comments.
85048         * lib/full-write.c: Include safe-write.h.
85049         (full_write): Rewritten to use safe_write.
85050         Suggested by Jim Meyering and Paul Eggert.
85051
85052 2002-11-21  Jim Meyering  <jim@meyering.net>
85053
85054         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
85055
85056         Merge in changes from the coreutils.
85057
85058         2002-09-25  Paul Eggert  <eggert@twinsun.com>
85059         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
85060         <stdint.h>.
85061         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
85062         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
85063         int.  Work more efficiently if X is the same width as uintmax_t.
85064         Do not compare X to -1, to avoid bogus compiler warning.
85065         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
85066         Don't assume that f_frsize and f_bsize are the same type.
85067
85068         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
85069         warning on FreeBSD.
85070
85071         * lib/makepath.c (make_path): Restore umask *before* creating the final
85072         component.
85073         (make_path): Minor reformatting.
85074
85075         * lib/xmalloc.c: Adjust to work with new autoconf macros,
85076         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
85077         HAVE_MALLOC/HAVE_REALLOC.
85078
85079         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
85080         dummy ones.  At least on GNU/Linux systems, `auto' means something
85081         else.
85082         From Michael Stone.
85083
85084 2002-11-21  Bruno Haible  <bruno@clisp.org>
85085
85086         Remove case insensitive option matching.
85087         * lib/argmatch.h (argcasematch): Remove declaration.
85088         (ARGCASEMATCH): Remove macro.
85089         (__xargmatch_internal): Remove case_sensitive argument.
85090         (XARGMATCH): Update.
85091         (XARGCASEMATCH): Remove macro.
85092         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
85093         case_sensitive argument.
85094         (argcasematch): Remove function.
85095         (__xargmatch_internal): Remove case_sensitive argument.
85096         (main): Use XARGMATCH instead of XARGCASEMATCH.
85097
85098         * lib/xmalloc.c: Change compile-time error message. Add comment about
85099         required autoconf version.
85100
85101 2002-11-20  Paul Eggert  <eggert@twinsun.com>
85102
85103         Merge argmatch cleanups from Bison.  Assume C89.
85104
85105         * lib/argmatch.c: Include config.h here, not in argmatch.h.
85106         Include stdlib.h, for EXIT_FAILURE.
85107         Always include <string.h>, since we assume C89.
85108         (EXIT_FAILURE): Remove pre-C89 bug workaround.
85109         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
85110         Include <stddef.h> instead, since it's all we need for size_t.
85111         (PARAMS): Remove.  All uses removed.
85112         (ARRAY_CARDINALITY): Do not bother to #undef.
85113         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
85114         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
85115         Remove unnecessary parentheses.
85116         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
85117         Insert necessary parentheses.
85118         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
85119         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
85120
85121 2002-11-19  Bruno Haible  <bruno@clisp.org>
85122
85123         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
85124         * lib/mbswidth.h: Include <stddef.h>, for size_t.
85125
85126         * lib/mbswidth.h (PARAMS): Remove macro.
85127         (mbswidth, mbsnwidth): Use ANSI C function declarations.
85128         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
85129
85130         * lib/gcd.h (PARAMS): Remove macro.
85131         (gcd): Use ANSI C function declarations.
85132         * lib/gcd.c (gcd): Likewise.
85133
85134 2002-11-15  Bruno Haible  <bruno@clisp.org>
85135
85136         * lib/strcspn.c: Include <stddef.h>.
85137         (strcspn): Use ANSI C function declaration. Change return type to
85138         size_t. Use NULL.
85139         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
85140         (strpbrk): Use NULL.
85141         * lib/strpbrk.h (PARAMS): Remove macro.
85142         (strpbrk): Use ANSI C function declaration.
85143         * lib/strstr.c: Don't include <sys/types.h>.
85144         * lib/strstr.h (PARAMS): Remove macro.
85145         (strstr): Use ANSI C function declarations.
85146
85147 2002-11-14  Karl Berry  <karl@gnu.org>
85148
85149         * config/mkinstalldirs: `do' on separate line, instead of
85150         `for var; do'.
85151
85152 2002-11-06  Bruno Haible  <bruno@clisp.org>
85153
85154         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
85155         * lib/gcd.c (gcd): Likewise.
85156
85157 2002-11-05  Bruno Haible  <bruno@clisp.org>
85158
85159         * lib/gcd.h: New file, from gettext-0.11.5.
85160         * lib/gcd.c: New file, from gettext-0.11.5.
85161
85162 2002-11-05  Bruno Haible  <bruno@clisp.org>
85163
85164         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
85165         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
85166         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
85167         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
85168
85169         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
85170         <libintl.h>.
85171         * lib/makepath.c: Include gettext.h instead of <locale.h> and
85172         <libintl.h>.
85173
85174         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
85175         * lib/human.c: Include gettext.h instead of <libintl.h>.
85176         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
85177         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
85178         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
85179         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
85180         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
85181         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
85182         (textdomain): Remove definition.
85183         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
85184
85185         * lib/long-options.c: Remove include of <libintl.h> and definition of
85186         _.
85187         * lib/same.c: Remove include of <libintl.h> and definition of _.
85188
85189 2002-11-04  Owen Taylor  <otaylor@redhat.com>
85190
85191         * lib/config.charset: A few additions for Solaris.
85192
85193 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
85194
85195         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
85196         * lib/localcharset.c (locale_charset): Declare as extern "C".
85197
85198 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
85199
85200         * lib/config.charset: msdos in uk_UA uses CP1125.
85201
85202 2002-11-04  Bruno Haible  <bruno@clisp.org>
85203
85204         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
85205         * lib/strcase.h: New file, from GNU gettext-0.11.5.
85206         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
85207         * lib/strstr.h: New file, from GNU gettext-0.11.5.
85208         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
85209
85210 2002-11-04  Bruno Haible  <bruno@clisp.org>
85211
85212         * lib/localcharset.c (locale_charset): Don't return an empty string.
85213
85214 2002-11-04  Bruno Haible  <bruno@clisp.org>
85215
85216         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
85217         aliases.
85218
85219 2002-11-04  Bruno Haible  <bruno@clisp.org>
85220
85221         * lib/config.charset: Update for newest glibc. Add canonical names
85222         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
85223
85224 2002-11-04  Bruno Haible  <bruno@clisp.org>
85225
85226         * lib/config.charset: Add support for NetBSD.
85227
85228 2002-11-04  Bruno Haible  <bruno@clisp.org>
85229
85230         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
85231
85232 2002-11-01  Bruno Haible  <bruno@clisp.org>
85233
85234         * configure.in: Add AC_CONFIG_AUX_DIR call.
85235         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
85236         test/Makefile.
85237         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
85238
85239 2002-09-28  Karl Berry  <karl@gnu.org>
85240
85241         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
85242         installed automake until the next release, since changes have been
85243         made.
85244
85245 2002-09-25  Karl Berry  <karl@gnu.org>
85246
85247         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
85248         * lib/getopt*: copy from libc/posix.
85249         * lib/gettext.h: copy from gettext.
85250         * lib/.cppi-disable: add strdup.c, gettext.h.
85251
85252 2002-09-25  Karl Berry  <karl@gnu.org>
85253
85254         * config/srclist.txt: enable gettext.h check.
85255         * config/config.{guess,sub}: update from prep.
85256         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
85257                 from automake 1.6.3.
85258         See srclist*.
85259
85260 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
85261
85262         * regex.c (PATFETCH): Remove the translating fetch.
85263         (PATFETCH_RAW): Rename to PATFETCH.
85264         (set_image_of_range): New fun.
85265         (SET_RANGE_TABLE_WORK_AREA): Use it.
85266         (regex_compile): Don't translate the pattern chars so eagerly.
85267         Only do it when inserting an `exactn' bytecode or when handling
85268         a char-range.
85269         (mutually_exclusive_p): Avoid empty statement.
85270
85271 2002-07-06  Jim Meyering  <meyering@lucent.com>
85272
85273         * m4/README: Don't mention Makefile.am.in.
85274         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
85275
85276 2002-07-01  Jim Meyering  <meyering@lucent.com>
85277
85278         * lib/c-stack.c: Include sys/time.h.
85279         From Volker Borchert.
85280
85281 2002-06-26  Paul Eggert  <eggert@twinsun.com>
85282
85283         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
85284
85285 2002-06-26  Paul Eggert  <eggert@twinsun.com>
85286
85287         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
85288         New macro.  Use it uniformly instead of
85289         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
85290         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
85291         reported by Vin Shelton.
85292
85293 2002-06-22  Paul Eggert  <eggert@twinsun.com>
85294
85295         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
85296         Do not assume SA_SIGINFO behavior.
85297         Bug reported by Jim Meyering on NetBSD 1.5.2.
85298
85299 2002-06-22  Jim Meyering  <meyering@lucent.com>
85300
85301         * m4/c-stack.m4: New file, from diffutils-2.8.2.
85302         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
85303
85304         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
85305         now that configure.ac uses AC_GNU_SOURCE.
85306         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
85307         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
85308
85309         Update to latest tools.  Suggestions from Paul Eggert.
85310         * m4/stdbool.m4: New file, from diffutils-2.8.2.
85311         * m4/gnu-source.m4: Update from diffutils-2.8.2.
85312         * m4/fnmatch.m4: Likewise.
85313         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
85314         to AC_HEADER_STDBOOL
85315
85316 2002-06-22  Jim Meyering  <meyering@lucent.com>
85317
85318         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
85319         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
85320
85321 2002-06-22  Jim Meyering  <meyering@lucent.com>
85322
85323         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
85324
85325         * lib/exitfail.c, exitfail.h: Likewise.
85326         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
85327
85328         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
85329         of fnmatch.h.
85330         (EXTRA_DIST): Add fnmatch_loop.c.
85331         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
85332
85333         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
85334         * lib/fnmatch.c: Update from diffutils-2.8.2.
85335         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
85336         * lib/fnmatch.h: Remove file.
85337
85338 2002-06-21  Jim Meyering  <meyering@lucent.com>
85339
85340         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
85341         * m4/mbrtowc.m4: Likewise.
85342
85343         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
85344         * m4/mbswidth.m4: Reflect name change:
85345         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
85346         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
85347
85348         * m4/lib-link.m4: Update from gettext-0.11.2.
85349         * m4/gettext.m4: Likewise.
85350
85351         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
85352         From Alfred M. Szmidt.
85353
85354 2002-06-18  Paul Eggert  <eggert@twinsun.com>
85355
85356         * lib/file-type.h: Report an error if neither S_ISREG nor
85357         S_IFREG is defined, instead of using a test specific to glibc
85358         2.2.  This should be safe, since POSIX requires S_ISREG and
85359         Unix Version 7 had S_IFREG.  We don't need to check for
85360         <sys/types.h> since we don't use any symbols that it defines.
85361
85362 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
85363
85364         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
85365         $@-t, so that each temporary file name is unique and valid in the first
85366         8 characters, for operation under DOS.
85367
85368 2002-06-15  Paul Eggert  <eggert@twinsun.com>
85369
85370         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
85371
85372 2002-06-15  Jim Meyering  <meyering@lucent.com>
85373
85374         Work even with DJGPP 2.03, which lacks support for symlinks.
85375         From Richard Dawe.
85376         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
85377         is defined.
85378         * lib/lchown.c (S_ISLNK): Likewise.
85379
85380 2002-06-15  Jim Meyering  <meyering@lucent.com>
85381
85382         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
85383         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
85384         have been included before this file.
85385
85386 2002-06-14  Jim Meyering  <meyering@lucent.com>
85387
85388         * lib/file-type.h: Use the version from diffutils-2.8.2.
85389         * lib/file-type.c: Likewise.
85390
85391 2002-06-07  Jim Meyering  <meyering@lucent.com>
85392
85393         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
85394         They're needed at least for NetBSD 1.5.2.
85395         ($statxfs_includes): Include those same headers.
85396         ($statxfs_includes): Include sys/vfs.h if available.
85397         ($statxfs_includes): Likewise for sys/statvfs.h.
85398         Check for the following members in both structs statfs and statvfs:
85399         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
85400
85401 2002-06-01  Jim Meyering  <meyering@lucent.com>
85402
85403         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
85404         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
85405
85406 2002-05-28  Jim Meyering  <meyering@lucent.com>
85407
85408         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
85409         Reported by Volker Borchert.
85410
85411 2002-05-27  Jim Meyering  <meyering@lucent.com>
85412
85413         Fix a problem seen only on nonconforming systems whereby ls.c's
85414         use of localtime, and then of gettimeofday would cause trouble:
85415         the localtime call used to initialize rpl_gettimeofday's save
85416         mechanism would clobber ls's current local time information so
85417         that in any long listing the first file would always be listed
85418         with date 1970-01-01.  Analysis by Volker Borchert.
85419
85420         * lib/gettimeofday.c (localtime): Undefine.
85421         (rpl_localtime): New function.
85422
85423 2002-05-27  Jim Meyering  <meyering@lucent.com>
85424
85425         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
85426         localtime.
85427
85428         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
85429         use the replacement function; it wouldn't resolve at link time.
85430         Reported by Volker Borchert.
85431
85432 2002-05-22  Jim Meyering  <meyering@lucent.com>
85433
85434         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
85435         file-type.h.
85436         * lib/file-type.h: New file.
85437         * lib/file-type.c (file_type): New file/function.  Extracted from
85438         diffutils.
85439
85440 2002-04-30  Jim Meyering  <meyering@lucent.com>
85441
85442         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
85443
85444 2002-04-29  Paul Eggert  <eggert@twinsun.com>
85445
85446         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
85447
85448 2002-04-29  Paul Eggert  <eggert@twinsun.com>
85449
85450         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
85451         Do not check for alloca.h (no longer used) or stdbool.h (was never
85452         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
85453
85454 2002-04-29  Paul Eggert  <eggert@twinsun.com>
85455
85456         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
85457
85458 2002-04-29  Jim Meyering  <meyering@lucent.com>
85459
85460         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
85461         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
85462         Use AC_FUNC_STRNLEN here instead.
85463
85464         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
85465         With autoconf-2.53a, it's part of AC_PROG_CC.
85466
85467 2002-04-28  Paul Eggert  <eggert@twinsun.com>
85468
85469         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
85470         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
85471
85472 2002-04-28  Paul Eggert  <eggert@twinsun.com>
85473
85474         * lib/sig2str.h, lib/sig2str.c: New files.
85475         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
85476
85477 2002-04-28  Paul Eggert  <eggert@twinsun.com>
85478
85479         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
85480         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
85481         of 127, since 64 is the largest conceivable number for ancient
85482         nonstandard hosts.
85483         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
85484
85485 2002-04-28  Jim Meyering  <meyering@lucent.com>
85486
85487         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
85488
85489 2002-04-24  Jim Meyering  <meyering@lucent.com>
85490
85491         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
85492         (jm_PREREQ): Use it.
85493
85494         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
85495         mach/mach.h fcntl.h.
85496         Check for this function: setlocale.
85497
85498 2002-04-24  Jim Meyering  <meyering@lucent.com>
85499
85500         * lib/gettext.h: New file, from Gettext.
85501         * lib/Makefile.am (INCLUDES): Remove -I../intl.
85502         (libfetish_a_SOURCES): Add gettext.h.
85503
85504 2002-04-16  Jim Meyering  <meyering@lucent.com>
85505
85506         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
85507         ut_pid, ut_id, ut_exit.
85508
85509 2002-04-16  Jim Meyering  <meyering@lucent.com>
85510
85511         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
85512         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
85513         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
85514
85515 2002-04-12  Jim Meyering  <meyering@lucent.com>
85516
85517         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
85518         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
85519         existence of the getmntinfo function.  Needed for Darwin 5.3.
85520
85521         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
85522         This is necessary at least on Darwin 5.3.
85523
85524         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
85525         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
85526         strnlen.o in the library, and that makes some versions of ranlib
85527         object.
85528
85529 2002-04-12  Jim Meyering  <meyering@lucent.com>
85530
85531         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
85532
85533 2002-04-09  Jim Meyering  <meyering@lucent.com>
85534
85535         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
85536         to be more precise.  Rather than saying we're checking whether the
85537         function `works', say what we're testing.
85538         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
85539         Reported by Bruno Haible.
85540
85541 2002-03-10  Jim Meyering  <meyering@lucent.com>
85542
85543         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
85544         Suggestion from Santiago Vila.
85545
85546 2002-03-08  Jim Meyering  <meyering@lucent.com>
85547
85548         * lib/rename.c: Mention that this wrapper is needed also on
85549         mips-dec-ultrix4.4 systems.
85550
85551 2002-03-02  Jim Meyering  <meyering@lucent.com>
85552
85553         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
85554         not HAVE_CLOCK_SETTIME.
85555
85556 2002-02-27  Paul Eggert  <eggert@twinsun.com>
85557
85558         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
85559         Check for clock_settime.
85560
85561 2002-02-27  Paul Eggert  <eggert@twinsun.com>
85562
85563         * lib/nanosleep.h: Rename to....
85564         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
85565
85566         * lib/gettime.c: New file.
85567         * lib/settime.c: New file.
85568         * lib/stime.c: Remove.
85569
85570         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
85571         timespec.h.  Remove nanosleep.h.
85572
85573 2002-02-25  Paul Eggert  <eggert@twinsun.com>
85574
85575         * m4/acl.m4: New file.
85576         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
85577         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
85578
85579 2002-02-25  Paul Eggert  <eggert@twinsun.com>
85580
85581         * lib/acl.c, lib/acl.h: New files.
85582         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
85583
85584 2002-02-24  Jim Meyering  <meyering@lucent.com>
85585
85586         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
85587         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
85588         cause trouble.  Reported by Nelson Beebe.
85589
85590 2002-02-23  Paul Eggert  <eggert@twinsun.com>
85591
85592         * lib/path-concat.c (xpath_concat): Reorder code to pacify
85593         compilers that don't know that xalloc_die never returns.
85594
85595 2002-02-20  Jim Meyering  <meyering@lucent.com>
85596
85597         * lib/getdate.c: Regenerate using bison-1.33.
85598
85599 2002-02-17  Jim Meyering  <meyering@lucent.com>
85600
85601         * config/config.guess (main): Don't use `head -1'; it's no longer
85602         portable. Use `sed 1q' instead.
85603
85604 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
85605
85606         * m4/codeset.m4: Upgrade to gettext-0.11.
85607         * m4/gettext.m4: Upgrade to gettext-0.11.
85608         * m4/glibc21.m4: Upgrade to gettext-0.11.
85609         * m4/iconv.m4: Upgrade to gettext-0.11.
85610         * m4/isc-posix.m4: Upgrade to gettext-0.11.
85611         * m4/lcmessage.m4: Upgrade to gettext-0.11.
85612         * m4/lib-ld.m4: New file, from gettext-0.11.
85613         * m4/lib-link.m4: New file, from gettext-0.11.
85614         * m4/lib-prefix.m4: New file, from gettext-0.11.
85615         * m4/progtest.m4: Upgrade to gettext-0.11.
85616
85617 2002-02-15  Paul Eggert  <eggert@twinsun.com>
85618
85619         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
85620         (jm_PREREQ): Use it.
85621
85622 2002-02-15  Paul Eggert  <eggert@twinsun.com>
85623
85624         * lib/posixver.c, lib/posixver.h: New files.
85625         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
85626
85627 2002-02-02  Paul Eggert  <eggert@twinsun.com>
85628             Bruno Haible  <bruno@clisp.org>
85629
85630         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
85631         (fwrite_success_callback): New declaration.
85632         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
85633         print_unicode_char. Call failure callback instead of error.
85634         (fwrite_success_callback): New function.
85635         (exit_failure_callback): New function.
85636         (fallback_failure_callback): New function.
85637         (print_unicode_char): Call unicode_to_mb.
85638
85639 2002-01-26  Jim Meyering  <meyering@lucent.com>
85640
85641         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
85642         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
85643
85644 2002-01-26  Jim Meyering  <meyering@lucent.com>
85645
85646         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
85647
85648 2002-01-22  Paul Eggert  <eggert@twinsun.com>
85649
85650         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
85651
85652 2002-01-22  Jim Meyering  <meyering@lucent.com>
85653
85654         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
85655         Otherwise, some versions of automake would omit the rule that makes
85656         Makefile from Makefile.in.
85657
85658 2002-01-21  Paul Eggert  <eggert@twinsun.com>
85659
85660         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
85661         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
85662         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
85663         (memcoll): Set errno to zero if there is no error.
85664
85665         * lib/quotearg.c (quotearg_buffer_restyled):
85666         Fix bug with quoting buffers containing NUL when backslashing escapes.
85667         This bug was exposed by the other changes in this patch.
85668         (quotearg_n_options): New arg ARGSIZE.
85669         All callers changed.
85670         (quoting_options_from_style): New function.
85671         (quotearg_n_style): Use it.
85672         (quotearg_n_style_mem): New function.
85673
85674         * lib/quotearg.h (quotearg_n_style_mem): New function.
85675
85676 2002-01-19  Jim Meyering  <meyering@lucent.com>
85677
85678         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
85679         Remove useless quotes: DF_PROG="df".
85680         * m4/strnlen.m4: New file.
85681
85682 2002-01-16  Paul Eggert  <eggert@twinsun.com>
85683
85684         * lib/backupfile.c (ISDIGIT): Comment fix.
85685         * lib/getdate.y (ISDIGIT): Likewise.
85686         * lib/posixtm.c (ISDIGIT, year): Likewise.
85687         * lib/strverscmp.c (ISDIGIT): Likewise.
85688         * lib/userspec.c (ISDIGIT): Likewise.
85689
85690 2002-01-16  Jim Meyering  <meyering@lucent.com>
85691
85692         * lib/getdate.y: Add three semicolons, each just before a closing
85693         brace. Bison (as of version 1.31) no longer papers over that mistake.
85694
85695 2002-01-05  Jim Meyering  <meyering@lucent.com>
85696
85697         * lib/version-etc.c (version_etc_copyright): Update copyright year.
85698
85699 2001-12-19  Paul Eggert  <eggert@twinsun.com>
85700
85701         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
85702         not silently exit merely because the output buffer happens to
85703         have nothing pending.
85704
85705 2001-12-18  Paul Eggert  <eggert@twinsun.com>
85706
85707         See the big note in ../ChangeLog.
85708         * lib/human.c (suffixes): Prefer K to k for 1024.
85709         (generate_suffix_backwards): New function.
85710         (human_readable_inexact): Use it.
85711         * lib/xstrtol.c (__xstrtol): If there is no number but there
85712         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
85713         Accept 'K' as well as 'k'.
85714
85715 2001-12-15  Jim Meyering  <meyering@lucent.com>
85716
85717         * lib/regex.h (__restrict_arr): Update from libc.
85718
85719         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
85720         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
85721         (STREQ): Define.
85722
85723 2001-12-14  Jim Meyering  <meyering@lucent.com>
85724
85725         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
85726         Suggestion from Bruno Haible.
85727
85728 2001-12-10  Jim Meyering  <meyering@lucent.com>
85729
85730         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
85731         xrealloc, Instead, include "xalloc.h".
85732         (initbuffer): Don't cast xmalloc return value to char*.
85733         (readline): Reword comment.
85734         Don't cast xrealloc return value to char*
85735         Return NULL, not 0.
85736
85737 2001-12-09  Jim Meyering  <meyering@lucent.com>
85738
85739         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
85740         about `signed and unsigned type in conditional expression'.
85741         * lib/posixtm.c (posix_time_parse): Likewise.
85742
85743         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
85744
85745         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
85746         to avoid a pedantic warning.
85747
85748         * lib/getstr.c: Don't include assert.h.
85749         (getstr): Remove warning-evoking assertions.
85750         Return -1 if offset parameter is out of bounds.
85751         Change the type of a local from int to size_t.
85752
85753         * lib/strftime.c (my_strftime_localtime_r): Include this function
85754         definition in the `#if ! HAVE_TM_GMTOFF' block.
85755
85756         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
85757         Include xalloc.h instead.
85758
85759 2001-12-02  Jim Meyering  <meyering@lucent.com>
85760
85761         * lib/tempname.c: Don't declare getenv, thus reverting the change of
85762         2001-11-18.  It's no longer necessary, now that stdlib.h is always
85763         included.
85764
85765         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
85766         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
85767
85768 2001-11-30  Akim Demaille  <akim@epita.fr>
85769
85770         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
85771         before being defined.
85772
85773 2001-11-27  Paul Eggert  <eggert@twinsun.com>
85774
85775         * lib/quotearg.h (quotearg_n, quotearg_n_style):
85776         First arg is int, not unsigned.
85777         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
85778         (SIZE_MAX, UINT_MAX): New macros.
85779         (quotearg_n_options): Abort if N is negative.
85780         Avoid overflow check on hosts where size_t is 64 bits and int
85781         is 32 bits, as overflow is impossible there.
85782         Fix off-by-one typo that caused unnecessary reallocation.
85783
85784 2001-11-27  Jim Meyering  <meyering@lucent.com>
85785
85786         * lib/tempname.c: Merge with version from libc.
85787         * lib/regex.c: Likewise.
85788
85789         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
85790         systems for which STDC_HEADERS is 0, it was not included, resulting in
85791         a warning about an integer-to-pointer conversion problem with getenv.
85792         Reported by Volker Borchert.
85793
85794 2001-11-26  Jim Meyering  <meyering@lucent.com>
85795
85796         * lib/gtod.h: Remove file.
85797         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
85798         * lib/gettimeofday.c: Don't include gtod.h.
85799         (GTOD_init): Remove function.
85800         (rpl_gettimeofday): Do its job here instead, rather than aborting.
85801         Suggestion from Volker Borchert.
85802
85803 2001-11-23  Jim Meyering  <meyering@lucent.com>
85804
85805         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
85806         it.
85807         * lib/hash.c (struct hash_table): Define it here instead.
85808
85809 2001-11-22  Jim Meyering  <meyering@lucent.com>
85810
85811         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
85812
85813 2001-11-20  Jim Meyering  <meyering@lucent.com>
85814
85815         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
85816         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
85817
85818 2001-11-19  Jim Meyering  <meyering@lucent.com>
85819
85820         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
85821         directory.  Use "conftestXXXXXX" as the template.
85822         Suggestion from Paul Eggert.
85823
85824         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
85825         immediately, so the test doesn't mistakenly hit the max-open-files
85826         limit.
85827
85828 2001-11-18  Paul Eggert  <eggert@twinsun.com>
85829
85830         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
85831         (TEMPORARIES): New macro.
85832         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
85833         removes an artificial limitation (e.g. HP-UX 10.20, where
85834         TMP_MAX is 17576).
85835
85836 2001-11-18  Jim Meyering  <meyering@lucent.com>
85837
85838         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
85839
85840 2001-11-18  Jim Meyering  <meyering@lucent.com>
85841
85842         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
85843         on SunOS 4.
85844
85845         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
85846         files will be created before anything else.
85847
85848 2001-11-17  Paul Eggert  <eggert@twinsun.com>
85849
85850         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
85851         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
85852
85853 2001-11-17  Jim Meyering  <meyering@lucent.com>
85854
85855         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
85856         Prompted by a report from Bob Proulx.
85857
85858         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
85859         Instead, require UTILS_FUNC_MKSTEMP.
85860
85861 2001-11-17  Jim Meyering  <meyering@lucent.com>
85862
85863         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
85864         Now, that's done as part of AC_FUNC_STRTOD.
85865
85866 2001-11-17  Jim Meyering  <meyering@lucent.com>
85867
85868         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
85869         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
85870         rather than group writable.  Patch by Juan F. Codagnone.
85871
85872         * lib/readtokens.c: Remove explicit declarations of xmalloc and
85873         xrealloc, Instead, include "xalloc.h".
85874
85875         * lib/mountlist.c: Include unlocked-io.h after all system headers.
85876         Remove explicit declarations of xmalloc, xrealloc,
85877         and xstrdup.  Instead, include "xalloc.h".
85878
85879         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
85880         unlocked-io.h.
85881         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
85882         Likewise.
85883         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
85884
85885         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
85886         Reported by Padraig Brady.
85887
85888         * lib/mkstemp.c: #undef mkstemp.
85889         Include config.h.
85890         (rpl_mkstemp): Rename from mkstemp.
85891         Protoize.
85892
85893 2001-11-16  Jim Meyering  <meyering@lucent.com>
85894
85895         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
85896         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
85897         determine the amount of total physical memory, use pstat_getstatic.
85898         HPUX-11 doesn't define _SC_PHYS_PAGES.
85899         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
85900         If sysconf couldn't be used to determine the amount of available
85901         physical memory, use both pstat_getstatic and pstat_getdynamic.
85902         Based on a patch from Bob Proulx.
85903
85904 2001-11-10  Jim Meyering  <meyering@lucent.com>
85905
85906         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
85907         (jm_PREREQ): Use it.
85908
85909 2001-11-09  Jim Meyering  <meyering@lucent.com>
85910
85911         * m4/jm-macros.m4: Require autoconf-2.52f.
85912         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
85913         Use these AC_-prefixed names, not the AM_-prefixed ones.
85914
85915         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
85916
85917 2001-11-05  Jim Meyering  <meyering@lucent.com>
85918
85919         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
85920
85921 2001-11-04  Jim Meyering  <meyering@lucent.com>
85922
85923         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
85924         $DEFS.
85925
85926 2001-11-03  Jim Meyering  <meyering@lucent.com>
85927
85928         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
85929         of AC_DEFUN.
85930
85931         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
85932         know the name of the variable in the macro definition.
85933
85934 2001-11-03  Jim Meyering  <meyering@lucent.com>
85935
85936         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
85937         in argmatch_to_argument call.
85938
85939         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
85940         argument.
85941
85942         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
85943         e.g., a fault due to an attempt to free a NULL pointer.
85944
85945 2001-11-01  Jim Meyering  <meyering@lucent.com>
85946
85947         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
85948         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
85949
85950 2001-11-01  Jim Meyering  <meyering@lucent.com>
85951
85952         * lib/dirfd.c, lib/dirfd.h: New files.
85953         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
85954
85955         * lib/hash.c (hash_print) [TESTING]: Clean up.
85956
85957 2001-10-22  Paul Eggert  <eggert@twinsun.com>
85958
85959         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
85960         to avoid a warning if -Wall.
85961
85962 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
85963
85964         * README: New file
85965         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
85966         (per RMS's instructions, this is now the canonical source)
85967         * lgpl/, gpl/: New directories.
85968
85969 2001-10-21  Paul Eggert  <eggert@twinsun.com>
85970
85971         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
85972
85973 2001-10-21  Jim Meyering  <meyering@lucent.com>
85974
85975         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
85976         this code would end up calling gettext even in packages built
85977         with --disable-nls.
85978         * lib/getopt.c (_): Likewise.
85979         * lib/regex.c (_): Likewise.
85980
85981 2001-10-20  Paul Eggert  <eggert@twinsun.com>
85982
85983         * m4/error.m4 (jm_PREREQ_ERROR):
85984         Do not invoke AC_CHECK_FUNCS with strerror_r, as
85985         AC_FUNC_STRERROR_R does that.
85986         Check for strerror declaration.
85987
85988         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
85989         are supposed to have them these days.
85990         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
85991         Merge changes from latest Autoconf CVS.
85992         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
85993         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
85994         POSIX decided to standardize on the int flavor of strerror_r.
85995
85996 2001-10-20  Paul Eggert  <eggert@twinsun.com>
85997
85998         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
85999         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
86000         Use strerror_r that is only a macro, even if it is not a function.
86001         (strerror): Check for HAVE_DECL_STRERROR before declaring.
86002         (private_strerror): Use prototypes, not old-style function definition.
86003         (print_errno_message): New function.
86004         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
86005         char*-flavored one.
86006         (error_tail, error, error_at_line): Use it.
86007
86008 2001-10-11  Jim Meyering  <meyering@lucent.com>
86009
86010         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
86011         and quote_n (1, ... to avoid clobbering a buffer.
86012
86013 2001-10-05  Jim Meyering  <meyering@lucent.com>
86014
86015         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
86016         hash-pjw.h.
86017         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
86018         * lib/hash-pjw.h: New file.
86019
86020 2001-09-30  Jim Meyering  <meyering@lucent.com>
86021
86022         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
86023         `struct fsstat' has the `f_fstypename' member.
86024         Use that to define FS_TYPE, which is now used to make
86025         the getfsstat link test tighter.
86026
86027 2001-09-30  Jim Meyering  <meyering@lucent.com>
86028
86029         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
86030         Include <sys/ucred.h>, for Apple Darwin.
86031         Include sys/mount.h and sys/fs_types.h only if available.
86032         (FS_TYPE): Define.
86033         (read_filesystem_list): Use FS_TYPE.
86034
86035 2001-09-29  Paul Eggert  <eggert@twinsun.com>
86036
86037         * lib/exclude.c (excluded_filename): 0 -> false, since it's
86038         a boolean context.
86039
86040 2001-09-29  Jim Meyering  <meyering@lucent.com>
86041
86042         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
86043         [one-argument getmntent function]): Include stdio.h before mntent.h.
86044         SunOS 4.1.x needs it for the declaration of `FILE'.
86045         Patch by Volker Borchert.
86046
86047         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
86048         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
86049         sys/fs_types.h, and make the link-test for getfsstat guard #include
86050         directives with appropriate #if HAVE_*_H tests so that we can
86051         detect getfsstat on Apple Darwin1.3.7 systems.
86052         Reported by Nelson Beebe.
86053         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
86054
86055 2001-09-28  Paul Eggert  <eggert@twinsun.com>
86056
86057         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
86058         #defines strtoimax.  Also treat the other strto* functions
86059         like strtoimax.
86060
86061         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
86062         Check for strtoul and strtoumax,
86063         as those declarations are made even in the signed case.
86064         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
86065         Likewise, for strtol and strtoimax.
86066
86067 2001-09-28  Paul Eggert  <eggert@twinsun.com>
86068
86069         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
86070         #defines strtoimax.  Also treat the other strto* functions
86071         like strtoimax.
86072
86073         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
86074         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
86075         (strtoimax, strtoumax): Do not declare if already defined as a macro.
86076
86077 2001-09-26  Jim Meyering  <meyering@lucent.com>
86078
86079         Most macros in unlocked-io.h had the wrong number of arguments.
86080         * lib/gen-uio: New script.
86081         (USE_UNLOCKED_IO): Define to 1 if not already defined.
86082         * lib/unlocked-io.hin: Remove file.
86083         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
86084         rather than trying to embed it here.
86085         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
86086         Reported by Padraig Brady.
86087
86088 2001-09-25  Volker Borchert  <bt@teknon.de>
86089
86090         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
86091         `result'.
86092
86093 2001-09-24  Jim Meyering  <meyering@lucent.com>
86094
86095         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
86096
86097 2001-09-23  Jim Meyering  <meyering@lucent.com>
86098
86099         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
86100         instead of the mere test for existence of mntent.h.  The latter
86101         would get a false-positive on AIX 3.4 systems.
86102         In the outer getmntent if-block, don't die if neither of the getmntent
86103         tests succeeds.  Instead, just fall through and continue with the
86104         remaining tests.
86105
86106 2001-09-23  Jim Meyering  <meyering@lucent.com>
86107
86108         * lib/mountlist.c: Remove useless parentheses in #if directives.
86109         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
86110         the deprecated MOUNTED symbol is no longer defined in mntent.h.
86111
86112 2001-09-22  Jim Meyering  <meyering@lucent.com>
86113
86114         * m4/gettext.m4: New file.  From gettext.
86115         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
86116         * m4/progtest.m4: Likewise
86117         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
86118         * m4/glibc21.m4: Likewise.
86119
86120         * m4/libintl.m4: Remove.  No longer used.
86121
86122 2001-09-22  Jim Meyering  <meyering@lucent.com>
86123
86124         * lib/localcharset.c: Update from latest gettext.
86125         * lib/config.charset: Likewise.
86126
86127 2001-09-20  Jim Meyering  <meyering@lucent.com>
86128
86129         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
86130         strtoimax.
86131         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
86132         strtoumax.
86133
86134 2001-09-20  Jim Meyering  <meyering@lucent.com>
86135
86136         * lib/xstrtol.c (strtoimax): Guard declaration with
86137         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
86138         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
86139         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
86140         (strtoumax): Likewise, for completeness (it wasn't necessary).
86141
86142 2001-09-17  Paul Eggert  <eggert@twinsun.com>
86143
86144         * lib/strtoimax.c (HAVE_LONG_LONG):
86145         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
86146         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
86147         to work around bug in IBM C compiler.
86148
86149 2001-09-17  Jim Meyering  <meyering@lucent.com>
86150
86151         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
86152         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
86153         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
86154         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
86155         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
86156         whenever the right hand side need not be expanded by the shell.
86157
86158 2001-09-16  Paul Eggert  <eggert@twinsun.com>
86159
86160         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
86161         library.  It's not correct, as some older glibcs are buggy.
86162         fnmatch wasn't fixed until glibc 2.2.
86163
86164         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
86165         special shell magic here.
86166
86167 2001-09-16  Jim Meyering  <meyering@lucent.com>
86168
86169         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
86170         * m4/jm-macros.m4: Require it.
86171
86172 2001-09-16  Jim Meyering  <meyering@lucent.com>
86173
86174         * lib/mkdir.c: New file.
86175
86176 2001-09-15  Jim Meyering  <meyering@lucent.com>
86177
86178         * m4/jm-macros.m4: Check for help2man.
86179
86180 2001-09-11  Jim Meyering  <meyering@lucent.com>
86181
86182         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
86183         The body, by Paul Eggert, was moved here from configure.in.
86184         * m4/jm-macros.m4: Require UTILS_HOST_OS.
86185
86186 2001-09-04  Paul Eggert  <eggert@twinsun.com>
86187
86188         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
86189         (jm_PREREQ): Use it.
86190
86191 2001-09-04  Paul Eggert  <eggert@twinsun.com>
86192
86193         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
86194         Use ssize_t, not int, to store result of readlink.
86195         Check for ssize_t overflow as well as size_t overflow,
86196         as POSIX says the result of readlink is implementation-defined
86197         when ssize_t overflows.
86198         Remove unnecessary cast to char*.
86199         Use free+malloc instead of realloc, as the storage doesn't need
86200         to be preserved and it's clearer and can be more efficient that way.
86201         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
86202         * lib/xreadlink.h (xreadlink): Update prototype.
86203
86204 2001-09-04  Paul Eggert  <eggert@twinsun.com>
86205
86206         * lib/xgetcwd.c: Revert some of the previous change; intead,
86207         fix the HAVE_GETCWD_NULL code to behave more like the
86208         !HAVE_GETCWD_NULL code used to.
86209
86210         Include "xalloc.h".
86211         (xgetcwd): Do not return NULL when memory is exhausted; instead,
86212         invoke xalloc_die.
86213
86214 2001-09-03  Paul Eggert  <eggert@twinsun.com>
86215
86216         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
86217         sys/param.h, as pathmax.h includes them.
86218
86219 2001-09-03  Paul Eggert  <eggert@twinsun.com>
86220
86221         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
86222         (jm_PREREQ_XGETCWD): New macro.
86223
86224         * m4/getcwd.m4: New file.
86225
86226 2001-09-03  Paul Eggert  <eggert@twinsun.com>
86227
86228         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
86229         like the HAVE_GETCWD_NULL code.
86230         Include pathmax.h if not HAVE_GETCWD.
86231         Do not include xalloc.h.
86232         (INITIAL_BUFFER_SIZE): New symbol.
86233         Do not use xmalloc / xrealloc, since the caller is responsible for
86234         handling errors.  Preserve errno around `free' during failure.
86235         Do not overrun buffer when using getwd.
86236
86237 2001-09-03  Paul Eggert  <eggert@twinsun.com>
86238
86239         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
86240         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
86241         getcwd (NULL, 0).
86242
86243 2001-09-03  Paul Eggert  <eggert@twinsun.com>
86244
86245         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
86246         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
86247         spotted by Jim Meyering.
86248
86249 2001-09-03  Jim Meyering  <meyering@lucent.com>
86250
86251         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
86252         failure.
86253
86254 2001-09-02  Jim Meyering  <meyering@lucent.com>
86255
86256         * lib/error.c: Update from GNU libc.
86257
86258 2001-09-01  Jim Meyering  <meyering@lucent.com>
86259
86260         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
86261         Used by df.
86262
86263 2001-09-01  Jim Meyering  <meyering@lucent.com>
86264
86265         * lib/xreadlink.c: New file.
86266         * lib/xreadlink.h: New file.
86267         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
86268         xreadlink.h.
86269
86270         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
86271         doesn't conflict with sparc Solaris 7's definition in
86272         /usr/include/sys/int_types.h.
86273
86274         * lib/exclude.c: Use `""', not `<>' to #include non-system header
86275         files.
86276         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
86277         and strncasecmp as r-values.  Unixware didn't have declarations.
86278
86279 2001-08-31  Paul Eggert  <eggert@twinsun.com>
86280
86281         * lib/xstrtol.h: Add copyright notice.
86282         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
86283         LONGINT_INVALID_SUFFIX_CHAR.
86284
86285 2001-08-31  Paul Eggert  <eggert@twinsun.com>
86286
86287         * lib/xstrtol.c (strtoimax): New decl.
86288
86289 2001-08-31  Paul Eggert  <eggert@twinsun.com>
86290
86291         * lib/xgetcwd.c: Don't include pathmax.h.
86292         Include stdlib.h and unistd.h if available.
86293         Include xalloc.h.
86294         (xmalloc, xstrdup, free): Remove decls.
86295         (xgetcwd): Don't assume sizes fit in unsigned.
86296         Check for overflow when computing sizes.
86297         Simplify reallocation code.
86298
86299 2001-08-31  Paul Eggert  <eggert@twinsun.com>
86300
86301         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
86302         a directory's st_size can have an arbitrary value, so the old
86303         usage could waste an arbitrary amount of memory.  All uses
86304         changed.
86305         * lib/savedir.h: Update prototype.
86306
86307 2001-08-31  Paul Eggert  <eggert@twinsun.com>
86308
86309         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
86310
86311         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
86312         old strtoimax.c.
86313
86314         Also, make the following further changes to make this file's
86315         configuration more similar to that of strtol.c:
86316         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
86317         (strtoumax, uintmax_t, strtoull, strtol): Remove.
86318         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
86319         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
86320         changed to signed values.
86321
86322         And make the following changes as well:
86323         Fix copyright notice, as 1999 was missing.
86324         (verify): New macro.
86325         (strtoimax): Check sizes at compile-time, not run-time.
86326         Prefer strtol to strtoll if both work.
86327         (main): Remove; it was not that useful and was a pain to maintain.
86328
86329         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
86330
86331 2001-08-31  Jim Meyering  <meyering@lucent.com>
86332
86333         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
86334         Use an initial, malloc'd, buffer of length 128 rather than
86335         a statically allocated one of length 1024.
86336
86337 2001-08-30  Paul Eggert  <eggert@twinsun.com>
86338
86339         Simplify code, partly by assuming autoconf 2.52 semantics.
86340
86341         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
86342
86343         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
86344         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
86345         All uses removed.
86346         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
86347         Move AC_REQUIRE to next-to-top level, to avoid confusion.
86348         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
86349         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
86350         jm_AC_HEADER_INTTYPES_H.
86351         * m4/jm-macros.m4 (jm_MACROS): Likewise.
86352
86353         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
86354
86355         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
86356         Quote first arg of AC_DEFUN.
86357         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
86358         since they are needed to parse the include file even if we need
86359         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
86360         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
86361         but with opposite signedness.
86362
86363 2001-08-30  Paul Eggert  <eggert@twinsun.com>
86364
86365         Merge 'exclude' changes from tar 1.13.22.
86366         This fixes one or two unlikely storage allocation overflow bugs,
86367         but doesn't change user-visible behavior otherwise.
86368
86369 2001-08-30  Paul Eggert  <eggert@twinsun.com>
86370
86371         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
86372         (jm_PREREQ_EXCLUDE): New macro.
86373
86374 2001-08-30  Paul Eggert  <eggert@twinsun.com>
86375
86376         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
86377         tm to be declared.
86378
86379 2001-08-30  Paul Eggert  <eggert@twinsun.com>
86380
86381         * lib/hash.c: Remove '2001' from copyright notice.
86382
86383 2001-08-30  Paul Eggert  <eggert@twinsun.com>
86384
86385         * lib/full-write.h: New file.
86386         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
86387         * lib/full-write.c: Correct credits, as cccp.c no longer
86388         exists and anyway it was so heavily changed from the old cccp
86389         code as to be unrecognizable.  Include full-write.h.
86390         (full_write): Return size_t, with short writes meaning failure.
86391         All callers changed.  This fixes a bug with large buffers
86392         on 64-bit hosts.
86393         * lib/utime.c: Include full-write.h.
86394
86395 2001-08-30  Paul Eggert  <eggert@twinsun.com>
86396
86397         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
86398         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
86399         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
86400         Include if available.
86401         (<xalloc.h>): Include
86402         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
86403         (verify): New macro.  Use it to verify that EXCLUDE macros do not
86404         collide with FNM macros.
86405         (struct patopts): New struct.
86406         (struct exclude): Use it, as exclude patterns now come with options.
86407         (new_exclude): Support above changes.
86408         (new_exclude, add_exclude_file):
86409         Initial size must now be a power of two to simplify overflow checking.
86410         (free_exclude, fnmatch_no_wildcards): New function.
86411         (excluded_filename): No longer requires options arg, as the options
86412         are determined by add_exclude.  Now returns bool, not int.
86413         (excluded_filename, add_exclude):
86414         Add support for the fancy new exclusion options.
86415         (add_exclude, add_exclude_file): Now takes int options arg.
86416         Check for arithmetic overflow when computing sizes.
86417         (add_exclude_file): xrealloc might modify errno, so don't
86418         realloc until after errno might be used.
86419
86420         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
86421         New macros.
86422         (free_exclude): New decl.
86423         (add_exclude, add_exclude_file): Now takes int options arg.
86424         (excluded_filename): No longer requires options arg, as the options
86425         are determined by add_exclude.  Now returns bool, not int.
86426
86427 2001-08-30  Paul Eggert  <eggert@twinsun.com>
86428
86429         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
86430
86431 2001-08-27  Jim Meyering  <meyering@lucent.com>
86432
86433         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
86434
86435         * lib/version-etc.c (N_): Remove definition.
86436         Revert most of last change.
86437         Instead, simply don't mark the `Copyright...' string for translation.
86438         Based on advice from Paul Eggert.
86439
86440         * lib/strtoxmax.c: Tweak comment.
86441
86442 2001-08-26  Jim Meyering  <meyering@lucent.com>
86443
86444         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
86445
86446         * m4/xstrtoimax.m4: New file.
86447         * m4/xstrtoumax.m4: Add comments explaining why we
86448         AC_REPLACE_FUNCS(strtol).
86449
86450 2001-08-26  Jim Meyering  <meyering@lucent.com>
86451
86452         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
86453         of copyright with `%s' so translators don't get an untranslated
86454         message in 2002.
86455         (COPYRIGHT_YEAR): Define.
86456         (version_etc): Use fprintf rather than fputs.
86457         Suggestion from Ulrich Drepper.
86458
86459         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
86460
86461         * lib/strtoll.c: New file, from GNU libc.
86462         * lib/xstrtoimax.c: New file.
86463
86464         * lib/xstrtol.h: Add xstrtoimax.
86465         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
86466         * lib/strtoimax.c: New file.  Likewise, but first define
86467         STRTOUXMAX_SIGNED.
86468
86469         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
86470         ...
86471         * lib/strtoxmax.c: ... then renamed to this.
86472
86473 2001-08-18  Paul Eggert  <eggert@twinsun.com>
86474
86475         * m4/inttypes.m4: Add AC_PREREQ(2.13).
86476         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
86477         (jm_AC_TYPE_INTMAX_T): New macro.
86478         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
86479
86480         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
86481
86482         * m4/longlong.m4: Renamed from ulonglong.m4.
86483         * m4/inttypes.m4: Renamed from inttypes_h.m4.
86484         * m4/uintmax_t.m4: Removed.
86485
86486 2001-08-13  Paul Eggert  <eggert@twinsun.com>
86487
86488         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
86489         Port to Solaris 8, where 'sed' requires a space after the 'r'
86490         command, and where sh dislikes "$/".  Clean up the spacing a bit.
86491         Redirect output to $tmp just once.
86492
86493 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
86494
86495         * lib/addext.c (<errno.h>): Include.
86496         (errno): Declare if not defined.
86497         (addext): Work correctly when pathconf returns -1 and leaves
86498         errno alone because there is no limit.  Also, work even if
86499         pathconf returns a value greater than SIZE_MAX.
86500
86501 2001-08-12  Jim Meyering  <meyering@lucent.com>
86502
86503         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
86504         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
86505         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
86506         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
86507         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
86508         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
86509         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
86510         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
86511         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
86512         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
86513         utime.m4, utimes.m4, xstrtoumax.m4:
86514         Quote the first argument in each use of AC_DEFUN.
86515
86516 2001-08-12  Jim Meyering  <meyering@lucent.com>
86517
86518         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
86519         Simply `return getcwd (NULL, 0);'.
86520         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
86521         Use 1300 as initial value for length, not PATH_MAX.
86522
86523         * lib/pathmax.h: Clean up cpp syntax.
86524
86525 2001-08-12  Jim Meyering  <meyering@lucent.com>
86526
86527         * lib/gettimeofday.c: New file.
86528         * lib/gtod.h: New file.
86529         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
86530
86531 2001-08-05  Jim Meyering  <meyering@lucent.com>
86532
86533         * m4/jm-macros.m4: Require autoconf-2.52.
86534
86535 2001-08-04  Jim Meyering  <meyering@lucent.com>
86536
86537         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
86538         stmt, to get in sync with glibc.
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.
86544
86545         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
86546         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
86547         with inverted sense.  All uses changed.
86548
86549         * lib/mbswidth.c: Don't include <limits.h>.
86550         Include <stdlib.h> and <string.h> unconditionally.
86551         (iswcntrl, mbsinit, ISCNTRL): New macros.
86552         (mbsnwidth): Use K&R style function declarations.
86553         Don't bother checking for MB_LEN_MAX == 1, since the compiler
86554         can optimize it when MB_CUR_MAX == 1.
86555         The width of control characters is zero, not 1.
86556
86557 2001-08-03  Paul Eggert  <eggert@twinsun.com>
86558
86559         The following changes are from gettext 0.10.39 as maintained by
86560         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
86561
86562         * m4/codeset.m4: Upgrade to serial AM1.
86563         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
86564         all uses changed.  Quote first arg of AC_DEFUN.
86565         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
86566
86567         * m4/iconv.m4: Upgrade to serial AM2.
86568         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
86569         Add --with-libconv-prefix.
86570         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
86571         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
86572         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
86573         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
86574         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
86575
86576         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
86577         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
86578         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
86579         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
86580         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
86581         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
86582         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
86583         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
86584         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
86585
86586         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
86587         string.h any more.
86588
86589         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
86590         not the default value.
86591
86592         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
86593         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
86594         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
86595         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
86596         Also check for iswcntrl, used for wcwidth fallback.
86597         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
86598         to Autoconf 2.13.
86599
86600 2001-08-03  Jim Meyering  <meyering@lucent.com>
86601
86602         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
86603         as it was in the original.  Reported by Paul Eggert.
86604
86605 2001-07-16  Jim Meyering  <meyering@lucent.com>
86606
86607         * m4/gettimeofday.m4: New file.
86608         Prompted by a report from Bernhard Baehr.
86609
86610 2001-07-15  Jim Meyering  <meyering@lucent.com>
86611
86612         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
86613         stuff. Now it's in ../Makefile.cfg.
86614
86615 2001-07-15  Jim Meyering  <meyering@lucent.com>
86616
86617         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
86618         (BUILT_SOURCES): Add unlocked-io.h.
86619         (io_functions): Define.
86620         (unlocked-io.h): New rule.
86621         (DISTCLEANFILES): Add unlocked-io.h.
86622         (all-local): Depend on unlocked-io.h, to ensure it is created.
86623
86624         * lib/unlocked-io.hin: New file
86625
86626         * lib/regex.c: Update from glibc.
86627
86628 2001-07-05  Jim Meyering  <meyering@lucent.com>
86629
86630         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
86631         recommendation.
86632         (libfetish_a_SOURCES): Put all .h files here instead.
86633         Remove a thus-exposed (better checks in automake) duplicate and
86634         two unnecessary .h files.
86635
86636 2001-07-04  Jim Meyering  <meyering@lucent.com>
86637
86638         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
86639         that generates jm-glibc-io.m4 so that it doesn't trigger any make
86640         distcheck failure.
86641
86642 2001-07-02  Jim Meyering  <meyering@lucent.com>
86643
86644         The following changes were prompted by suggestions from Bruno Haible.
86645
86646         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
86647         is now generated.
86648         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
86649         definition of EXTRA_DIST.
86650         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
86651         ensure that the generated file is created/updated whenever the list
86652         of $(unlocked_functions) is changed.
86653         (jm-glibc-io.m4): New rule.
86654         (unlocked-io.h): New rule -- currently unused.
86655
86656 2001-06-24  Jim Meyering  <meyering@lucent.com>
86657
86658         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
86659         unmatched right bracket, rather than kludging it with an extra,
86660         falsely-matching quote in a comment.  Patch by Akim Demaille.
86661
86662 2001-06-11  Jim Meyering  <meyering@lucent.com>
86663
86664         * lib/regex.c: Update from GNU libc.
86665
86666 2001-05-27  Jim Meyering  <meyering@lucent.com>
86667
86668         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
86669         Check for ut_type in struct utmp.
86670
86671 2001-05-27  Jim Meyering  <meyering@lucent.com>
86672
86673         * lib/readutmp.h (UT_TYPE): Define.
86674
86675 2001-05-24  Jim Meyering  <meyering@lucent.com>
86676
86677         * lib/argmatch.c: Include "quote.h".
86678         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
86679         quote function.  Reported by Göran Uddeborg.
86680
86681 2001-05-22  Jim Meyering  <meyering@lucent.com>
86682
86683         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
86684         now that we use the package-supplied version unconditionally.
86685         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
86686
86687 2001-05-21  Jim Meyering  <meyering@lucent.com>
86688
86689         * m4/regex.m4: Change a couple backticks to single quotes to avoid
86690         shell syntax errors.
86691
86692 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
86693
86694         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
86695
86696 2001-05-20  Paul Eggert  <eggert@twinsun.com>
86697
86698         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
86699         Don't bother to check library strftime, since
86700         we'll be using our own my_strftime function anyway.
86701         Define my_strftime instead of strftime.
86702
86703 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
86704
86705         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
86706         which is not yet declared.
86707
86708 2001-05-15  Jim Meyering  <meyering@lucent.com>
86709
86710         * m4/regex.m4: Use proper quoting so brackets appear in the test
86711         program.
86712         Reported by, and with help from, Bruno Haible.
86713
86714 2001-05-13  Jim Meyering  <meyering@lucent.com>
86715
86716         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
86717         undefined.
86718
86719 2001-05-11  Paul Eggert  <eggert@twinsun.com>
86720
86721         dirname code cleanup.  base_name now behaves more compatibly
86722         with POSIX basename when given file names that have trailing
86723         slashes, and similarly for dir_name.  Add new primitives
86724         base_len and dir_len.  Put the directory-name-related decls
86725         into dirname.h.
86726
86727         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
86728         * lib/backupfile.c (base_name): Likewise.
86729         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
86730         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
86731         * lib/makepath.c (strip_trailing_slashes): Likewise.
86732         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
86733         ISSLASH): Likewise.
86734         * lib/rename.c (strip_trailing_slashes): Likewise.
86735         * lib/same.c (base_name): Likewise.
86736         * lib/stripslash.c (ISSLASH): Likewise.
86737
86738         * lib/addext.c: Include <dirname.h> after size_t is defined.
86739         * lib/backupfile.c: Likewise.
86740
86741         * lib/addext.c (addext): Use base_len to trim redundant
86742         trailing slashes instead of doing it ourselves.
86743         But do not trim the last slash if it is not redundant.
86744
86745         * lib/backupfile.c (find_backup_file_name,
86746         max_backup_version): Use base_len instead of rolling it ourselves.
86747         Handle the case of "" and (on DOS) "C:" correctly.
86748
86749         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
86750         needed. Include <string.h>, <dirname.h>.
86751         (base_name): Allow file names ending in slashes, other than names
86752         that are all slashes.  In this case, return the basename followed
86753         by the slashes.  This is more general, and can be used in places
86754         where the original base_name purposely had an assertion failure.
86755         (base_len): New function.
86756
86757         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
86758         Do not include <assert.h>; no longer needed.
86759         Include xalloc.h.
86760         (memrchr): Remove decl.
86761         (dir_name_r): Remove.
86762         (dir_len): Renamed from dirlen.  All callers changed.
86763         Rewrite in terms of base_name, for simplicity and consistency.
86764         (dir_name): Never return NULL.  All callers changed.
86765         Do not include <stdlib.h> in test program; no longer needed.
86766         return 0; is fine for test program.
86767
86768         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
86769         New macros.
86770         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
86771
86772         * lib/path-concat.c (path_concat): Use base_len to compute
86773         base length, not strlen; this means we cannot rely on memcpy
86774         to null-terminate.
86775
86776         * lib/same.c (STREQ): Remove.
86777         (same_name): Handle the case where the basename ends in trailing '/'.
86778
86779         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
86780         a slash was stripped.  Do not strip the last slash after a
86781         file system prefix.
86782
86783 2001-05-11  Paul Eggert  <eggert@twinsun.com>
86784
86785         * lib/Makefile.am (libfetish_a_SOURCES):
86786         Add strftime.c, since we now compile it on all hosts.
86787
86788         * lib/strftime.c (my_strftime):
86789         Define to nstrftime if emacs, but only if my_strftime is not defined.
86790         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
86791         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
86792         Add one more extra argument: a nanoseconds value.
86793         All uses changed.
86794         (ns): New macro.
86795         (my_strftime function): Add %N format.
86796         (emacs_strftimeu): Renamed from emacs_strftime,
86797         with extra ut argument.
86798
86799 2001-05-09  Paul Eggert  <eggert@twinsun.com>
86800
86801         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
86802
86803 2001-04-21  Jim Meyering  <meyering@lucent.com>
86804
86805         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
86806         doesn't interfere.
86807
86808 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
86809
86810         * m4/ftruncate.m4: Check for chsize.
86811         Link with ftruncate.o unconditionally if ftruncate is missing.
86812         This was required when cross-compiling to i586-mingw32msvc.
86813
86814 2001-04-08  Jim Meyering  <meyering@lucent.com>
86815
86816         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
86817         recomputed; that's necessary when the offset spans a DST transition.
86818         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
86819
86820 2001-04-02  Jim Meyering  <meyering@lucent.com>
86821
86822         * lib/regex.h, regex.c: Update from GNU libc.
86823
86824 2001-03-24  Jim Meyering  <meyering@lucent.com>
86825
86826         * m4/jm-macros.m4: Require autoconf-2.49d.
86827
86828 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
86829
86830         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
86831
86832 2001-03-19  Paul Eggert  <eggert@twinsun.com>
86833
86834         * lib/version-etc.c (version_etc_copyright): Update to 2001.
86835
86836 2001-03-17  Jim Meyering  <meyering@lucent.com>
86837
86838         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
86839         now that the version in autoconf is equivalent.
86840         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
86841
86842         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
86843         Suggestion from Akim Demaille.
86844
86845         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
86846         (jm_PREREQ_TEMPNAME): New function.
86847
86848 2001-03-16  Paul Eggert  <eggert@twinsun.com>
86849
86850         * lib/tempname.c (uint64_t): Define to uintmax_t if
86851         not defined, and if UINT64_MAX is not defined.
86852         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
86853         Reported by John David Anglin.
86854
86855 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
86856
86857         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
86858         resolve alias if codeset is empty.
86859         * lib/config.charset (BeOS): Use wildcard syntax.
86860
86861 2001-03-13  Jim Meyering  <meyering@lucent.com>
86862
86863         * lib/path-concat.c (path_concat)
86864         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
86865         concatenating e.g., `C:' and `foo'.
86866         From Bruno Haible.
86867
86868 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
86869
86870         * lib/localcharset.c (locale_charset): Don't use
86871         setlocale(LC_CTYPE,NULL). Don't return NULL.
86872         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
86873
86874 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
86875
86876         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
86877         support for DOS/DJGPP.
86878
86879 2001-03-01  Paul Eggert  <eggert@twinsun.com>
86880
86881         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
86882         lacks mkstemp.  Compile our own tempname.c if we compile our own
86883         mkstemp.c, as mkstemp relies on tempname.
86884
86885 2001-03-01  Jim Meyering  <meyering@lucent.com>
86886
86887         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
86888         AH_VERBATIM really does output its argument verbatim.
86889
86890 2001-02-28  Paul Eggert  <eggert@twinsun.com>
86891
86892         * lib/Makefile.am (libfetish_a_SOURCES):
86893         Add dup-safer.c, fopen-safer.c.
86894         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
86895
86896         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
86897         * lib/unistd-safer.h: New files.
86898
86899 2001-02-25  Paul Eggert  <eggert@twinsun.com>
86900
86901         The mkstemp replacement is taken from glibc 2.2.2, with some
86902         portability fixes for use outside glibc, as follows:
86903
86904         * lib/tempname.c (struct_stat64): New macro.
86905         (direxists, __gen_tempname): Use it.
86906         This avoids a portability problem with Solaris 8.
86907
86908         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
86909         (<stddef.h>, <stdint.h>, <string.h>):
86910         Include only if STDC_HEADERS || _LIBC.
86911         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
86912         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
86913         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
86914         (__set_errno): Define this macro if <errno.h> doesn't.
86915         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
86916         Define these macros if <stdio.h> doesn't.
86917         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
86918         Define these macros if <sys/stat.h>
86919         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
86920         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
86921         __xstat64): Define if not _LIBC.
86922         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
86923         (__gen_tempname): Invoke gettimeofday only if
86924         HAVE_GETTIMEOFDAY || _LIBC;
86925         otherwise, fall back on plain "time".
86926         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
86927
86928         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
86929
86930         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
86931
86932 2001-02-18  Paul Eggert  <eggert@twinsun.com>
86933
86934         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
86935
86936 2001-02-17  Paul Eggert  <eggert@twinsun.com>
86937
86938         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
86939         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
86940         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
86941         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
86942
86943 2001-02-17  Paul Eggert  <eggert@twinsun.com>
86944
86945         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
86946         Remove workaround macros for hosts that have mbrtowc but not
86947         mbstate_t, as we now insist on proper declarations for both
86948         before using mbrtowc.
86949
86950 2001-02-17  Jim Meyering  <meyering@lucent.com>
86951
86952         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
86953         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
86954         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
86955         UnixWare 7.1.1.
86956
86957         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
86958         rather than AC_CACHE_VAL.
86959
86960 2001-02-17  Jim Meyering  <meyering@lucent.com>
86961
86962         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
86963         around included file name.
86964
86965         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
86966
86967         * lib/strftime.c: Update from GNU libc (the only changes were to
86968         comments).
86969
86970 2001-02-17  Jim Meyering  <meyering@lucent.com>
86971
86972         * lib/regex.c: Update from libc.
86973
86974 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
86975
86976         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
86977         clash.
86978
86979 2001-02-16  Paul Eggert  <eggert@twinsun.com>
86980
86981         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
86982         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
86983         Reported by Mark Hounschell via Paul Eggert.
86984
86985 2001-02-07  Jim Meyering  <meyering@lucent.com>
86986
86987         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
86988
86989 2001-02-05  Jim Meyering  <meyering@lucent.com>
86990
86991         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
86992         it includes the patch required for `large file' support with at least
86993         HP-UX's 10.20 /bin/cc.
86994
86995 2001-02-03  Jim Meyering  <meyering@lucent.com>
86996
86997         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
86998         AS_IF, now that it works once again (mysteriously).
86999         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
87000
87001 2001-01-30  Jim Meyering  <meyering@lucent.com>
87002
87003         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
87004         * m4/chown.m4: Rename conftestchown to conftest.chown.
87005         * m4/rename.m4: s/conftestdir/conftest.d1/ and
87006         s/conftestdir2/conftest.d2/.
87007         * m4/utimes.m4: s/conftestdata/conftest.data/
87008         Inspired by Pavel Roskin's change in autoconf.
87009
87010 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
87011
87012         * lib/config.charset: Update for FreeBSD 4.2.
87013
87014 2001-01-27  Jim Meyering  <meyering@lucent.com>
87015
87016         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
87017         a use of AS_IF.
87018         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
87019
87020 2001-01-26  Jim Meyering  <meyering@lucent.com>
87021
87022         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
87023         quotearg.c includes it.
87024
87025 2001-01-26  Jim Meyering  <meyering@lucent.com>
87026
87027         * lib/quotearg.c: Include stddef.h.
87028         * lib/quote.c: Include stddef.h.
87029         Reported by Axel Kittenberger.
87030
87031         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
87032         line in double quotes so that it evokes a better diagnostic.
87033         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
87034         Reported by Axel Kittenberger.
87035
87036 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
87037
87038         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
87039         as if it was a `charset'.
87040
87041 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
87042
87043         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
87044         has const.
87045
87046 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
87047
87048         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
87049         to avoid a warning.  Add back 'const' to inptr.
87050
87051 2001-01-20  Jim Meyering  <meyering@lucent.com>
87052
87053         Be sure that headers are checked before used in code compiled
87054         for the type checks.
87055         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
87056         In place of that, invoke jm_CHECK_ALL_TYPES.
87057         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
87058         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
87059         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
87060         The check for ssize_t was mistakenly run before the test for unistd.h.
87061
87062         The configure-time check for stdbool.h was missing.
87063         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
87064         (jm_PREREQ_HASH): New function.
87065
87066 2001-01-17  Jim Meyering  <meyering@lucent.com>
87067
87068         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
87069         for autoconf-2.49c.
87070         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
87071
87072 2001-01-16  Jim Meyering  <meyering@lucent.com>
87073
87074         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
87075         From Bruno Haible.
87076
87077 2001-01-14  Jim Meyering  <meyering@lucent.com>
87078
87079         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
87080         foo and bar.  Create conftestdir/ in the script, not in the C code.
87081         Remove directories in the script, not in the C code.
87082         Remove conftestdir{,2} before trying to create the directory.
87083         Make the entire configure script fail if the mkdir fails.
87084
87085 2001-01-14  Jim Meyering  <meyering@lucent.com>
87086
87087         * lib/rename.c: New file.  From Volker Borchert.
87088         Include stdlib.h, string.h or strings.h, and xalloc.h.
87089         Use strip_trailing_slashes rather than open-coding it.
87090
87091 2001-01-03  Paul Eggert  <eggert@twinsun.com>
87092
87093         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
87094
87095 2001-01-03  Jim Meyering  <meyering@lucent.com>
87096
87097         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
87098         of local `inptr' to avoid warning with some system declarations of
87099         iconv.
87100
87101 2001-01-02  Volker Borchert  <bt@teknon.de>
87102
87103         * m4/rename.m4: New file.
87104         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
87105
87106 2001-01-01  Jim Meyering  <meyering@lucent.com>
87107
87108         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
87109         even on systems with utmpx.h.  It's necessary for the declaration of
87110         utmp's ut_user member.  Reported by Andreas Jaeger.
87111
87112         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
87113         available. They are required for the declarations of getgrgid and
87114         getpwuid resp.
87115         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
87116         Reported by Andreas Jaeger.
87117
87118 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
87119
87120         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
87121         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
87122         so `make install' also works in VPATH builds.
87123
87124 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
87125
87126         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
87127         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
87128         can be used in subdirectories.
87129
87130 2000-12-29  Paul Eggert  <eggert@twinsun.com>
87131
87132         * lib/modechange.c: Do not assume that mode_t uses the
87133         traditional octal encoding.  E.g. "chmod 1 FOO" should set
87134         the other-execute bit of FOO even if S_IXOTH != 1.
87135
87136         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
87137         WOTH, XOTH, ALLM): New macros.
87138         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
87139          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
87140         Use them.
87141         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
87142         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
87143         (mode_compile):
87144         No need to use uintmax_t; unsigned long is long enough.
87145         Don't bother to get suffix since we don't use it.
87146
87147 2000-12-26  Jim Meyering  <meyering@lucent.com>
87148
87149         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
87150         better with autoheader.
87151
87152 2000-12-24  Jim Meyering  <meyering@lucent.com>
87153
87154         * lib/hash.c (is_prime): Return explicit boolean values.
87155         (hash_get_first): Return NULL to appease Irix5.6's 89.
87156         Reported by Nelson Beebe.
87157
87158 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
87159
87160         * lib/localcharset.c (locale_charset): Add support for Win32.
87161
87162 2000-12-18  Paul Eggert  <eggert@twinsun.com>
87163
87164         * lib/physmem.h, lib/physmem.c: New files.
87165
87166         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
87167         (noinst_HEADERS): Add physmem.h.
87168
87169         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
87170         't' for compatibility with Solaris 8 sort.
87171
87172 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
87173
87174         * lib/config.charset: Add support for BeOS.
87175
87176 2000-12-17  Jim Meyering  <meyering@lucent.com>
87177
87178         * m4/dos.m4 (jm_AC_DOS): New file and macro.
87179         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
87180
87181 2000-12-16  Jim Meyering  <meyering@lucent.com>
87182
87183         This bug had a serious impact on chown: `chown N:M FILE' (for integer
87184         N and M) would have treated it like `chown N:N FILE'.
87185
87186         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
87187
87188 2000-12-16  Jim Meyering  <meyering@lucent.com>
87189
87190         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
87191         SHELLS_FILE to a file name that's useful on djgpp systems.
87192         Include stdlib.h.
87193         (ADDITIONAL_DEFAULT_SHELLS): Define.
87194         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
87195         Based mostly on a patch from Prashant TR.
87196
87197 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
87198
87199         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
87200         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
87201         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
87202
87203 2000-12-08  Andreas Schwab  <schwab@suse.de>
87204
87205         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
87206         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
87207
87208 2000-12-07  Jim Meyering  <meyering@lucent.com>
87209
87210         * lib/stripslash.c (ISSLASH): Define.
87211         (strip_trailing_slashes): Use ISSLASH rather than comparing against
87212         `/'.
87213         From Prashant TR.
87214
87215         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
87216         (dir_name_r): Declare this function as static.
87217         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
87218         manifest itself on a name containing a mix of slashes and
87219         backslashes.
87220         Make this function work with names starting with a DOS-style
87221         drive letter and colon prefix.
87222         (dir_name): Append `.' if necessary.
87223         Based mostly on patches from Prashant TR and Eli Zaretskii.
87224
87225         * lib/dirname.h (dir_name_r): Remove prototype.
87226
87227 2000-12-06  Paul Eggert  <eggert@twinsun.com>
87228
87229         * m4/off_t-format.m4: Remove this file.
87230         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
87231
87232 2000-12-06  Jim Meyering  <meyering@lucent.com>
87233
87234         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
87235         replacement strtoull, we may well need the replacement strtoul, too.
87236         Check for declarations of strtoul and strtoull.
87237         Check for strtol.  Mainly as a cue to cause automake to include
87238         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
87239         Check for limits.h -- strtol.c needs it.
87240
87241 2000-12-05  Jim Meyering  <meyering@lucent.com>
87242
87243         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
87244
87245 2000-12-04  Jim Meyering  <meyering@lucent.com>
87246
87247         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
87248         Also include memory.h, stdlib.h, unistd.h if appropriate.
87249         Reported by Andreas Jaeger (conflicting declaration of malloc).
87250
87251 2000-12-02  Jim Meyering  <meyering@lucent.com>
87252
87253         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
87254         * m4/jm-macros.m4 (jm_MACROS): require it.
87255
87256 2000-12-02  Jim Meyering  <meyering@lucent.com>
87257
87258         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
87259
87260 2000-12-01  Paul Eggert  <eggert@twinsun.com>
87261
87262         * lib/memrchr.c: Include <config.h> before any system include file.
87263
87264 2000-11-30  Jim Meyering  <meyering@lucent.com>
87265
87266         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
87267
87268 2000-11-30  Jim Meyering  <meyering@lucent.com>
87269
87270         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
87271
87272 2000-11-29  Paul Eggert  <eggert@twinsun.com>
87273
87274         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
87275
87276 2000-11-26  Jim Meyering  <meyering@lucent.com>
87277
87278         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
87279
87280 2000-11-22  Paul Eggert  <eggert@twinsun.com>
87281
87282         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
87283         size of (size_t) -1; it's not portable.
87284
87285 2000-11-17  Jim Meyering  <meyering@lucent.com>
87286
87287         * lib/strstr.c: Update from GNU libc.
87288
87289 2000-11-17  Akim Demaille  <akim@epita.fr>
87290
87291         * lib/obstack.h: Formatting changes.
87292         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
87293         prevent type checking.
87294         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
87295         cast the value to (void *): assigning a `foo *' to a `void *'
87296         variable is valid.
87297         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
87298
87299 2000-11-16  Jim Meyering  <meyering@lucent.com>
87300
87301         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
87302
87303 2000-11-11  Jim Meyering  <meyering@lucent.com>
87304
87305         * lib/error.c: Add a couple #includes, merging from GNU libc version.
87306
87307 2000-11-10  Jim Meyering  <meyering@lucent.com>
87308
87309         * lib/obstack.h: Update from GNU libc.
87310         * lib/obstack.c: Likewise.
87311
87312 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
87313
87314         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
87315
87316 2000-11-06  Paul Eggert  <eggert@twinsun.com>
87317
87318         * lib/getusershell.c (setusershell): Use rewind rather than
87319         fseek/fseeko, to avoid configuration hassles with fseeko.
87320         Don't bother opening SHELLS_FILE if shellstream is NULL;
87321         it's not necessary.
87322
87323 2000-11-05  Jim Meyering  <meyering@lucent.com>
87324
87325         * lib/makepath.h (make_dir): Declare.
87326         * lib/makepath.c (make_dir): Remove `static' attribute.
87327         Tweak a comment.
87328
87329 2000-11-04  Jim Meyering  <meyering@lucent.com>
87330
87331         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
87332
87333 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
87334
87335         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
87336         last one in a bucket, advance to the next bucket.
87337
87338 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
87339
87340         * lib/fnmatch.c: Do not comment out all the code if we are using
87341         the GNU C library, because in some cases we are replacing buggy
87342         code in the GNU C library itself.
87343
87344 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
87345
87346         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
87347         (regex_compile): Catch bogus \(\1\).
87348
87349 2000-10-30  Paul Eggert  <eggert@twinsun.com>
87350
87351         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
87352         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
87353         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
87354
87355 2000-10-30  Paul Eggert  <eggert@twinsun.com>
87356
87357         * lib/error.h, getline.h, modechange.h:
87358         Remove "2000" from Copyright line, as the file hasn't been
87359         changed this year other than in the copyright notice.
87360
87361         * lib/xalloc.h: Add "2000" to Copyright line, as this file
87362         was changed this year.
87363
87364 2000-10-29  Jim Meyering  <meyering@lucent.com>
87365
87366         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
87367         renaming.
87368         * m4/ls-mntd-fs.m4: Likewise
87369
87370 2000-10-29  Jim Meyering  <meyering@lucent.com>
87371
87372         * lib/xstat.in: Fix grammar in comment.
87373
87374 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
87375
87376         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
87377         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
87378         doesn't define __restrict_arr.
87379
87380 2000-10-28  Jim Meyering  <meyering@lucent.com>
87381
87382         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
87383         (jm_PREREQ_MEMCHR): New function.
87384
87385 2000-10-28  Jim Meyering  <meyering@lucent.com>
87386
87387         * lib/memchr.c: Update from libc.
87388         Adjust for portability:
87389         [HAVE_STDLIB_H]: Include stdlib.h.
87390         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
87391         Undef __memchr, too.
87392         [!weak_alias]: Define __memchr to memchr.
87393
87394         * lib/regex.c: Update from libc.
87395         * lib/regex.h: Likewise.
87396         * lib/getopt1.c: Likewise.
87397         * lib/memcmp.c: Likewise.
87398
87399         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
87400         Avoid using fseek, when possible -- it's broken by design.
87401         Patch by Ulrich Drepper.
87402
87403 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
87404
87405         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
87406         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
87407         Giving in to popular pressure to shut up the compiler with casts.
87408
87409 2000-10-26  Jim Meyering  <meyering@lucent.com>
87410
87411         * lib/strftime.c: Update from libc.
87412
87413 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
87414
87415         * regex.c: More `unsigned char' -> `re_char' changes.
87416         Also change several `int' into `re_wchar_t'.
87417         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
87418         (PUSH_FAILURE_POINTER): Don't cast any more.
87419         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
87420         We want GCC to complain, since this piece of code makes
87421         re_match non-reentrant, which *should* be fixed.
87422         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
87423         (EXTEND_BUFFER): Use RETALLOC.
87424         (SET_LIST_BIT): Don't cast.
87425         (re_wchar_t): New type.
87426         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
87427         that those two functions will always properly return.
87428         (IMMEDIATE_QUIT_CHECK): Cast to void.
87429         (analyse_first): Use recursion rather than an explicit stack.
87430         (re_compile_fastmap): Can't fail anymore.
87431         (re_search_2): Don't check re_compile_fastmap for failure.
87432         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
87433         Now also sets the new value (passed in a new argument).
87434         (re_match_2_internal): Use it.
87435         Also, use a new var `reg' of type size_t when looping through regs
87436         rather than reuse the inappropriate `mcnt'.
87437
87438 2000-10-25  Jim Meyering  <meyering@lucent.com>
87439
87440         * lib/obstack.c: Update from libc.
87441
87442 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
87443
87444         * regex.c (regex_compile): Change the way of handling a range from
87445         a char less than 256 to a char not less than 256.
87446
87447 2000-10-24  Andrew Innes  <andrewi@gnu.org>
87448
87449         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
87450         NT-Emacs only.
87451         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
87452         so that re_search functions only quit when callers expect them to.
87453
87454 2000-10-23  Jim Meyering  <meyering@lucent.com>
87455
87456         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
87457         wrong.  That set_locale call must not have any side effects.
87458         From Paul Eggert.
87459
87460 2000-10-22  Jim Meyering  <meyering@lucent.com>
87461
87462         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
87463         [CYCLIC]: Remove now-unused definition.
87464
87465         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
87466         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
87467         Suggestion from Ulrich Drepper.
87468
87469 2000-10-21  Jim Meyering  <meyering@lucent.com>
87470
87471         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
87472         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
87473         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
87474
87475 2000-10-21  Jim Meyering  <meyering@lucent.com>
87476
87477         * lib/dirname.c (memrchr): Declare if necessary.
87478         (dir_name): Remove the restriction that there be no
87479         trailing slashes.  Now, this code skips past them, effectively
87480         ignoring them.
87481         [TEST_DIRNAME] (main): New unit tests.
87482
87483         * lib/memrchr.c: New file from GNU libc.
87484         Undef __memrchr, too.
87485         [!weak_alias]: Define __memrchr to memrchr.
87486         Guard weak_alias use with `#ifdef weak_alias'.
87487
87488 2000-10-21  Jim Meyering  <meyering@lucent.com>
87489
87490         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
87491         (dir_name): Use dir_name_r.
87492         * lib/dirname.h (dir_name_r): Declare it.
87493
87494 2000-10-17  Jim Meyering  <meyering@lucent.com>
87495
87496         * lib/quote.h (PARAMS): Define and use.
87497         Reported by Akim Demaille.
87498
87499         * lib/getopt.c: Update from libc.
87500
87501 2000-10-16  Jim Meyering  <meyering@lucent.com>
87502
87503         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
87504         setlocale.
87505         From Jan Fedak.
87506
87507 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
87508
87509         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
87510
87511 2000-09-25  Jim Meyering  <meyering@lucent.com>
87512
87513         * lib/md5.h (rol): Define (from GnuPG).
87514
87515         * lib/sha.c: Give credit (GnuPG) where due.
87516         (M): Use rol rather than open-coding it.
87517         Add a FIXME comment.
87518
87519 2000-09-21  Jim Meyering  <meyering@lucent.com>
87520
87521         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
87522         Reported by Michael Stone.
87523
87524 2000-09-20  Jim Meyering  <meyering@lucent.com>
87525
87526         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
87527         (noinst_HEADERS): Add sha.h.
87528         Based on code from Scott G. Miller and from GnuPG.
87529
87530 2000-09-18  Jim Meyering  <meyering@lucent.com>
87531
87532         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
87533         LIBS. Otherwise, everyone ends up linking with -lelf for some
87534         configurations.
87535         Reported by Mike Stone.
87536
87537 2000-09-15  Jim Meyering  <meyering@lucent.com>
87538
87539         * lib/regex.c: Update from libc.
87540
87541 2000-09-10  Jim Meyering  <meyering@lucent.com>
87542
87543         * lib/getopt.c (_getopt_internal): Update from glibc.
87544
87545 2000-09-09  Jim Meyering  <meyering@lucent.com>
87546
87547         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
87548         think it should be used as a general replacement for isascii.
87549         * lib/fnmatch.c: Likewise.
87550         * lib/mbswidth.c: Likewise
87551         * lib/regex.c: Likewise.
87552
87553         Don't use atoi.
87554         * lib/userspec.c: Include sys/param.h and limits.h.
87555         Include xstrtol.h.
87556         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
87557         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
87558         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
87559         UID, GID.  Check range.
87560
87561 2000-09-06  Jim Meyering  <meyering@lucent.com>
87562
87563         * lib/getopt.c (_getopt_internal): Update from glibc.
87564
87565 2000-08-30  Jim Meyering  <meyering@lucent.com>
87566
87567         * lib/strftime.c: Merge in changes from GNU libc.
87568
87569 2000-08-26  Jim Meyering  <meyering@lucent.com>
87570
87571         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
87572         * m4/fpending.m4: New file.
87573
87574 2000-08-26  Jim Meyering  <meyering@lucent.com>
87575
87576         * lib/closeout.c: Include "__fpending.h".
87577         (close_stdout_status): Return right away if there's nothing to flush.
87578
87579         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
87580         * lib/__fpending.c: New file.
87581         * lib/__fpending.h: New file.
87582
87583 2000-08-20  Jim Meyering  <meyering@lucent.com>
87584
87585         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
87586         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
87587         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
87588
87589 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
87590
87591         Improve fileutils installation on systems where running
87592         programs (like install) can't be unlinked.
87593         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
87594         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
87595
87596 2000-08-07  Paul Eggert  <eggert@twinsun.com>
87597
87598         Standardize on "memory exhausted" instead of "Memory exhausted"
87599         or "virtual memory exhausted".
87600         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
87601         "virtual memory exhausted".
87602         * lib/same.c (same_name): Invoke xalloc_die instead of printing
87603         our own message.
87604         * lib/userspec.c (parse_user_spec): Likewise.
87605         * lib/bumpalloc.h: comment fix
87606         * lib/same.c, userspec.c: Include xalloc.h.
87607
87608         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
87609         not char *const and pointing to a constant array.
87610         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
87611         (xrealloc): Comment fix.
87612
87613         * lib/userspec.c (parse_user_spec):
87614         Don't translate a message until just before returning,
87615         to avoid unnecessary translation.
87616
87617 2000-08-07  Jim Meyering  <meyering@lucent.com>
87618
87619         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
87620         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
87621         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
87622         getgroups.c, gethostname.c, getopt.h, group-member.c,
87623         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
87624         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
87625         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
87626         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
87627         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
87628         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
87629         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
87630         yesno.c: Back out Copyright date changes for each file with no change
87631         this year.  This eases coordination with other programs using the same
87632         source code modules.  From Paul Eggert.
87633
87634 2000-08-06  Paul Eggert  <eggert@twinsun.com>
87635
87636         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
87637         not char, for compatibility with glibc 2.1.3 strftime.c.
87638
87639 2000-08-03  Greg McGary  <greg@mcgary.org>
87640
87641         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
87642         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
87643         (EXTEND_BUFFER): Use them.
87644
87645 2000-08-01  Jim Meyering  <meyering@lucent.com>
87646
87647         * lib/dirname.c (ISSLASH): Define.
87648         (BACKSLASH_IS_PATH_SEPARATOR): Define.
87649         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
87650         both `\' and `/' may be use as path separators.
87651         Based on a patch from Prashant TR.
87652
87653 2000-07-31  Paul Eggert  <eggert@twinsun.com>
87654
87655         * lib/quotearg.c (quotearg_n_options): Don't make the initial
87656         slot vector a constant, since it might get modified.
87657
87658 2000-07-31  Jim Meyering  <meyering@lucent.com>
87659
87660         * lib/xmalloc.c: Use `virtual memory exhausted', not
87661         `Memory exhausted'.
87662         * lib/obstack.c (print_and_abort): Likewise.
87663
87664 2000-07-30  Paul Eggert  <eggert@twinsun.com>
87665
87666         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
87667         buffer, so that the caller can always quote one small
87668         component of a "memory exhausted" message in slot 0.
87669         From a suggestion by Jim Meyering.
87670
87671 2000-07-30  Jim Meyering  <meyering@lucent.com>
87672
87673         * lib/makepath.c (make_path): Quote the other instance, too.
87674
87675         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
87676         (STATIC_BUF_SIZE): Define.
87677         (quotearg_n_options): Use only statically allocated storage when
87678         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
87679         than STATIC_BUF_SIZE.
87680
87681 2000-07-29  Jim Meyering  <meyering@lucent.com>
87682
87683         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
87684         * lib/dirname.c (dir_name): Likewise.
87685
87686         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
87687         `/'.
87688
87689         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
87690         (dir_name): Assert that there are no trailing slashes.
87691
87692 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
87693
87694         * lib/mbswidth.h (mbswidth): Add a flags argument.
87695         (mbswidth): New declaration.
87696         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
87697         * lib/mbswidth.c (mbswidth): Add a flags argument.
87698         (mbsnwidth): New function.
87699
87700 2000-07-24  Jim Meyering  <meyering@lucent.com>
87701
87702         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
87703
87704 2000-07-23  Paul Eggert  <eggert@twinsun.com>
87705
87706         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
87707
87708 2000-07-23  Paul Eggert  <eggert@twinsun.com>
87709
87710         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
87711         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
87712         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
87713         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
87714         invoke multibyte primitives.
87715
87716 2000-07-23  Paul Eggert  <eggert@twinsun.com>
87717
87718         * lib/quotearg.c:
87719         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
87720         so that mbstate_t is always defined.
87721
87722         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
87723         be 1 in at least one GCC installation, and this configuration
87724         error is likely to be common.  Ignoring MB_LEN_MAX hurts
87725         performance on hosts that have mbrtowc but have only unibyte
87726         locales, but I assume these hosts are rare.
87727
87728 2000-07-23  Paul Eggert  <eggert@twinsun.com>
87729
87730         * lib/mbswidth.c (_XOPEN_SOURCE):
87731         Don't define; this causes problems on Solaris 7.
87732         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
87733
87734 2000-07-23  Jim Meyering  <meyering@lucent.com>
87735
87736         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
87737         too: getgrgid, getpwuid, getuid.
87738
87739 2000-07-23  Jim Meyering  <meyering@lucent.com>
87740
87741         * lib/basename.c (base_name): Add an assertion.
87742
87743 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
87744
87745         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
87746         shadow its mbsinit function.
87747
87748 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
87749
87750         * lib/mbswidth.h: New file.
87751         * lib/mbswidth.c: New file.
87752         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
87753         (noinst_HEADERS): Add mbswidth.h.
87754
87755 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
87756
87757         * lib/config.charset: Add support for FreeBSD. Improve support for
87758         HP-UX and IRIX 6.
87759
87760 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
87761
87762         * m4/mbswidth.m4: New file.
87763         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
87764
87765 2000-07-15  Jim Meyering  <meyering@lucent.com>
87766
87767         * lib/makepath.c: Include quote.h.
87768         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
87769         corresponding argument in a `quote (...)' call.
87770         Give better diagnostics.
87771
87772         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
87773         (noinst_HEADERS): Add quote.h.
87774
87775         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
87776         from tar's src/misc.c.
87777         * lib/quote.h: New file.  Prototypes for same.
87778
87779 2000-07-14  Paul Eggert  <eggert@twinsun.com>
87780
87781         From a suggestion by Bruno Haible.
87782         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
87783         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
87784         to decide whether to define the BeOS workaround macro;
87785         this adjusts to the change to AC_MBSTATE_T.
87786
87787 2000-07-14  Jim Meyering  <meyering@lucent.com>
87788
87789         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
87790         jm_AC_TYPE_UINTMAX_T.
87791
87792 2000-07-13  Paul Eggert  <eggert@twinsun.com>
87793
87794         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
87795
87796         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
87797         quotearg_buffer_restyled): Add support for
87798         clocale_quoting_style.  Undo previous change to
87799         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
87800         and "{RIGHT QUOTATION MARK}" msgids.
87801
87802 2000-07-10  Paul Eggert  <eggert@twinsun.com>
87803
87804         From a suggestion by Bruno Haible.
87805         * m4/mbstate_t.m4 (AC_MBSTATE_T):
87806         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
87807         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
87808         and mbstate_t, to a single-part test that simply defines mbstate_t.
87809         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
87810         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
87811
87812 2000-07-10  Jim Meyering  <meyering@lucent.com>
87813
87814         * m4/strerror_r.m4: Mirror the correction made in autoconf.
87815
87816         * m4/gnu-source.m4: Output to confdefs.h directly.
87817         Suggestion from Akim Demaille.
87818
87819 2000-07-09  Paul Eggert  <eggert@twinsun.com>
87820
87821         The old behavior of quoting `like this' doesn't look good with
87822         newer, ISO-style fonts.  See:
87823         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
87824
87825         Instead, quote "like this" by default.  Let the translator
87826         tailor the locale-specific quoting behavior by providing
87827         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
87828
87829         * lib/quotearg.c (N_): New macro.
87830         (gettext_default): New function.
87831         (quotearg_buffer_restyled): Use
87832         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
87833         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
87834
87835 2000-07-09  Jim Meyering  <meyering@lucent.com>
87836
87837         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
87838         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
87839
87840         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
87841         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
87842
87843 2000-07-09  Jim Meyering  <meyering@lucent.com>
87844
87845         * lib/Most files: Update copyright dates to include 2000.
87846
87847 2000-07-08  Jim Meyering  <meyering@lucent.com>
87848
87849         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
87850         if not defined.
87851         (xgethostname): Remove now-unnecessary #ifdef.
87852         Move declaration of `err' into loop where it's used.
87853
87854 2000-07-05  Paul Eggert  <eggert@twinsun.com>
87855         and Bruno Haible  <haible@clisp.cons.org>
87856
87857         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
87858         only if the test for an object-type mbstate_t fails.  This
87859         prevents us from mistakenly reporting that mbstate_t is a
87860         system object type after we "#define mbstate_t int" to work
87861         around its lack.
87862
87863 2000-07-05  Paul Eggert  <eggert@twinsun.com>
87864         and Bruno Haible  <haible@clisp.cons.org>
87865
87866         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
87867
87868 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
87869
87870         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
87871         to strerror_r.
87872         Include <ctype.h> for use of isalpha.
87873
87874 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
87875
87876         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
87877         by allocating a larger buffer. Test the gethostname return value for
87878         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
87879         returns an error and ENAMETOOLONG isn't defined.
87880
87881 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
87882
87883         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
87884         dimension.
87885
87886 2000-07-04  Jim Meyering  <meyering@lucent.com>
87887
87888         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
87889         of the deprecated AC_CHECKING.
87890
87891 2000-07-04  Jim Meyering  <meyering@lucent.com>
87892
87893         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
87894         Reported by Bruno Haible.
87895
87896 2000-07-04  Jim Meyering  <meyering@lucent.com>
87897
87898         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
87899         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
87900         lacks mbrtowc.
87901
87902 2000-07-03  Paul Eggert  <eggert@twinsun.com>
87903
87904         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
87905         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
87906
87907 2000-07-03  Paul Eggert  <eggert@twinsun.com>
87908         and Bruno Haible  <haible@clisp.cons.org>
87909
87910         * lib/quotearg.c (mbrtowc):
87911         Assign to *pwc, and return 1 only if result is nonzero.
87912         (iswprint): Use ISPRINT when substituting our own mbrtowc.
87913
87914 2000-07-03  Jim Meyering  <meyering@lucent.com>
87915
87916         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
87917
87918 2000-07-03  Jim Meyering  <meyering@lucent.com>
87919
87920         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
87921         This is necessary to get a definition of e.g., UTMP_FILE on
87922         HP-UX 10.20.
87923         From Bob Proulx.
87924
87925 2000-07-02  Jim Meyering  <meyering@lucent.com>
87926
87927         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
87928
87929         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
87930         AC_LIBOBJ(function_name).
87931         * m4/chown.m4: Likewise.
87932         * m4/fnmatch.m4: Likewise.
87933         * m4/ftruncate.m4: Likewise.
87934         * m4/getgroups.m4: Likewise.
87935         * m4/getline.m4: Likewise.
87936         * m4/group-member.m4: Likewise.
87937         * m4/jm-macros.m4: Likewise.
87938         * m4/lstat.m4: Likewise.
87939         * m4/malloc.m4: Likewise.
87940         * m4/memcmp.m4: Likewise.
87941         * m4/nanosleep.m4: Likewise.
87942         * m4/putenv.m4: Likewise.
87943         * m4/realloc.m4: Likewise.
87944         * m4/regex.m4: Likewise.
87945         * m4/stat.m4: Likewise.
87946         * m4/strftime.m4: Likewise.
87947
87948 2000-07-02  Jim Meyering  <meyering@lucent.com>
87949
87950         * lib/quotearg.c (mbstate_t): Don't define here.
87951
87952 2000-07-02  Jim Meyering  <meyering@lucent.com>
87953
87954         * lib/nanosleep.c (SIGCONT): Define if not already defined.
87955
87956 2000-07-01  Jim Meyering  <meyering@lucent.com>
87957
87958         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
87959
87960 2000-07-01  Jim Meyering  <meyering@lucent.com>
87961
87962         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
87963         problem.
87964
87965 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
87966
87967         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
87968         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
87969
87970 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
87971
87972         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
87973         per change in ../m4/ls-mntd-fs.m4.
87974         (read_filesystem_list): Ignore symbolic links.
87975
87976 2000-06-29  Jim Meyering  <meyering@lucent.com>
87977
87978         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
87979         for declaration of strcmp.
87980
87981         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
87982
87983         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
87984         Avoid warning by casting result to `char *' to remove `const'.
87985
87986 2000-06-28  Jim Meyering  <meyering@lucent.com>
87987
87988         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
87989         included by quotearg.c, for which we perform this test.  From
87990         Bruno Haible.
87991
87992 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
87993
87994         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
87995         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
87996         <utmpx.h> exists, put readutmp.o into LIBOBJS.
87997
87998 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
87999
88000         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
88001
88002 2000-06-26  Paul Eggert  <eggert@twinsun.com>
88003
88004         savedir now sets errno on failure and invokes xmalloc to get memory.
88005         Fix a couple of other minor bugs while we're at it.
88006
88007         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
88008         (NAMLEN): Remove macro.
88009         (malloc, realloc): Remove decls.
88010         (stpcpy): Likewise.
88011         ("xalloc.h"): Include.
88012         (NAME_SIZE_DEFAULT): New macro.
88013         (savedir): Use xmalloc / xrealloc to allocate memory.
88014         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
88015         Skip "" directory entries.
88016         Use strlen to calculate directory entry length, since the old method
88017         is rarely used these days and isn't worth supporting.
88018         Don't use a pointer after freeing it.
88019         Check for integer overflow when calculating allocation size.
88020         Use memcpy to copy entries, instead of stpcpy.
88021         Set errno properly when returning NULL.
88022         Check for readdir error.
88023
88024 2000-06-26  Jim Meyering  <meyering@lucent.com>
88025
88026         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
88027
88028 2000-06-25  Jim Meyering  <meyering@lucent.com>
88029
88030         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
88031         Linux header bug when _XOPEN_SOURCE is defined to 500.
88032
88033 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
88034
88035         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
88036         deficiency.
88037
88038 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
88039
88040         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
88041         Include xalloc.h.
88042         Don't include <stdlib.h>.  Don't declare malloc, realloc.
88043
88044 2000-06-24  Jim Meyering  <meyering@lucent.com>
88045
88046         * m4/strerror_r.m4: Revive this file -- to try out an experimental
88047         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
88048         for which strerror does return char*, but which lacks a conveniently
88049         accessible declaration of the function.  If the compile-test says
88050         strerror_r doesn't work, then resort to a `run'-test that works on
88051         BeOS and segfaults on DEC Unix.
88052
88053 2000-06-24  Jim Meyering  <meyering@lucent.com>
88054
88055         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
88056
88057 2000-06-23  Paul Eggert  <eggert@twinsun.com>
88058
88059         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
88060         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
88061
88062 2000-06-23  Paul Eggert  <eggert@twinsun.com>
88063
88064         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
88065         (mbrtowc, mbstate_t): Define substitutes if
88066         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
88067         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
88068         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
88069
88070 2000-06-23  Jim Meyering  <meyering@lucent.com>
88071
88072         * m4/afs.m4: Add missing AC_MSG_RESULT.
88073         Reported by Bruno Haible.
88074
88075         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
88076         Suggestion from Bruno Haible.
88077
88078 2000-06-23  Jim Meyering  <meyering@lucent.com>
88079
88080         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
88081
88082 2000-06-21  Jim Meyering  <meyering@lucent.com>
88083
88084         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
88085
88086 2000-06-21  Jim Meyering  <meyering@lucent.com>
88087
88088         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
88089         (noinst_HEADERS): Add getstr.h.
88090
88091         * lib/getline.c (getstr): Move into a separate file.
88092         * lib/getstr.c (getstr): New file, extracted from getline.c, with
88093         the following changes: new parameter, delim2; both delim[12]
88094         parameters have type `int', not `char'.  The latter would lose
88095         with 8-bit delimiters.
88096         * lib/getstr.h: New file.
88097
88098 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
88099
88100         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
88101         than 1024, return a memory chunk of least possible size, instead
88102         of size PATH_MAX + 2. In the loop, increment the size proportionally.
88103         Use free/xmalloc instead of xrealloc to avoid copying for very long
88104         paths.
88105
88106 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
88107
88108         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
88109         the empty string.
88110
88111 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
88112
88113         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
88114         address, not strdup.  Include <stdlib.h> and don't declare free().
88115
88116 2000-06-19  Jim Meyering  <meyering@lucent.com>
88117
88118         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
88119
88120 2000-06-18  Jim Meyering  <meyering@lucent.com>
88121
88122         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
88123
88124         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
88125         `checking whether...' message to be consistent with that of the
88126         lstat test.
88127
88128 2000-06-18  Jim Meyering  <meyering@lucent.com>
88129
88130         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
88131         Besides, these days every porting target provides a mkdir function.
88132
88133         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
88134         needed. (this snippet comes from src/system.h).
88135
88136 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
88137
88138         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
88139
88140 2000-06-15  Paul Eggert  <eggert@twinsun.com>
88141
88142         * lib/human.c (adjust_value): New function.
88143         (human_readable_inexact): Apply rounding style even when
88144         printing approximate values.
88145
88146 2000-06-14  Paul Eggert  <eggert@twinsun.com>
88147
88148         * lib/human.c (human_readable_inexact): Allow an input block
88149         size that is not a multiple of the output block size, and vice versa.
88150         Reported by Piergiorgio Sartor.
88151
88152 2000-06-14  Paul Eggert  <eggert@twinsun.com>
88153
88154         * lib/getdate.y (get_date): Apply relative times after time
88155         zone indicator, not before.  Reported by Todd A. Jacobs.
88156
88157 2000-06-13  Jim Meyering  <meyering@lucent.com>
88158
88159         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
88160
88161         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
88162
88163 2000-06-12  Paul Eggert  <eggert@twinsun.com>
88164
88165         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
88166
88167 2000-06-12  Jim Meyering  <meyering@lucent.com>
88168
88169         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
88170         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
88171         optional argument.
88172         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
88173         the optional argument, `lib'.
88174
88175 2000-06-08  Jim Meyering  <meyering@lucent.com>
88176
88177         * m4/largefile.m4: Remove file (now that it's part of autoconf).
88178
88179 2000-06-04  Paul Eggert  <eggert@twinsun.com>
88180
88181         Rewrite largefile configuration so that we don't need to run
88182         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
88183         AC_CANONICAL_HOST in configure.in -- jmm]
88184
88185         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
88186         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
88187         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
88188         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
88189         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
88190         All uses changed.
88191         Instead of inspecting the output of getconf, try to compile the
88192         test program without and with the macro definition.
88193         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
88194         for getconf.  Instead, check for the needed flags by compiling
88195         test programs.
88196
88197 2000-06-04  Paul Eggert  <eggert@twinsun.com>
88198
88199         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
88200
88201 2000-06-04  Jim Meyering  <meyering@lucent.com>
88202
88203         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
88204         SunOS 4.1.4 for which gid_t is an unsigned type.
88205
88206 2000-06-03  Jim Meyering  <meyering@lucent.com>
88207
88208         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
88209         now that autoconf requires that.
88210
88211         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
88212         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
88213         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
88214
88215 2000-06-03  Jim Meyering  <meyering@lucent.com>
88216
88217         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
88218
88219 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
88220
88221         * m4/glibc21.m4: New file.
88222         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
88223
88224 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
88225
88226         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
88227         newer, don't install charset.alias.
88228         * lib/config.charset: Change the Linux/glibc rules so they become empty
88229         on glibc-2.1 or newer.
88230
88231 2000-06-02  Jim Meyering  <meyering@lucent.com>
88232
88233         * lib/mountlist.c: Back out last change.  Instead, do this...
88234         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
88235         me_dummy member using the same `ignore'-testing code.
88236         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
88237         fs_type strings.
88238         From Mark D. Roth.
88239
88240 2000-05-29  Jim Meyering  <meyering@lucent.com>
88241
88242         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
88243         mounts with the `ignore' attribute.  Based on a patch from
88244         Mark D. Roth.
88245
88246 2000-05-28  Jim Meyering  <meyering@lucent.com>
88247
88248         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
88249         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
88250         * m4/stat.m4: Likewise.
88251         * m4/lstat.m4: Likewise.
88252         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
88253
88254         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
88255         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
88256
88257 2000-05-26  Jim Meyering  <meyering@lucent.com>
88258
88259         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
88260
88261 2000-05-24  Jim Meyering  <meyering@lucent.com>
88262
88263         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
88264         autoconf requires that.
88265         * m4/lib-check.m4: Likewise.
88266         * m4/jm-macros.m4: Likewise.
88267         * m4/strftime.m4: Likewise.
88268
88269         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
88270         AC_CHECK_DECLS, now that autoconf requires that.
88271
88272 2000-05-22  Jim Meyering  <meyering@lucent.com>
88273
88274         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
88275         * m4/lstat.m4: Likewise.
88276
88277 2000-05-22  Jim Meyering  <meyering@lucent.com>
88278
88279         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
88280
88281 2000-05-20  Jim Meyering  <meyering@lucent.com>
88282
88283         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
88284         (jm_PREREQ): Use it.
88285
88286 2000-05-18  Jim Meyering  <meyering@lucent.com>
88287
88288         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
88289         back, too, since it may have been modified by allocate_entry.
88290         (hash_delete): Rewrite to use neither the assignment operator
88291         nor the comma operator in an if-expression.
88292
88293 2000-05-15  Paul Eggert  <eggert@twinsun.com>
88294
88295         * lib/closeout.c:
88296         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
88297         Remove; no longer needed.
88298         "quotearg.h": Add include.
88299         (file_name): Do not bother to explicitly initialize to NULL; it's less
88300         efficient on some hosts.
88301         (close_stdout_status): Remove test as to whether stdout was already
88302         closed; it breaks for the case "echo x | sort >&-".
88303         Quote file name colons.
88304         Do not assume that _("write error") lacks format strings.
88305
88306 2000-05-15  Jim Meyering  <meyering@lucent.com>
88307
88308         * lib/version-etc.c (version_etc_copyright): Update the copyright
88309         string used in all --version output.
88310
88311 2000-05-14  Jim Meyering  <meyering@lucent.com>
88312
88313         * lib/closeout.c (close_stdout_set_file_name): New function.
88314         (close_stdout_status): Use new file-scoped global.
88315         Return right away if fstat says the stdout file descriptor is invalid.
88316         * lib/closeout.h (close_stdout_set_file_name): Declare.
88317
88318 2000-05-10  Jim Meyering  <meyering@lucent.com>
88319
88320         * lib/closeout.c [default_exit_status]: New file-scoped variable.
88321         (close_stdout_set_status): New function.
88322         * lib/closeout.h (close_stdout_set_status): Declare.
88323
88324 2000-05-09  Jim Meyering  <meyering@lucent.com>
88325
88326         * m4/gettext.m4: Rename this...
88327         * m4/libintl.m4: ...to this.
88328
88329 2000-05-08  Jim Meyering  <meyering@lucent.com>
88330
88331         * lib/long-options.c: Don't include closeout.h.
88332         (parse_long_options): Don't call close_stdout for --version.
88333
88334 2000-05-06  Paul Eggert  <eggert@twinsun.com>
88335
88336         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
88337         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
88338         2.1.3 bug.  This avoids a clash when files like regex.c define
88339         _GNU_SOURCE.
88340
88341 2000-05-06  Jim Meyering  <meyering@lucent.com>
88342
88343         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
88344         (AC_REPLACE_FUNCS): Add strnlen.
88345
88346         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
88347         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
88348
88349         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
88350         AC_SEARCH_LIBS call for nanosleep.
88351         (LIB_NANOSLEEP): Set and AC_SUBST.
88352
88353 2000-05-06  Jim Meyering  <meyering@lucent.com>
88354
88355         * lib/strnlen.c: Undefine __strnlen and strnlen.
88356         [!weak_alias]: Define __strnlen to strnlen.
88357
88358         * lib/atexit.c: New file, from libiberty.
88359
88360 2000-05-06  Jim Meyering  <meyering@lucent.com>
88361
88362         * lib/closeout.c (close_stdout_status): Also check for errors on the
88363         stderr stream.
88364
88365 2000-05-05  Jim Meyering  <meyering@lucent.com>
88366
88367         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
88368         AC_SEARCH_LIBS call for clock_gettime.
88369         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
88370
88371         * m4/search-libs.m4: Update from autoconf.
88372
88373         su doesn't work on Solaris 2.6.
88374         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
88375         <shadow.h>.  Reported by Dragos Harabor.
88376
88377 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
88378
88379         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
88380         memcpy instead of xmalloc, xrealloc, path_concat.
88381         (locale_charset): Treat empty environment variables as absent.
88382         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
88383
88384 2000-05-04  Jim Meyering  <meyering@lucent.com>
88385
88386         * lib/getopt.c: Update from glibc.
88387         * lib/obstack.c: Likewise.
88388         * lib/obstack.h: Likewise.
88389         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
88390         file
88391
88392         * lib/regex.h: Likewise.
88393         * lib/strndup.c: Likewise.
88394         * lib/strnlen.c: New file, from glibc.
88395
88396 2000-05-03  Jim Meyering  <meyering@lucent.com>
88397
88398         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
88399
88400 2000-05-02  Paul Eggert  <eggert@twinsun.com>
88401
88402         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
88403         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
88404         compile-time test, rather than inspecting host and OS, to
88405         decide whether to define _LARGEFILE_SOURCE.
88406
88407 2000-05-01  Jim Meyering  <meyering@lucent.com>
88408
88409         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
88410
88411         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
88412         Based on a patch from Bruno Haible.
88413
88414 2000-05-01  Jim Meyering  <meyering@lucent.com>
88415
88416         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
88417
88418 2000-04-29  Jim Meyering  <meyering@lucent.com>
88419
88420         * lib/path-concat.c: Declare strdup only if it's not defined.
88421         * lib/canon-host.c: Likewise.
88422
88423 2000-04-28  Jim Meyering  <meyering@lucent.com>
88424
88425         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
88426         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
88427         is included first, then limits.h is included by locale.h by libintl.h.
88428         From John David Anglin.
88429
88430 2000-04-25  Jim Meyering  <meyering@lucent.com>
88431
88432         * lib/makepath.c (S_IRWXUGO): Define.
88433         (make_path): Always perform explicit chmod if MODE specifies any
88434         of the `special' permission bits.  Prompted by a bug report against
88435         install from Mate Wierdl and Joost van Baal.
88436
88437 2000-04-18  Jim Meyering  <meyering@lucent.com>
88438
88439         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
88440         (jm_PREREQ): Use it.
88441
88442 2000-04-18  Jim Meyering  <meyering@lucent.com>
88443
88444         * lib/README: New file.
88445
88446         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
88447         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
88448
88449 2000-04-17  Jim Meyering  <meyering@lucent.com>
88450
88451         Get it right :-)
88452         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
88453         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
88454         Suggestion from Akim Demaille.
88455
88456 2000-04-17  Jim Meyering  <meyering@lucent.com>
88457
88458         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
88459         the definition of it to rpl_strftime also defined-away the system's
88460         declaration.
88461
88462 2000-04-15  Jim Meyering  <meyering@lucent.com>
88463
88464         Use `C' to denote so-called `contiguous' files, the same way
88465         that tar does.
88466         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
88467         (ftypelet): Use S_ISCTG.
88468         From Michael Deutschmann.
88469
88470 2000-04-14  Jim Meyering  <meyering@lucent.com>
88471
88472         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
88473         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
88474         clobbered.
88475
88476 2000-04-14  Jim Meyering  <meyering@lucent.com>
88477
88478         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
88479
88480 2000-04-13  Jim Meyering  <meyering@lucent.com>
88481
88482         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
88483         AH_VERBATIM to insert required #ifndef into config.h.in.
88484         Suggestion from Akim Demaille.
88485
88486 2000-04-12  Jim Meyering  <meyering@lucent.com>
88487
88488         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
88489         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
88490         Christian Krackowizer.
88491
88492         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
88493         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
88494         (AC_SYS_LARGEFILE): Require.
88495         (AM_C_PROTOTYPES): Require.
88496
88497 2000-04-08  Jim Meyering  <meyering@lucent.com>
88498
88499         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
88500         names don't conflict.  Reported by Eli Zaretskii.
88501
88502 2000-04-07  Jim Meyering  <meyering@lucent.com>
88503
88504         * lib/putenv.c: Move inclusion of errno.h so it follows that of
88505         sys/types.h, to work around system header problems on AIX 3.2.5.
88506         From Bruno Haible.
88507
88508 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
88509
88510         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
88511         bug.  Deal with the different error behavior of Irix iconv.
88512
88513 2000-04-05  Paul Eggert  <eggert@twinsun.com>
88514
88515         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
88516         IRIX if the installer said otherwise.
88517
88518 2000-04-05  Jim Meyering  <meyering@lucent.com>
88519
88520         Portability tweaks required for ultrix4.3.
88521         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
88522         (jm_CHECK_DECLS): Add getutent to the list of functions.
88523         (_jm_DECL_HEADERS): Add utmpx.h.
88524         From John David Anglin.
88525
88526         * m4/strftime.m4: Back out the 2000-04-02 change.
88527         Instead of that change, simply undefine putenv in the test program.
88528
88529 2000-04-05  Jim Meyering  <meyering@lucent.com>
88530
88531         Portability tweaks required for ultrix4.3.
88532         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
88533         getutent.
88534         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
88535         * lib/canon-host.c: Declare strdup.
88536         * lib/path-concat.c: Likewise.
88537         From John David Anglin.
88538
88539 2000-04-04  Jim Meyering  <meyering@lucent.com>
88540
88541         Be more DOS 8.3-friendly.
88542         * lib/ref-add.sin: Renamed from ref-add.sed.in.
88543         * lib/ref-del.sin: Renamed from ref-del.sed.in.
88544         * lib/Makefile.am: Reflect renaming.
88545         Reported by Eli Zaretskii.
88546
88547         Use a temporary file name that won't clash with `charset.alias'
88548         in the DOS 8.3 name space.
88549         * lib/Makefile.am (charset_tmp): Define.
88550         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
88551         (uninstall-local): Likewise.
88552         Reported by Eli Zaretskii.
88553
88554 2000-04-03  Jim Meyering  <meyering@lucent.com>
88555
88556         * m4/gettext.m4: Fix typo in comment.
88557
88558         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
88559         textutils/configure.in).  Suggestion from Paul Eggert.
88560         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
88561
88562 2000-04-02  Paul Eggert  <eggert@twinsun.com>
88563
88564         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
88565         variable in the shell rather than using putenv, which isn't
88566         portable.  This avoids the configure-time inter-test dependency
88567         on the potentially-renamed putenv function.
88568
88569 2000-03-30  Paul Eggert  <eggert@twinsun.com>
88570
88571         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
88572         before checking struct stat.st_blksize, so that
88573         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
88574
88575 2000-03-29  Paul Eggert  <eggert@twinsun.com>
88576
88577         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
88578         since strftime.c uses HAVE_STRFTIME to decide whether to use
88579         the underlying strftime.
88580
88581 2000-03-29  Paul Eggert  <eggert@twinsun.com>
88582
88583         * lib/time/strftime.c (my_strftime): Make sure we call the system
88584         strftime, not ourselves, when invoking the underlying strftime.
88585
88586 2000-03-24  Jim Meyering  <meyering@lucent.com>
88587
88588         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
88589         (charset_alias): Define.
88590         (install-exec-local): Factor out common code.
88591         (uninstall-local): Split lines longer than 80.
88592         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
88593         (SUFFIXES): Define.
88594         (.sed.in.sed): New rule.  Don't redirect directly to $@.
88595         (CLEANFILES): Add ref-add.sed and ref-del.sed.
88596
88597 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
88598
88599         * lib/config.charset: Output a line containing "Packages using this
88600         file".
88601         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
88602         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
88603         ref-del.sed): New rules.
88604
88605 2000-03-17  Jim Meyering  <meyering@lucent.com>
88606
88607         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
88608         Otherwise, include <strings.h>
88609
88610 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
88611
88612         * lib/unicodeio.c (utf8_wctomb): New function.
88613         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
88614         format instead of in UCS-4 with platform dependent endianness.
88615
88616 2000-03-10  Jim Meyering  <meyering@lucent.com>
88617
88618         * m4/lib-check.m4: Look for getspnam in -lgen, too.
88619         From Marco Franzen.
88620
88621 2000-03-07  Paul Eggert  <eggert@twinsun.com>
88622
88623         * lib/savedir.c (savedir): Work even if directory size is
88624         negative; this can happen with some screwy NFS configurations.
88625
88626 2000-03-06  Jim Meyering  <meyering@lucent.com>
88627
88628         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
88629         if it's NULL (because we ran out of memory).  From Bruno Haible.
88630
88631 2000-03-05  Jim Meyering  <meyering@lucent.com>
88632
88633         * lib/localcharset.c ("path-concat.h"): Include.
88634         (get_charset_aliases): Use path_concat instead of ANSI string
88635         concatenation.
88636
88637         * lib/unicodeio.h (PARAMS): Define.
88638         Use it to guard prototype.
88639
88640 2000-03-04  Jim Meyering  <meyering@lucent.com>
88641
88642         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
88643         for lib/localcharset.c.
88644
88645 2000-03-04  Jim Meyering  <meyering@lucent.com>
88646
88647         * lib/Makefile.am (install-exec-local): Create $(libdir) before
88648         installing into it.
88649         (uninstall-local): Uncomment this rule so `make distcheck' works
88650         once again.
88651
88652         * lib/unicodeio.c (<errno.h>): Include it.
88653         (errno): Declare if not defined.
88654
88655         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
88656
88657         * lib/config.charset: New version, incorporating remarks from a linux
88658         i18n mailing list.  From Bruno Haible.
88659
88660 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
88661
88662         * m4/codeset.m4: New file.
88663         * m4/iconv.m4: New file.
88664         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
88665
88666 2000-03-03  Jim Meyering  <meyering@lucent.com>
88667
88668         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
88669
88670 2000-03-02  Jim Meyering  <meyering@lucent.com>
88671
88672         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
88673         the messages come out on separate lines.
88674
88675         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
88676         rather than jm_CHECK_DECLARATIONS.
88677         * m4/decl.m4: Remove now-unused file.
88678
88679         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
88680         geteuid.
88681
88682 2000-03-02  Jim Meyering  <meyering@lucent.com>
88683
88684         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
88685
88686 2000-03-01  Jim Meyering  <meyering@lucent.com>
88687
88688         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
88689         * lib/unicodeio.c: Likewise.
88690
88691 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
88692
88693         * lib/config.charset: New file.
88694         * lib/localcharset.c: New file.
88695         * lib/unicodeio.h, lib/unicodeio.c: New files.
88696         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
88697         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
88698         (noinst_HEADERS): Add unicodeio.h.
88699         (all-local, install-exec-local, charset.alias): New targets.
88700
88701 2000-02-28  Paul Eggert  <eggert@twinsun.com>
88702
88703         * lib/quotearg.c (ALERT_CHAR): New macro.
88704         (quotearg_buffer_restyled): Use it.
88705
88706 2000-02-27  Jim Meyering  <meyering@lucent.com>
88707
88708         * m4/check-decl.m4: Add getenv to the list.
88709
88710 2000-02-27  Jim Meyering  <meyering@lucent.com>
88711
88712         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
88713         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
88714
88715         * lib/backupfile.c: Guard inclusion of stdlib.h with
88716         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
88717         Declare malloc if needed.
88718
88719         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
88720         `#ifndef HAVE_DECL..'
88721         now that autoconf always defines the HAVE_DECL_ symbols.
88722         * lib/human.c: Likewise.
88723         * lib/same.c: Likewise.
88724         * lib/strtoumax.c: Likewise.
88725
88726         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
88727         declaration check was not run.
88728         * lib/hash.c: Likewise.
88729         * lib/human.c: Likewise.
88730         * lib/same.c: Likewise.
88731         * lib/strtoumax.c: Likewise.
88732
88733         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
88734         `.', then first look up the entire `.'-containing string as a login
88735         name.
88736
88737 2000-02-23  Jim Meyering  <meyering@lucent.com>
88738
88739         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
88740         in place of my hack.
88741
88742 2000-02-18  Paul Eggert  <eggert@twinsun.com>
88743
88744         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
88745         (textint): New typedef.
88746         (parser_control): Member year changed from int to textint.
88747         All uses changed.
88748         (YYSTYPE): Removed; replaced by %union with int and textint members.
88749         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
88750         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
88751         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
88752         (tSNUMBER, tUNUMBER): Now of type <textintval>.
88753         (date, number, to_year): Use width of number in digits, not its value,
88754         to determine whether it's a 2-digit year, or a 2-digit time.
88755         (yylex): Store number of digits of numeric tokens.
88756         Reported by John Kendall.
88757
88758         (parser_control): Changed from struct parser_control to typedef (for
88759         consistency).  All uses changed.
88760
88761         (tID): Removed; not used.
88762         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
88763
88764 2000-02-14  Paul Eggert  <eggert@twinsun.com>
88765
88766         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
88767         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
88768
88769 2000-02-12  Jim Meyering  <meyering@lucent.com>
88770
88771         * lib/userspec.c (ISDIGIT): Define it.
88772         (isdigit): Remove definition.
88773         (is_number): Use ISDIGIT, not isdigit.
88774         <libintl.h>: Include.
88775         (_ and N_): Define.
88776         (parse_user_spec): Mark translatable strings.
88777
88778 2000-02-10  Jim Meyering  <meyering@lucent.com>
88779
88780         With these changes, nanosleep.[ch] are finally enough like the other
88781         lib/* replacement files to compile on a few more losing systems.
88782
88783         * lib/nanosleep.h: Don't include config.h.
88784         Remove prototype from declaration of nanosleep.
88785         (PARAMS): Remove now-unneeded definition.
88786         * lib/nanosleep.c: #undef nanosleep.
88787         (rpl_nanosleep): Rename from nanosleep.
88788
88789 2000-02-10  Jim Meyering  <meyering@lucent.com>
88790
88791         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
88792         gnu_nanosleep to rpl_nanosleep.
88793
88794 2000-02-09  Jim Meyering  <meyering@lucent.com>
88795
88796         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
88797         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
88798
88799 2000-02-08  Akim Demaille  <akim@epita.fr>
88800
88801         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
88802         `[' and `]' and remove uses of `changequote'.
88803         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
88804         (AC_SYS_LARGEFILE): Likewise.
88805         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
88806         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
88807         of changequote.
88808         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
88809         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
88810         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
88811         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
88812
88813 2000-02-05  Jim Meyering  <meyering@lucent.com>
88814
88815         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
88816         Remove explicit use of AC_HEADER_TIME.  It is required by
88817         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
88818         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
88819         in autoconf whereby the expansion of the latter ended up preceding
88820         the expansion of its prerequisite, AC_HEADER_TIME.
88821         Reported by Volker Borchert.
88822
88823 2000-02-03  Jim Meyering  <meyering@lucent.com>
88824
88825         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
88826
88827 2000-02-03  Jim Meyering  <meyering@lucent.com>
88828
88829         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
88830         rather than with `#if HAVE_UTMPNAME'.
88831
88832 2000-02-02  Jim Meyering  <meyering@lucent.com>
88833
88834         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
88835         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
88836         Reported by Eli Zaretskii.
88837
88838 2000-02-01  Jim Meyering  <meyering@lucent.com>
88839
88840         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
88841
88842 2000-01-31  Jim Meyering  <meyering@lucent.com>
88843
88844         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
88845         functions.  Add the time.h and sys/time.h headers along with the
88846         AC_REQUIRE'ment of AC_HEADER_TIME.
88847
88848 2000-01-31  Jim Meyering  <meyering@lucent.com>
88849
88850         * lib/nanosleep.h (nanosleep): Guard declaration with
88851         `#if ! HAVE_DECL_NANOSLEEP'.
88852         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
88853         the declaration in that vendor's sys/timers.h.
88854         Reported by Christian Krackowizer.
88855
88856         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
88857         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
88858         (ISPRINT): Likewise.
88859         Reported by Tom Tromey.
88860
88861 2000-01-30  Jim Meyering  <meyering@lucent.com>
88862
88863         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
88864
88865         * m4/prereq.m4 (utmp_includes): Define.
88866         Check for ut_user and ut_name members in both struct utmpx
88867         and struct utmp.
88868
88869 2000-01-30  Jim Meyering  <meyering@lucent.com>
88870
88871         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
88872         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
88873         header files where only utmpx.ut_user is declared.
88874
88875         * lib/readutmp.h (UT_USER): Define.
88876
88877 2000-01-29  Jim Meyering  <meyering@lucent.com>
88878
88879         * m4/lib-check.m4: New file containing library-related checks from
88880         fileutils and sh-utils (textutils had none).
88881
88882 2000-01-28  Jim Meyering  <meyering@lucent.com>
88883
88884         * m4/perl.m4: Change format of warning message to look more like that
88885         from the missing script.  Suggestion from François Pinard.
88886
88887 2000-01-25  Jim Meyering  <meyering@lucent.com>
88888
88889         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
88890         well as time.h in the compile check.
88891         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
88892         Fix typo in cross-compiling case: s/yes/no/.
88893
88894 2000-01-23  Jim Meyering  <meyering@lucent.com>
88895
88896         * m4/jm-macros.m4: Move df-related tests here from
88897         fileutils/configure.in
88898
88899         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
88900         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
88901
88902         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
88903         s/space/ac_fsusage_space/.
88904         (jm_FILE_SYSTEM_USAGE): Take two parameters.
88905
88906         * m4/ftruncate.m4: New file (derived from part of
88907         fileutils/configure.in).
88908         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
88909         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
88910
88911         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
88912         AC_SUBST these here, rather than just in sh-util/configure.in, so
88913         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
88914         all the same.
88915         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
88916         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
88917         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
88918         (AC_SUBST(POW_LIBM)): Likewise.
88919         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
88920
88921 2000-01-23  Jim Meyering  <meyering@lucent.com>
88922
88923         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
88924         obstack.c.
88925
88926 2000-01-22  Jim Meyering  <meyering@lucent.com>
88927
88928         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
88929
88930         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
88931
88932         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
88933         configure.in
88934         (AC_CHECK_HEADERS): Likewise for sh-utils.
88935         (AC_CHECK_HEADERS): Likewise for textutils.
88936         Merge the three lists of headers.
88937
88938         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
88939         from fileutils' configure.in.
88940
88941         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
88942         code. Moved tests into their own function (_jm_DECL_HEADERS) in
88943         check-decl.m4.
88944
88945         * m4/check-decl.m4: Use #if rather than #ifdef.
88946         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
88947         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
88948         (_jm_DECL_HEADERS): Define new function.
88949         (jm_CHECK_DECLARATIONS): Require it.
88950
88951 2000-01-22  Jim Meyering  <meyering@lucent.com>
88952
88953         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
88954         [! HAVE_DECL_STRTOULL]: Declare strtoull.
88955         Required for some AIX systems.  Reported by Christian Krackowizer.
88956         [TESTING] (main): New function.
88957
88958         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
88959         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
88960         letters.
88961
88962         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
88963         iswprint.
88964
88965         * lib/strverscmp.c (ISDIGIT): Define.
88966         (strverscmp): Use ISDIGIT, not isdigit.
88967
88968 2000-01-19  Jim Meyering  <meyering@lucent.com>
88969
88970         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
88971         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
88972         defines `struct timespec' in <sys/time.h>
88973
88974         * m4/c-bs-a.m4: Remove uses of changequote altogether.
88975         Thanks to Akim for explaining.
88976
88977 2000-01-17  Paul Eggert  <eggert@twinsun.com>
88978
88979         * lib/nanosleep.c (nanosleep):
88980         Don't use SA_INTERRUPT to decide whether to call sigaction, as
88981         POSIX.1 doesn't require SA_INTERRUPT and some systems
88982         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
88983         it's been part of POSIX.1 since day 1 (in 1988).
88984
88985 2000-01-17  Jim Meyering  <meyering@lucent.com>
88986
88987         * lib/interlock: Remove unused file.  Reported by François Pinard.
88988
88989 2000-01-16  Paul Eggert  <eggert@twinsun.com>
88990
88991         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
88992         alert, backslash, formfeed, and vertical tab unnecessarily in
88993         shell quoting style.
88994
88995 2000-01-16  Jim Meyering  <meyering@lucent.com>
88996
88997         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
88998         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
88999         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
89000         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
89001
89002 2000-01-16  Jim Meyering  <meyering@lucent.com>
89003
89004         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
89005         because the latter didn't work.
89006
89007 2000-01-15  Jim Meyering  <meyering@lucent.com>
89008
89009         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
89010         (AC_REPLACE_FUNCS): Add memcpy and memset.
89011         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
89012         Add strpbrk.
89013         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
89014
89015 2000-01-12  Jim Meyering  <meyering@lucent.com>
89016
89017         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
89018         (jm_PREREQ): Use it.
89019         (jm_PREREQ_READUTMP): New macro.
89020         (jm_PREREQ): Use it.
89021
89022 2000-01-11  Paul Eggert  <eggert@twinsun.com>
89023
89024         Quote multibyte characters correctly.
89025         * m4/c-bs-a.m4: New file.
89026         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
89027         (jm_PREREQ): Use it.
89028
89029 2000-01-11  Paul Eggert  <eggert@twinsun.com>
89030
89031         * m4/uintmax_t.m4: Port to autoconf 2.13.
89032
89033 2000-01-08  Jim Meyering  <meyering@ascend.com>
89034
89035         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
89036         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
89037
89038 2000-01-04  Jim Meyering  <meyering@ascend.com>
89039
89040         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
89041         jm_STRUCT_DIRENT_D_TYPE.
89042         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
89043         jm_STRUCT_DIRENT_D_INO.
89044         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
89045         jm_STRUCT_UTIMBUF.
89046         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
89047         renamings.
89048         * m4/utime.m4: Likewise.
89049
89050         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
89051         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
89052
89053 2000-01-03  Paul Eggert  <eggert@twinsun.com>
89054
89055         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
89056         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
89057
89058 2000-01-02  Jim Meyering  <meyering@ascend.com>
89059
89060         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
89061         remember if this is necessary.
89062
89063 1999-12-26  Jim Meyering  <meyering@ascend.com>
89064
89065         * m4/jm-macros.m4: Use it here.
89066         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
89067
89068 1999-12-23  Jim Meyering  <meyering@ascend.com>
89069
89070         * m4/jm-macros.m4: Check for clock_gettime (moved from
89071         fileutils/configure.in)
89072         Check for gettimeofday.
89073
89074 1999-12-20  Jim Meyering  <meyering@ascend.com>
89075
89076         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
89077         autoconf-2.14a-1999-12-20.
89078
89079 1999-12-19  Jim Meyering  <meyering@ascend.com>
89080
89081         * m4/lstat-slash.m4: New file.
89082         * m4/jm-macros.m4: Use the new macro:
89083         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
89084
89085 1999-12-07  Jim Meyering  <meyering@ascend.com>
89086
89087         * m4/perl.m4: Require that File::Compare be available, too.
89088         Too many systems seem to lack it.
89089
89090         * m4/strftime.m4: Add checks for most of the cpp macros tested in
89091         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
89092
89093 1999-11-18  Paul Eggert  <eggert@twinsun.com>
89094
89095         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
89096         problem with the QNX 4.25 shell, which doesn't propagate exit
89097         status of failed commands inside shell assignments.
89098
89099 1999-11-17  Jim Meyering  <meyering@ascend.com>
89100
89101         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
89102
89103 1999-11-07  Jim Meyering  <meyering@ascend.com>
89104
89105         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
89106
89107 1999-11-06  Jim Meyering  <meyering@ascend.com>
89108
89109         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
89110         * m4/jm-macros.m4 (jm_MACROS): Use it here.
89111
89112 1999-11-05  Jim Meyering  <meyering@ascend.com>
89113
89114         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
89115         configure.in of textutils, fileutils, and sh-utils into this one
89116         (shared between those packages) file.
89117         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
89118         AC_STRUCT_ST_BLKSIZE.
89119
89120 1999-11-03  Jim Meyering  <meyering@ascend.com>
89121
89122         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
89123         of AC_CHECK_TYPE checks includes unistd.h.
89124         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
89125         Suggestion from Akim Demaille.
89126
89127 1999-10-30  Jim Meyering  <meyering@ascend.com>
89128
89129         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
89130         m4-quoted string.
89131         * m4/ls-mntd-fs.m4: Likewise.
89132         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
89133         * m4/jm-winsz1.m4: Likewise.
89134
89135         * m4/const.m4: Remove file, since the fix made it into the experimental
89136         version of autoconf.
89137         * m4/mktime.m4: Likewise.
89138
89139         * m4/check-type.m4: Remove file, now that the latest version of
89140         AC_CHECK_TYPE takes a third arg to specify additional #includes.
89141
89142         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
89143         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
89144         AC_CHECK_TYPE.
89145
89146 1999-10-04  Jim Meyering  <meyering@ascend.com>
89147
89148         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
89149
89150 1999-09-22  Paul Eggert  <eggert@twinsun.com>
89151
89152         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
89153         2.95.1 bug with HP-UX 10.20.
89154
89155 1999-09-17  Jim Meyering  <meyering@ascend.com>
89156
89157         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
89158         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
89159         due to missing strdup (against sh-utils-2.0).
89160
89161 1999-08-29  Jim Meyering  <meyering@ascend.com>
89162
89163         * m4/jm-macros.m4: Require jm_BISON.
89164         * m4/bison.m4: New file.
89165
89166 1999-08-17  Paul Eggert  <eggert@twinsun.com>
89167
89168         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
89169         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
89170
89171 1999-08-05  Jim Meyering  <meyering@ascend.com>
89172
89173         * m4/getline.m4: Rename test file from conftestdata to conftest.data
89174         to avoid conflicts with `conftest' on 8+3 filesystems.
89175         Suggestion from Eli Zaretskii.
89176
89177 1999-08-04  Jim Meyering  <meyering@ascend.com>
89178
89179         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
89180         fileutils and sh-utils (textutils's getline test was inadequate).
89181         (AM_FUNC_GETLINE): Run this test.
89182         (AC_CHECK_FUNCS): Check for getdelim.
89183         Reported by Bob Proulx.
89184
89185 1999-08-02  Jim Meyering  <meyering@ascend.com>
89186
89187         * m4/jm-macros.m4: Add a comment.
89188
89189 1999-08-01  Paul Eggert  <eggert@twinsun.com>
89190
89191         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
89192         <inttypes.h> defines strtoumax as a macro (and not as a
89193         function).
89194
89195 1999-08-01  Paul Eggert  <eggert@twinsun.com>
89196
89197         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
89198         that we can shift, multiply and divide unsigned long long
89199         values; Ultrix cc can't do it.
89200
89201 1999-08-01  Paul Eggert  <eggert@twinsun.com>
89202
89203         * m4/mktime.m4: New file, which is a preview of what should appear
89204         in the next public autoconf release.
89205
89206 1999-08-01  Paul Eggert  <eggert@twinsun.com>
89207
89208         * m4/lfs.m4: Remove this file.
89209         * m4/largefile.m4: New file.  It contains the old contents of
89210         lfs.m4, except that all names with prefix AC_LFS have been
89211         changed to use the prefix AC_SYS_LARGEFILE instead, to be
89212         compatible with future autoconf versions.  Also, some minor m4
89213         quoting problems have been fixed.
89214
89215 1999-08-01  Paul Eggert  <eggert@twinsun.com>
89216
89217         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
89218         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
89219         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
89220         and simplify the shell code.
89221
89222 1999-08-01  Jim Meyering  <meyering@ascend.com>
89223
89224         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
89225         m4.
89226
89227 1999-07-20  Jim Meyering  <meyering@ascend.com>
89228
89229         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
89230
89231 1999-07-15  Jim Meyering  <meyering@ascend.com>
89232
89233         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
89234
89235 1999-05-22  Jim Meyering  <meyering@ascend.com>
89236
89237         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
89238
89239 1999-05-20  Jim Meyering  <meyering@ascend.com>
89240
89241         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
89242         Add a colon after each `then' in case $4 is empty.
89243
89244 1999-05-16  Jim Meyering  <meyering@ascend.com>
89245
89246         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
89247
89248 1999-05-10  Jim Meyering  <meyering@ascend.com>
89249
89250         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
89251
89252         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
89253         AC_FUNC_MKTIME.
89254
89255 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
89256
89257         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
89258
89259 1999-05-04  Paul Eggert  <eggert@twinsun.com>
89260
89261         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
89262         not CPPFLAGS, so that linking works correctly in IRIX.
89263
89264 1999-04-30  Paul Eggert  <eggert@twinsun.com>
89265
89266         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
89267
89268 1999-04-20  Paul Eggert  <eggert@twinsun.com>
89269
89270         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
89271         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
89272         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
89273         jm_AC_TYPE_UNSIGNED_LONG_LONG.
89274         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
89275
89276         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
89277
89278 1999-04-20  Jim Meyering  <meyering@ascend.com>
89279
89280         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
89281         AC_REPLACE xstroull if necessary.  From Paul Eggert.
89282         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
89283
89284 1999-04-18  Jim Meyering  <meyering@ascend.com>
89285
89286         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
89287         * m4/jm-macros.m4: Use it.
89288
89289 1999-04-06  Jim Meyering  <meyering@ascend.com>
89290
89291         * m4/strftime.m4: Remove test for %f.
89292
89293 1999-03-29  Jim Meyering  <meyering@ascend.com>
89294
89295         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
89296         superset of the AC_TYPE_* checks in the textutils, fileutils,
89297         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
89298         AC_TYPE_PID_T.
89299
89300 1999-03-28  Jim Meyering  <meyering@ascend.com>
89301
89302         * m4/jm-macros.m4: Define GNU_PACKAGE here.
89303         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
89304         replaced e.g., in the *.sh files of the sh-utils.
89305
89306 1999-03-20  Jim Meyering  <meyering@ascend.com>
89307
89308         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
89309         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
89310         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
89311
89312 1999-03-19  Jim Meyering  <meyering@ascend.com>
89313
89314         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
89315
89316 1999-03-12  Jim Meyering  <meyering@ascend.com>
89317
89318         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
89319
89320 1999-03-07  Jim Meyering  <meyering@ascend.com>
89321
89322         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
89323         declared.
89324
89325 1999-02-17  Jim Meyering  <meyering@ascend.com>
89326
89327         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
89328         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
89329
89330 1999-02-07  Jim Meyering  <meyering@ascend.com>
89331
89332         * m4/group-member.m4: New file -- extracted from sh-utils'
89333         configure.in.
89334
89335         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
89336         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
89337
89338 1999-02-06  Jim Meyering  <meyering@ascend.com>
89339
89340         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
89341         * m4/fnmatch.m4: Likewise.
89342         * m4/getgroups.m4: Likewise.
89343         * m4/lstat.m4: Likewise.
89344         * m4/malloc.m4: Likewise.
89345         * m4/putenv.m4: Likewise.
89346         * m4/realloc.m4: Likewise.
89347         * m4/regex.m4: Likewise.
89348         * m4/stat.m4: Likewise.
89349         * m4/strftime.m4: Likewise.
89350         Suggestion from Alain Magloire.
89351
89352         * m4/chown.m4: Use `.$ac_objext', not `.o'.
89353         * m4/fnmatch.m4: Likewise.
89354         * m4/getgroups.m4: Likewise.
89355         * m4/getline.m4: Likewise.
89356         * m4/lstat.m4: Likewise.
89357         * m4/malloc.m4: Likewise.
89358         * m4/memcmp.m4: Likewise.
89359         * m4/putenv.m4: Likewise.
89360         * m4/realloc.m4: Likewise.
89361         * m4/regex.m4: Likewise.
89362         * m4/stat.m4: Likewise.
89363         * m4/strftime.m4: Likewise.
89364         Suggestion from Alain Magloire.
89365
89366         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
89367         an argument.
89368
89369         * m4/regex.m4: Add a run-time Test for proper operation of
89370         re_compile_pattern.
89371
89372 1999-01-31  Jim Meyering  <meyering@ascend.com>
89373
89374         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
89375
89376 1999-01-30  Jim Meyering  <meyering@ascend.com>
89377
89378         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
89379
89380         * m4/jm-mktime.m4: Make this a wrapper around the official
89381         AM_FUNC_MKTIME rather than my private copy, now that the official one
89382         is up to date.
89383         * m4/mktime.m4: Remove file.
89384
89385         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
89386         * m4/uptime.m4: Likewise.
89387         * m4/uintmax_t.m4: Likewise.
89388
89389 1999-01-28  Jim Meyering  <meyering@ascend.com>
89390
89391         * m4/jm-macros.m4: Use jm_AFS.
89392         * m4/afs.m4: New file (from fileutils' configure.in).
89393
89394         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
89395         * m4/chown.m4: Likewise.
89396         * m4/d-ino.m4: Likewise.
89397         * m4/d-type.m4: Likewise.
89398         * m4/fnmatch.m4: Likewise.
89399         * m4/getgroups.m4: Likewise.
89400         * m4/gettext.m4: Likewise.
89401         * m4/jm-mktime.m4: Likewise.
89402         * m4/jm-winsz2.m4: Likewise.
89403         * m4/lcmessage.m4: Likewise.
89404         * m4/ls-mntd-fs.m4: Likewise.
89405         * m4/malloc.m4: Likewise.
89406         * m4/memcmp.m4: Likewise.
89407         * m4/putenv.m4: Likewise.
89408         * m4/realloc.m4: Likewise.
89409         * m4/st_mtim.m4: Likewise.
89410         * m4/strftime.m4: Likewise.
89411
89412 1999-01-16  Jim Meyering  <meyering@ascend.com>
89413
89414         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
89415         (ARGMATCH_DIE_DECL): Define.
89416
89417 1999-01-12  Jim Meyering  <meyering@ascend.com>
89418
89419         * m4/Makefile.am.in: Rewrite to avoid using fmt.
89420         Reported by Lars Hecking.
89421
89422 1999-01-10  Jim Meyering  <meyering@ascend.com>
89423
89424         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
89425         gross kludge.
89426         * m4/inttypes_h.m4: Likewise.
89427         * m4/lstat.m4: Likewise.
89428         * m4/malloc.m4: Likewise.
89429         * m4/readdir.m4: Likewise.
89430         * m4/realloc.m4: Likewise.
89431         * m4/st_dm_mode.m4: Likewise.
89432         * m4/stat.m4: Likewise.
89433         * m4/utimbuf.m4: Likewise.
89434         * m4/utimes.m4: Likewise.
89435
89436         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
89437         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
89438         comments in config.h.in are meaningful.
89439
89440         * m4/jm-macros.m4: Require autoconf-2.13 here.
89441
89442         * m4/regex.m4: By default, don't use the included regex.c on systems
89443         with glibc 2.  Suggestion from Uli Drepper.
89444
89445 1999-01-02  Jim Meyering  <meyering@ascend.com>
89446
89447         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
89448
89449 1998-12-18  Jim Meyering  <meyering@ascend.com>
89450
89451         * m4/Makefile.am.in (Makefile.am): Simplify rule.
89452         Based on a suggestion from Lars Hecking.
89453
89454 1998-11-16  Paul Eggert  <eggert@twinsun.com>
89455
89456         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
89457
89458 1998-11-16  Jim Meyering  <meyering@ascend.com>
89459
89460         * m4/lfs.m4: Double-quote the `uname...` expression.
89461
89462 1998-11-14  Jim Meyering  <meyering@ascend.com>
89463
89464         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
89465         * m4/stat.m4: Likewise.
89466
89467 1998-11-03  Jim Meyering  <meyering@ascend.com>
89468
89469         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
89470         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
89471
89472 1998-10-18  Jim Meyering  <meyering@ascend.com>
89473
89474         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
89475
89476 1998-10-17  Jim Meyering  <meyering@ascend.com>
89477
89478         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
89479         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
89480         calls for those previously hard-coded headers.  Instead, take a new
89481         parameter.
89482         (jm_CHECK_DECLARATIONS): Reflect interface change.
89483         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
89484         (jm_CHECK_DECL_LOCALTIME_R): New macro.
89485
89486         * m4/mktime.m4: Test for spring-forward gap before long-running test.
89487
89488 1998-10-14  Jim Meyering  <meyering@ascend.com>
89489
89490         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
89491         instead of "TZ=America/Vancouver".  From Paul Eggert.
89492
89493 1998-10-11  Jim Meyering  <meyering@ascend.com>
89494
89495         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
89496         This adds a test for a recently added compatibility fix for mktime.c.
89497         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
89498
89499 1998-09-27  Jim Meyering  <meyering@ascend.com>
89500
89501         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
89502
89503         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
89504         ../configure.in, including a change from Gordon Matzigkeit to allow
89505         cross-compiling for the Hurd.
89506
89507         * m4/glibc.m4: New file/macro to test for the GNU C Library
89508         versions 1 and 2.  From Gordon Matzigkeit.
89509         Indent.
89510
89511 1998-09-21  Jim Meyering  <meyering@ascend.com>
89512
89513         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
89514
89515 1998-08-18  Paul Eggert  <eggert@twinsun.com>
89516
89517         Port nanosecond-resolution times to UnixWare 2.1.2 and
89518         pedantic Solaris 2.6.
89519
89520         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
89521         AC_STRUCT_ST_MTIM.
89522         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
89523         Generate name of ns member, instead of just 1 or undef.
89524         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
89525
89526 1998-08-15  Jim Meyering  <meyering@ascend.com>
89527
89528         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
89529         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
89530         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
89531         instead of jm_TYPE_SSIZE_T.
89532
89533 1998-08-12  Jim Meyering  <meyering@ascend.com>
89534
89535         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
89536
89537 1998-08-02  Jim Meyering  <meyering@ascend.com>
89538
89539         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
89540         in acconfig.h manually.
89541
89542 1998-07-31  Paul Eggert  <eggert@twinsun.com>
89543
89544         * m4/st_mtim.m4: New file.
89545
89546 1998-07-28  Jim Meyering  <meyering@ascend.com>
89547
89548         * m4/utimes.m4: Undef stat.
89549
89550 1998-07-25  Jim Meyering  <meyering@ascend.com>
89551
89552         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
89553         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
89554
89555 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
89556
89557         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
89558         uid and gid actually remain unchanged.
89559
89560 1998-07-07  Jim Meyering  <meyering@ascend.com>
89561
89562         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
89563
89564 1998-07-04  Jim Meyering  <meyering@ascend.com>
89565
89566         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
89567         to prove that this macro can be used in packages without regex.c.
89568
89569 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
89570
89571         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
89572         is to be used.
89573
89574 1998-07-03  Jim Meyering  <meyering@ascend.com>
89575
89576         * m4/gettext.m4: Add -lintl if it's found to be necessary.
89577
89578         * m4/gettext.m4: New file -- from gettext-0.10.35.
89579         * m4/lcmessage.m4: Likewise.
89580         * m4/progtest.m4: Likewise.
89581
89582         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
89583         * m4/jm-macros.m4: Require the new macro.
89584
89585 1998-06-29  Jim Meyering  <meyering@ascend.com>
89586
89587         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
89588         for the definition of NGROUPS (used in a system header included
89589         by sys/mount.h).
89590
89591 1998-06-28  Jim Meyering  <meyering@ascend.com>
89592
89593         * m4/ls-mntd-fs.m4: New file.
89594         * m4/fstypename.m4: New file.
89595
89596         * m4/jm-macros.m4: Require the new macro.
89597         * m4/jm-glibc-io.m4: New file.
89598
89599 1998-05-19  Jim Meyering  <meyering@ascend.com>
89600
89601         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
89602         * m4/lchown.m4: New file.
89603
89604         * m4/Makefile.am.in: New file.
89605         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
89606
89607 1998-05-14  Jim Meyering  <meyering@ascend.com>
89608
89609         * m4/Makefile.am (EXTRA_DIST): Add them.
89610         * m4/jm-macros.m4: New file.
89611         * m4/utimbuf.m4: New file.
89612
89613 1998-05-12  Jim Meyering  <meyering@ascend.com>
89614
89615         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
89616
89617 1998-05-11  Jim Meyering  <meyering@ascend.com>
89618
89619         * m4/isc-posix.m4: New file.
89620
89621 1998-05-10  Jim Meyering  <meyering@ascend.com>
89622
89623         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
89624
89625 1998-05-09  Jim Meyering  <meyering@ascend.com>
89626
89627         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
89628         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
89629         with automake.
89630
89631         * m4/ssize_t.m4: New file.
89632         * m4/mktime.m4: Remove file -- the new automake has this now.
89633
89634 1998-04-26  Jim Meyering  <meyering@ascend.com>
89635
89636         * m4/assert.m4: New file.
89637         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
89638
89639 1998-04-05  Jim Meyering  <meyering@ascend.com>
89640
89641         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
89642         (jm_PREREQ): Use it here.
89643
89644 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
89645
89646         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
89647         in acconfig.h.
89648
89649 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
89650
89651         * m4/prereq.m4: New file.
89652         * m4/error.m4: New file.
89653         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
89654
89655 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
89656
89657         * m4/getline.m4: Don't set am_cv_func_working_getline before the
89658         cache-check for the same variable -- that defeated the purpose of
89659         the test; the test program was never run.  This was a problem only
89660         on systems with losing getline functions -- HP-UX 10.20 is one.
89661         Reported by Bjorn Helgaas.
89662
89663 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
89664
89665         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
89666
89667 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
89668
89669         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
89670
89671         * m4/const.m4: New file.  Use an initializer in this declaration
89672         typedef int charset[2]; const charset x;
89673         Reported by Bob Glickstein.
89674
89675 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
89676
89677         * m4/chown.m4: Fix reversed types on -1 args to chown.
89678         From Kaveh Ghazi.
89679
89680 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
89681
89682         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
89683         Add lseek and memchr.
89684
89685         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
89686         T.E.Dickey <dickey@clark.net> said that some older preprocessors
89687         have a 20-character limit on names.
89688
89689 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
89690
89691         * m4/inttypes_h.m4: New file.
89692         * m4/uintmax_t.m4: New file.
89693         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
89694
89695
89696         -----
89697
89698         Local Variables:
89699         coding: utf-8
89700         End:
89701
89702         Copyright (C) 1997-2011 Free Software Foundation, Inc.
89703
89704         Copying and distribution of this file, with or without
89705         modification, are permitted provided the copyright notice
89706         and this notice are preserved.